@aggroot-team/aggroot 1.8.7 → 1.8.9
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/index.cjs +666 -660
- package/package.json +1 -1
- package/share/web/dist/assets/arc-CS_Kjpll.js +1 -0
- package/share/web/dist/assets/arc-D1-xmnmt.js +1 -0
- package/share/web/dist/assets/arc-lB0tm96X.js +1 -0
- package/share/web/dist/assets/architectureDiagram-3BPJPVTR-5x1c3saA.js +36 -0
- package/share/web/dist/assets/architectureDiagram-3BPJPVTR-AnqeshCf.js +36 -0
- package/share/web/dist/assets/architectureDiagram-3BPJPVTR-DMBx-2Be.js +36 -0
- package/share/web/dist/assets/blockDiagram-GPEHLZMM-BCL5dg7K.js +132 -0
- package/share/web/dist/assets/blockDiagram-GPEHLZMM-BGvAyQtt.js +132 -0
- package/share/web/dist/assets/blockDiagram-GPEHLZMM-BYo0zmDr.js +132 -0
- package/share/web/dist/assets/c4Diagram-AAUBKEIU-DlS4uT1_.js +10 -0
- package/share/web/dist/assets/c4Diagram-AAUBKEIU-U4nXEZ3l.js +10 -0
- package/share/web/dist/assets/c4Diagram-AAUBKEIU-XfiixDyc.js +10 -0
- package/share/web/dist/assets/channel-B3Bm5XZk.js +1 -0
- package/share/web/dist/assets/channel-BA5eGuYn.js +1 -0
- package/share/web/dist/assets/channel-BwnkgWV4.js +1 -0
- package/share/web/dist/assets/chunk-2J33WTMH-DV_eyAG5.js +1 -0
- package/share/web/dist/assets/chunk-2J33WTMH-cdZ9jzPc.js +1 -0
- package/share/web/dist/assets/chunk-2J33WTMH-eVY-aT34.js +1 -0
- package/share/web/dist/assets/chunk-4BX2VUAB-BkSAovoh.js +1 -0
- package/share/web/dist/assets/chunk-4BX2VUAB-C8Cn-5pC.js +1 -0
- package/share/web/dist/assets/chunk-4BX2VUAB-wPqPwSJz.js +1 -0
- package/share/web/dist/assets/chunk-55IACEB6-BNAs0JFy.js +1 -0
- package/share/web/dist/assets/chunk-55IACEB6-C3RQmN-K.js +1 -0
- package/share/web/dist/assets/chunk-55IACEB6-CNgdotn1.js +1 -0
- package/share/web/dist/assets/chunk-727SXJPM--kUckukx.js +206 -0
- package/share/web/dist/assets/chunk-727SXJPM-BZV4neR_.js +206 -0
- package/share/web/dist/assets/chunk-727SXJPM-CtLXL4eI.js +206 -0
- package/share/web/dist/assets/chunk-AQP2D5EJ-BNz2j229.js +231 -0
- package/share/web/dist/assets/chunk-AQP2D5EJ-DqVrkfaW.js +231 -0
- package/share/web/dist/assets/chunk-AQP2D5EJ-X43awX0X.js +231 -0
- package/share/web/dist/assets/chunk-FMBD7UC4-BLMuIKd-.js +15 -0
- package/share/web/dist/assets/chunk-FMBD7UC4-C2O3Bngt.js +15 -0
- package/share/web/dist/assets/chunk-FMBD7UC4-DvtGDPYe.js +15 -0
- package/share/web/dist/assets/chunk-ND2GUHAM-B8qCem0k.js +1 -0
- package/share/web/dist/assets/chunk-ND2GUHAM-C8iqLBQO.js +1 -0
- package/share/web/dist/assets/chunk-ND2GUHAM-qGV17DoW.js +1 -0
- package/share/web/dist/assets/chunk-QZHKN3VN-Bgj3z-LO.js +1 -0
- package/share/web/dist/assets/chunk-QZHKN3VN-CDpxoAzy.js +1 -0
- package/share/web/dist/assets/chunk-QZHKN3VN-Cz30ZMa-.js +1 -0
- package/share/web/dist/assets/classDiagram-4FO5ZUOK-C3w2Tu2D.js +1 -0
- package/share/web/dist/assets/classDiagram-4FO5ZUOK-DVYUx4xg.js +1 -0
- package/share/web/dist/assets/classDiagram-4FO5ZUOK-DphUz-_B.js +1 -0
- package/share/web/dist/assets/classDiagram-v2-Q7XG4LA2-C3w2Tu2D.js +1 -0
- package/share/web/dist/assets/classDiagram-v2-Q7XG4LA2-DVYUx4xg.js +1 -0
- package/share/web/dist/assets/classDiagram-v2-Q7XG4LA2-DphUz-_B.js +1 -0
- package/share/web/dist/assets/cose-bilkent-S5V4N54A-B7oR3DyP.js +1 -0
- package/share/web/dist/assets/cose-bilkent-S5V4N54A-ByytJvz1.js +1 -0
- package/share/web/dist/assets/cose-bilkent-S5V4N54A-WWwvrGFW.js +1 -0
- package/share/web/dist/assets/dagre-BM42HDAG-5YKBUOPT.js +4 -0
- package/share/web/dist/assets/dagre-BM42HDAG-C2MUVJvo.js +4 -0
- package/share/web/dist/assets/dagre-BM42HDAG-C9SDvHaG.js +4 -0
- package/share/web/dist/assets/diagram-2AECGRRQ-BfysOZsZ.js +43 -0
- package/share/web/dist/assets/diagram-2AECGRRQ-DJs4CZTQ.js +43 -0
- package/share/web/dist/assets/diagram-2AECGRRQ-DfNzoPmb.js +43 -0
- package/share/web/dist/assets/diagram-5GNKFQAL-BkzSh7ps.js +10 -0
- package/share/web/dist/assets/diagram-5GNKFQAL-Bu-FwUCF.js +10 -0
- package/share/web/dist/assets/diagram-5GNKFQAL-iGwAHf9j.js +10 -0
- package/share/web/dist/assets/diagram-KO2AKTUF-Co760L_W.js +3 -0
- package/share/web/dist/assets/diagram-KO2AKTUF-D1bl1fOo.js +3 -0
- package/share/web/dist/assets/diagram-KO2AKTUF-D8egQ8Yg.js +3 -0
- package/share/web/dist/assets/diagram-LMA3HP47-CfQVFz42.js +24 -0
- package/share/web/dist/assets/diagram-LMA3HP47-CjFFWCPD.js +24 -0
- package/share/web/dist/assets/diagram-LMA3HP47-DsqAP__t.js +24 -0
- package/share/web/dist/assets/diagram-OG6HWLK6-CIswB7UK.js +24 -0
- package/share/web/dist/assets/diagram-OG6HWLK6-CmTD0mQR.js +24 -0
- package/share/web/dist/assets/diagram-OG6HWLK6-D0YeWj_0.js +24 -0
- package/share/web/dist/assets/erDiagram-TEJ5UH35-C8E_aGnu.js +85 -0
- package/share/web/dist/assets/erDiagram-TEJ5UH35-CQw0Y8z4.js +85 -0
- package/share/web/dist/assets/erDiagram-TEJ5UH35-CsgA00X1.js +85 -0
- package/share/web/dist/assets/flowDiagram-I6XJVG4X-C0fNZZPv.js +162 -0
- package/share/web/dist/assets/flowDiagram-I6XJVG4X-DrEzlHME.js +162 -0
- package/share/web/dist/assets/flowDiagram-I6XJVG4X-veDKCmdm.js +162 -0
- package/share/web/dist/assets/ganttDiagram-6RSMTGT7-CEWKD2PP.js +292 -0
- package/share/web/dist/assets/ganttDiagram-6RSMTGT7-CWXBp3Nv.js +292 -0
- package/share/web/dist/assets/ganttDiagram-6RSMTGT7-ritdFwn_.js +292 -0
- package/share/web/dist/assets/gitGraphDiagram-PVQCEYII-BvrAMgme.js +106 -0
- package/share/web/dist/assets/gitGraphDiagram-PVQCEYII-CgwIjgQp.js +106 -0
- package/share/web/dist/assets/gitGraphDiagram-PVQCEYII-JZ_vZk6r.js +106 -0
- package/share/web/dist/assets/index-BwBZUobi.js +407 -0
- package/share/web/dist/assets/index-CUO5Op8Z.js +407 -0
- package/share/web/dist/assets/index-CfZi-_-W.js +407 -0
- package/share/web/dist/assets/infoDiagram-5YYISTIA-CLX2p5sa.js +2 -0
- package/share/web/dist/assets/infoDiagram-5YYISTIA-DGo9iAf1.js +2 -0
- package/share/web/dist/assets/infoDiagram-5YYISTIA-iPXYbEHR.js +2 -0
- package/share/web/dist/assets/ishikawaDiagram-YF4QCWOH-CC4E2SaA.js +70 -0
- package/share/web/dist/assets/ishikawaDiagram-YF4QCWOH-Dn5q76gw.js +70 -0
- package/share/web/dist/assets/ishikawaDiagram-YF4QCWOH-DrSVzjbw.js +70 -0
- package/share/web/dist/assets/journeyDiagram-JHISSGLW-BSOeJkGp.js +139 -0
- package/share/web/dist/assets/journeyDiagram-JHISSGLW-CfDkxnhu.js +139 -0
- package/share/web/dist/assets/journeyDiagram-JHISSGLW-DBA2RX4C.js +139 -0
- package/share/web/dist/assets/kanban-definition-UN3LZRKU-B5GxlR-1.js +89 -0
- package/share/web/dist/assets/kanban-definition-UN3LZRKU-Bf10Hgev.js +89 -0
- package/share/web/dist/assets/kanban-definition-UN3LZRKU-DVCgdsup.js +89 -0
- package/share/web/dist/assets/linear-Cl0xue9D.js +1 -0
- package/share/web/dist/assets/linear-DA-PRFNX.js +1 -0
- package/share/web/dist/assets/linear-Sc8-3Wjq.js +1 -0
- package/share/web/dist/assets/mindmap-definition-RKZ34NQL-BT-xg-Vd.js +96 -0
- package/share/web/dist/assets/mindmap-definition-RKZ34NQL-C7mBQtCS.js +96 -0
- package/share/web/dist/assets/mindmap-definition-RKZ34NQL-DPETRY9W.js +96 -0
- package/share/web/dist/assets/pieDiagram-4H26LBE5-D0SfOcBp.js +30 -0
- package/share/web/dist/assets/pieDiagram-4H26LBE5-DWsr77WB.js +30 -0
- package/share/web/dist/assets/pieDiagram-4H26LBE5-LJC7tux2.js +30 -0
- package/share/web/dist/assets/quadrantDiagram-W4KKPZXB-CPeinLEK.js +7 -0
- package/share/web/dist/assets/quadrantDiagram-W4KKPZXB-DbWrqYvW.js +7 -0
- package/share/web/dist/assets/quadrantDiagram-W4KKPZXB-ma2mZhGO.js +7 -0
- package/share/web/dist/assets/requirementDiagram-4Y6WPE33-BaQWRwJt.js +84 -0
- package/share/web/dist/assets/requirementDiagram-4Y6WPE33-CIZXNZTm.js +84 -0
- package/share/web/dist/assets/requirementDiagram-4Y6WPE33-DDTvpJUZ.js +84 -0
- package/share/web/dist/assets/sankeyDiagram-5OEKKPKP-DKUJqbyk.js +40 -0
- package/share/web/dist/assets/sankeyDiagram-5OEKKPKP-O34VGoeQ.js +40 -0
- package/share/web/dist/assets/sankeyDiagram-5OEKKPKP-ejOS7WnA.js +40 -0
- package/share/web/dist/assets/sequenceDiagram-3UESZ5HK-B_ejwxM2.js +162 -0
- package/share/web/dist/assets/sequenceDiagram-3UESZ5HK-Cc52z9EG.js +162 -0
- package/share/web/dist/assets/sequenceDiagram-3UESZ5HK-w-6ftIn5.js +162 -0
- package/share/web/dist/assets/stateDiagram-AJRCARHV-CjeYQQJE.js +1 -0
- package/share/web/dist/assets/stateDiagram-AJRCARHV-DMVqBR-k.js +1 -0
- package/share/web/dist/assets/stateDiagram-AJRCARHV-bk2slbvF.js +1 -0
- package/share/web/dist/assets/stateDiagram-v2-BHNVJYJU-BP-EscdR.js +1 -0
- package/share/web/dist/assets/stateDiagram-v2-BHNVJYJU-CmaVLj5D.js +1 -0
- package/share/web/dist/assets/stateDiagram-v2-BHNVJYJU-DuTeNjhj.js +1 -0
- package/share/web/dist/assets/timeline-definition-PNZ67QCA-Be2E3Uyb.js +120 -0
- package/share/web/dist/assets/timeline-definition-PNZ67QCA-Bs_476xO.js +120 -0
- package/share/web/dist/assets/timeline-definition-PNZ67QCA-YAAjhimL.js +120 -0
- package/share/web/dist/assets/vennDiagram-CIIHVFJN-4DBut7gE.js +34 -0
- package/share/web/dist/assets/vennDiagram-CIIHVFJN-BD9aC-Oh.js +34 -0
- package/share/web/dist/assets/vennDiagram-CIIHVFJN-BE0CqvR2.js +34 -0
- package/share/web/dist/assets/wardley-L42UT6IY-CcZCe59P.js +161 -0
- package/share/web/dist/assets/wardley-L42UT6IY-USJaAMFC.js +161 -0
- package/share/web/dist/assets/wardley-L42UT6IY-wgG6Zqzh.js +161 -0
- package/share/web/dist/assets/wardleyDiagram-YWT4CUSO-B9AmK9SN.js +78 -0
- package/share/web/dist/assets/wardleyDiagram-YWT4CUSO-BKldCrWN.js +78 -0
- package/share/web/dist/assets/wardleyDiagram-YWT4CUSO-CQwbXcsV.js +78 -0
- package/share/web/dist/assets/xychartDiagram-2RQKCTM6-D3gg8SrG.js +7 -0
- package/share/web/dist/assets/xychartDiagram-2RQKCTM6-Dsl9_fgE.js +7 -0
- package/share/web/dist/assets/xychartDiagram-2RQKCTM6-HNsiPfKd.js +7 -0
- package/share/web/dist/index.html +1 -1
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import{c as er}from"./index-BwBZUobi.js";var LN=Object.create,pc=Object.defineProperty,DN=Object.getOwnPropertyDescriptor,xh=Object.getOwnPropertyNames,MN=Object.getPrototypeOf,xN=Object.prototype.hasOwnProperty,s=(t,e)=>pc(t,"name",{value:e,configurable:!0}),FN=(t,e)=>function(){return t&&(e=(0,t[xh(t)[0]])(t=0)),e},Y=(t,e)=>function(){return e||(0,t[xh(t)[0]])((e={exports:{}}).exports,e),e.exports},Zr=(t,e)=>{for(var r in e)pc(t,r,{get:e[r],enumerable:!0})},Fh=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of xh(e))!xN.call(t,a)&&a!==r&&pc(t,a,{get:()=>e[a],enumerable:!(n=DN(e,a))||n.enumerable});return t},uf=(t,e,r)=>(Fh(t,e,"default"),r),Gh=(t,e,r)=>(r=t!=null?LN(MN(t)):{},Fh(pc(r,"default",{value:t,enumerable:!0}),t)),jh=t=>Fh(pc({},"__esModule",{value:!0}),t),ff={};Zr(ff,{AnnotatedTextEdit:()=>Tr,ChangeAnnotation:()=>un,ChangeAnnotationIdentifier:()=>Xe,CodeAction:()=>Ap,CodeActionContext:()=>$p,CodeActionKind:()=>Rp,CodeActionTriggerKind:()=>Il,CodeDescription:()=>Zd,CodeLens:()=>Ep,Color:()=>tu,ColorInformation:()=>Wd,ColorPresentation:()=>Vd,Command:()=>cn,CompletionItem:()=>lp,CompletionItemKind:()=>rp,CompletionItemLabelDetails:()=>op,CompletionItemTag:()=>ap,CompletionList:()=>cp,CreateFile:()=>Ta,DeleteFile:()=>$a,Diagnostic:()=>Cl,DiagnosticRelatedInformation:()=>ru,DiagnosticSeverity:()=>Xd,DiagnosticTag:()=>Jd,DocumentHighlight:()=>hp,DocumentHighlightKind:()=>pp,DocumentLink:()=>Cp,DocumentSymbol:()=>Tp,DocumentUri:()=>Bd,EOL:()=>hT,FoldingRange:()=>Yd,FoldingRangeKind:()=>Hd,FormattingOptions:()=>_p,Hover:()=>up,InlayHint:()=>Lp,InlayHintKind:()=>iu,InlayHintLabelPart:()=>su,InlineCompletionContext:()=>jp,InlineCompletionItem:()=>Mp,InlineCompletionList:()=>xp,InlineCompletionTriggerKind:()=>Fp,InlineValueContext:()=>Op,InlineValueEvaluatableExpression:()=>Pp,InlineValueText:()=>Np,InlineValueVariableLookup:()=>kp,InsertReplaceEdit:()=>ip,InsertTextFormat:()=>np,InsertTextMode:()=>sp,Location:()=>_l,LocationLink:()=>qd,MarkedString:()=>wl,MarkupContent:()=>Aa,MarkupKind:()=>au,OptionalVersionedTextDocumentIdentifier:()=>bl,ParameterInformation:()=>fp,Position:()=>ie,Range:()=>ee,RenameFile:()=>Ra,SelectedCompletionInfo:()=>Gp,SelectionRange:()=>Sp,SemanticTokenModifiers:()=>wp,SemanticTokenTypes:()=>bp,SemanticTokens:()=>Ip,SignatureInformation:()=>dp,StringValue:()=>Dp,SymbolInformation:()=>yp,SymbolKind:()=>mp,SymbolTag:()=>gp,TextDocument:()=>zp,TextDocumentEdit:()=>Sl,TextDocumentIdentifier:()=>Qd,TextDocumentItem:()=>tp,TextEdit:()=>rr,URI:()=>eu,VersionedTextDocumentIdentifier:()=>ep,WorkspaceChange:()=>pT,WorkspaceEdit:()=>nu,WorkspaceFolder:()=>Up,WorkspaceSymbol:()=>vp,integer:()=>Kd,uinteger:()=>El});var Bd,eu,Kd,El,ie,ee,_l,qd,tu,Wd,Vd,Hd,Yd,ru,Xd,Jd,Zd,Cl,cn,rr,un,Xe,Tr,Sl,Ta,Ra,$a,nu,pl,Rd,pT,Qd,ep,bl,tp,au,Aa,rp,np,ap,ip,sp,op,lp,cp,wl,up,fp,dp,pp,hp,mp,gp,yp,vp,Tp,Rp,Il,$p,Ap,Ep,_p,Cp,Sp,bp,wp,Ip,Np,kp,Pp,Op,iu,su,Lp,Dp,Mp,xp,Fp,Gp,jp,Up,hT,zp,Ey,E,hc=FN({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var t,e,r,n;(function(a){function i(o){return typeof o=="string"}s(i,"is"),a.is=i})(Bd||(Bd={})),(function(a){function i(o){return typeof o=="string"}s(i,"is"),a.is=i})(eu||(eu={})),(function(a){a.MIN_VALUE=-2147483648,a.MAX_VALUE=2147483647;function i(o){return typeof o=="number"&&a.MIN_VALUE<=o&&o<=a.MAX_VALUE}s(i,"is"),a.is=i})(Kd||(Kd={})),(function(a){a.MIN_VALUE=0,a.MAX_VALUE=2147483647;function i(o){return typeof o=="number"&&a.MIN_VALUE<=o&&o<=a.MAX_VALUE}s(i,"is"),a.is=i})(El||(El={})),(function(a){function i(c,l){return c===Number.MAX_VALUE&&(c=El.MAX_VALUE),l===Number.MAX_VALUE&&(l=El.MAX_VALUE),{line:c,character:l}}s(i,"create"),a.create=i;function o(c){let l=c;return E.objectLiteral(l)&&E.uinteger(l.line)&&E.uinteger(l.character)}s(o,"is"),a.is=o})(ie||(ie={})),(function(a){function i(c,l,u,f){if(E.uinteger(c)&&E.uinteger(l)&&E.uinteger(u)&&E.uinteger(f))return{start:ie.create(c,l),end:ie.create(u,f)};if(ie.is(c)&&ie.is(l))return{start:c,end:l};throw new Error(`Range#create called with invalid arguments[${c}, ${l}, ${u}, ${f}]`)}s(i,"create"),a.create=i;function o(c){let l=c;return E.objectLiteral(l)&&ie.is(l.start)&&ie.is(l.end)}s(o,"is"),a.is=o})(ee||(ee={})),(function(a){function i(c,l){return{uri:c,range:l}}s(i,"create"),a.create=i;function o(c){let l=c;return E.objectLiteral(l)&&ee.is(l.range)&&(E.string(l.uri)||E.undefined(l.uri))}s(o,"is"),a.is=o})(_l||(_l={})),(function(a){function i(c,l,u,f){return{targetUri:c,targetRange:l,targetSelectionRange:u,originSelectionRange:f}}s(i,"create"),a.create=i;function o(c){let l=c;return E.objectLiteral(l)&&ee.is(l.targetRange)&&E.string(l.targetUri)&&ee.is(l.targetSelectionRange)&&(ee.is(l.originSelectionRange)||E.undefined(l.originSelectionRange))}s(o,"is"),a.is=o})(qd||(qd={})),(function(a){function i(c,l,u,f){return{red:c,green:l,blue:u,alpha:f}}s(i,"create"),a.create=i;function o(c){const l=c;return E.objectLiteral(l)&&E.numberRange(l.red,0,1)&&E.numberRange(l.green,0,1)&&E.numberRange(l.blue,0,1)&&E.numberRange(l.alpha,0,1)}s(o,"is"),a.is=o})(tu||(tu={})),(function(a){function i(c,l){return{range:c,color:l}}s(i,"create"),a.create=i;function o(c){const l=c;return E.objectLiteral(l)&&ee.is(l.range)&&tu.is(l.color)}s(o,"is"),a.is=o})(Wd||(Wd={})),(function(a){function i(c,l,u){return{label:c,textEdit:l,additionalTextEdits:u}}s(i,"create"),a.create=i;function o(c){const l=c;return E.objectLiteral(l)&&E.string(l.label)&&(E.undefined(l.textEdit)||rr.is(l))&&(E.undefined(l.additionalTextEdits)||E.typedArray(l.additionalTextEdits,rr.is))}s(o,"is"),a.is=o})(Vd||(Vd={})),(function(a){a.Comment="comment",a.Imports="imports",a.Region="region"})(Hd||(Hd={})),(function(a){function i(c,l,u,f,d,p){const g={startLine:c,endLine:l};return E.defined(u)&&(g.startCharacter=u),E.defined(f)&&(g.endCharacter=f),E.defined(d)&&(g.kind=d),E.defined(p)&&(g.collapsedText=p),g}s(i,"create"),a.create=i;function o(c){const l=c;return E.objectLiteral(l)&&E.uinteger(l.startLine)&&E.uinteger(l.startLine)&&(E.undefined(l.startCharacter)||E.uinteger(l.startCharacter))&&(E.undefined(l.endCharacter)||E.uinteger(l.endCharacter))&&(E.undefined(l.kind)||E.string(l.kind))}s(o,"is"),a.is=o})(Yd||(Yd={})),(function(a){function i(c,l){return{location:c,message:l}}s(i,"create"),a.create=i;function o(c){let l=c;return E.defined(l)&&_l.is(l.location)&&E.string(l.message)}s(o,"is"),a.is=o})(ru||(ru={})),(function(a){a.Error=1,a.Warning=2,a.Information=3,a.Hint=4})(Xd||(Xd={})),(function(a){a.Unnecessary=1,a.Deprecated=2})(Jd||(Jd={})),(function(a){function i(o){const c=o;return E.objectLiteral(c)&&E.string(c.href)}s(i,"is"),a.is=i})(Zd||(Zd={})),(function(a){function i(c,l,u,f,d,p){let g={range:c,message:l};return E.defined(u)&&(g.severity=u),E.defined(f)&&(g.code=f),E.defined(d)&&(g.source=d),E.defined(p)&&(g.relatedInformation=p),g}s(i,"create"),a.create=i;function o(c){var l;let u=c;return E.defined(u)&&ee.is(u.range)&&E.string(u.message)&&(E.number(u.severity)||E.undefined(u.severity))&&(E.integer(u.code)||E.string(u.code)||E.undefined(u.code))&&(E.undefined(u.codeDescription)||E.string((l=u.codeDescription)===null||l===void 0?void 0:l.href))&&(E.string(u.source)||E.undefined(u.source))&&(E.undefined(u.relatedInformation)||E.typedArray(u.relatedInformation,ru.is))}s(o,"is"),a.is=o})(Cl||(Cl={})),(function(a){function i(c,l,...u){let f={title:c,command:l};return E.defined(u)&&u.length>0&&(f.arguments=u),f}s(i,"create"),a.create=i;function o(c){let l=c;return E.defined(l)&&E.string(l.title)&&E.string(l.command)}s(o,"is"),a.is=o})(cn||(cn={})),(function(a){function i(u,f){return{range:u,newText:f}}s(i,"replace"),a.replace=i;function o(u,f){return{range:{start:u,end:u},newText:f}}s(o,"insert"),a.insert=o;function c(u){return{range:u,newText:""}}s(c,"del"),a.del=c;function l(u){const f=u;return E.objectLiteral(f)&&E.string(f.newText)&&ee.is(f.range)}s(l,"is"),a.is=l})(rr||(rr={})),(function(a){function i(c,l,u){const f={label:c};return l!==void 0&&(f.needsConfirmation=l),u!==void 0&&(f.description=u),f}s(i,"create"),a.create=i;function o(c){const l=c;return E.objectLiteral(l)&&E.string(l.label)&&(E.boolean(l.needsConfirmation)||l.needsConfirmation===void 0)&&(E.string(l.description)||l.description===void 0)}s(o,"is"),a.is=o})(un||(un={})),(function(a){function i(o){const c=o;return E.string(c)}s(i,"is"),a.is=i})(Xe||(Xe={})),(function(a){function i(u,f,d){return{range:u,newText:f,annotationId:d}}s(i,"replace"),a.replace=i;function o(u,f,d){return{range:{start:u,end:u},newText:f,annotationId:d}}s(o,"insert"),a.insert=o;function c(u,f){return{range:u,newText:"",annotationId:f}}s(c,"del"),a.del=c;function l(u){const f=u;return rr.is(f)&&(un.is(f.annotationId)||Xe.is(f.annotationId))}s(l,"is"),a.is=l})(Tr||(Tr={})),(function(a){function i(c,l){return{textDocument:c,edits:l}}s(i,"create"),a.create=i;function o(c){let l=c;return E.defined(l)&&bl.is(l.textDocument)&&Array.isArray(l.edits)}s(o,"is"),a.is=o})(Sl||(Sl={})),(function(a){function i(c,l,u){let f={kind:"create",uri:c};return l!==void 0&&(l.overwrite!==void 0||l.ignoreIfExists!==void 0)&&(f.options=l),u!==void 0&&(f.annotationId=u),f}s(i,"create"),a.create=i;function o(c){let l=c;return l&&l.kind==="create"&&E.string(l.uri)&&(l.options===void 0||(l.options.overwrite===void 0||E.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===void 0||E.boolean(l.options.ignoreIfExists)))&&(l.annotationId===void 0||Xe.is(l.annotationId))}s(o,"is"),a.is=o})(Ta||(Ta={})),(function(a){function i(c,l,u,f){let d={kind:"rename",oldUri:c,newUri:l};return u!==void 0&&(u.overwrite!==void 0||u.ignoreIfExists!==void 0)&&(d.options=u),f!==void 0&&(d.annotationId=f),d}s(i,"create"),a.create=i;function o(c){let l=c;return l&&l.kind==="rename"&&E.string(l.oldUri)&&E.string(l.newUri)&&(l.options===void 0||(l.options.overwrite===void 0||E.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===void 0||E.boolean(l.options.ignoreIfExists)))&&(l.annotationId===void 0||Xe.is(l.annotationId))}s(o,"is"),a.is=o})(Ra||(Ra={})),(function(a){function i(c,l,u){let f={kind:"delete",uri:c};return l!==void 0&&(l.recursive!==void 0||l.ignoreIfNotExists!==void 0)&&(f.options=l),u!==void 0&&(f.annotationId=u),f}s(i,"create"),a.create=i;function o(c){let l=c;return l&&l.kind==="delete"&&E.string(l.uri)&&(l.options===void 0||(l.options.recursive===void 0||E.boolean(l.options.recursive))&&(l.options.ignoreIfNotExists===void 0||E.boolean(l.options.ignoreIfNotExists)))&&(l.annotationId===void 0||Xe.is(l.annotationId))}s(o,"is"),a.is=o})($a||($a={})),(function(a){function i(o){let c=o;return c&&(c.changes!==void 0||c.documentChanges!==void 0)&&(c.documentChanges===void 0||c.documentChanges.every(l=>E.string(l.kind)?Ta.is(l)||Ra.is(l)||$a.is(l):Sl.is(l)))}s(i,"is"),a.is=i})(nu||(nu={})),pl=(t=class{constructor(i,o){this.edits=i,this.changeAnnotations=o}insert(i,o,c){let l,u;if(c===void 0?l=rr.insert(i,o):Xe.is(c)?(u=c,l=Tr.insert(i,o,c)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(c),l=Tr.insert(i,o,u)),this.edits.push(l),u!==void 0)return u}replace(i,o,c){let l,u;if(c===void 0?l=rr.replace(i,o):Xe.is(c)?(u=c,l=Tr.replace(i,o,c)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(c),l=Tr.replace(i,o,u)),this.edits.push(l),u!==void 0)return u}delete(i,o){let c,l;if(o===void 0?c=rr.del(i):Xe.is(o)?(l=o,c=Tr.del(i,o)):(this.assertChangeAnnotations(this.changeAnnotations),l=this.changeAnnotations.manage(o),c=Tr.del(i,l)),this.edits.push(c),l!==void 0)return l}add(i){this.edits.push(i)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(i){if(i===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},s(t,"TextEditChangeImpl"),t),Rd=(e=class{constructor(i){this._annotations=i===void 0?Object.create(null):i,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(i,o){let c;if(Xe.is(i)?c=i:(c=this.nextId(),o=i),this._annotations[c]!==void 0)throw new Error(`Id ${c} is already in use.`);if(o===void 0)throw new Error(`No annotation provided for id ${c}`);return this._annotations[c]=o,this._size++,c}nextId(){return this._counter++,this._counter.toString()}},s(e,"ChangeAnnotations"),e),pT=(r=class{constructor(i){this._textEditChanges=Object.create(null),i!==void 0?(this._workspaceEdit=i,i.documentChanges?(this._changeAnnotations=new Rd(i.changeAnnotations),i.changeAnnotations=this._changeAnnotations.all(),i.documentChanges.forEach(o=>{if(Sl.is(o)){const c=new pl(o.edits,this._changeAnnotations);this._textEditChanges[o.textDocument.uri]=c}})):i.changes&&Object.keys(i.changes).forEach(o=>{const c=new pl(i.changes[o]);this._textEditChanges[o]=c})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(i){if(bl.is(i)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const o={uri:i.uri,version:i.version};let c=this._textEditChanges[o.uri];if(!c){const l=[],u={textDocument:o,edits:l};this._workspaceEdit.documentChanges.push(u),c=new pl(l,this._changeAnnotations),this._textEditChanges[o.uri]=c}return c}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let o=this._textEditChanges[i];if(!o){let c=[];this._workspaceEdit.changes[i]=c,o=new pl(c),this._textEditChanges[i]=o}return o}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Rd,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(i,o,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let l;un.is(o)||Xe.is(o)?l=o:c=o;let u,f;if(l===void 0?u=Ta.create(i,c):(f=Xe.is(l)?l:this._changeAnnotations.manage(l),u=Ta.create(i,c,f)),this._workspaceEdit.documentChanges.push(u),f!==void 0)return f}renameFile(i,o,c,l){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;un.is(c)||Xe.is(c)?u=c:l=c;let f,d;if(u===void 0?f=Ra.create(i,o,l):(d=Xe.is(u)?u:this._changeAnnotations.manage(u),f=Ra.create(i,o,l,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d}deleteFile(i,o,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let l;un.is(o)||Xe.is(o)?l=o:c=o;let u,f;if(l===void 0?u=$a.create(i,c):(f=Xe.is(l)?l:this._changeAnnotations.manage(l),u=$a.create(i,c,f)),this._workspaceEdit.documentChanges.push(u),f!==void 0)return f}},s(r,"WorkspaceChange"),r),(function(a){function i(c){return{uri:c}}s(i,"create"),a.create=i;function o(c){let l=c;return E.defined(l)&&E.string(l.uri)}s(o,"is"),a.is=o})(Qd||(Qd={})),(function(a){function i(c,l){return{uri:c,version:l}}s(i,"create"),a.create=i;function o(c){let l=c;return E.defined(l)&&E.string(l.uri)&&E.integer(l.version)}s(o,"is"),a.is=o})(ep||(ep={})),(function(a){function i(c,l){return{uri:c,version:l}}s(i,"create"),a.create=i;function o(c){let l=c;return E.defined(l)&&E.string(l.uri)&&(l.version===null||E.integer(l.version))}s(o,"is"),a.is=o})(bl||(bl={})),(function(a){function i(c,l,u,f){return{uri:c,languageId:l,version:u,text:f}}s(i,"create"),a.create=i;function o(c){let l=c;return E.defined(l)&&E.string(l.uri)&&E.string(l.languageId)&&E.integer(l.version)&&E.string(l.text)}s(o,"is"),a.is=o})(tp||(tp={})),(function(a){a.PlainText="plaintext",a.Markdown="markdown";function i(o){const c=o;return c===a.PlainText||c===a.Markdown}s(i,"is"),a.is=i})(au||(au={})),(function(a){function i(o){const c=o;return E.objectLiteral(o)&&au.is(c.kind)&&E.string(c.value)}s(i,"is"),a.is=i})(Aa||(Aa={})),(function(a){a.Text=1,a.Method=2,a.Function=3,a.Constructor=4,a.Field=5,a.Variable=6,a.Class=7,a.Interface=8,a.Module=9,a.Property=10,a.Unit=11,a.Value=12,a.Enum=13,a.Keyword=14,a.Snippet=15,a.Color=16,a.File=17,a.Reference=18,a.Folder=19,a.EnumMember=20,a.Constant=21,a.Struct=22,a.Event=23,a.Operator=24,a.TypeParameter=25})(rp||(rp={})),(function(a){a.PlainText=1,a.Snippet=2})(np||(np={})),(function(a){a.Deprecated=1})(ap||(ap={})),(function(a){function i(c,l,u){return{newText:c,insert:l,replace:u}}s(i,"create"),a.create=i;function o(c){const l=c;return l&&E.string(l.newText)&&ee.is(l.insert)&&ee.is(l.replace)}s(o,"is"),a.is=o})(ip||(ip={})),(function(a){a.asIs=1,a.adjustIndentation=2})(sp||(sp={})),(function(a){function i(o){const c=o;return c&&(E.string(c.detail)||c.detail===void 0)&&(E.string(c.description)||c.description===void 0)}s(i,"is"),a.is=i})(op||(op={})),(function(a){function i(o){return{label:o}}s(i,"create"),a.create=i})(lp||(lp={})),(function(a){function i(o,c){return{items:o||[],isIncomplete:!!c}}s(i,"create"),a.create=i})(cp||(cp={})),(function(a){function i(c){return c.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}s(i,"fromPlainText"),a.fromPlainText=i;function o(c){const l=c;return E.string(l)||E.objectLiteral(l)&&E.string(l.language)&&E.string(l.value)}s(o,"is"),a.is=o})(wl||(wl={})),(function(a){function i(o){let c=o;return!!c&&E.objectLiteral(c)&&(Aa.is(c.contents)||wl.is(c.contents)||E.typedArray(c.contents,wl.is))&&(o.range===void 0||ee.is(o.range))}s(i,"is"),a.is=i})(up||(up={})),(function(a){function i(o,c){return c?{label:o,documentation:c}:{label:o}}s(i,"create"),a.create=i})(fp||(fp={})),(function(a){function i(o,c,...l){let u={label:o};return E.defined(c)&&(u.documentation=c),E.defined(l)?u.parameters=l:u.parameters=[],u}s(i,"create"),a.create=i})(dp||(dp={})),(function(a){a.Text=1,a.Read=2,a.Write=3})(pp||(pp={})),(function(a){function i(o,c){let l={range:o};return E.number(c)&&(l.kind=c),l}s(i,"create"),a.create=i})(hp||(hp={})),(function(a){a.File=1,a.Module=2,a.Namespace=3,a.Package=4,a.Class=5,a.Method=6,a.Property=7,a.Field=8,a.Constructor=9,a.Enum=10,a.Interface=11,a.Function=12,a.Variable=13,a.Constant=14,a.String=15,a.Number=16,a.Boolean=17,a.Array=18,a.Object=19,a.Key=20,a.Null=21,a.EnumMember=22,a.Struct=23,a.Event=24,a.Operator=25,a.TypeParameter=26})(mp||(mp={})),(function(a){a.Deprecated=1})(gp||(gp={})),(function(a){function i(o,c,l,u,f){let d={name:o,kind:c,location:{uri:u,range:l}};return f&&(d.containerName=f),d}s(i,"create"),a.create=i})(yp||(yp={})),(function(a){function i(o,c,l,u){return u!==void 0?{name:o,kind:c,location:{uri:l,range:u}}:{name:o,kind:c,location:{uri:l}}}s(i,"create"),a.create=i})(vp||(vp={})),(function(a){function i(c,l,u,f,d,p){let g={name:c,detail:l,kind:u,range:f,selectionRange:d};return p!==void 0&&(g.children=p),g}s(i,"create"),a.create=i;function o(c){let l=c;return l&&E.string(l.name)&&E.number(l.kind)&&ee.is(l.range)&&ee.is(l.selectionRange)&&(l.detail===void 0||E.string(l.detail))&&(l.deprecated===void 0||E.boolean(l.deprecated))&&(l.children===void 0||Array.isArray(l.children))&&(l.tags===void 0||Array.isArray(l.tags))}s(o,"is"),a.is=o})(Tp||(Tp={})),(function(a){a.Empty="",a.QuickFix="quickfix",a.Refactor="refactor",a.RefactorExtract="refactor.extract",a.RefactorInline="refactor.inline",a.RefactorRewrite="refactor.rewrite",a.Source="source",a.SourceOrganizeImports="source.organizeImports",a.SourceFixAll="source.fixAll"})(Rp||(Rp={})),(function(a){a.Invoked=1,a.Automatic=2})(Il||(Il={})),(function(a){function i(c,l,u){let f={diagnostics:c};return l!=null&&(f.only=l),u!=null&&(f.triggerKind=u),f}s(i,"create"),a.create=i;function o(c){let l=c;return E.defined(l)&&E.typedArray(l.diagnostics,Cl.is)&&(l.only===void 0||E.typedArray(l.only,E.string))&&(l.triggerKind===void 0||l.triggerKind===Il.Invoked||l.triggerKind===Il.Automatic)}s(o,"is"),a.is=o})($p||($p={})),(function(a){function i(c,l,u){let f={title:c},d=!0;return typeof l=="string"?(d=!1,f.kind=l):cn.is(l)?f.command=l:f.edit=l,d&&u!==void 0&&(f.kind=u),f}s(i,"create"),a.create=i;function o(c){let l=c;return l&&E.string(l.title)&&(l.diagnostics===void 0||E.typedArray(l.diagnostics,Cl.is))&&(l.kind===void 0||E.string(l.kind))&&(l.edit!==void 0||l.command!==void 0)&&(l.command===void 0||cn.is(l.command))&&(l.isPreferred===void 0||E.boolean(l.isPreferred))&&(l.edit===void 0||nu.is(l.edit))}s(o,"is"),a.is=o})(Ap||(Ap={})),(function(a){function i(c,l){let u={range:c};return E.defined(l)&&(u.data=l),u}s(i,"create"),a.create=i;function o(c){let l=c;return E.defined(l)&&ee.is(l.range)&&(E.undefined(l.command)||cn.is(l.command))}s(o,"is"),a.is=o})(Ep||(Ep={})),(function(a){function i(c,l){return{tabSize:c,insertSpaces:l}}s(i,"create"),a.create=i;function o(c){let l=c;return E.defined(l)&&E.uinteger(l.tabSize)&&E.boolean(l.insertSpaces)}s(o,"is"),a.is=o})(_p||(_p={})),(function(a){function i(c,l,u){return{range:c,target:l,data:u}}s(i,"create"),a.create=i;function o(c){let l=c;return E.defined(l)&&ee.is(l.range)&&(E.undefined(l.target)||E.string(l.target))}s(o,"is"),a.is=o})(Cp||(Cp={})),(function(a){function i(c,l){return{range:c,parent:l}}s(i,"create"),a.create=i;function o(c){let l=c;return E.objectLiteral(l)&&ee.is(l.range)&&(l.parent===void 0||a.is(l.parent))}s(o,"is"),a.is=o})(Sp||(Sp={})),(function(a){a.namespace="namespace",a.type="type",a.class="class",a.enum="enum",a.interface="interface",a.struct="struct",a.typeParameter="typeParameter",a.parameter="parameter",a.variable="variable",a.property="property",a.enumMember="enumMember",a.event="event",a.function="function",a.method="method",a.macro="macro",a.keyword="keyword",a.modifier="modifier",a.comment="comment",a.string="string",a.number="number",a.regexp="regexp",a.operator="operator",a.decorator="decorator"})(bp||(bp={})),(function(a){a.declaration="declaration",a.definition="definition",a.readonly="readonly",a.static="static",a.deprecated="deprecated",a.abstract="abstract",a.async="async",a.modification="modification",a.documentation="documentation",a.defaultLibrary="defaultLibrary"})(wp||(wp={})),(function(a){function i(o){const c=o;return E.objectLiteral(c)&&(c.resultId===void 0||typeof c.resultId=="string")&&Array.isArray(c.data)&&(c.data.length===0||typeof c.data[0]=="number")}s(i,"is"),a.is=i})(Ip||(Ip={})),(function(a){function i(c,l){return{range:c,text:l}}s(i,"create"),a.create=i;function o(c){const l=c;return l!=null&&ee.is(l.range)&&E.string(l.text)}s(o,"is"),a.is=o})(Np||(Np={})),(function(a){function i(c,l,u){return{range:c,variableName:l,caseSensitiveLookup:u}}s(i,"create"),a.create=i;function o(c){const l=c;return l!=null&&ee.is(l.range)&&E.boolean(l.caseSensitiveLookup)&&(E.string(l.variableName)||l.variableName===void 0)}s(o,"is"),a.is=o})(kp||(kp={})),(function(a){function i(c,l){return{range:c,expression:l}}s(i,"create"),a.create=i;function o(c){const l=c;return l!=null&&ee.is(l.range)&&(E.string(l.expression)||l.expression===void 0)}s(o,"is"),a.is=o})(Pp||(Pp={})),(function(a){function i(c,l){return{frameId:c,stoppedLocation:l}}s(i,"create"),a.create=i;function o(c){const l=c;return E.defined(l)&&ee.is(c.stoppedLocation)}s(o,"is"),a.is=o})(Op||(Op={})),(function(a){a.Type=1,a.Parameter=2;function i(o){return o===1||o===2}s(i,"is"),a.is=i})(iu||(iu={})),(function(a){function i(c){return{value:c}}s(i,"create"),a.create=i;function o(c){const l=c;return E.objectLiteral(l)&&(l.tooltip===void 0||E.string(l.tooltip)||Aa.is(l.tooltip))&&(l.location===void 0||_l.is(l.location))&&(l.command===void 0||cn.is(l.command))}s(o,"is"),a.is=o})(su||(su={})),(function(a){function i(c,l,u){const f={position:c,label:l};return u!==void 0&&(f.kind=u),f}s(i,"create"),a.create=i;function o(c){const l=c;return E.objectLiteral(l)&&ie.is(l.position)&&(E.string(l.label)||E.typedArray(l.label,su.is))&&(l.kind===void 0||iu.is(l.kind))&&l.textEdits===void 0||E.typedArray(l.textEdits,rr.is)&&(l.tooltip===void 0||E.string(l.tooltip)||Aa.is(l.tooltip))&&(l.paddingLeft===void 0||E.boolean(l.paddingLeft))&&(l.paddingRight===void 0||E.boolean(l.paddingRight))}s(o,"is"),a.is=o})(Lp||(Lp={})),(function(a){function i(o){return{kind:"snippet",value:o}}s(i,"createSnippet"),a.createSnippet=i})(Dp||(Dp={})),(function(a){function i(o,c,l,u){return{insertText:o,filterText:c,range:l,command:u}}s(i,"create"),a.create=i})(Mp||(Mp={})),(function(a){function i(o){return{items:o}}s(i,"create"),a.create=i})(xp||(xp={})),(function(a){a.Invoked=0,a.Automatic=1})(Fp||(Fp={})),(function(a){function i(o,c){return{range:o,text:c}}s(i,"create"),a.create=i})(Gp||(Gp={})),(function(a){function i(o,c){return{triggerKind:o,selectedCompletionInfo:c}}s(i,"create"),a.create=i})(jp||(jp={})),(function(a){function i(o){const c=o;return E.objectLiteral(c)&&eu.is(c.uri)&&E.string(c.name)}s(i,"is"),a.is=i})(Up||(Up={})),hT=[`
|
|
2
|
+
`,`\r
|
|
3
|
+
`,"\r"],(function(a){function i(u,f,d,p){return new Ey(u,f,d,p)}s(i,"create"),a.create=i;function o(u){let f=u;return!!(E.defined(f)&&E.string(f.uri)&&(E.undefined(f.languageId)||E.string(f.languageId))&&E.uinteger(f.lineCount)&&E.func(f.getText)&&E.func(f.positionAt)&&E.func(f.offsetAt))}s(o,"is"),a.is=o;function c(u,f){let d=u.getText(),p=l(f,(m,T)=>{let _=m.range.start.line-T.range.start.line;return _===0?m.range.start.character-T.range.start.character:_}),g=d.length;for(let m=p.length-1;m>=0;m--){let T=p[m],_=u.offsetAt(T.range.start),v=u.offsetAt(T.range.end);if(v<=g)d=d.substring(0,_)+T.newText+d.substring(v,d.length);else throw new Error("Overlapping edit");g=_}return d}s(c,"applyEdits"),a.applyEdits=c;function l(u,f){if(u.length<=1)return u;const d=u.length/2|0,p=u.slice(0,d),g=u.slice(d);l(p,f),l(g,f);let m=0,T=0,_=0;for(;m<p.length&&T<g.length;)f(p[m],g[T])<=0?u[_++]=p[m++]:u[_++]=g[T++];for(;m<p.length;)u[_++]=p[m++];for(;T<g.length;)u[_++]=g[T++];return u}s(l,"mergeSort")})(zp||(zp={})),Ey=(n=class{constructor(i,o,c,l){this._uri=i,this._languageId=o,this._version=c,this._content=l,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(i){if(i){let o=this.offsetAt(i.start),c=this.offsetAt(i.end);return this._content.substring(o,c)}return this._content}update(i,o){this._content=i.text,this._version=o,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let i=[],o=this._content,c=!0;for(let l=0;l<o.length;l++){c&&(i.push(l),c=!1);let u=o.charAt(l);c=u==="\r"||u===`
|
|
4
|
+
`,u==="\r"&&l+1<o.length&&o.charAt(l+1)===`
|
|
5
|
+
`&&l++}c&&o.length>0&&i.push(o.length),this._lineOffsets=i}return this._lineOffsets}positionAt(i){i=Math.max(Math.min(i,this._content.length),0);let o=this.getLineOffsets(),c=0,l=o.length;if(l===0)return ie.create(0,i);for(;c<l;){let f=Math.floor((c+l)/2);o[f]>i?l=f:c=f+1}let u=c-1;return ie.create(u,i-o[u])}offsetAt(i){let o=this.getLineOffsets();if(i.line>=o.length)return this._content.length;if(i.line<0)return 0;let c=o[i.line],l=i.line+1<o.length?o[i.line+1]:this._content.length;return Math.max(Math.min(c+i.character,l),c)}get lineCount(){return this.getLineOffsets().length}},s(n,"FullTextDocument"),n),(function(a){const i=Object.prototype.toString;function o(v){return typeof v<"u"}s(o,"defined"),a.defined=o;function c(v){return typeof v>"u"}s(c,"undefined"),a.undefined=c;function l(v){return v===!0||v===!1}s(l,"boolean"),a.boolean=l;function u(v){return i.call(v)==="[object String]"}s(u,"string"),a.string=u;function f(v){return i.call(v)==="[object Number]"}s(f,"number"),a.number=f;function d(v,w,C){return i.call(v)==="[object Number]"&&w<=v&&v<=C}s(d,"numberRange"),a.numberRange=d;function p(v){return i.call(v)==="[object Number]"&&-2147483648<=v&&v<=2147483647}s(p,"integer"),a.integer=p;function g(v){return i.call(v)==="[object Number]"&&0<=v&&v<=2147483647}s(g,"uinteger"),a.uinteger=g;function m(v){return i.call(v)==="[object Function]"}s(m,"func"),a.func=m;function T(v){return v!==null&&typeof v=="object"}s(T,"objectLiteral"),a.objectLiteral=T;function _(v,w){return Array.isArray(v)&&v.every(w)}s(_,"typedArray"),a.typedArray=_})(E||(E={}))}}),Un=Y({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/ral.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var e;function r(){if(e===void 0)throw new Error("No runtime abstraction layer installed");return e}s(r,"RAL"),(function(n){function a(i){if(i===void 0)throw new Error("No runtime abstraction layer provided");e=i}s(a,"install"),n.install=a})(r||(r={})),t.default=r}}),mc=Y({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/is.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0;function e(l){return l===!0||l===!1}s(e,"boolean"),t.boolean=e;function r(l){return typeof l=="string"||l instanceof String}s(r,"string"),t.string=r;function n(l){return typeof l=="number"||l instanceof Number}s(n,"number"),t.number=n;function a(l){return l instanceof Error}s(a,"error"),t.error=a;function i(l){return typeof l=="function"}s(i,"func"),t.func=i;function o(l){return Array.isArray(l)}s(o,"array"),t.array=o;function c(l){return o(l)&&l.every(u=>r(u))}s(c,"stringArray"),t.stringArray=c}}),Go=Y({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.js"(t){var i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;var e=Un(),r;(function(c){const l={dispose(){}};c.None=function(){return l}})(r||(t.Event=r={}));var n=(i=class{add(l,u=null,f){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(l),this._contexts.push(u),Array.isArray(f)&&f.push({dispose:s(()=>this.remove(l,u),"dispose")})}remove(l,u=null){if(!this._callbacks)return;let f=!1;for(let d=0,p=this._callbacks.length;d<p;d++)if(this._callbacks[d]===l)if(this._contexts[d]===u){this._callbacks.splice(d,1),this._contexts.splice(d,1);return}else f=!0;if(f)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...l){if(!this._callbacks)return[];const u=[],f=this._callbacks.slice(0),d=this._contexts.slice(0);for(let p=0,g=f.length;p<g;p++)try{u.push(f[p].apply(d[p],l))}catch(m){(0,e.default)().console.error(m)}return u}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},s(i,"CallbackList"),i),a=(o=class{constructor(l){this._options=l}get event(){return this._event||(this._event=(l,u,f)=>{this._callbacks||(this._callbacks=new n),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(l,u);const d={dispose:s(()=>{this._callbacks&&(this._callbacks.remove(l,u),d.dispose=o._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(f)&&f.push(d),d}),this._event}fire(l){this._callbacks&&this._callbacks.invoke.call(this._callbacks,l)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}},s(o,"Emitter"),o);t.Emitter=a,a._noop=function(){}}}),df=Y({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(t){var l,u;Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;var e=Un(),r=mc(),n=Go(),a;(function(f){f.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),f.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n.Event.None});function d(p){const g=p;return g&&(g===f.None||g===f.Cancelled||r.boolean(g.isCancellationRequested)&&!!g.onCancellationRequested)}s(d,"is"),f.is=d})(a||(t.CancellationToken=a={}));var i=Object.freeze(function(f,d){const p=(0,e.default)().timer.setTimeout(f.bind(d),0);return{dispose(){p.dispose()}}}),o=(l=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?i:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},s(l,"MutableToken"),l),c=(u=class{get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token.cancel():this._token=a.Cancelled}dispose(){this._token?this._token instanceof o&&this._token.dispose():this._token=a.None}},s(u,"CancellationTokenSource"),u);t.CancellationTokenSource=c}}),mT=Y({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js"(t){var P,S,R,I,$,A,b,O,M,L,j,F,te,U,Q,fe,de,pe,ye,Ie,he,J,Ue,le,He;Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;var e=mc(),r;(function(ve){ve.ParseError=-32700,ve.InvalidRequest=-32600,ve.MethodNotFound=-32601,ve.InvalidParams=-32602,ve.InternalError=-32603,ve.jsonrpcReservedErrorRangeStart=-32099,ve.serverErrorStart=-32099,ve.MessageWriteError=-32099,ve.MessageReadError=-32098,ve.PendingResponseRejected=-32097,ve.ConnectionInactive=-32096,ve.ServerNotInitialized=-32002,ve.UnknownErrorCode=-32001,ve.jsonrpcReservedErrorRangeEnd=-32e3,ve.serverErrorEnd=-32e3})(r||(t.ErrorCodes=r={}));var n=(P=class extends Error{constructor(x,ze,Xt){super(ze),this.code=e.number(x)?x:r.UnknownErrorCode,this.data=Xt,Object.setPrototypeOf(this,P.prototype)}toJson(){const x={code:this.code,message:this.message};return this.data!==void 0&&(x.data=this.data),x}},s(P,"ResponseError"),P);t.ResponseError=n;var a=(S=class{constructor(x){this.kind=x}static is(x){return x===S.auto||x===S.byName||x===S.byPosition}toString(){return this.kind}},s(S,"ParameterStructures"),S);t.ParameterStructures=a,a.auto=new a("auto"),a.byPosition=new a("byPosition"),a.byName=new a("byName");var i=(R=class{constructor(x,ze){this.method=x,this.numberOfParams=ze}get parameterStructures(){return a.auto}},s(R,"AbstractMessageSignature"),R);t.AbstractMessageSignature=i;var o=(I=class extends i{constructor(x){super(x,0)}},s(I,"RequestType0"),I);t.RequestType0=o;var c=($=class extends i{constructor(x,ze=a.auto){super(x,1),this._parameterStructures=ze}get parameterStructures(){return this._parameterStructures}},s($,"RequestType"),$);t.RequestType=c;var l=(A=class extends i{constructor(x,ze=a.auto){super(x,1),this._parameterStructures=ze}get parameterStructures(){return this._parameterStructures}},s(A,"RequestType1"),A);t.RequestType1=l;var u=(b=class extends i{constructor(x){super(x,2)}},s(b,"RequestType2"),b);t.RequestType2=u;var f=(O=class extends i{constructor(x){super(x,3)}},s(O,"RequestType3"),O);t.RequestType3=f;var d=(M=class extends i{constructor(x){super(x,4)}},s(M,"RequestType4"),M);t.RequestType4=d;var p=(L=class extends i{constructor(x){super(x,5)}},s(L,"RequestType5"),L);t.RequestType5=p;var g=(j=class extends i{constructor(x){super(x,6)}},s(j,"RequestType6"),j);t.RequestType6=g;var m=(F=class extends i{constructor(x){super(x,7)}},s(F,"RequestType7"),F);t.RequestType7=m;var T=(te=class extends i{constructor(x){super(x,8)}},s(te,"RequestType8"),te);t.RequestType8=T;var _=(U=class extends i{constructor(x){super(x,9)}},s(U,"RequestType9"),U);t.RequestType9=_;var v=(Q=class extends i{constructor(x,ze=a.auto){super(x,1),this._parameterStructures=ze}get parameterStructures(){return this._parameterStructures}},s(Q,"NotificationType"),Q);t.NotificationType=v;var w=(fe=class extends i{constructor(x){super(x,0)}},s(fe,"NotificationType0"),fe);t.NotificationType0=w;var C=(de=class extends i{constructor(x,ze=a.auto){super(x,1),this._parameterStructures=ze}get parameterStructures(){return this._parameterStructures}},s(de,"NotificationType1"),de);t.NotificationType1=C;var k=(pe=class extends i{constructor(x){super(x,2)}},s(pe,"NotificationType2"),pe);t.NotificationType2=k;var B=(ye=class extends i{constructor(x){super(x,3)}},s(ye,"NotificationType3"),ye);t.NotificationType3=B;var re=(Ie=class extends i{constructor(x){super(x,4)}},s(Ie,"NotificationType4"),Ie);t.NotificationType4=re;var X=(he=class extends i{constructor(x){super(x,5)}},s(he,"NotificationType5"),he);t.NotificationType5=X;var ge=(J=class extends i{constructor(x){super(x,6)}},s(J,"NotificationType6"),J);t.NotificationType6=ge;var Ee=(Ue=class extends i{constructor(x){super(x,7)}},s(Ue,"NotificationType7"),Ue);t.NotificationType7=Ee;var we=(le=class extends i{constructor(x){super(x,8)}},s(le,"NotificationType8"),le);t.NotificationType8=we;var oe=(He=class extends i{constructor(x){super(x,9)}},s(He,"NotificationType9"),He);t.NotificationType9=oe;var tt;(function(ve){function x(Nt){const Te=Nt;return Te&&e.string(Te.method)&&(e.string(Te.id)||e.number(Te.id))}s(x,"isRequest"),ve.isRequest=x;function ze(Nt){const Te=Nt;return Te&&e.string(Te.method)&&Nt.id===void 0}s(ze,"isNotification"),ve.isNotification=ze;function Xt(Nt){const Te=Nt;return Te&&(Te.result!==void 0||!!Te.error)&&(e.string(Te.id)||e.number(Te.id)||Te.id===null)}s(Xt,"isResponse"),ve.isResponse=Xt})(tt||(t.Message=tt={}))}}),gT=Y({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(t){var i,o;var e;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0;var r;(function(c){c.None=0,c.First=1,c.AsOld=c.First,c.Last=2,c.AsNew=c.Last})(r||(t.Touch=r={}));var n=(i=class{constructor(){this[e]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(l){return this._map.has(l)}get(l,u=r.None){const f=this._map.get(l);if(f)return u!==r.None&&this.touch(f,u),f.value}set(l,u,f=r.None){let d=this._map.get(l);if(d)d.value=u,f!==r.None&&this.touch(d,f);else{switch(d={key:l,value:u,next:void 0,previous:void 0},f){case r.None:this.addItemLast(d);break;case r.First:this.addItemFirst(d);break;case r.Last:this.addItemLast(d);break;default:this.addItemLast(d);break}this._map.set(l,d),this._size++}return this}delete(l){return!!this.remove(l)}remove(l){const u=this._map.get(l);if(u)return this._map.delete(l),this.removeItem(u),this._size--,u.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const l=this._head;return this._map.delete(l.key),this.removeItem(l),this._size--,l.value}forEach(l,u){const f=this._state;let d=this._head;for(;d;){if(u?l.bind(u)(d.value,d.key,this):l(d.value,d.key,this),this._state!==f)throw new Error("LinkedMap got modified during iteration.");d=d.next}}keys(){const l=this._state;let u=this._head;const f={[Symbol.iterator]:()=>f,next:s(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(u){const d={value:u.key,done:!1};return u=u.next,d}else return{value:void 0,done:!0}},"next")};return f}values(){const l=this._state;let u=this._head;const f={[Symbol.iterator]:()=>f,next:s(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(u){const d={value:u.value,done:!1};return u=u.next,d}else return{value:void 0,done:!0}},"next")};return f}entries(){const l=this._state;let u=this._head;const f={[Symbol.iterator]:()=>f,next:s(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(u){const d={value:[u.key,u.value],done:!1};return u=u.next,d}else return{value:void 0,done:!0}},"next")};return f}[(e=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(l){if(l>=this.size)return;if(l===0){this.clear();return}let u=this._head,f=this.size;for(;u&&f>l;)this._map.delete(u.key),u=u.next,f--;this._head=u,this._size=f,u&&(u.previous=void 0),this._state++}addItemFirst(l){if(!this._head&&!this._tail)this._tail=l;else if(this._head)l.next=this._head,this._head.previous=l;else throw new Error("Invalid list");this._head=l,this._state++}addItemLast(l){if(!this._head&&!this._tail)this._head=l;else if(this._tail)l.previous=this._tail,this._tail.next=l;else throw new Error("Invalid list");this._tail=l,this._state++}removeItem(l){if(l===this._head&&l===this._tail)this._head=void 0,this._tail=void 0;else if(l===this._head){if(!l.next)throw new Error("Invalid list");l.next.previous=void 0,this._head=l.next}else if(l===this._tail){if(!l.previous)throw new Error("Invalid list");l.previous.next=void 0,this._tail=l.previous}else{const u=l.next,f=l.previous;if(!u||!f)throw new Error("Invalid list");u.previous=f,f.next=u}l.next=void 0,l.previous=void 0,this._state++}touch(l,u){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(u!==r.First&&u!==r.Last)){if(u===r.First){if(l===this._head)return;const f=l.next,d=l.previous;l===this._tail?(d.next=void 0,this._tail=d):(f.previous=d,d.next=f),l.previous=void 0,l.next=this._head,this._head.previous=l,this._head=l,this._state++}else if(u===r.Last){if(l===this._tail)return;const f=l.next,d=l.previous;l===this._head?(f.previous=void 0,this._head=f):(f.previous=d,d.next=f),l.next=void 0,l.previous=this._tail,this._tail.next=l,this._tail=l,this._state++}}}toJSON(){const l=[];return this.forEach((u,f)=>{l.push([f,u])}),l}fromJSON(l){this.clear();for(const[u,f]of l)this.set(u,f)}},s(i,"LinkedMap"),i);t.LinkedMap=n;var a=(o=class extends n{constructor(l,u=1){super(),this._limit=l,this._ratio=Math.min(Math.max(0,u),1)}get limit(){return this._limit}set limit(l){this._limit=l,this.checkTrim()}get ratio(){return this._ratio}set ratio(l){this._ratio=Math.min(Math.max(0,l),1),this.checkTrim()}get(l,u=r.AsNew){return super.get(l,u)}peek(l){return super.get(l,r.None)}set(l,u){return super.set(l,u,r.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}},s(o,"LRUCache"),o);t.LRUCache=a}}),GN=Y({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0;var e;(function(r){function n(a){return{dispose:a}}s(n,"create"),r.create=n})(e||(t.Disposable=e={}))}}),jN=Y({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(t){var c,l,u,f;Object.defineProperty(t,"__esModule",{value:!0}),t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=void 0;var e=df(),r;(function(d){d.Continue=0,d.Cancelled=1})(r||(r={}));var n=(c=class{constructor(){this.buffers=new Map}enableCancellation(p){if(p.id===null)return;const g=new SharedArrayBuffer(4),m=new Int32Array(g,0,1);m[0]=r.Continue,this.buffers.set(p.id,g),p.$cancellationData=g}async sendCancellation(p,g){const m=this.buffers.get(g);if(m===void 0)return;const T=new Int32Array(m,0,1);Atomics.store(T,0,r.Cancelled)}cleanup(p){this.buffers.delete(p)}dispose(){this.buffers.clear()}},s(c,"SharedArraySenderStrategy"),c);t.SharedArraySenderStrategy=n;var a=(l=class{constructor(p){this.data=new Int32Array(p,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},s(l,"SharedArrayBufferCancellationToken"),l),i=(u=class{constructor(p){this.token=new a(p)}cancel(){}dispose(){}},s(u,"SharedArrayBufferCancellationTokenSource"),u),o=(f=class{constructor(){this.kind="request"}createCancellationTokenSource(p){const g=p.$cancellationData;return g===void 0?new e.CancellationTokenSource:new i(g)}},s(f,"SharedArrayReceiverStrategy"),f);t.SharedArrayReceiverStrategy=o}}),yT=Y({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;var e=Un(),r=(n=class{constructor(i=1){if(i<=0)throw new Error("Capacity must be greater than 0");this._capacity=i,this._active=0,this._waiting=[]}lock(i){return new Promise((o,c)=>{this._waiting.push({thunk:i,resolve:o,reject:c}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,e.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;const i=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const o=i.thunk();o instanceof Promise?o.then(c=>{this._active--,i.resolve(c),this.runNext()},c=>{this._active--,i.reject(c),this.runNext()}):(this._active--,i.resolve(o),this.runNext())}catch(o){this._active--,i.reject(o),this.runNext()}}},s(n,"Semaphore"),n);t.Semaphore=r}}),UN=Y({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(t){var u,f;Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;var e=Un(),r=mc(),n=Go(),a=yT(),i;(function(d){function p(g){let m=g;return m&&r.func(m.listen)&&r.func(m.dispose)&&r.func(m.onError)&&r.func(m.onClose)&&r.func(m.onPartialMessage)}s(p,"is"),d.is=p})(i||(t.MessageReader=i={}));var o=(u=class{constructor(){this.errorEmitter=new n.Emitter,this.closeEmitter=new n.Emitter,this.partialMessageEmitter=new n.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(p){this.errorEmitter.fire(this.asError(p))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(p){this.partialMessageEmitter.fire(p)}asError(p){return p instanceof Error?p:new Error(`Reader received error. Reason: ${r.string(p.message)?p.message:"unknown"}`)}},s(u,"AbstractMessageReader"),u);t.AbstractMessageReader=o;var c;(function(d){function p(g){let m,T;const _=new Map;let v;const w=new Map;if(g===void 0||typeof g=="string")m=g??"utf-8";else{if(m=g.charset??"utf-8",g.contentDecoder!==void 0&&(T=g.contentDecoder,_.set(T.name,T)),g.contentDecoders!==void 0)for(const C of g.contentDecoders)_.set(C.name,C);if(g.contentTypeDecoder!==void 0&&(v=g.contentTypeDecoder,w.set(v.name,v)),g.contentTypeDecoders!==void 0)for(const C of g.contentTypeDecoders)w.set(C.name,C)}return v===void 0&&(v=(0,e.default)().applicationJson.decoder,w.set(v.name,v)),{charset:m,contentDecoder:T,contentDecoders:_,contentTypeDecoder:v,contentTypeDecoders:w}}s(p,"fromOptions"),d.fromOptions=p})(c||(c={}));var l=(f=class extends o{constructor(p,g){super(),this.readable=p,this.options=c.fromOptions(g),this.buffer=(0,e.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new a.Semaphore(1)}set partialMessageTimeout(p){this._partialMessageTimeout=p}get partialMessageTimeout(){return this._partialMessageTimeout}listen(p){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=p;const g=this.readable.onData(m=>{this.onData(m)});return this.readable.onError(m=>this.fireError(m)),this.readable.onClose(()=>this.fireClose()),g}onData(p){try{for(this.buffer.append(p);;){if(this.nextMessageLength===-1){const m=this.buffer.tryReadHeaders(!0);if(!m)return;const T=m.get("content-length");if(!T){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
6
|
+
${JSON.stringify(Object.fromEntries(m))}`));return}const _=parseInt(T);if(isNaN(_)){this.fireError(new Error(`Content-Length value must be a number. Got ${T}`));return}this.nextMessageLength=_}const g=this.buffer.tryReadBody(this.nextMessageLength);if(g===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{const m=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(g):g,T=await this.options.contentTypeDecoder.decode(m,this.options);this.callback(T)}).catch(m=>{this.fireError(m)})}}catch(g){this.fireError(g)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,e.default)().timer.setTimeout((p,g)=>{this.partialMessageTimer=void 0,p===this.messageToken&&(this.firePartialMessage({messageToken:p,waitingTime:g}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}},s(f,"ReadableStreamMessageReader"),f);t.ReadableStreamMessageReader=l}}),zN=Y({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(t){var d,p;Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;var e=Un(),r=mc(),n=yT(),a=Go(),i="Content-Length: ",o=`\r
|
|
7
|
+
`,c;(function(g){function m(T){let _=T;return _&&r.func(_.dispose)&&r.func(_.onClose)&&r.func(_.onError)&&r.func(_.write)}s(m,"is"),g.is=m})(c||(t.MessageWriter=c={}));var l=(d=class{constructor(){this.errorEmitter=new a.Emitter,this.closeEmitter=new a.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(m,T,_){this.errorEmitter.fire([this.asError(m),T,_])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(m){return m instanceof Error?m:new Error(`Writer received error. Reason: ${r.string(m.message)?m.message:"unknown"}`)}},s(d,"AbstractMessageWriter"),d);t.AbstractMessageWriter=l;var u;(function(g){function m(T){return T===void 0||typeof T=="string"?{charset:T??"utf-8",contentTypeEncoder:(0,e.default)().applicationJson.encoder}:{charset:T.charset??"utf-8",contentEncoder:T.contentEncoder,contentTypeEncoder:T.contentTypeEncoder??(0,e.default)().applicationJson.encoder}}s(m,"fromOptions"),g.fromOptions=m})(u||(u={}));var f=(p=class extends l{constructor(m,T){super(),this.writable=m,this.options=u.fromOptions(T),this.errorCount=0,this.writeSemaphore=new n.Semaphore(1),this.writable.onError(_=>this.fireError(_)),this.writable.onClose(()=>this.fireClose())}async write(m){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(m,this.options).then(_=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(_):_).then(_=>{const v=[];return v.push(i,_.byteLength.toString(),o),v.push(o),this.doWrite(m,v,_)},_=>{throw this.fireError(_),_}))}async doWrite(m,T,_){try{return await this.writable.write(T.join(""),"ascii"),this.writable.write(_)}catch(v){return this.handleError(v,m),Promise.reject(v)}}handleError(m,T){this.errorCount++,this.fireError(m,T,this.errorCount)}end(){this.writable.end()}},s(p,"WriteableStreamMessageWriter"),p);t.WriteableStreamMessageWriter=f}}),BN=Y({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(t){var i;Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0;var e=13,r=10,n=`\r
|
|
8
|
+
`,a=(i=class{constructor(c="utf-8"){this._encoding=c,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(c){const l=typeof c=="string"?this.fromString(c,this._encoding):c;this._chunks.push(l),this._totalLength+=l.byteLength}tryReadHeaders(c=!1){if(this._chunks.length===0)return;let l=0,u=0,f=0,d=0;e:for(;u<this._chunks.length;){const T=this._chunks[u];for(f=0;f<T.length;){switch(T[f]){case e:switch(l){case 0:l=1;break;case 2:l=3;break;default:l=0}break;case r:switch(l){case 1:l=2;break;case 3:l=4,f++;break e;default:l=0}break;default:l=0}f++}d+=T.byteLength,u++}if(l!==4)return;const p=this._read(d+f),g=new Map,m=this.toString(p,"ascii").split(n);if(m.length<2)return g;for(let T=0;T<m.length-2;T++){const _=m[T],v=_.indexOf(":");if(v===-1)throw new Error(`Message header must separate key and value using ':'
|
|
9
|
+
${_}`);const w=_.substr(0,v),C=_.substr(v+1).trim();g.set(c?w.toLowerCase():w,C)}return g}tryReadBody(c){if(!(this._totalLength<c))return this._read(c)}get numberOfBytes(){return this._totalLength}_read(c){if(c===0)return this.emptyBuffer();if(c>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===c){const d=this._chunks[0];return this._chunks.shift(),this._totalLength-=c,this.asNative(d)}if(this._chunks[0].byteLength>c){const d=this._chunks[0],p=this.asNative(d,c);return this._chunks[0]=d.slice(c),this._totalLength-=c,p}const l=this.allocNative(c);let u=0,f=0;for(;c>0;){const d=this._chunks[f];if(d.byteLength>c){const p=d.slice(0,c);l.set(p,u),u+=c,this._chunks[f]=d.slice(c),this._totalLength-=c,c-=c}else l.set(d,u),u+=d.byteLength,this._chunks.shift(),this._totalLength-=d.byteLength,c-=d.byteLength}return l}},s(i,"AbstractMessageBuffer"),i);t.AbstractMessageBuffer=a}}),KN=Y({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/connection.js"(t){var P,S;Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.ConnectionOptions=t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.RequestCancellationReceiverStrategy=t.IdCancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=t.NullLogger=t.ProgressType=t.ProgressToken=void 0;var e=Un(),r=mc(),n=mT(),a=gT(),i=Go(),o=df(),c;(function(R){R.type=new n.NotificationType("$/cancelRequest")})(c||(c={}));var l;(function(R){function I($){return typeof $=="string"||typeof $=="number"}s(I,"is"),R.is=I})(l||(t.ProgressToken=l={}));var u;(function(R){R.type=new n.NotificationType("$/progress")})(u||(u={}));var f=(P=class{constructor(){}},s(P,"ProgressType"),P);t.ProgressType=f;var d;(function(R){function I($){return r.func($)}s(I,"is"),R.is=I})(d||(d={})),t.NullLogger=Object.freeze({error:s(()=>{},"error"),warn:s(()=>{},"warn"),info:s(()=>{},"info"),log:s(()=>{},"log")});var p;(function(R){R[R.Off=0]="Off",R[R.Messages=1]="Messages",R[R.Compact=2]="Compact",R[R.Verbose=3]="Verbose"})(p||(t.Trace=p={}));var g;(function(R){R.Off="off",R.Messages="messages",R.Compact="compact",R.Verbose="verbose"})(g||(t.TraceValues=g={})),(function(R){function I(A){if(!r.string(A))return R.Off;switch(A=A.toLowerCase(),A){case"off":return R.Off;case"messages":return R.Messages;case"compact":return R.Compact;case"verbose":return R.Verbose;default:return R.Off}}s(I,"fromString"),R.fromString=I;function $(A){switch(A){case R.Off:return"off";case R.Messages:return"messages";case R.Compact:return"compact";case R.Verbose:return"verbose";default:return"off"}}s($,"toString"),R.toString=$})(p||(t.Trace=p={}));var m;(function(R){R.Text="text",R.JSON="json"})(m||(t.TraceFormat=m={})),(function(R){function I($){return r.string($)?($=$.toLowerCase(),$==="json"?R.JSON:R.Text):R.Text}s(I,"fromString"),R.fromString=I})(m||(t.TraceFormat=m={}));var T;(function(R){R.type=new n.NotificationType("$/setTrace")})(T||(t.SetTraceNotification=T={}));var _;(function(R){R.type=new n.NotificationType("$/logTrace")})(_||(t.LogTraceNotification=_={}));var v;(function(R){R[R.Closed=1]="Closed",R[R.Disposed=2]="Disposed",R[R.AlreadyListening=3]="AlreadyListening"})(v||(t.ConnectionErrors=v={}));var w=(S=class extends Error{constructor(I,$){super($),this.code=I,Object.setPrototypeOf(this,S.prototype)}},s(S,"ConnectionError"),S);t.ConnectionError=w;var C;(function(R){function I($){const A=$;return A&&r.func(A.cancelUndispatched)}s(I,"is"),R.is=I})(C||(t.ConnectionStrategy=C={}));var k;(function(R){function I($){const A=$;return A&&(A.kind===void 0||A.kind==="id")&&r.func(A.createCancellationTokenSource)&&(A.dispose===void 0||r.func(A.dispose))}s(I,"is"),R.is=I})(k||(t.IdCancellationReceiverStrategy=k={}));var B;(function(R){function I($){const A=$;return A&&A.kind==="request"&&r.func(A.createCancellationTokenSource)&&(A.dispose===void 0||r.func(A.dispose))}s(I,"is"),R.is=I})(B||(t.RequestCancellationReceiverStrategy=B={}));var re;(function(R){R.Message=Object.freeze({createCancellationTokenSource($){return new o.CancellationTokenSource}});function I($){return k.is($)||B.is($)}s(I,"is"),R.is=I})(re||(t.CancellationReceiverStrategy=re={}));var X;(function(R){R.Message=Object.freeze({sendCancellation($,A){return $.sendNotification(c.type,{id:A})},cleanup($){}});function I($){const A=$;return A&&r.func(A.sendCancellation)&&r.func(A.cleanup)}s(I,"is"),R.is=I})(X||(t.CancellationSenderStrategy=X={}));var ge;(function(R){R.Message=Object.freeze({receiver:re.Message,sender:X.Message});function I($){const A=$;return A&&re.is(A.receiver)&&X.is(A.sender)}s(I,"is"),R.is=I})(ge||(t.CancellationStrategy=ge={}));var Ee;(function(R){function I($){const A=$;return A&&r.func(A.handleMessage)}s(I,"is"),R.is=I})(Ee||(t.MessageStrategy=Ee={}));var we;(function(R){function I($){const A=$;return A&&(ge.is(A.cancellationStrategy)||C.is(A.connectionStrategy)||Ee.is(A.messageStrategy))}s(I,"is"),R.is=I})(we||(t.ConnectionOptions=we={}));var oe;(function(R){R[R.New=1]="New",R[R.Listening=2]="Listening",R[R.Closed=3]="Closed",R[R.Disposed=4]="Disposed"})(oe||(oe={}));function tt(R,I,$,A){const b=$!==void 0?$:t.NullLogger;let O=0,M=0,L=0;const j="2.0";let F;const te=new Map;let U;const Q=new Map,fe=new Map;let de,pe=new a.LinkedMap,ye=new Map,Ie=new Set,he=new Map,J=p.Off,Ue=m.Text,le,He=oe.New;const ve=new i.Emitter,x=new i.Emitter,ze=new i.Emitter,Xt=new i.Emitter,Nt=new i.Emitter,Te=A&&A.cancellationStrategy?A.cancellationStrategy:ge.Message;function la(y){if(y===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+y.toString()}s(la,"createRequestQueueKey");function Xo(y){return y===null?"res-unknown-"+(++L).toString():"res-"+y.toString()}s(Xo,"createResponseQueueKey");function Jo(){return"not-"+(++M).toString()}s(Jo,"createNotificationQueueKey");function Zo(y,N){n.Message.isRequest(N)?y.set(la(N.id),N):n.Message.isResponse(N)?y.set(Xo(N.id),N):y.set(Jo(),N)}s(Zo,"addMessageToQueue");function Qo(y){}s(Qo,"cancelUndispatched");function ca(){return He===oe.Listening}s(ca,"isListening");function ua(){return He===oe.Closed}s(ua,"isClosed");function Jt(){return He===oe.Disposed}s(Jt,"isDisposed");function fa(){(He===oe.New||He===oe.Listening)&&(He=oe.Closed,x.fire(void 0))}s(fa,"closeHandler");function el(y){ve.fire([y,void 0,void 0])}s(el,"readErrorHandler");function tl(y){ve.fire(y)}s(tl,"writeErrorHandler"),R.onClose(fa),R.onError(el),I.onClose(fa),I.onError(tl);function da(){de||pe.size===0||(de=(0,e.default)().timer.setImmediate(()=>{de=void 0,rl()}))}s(da,"triggerMessageQueue");function pa(y){n.Message.isRequest(y)?nl(y):n.Message.isNotification(y)?il(y):n.Message.isResponse(y)?al(y):sl(y)}s(pa,"handleMessage");function rl(){if(pe.size===0)return;const y=pe.shift();try{const N=A?.messageStrategy;Ee.is(N)?N.handleMessage(y,pa):pa(y)}finally{da()}}s(rl,"processMessageQueue");const Dc=s(y=>{try{if(n.Message.isNotification(y)&&y.method===c.type.method){const N=y.params.id,D=la(N),G=pe.get(D);if(n.Message.isRequest(G)){const me=A?.connectionStrategy,Me=me&&me.cancelUndispatched?me.cancelUndispatched(G,Qo):void 0;if(Me&&(Me.error!==void 0||Me.result!==void 0)){pe.delete(D),he.delete(N),Me.id=G.id,Gr(Me,y.method,Date.now()),I.write(Me).catch(()=>b.error("Sending response for canceled message failed."));return}}const _e=he.get(N);if(_e!==void 0){_e.cancel(),nn(y);return}else Ie.add(N)}Zo(pe,y)}finally{da()}},"callback");function nl(y){if(Jt())return;function N(ne,Oe,ce){const Ke={jsonrpc:j,id:y.id};ne instanceof n.ResponseError?Ke.error=ne.toJson():Ke.result=ne===void 0?null:ne,Gr(Ke,Oe,ce),I.write(Ke).catch(()=>b.error("Sending response failed."))}s(N,"reply");function D(ne,Oe,ce){const Ke={jsonrpc:j,id:y.id,error:ne.toJson()};Gr(Ke,Oe,ce),I.write(Ke).catch(()=>b.error("Sending response failed."))}s(D,"replyError");function G(ne,Oe,ce){ne===void 0&&(ne=null);const Ke={jsonrpc:j,id:y.id,result:ne};Gr(Ke,Oe,ce),I.write(Ke).catch(()=>b.error("Sending response failed."))}s(G,"replySuccess"),cl(y);const _e=te.get(y.method);let me,Me;_e&&(me=_e.type,Me=_e.handler);const Ge=Date.now();if(Me||F){const ne=y.id??String(Date.now()),Oe=k.is(Te.receiver)?Te.receiver.createCancellationTokenSource(ne):Te.receiver.createCancellationTokenSource(y);y.id!==null&&Ie.has(y.id)&&Oe.cancel(),y.id!==null&&he.set(ne,Oe);try{let ce;if(Me)if(y.params===void 0){if(me!==void 0&&me.numberOfParams!==0){D(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${y.method} defines ${me.numberOfParams} params but received none.`),y.method,Ge);return}ce=Me(Oe.token)}else if(Array.isArray(y.params)){if(me!==void 0&&me.parameterStructures===n.ParameterStructures.byName){D(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${y.method} defines parameters by name but received parameters by position`),y.method,Ge);return}ce=Me(...y.params,Oe.token)}else{if(me!==void 0&&me.parameterStructures===n.ParameterStructures.byPosition){D(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${y.method} defines parameters by position but received parameters by name`),y.method,Ge);return}ce=Me(y.params,Oe.token)}else F&&(ce=F(y.method,y.params,Oe.token));const Ke=ce;ce?Ke.then?Ke.then(rt=>{he.delete(ne),N(rt,y.method,Ge)},rt=>{he.delete(ne),rt instanceof n.ResponseError?D(rt,y.method,Ge):rt&&r.string(rt.message)?D(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${y.method} failed with message: ${rt.message}`),y.method,Ge):D(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${y.method} failed unexpectedly without providing any details.`),y.method,Ge)}):(he.delete(ne),N(ce,y.method,Ge)):(he.delete(ne),G(ce,y.method,Ge))}catch(ce){he.delete(ne),ce instanceof n.ResponseError?N(ce,y.method,Ge):ce&&r.string(ce.message)?D(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${y.method} failed with message: ${ce.message}`),y.method,Ge):D(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${y.method} failed unexpectedly without providing any details.`),y.method,Ge)}}else D(new n.ResponseError(n.ErrorCodes.MethodNotFound,`Unhandled method ${y.method}`),y.method,Ge)}s(nl,"handleRequest");function al(y){if(!Jt())if(y.id===null)y.error?b.error(`Received response message without id: Error is:
|
|
10
|
+
${JSON.stringify(y.error,void 0,4)}`):b.error("Received response message without id. No further error information provided.");else{const N=y.id,D=ye.get(N);if(ul(y,D),D!==void 0){ye.delete(N);try{if(y.error){const G=y.error;D.reject(new n.ResponseError(G.code,G.message,G.data))}else if(y.result!==void 0)D.resolve(y.result);else throw new Error("Should never happen.")}catch(G){G.message?b.error(`Response handler '${D.method}' failed with message: ${G.message}`):b.error(`Response handler '${D.method}' failed unexpectedly.`)}}}}s(al,"handleResponse");function il(y){if(Jt())return;let N,D;if(y.method===c.type.method){const G=y.params.id;Ie.delete(G),nn(y);return}else{const G=Q.get(y.method);G&&(D=G.handler,N=G.type)}if(D||U)try{if(nn(y),D)if(y.params===void 0)N!==void 0&&N.numberOfParams!==0&&N.parameterStructures!==n.ParameterStructures.byName&&b.error(`Notification ${y.method} defines ${N.numberOfParams} params but received none.`),D();else if(Array.isArray(y.params)){const G=y.params;y.method===u.type.method&&G.length===2&&l.is(G[0])?D({token:G[0],value:G[1]}):(N!==void 0&&(N.parameterStructures===n.ParameterStructures.byName&&b.error(`Notification ${y.method} defines parameters by name but received parameters by position`),N.numberOfParams!==y.params.length&&b.error(`Notification ${y.method} defines ${N.numberOfParams} params but received ${G.length} arguments`)),D(...G))}else N!==void 0&&N.parameterStructures===n.ParameterStructures.byPosition&&b.error(`Notification ${y.method} defines parameters by position but received parameters by name`),D(y.params);else U&&U(y.method,y.params)}catch(G){G.message?b.error(`Notification handler '${y.method}' failed with message: ${G.message}`):b.error(`Notification handler '${y.method}' failed unexpectedly.`)}else ze.fire(y)}s(il,"handleNotification");function sl(y){if(!y){b.error("Received empty message.");return}b.error(`Received message which is neither a response nor a notification message:
|
|
11
|
+
${JSON.stringify(y,null,4)}`);const N=y;if(r.string(N.id)||r.number(N.id)){const D=N.id,G=ye.get(D);G&&G.reject(new Error("The received response has neither a result nor an error property."))}}s(sl,"handleInvalidMessage");function kt(y){if(y!=null)switch(J){case p.Verbose:return JSON.stringify(y,null,4);case p.Compact:return JSON.stringify(y);default:return}}s(kt,"stringifyTrace");function ol(y){if(!(J===p.Off||!le))if(Ue===m.Text){let N;(J===p.Verbose||J===p.Compact)&&y.params&&(N=`Params: ${kt(y.params)}
|
|
12
|
+
|
|
13
|
+
`),le.log(`Sending request '${y.method} - (${y.id})'.`,N)}else Zt("send-request",y)}s(ol,"traceSendingRequest");function ll(y){if(!(J===p.Off||!le))if(Ue===m.Text){let N;(J===p.Verbose||J===p.Compact)&&(y.params?N=`Params: ${kt(y.params)}
|
|
14
|
+
|
|
15
|
+
`:N=`No parameters provided.
|
|
16
|
+
|
|
17
|
+
`),le.log(`Sending notification '${y.method}'.`,N)}else Zt("send-notification",y)}s(ll,"traceSendingNotification");function Gr(y,N,D){if(!(J===p.Off||!le))if(Ue===m.Text){let G;(J===p.Verbose||J===p.Compact)&&(y.error&&y.error.data?G=`Error data: ${kt(y.error.data)}
|
|
18
|
+
|
|
19
|
+
`:y.result?G=`Result: ${kt(y.result)}
|
|
20
|
+
|
|
21
|
+
`:y.error===void 0&&(G=`No result returned.
|
|
22
|
+
|
|
23
|
+
`)),le.log(`Sending response '${N} - (${y.id})'. Processing request took ${Date.now()-D}ms`,G)}else Zt("send-response",y)}s(Gr,"traceSendingResponse");function cl(y){if(!(J===p.Off||!le))if(Ue===m.Text){let N;(J===p.Verbose||J===p.Compact)&&y.params&&(N=`Params: ${kt(y.params)}
|
|
24
|
+
|
|
25
|
+
`),le.log(`Received request '${y.method} - (${y.id})'.`,N)}else Zt("receive-request",y)}s(cl,"traceReceivedRequest");function nn(y){if(!(J===p.Off||!le||y.method===_.type.method))if(Ue===m.Text){let N;(J===p.Verbose||J===p.Compact)&&(y.params?N=`Params: ${kt(y.params)}
|
|
26
|
+
|
|
27
|
+
`:N=`No parameters provided.
|
|
28
|
+
|
|
29
|
+
`),le.log(`Received notification '${y.method}'.`,N)}else Zt("receive-notification",y)}s(nn,"traceReceivedNotification");function ul(y,N){if(!(J===p.Off||!le))if(Ue===m.Text){let D;if((J===p.Verbose||J===p.Compact)&&(y.error&&y.error.data?D=`Error data: ${kt(y.error.data)}
|
|
30
|
+
|
|
31
|
+
`:y.result?D=`Result: ${kt(y.result)}
|
|
32
|
+
|
|
33
|
+
`:y.error===void 0&&(D=`No result returned.
|
|
34
|
+
|
|
35
|
+
`)),N){const G=y.error?` Request failed: ${y.error.message} (${y.error.code}).`:"";le.log(`Received response '${N.method} - (${y.id})' in ${Date.now()-N.timerStart}ms.${G}`,D)}else le.log(`Received response ${y.id} without active response promise.`,D)}else Zt("receive-response",y)}s(ul,"traceReceivedResponse");function Zt(y,N){if(!le||J===p.Off)return;const D={isLSPMessage:!0,type:y,message:N,timestamp:Date.now()};le.log(D)}s(Zt,"logLSPMessage");function yr(){if(ua())throw new w(v.Closed,"Connection is closed.");if(Jt())throw new w(v.Disposed,"Connection is disposed.")}s(yr,"throwIfClosedOrDisposed");function fl(){if(ca())throw new w(v.AlreadyListening,"Connection is already listening")}s(fl,"throwIfListening");function dl(){if(!ca())throw new Error("Call listen() first.")}s(dl,"throwIfNotListening");function h(y){return y===void 0?null:y}s(h,"undefinedToNull");function se(y){if(y!==null)return y}s(se,"nullToUndefined");function Ne(y){return y!=null&&!Array.isArray(y)&&typeof y=="object"}s(Ne,"isNamedParam");function H(y,N){switch(y){case n.ParameterStructures.auto:return Ne(N)?se(N):[h(N)];case n.ParameterStructures.byName:if(!Ne(N))throw new Error("Received parameters by name but param is not an object literal.");return se(N);case n.ParameterStructures.byPosition:return[h(N)];default:throw new Error(`Unknown parameter structure ${y.toString()}`)}}s(H,"computeSingleParam");function Pe(y,N){let D;const G=y.numberOfParams;switch(G){case 0:D=void 0;break;case 1:D=H(y.parameterStructures,N[0]);break;default:D=[];for(let _e=0;_e<N.length&&_e<G;_e++)D.push(h(N[_e]));if(N.length<G)for(let _e=N.length;_e<G;_e++)D.push(null);break}return D}s(Pe,"computeMessageParams");const ha={sendNotification:s((y,...N)=>{yr();let D,G;if(r.string(y)){D=y;const me=N[0];let Me=0,Ge=n.ParameterStructures.auto;n.ParameterStructures.is(me)&&(Me=1,Ge=me);let ne=N.length;const Oe=ne-Me;switch(Oe){case 0:G=void 0;break;case 1:G=H(Ge,N[Me]);break;default:if(Ge===n.ParameterStructures.byName)throw new Error(`Received ${Oe} parameters for 'by Name' notification parameter structure.`);G=N.slice(Me,ne).map(ce=>h(ce));break}}else{const me=N;D=y.method,G=Pe(y,me)}const _e={jsonrpc:j,method:D,params:G};return ll(_e),I.write(_e).catch(me=>{throw b.error("Sending notification failed."),me})},"sendNotification"),onNotification:s((y,N)=>{yr();let D;return r.func(y)?U=y:N&&(r.string(y)?(D=y,Q.set(y,{type:void 0,handler:N})):(D=y.method,Q.set(y.method,{type:y,handler:N}))),{dispose:s(()=>{D!==void 0?Q.delete(D):U=void 0},"dispose")}},"onNotification"),onProgress:s((y,N,D)=>{if(fe.has(N))throw new Error(`Progress handler for token ${N} already registered`);return fe.set(N,D),{dispose:s(()=>{fe.delete(N)},"dispose")}},"onProgress"),sendProgress:s((y,N,D)=>ha.sendNotification(u.type,{token:N,value:D}),"sendProgress"),onUnhandledProgress:Xt.event,sendRequest:s((y,...N)=>{yr(),dl();let D,G,_e;if(r.string(y)){D=y;const ne=N[0],Oe=N[N.length-1];let ce=0,Ke=n.ParameterStructures.auto;n.ParameterStructures.is(ne)&&(ce=1,Ke=ne);let rt=N.length;o.CancellationToken.is(Oe)&&(rt=rt-1,_e=Oe);const Qt=rt-ce;switch(Qt){case 0:G=void 0;break;case 1:G=H(Ke,N[ce]);break;default:if(Ke===n.ParameterStructures.byName)throw new Error(`Received ${Qt} parameters for 'by Name' request parameter structure.`);G=N.slice(ce,rt).map(ON=>h(ON));break}}else{const ne=N;D=y.method,G=Pe(y,ne);const Oe=y.numberOfParams;_e=o.CancellationToken.is(ne[Oe])?ne[Oe]:void 0}const me=O++;let Me;_e&&(Me=_e.onCancellationRequested(()=>{const ne=Te.sender.sendCancellation(ha,me);return ne===void 0?(b.log(`Received no promise from cancellation strategy when cancelling id ${me}`),Promise.resolve()):ne.catch(()=>{b.log(`Sending cancellation messages for id ${me} failed`)})}));const Ge={jsonrpc:j,id:me,method:D,params:G};return ol(Ge),typeof Te.sender.enableCancellation=="function"&&Te.sender.enableCancellation(Ge),new Promise(async(ne,Oe)=>{const ce=s(Qt=>{ne(Qt),Te.sender.cleanup(me),Me?.dispose()},"resolveWithCleanup"),Ke=s(Qt=>{Oe(Qt),Te.sender.cleanup(me),Me?.dispose()},"rejectWithCleanup"),rt={method:D,timerStart:Date.now(),resolve:ce,reject:Ke};try{await I.write(Ge),ye.set(me,rt)}catch(Qt){throw b.error("Sending request failed."),rt.reject(new n.ResponseError(n.ErrorCodes.MessageWriteError,Qt.message?Qt.message:"Unknown reason")),Qt}})},"sendRequest"),onRequest:s((y,N)=>{yr();let D=null;return d.is(y)?(D=void 0,F=y):r.string(y)?(D=null,N!==void 0&&(D=y,te.set(y,{handler:N,type:void 0}))):N!==void 0&&(D=y.method,te.set(y.method,{type:y,handler:N})),{dispose:s(()=>{D!==null&&(D!==void 0?te.delete(D):F=void 0)},"dispose")}},"onRequest"),hasPendingResponse:s(()=>ye.size>0,"hasPendingResponse"),trace:s(async(y,N,D)=>{let G=!1,_e=m.Text;D!==void 0&&(r.boolean(D)?G=D:(G=D.sendNotification||!1,_e=D.traceFormat||m.Text)),J=y,Ue=_e,J===p.Off?le=void 0:le=N,G&&!ua()&&!Jt()&&await ha.sendNotification(T.type,{value:p.toString(y)})},"trace"),onError:ve.event,onClose:x.event,onUnhandledNotification:ze.event,onDispose:Nt.event,end:s(()=>{I.end()},"end"),dispose:s(()=>{if(Jt())return;He=oe.Disposed,Nt.fire(void 0);const y=new n.ResponseError(n.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const N of ye.values())N.reject(y);ye=new Map,he=new Map,Ie=new Set,pe=new a.LinkedMap,r.func(I.dispose)&&I.dispose(),r.func(R.dispose)&&R.dispose()},"dispose"),listen:s(()=>{yr(),fl(),He=oe.Listening,R.listen(Dc)},"listen"),inspect:s(()=>{(0,e.default)().console.log("inspect")},"inspect")};return ha.onNotification(_.type,y=>{if(J===p.Off||!le)return;const N=J===p.Verbose||J===p.Compact;le.log(y.message,N?y.verbose:void 0)}),ha.onNotification(u.type,y=>{const N=fe.get(y.token);N?N(y.value):Xt.fire(y)}),ha}s(tt,"createMessageConnection"),t.createMessageConnection=tt}}),Bp=Y({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/api.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressType=t.ProgressToken=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.AbstractMessageBuffer=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.LRUCache=t.Touch=t.LinkedMap=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.Message=t.RAL=void 0,t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=void 0;var e=mT();Object.defineProperty(t,"Message",{enumerable:!0,get:s(function(){return e.Message},"get")}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:s(function(){return e.RequestType},"get")}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:s(function(){return e.RequestType0},"get")}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:s(function(){return e.RequestType1},"get")}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:s(function(){return e.RequestType2},"get")}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:s(function(){return e.RequestType3},"get")}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:s(function(){return e.RequestType4},"get")}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:s(function(){return e.RequestType5},"get")}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:s(function(){return e.RequestType6},"get")}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:s(function(){return e.RequestType7},"get")}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:s(function(){return e.RequestType8},"get")}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:s(function(){return e.RequestType9},"get")}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:s(function(){return e.ResponseError},"get")}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:s(function(){return e.ErrorCodes},"get")}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:s(function(){return e.NotificationType},"get")}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:s(function(){return e.NotificationType0},"get")}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:s(function(){return e.NotificationType1},"get")}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:s(function(){return e.NotificationType2},"get")}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:s(function(){return e.NotificationType3},"get")}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:s(function(){return e.NotificationType4},"get")}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:s(function(){return e.NotificationType5},"get")}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:s(function(){return e.NotificationType6},"get")}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:s(function(){return e.NotificationType7},"get")}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:s(function(){return e.NotificationType8},"get")}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:s(function(){return e.NotificationType9},"get")}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:s(function(){return e.ParameterStructures},"get")});var r=gT();Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:s(function(){return r.LinkedMap},"get")}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:s(function(){return r.LRUCache},"get")}),Object.defineProperty(t,"Touch",{enumerable:!0,get:s(function(){return r.Touch},"get")});var n=GN();Object.defineProperty(t,"Disposable",{enumerable:!0,get:s(function(){return n.Disposable},"get")});var a=Go();Object.defineProperty(t,"Event",{enumerable:!0,get:s(function(){return a.Event},"get")}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:s(function(){return a.Emitter},"get")});var i=df();Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:s(function(){return i.CancellationTokenSource},"get")}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:s(function(){return i.CancellationToken},"get")});var o=jN();Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:s(function(){return o.SharedArraySenderStrategy},"get")}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:s(function(){return o.SharedArrayReceiverStrategy},"get")});var c=UN();Object.defineProperty(t,"MessageReader",{enumerable:!0,get:s(function(){return c.MessageReader},"get")}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:s(function(){return c.AbstractMessageReader},"get")}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:s(function(){return c.ReadableStreamMessageReader},"get")});var l=zN();Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:s(function(){return l.MessageWriter},"get")}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:s(function(){return l.AbstractMessageWriter},"get")}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:s(function(){return l.WriteableStreamMessageWriter},"get")});var u=BN();Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:s(function(){return u.AbstractMessageBuffer},"get")});var f=KN();Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:s(function(){return f.ConnectionStrategy},"get")}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:s(function(){return f.ConnectionOptions},"get")}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:s(function(){return f.NullLogger},"get")}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:s(function(){return f.createMessageConnection},"get")}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:s(function(){return f.ProgressToken},"get")}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:s(function(){return f.ProgressType},"get")}),Object.defineProperty(t,"Trace",{enumerable:!0,get:s(function(){return f.Trace},"get")}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:s(function(){return f.TraceValues},"get")}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:s(function(){return f.TraceFormat},"get")}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:s(function(){return f.SetTraceNotification},"get")}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:s(function(){return f.LogTraceNotification},"get")}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:s(function(){return f.ConnectionErrors},"get")}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:s(function(){return f.ConnectionError},"get")}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:s(function(){return f.CancellationReceiverStrategy},"get")}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:s(function(){return f.CancellationSenderStrategy},"get")}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:s(function(){return f.CancellationStrategy},"get")}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:s(function(){return f.MessageStrategy},"get")});var d=Un();t.RAL=d.default}}),qN=Y({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/ril.js"(t){var l,u,f;Object.defineProperty(t,"__esModule",{value:!0});var e=Bp(),r=(l=class extends e.AbstractMessageBuffer{constructor(p="utf-8"){super(p),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return l.emptyBuffer}fromString(p,g){return new TextEncoder().encode(p)}toString(p,g){return g==="ascii"?this.asciiDecoder.decode(p):new TextDecoder(g).decode(p)}asNative(p,g){return g===void 0?p:p.slice(0,g)}allocNative(p){return new Uint8Array(p)}},s(l,"MessageBuffer"),l);r.emptyBuffer=new Uint8Array(0);var n=(u=class{constructor(p){this.socket=p,this._onData=new e.Emitter,this._messageListener=g=>{g.data.arrayBuffer().then(T=>{this._onData.fire(new Uint8Array(T))},()=>{(0,e.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(p){return this.socket.addEventListener("close",p),e.Disposable.create(()=>this.socket.removeEventListener("close",p))}onError(p){return this.socket.addEventListener("error",p),e.Disposable.create(()=>this.socket.removeEventListener("error",p))}onEnd(p){return this.socket.addEventListener("end",p),e.Disposable.create(()=>this.socket.removeEventListener("end",p))}onData(p){return this._onData.event(p)}},s(u,"ReadableStreamWrapper"),u),a=(f=class{constructor(p){this.socket=p}onClose(p){return this.socket.addEventListener("close",p),e.Disposable.create(()=>this.socket.removeEventListener("close",p))}onError(p){return this.socket.addEventListener("error",p),e.Disposable.create(()=>this.socket.removeEventListener("error",p))}onEnd(p){return this.socket.addEventListener("end",p),e.Disposable.create(()=>this.socket.removeEventListener("end",p))}write(p,g){if(typeof p=="string"){if(g!==void 0&&g!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${g}`);this.socket.send(p)}else this.socket.send(p);return Promise.resolve()}end(){this.socket.close()}},s(f,"WritableStreamWrapper"),f),i=new TextEncoder,o=Object.freeze({messageBuffer:Object.freeze({create:s(d=>new r(d),"create")}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:s((d,p)=>{if(p.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${p.charset}`);return Promise.resolve(i.encode(JSON.stringify(d,void 0,0)))},"encode")}),decoder:Object.freeze({name:"application/json",decode:s((d,p)=>{if(!(d instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(p.charset).decode(d)))},"decode")})}),stream:Object.freeze({asReadableStream:s(d=>new n(d),"asReadableStream"),asWritableStream:s(d=>new a(d),"asWritableStream")}),console,timer:Object.freeze({setTimeout(d,p,...g){const m=setTimeout(d,p,...g);return{dispose:s(()=>clearTimeout(m),"dispose")}},setImmediate(d,...p){const g=setTimeout(d,0,...p);return{dispose:s(()=>clearTimeout(g),"dispose")}},setInterval(d,p,...g){const m=setInterval(d,p,...g);return{dispose:s(()=>clearInterval(m),"dispose")}}})});function c(){return o}s(c,"RIL"),(function(d){function p(){e.RAL.install(o)}s(p,"install"),d.install=p})(c||(c={})),t.default=c}}),jo=Y({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/main.js"(t){var l,u;var e=t&&t.__createBinding||(Object.create?(function(f,d,p,g){g===void 0&&(g=p);var m=Object.getOwnPropertyDescriptor(d,p);(!m||("get"in m?!d.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:s(function(){return d[p]},"get")}),Object.defineProperty(f,g,m)}):(function(f,d,p,g){g===void 0&&(g=p),f[g]=d[p]})),r=t&&t.__exportStar||function(f,d){for(var p in f)p!=="default"&&!Object.prototype.hasOwnProperty.call(d,p)&&e(d,f,p)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.BrowserMessageWriter=t.BrowserMessageReader=void 0;var n=qN();n.default.install();var a=Bp();r(Bp(),t);var i=(l=class extends a.AbstractMessageReader{constructor(d){super(),this._onData=new a.Emitter,this._messageListener=p=>{this._onData.fire(p.data)},d.addEventListener("error",p=>this.fireError(p)),d.onmessage=this._messageListener}listen(d){return this._onData.event(d)}},s(l,"BrowserMessageReader"),l);t.BrowserMessageReader=i;var o=(u=class extends a.AbstractMessageWriter{constructor(d){super(),this.port=d,this.errorCount=0,d.addEventListener("error",p=>this.fireError(p))}write(d){try{return this.port.postMessage(d),Promise.resolve()}catch(p){return this.handleError(p,d),Promise.reject(p)}}handleError(d,p){this.errorCount++,this.fireError(d,p,this.errorCount)}end(){}},s(u,"BrowserMessageWriter"),u);t.BrowserMessageWriter=o;function c(f,d,p,g){return p===void 0&&(p=a.NullLogger),a.ConnectionStrategy.is(g)&&(g={connectionStrategy:g}),(0,a.createMessageConnection)(f,d,p,g)}s(c,"createMessageConnection"),t.createMessageConnection=c}}),_y=Y({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/browser.js"(t,e){e.exports=jo()}}),De=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(t){var l,u,f,d,p;Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolNotificationType=t.ProtocolNotificationType0=t.ProtocolRequestType=t.ProtocolRequestType0=t.RegistrationType=t.MessageDirection=void 0;var e=jo(),r;(function(g){g.clientToServer="clientToServer",g.serverToClient="serverToClient",g.both="both"})(r||(t.MessageDirection=r={}));var n=(l=class{constructor(m){this.method=m}},s(l,"RegistrationType"),l);t.RegistrationType=n;var a=(u=class extends e.RequestType0{constructor(m){super(m)}},s(u,"ProtocolRequestType0"),u);t.ProtocolRequestType0=a;var i=(f=class extends e.RequestType{constructor(m){super(m,e.ParameterStructures.byName)}},s(f,"ProtocolRequestType"),f);t.ProtocolRequestType=i;var o=(d=class extends e.NotificationType0{constructor(m){super(m)}},s(d,"ProtocolNotificationType0"),d);t.ProtocolNotificationType0=o;var c=(p=class extends e.NotificationType{constructor(m){super(m,e.ParameterStructures.byName)}},s(p,"ProtocolNotificationType"),p);t.ProtocolNotificationType=c}}),Uh=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.objectLiteral=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0;function e(f){return f===!0||f===!1}s(e,"boolean"),t.boolean=e;function r(f){return typeof f=="string"||f instanceof String}s(r,"string"),t.string=r;function n(f){return typeof f=="number"||f instanceof Number}s(n,"number"),t.number=n;function a(f){return f instanceof Error}s(a,"error"),t.error=a;function i(f){return typeof f=="function"}s(i,"func"),t.func=i;function o(f){return Array.isArray(f)}s(o,"array"),t.array=o;function c(f){return o(f)&&f.every(d=>r(d))}s(c,"stringArray"),t.stringArray=c;function l(f,d){return Array.isArray(f)&&f.every(d)}s(l,"typedArray"),t.typedArray=l;function u(f){return f!==null&&typeof f=="object"}s(u,"objectLiteral"),t.objectLiteral=u}}),WN=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationRequest=void 0;var e=De(),r;(function(n){n.method="textDocument/implementation",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.ImplementationRequest=r={}))}}),VN=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionRequest=void 0;var e=De(),r;(function(n){n.method="textDocument/typeDefinition",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.TypeDefinitionRequest=r={}))}}),HN=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=void 0;var e=De(),r;(function(a){a.method="workspace/workspaceFolders",a.messageDirection=e.MessageDirection.serverToClient,a.type=new e.ProtocolRequestType0(a.method)})(r||(t.WorkspaceFoldersRequest=r={}));var n;(function(a){a.method="workspace/didChangeWorkspaceFolders",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolNotificationType(a.method)})(n||(t.DidChangeWorkspaceFoldersNotification=n={}))}}),YN=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationRequest=void 0;var e=De(),r;(function(n){n.method="workspace/configuration",n.messageDirection=e.MessageDirection.serverToClient,n.type=new e.ProtocolRequestType(n.method)})(r||(t.ConfigurationRequest=r={}))}}),XN=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPresentationRequest=t.DocumentColorRequest=void 0;var e=De(),r;(function(a){a.method="textDocument/documentColor",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(r||(t.DocumentColorRequest=r={}));var n;(function(a){a.method="textDocument/colorPresentation",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(n||(t.ColorPresentationRequest=n={}))}}),JN=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=void 0;var e=De(),r;(function(a){a.method="textDocument/foldingRange",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(r||(t.FoldingRangeRequest=r={}));var n;(function(a){a.method="workspace/foldingRange/refresh",a.messageDirection=e.MessageDirection.serverToClient,a.type=new e.ProtocolRequestType0(a.method)})(n||(t.FoldingRangeRefreshRequest=n={}))}}),ZN=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationRequest=void 0;var e=De(),r;(function(n){n.method="textDocument/declaration",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.DeclarationRequest=r={}))}}),QN=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeRequest=void 0;var e=De(),r;(function(n){n.method="textDocument/selectionRange",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.SelectionRangeRequest=r={}))}}),ek=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=void 0;var e=jo(),r=De(),n;(function(o){o.type=new e.ProgressType;function c(l){return l===o.type}s(c,"is"),o.is=c})(n||(t.WorkDoneProgress=n={}));var a;(function(o){o.method="window/workDoneProgress/create",o.messageDirection=r.MessageDirection.serverToClient,o.type=new r.ProtocolRequestType(o.method)})(a||(t.WorkDoneProgressCreateRequest=a={}));var i;(function(o){o.method="window/workDoneProgress/cancel",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolNotificationType(o.method)})(i||(t.WorkDoneProgressCancelNotification=i={}))}}),tk=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.CallHierarchyPrepareRequest=void 0;var e=De(),r;(function(i){i.method="textDocument/prepareCallHierarchy",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(r||(t.CallHierarchyPrepareRequest=r={}));var n;(function(i){i.method="callHierarchy/incomingCalls",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(n||(t.CallHierarchyIncomingCallsRequest=n={}));var a;(function(i){i.method="callHierarchy/outgoingCalls",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(a||(t.CallHierarchyOutgoingCallsRequest=a={}))}}),rk=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.SemanticTokensRegistrationType=t.TokenFormat=void 0;var e=De(),r;(function(l){l.Relative="relative"})(r||(t.TokenFormat=r={}));var n;(function(l){l.method="textDocument/semanticTokens",l.type=new e.RegistrationType(l.method)})(n||(t.SemanticTokensRegistrationType=n={}));var a;(function(l){l.method="textDocument/semanticTokens/full",l.messageDirection=e.MessageDirection.clientToServer,l.type=new e.ProtocolRequestType(l.method),l.registrationMethod=n.method})(a||(t.SemanticTokensRequest=a={}));var i;(function(l){l.method="textDocument/semanticTokens/full/delta",l.messageDirection=e.MessageDirection.clientToServer,l.type=new e.ProtocolRequestType(l.method),l.registrationMethod=n.method})(i||(t.SemanticTokensDeltaRequest=i={}));var o;(function(l){l.method="textDocument/semanticTokens/range",l.messageDirection=e.MessageDirection.clientToServer,l.type=new e.ProtocolRequestType(l.method),l.registrationMethod=n.method})(o||(t.SemanticTokensRangeRequest=o={}));var c;(function(l){l.method="workspace/semanticTokens/refresh",l.messageDirection=e.MessageDirection.serverToClient,l.type=new e.ProtocolRequestType0(l.method)})(c||(t.SemanticTokensRefreshRequest=c={}))}}),nk=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentRequest=void 0;var e=De(),r;(function(n){n.method="window/showDocument",n.messageDirection=e.MessageDirection.serverToClient,n.type=new e.ProtocolRequestType(n.method)})(r||(t.ShowDocumentRequest=r={}))}}),ak=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeRequest=void 0;var e=De(),r;(function(n){n.method="textDocument/linkedEditingRange",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.LinkedEditingRangeRequest=r={}))}}),ik=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.DidRenameFilesNotification=t.WillRenameFilesRequest=t.DidCreateFilesNotification=t.WillCreateFilesRequest=t.FileOperationPatternKind=void 0;var e=De(),r;(function(u){u.file="file",u.folder="folder"})(r||(t.FileOperationPatternKind=r={}));var n;(function(u){u.method="workspace/willCreateFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolRequestType(u.method)})(n||(t.WillCreateFilesRequest=n={}));var a;(function(u){u.method="workspace/didCreateFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolNotificationType(u.method)})(a||(t.DidCreateFilesNotification=a={}));var i;(function(u){u.method="workspace/willRenameFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolRequestType(u.method)})(i||(t.WillRenameFilesRequest=i={}));var o;(function(u){u.method="workspace/didRenameFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolNotificationType(u.method)})(o||(t.DidRenameFilesNotification=o={}));var c;(function(u){u.method="workspace/didDeleteFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolNotificationType(u.method)})(c||(t.DidDeleteFilesNotification=c={}));var l;(function(u){u.method="workspace/willDeleteFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolRequestType(u.method)})(l||(t.WillDeleteFilesRequest=l={}))}}),sk=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=void 0;var e=De(),r;(function(i){i.document="document",i.project="project",i.group="group",i.scheme="scheme",i.global="global"})(r||(t.UniquenessLevel=r={}));var n;(function(i){i.$import="import",i.$export="export",i.local="local"})(n||(t.MonikerKind=n={}));var a;(function(i){i.method="textDocument/moniker",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(a||(t.MonikerRequest=a={}))}}),ok=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchySubtypesRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchyPrepareRequest=void 0;var e=De(),r;(function(i){i.method="textDocument/prepareTypeHierarchy",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(r||(t.TypeHierarchyPrepareRequest=r={}));var n;(function(i){i.method="typeHierarchy/supertypes",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(n||(t.TypeHierarchySupertypesRequest=n={}));var a;(function(i){i.method="typeHierarchy/subtypes",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(a||(t.TypeHierarchySubtypesRequest=a={}))}}),lk=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueRefreshRequest=t.InlineValueRequest=void 0;var e=De(),r;(function(a){a.method="textDocument/inlineValue",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(r||(t.InlineValueRequest=r={}));var n;(function(a){a.method="workspace/inlineValue/refresh",a.messageDirection=e.MessageDirection.serverToClient,a.type=new e.ProtocolRequestType0(a.method)})(n||(t.InlineValueRefreshRequest=n={}))}}),ck=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=void 0;var e=De(),r;(function(i){i.method="textDocument/inlayHint",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(r||(t.InlayHintRequest=r={}));var n;(function(i){i.method="inlayHint/resolve",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(n||(t.InlayHintResolveRequest=n={}));var a;(function(i){i.method="workspace/inlayHint/refresh",i.messageDirection=e.MessageDirection.serverToClient,i.type=new e.ProtocolRequestType0(i.method)})(a||(t.InlayHintRefreshRequest=a={}))}}),uk=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=void 0;var e=jo(),r=Uh(),n=De(),a;(function(u){function f(d){const p=d;return p&&r.boolean(p.retriggerRequest)}s(f,"is"),u.is=f})(a||(t.DiagnosticServerCancellationData=a={}));var i;(function(u){u.Full="full",u.Unchanged="unchanged"})(i||(t.DocumentDiagnosticReportKind=i={}));var o;(function(u){u.method="textDocument/diagnostic",u.messageDirection=n.MessageDirection.clientToServer,u.type=new n.ProtocolRequestType(u.method),u.partialResult=new e.ProgressType})(o||(t.DocumentDiagnosticRequest=o={}));var c;(function(u){u.method="workspace/diagnostic",u.messageDirection=n.MessageDirection.clientToServer,u.type=new n.ProtocolRequestType(u.method),u.partialResult=new e.ProgressType})(c||(t.WorkspaceDiagnosticRequest=c={}));var l;(function(u){u.method="workspace/diagnostic/refresh",u.messageDirection=n.MessageDirection.serverToClient,u.type=new n.ProtocolRequestType0(u.method)})(l||(t.DiagnosticRefreshRequest=l={}))}}),fk=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=void 0;var e=(hc(),jh(ff)),r=Uh(),n=De(),a;(function(m){m.Markup=1,m.Code=2;function T(_){return _===1||_===2}s(T,"is"),m.is=T})(a||(t.NotebookCellKind=a={}));var i;(function(m){function T(w,C){const k={executionOrder:w};return(C===!0||C===!1)&&(k.success=C),k}s(T,"create"),m.create=T;function _(w){const C=w;return r.objectLiteral(C)&&e.uinteger.is(C.executionOrder)&&(C.success===void 0||r.boolean(C.success))}s(_,"is"),m.is=_;function v(w,C){return w===C?!0:w==null||C===null||C===void 0?!1:w.executionOrder===C.executionOrder&&w.success===C.success}s(v,"equals"),m.equals=v})(i||(t.ExecutionSummary=i={}));var o;(function(m){function T(C,k){return{kind:C,document:k}}s(T,"create"),m.create=T;function _(C){const k=C;return r.objectLiteral(k)&&a.is(k.kind)&&e.DocumentUri.is(k.document)&&(k.metadata===void 0||r.objectLiteral(k.metadata))}s(_,"is"),m.is=_;function v(C,k){const B=new Set;return C.document!==k.document&&B.add("document"),C.kind!==k.kind&&B.add("kind"),C.executionSummary!==k.executionSummary&&B.add("executionSummary"),(C.metadata!==void 0||k.metadata!==void 0)&&!w(C.metadata,k.metadata)&&B.add("metadata"),(C.executionSummary!==void 0||k.executionSummary!==void 0)&&!i.equals(C.executionSummary,k.executionSummary)&&B.add("executionSummary"),B}s(v,"diff"),m.diff=v;function w(C,k){if(C===k)return!0;if(C==null||k===null||k===void 0||typeof C!=typeof k||typeof C!="object")return!1;const B=Array.isArray(C),re=Array.isArray(k);if(B!==re)return!1;if(B&&re){if(C.length!==k.length)return!1;for(let X=0;X<C.length;X++)if(!w(C[X],k[X]))return!1}if(r.objectLiteral(C)&&r.objectLiteral(k)){const X=Object.keys(C),ge=Object.keys(k);if(X.length!==ge.length||(X.sort(),ge.sort(),!w(X,ge)))return!1;for(let Ee=0;Ee<X.length;Ee++){const we=X[Ee];if(!w(C[we],k[we]))return!1}}return!0}s(w,"equalsMetadata")})(o||(t.NotebookCell=o={}));var c;(function(m){function T(v,w,C,k){return{uri:v,notebookType:w,version:C,cells:k}}s(T,"create"),m.create=T;function _(v){const w=v;return r.objectLiteral(w)&&r.string(w.uri)&&e.integer.is(w.version)&&r.typedArray(w.cells,o.is)}s(_,"is"),m.is=_})(c||(t.NotebookDocument=c={}));var l;(function(m){m.method="notebookDocument/sync",m.messageDirection=n.MessageDirection.clientToServer,m.type=new n.RegistrationType(m.method)})(l||(t.NotebookDocumentSyncRegistrationType=l={}));var u;(function(m){m.method="notebookDocument/didOpen",m.messageDirection=n.MessageDirection.clientToServer,m.type=new n.ProtocolNotificationType(m.method),m.registrationMethod=l.method})(u||(t.DidOpenNotebookDocumentNotification=u={}));var f;(function(m){function T(v){const w=v;return r.objectLiteral(w)&&e.uinteger.is(w.start)&&e.uinteger.is(w.deleteCount)&&(w.cells===void 0||r.typedArray(w.cells,o.is))}s(T,"is"),m.is=T;function _(v,w,C){const k={start:v,deleteCount:w};return C!==void 0&&(k.cells=C),k}s(_,"create"),m.create=_})(f||(t.NotebookCellArrayChange=f={}));var d;(function(m){m.method="notebookDocument/didChange",m.messageDirection=n.MessageDirection.clientToServer,m.type=new n.ProtocolNotificationType(m.method),m.registrationMethod=l.method})(d||(t.DidChangeNotebookDocumentNotification=d={}));var p;(function(m){m.method="notebookDocument/didSave",m.messageDirection=n.MessageDirection.clientToServer,m.type=new n.ProtocolNotificationType(m.method),m.registrationMethod=l.method})(p||(t.DidSaveNotebookDocumentNotification=p={}));var g;(function(m){m.method="notebookDocument/didClose",m.messageDirection=n.MessageDirection.clientToServer,m.type=new n.ProtocolNotificationType(m.method),m.registrationMethod=l.method})(g||(t.DidCloseNotebookDocumentNotification=g={}))}}),dk=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.InlineCompletionRequest=void 0;var e=De(),r;(function(n){n.method="textDocument/inlineCompletion",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.InlineCompletionRequest=r={}))}}),pk=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSymbolRequest=t.CodeActionResolveRequest=t.CodeActionRequest=t.DocumentSymbolRequest=t.DocumentHighlightRequest=t.ReferencesRequest=t.DefinitionRequest=t.SignatureHelpRequest=t.SignatureHelpTriggerKind=t.HoverRequest=t.CompletionResolveRequest=t.CompletionRequest=t.CompletionTriggerKind=t.PublishDiagnosticsNotification=t.WatchKind=t.RelativePattern=t.FileChangeType=t.DidChangeWatchedFilesNotification=t.WillSaveTextDocumentWaitUntilRequest=t.WillSaveTextDocumentNotification=t.TextDocumentSaveReason=t.DidSaveTextDocumentNotification=t.DidCloseTextDocumentNotification=t.DidChangeTextDocumentNotification=t.TextDocumentContentChangeEvent=t.DidOpenTextDocumentNotification=t.TextDocumentSyncKind=t.TelemetryEventNotification=t.LogMessageNotification=t.ShowMessageRequest=t.ShowMessageNotification=t.MessageType=t.DidChangeConfigurationNotification=t.ExitNotification=t.ShutdownRequest=t.InitializedNotification=t.InitializeErrorCodes=t.InitializeRequest=t.WorkDoneProgressOptions=t.TextDocumentRegistrationOptions=t.StaticRegistrationOptions=t.PositionEncodingKind=t.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.NotebookCellTextDocumentFilter=t.NotebookDocumentFilter=t.TextDocumentFilter=void 0,t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.WillRenameFilesRequest=t.DidRenameFilesNotification=t.WillCreateFilesRequest=t.DidCreateFilesNotification=t.FileOperationPatternKind=t.LinkedEditingRangeRequest=t.ShowDocumentRequest=t.SemanticTokensRegistrationType=t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.TokenFormat=t.CallHierarchyPrepareRequest=t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=t.SelectionRangeRequest=t.DeclarationRequest=t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=t.ColorPresentationRequest=t.DocumentColorRequest=t.ConfigurationRequest=t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=t.TypeDefinitionRequest=t.ImplementationRequest=t.ApplyWorkspaceEditRequest=t.ExecuteCommandRequest=t.PrepareRenameRequest=t.RenameRequest=t.PrepareSupportDefaultBehavior=t.DocumentOnTypeFormattingRequest=t.DocumentRangesFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolResolveRequest=void 0,t.InlineCompletionRequest=t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=t.InlineValueRefreshRequest=t.InlineValueRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchySubtypesRequest=t.TypeHierarchyPrepareRequest=void 0;var e=De(),r=(hc(),jh(ff)),n=Uh(),a=WN();Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:s(function(){return a.ImplementationRequest},"get")});var i=VN();Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:s(function(){return i.TypeDefinitionRequest},"get")});var o=HN();Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:s(function(){return o.WorkspaceFoldersRequest},"get")}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:s(function(){return o.DidChangeWorkspaceFoldersNotification},"get")});var c=YN();Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:s(function(){return c.ConfigurationRequest},"get")});var l=XN();Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:s(function(){return l.DocumentColorRequest},"get")}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:s(function(){return l.ColorPresentationRequest},"get")});var u=JN();Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:s(function(){return u.FoldingRangeRequest},"get")}),Object.defineProperty(t,"FoldingRangeRefreshRequest",{enumerable:!0,get:s(function(){return u.FoldingRangeRefreshRequest},"get")});var f=ZN();Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:s(function(){return f.DeclarationRequest},"get")});var d=QN();Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:s(function(){return d.SelectionRangeRequest},"get")});var p=ek();Object.defineProperty(t,"WorkDoneProgress",{enumerable:!0,get:s(function(){return p.WorkDoneProgress},"get")}),Object.defineProperty(t,"WorkDoneProgressCreateRequest",{enumerable:!0,get:s(function(){return p.WorkDoneProgressCreateRequest},"get")}),Object.defineProperty(t,"WorkDoneProgressCancelNotification",{enumerable:!0,get:s(function(){return p.WorkDoneProgressCancelNotification},"get")});var g=tk();Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:s(function(){return g.CallHierarchyIncomingCallsRequest},"get")}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:s(function(){return g.CallHierarchyOutgoingCallsRequest},"get")}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:s(function(){return g.CallHierarchyPrepareRequest},"get")});var m=rk();Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:s(function(){return m.TokenFormat},"get")}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:s(function(){return m.SemanticTokensRequest},"get")}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:s(function(){return m.SemanticTokensDeltaRequest},"get")}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:s(function(){return m.SemanticTokensRangeRequest},"get")}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:s(function(){return m.SemanticTokensRefreshRequest},"get")}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:s(function(){return m.SemanticTokensRegistrationType},"get")});var T=nk();Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:s(function(){return T.ShowDocumentRequest},"get")});var _=ak();Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:s(function(){return _.LinkedEditingRangeRequest},"get")});var v=ik();Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:s(function(){return v.FileOperationPatternKind},"get")}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:s(function(){return v.DidCreateFilesNotification},"get")}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:s(function(){return v.WillCreateFilesRequest},"get")}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:s(function(){return v.DidRenameFilesNotification},"get")}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:s(function(){return v.WillRenameFilesRequest},"get")}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:s(function(){return v.DidDeleteFilesNotification},"get")}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:s(function(){return v.WillDeleteFilesRequest},"get")});var w=sk();Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:s(function(){return w.UniquenessLevel},"get")}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:s(function(){return w.MonikerKind},"get")}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:s(function(){return w.MonikerRequest},"get")});var C=ok();Object.defineProperty(t,"TypeHierarchyPrepareRequest",{enumerable:!0,get:s(function(){return C.TypeHierarchyPrepareRequest},"get")}),Object.defineProperty(t,"TypeHierarchySubtypesRequest",{enumerable:!0,get:s(function(){return C.TypeHierarchySubtypesRequest},"get")}),Object.defineProperty(t,"TypeHierarchySupertypesRequest",{enumerable:!0,get:s(function(){return C.TypeHierarchySupertypesRequest},"get")});var k=lk();Object.defineProperty(t,"InlineValueRequest",{enumerable:!0,get:s(function(){return k.InlineValueRequest},"get")}),Object.defineProperty(t,"InlineValueRefreshRequest",{enumerable:!0,get:s(function(){return k.InlineValueRefreshRequest},"get")});var B=ck();Object.defineProperty(t,"InlayHintRequest",{enumerable:!0,get:s(function(){return B.InlayHintRequest},"get")}),Object.defineProperty(t,"InlayHintResolveRequest",{enumerable:!0,get:s(function(){return B.InlayHintResolveRequest},"get")}),Object.defineProperty(t,"InlayHintRefreshRequest",{enumerable:!0,get:s(function(){return B.InlayHintRefreshRequest},"get")});var re=uk();Object.defineProperty(t,"DiagnosticServerCancellationData",{enumerable:!0,get:s(function(){return re.DiagnosticServerCancellationData},"get")}),Object.defineProperty(t,"DocumentDiagnosticReportKind",{enumerable:!0,get:s(function(){return re.DocumentDiagnosticReportKind},"get")}),Object.defineProperty(t,"DocumentDiagnosticRequest",{enumerable:!0,get:s(function(){return re.DocumentDiagnosticRequest},"get")}),Object.defineProperty(t,"WorkspaceDiagnosticRequest",{enumerable:!0,get:s(function(){return re.WorkspaceDiagnosticRequest},"get")}),Object.defineProperty(t,"DiagnosticRefreshRequest",{enumerable:!0,get:s(function(){return re.DiagnosticRefreshRequest},"get")});var X=fk();Object.defineProperty(t,"NotebookCellKind",{enumerable:!0,get:s(function(){return X.NotebookCellKind},"get")}),Object.defineProperty(t,"ExecutionSummary",{enumerable:!0,get:s(function(){return X.ExecutionSummary},"get")}),Object.defineProperty(t,"NotebookCell",{enumerable:!0,get:s(function(){return X.NotebookCell},"get")}),Object.defineProperty(t,"NotebookDocument",{enumerable:!0,get:s(function(){return X.NotebookDocument},"get")}),Object.defineProperty(t,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:s(function(){return X.NotebookDocumentSyncRegistrationType},"get")}),Object.defineProperty(t,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:s(function(){return X.DidOpenNotebookDocumentNotification},"get")}),Object.defineProperty(t,"NotebookCellArrayChange",{enumerable:!0,get:s(function(){return X.NotebookCellArrayChange},"get")}),Object.defineProperty(t,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:s(function(){return X.DidChangeNotebookDocumentNotification},"get")}),Object.defineProperty(t,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:s(function(){return X.DidSaveNotebookDocumentNotification},"get")}),Object.defineProperty(t,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:s(function(){return X.DidCloseNotebookDocumentNotification},"get")});var ge=dk();Object.defineProperty(t,"InlineCompletionRequest",{enumerable:!0,get:s(function(){return ge.InlineCompletionRequest},"get")});var Ee;(function(h){function se(Ne){const H=Ne;return n.string(H)||n.string(H.language)||n.string(H.scheme)||n.string(H.pattern)}s(se,"is"),h.is=se})(Ee||(t.TextDocumentFilter=Ee={}));var we;(function(h){function se(Ne){const H=Ne;return n.objectLiteral(H)&&(n.string(H.notebookType)||n.string(H.scheme)||n.string(H.pattern))}s(se,"is"),h.is=se})(we||(t.NotebookDocumentFilter=we={}));var oe;(function(h){function se(Ne){const H=Ne;return n.objectLiteral(H)&&(n.string(H.notebook)||we.is(H.notebook))&&(H.language===void 0||n.string(H.language))}s(se,"is"),h.is=se})(oe||(t.NotebookCellTextDocumentFilter=oe={}));var tt;(function(h){function se(Ne){if(!Array.isArray(Ne))return!1;for(let H of Ne)if(!n.string(H)&&!Ee.is(H)&&!oe.is(H))return!1;return!0}s(se,"is"),h.is=se})(tt||(t.DocumentSelector=tt={}));var P;(function(h){h.method="client/registerCapability",h.messageDirection=e.MessageDirection.serverToClient,h.type=new e.ProtocolRequestType(h.method)})(P||(t.RegistrationRequest=P={}));var S;(function(h){h.method="client/unregisterCapability",h.messageDirection=e.MessageDirection.serverToClient,h.type=new e.ProtocolRequestType(h.method)})(S||(t.UnregistrationRequest=S={}));var R;(function(h){h.Create="create",h.Rename="rename",h.Delete="delete"})(R||(t.ResourceOperationKind=R={}));var I;(function(h){h.Abort="abort",h.Transactional="transactional",h.TextOnlyTransactional="textOnlyTransactional",h.Undo="undo"})(I||(t.FailureHandlingKind=I={}));var $;(function(h){h.UTF8="utf-8",h.UTF16="utf-16",h.UTF32="utf-32"})($||(t.PositionEncodingKind=$={}));var A;(function(h){function se(Ne){const H=Ne;return H&&n.string(H.id)&&H.id.length>0}s(se,"hasId"),h.hasId=se})(A||(t.StaticRegistrationOptions=A={}));var b;(function(h){function se(Ne){const H=Ne;return H&&(H.documentSelector===null||tt.is(H.documentSelector))}s(se,"is"),h.is=se})(b||(t.TextDocumentRegistrationOptions=b={}));var O;(function(h){function se(H){const Pe=H;return n.objectLiteral(Pe)&&(Pe.workDoneProgress===void 0||n.boolean(Pe.workDoneProgress))}s(se,"is"),h.is=se;function Ne(H){const Pe=H;return Pe&&n.boolean(Pe.workDoneProgress)}s(Ne,"hasWorkDoneProgress"),h.hasWorkDoneProgress=Ne})(O||(t.WorkDoneProgressOptions=O={}));var M;(function(h){h.method="initialize",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(M||(t.InitializeRequest=M={}));var L;(function(h){h.unknownProtocolVersion=1})(L||(t.InitializeErrorCodes=L={}));var j;(function(h){h.method="initialized",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolNotificationType(h.method)})(j||(t.InitializedNotification=j={}));var F;(function(h){h.method="shutdown",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType0(h.method)})(F||(t.ShutdownRequest=F={}));var te;(function(h){h.method="exit",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolNotificationType0(h.method)})(te||(t.ExitNotification=te={}));var U;(function(h){h.method="workspace/didChangeConfiguration",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolNotificationType(h.method)})(U||(t.DidChangeConfigurationNotification=U={}));var Q;(function(h){h.Error=1,h.Warning=2,h.Info=3,h.Log=4,h.Debug=5})(Q||(t.MessageType=Q={}));var fe;(function(h){h.method="window/showMessage",h.messageDirection=e.MessageDirection.serverToClient,h.type=new e.ProtocolNotificationType(h.method)})(fe||(t.ShowMessageNotification=fe={}));var de;(function(h){h.method="window/showMessageRequest",h.messageDirection=e.MessageDirection.serverToClient,h.type=new e.ProtocolRequestType(h.method)})(de||(t.ShowMessageRequest=de={}));var pe;(function(h){h.method="window/logMessage",h.messageDirection=e.MessageDirection.serverToClient,h.type=new e.ProtocolNotificationType(h.method)})(pe||(t.LogMessageNotification=pe={}));var ye;(function(h){h.method="telemetry/event",h.messageDirection=e.MessageDirection.serverToClient,h.type=new e.ProtocolNotificationType(h.method)})(ye||(t.TelemetryEventNotification=ye={}));var Ie;(function(h){h.None=0,h.Full=1,h.Incremental=2})(Ie||(t.TextDocumentSyncKind=Ie={}));var he;(function(h){h.method="textDocument/didOpen",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolNotificationType(h.method)})(he||(t.DidOpenTextDocumentNotification=he={}));var J;(function(h){function se(H){let Pe=H;return Pe!=null&&typeof Pe.text=="string"&&Pe.range!==void 0&&(Pe.rangeLength===void 0||typeof Pe.rangeLength=="number")}s(se,"isIncremental"),h.isIncremental=se;function Ne(H){let Pe=H;return Pe!=null&&typeof Pe.text=="string"&&Pe.range===void 0&&Pe.rangeLength===void 0}s(Ne,"isFull"),h.isFull=Ne})(J||(t.TextDocumentContentChangeEvent=J={}));var Ue;(function(h){h.method="textDocument/didChange",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolNotificationType(h.method)})(Ue||(t.DidChangeTextDocumentNotification=Ue={}));var le;(function(h){h.method="textDocument/didClose",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolNotificationType(h.method)})(le||(t.DidCloseTextDocumentNotification=le={}));var He;(function(h){h.method="textDocument/didSave",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolNotificationType(h.method)})(He||(t.DidSaveTextDocumentNotification=He={}));var ve;(function(h){h.Manual=1,h.AfterDelay=2,h.FocusOut=3})(ve||(t.TextDocumentSaveReason=ve={}));var x;(function(h){h.method="textDocument/willSave",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolNotificationType(h.method)})(x||(t.WillSaveTextDocumentNotification=x={}));var ze;(function(h){h.method="textDocument/willSaveWaitUntil",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(ze||(t.WillSaveTextDocumentWaitUntilRequest=ze={}));var Xt;(function(h){h.method="workspace/didChangeWatchedFiles",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolNotificationType(h.method)})(Xt||(t.DidChangeWatchedFilesNotification=Xt={}));var Nt;(function(h){h.Created=1,h.Changed=2,h.Deleted=3})(Nt||(t.FileChangeType=Nt={}));var Te;(function(h){function se(Ne){const H=Ne;return n.objectLiteral(H)&&(r.URI.is(H.baseUri)||r.WorkspaceFolder.is(H.baseUri))&&n.string(H.pattern)}s(se,"is"),h.is=se})(Te||(t.RelativePattern=Te={}));var la;(function(h){h.Create=1,h.Change=2,h.Delete=4})(la||(t.WatchKind=la={}));var Xo;(function(h){h.method="textDocument/publishDiagnostics",h.messageDirection=e.MessageDirection.serverToClient,h.type=new e.ProtocolNotificationType(h.method)})(Xo||(t.PublishDiagnosticsNotification=Xo={}));var Jo;(function(h){h.Invoked=1,h.TriggerCharacter=2,h.TriggerForIncompleteCompletions=3})(Jo||(t.CompletionTriggerKind=Jo={}));var Zo;(function(h){h.method="textDocument/completion",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(Zo||(t.CompletionRequest=Zo={}));var Qo;(function(h){h.method="completionItem/resolve",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(Qo||(t.CompletionResolveRequest=Qo={}));var ca;(function(h){h.method="textDocument/hover",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(ca||(t.HoverRequest=ca={}));var ua;(function(h){h.Invoked=1,h.TriggerCharacter=2,h.ContentChange=3})(ua||(t.SignatureHelpTriggerKind=ua={}));var Jt;(function(h){h.method="textDocument/signatureHelp",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(Jt||(t.SignatureHelpRequest=Jt={}));var fa;(function(h){h.method="textDocument/definition",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(fa||(t.DefinitionRequest=fa={}));var el;(function(h){h.method="textDocument/references",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(el||(t.ReferencesRequest=el={}));var tl;(function(h){h.method="textDocument/documentHighlight",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(tl||(t.DocumentHighlightRequest=tl={}));var da;(function(h){h.method="textDocument/documentSymbol",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(da||(t.DocumentSymbolRequest=da={}));var pa;(function(h){h.method="textDocument/codeAction",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(pa||(t.CodeActionRequest=pa={}));var rl;(function(h){h.method="codeAction/resolve",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(rl||(t.CodeActionResolveRequest=rl={}));var Dc;(function(h){h.method="workspace/symbol",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(Dc||(t.WorkspaceSymbolRequest=Dc={}));var nl;(function(h){h.method="workspaceSymbol/resolve",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(nl||(t.WorkspaceSymbolResolveRequest=nl={}));var al;(function(h){h.method="textDocument/codeLens",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(al||(t.CodeLensRequest=al={}));var il;(function(h){h.method="codeLens/resolve",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(il||(t.CodeLensResolveRequest=il={}));var sl;(function(h){h.method="workspace/codeLens/refresh",h.messageDirection=e.MessageDirection.serverToClient,h.type=new e.ProtocolRequestType0(h.method)})(sl||(t.CodeLensRefreshRequest=sl={}));var kt;(function(h){h.method="textDocument/documentLink",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(kt||(t.DocumentLinkRequest=kt={}));var ol;(function(h){h.method="documentLink/resolve",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(ol||(t.DocumentLinkResolveRequest=ol={}));var ll;(function(h){h.method="textDocument/formatting",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(ll||(t.DocumentFormattingRequest=ll={}));var Gr;(function(h){h.method="textDocument/rangeFormatting",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(Gr||(t.DocumentRangeFormattingRequest=Gr={}));var cl;(function(h){h.method="textDocument/rangesFormatting",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(cl||(t.DocumentRangesFormattingRequest=cl={}));var nn;(function(h){h.method="textDocument/onTypeFormatting",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(nn||(t.DocumentOnTypeFormattingRequest=nn={}));var ul;(function(h){h.Identifier=1})(ul||(t.PrepareSupportDefaultBehavior=ul={}));var Zt;(function(h){h.method="textDocument/rename",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(Zt||(t.RenameRequest=Zt={}));var yr;(function(h){h.method="textDocument/prepareRename",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(yr||(t.PrepareRenameRequest=yr={}));var fl;(function(h){h.method="workspace/executeCommand",h.messageDirection=e.MessageDirection.clientToServer,h.type=new e.ProtocolRequestType(h.method)})(fl||(t.ExecuteCommandRequest=fl={}));var dl;(function(h){h.method="workspace/applyEdit",h.messageDirection=e.MessageDirection.serverToClient,h.type=new e.ProtocolRequestType("workspace/applyEdit")})(dl||(t.ApplyWorkspaceEditRequest=dl={}))}}),hk=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;var e=jo();function r(n,a,i,o){return e.ConnectionStrategy.is(o)&&(o={connectionStrategy:o}),(0,e.createMessageConnection)(n,a,i,o)}s(r,"createProtocolConnection"),t.createProtocolConnection=r}}),mk=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.js"(t){var e=t&&t.__createBinding||(Object.create?(function(i,o,c,l){l===void 0&&(l=c);var u=Object.getOwnPropertyDescriptor(o,c);(!u||("get"in u?!o.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:s(function(){return o[c]},"get")}),Object.defineProperty(i,l,u)}):(function(i,o,c,l){l===void 0&&(l=c),i[l]=o[c]})),r=t&&t.__exportStar||function(i,o){for(var c in i)c!=="default"&&!Object.prototype.hasOwnProperty.call(o,c)&&e(o,i,c)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,r(jo(),t),r((hc(),jh(ff)),t),r(De(),t),r(pk(),t);var n=hk();Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:s(function(){return n.createProtocolConnection},"get")});var a;(function(i){i.lspReservedErrorRangeStart=-32899,i.RequestFailed=-32803,i.ServerCancelled=-32802,i.ContentModified=-32801,i.RequestCancelled=-32800,i.lspReservedErrorRangeEnd=-32800})(a||(t.LSPErrorCodes=a={}))}}),gk=Y({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/browser/main.js"(t){var e=t&&t.__createBinding||(Object.create?(function(i,o,c,l){l===void 0&&(l=c);var u=Object.getOwnPropertyDescriptor(o,c);(!u||("get"in u?!o.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:s(function(){return o[c]},"get")}),Object.defineProperty(i,l,u)}):(function(i,o,c,l){l===void 0&&(l=c),i[l]=o[c]})),r=t&&t.__exportStar||function(i,o){for(var c in i)c!=="default"&&!Object.prototype.hasOwnProperty.call(o,c)&&e(o,i,c)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;var n=_y();r(_y(),t),r(mk(),t);function a(i,o,c,l){return(0,n.createMessageConnection)(i,o,c,l)}s(a,"createProtocolConnection"),t.createProtocolConnection=a}}),vT={};Zr(vT,{AbstractAstReflection:()=>Kh,AbstractCstNode:()=>Wg,AbstractLangiumParser:()=>Hg,AbstractParserErrorMessageProvider:()=>sI,AbstractThreadedAsyncParser:()=>jj,AstUtils:()=>qh,BiMap:()=>sf,Cancellation:()=>$e,CompositeCstNodeImpl:()=>ld,ContextCache:()=>md,CstNodeBuilder:()=>nI,CstUtils:()=>zh,DEFAULT_TOKENIZE_OPTIONS:()=>dy,DONE_RESULT:()=>nt,DatatypeSymbol:()=>tf,DefaultAstNodeDescriptionProvider:()=>MI,DefaultAstNodeLocator:()=>FI,DefaultAsyncParser:()=>rN,DefaultCommentProvider:()=>tN,DefaultConfigurationProvider:()=>GI,DefaultDocumentBuilder:()=>jI,DefaultDocumentValidator:()=>DI,DefaultHydrator:()=>aN,DefaultIndexManager:()=>UI,DefaultJsonSerializer:()=>kI,DefaultLangiumDocumentFactory:()=>AI,DefaultLangiumDocuments:()=>EI,DefaultLangiumProfiler:()=>qj,DefaultLexer:()=>py,DefaultLexerErrorMessageProvider:()=>BI,DefaultLinker:()=>_I,DefaultNameProvider:()=>CI,DefaultReferenceDescriptionProvider:()=>xI,DefaultReferences:()=>SI,DefaultScopeComputation:()=>bI,DefaultScopeProvider:()=>NI,DefaultServiceRegistry:()=>PI,DefaultTokenBuilder:()=>fd,DefaultValueConverter:()=>ty,DefaultWorkspaceLock:()=>nN,DefaultWorkspaceManager:()=>zI,Deferred:()=>Or,Disposable:()=>Ln,DisposableCache:()=>hd,DocumentCache:()=>II,DocumentState:()=>Z,DocumentValidator:()=>Ot,EMPTY_SCOPE:()=>Mj,EMPTY_STREAM:()=>bo,EmptyFileSystem:()=>Gt,EmptyFileSystemProvider:()=>oN,ErrorWithLocation:()=>$f,GrammarAST:()=>$T,GrammarUtils:()=>$m,IndentationAwareLexer:()=>zj,IndentationAwareTokenBuilder:()=>sN,JSDocDocumentationProvider:()=>eN,LangiumCompletionParser:()=>oI,LangiumParser:()=>iI,LangiumParserErrorMessageProvider:()=>Yg,LeafCstNodeImpl:()=>ef,LexingMode:()=>Pn,MapScope:()=>Dj,Module:()=>_h,MultiMap:()=>Lr,MultiMapScope:()=>wI,OperationCancelled:()=>or,ParserWorker:()=>Uj,ProfilingTask:()=>cN,Reduction:()=>Jl,RefResolving:()=>hn,RegExpUtils:()=>Em,RootCstNodeImpl:()=>Vg,SimpleCache:()=>oy,StreamImpl:()=>sr,StreamScope:()=>Rh,TextDocument:()=>nf,TreeStreamImpl:()=>wo,URI:()=>Rt,UriTrie:()=>iy,UriUtils:()=>it,VALIDATE_EACH_NODE:()=>LI,ValidationCategory:()=>of,ValidationRegistry:()=>OI,ValueConverter:()=>ar,WorkspaceCache:()=>ly,assertCondition:()=>Am,assertUnreachable:()=>Qr,createCompletionParser:()=>Zg,createDefaultCoreModule:()=>St,createDefaultSharedCoreModule:()=>bt,createGrammarConfig:()=>Um,createLangiumParser:()=>Qg,createParser:()=>cd,delayNextTick:()=>dd,diagnosticData:()=>kn,eagerLoad:()=>Ry,getDiagnosticRange:()=>uy,indentationBuilderDefaultOptions:()=>Sh,inject:()=>ke,interruptAndCheck:()=>Ye,isAstNode:()=>Be,isAstNodeDescription:()=>Bh,isAstNodeWithComment:()=>cy,isCompositeCstNode:()=>Cr,isIMultiModeLexerDefinition:()=>vd,isJSDoc:()=>my,isLeafCstNode:()=>zn,isLinkingError:()=>yn,isMultiReference:()=>lr,isNamed:()=>sy,isOperationCancelled:()=>oa,isReference:()=>at,isRootCstNode:()=>pf,isTokenTypeArray:()=>yd,isTokenTypeDictionary:()=>lf,loadGrammarFromJson:()=>wt,parseJSDoc:()=>hy,prepareLangiumParser:()=>ey,setInterruptionPeriod:()=>ry,startCancelableOperation:()=>pd,stream:()=>ue,toDiagnosticData:()=>fy,toDiagnosticSeverity:()=>Yl});var zh={};Zr(zh,{DefaultNameRegexp:()=>gm,RangeComparison:()=>ir,compareRange:()=>hm,findCommentNode:()=>ym,findDeclarationNodeAtOffset:()=>jT,findLeafNodeAtOffset:()=>Rf,findLeafNodeBeforeOffset:()=>vm,flattenCst:()=>GT,getDatatypeNode:()=>FT,getInteriorNodes:()=>BT,getNextNode:()=>UT,getPreviousNode:()=>Rm,getStartlineNode:()=>zT,inRange:()=>mm,isChildNode:()=>pm,isCommentNode:()=>Fu,streamCst:()=>Po,toDocumentSegment:()=>Oo,tokenToRange:()=>Zl});function Be(t){return typeof t=="object"&&t!==null&&typeof t.$type=="string"}s(Be,"isAstNode");function at(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"ref"in t}s(at,"isReference");function lr(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"items"in t}s(lr,"isMultiReference");function Bh(t){return typeof t=="object"&&t!==null&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.path=="string"}s(Bh,"isAstNodeDescription");function yn(t){return typeof t=="object"&&t!==null&&typeof t.info=="object"&&typeof t.message=="string"}s(yn,"isLinkingError");var za,Kh=(za=class{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){const r=this.types[e.container.$type];if(!r)throw new Error(`Type ${e.container.$type||"undefined"} not found.`);const n=r.properties[e.property]?.referenceType;if(!n)throw new Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return n}getTypeMetaData(e){const r=this.types[e];return r||{name:e,properties:{},superTypes:[]}}isInstance(e,r){return Be(e)&&this.isSubtype(e.$type,r)}isSubtype(e,r){if(e===r)return!0;let n=this.subtypes[e];n||(n=this.subtypes[e]={});const a=n[r];if(a!==void 0)return a;{const i=this.types[e],o=i?i.superTypes.some(c=>this.isSubtype(c,r)):!1;return n[r]=o,o}}getAllSubTypes(e){const r=this.allSubtypes[e];if(r)return r;{const n=this.getAllTypes(),a=[];for(const i of n)this.isSubtype(i,e)&&a.push(i);return this.allSubtypes[e]=a,a}}},s(za,"AbstractAstReflection"),za);function Cr(t){return typeof t=="object"&&t!==null&&Array.isArray(t.content)}s(Cr,"isCompositeCstNode");function zn(t){return typeof t=="object"&&t!==null&&typeof t.tokenType=="object"}s(zn,"isLeafCstNode");function pf(t){return Cr(t)&&typeof t.fullText=="string"}s(pf,"isRootCstNode");var ht,sr=(ht=class{constructor(e,r){this.startFn=e,this.nextFn=r}iterator(){const e={state:this.startFn(),next:s(()=>this.nextFn(e.state),"next"),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const e=this.iterator();let r=0,n=e.next();for(;!n.done;)r++,n=e.next();return r}toArray(){const e=[],r=this.iterator();let n;do n=r.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,r){const n=this.map(a=>[e?e(a):a,r?r(a):a]);return new Map(n)}toString(){return this.join()}concat(e){return new ht(()=>({first:this.startFn(),firstDone:!1,iterator:e[Symbol.iterator]()}),r=>{let n;if(!r.firstDone){do if(n=this.nextFn(r.first),!n.done)return n;while(!n.done);r.firstDone=!0}do if(n=r.iterator.next(),!n.done)return n;while(!n.done);return nt})}join(e=","){const r=this.iterator();let n="",a,i=!1;do a=r.next(),a.done||(i&&(n+=e),n+=TT(a.value)),i=!0;while(!a.done);return n}indexOf(e,r=0){const n=this.iterator();let a=0,i=n.next();for(;!i.done;){if(a>=r&&i.value===e)return a;i=n.next(),a++}return-1}every(e){const r=this.iterator();let n=r.next();for(;!n.done;){if(!e(n.value))return!1;n=r.next()}return!0}some(e){const r=this.iterator();let n=r.next();for(;!n.done;){if(e(n.value))return!0;n=r.next()}return!1}forEach(e){const r=this.iterator();let n=0,a=r.next();for(;!a.done;)e(a.value,n),a=r.next(),n++}map(e){return new ht(this.startFn,r=>{const{done:n,value:a}=this.nextFn(r);return n?nt:{done:!1,value:e(a)}})}filter(e){return new ht(this.startFn,r=>{let n;do if(n=this.nextFn(r),!n.done&&e(n.value))return n;while(!n.done);return nt})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,r){const n=this.iterator();let a=r,i=n.next();for(;!i.done;)a===void 0?a=i.value:a=e(a,i.value),i=n.next();return a}reduceRight(e,r){return this.recursiveReduce(this.iterator(),e,r)}recursiveReduce(e,r,n){const a=e.next();if(a.done)return n;const i=this.recursiveReduce(e,r,n);return i===void 0?a.value:r(i,a.value)}find(e){const r=this.iterator();let n=r.next();for(;!n.done;){if(e(n.value))return n.value;n=r.next()}}findIndex(e){const r=this.iterator();let n=0,a=r.next();for(;!a.done;){if(e(a.value))return n;a=r.next(),n++}return-1}includes(e){const r=this.iterator();let n=r.next();for(;!n.done;){if(n.value===e)return!0;n=r.next()}return!1}flatMap(e){return new ht(()=>({this:this.startFn()}),r=>{do{if(r.iterator){const i=r.iterator.next();if(i.done)r.iterator=void 0;else return i}const{done:n,value:a}=this.nextFn(r.this);if(!n){const i=e(a);if(Xl(i))r.iterator=i[Symbol.iterator]();else return{done:!1,value:i}}}while(r.iterator);return nt})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const r=e>1?this.flat(e-1):this;return new ht(()=>({this:r.startFn()}),n=>{do{if(n.iterator){const o=n.iterator.next();if(o.done)n.iterator=void 0;else return o}const{done:a,value:i}=r.nextFn(n.this);if(!a)if(Xl(i))n.iterator=i[Symbol.iterator]();else return{done:!1,value:i}}while(n.iterator);return nt})}head(){const r=this.iterator().next();if(!r.done)return r.value}tail(e=1){return new ht(()=>{const r=this.startFn();for(let n=0;n<e;n++)if(this.nextFn(r).done)return r;return r},this.nextFn)}limit(e){return new ht(()=>({size:0,state:this.startFn()}),r=>(r.size++,r.size>e?nt:this.nextFn(r.state)))}distinct(e){return new ht(()=>({set:new Set,internalState:this.startFn()}),r=>{let n;do if(n=this.nextFn(r.internalState),!n.done){const a=e?e(n.value):n.value;if(!r.set.has(a))return r.set.add(a),n}while(!n.done);return nt})}exclude(e,r){const n=new Set;for(const a of e){const i=r?r(a):a;n.add(i)}return this.filter(a=>{const i=r?r(a):a;return!n.has(i)})}},s(ht,"StreamImpl"),ht);function TT(t){return typeof t=="string"?t:typeof t>"u"?"undefined":typeof t.toString=="function"?t.toString():Object.prototype.toString.call(t)}s(TT,"toString");function Xl(t){return!!t&&typeof t[Symbol.iterator]=="function"}s(Xl,"isIterable");var bo=new sr(()=>{},()=>nt),nt=Object.freeze({done:!0,value:void 0});function ue(...t){if(t.length===1){const e=t[0];if(e instanceof sr)return e;if(Xl(e))return new sr(()=>e[Symbol.iterator](),r=>r.next());if(typeof e.length=="number")return new sr(()=>({index:0}),r=>r.index<e.length?{done:!1,value:e[r.index++]}:nt)}return t.length>1?new sr(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){const r=e.iterator.next();if(!r.done)return r;e.iterator=void 0}if(e.array){if(e.arrIndex<e.array.length)return{done:!1,value:e.array[e.arrIndex++]};e.array=void 0,e.arrIndex=0}if(e.collIndex<t.length){const r=t[e.collIndex++];Xl(r)?e.iterator=r[Symbol.iterator]():r&&typeof r.length=="number"&&(e.array=r)}}while(e.iterator||e.array||e.collIndex<t.length);return nt}):bo}s(ue,"stream");var Ba,wo=(Ba=class extends sr{constructor(e,r,n){super(()=>({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[r(e)[Symbol.iterator]()],pruned:!1}),a=>{for(a.pruned&&(a.iterators.pop(),a.pruned=!1);a.iterators.length>0;){const o=a.iterators[a.iterators.length-1].next();if(o.done)a.iterators.pop();else return a.iterators.push(r(o.value)[Symbol.iterator]()),o}return nt})}iterator(){const e={state:this.startFn(),next:s(()=>this.nextFn(e.state),"next"),prune:s(()=>{e.state.pruned=!0},"prune"),[Symbol.iterator]:()=>e};return e}},s(Ba,"TreeStreamImpl"),Ba),Jl;(function(t){function e(i){return i.reduce((o,c)=>o+c,0)}s(e,"sum"),t.sum=e;function r(i){return i.reduce((o,c)=>o*c,0)}s(r,"product"),t.product=r;function n(i){return i.reduce((o,c)=>Math.min(o,c))}s(n,"min"),t.min=n;function a(i){return i.reduce((o,c)=>Math.max(o,c))}s(a,"max"),t.max=a})(Jl||(Jl={}));var qh={};Zr(qh,{assignMandatoryProperties:()=>Wh,copyAstNode:()=>_u,findRootNode:()=>Fa,getContainerOfType:()=>Bn,getDocument:()=>Bt,getReferenceNodes:()=>Au,hasContainerOfType:()=>RT,linkContentToContainer:()=>Io,streamAllContents:()=>Dr,streamAst:()=>Kt,streamContents:()=>gc,streamReferences:()=>No});function Io(t,e={}){for(const[r,n]of Object.entries(t))r.startsWith("$")||(Array.isArray(n)?n.forEach((a,i)=>{Be(a)&&(a.$container=t,a.$containerProperty=r,a.$containerIndex=i,e.deep&&Io(a,e))}):Be(n)&&(n.$container=t,n.$containerProperty=r,e.deep&&Io(n,e)))}s(Io,"linkContentToContainer");function Bn(t,e){let r=t;for(;r;){if(e(r))return r;r=r.$container}}s(Bn,"getContainerOfType");function RT(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.$container}return!1}s(RT,"hasContainerOfType");function Bt(t){const r=Fa(t).$document;if(!r)throw new Error("AST node has no document.");return r}s(Bt,"getDocument");function Fa(t){for(;t.$container;)t=t.$container;return t}s(Fa,"findRootNode");function Au(t){return at(t)?t.ref?[t.ref]:[]:lr(t)?t.items.map(e=>e.ref):[]}s(Au,"getReferenceNodes");function gc(t,e){if(!t)throw new Error("Node must be an AstNode.");const r=e?.range;return new sr(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),n=>{for(;n.keyIndex<n.keys.length;){const a=n.keys[n.keyIndex];if(!a.startsWith("$")){const i=t[a];if(Be(i)){if(n.keyIndex++,Eu(i,r))return{done:!1,value:i}}else if(Array.isArray(i)){for(;n.arrayIndex<i.length;){const o=n.arrayIndex++,c=i[o];if(Be(c)&&Eu(c,r))return{done:!1,value:c}}n.arrayIndex=0}}n.keyIndex++}return nt})}s(gc,"streamContents");function Dr(t,e){if(!t)throw new Error("Root node must be an AstNode.");return new wo(t,r=>gc(r,e))}s(Dr,"streamAllContents");function Kt(t,e){if(t){if(e?.range&&!Eu(t,e.range))return new wo(t,()=>[])}else throw new Error("Root node must be an AstNode.");return new wo(t,r=>gc(r,e),{includeRoot:!0})}s(Kt,"streamAst");function Eu(t,e){if(!e)return!0;const r=t.$cstNode?.range;return r?mm(r,e):!1}s(Eu,"isAstNodeInRange");function No(t){return new sr(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndex<e.keys.length;){const r=e.keys[e.keyIndex];if(!r.startsWith("$")){const n=t[r];if(at(n)||lr(n))return e.keyIndex++,{done:!1,value:{reference:n,container:t,property:r}};if(Array.isArray(n)){for(;e.arrayIndex<n.length;){const a=e.arrayIndex++,i=n[a];if(at(i)||lr(n))return{done:!1,value:{reference:i,container:t,property:r,index:a}}}e.arrayIndex=0}}e.keyIndex++}return nt})}s(No,"streamReferences");function Wh(t,e){const r=t.getTypeMetaData(e.$type),n=e;for(const a of Object.values(r.properties))a.defaultValue!==void 0&&n[a.name]===void 0&&(n[a.name]=Vh(a.defaultValue))}s(Wh,"assignMandatoryProperties");function Vh(t){return Array.isArray(t)?[...t.map(Vh)]:t}s(Vh,"copyDefaultValue");function _u(t,e,r){const n={$type:t.$type};r&&(r.set(t,n),r.set(n,t));for(const[a,i]of Object.entries(t))if(!a.startsWith("$"))if(Be(i))n[a]=_u(i,e,r);else if(at(i))n[a]=e(n,a,i.$refNode,i.$refText,i);else if(Array.isArray(i)){const o=[];for(const c of i)Be(c)?o.push(_u(c,e,r)):at(c)?o.push(e(n,a,c.$refNode,c.$refText,c)):o.push(c);n[a]=o}else n[a]=i;return Io(n,{deep:!0}),n}s(_u,"copyAstNode");var $T={};Zr($T,{AbstractElement:()=>dt,AbstractParserRule:()=>Dl,AbstractRule:()=>Na,AbstractType:()=>Tt,Action:()=>Ur,Alternatives:()=>Ml,ArrayLiteral:()=>Cu,ArrayType:()=>Su,Assignment:()=>zr,BooleanLiteral:()=>bu,CharacterRange:()=>Br,Condition:()=>Kr,Conjunction:()=>xl,CrossReference:()=>qr,Disjunction:()=>Fl,EndOfFile:()=>wu,Grammar:()=>Ar,GrammarImport:()=>Iu,Group:()=>vn,InferredType:()=>Nu,InfixRule:()=>nr,InfixRuleOperatorList:()=>Gl,InfixRuleOperators:()=>ku,Interface:()=>ka,Keyword:()=>Pa,LangiumGrammarAstReflection:()=>dm,LangiumGrammarTerminals:()=>yk,NamedArgument:()=>Oa,NegatedToken:()=>Tn,Negation:()=>Pu,NumberLiteral:()=>Ou,Parameter:()=>La,ParameterReference:()=>Lu,ParserRule:()=>jt,ReferenceType:()=>jl,RegexToken:()=>Rn,ReturnType:()=>Du,RuleCall:()=>$n,SimpleType:()=>Da,StringLiteral:()=>Mu,TerminalAlternatives:()=>An,TerminalElement:()=>pt,TerminalGroup:()=>En,TerminalRule:()=>Er,TerminalRuleCall:()=>_n,Type:()=>Ul,TypeAttribute:()=>Cn,TypeDefinition:()=>Sn,UnionType:()=>xu,UnorderedGroup:()=>zl,UntilToken:()=>bn,ValueLiteral:()=>wn,Wildcard:()=>Ma,isAbstractElement:()=>hf,isAbstractParserRule:()=>Kn,isAbstractRule:()=>AT,isAbstractType:()=>ET,isAction:()=>Vr,isAlternatives:()=>mf,isArrayLiteral:()=>_T,isArrayType:()=>Hh,isAssignment:()=>Sr,isBooleanLiteral:()=>Yh,isCharacterRange:()=>Xh,isCondition:()=>CT,isConjunction:()=>Jh,isCrossReference:()=>qn,isDisjunction:()=>Zh,isEndOfFile:()=>Qh,isGrammar:()=>ST,isGrammarImport:()=>bT,isGroup:()=>Wn,isInferredType:()=>yc,isInfixRule:()=>ko,isInfixRuleOperatorList:()=>wT,isInfixRuleOperators:()=>IT,isInterface:()=>em,isKeyword:()=>br,isNamedArgument:()=>NT,isNegatedToken:()=>tm,isNegation:()=>rm,isNumberLiteral:()=>kT,isParameter:()=>PT,isParameterReference:()=>nm,isParserRule:()=>ot,isReferenceType:()=>am,isRegexToken:()=>im,isReturnType:()=>sm,isRuleCall:()=>wr,isSimpleType:()=>gf,isStringLiteral:()=>OT,isTerminalAlternatives:()=>om,isTerminalElement:()=>LT,isTerminalGroup:()=>lm,isTerminalRule:()=>xt,isTerminalRuleCall:()=>yf,isType:()=>vf,isTypeAttribute:()=>DT,isTypeDefinition:()=>MT,isUnionType:()=>cm,isUnorderedGroup:()=>Tf,isUntilToken:()=>um,isValueLiteral:()=>xT,isWildcard:()=>fm,reflection:()=>K});var yk={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},dt={$type:"AbstractElement",cardinality:"cardinality"};function hf(t){return K.isInstance(t,dt.$type)}s(hf,"isAbstractElement");var Dl={$type:"AbstractParserRule"};function Kn(t){return K.isInstance(t,Dl.$type)}s(Kn,"isAbstractParserRule");var Na={$type:"AbstractRule"};function AT(t){return K.isInstance(t,Na.$type)}s(AT,"isAbstractRule");var Tt={$type:"AbstractType"};function ET(t){return K.isInstance(t,Tt.$type)}s(ET,"isAbstractType");var Ur={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};function Vr(t){return K.isInstance(t,Ur.$type)}s(Vr,"isAction");var Ml={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};function mf(t){return K.isInstance(t,Ml.$type)}s(mf,"isAlternatives");var Cu={$type:"ArrayLiteral",elements:"elements"};function _T(t){return K.isInstance(t,Cu.$type)}s(_T,"isArrayLiteral");var Su={$type:"ArrayType",elementType:"elementType"};function Hh(t){return K.isInstance(t,Su.$type)}s(Hh,"isArrayType");var zr={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};function Sr(t){return K.isInstance(t,zr.$type)}s(Sr,"isAssignment");var bu={$type:"BooleanLiteral",true:"true"};function Yh(t){return K.isInstance(t,bu.$type)}s(Yh,"isBooleanLiteral");var Br={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};function Xh(t){return K.isInstance(t,Br.$type)}s(Xh,"isCharacterRange");var Kr={$type:"Condition"};function CT(t){return K.isInstance(t,Kr.$type)}s(CT,"isCondition");var xl={$type:"Conjunction",left:"left",right:"right"};function Jh(t){return K.isInstance(t,xl.$type)}s(Jh,"isConjunction");var qr={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};function qn(t){return K.isInstance(t,qr.$type)}s(qn,"isCrossReference");var Fl={$type:"Disjunction",left:"left",right:"right"};function Zh(t){return K.isInstance(t,Fl.$type)}s(Zh,"isDisjunction");var wu={$type:"EndOfFile",cardinality:"cardinality"};function Qh(t){return K.isInstance(t,wu.$type)}s(Qh,"isEndOfFile");var Ar={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"};function ST(t){return K.isInstance(t,Ar.$type)}s(ST,"isGrammar");var Iu={$type:"GrammarImport",path:"path"};function bT(t){return K.isInstance(t,Iu.$type)}s(bT,"isGrammarImport");var vn={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};function Wn(t){return K.isInstance(t,vn.$type)}s(Wn,"isGroup");var Nu={$type:"InferredType",name:"name"};function yc(t){return K.isInstance(t,Nu.$type)}s(yc,"isInferredType");var nr={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};function ko(t){return K.isInstance(t,nr.$type)}s(ko,"isInfixRule");var Gl={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"};function wT(t){return K.isInstance(t,Gl.$type)}s(wT,"isInfixRuleOperatorList");var ku={$type:"InfixRuleOperators",precedences:"precedences"};function IT(t){return K.isInstance(t,ku.$type)}s(IT,"isInfixRuleOperators");var ka={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};function em(t){return K.isInstance(t,ka.$type)}s(em,"isInterface");var Pa={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};function br(t){return K.isInstance(t,Pa.$type)}s(br,"isKeyword");var Oa={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"};function NT(t){return K.isInstance(t,Oa.$type)}s(NT,"isNamedArgument");var Tn={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function tm(t){return K.isInstance(t,Tn.$type)}s(tm,"isNegatedToken");var Pu={$type:"Negation",value:"value"};function rm(t){return K.isInstance(t,Pu.$type)}s(rm,"isNegation");var Ou={$type:"NumberLiteral",value:"value"};function kT(t){return K.isInstance(t,Ou.$type)}s(kT,"isNumberLiteral");var La={$type:"Parameter",name:"name"};function PT(t){return K.isInstance(t,La.$type)}s(PT,"isParameter");var Lu={$type:"ParameterReference",parameter:"parameter"};function nm(t){return K.isInstance(t,Lu.$type)}s(nm,"isParameterReference");var jt={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};function ot(t){return K.isInstance(t,jt.$type)}s(ot,"isParserRule");var jl={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"};function am(t){return K.isInstance(t,jl.$type)}s(am,"isReferenceType");var Rn={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};function im(t){return K.isInstance(t,Rn.$type)}s(im,"isRegexToken");var Du={$type:"ReturnType",name:"name"};function sm(t){return K.isInstance(t,Du.$type)}s(sm,"isReturnType");var $n={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};function wr(t){return K.isInstance(t,$n.$type)}s(wr,"isRuleCall");var Da={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};function gf(t){return K.isInstance(t,Da.$type)}s(gf,"isSimpleType");var Mu={$type:"StringLiteral",value:"value"};function OT(t){return K.isInstance(t,Mu.$type)}s(OT,"isStringLiteral");var An={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function om(t){return K.isInstance(t,An.$type)}s(om,"isTerminalAlternatives");var pt={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function LT(t){return K.isInstance(t,pt.$type)}s(LT,"isTerminalElement");var En={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function lm(t){return K.isInstance(t,En.$type)}s(lm,"isTerminalGroup");var Er={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};function xt(t){return K.isInstance(t,Er.$type)}s(xt,"isTerminalRule");var _n={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};function yf(t){return K.isInstance(t,_n.$type)}s(yf,"isTerminalRuleCall");var Ul={$type:"Type",name:"name",type:"type"};function vf(t){return K.isInstance(t,Ul.$type)}s(vf,"isType");var Cn={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"};function DT(t){return K.isInstance(t,Cn.$type)}s(DT,"isTypeAttribute");var Sn={$type:"TypeDefinition"};function MT(t){return K.isInstance(t,Sn.$type)}s(MT,"isTypeDefinition");var xu={$type:"UnionType",types:"types"};function cm(t){return K.isInstance(t,xu.$type)}s(cm,"isUnionType");var zl={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};function Tf(t){return K.isInstance(t,zl.$type)}s(Tf,"isUnorderedGroup");var bn={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function um(t){return K.isInstance(t,bn.$type)}s(um,"isUntilToken");var wn={$type:"ValueLiteral"};function xT(t){return K.isInstance(t,wn.$type)}s(xT,"isValueLiteral");var Ma={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function fm(t){return K.isInstance(t,Ma.$type)}s(fm,"isWildcard");var Ka,dm=(Ka=class extends Kh{constructor(){super(...arguments),this.types={AbstractElement:{name:dt.$type,properties:{cardinality:{name:dt.cardinality}},superTypes:[]},AbstractParserRule:{name:Dl.$type,properties:{},superTypes:[Na.$type,Tt.$type]},AbstractRule:{name:Na.$type,properties:{},superTypes:[]},AbstractType:{name:Tt.$type,properties:{},superTypes:[]},Action:{name:Ur.$type,properties:{cardinality:{name:Ur.cardinality},feature:{name:Ur.feature},inferredType:{name:Ur.inferredType},operator:{name:Ur.operator},type:{name:Ur.type,referenceType:Tt.$type}},superTypes:[dt.$type]},Alternatives:{name:Ml.$type,properties:{cardinality:{name:Ml.cardinality},elements:{name:Ml.elements,defaultValue:[]}},superTypes:[dt.$type]},ArrayLiteral:{name:Cu.$type,properties:{elements:{name:Cu.elements,defaultValue:[]}},superTypes:[wn.$type]},ArrayType:{name:Su.$type,properties:{elementType:{name:Su.elementType}},superTypes:[Sn.$type]},Assignment:{name:zr.$type,properties:{cardinality:{name:zr.cardinality},feature:{name:zr.feature},operator:{name:zr.operator},predicate:{name:zr.predicate},terminal:{name:zr.terminal}},superTypes:[dt.$type]},BooleanLiteral:{name:bu.$type,properties:{true:{name:bu.true,defaultValue:!1}},superTypes:[Kr.$type,wn.$type]},CharacterRange:{name:Br.$type,properties:{cardinality:{name:Br.cardinality},left:{name:Br.left},lookahead:{name:Br.lookahead},parenthesized:{name:Br.parenthesized,defaultValue:!1},right:{name:Br.right}},superTypes:[pt.$type]},Condition:{name:Kr.$type,properties:{},superTypes:[]},Conjunction:{name:xl.$type,properties:{left:{name:xl.left},right:{name:xl.right}},superTypes:[Kr.$type]},CrossReference:{name:qr.$type,properties:{cardinality:{name:qr.cardinality},deprecatedSyntax:{name:qr.deprecatedSyntax,defaultValue:!1},isMulti:{name:qr.isMulti,defaultValue:!1},terminal:{name:qr.terminal},type:{name:qr.type,referenceType:Tt.$type}},superTypes:[dt.$type]},Disjunction:{name:Fl.$type,properties:{left:{name:Fl.left},right:{name:Fl.right}},superTypes:[Kr.$type]},EndOfFile:{name:wu.$type,properties:{cardinality:{name:wu.cardinality}},superTypes:[dt.$type]},Grammar:{name:Ar.$type,properties:{imports:{name:Ar.imports,defaultValue:[]},interfaces:{name:Ar.interfaces,defaultValue:[]},isDeclared:{name:Ar.isDeclared,defaultValue:!1},name:{name:Ar.name},rules:{name:Ar.rules,defaultValue:[]},types:{name:Ar.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:Iu.$type,properties:{path:{name:Iu.path}},superTypes:[]},Group:{name:vn.$type,properties:{cardinality:{name:vn.cardinality},elements:{name:vn.elements,defaultValue:[]},guardCondition:{name:vn.guardCondition},predicate:{name:vn.predicate}},superTypes:[dt.$type]},InferredType:{name:Nu.$type,properties:{name:{name:Nu.name}},superTypes:[Tt.$type]},InfixRule:{name:nr.$type,properties:{call:{name:nr.call},dataType:{name:nr.dataType},inferredType:{name:nr.inferredType},name:{name:nr.name},operators:{name:nr.operators},parameters:{name:nr.parameters,defaultValue:[]},returnType:{name:nr.returnType,referenceType:Tt.$type}},superTypes:[Dl.$type]},InfixRuleOperatorList:{name:Gl.$type,properties:{associativity:{name:Gl.associativity},operators:{name:Gl.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:ku.$type,properties:{precedences:{name:ku.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:ka.$type,properties:{attributes:{name:ka.attributes,defaultValue:[]},name:{name:ka.name},superTypes:{name:ka.superTypes,defaultValue:[],referenceType:Tt.$type}},superTypes:[Tt.$type]},Keyword:{name:Pa.$type,properties:{cardinality:{name:Pa.cardinality},predicate:{name:Pa.predicate},value:{name:Pa.value}},superTypes:[dt.$type]},NamedArgument:{name:Oa.$type,properties:{calledByName:{name:Oa.calledByName,defaultValue:!1},parameter:{name:Oa.parameter,referenceType:La.$type},value:{name:Oa.value}},superTypes:[]},NegatedToken:{name:Tn.$type,properties:{cardinality:{name:Tn.cardinality},lookahead:{name:Tn.lookahead},parenthesized:{name:Tn.parenthesized,defaultValue:!1},terminal:{name:Tn.terminal}},superTypes:[pt.$type]},Negation:{name:Pu.$type,properties:{value:{name:Pu.value}},superTypes:[Kr.$type]},NumberLiteral:{name:Ou.$type,properties:{value:{name:Ou.value}},superTypes:[wn.$type]},Parameter:{name:La.$type,properties:{name:{name:La.name}},superTypes:[]},ParameterReference:{name:Lu.$type,properties:{parameter:{name:Lu.parameter,referenceType:La.$type}},superTypes:[Kr.$type]},ParserRule:{name:jt.$type,properties:{dataType:{name:jt.dataType},definition:{name:jt.definition},entry:{name:jt.entry,defaultValue:!1},fragment:{name:jt.fragment,defaultValue:!1},inferredType:{name:jt.inferredType},name:{name:jt.name},parameters:{name:jt.parameters,defaultValue:[]},returnType:{name:jt.returnType,referenceType:Tt.$type}},superTypes:[Dl.$type]},ReferenceType:{name:jl.$type,properties:{isMulti:{name:jl.isMulti,defaultValue:!1},referenceType:{name:jl.referenceType}},superTypes:[Sn.$type]},RegexToken:{name:Rn.$type,properties:{cardinality:{name:Rn.cardinality},lookahead:{name:Rn.lookahead},parenthesized:{name:Rn.parenthesized,defaultValue:!1},regex:{name:Rn.regex}},superTypes:[pt.$type]},ReturnType:{name:Du.$type,properties:{name:{name:Du.name}},superTypes:[]},RuleCall:{name:$n.$type,properties:{arguments:{name:$n.arguments,defaultValue:[]},cardinality:{name:$n.cardinality},predicate:{name:$n.predicate},rule:{name:$n.rule,referenceType:Na.$type}},superTypes:[dt.$type]},SimpleType:{name:Da.$type,properties:{primitiveType:{name:Da.primitiveType},stringType:{name:Da.stringType},typeRef:{name:Da.typeRef,referenceType:Tt.$type}},superTypes:[Sn.$type]},StringLiteral:{name:Mu.$type,properties:{value:{name:Mu.value}},superTypes:[wn.$type]},TerminalAlternatives:{name:An.$type,properties:{cardinality:{name:An.cardinality},elements:{name:An.elements,defaultValue:[]},lookahead:{name:An.lookahead},parenthesized:{name:An.parenthesized,defaultValue:!1}},superTypes:[pt.$type]},TerminalElement:{name:pt.$type,properties:{cardinality:{name:pt.cardinality},lookahead:{name:pt.lookahead},parenthesized:{name:pt.parenthesized,defaultValue:!1}},superTypes:[dt.$type]},TerminalGroup:{name:En.$type,properties:{cardinality:{name:En.cardinality},elements:{name:En.elements,defaultValue:[]},lookahead:{name:En.lookahead},parenthesized:{name:En.parenthesized,defaultValue:!1}},superTypes:[pt.$type]},TerminalRule:{name:Er.$type,properties:{definition:{name:Er.definition},fragment:{name:Er.fragment,defaultValue:!1},hidden:{name:Er.hidden,defaultValue:!1},name:{name:Er.name},type:{name:Er.type}},superTypes:[Na.$type]},TerminalRuleCall:{name:_n.$type,properties:{cardinality:{name:_n.cardinality},lookahead:{name:_n.lookahead},parenthesized:{name:_n.parenthesized,defaultValue:!1},rule:{name:_n.rule,referenceType:Er.$type}},superTypes:[pt.$type]},Type:{name:Ul.$type,properties:{name:{name:Ul.name},type:{name:Ul.type}},superTypes:[Tt.$type]},TypeAttribute:{name:Cn.$type,properties:{defaultValue:{name:Cn.defaultValue},isOptional:{name:Cn.isOptional,defaultValue:!1},name:{name:Cn.name},type:{name:Cn.type}},superTypes:[]},TypeDefinition:{name:Sn.$type,properties:{},superTypes:[]},UnionType:{name:xu.$type,properties:{types:{name:xu.types,defaultValue:[]}},superTypes:[Sn.$type]},UnorderedGroup:{name:zl.$type,properties:{cardinality:{name:zl.cardinality},elements:{name:zl.elements,defaultValue:[]}},superTypes:[dt.$type]},UntilToken:{name:bn.$type,properties:{cardinality:{name:bn.cardinality},lookahead:{name:bn.lookahead},parenthesized:{name:bn.parenthesized,defaultValue:!1},terminal:{name:bn.terminal}},superTypes:[pt.$type]},ValueLiteral:{name:wn.$type,properties:{},superTypes:[]},Wildcard:{name:Ma.$type,properties:{cardinality:{name:Ma.cardinality},lookahead:{name:Ma.lookahead},parenthesized:{name:Ma.parenthesized,defaultValue:!1}},superTypes:[pt.$type]}}}},s(Ka,"LangiumGrammarAstReflection"),Ka),K=new dm;function FT(t){let e=t,r=!1;for(;e;){const n=Bn(e.grammarSource,ot);if(n&&n.dataType)e=e.container,r=!0;else return r?e:void 0}}s(FT,"getDatatypeNode");function Po(t){return new wo(t,e=>Cr(e)?e.content:[],{includeRoot:!0})}s(Po,"streamCst");function GT(t){return Po(t).filter(zn)}s(GT,"flattenCst");function pm(t,e){for(;t.container;)if(t=t.container,t===e)return!0;return!1}s(pm,"isChildNode");function Zl(t){return{start:{character:t.startColumn-1,line:t.startLine-1},end:{character:t.endColumn,line:t.endLine-1}}}s(Zl,"tokenToRange");function Oo(t){if(!t)return;const{offset:e,end:r,range:n}=t;return{range:n,offset:e,end:r,length:r-e}}s(Oo,"toDocumentSegment");var ir;(function(t){t[t.Before=0]="Before",t[t.After=1]="After",t[t.OverlapFront=2]="OverlapFront",t[t.OverlapBack=3]="OverlapBack",t[t.Inside=4]="Inside",t[t.Outside=5]="Outside"})(ir||(ir={}));function hm(t,e){if(t.end.line<e.start.line||t.end.line===e.start.line&&t.end.character<=e.start.character)return ir.Before;if(t.start.line>e.end.line||t.start.line===e.end.line&&t.start.character>=e.end.character)return ir.After;const r=t.start.line>e.start.line||t.start.line===e.start.line&&t.start.character>=e.start.character,n=t.end.line<e.end.line||t.end.line===e.end.line&&t.end.character<=e.end.character;return r&&n?ir.Inside:r?ir.OverlapBack:n?ir.OverlapFront:ir.Outside}s(hm,"compareRange");function mm(t,e){return hm(t,e)>ir.After}s(mm,"inRange");var gm=/^[\w\p{L}]$/u;function jT(t,e,r=gm){if(t){if(e>0){const n=e-t.offset,a=t.text.charAt(n);r.test(a)||e--}return Rf(t,e)}}s(jT,"findDeclarationNodeAtOffset");function ym(t,e){if(t){const r=Rm(t,!0);if(r&&Fu(r,e))return r;if(pf(t)){const n=t.content.findIndex(a=>!a.hidden);for(let a=n-1;a>=0;a--){const i=t.content[a];if(Fu(i,e))return i}}}}s(ym,"findCommentNode");function Fu(t,e){return zn(t)&&e.includes(t.tokenType.name)}s(Fu,"isCommentNode");function Rf(t,e){if(zn(t))return t;if(Cr(t)){const r=Tm(t,e,!1);if(r)return Rf(r,e)}}s(Rf,"findLeafNodeAtOffset");function vm(t,e){if(zn(t))return t;if(Cr(t)){const r=Tm(t,e,!0);if(r)return vm(r,e)}}s(vm,"findLeafNodeBeforeOffset");function Tm(t,e,r){let n=0,a=t.content.length-1,i;for(;n<=a;){const o=Math.floor((n+a)/2),c=t.content[o];if(c.offset<=e&&c.end>e)return c;c.end<=e?(i=r?c:void 0,n=o+1):a=o-1}return i}s(Tm,"binarySearch");function Rm(t,e=!0){for(;t.container;){const r=t.container;let n=r.content.indexOf(t);for(;n>0;){n--;const a=r.content[n];if(e||!a.hidden)return a}t=r}}s(Rm,"getPreviousNode");function UT(t,e=!0){for(;t.container;){const r=t.container;let n=r.content.indexOf(t);const a=r.content.length-1;for(;n<a;){n++;const i=r.content[n];if(e||!i.hidden)return i}t=r}}s(UT,"getNextNode");function zT(t){if(t.range.start.character===0)return t;const e=t.range.start.line;let r=t,n;for(;t.container;){const a=t.container,i=n??a.content.indexOf(t);if(i===0?(t=a,n=void 0):(n=i-1,t=a.content[n]),t.range.start.line!==e)break;r=t}return r}s(zT,"getStartlineNode");function BT(t,e){const r=KT(t,e);return r?r.parent.content.slice(r.a+1,r.b):[]}s(BT,"getInteriorNodes");function KT(t,e){const r=Kp(t),n=Kp(e);let a;for(let i=0;i<r.length&&i<n.length;i++){const o=r[i],c=n[i];if(o.parent===c.parent)a={parent:o.parent,a:o.index,b:c.index};else break}return a}s(KT,"getCommonParent");function Kp(t){const e=[];for(;t.container;){const r=t.container,n=r.content.indexOf(t);e.push({parent:r,index:n}),t=r}return e.reverse()}s(Kp,"getParentChain");var $m={};Zr($m,{findAssignment:()=>Lm,findNameAssignment:()=>wf,findNodeForKeyword:()=>Om,findNodeForProperty:()=>Cf,findNodesForKeyword:()=>ZT,findNodesForKeywordInternal:()=>bf,findNodesForProperty:()=>Pm,getActionAtElement:()=>Mm,getActionType:()=>Fm,getAllReachableRules:()=>_f,getAllRulesUsedForCrossReferences:()=>JT,getCrossReferenceTerminal:()=>Nm,getEntryRule:()=>bm,getExplicitRuleType:()=>Tc,getHiddenRules:()=>wm,getRuleType:()=>Gm,getRuleTypeName:()=>nR,getTypeName:()=>xn,isArrayCardinality:()=>eR,isArrayOperator:()=>tR,isCommentTerminal:()=>km,isDataType:()=>rR,isDataTypeRule:()=>vc,isOptionalCardinality:()=>QT,terminalRegex:()=>Rc});var qa,$f=(qa=class extends Error{constructor(e,r){super(e?`${r} at ${e.range.start.line}:${e.range.start.character}`:r)}},s(qa,"ErrorWithLocation"),qa);function Qr(t,e="Error: Got unexpected value."){throw new Error(e)}s(Qr,"assertUnreachable");function Am(t,e="Error: Condition is violated."){if(!t)throw new Error(e)}s(Am,"assertCondition");var Em={};Zr(Em,{NEWLINE_REGEXP:()=>VT,escapeRegExp:()=>Uo,getTerminalParts:()=>YT,isMultilineComment:()=>_m,isWhitespace:()=>Ef,partialMatches:()=>Cm,partialRegExp:()=>Sm,whitespaceCharacters:()=>XT});function W(t){return t.charCodeAt(0)}s(W,"cc");function ou(t,e){Array.isArray(t)?t.forEach(function(r){e.push(r)}):e.push(t)}s(ou,"insertToSet");function Ea(t,e){if(t[e]===!0)throw"duplicate flag "+e;t[e],t[e]=!0}s(Ea,"addFlag");function fn(t){if(t===void 0)throw Error("Internal Error - Should never get here!");return!0}s(fn,"ASSERT_EXISTS");function qT(){throw Error("Internal Error - Should never get here!")}s(qT,"ASSERT_NEVER_REACH_HERE");function qp(t){return t.type==="Character"}s(qp,"isCharacter");var Gu=[];for(let t=W("0");t<=W("9");t++)Gu.push(t);var ju=[W("_")].concat(Gu);for(let t=W("a");t<=W("z");t++)ju.push(t);for(let t=W("A");t<=W("Z");t++)ju.push(t);var Cy=[W(" "),W("\f"),W(`
|
|
36
|
+
`),W("\r"),W(" "),W("\v"),W(" "),W(" "),W(" "),W(" "),W(" "),W(" "),W(" "),W(" "),W(" "),W(" "),W(" "),W(" "),W(" "),W(" "),W("\u2028"),W("\u2029"),W(" "),W(" "),W(" "),W("\uFEFF")],vk=/[0-9a-fA-F]/,Mc=/[0-9]/,Tk=/[1-9]/,Wa,WT=(Wa=class{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const r=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Ea(n,"global");break;case"i":Ea(n,"ignoreCase");break;case"m":Ea(n,"multiLine");break;case"u":Ea(n,"unicode");break;case"y":Ea(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:r,loc:this.loc(0)}}disjunction(){const e=[],r=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(r)}}alternative(){const e=[],r=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(r)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let r;switch(this.popChar()){case"=":r="Lookahead";break;case"!":r="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":r="Lookbehind";break;case"!":r="NegativeLookbehind"}break}}fn(r);const n=this.disjunction();return this.consumeChar(")"),{type:r,value:n,loc:this.loc(e)}}return qT()}quantifier(e=!1){let r;const n=this.idx;switch(this.popChar()){case"*":r={atLeast:0,atMost:1/0};break;case"+":r={atLeast:1,atMost:1/0};break;case"?":r={atLeast:0,atMost:1};break;case"{":const a=this.integerIncludingZero();switch(this.popChar()){case"}":r={atLeast:a,atMost:a};break;case",":let i;this.isDigit()?(i=this.integerIncludingZero(),r={atLeast:a,atMost:i}):r={atLeast:a,atMost:1/0},this.consumeChar("}");break}if(e===!0&&r===void 0)return;fn(r);break}if(!(e===!0&&r===void 0)&&fn(r))return this.peekChar(0)==="?"?(this.consumeChar("?"),r.greedy=!1):r.greedy=!0,r.type="Quantifier",r.loc=this.loc(n),r}atom(){let e;const r=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),fn(e))return e.loc=this.loc(r),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[W(`
|
|
37
|
+
`),W("\r"),W("\u2028"),W("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,r=!1;switch(this.popChar()){case"d":e=Gu;break;case"D":e=Gu,r=!0;break;case"s":e=Cy;break;case"S":e=Cy,r=!0;break;case"w":e=ju;break;case"W":e=ju,r=!0;break}if(fn(e))return{type:"Set",value:e,complement:r}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=W("\f");break;case"n":e=W(`
|
|
38
|
+
`);break;case"r":e=W("\r");break;case"t":e=W(" ");break;case"v":e=W("\v");break}if(fn(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:W("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:W(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
|
|
39
|
+
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:const e=this.popChar();return{type:"Character",value:W(e)}}}characterClass(){const e=[];let r=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),r=!0);this.isClassAtom();){const n=this.classAtom();if(n.type,qp(n)&&this.isRangeDash()){this.consumeChar("-");const a=this.classAtom();if(a.type,qp(a)){if(a.value<n.value)throw Error("Range out of order in character class");e.push({from:n.value,to:a.value})}else ou(n.value,e),e.push(W("-")),ou(a.value,e)}else ou(n.value,e)}return this.consumeChar("]"),{type:"Set",complement:r,value:e}}classAtom(){switch(this.peekChar()){case"]":case`
|
|
40
|
+
`:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:W("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let e=!0;this.consumeChar("("),this.peekChar(0)==="?"?(this.consumeChar("?"),this.consumeChar(":"),e=!1):this.groupIdx++;const r=this.disjunction();this.consumeChar(")");const n={type:"Group",capturing:e,value:r};return e&&(n.idx=this.groupIdx),n}positiveInteger(){let e=this.popChar();if(Tk.test(e)===!1)throw Error("Expecting a positive integer");for(;Mc.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}integerIncludingZero(){let e=this.popChar();if(Mc.test(e)===!1)throw Error("Expecting an integer");for(;Mc.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}patternCharacter(){const e=this.popChar();switch(e){case`
|
|
41
|
+
`:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:W(e)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return this.peekChar()==="-"&&this.isClassAtom(1)}isDigit(){return Mc.test(this.peekChar(0))}isClassAtom(e=0){switch(this.peekChar(e)){case"]":case`
|
|
42
|
+
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!"||this.peekChar(2)==="<"&&(this.peekChar(3)==="="||this.peekChar(3)==="!"));default:return!1}}isQuantifier(){const e=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(e)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
|
|
43
|
+
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(e){let r="";for(let a=0;a<e;a++){const i=this.popChar();if(vk.test(i)===!1)throw Error("Expecting a HexDecimal digits");r+=i}return{type:"Character",value:parseInt(r,16)}}peekChar(e=0){return this.input[this.idx+e]}popChar(){const e=this.peekChar(0);return this.consumeChar(void 0),e}consumeChar(e){if(e!==void 0&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}},s(Wa,"RegExpParser"),Wa),Va,Af=(Va=class{visitChildren(e){for(const r in e){const n=e[r];e.hasOwnProperty(r)&&(n.type!==void 0?this.visit(n):Array.isArray(n)&&n.forEach(a=>{this.visit(a)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}},s(Va,"BaseRegExpVisitor"),Va),VT=/\r?\n/gm,HT=new WT,Ha,Rk=(Ha=class extends Af{constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){const r=String.fromCharCode(e.value);if(!this.multiline&&r===`
|
|
44
|
+
`&&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const n=Uo(r);this.endRegexpStack.push(n),this.isStarting&&(this.startRegexp+=n)}}visitSet(e){if(!this.multiline){const r=this.regex.substring(e.loc.begin,e.loc.end),n=new RegExp(r);this.multiline=!!`
|
|
45
|
+
`.match(n)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const r=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(r),this.isStarting&&(this.startRegexp+=r)}}visitChildren(e){e.type==="Group"&&e.quantifier||super.visitChildren(e)}},s(Ha,"TerminalRegExpVisitor"),Ha),In=new Rk;function YT(t){try{typeof t!="string"&&(t=t.source),t=`/${t}/`;const e=HT.pattern(t),r=[];for(const n of e.value.value)In.reset(t),In.visit(n),r.push({start:In.startRegexp,end:In.endRegex});return r}catch{return[]}}s(YT,"getTerminalParts");function _m(t){try{return typeof t=="string"&&(t=new RegExp(t)),t=t.toString(),In.reset(t),In.visit(HT.pattern(t)),In.multiline}catch{return!1}}s(_m,"isMultilineComment");var XT=`\f
|
|
46
|
+
\r \v \u2028\u2029 \uFEFF`.split("");function Ef(t){const e=typeof t=="string"?new RegExp(t):t;return XT.some(r=>e.test(r))}s(Ef,"isWhitespace");function Uo(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}s(Uo,"escapeRegExp");function Cm(t,e){const r=Sm(t),n=e.match(r);return!!n&&n[0].length>0}s(Cm,"partialMatches");function Sm(t){typeof t=="string"&&(t=new RegExp(t));const e=t,r=t.source;let n=0;function a(){let i="",o;function c(u){i+=r.substr(n,u),n+=u}s(c,"appendRaw");function l(u){i+="(?:"+r.substr(n,u)+"|$)",n+=u}for(s(l,"appendOptional");n<r.length;)switch(r[n]){case"\\":switch(r[n+1]){case"c":l(3);break;case"x":l(4);break;case"u":e.unicode?r[n+2]==="{"?l(r.indexOf("}",n)-n+1):l(6):l(2);break;case"p":case"P":e.unicode?l(r.indexOf("}",n)-n+1):l(2);break;case"k":l(r.indexOf(">",n)-n+1);break;default:l(2);break}break;case"[":o=/\[(?:\\.|.)*?\]/g,o.lastIndex=n,o=o.exec(r)||[],l(o[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":c(1);break;case"{":o=/\{\d+,?\d*\}/g,o.lastIndex=n,o=o.exec(r),o?c(o[0].length):l(1);break;case"(":if(r[n+1]==="?")switch(r[n+2]){case":":i+="(?:",n+=3,i+=a()+"|$)";break;case"=":i+="(?=",n+=3,i+=a()+")";break;case"!":o=n,n+=3,a(),i+=r.substr(o,n-o);break;case"<":switch(r[n+3]){case"=":case"!":o=n,n+=4,a(),i+=r.substr(o,n-o);break;default:c(r.indexOf(">",n)-n+1),i+=a()+"|$)";break}break}else c(1),i+=a()+"|$)";break;case")":return++n,i;default:l(1);break}return i}return s(a,"process"),new RegExp(a(),t.flags)}s(Sm,"partialRegExp");function bm(t){return t.rules.find(e=>ot(e)&&e.entry)}s(bm,"getEntryRule");function wm(t){return t.rules.filter(e=>xt(e)&&e.hidden)}s(wm,"getHiddenRules");function _f(t,e){const r=new Set,n=bm(t);if(!n)return new Set(t.rules);const a=[n].concat(wm(t));for(const o of a)Im(o,r,e);const i=new Set;for(const o of t.rules)(r.has(o.name)||xt(o)&&o.hidden)&&i.add(o);return i}s(_f,"getAllReachableRules");function Im(t,e,r){e.add(t.name),Dr(t).forEach(n=>{if(wr(n)||r&&yf(n)){const a=n.rule.ref;a&&!e.has(a.name)&&Im(a,e,r)}})}s(Im,"ruleDfs");function JT(t){const e=new Set;return Dr(t).forEach(r=>{qn(r)&&(ot(r.type.ref)&&e.add(r.type.ref),yc(r.type.ref)&&ot(r.type.ref.$container)&&e.add(r.type.ref.$container))}),e}s(JT,"getAllRulesUsedForCrossReferences");function Nm(t){if(t.terminal)return t.terminal;if(t.type.ref)return wf(t.type.ref)?.terminal}s(Nm,"getCrossReferenceTerminal");function km(t){return t.hidden&&!Ef(Rc(t))}s(km,"isCommentTerminal");function Pm(t,e){return!t||!e?[]:Sf(t,e,t.astNode,!0)}s(Pm,"findNodesForProperty");function Cf(t,e,r){if(!t||!e)return;const n=Sf(t,e,t.astNode,!0);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}s(Cf,"findNodeForProperty");function Sf(t,e,r,n){if(!n){const a=Bn(t.grammarSource,Sr);if(a&&a.feature===e)return[t]}return Cr(t)&&t.astNode===r?t.content.flatMap(a=>Sf(a,e,r,!1)):[]}s(Sf,"findNodesForPropertyInternal");function ZT(t,e){return t?bf(t,e,t?.astNode):[]}s(ZT,"findNodesForKeyword");function Om(t,e,r){if(!t)return;const n=bf(t,e,t?.astNode);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}s(Om,"findNodeForKeyword");function bf(t,e,r){if(t.astNode!==r)return[];if(br(t.grammarSource)&&t.grammarSource.value===e)return[t];const n=Po(t).iterator();let a;const i=[];do if(a=n.next(),!a.done){const o=a.value;o.astNode===r?br(o.grammarSource)&&o.grammarSource.value===e&&i.push(o):n.prune()}while(!a.done);return i}s(bf,"findNodesForKeywordInternal");function Lm(t){const e=t.astNode;for(;e===t.container?.astNode;){const r=Bn(t.grammarSource,Sr);if(r)return r;t=t.container}}s(Lm,"findAssignment");function wf(t){let e=t;return yc(e)&&(Vr(e.$container)?e=e.$container.$container:Kn(e.$container)?e=e.$container:Qr(e.$container)),Dm(t,e,new Map)}s(wf,"findNameAssignment");function Dm(t,e,r){function n(a,i){let o;return Bn(a,Sr)||(o=Dm(i,i,r)),r.set(t,o),o}if(s(n,"go"),r.has(t))return r.get(t);r.set(t,void 0);for(const a of Dr(e)){if(Sr(a)&&a.feature.toLowerCase()==="name")return r.set(t,a),a;if(wr(a)&&ot(a.rule.ref))return n(a,a.rule.ref);if(gf(a)&&a.typeRef?.ref)return n(a,a.typeRef.ref)}}s(Dm,"findNameAssignmentInternal");function Mm(t){const e=t.$container;if(Wn(e)){const r=e.elements,n=r.indexOf(t);for(let a=n-1;a>=0;a--){const i=r[a];if(Vr(i))return i;{const o=Dr(r[a]).find(Vr);if(o)return o}}}if(hf(e))return Mm(e)}s(Mm,"getActionAtElement");function QT(t,e){return t==="?"||t==="*"||Wn(e)&&!!e.guardCondition}s(QT,"isOptionalCardinality");function eR(t){return t==="*"||t==="+"}s(eR,"isArrayCardinality");function tR(t){return t==="+="}s(tR,"isArrayOperator");function vc(t){return xm(t,new Set)}s(vc,"isDataTypeRule");function xm(t,e){if(e.has(t))return!0;e.add(t);for(const r of Dr(t))if(wr(r)){if(!r.rule.ref||ot(r.rule.ref)&&!xm(r.rule.ref,e)||ko(r.rule.ref))return!1}else{if(Sr(r))return!1;if(Vr(r))return!1}return!!t.definition}s(xm,"isDataTypeRuleInternal");function rR(t){return Uu(t.type,new Set)}s(rR,"isDataType");function Uu(t,e){if(e.has(t))return!0;if(e.add(t),Hh(t))return!1;if(am(t))return!1;if(cm(t))return t.types.every(r=>Uu(r,e));if(gf(t)){if(t.primitiveType!==void 0)return!0;if(t.stringType!==void 0)return!0;if(t.typeRef!==void 0){const r=t.typeRef.ref;return vf(r)?Uu(r.type,e):!1}else return!1}else return!1}s(Uu,"isDataTypeInternal");function Tc(t){if(!xt(t)){if(t.inferredType)return t.inferredType.name;if(t.dataType)return t.dataType;if(t.returnType){const e=t.returnType.ref;if(e)return e.name}}}s(Tc,"getExplicitRuleType");function xn(t){if(Kn(t))return ot(t)&&vc(t)?t.name:Tc(t)??t.name;if(em(t)||vf(t)||sm(t))return t.name;if(Vr(t)){const e=Fm(t);if(e)return e}else if(yc(t))return t.name;throw new Error("Cannot get name of Unknown Type")}s(xn,"getTypeName");function Fm(t){if(t.inferredType)return t.inferredType.name;if(t.type?.ref)return xn(t.type.ref)}s(Fm,"getActionType");function nR(t){return xt(t)?t.type?.name??"string":ot(t)&&vc(t)?t.name:Tc(t)??t.name}s(nR,"getRuleTypeName");function Gm(t){return xt(t)?t.type?.name??"string":Tc(t)??t.name}s(Gm,"getRuleType");function Rc(t){const e={s:!1,i:!1,u:!1},r=Vn(t.definition,e),n=Object.entries(e).filter(([,a])=>a).map(([a])=>a).join("");return new RegExp(r,n)}s(Rc,"terminalRegex");var jm=/[\s\S]/.source;function Vn(t,e){if(om(t))return aR(t);if(lm(t))return iR(t);if(Xh(t))return lR(t);if(yf(t)){const r=t.rule.ref;if(!r)throw new Error("Missing rule reference.");return cr(Vn(r.definition),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized})}else{if(tm(t))return oR(t);if(um(t))return sR(t);if(im(t)){const r=t.regex.lastIndexOf("/"),n=t.regex.substring(1,r),a=t.regex.substring(r+1);return e&&(e.i=a.includes("i"),e.s=a.includes("s"),e.u=a.includes("u")),cr(n,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}else{if(fm(t))return cr(jm,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized});throw new Error(`Invalid terminal element: ${t?.$type}, ${t?.$cstNode?.text}`)}}}s(Vn,"abstractElementToRegex");function aR(t){return cr(t.elements.map(e=>Vn(e)).join("|"),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}s(aR,"terminalAlternativesToRegex");function iR(t){return cr(t.elements.map(e=>Vn(e)).join(""),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}s(iR,"terminalGroupToRegex");function sR(t){return cr(`${jm}*?${Vn(t.terminal)}`,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized})}s(sR,"untilTokenToRegex");function oR(t){return cr(`(?!${Vn(t.terminal)})${jm}*?`,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized})}s(oR,"negateTokenToRegex");function lR(t){return t.right?cr(`[${lu(t.left)}-${lu(t.right)}]`,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1}):cr(lu(t.left),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}s(lR,"characterRangeToRegex");function lu(t){return Uo(t.value)}s(lu,"keywordToRegex");function cr(t,e){return(e.parenthesized||e.lookahead||e.wrap!==!1)&&(t=`(${e.lookahead??(e.parenthesized?"":"?:")}${t})`),e.cardinality?`${t}${e.cardinality}`:t}s(cr,"withCardinality");function Um(t){const e=[],r=t.Grammar;for(const n of r.rules)xt(n)&&km(n)&&_m(Rc(n))&&e.push(n.name);return{multilineCommentRules:e,nameRegexp:gm}}s(Um,"createGrammarConfig");var $k=typeof global=="object"&&global&&global.Object===Object&&global,cR=$k,Ak=typeof self=="object"&&self&&self.Object===Object&&self,Ek=cR||Ak||Function("return this")(),fr=Ek,_k=fr.Symbol,Dt=_k,uR=Object.prototype,Ck=uR.hasOwnProperty,Sk=uR.toString,hl=Dt?Dt.toStringTag:void 0;function fR(t){var e=Ck.call(t,hl),r=t[hl];try{t[hl]=void 0;var n=!0}catch{}var a=Sk.call(t);return n&&(e?t[hl]=r:delete t[hl]),a}s(fR,"getRawTag");var bk=fR,wk=Object.prototype,Ik=wk.toString;function dR(t){return Ik.call(t)}s(dR,"objectToString");var Nk=dR,kk="[object Null]",Pk="[object Undefined]",Sy=Dt?Dt.toStringTag:void 0;function pR(t){return t==null?t===void 0?Pk:kk:Sy&&Sy in Object(t)?bk(t):Nk(t)}s(pR,"baseGetTag");var en=pR;function hR(t){return t!=null&&typeof t=="object"}s(hR,"isObjectLike");var Vt=hR,Ok="[object Symbol]";function mR(t){return typeof t=="symbol"||Vt(t)&&en(t)==Ok}s(mR,"isSymbol");var If=mR;function gR(t,e){for(var r=-1,n=t==null?0:t.length,a=Array(n);++r<n;)a[r]=e(t[r],r,t);return a}s(gR,"arrayMap");var $c=gR,Lk=Array.isArray,ae=Lk,by=Dt?Dt.prototype:void 0,wy=by?by.toString:void 0;function zm(t){if(typeof t=="string")return t;if(ae(t))return $c(t,zm)+"";if(If(t))return wy?wy.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}s(zm,"baseToString");var Dk=zm,Mk=/\s/;function yR(t){for(var e=t.length;e--&&Mk.test(t.charAt(e)););return e}s(yR,"trimmedEndIndex");var xk=yR,Fk=/^\s+/;function vR(t){return t&&t.slice(0,xk(t)+1).replace(Fk,"")}s(vR,"baseTrim");var Gk=vR;function TR(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}s(TR,"isObject");var Mt=TR,Iy=NaN,jk=/^[-+]0x[0-9a-f]+$/i,Uk=/^0b[01]+$/i,zk=/^0o[0-7]+$/i,Bk=parseInt;function RR(t){if(typeof t=="number")return t;if(If(t))return Iy;if(Mt(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Mt(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Gk(t);var r=Uk.test(t);return r||zk.test(t)?Bk(t.slice(2),r?2:8):jk.test(t)?Iy:+t}s(RR,"toNumber");var Kk=RR,Ny=1/0,qk=17976931348623157e292;function $R(t){if(!t)return t===0?t:0;if(t=Kk(t),t===Ny||t===-Ny){var e=t<0?-1:1;return e*qk}return t===t?t:0}s($R,"toFinite");var Wk=$R;function AR(t){var e=Wk(t),r=e%1;return e===e?r?e-r:e:0}s(AR,"toInteger");var Ac=AR;function ER(t){return t}s(ER,"identity");var Lo=ER,Vk="[object AsyncFunction]",Hk="[object Function]",Yk="[object GeneratorFunction]",Xk="[object Proxy]";function _R(t){if(!Mt(t))return!1;var e=en(t);return e==Hk||e==Yk||e==Vk||e==Xk}s(_R,"isFunction");var Mr=_R,Jk=fr["__core-js_shared__"],$d=Jk,ky=(function(){var t=/[^.]+$/.exec($d&&$d.keys&&$d.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function CR(t){return!!ky&&ky in t}s(CR,"isMasked");var Zk=CR,Qk=Function.prototype,eP=Qk.toString;function SR(t){if(t!=null){try{return eP.call(t)}catch{}try{return t+""}catch{}}return""}s(SR,"toSource");var Hn=SR,tP=/[\\^$.*+?()[\]{}|]/g,rP=/^\[object .+?Constructor\]$/,nP=Function.prototype,aP=Object.prototype,iP=nP.toString,sP=aP.hasOwnProperty,oP=RegExp("^"+iP.call(sP).replace(tP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function bR(t){if(!Mt(t)||Zk(t))return!1;var e=Mr(t)?oP:rP;return e.test(Hn(t))}s(bR,"baseIsNative");var lP=bR;function wR(t,e){return t?.[e]}s(wR,"getValue");var cP=wR;function IR(t,e){var r=cP(t,e);return lP(r)?r:void 0}s(IR,"getNative");var Yn=IR,uP=Yn(fr,"WeakMap"),Wp=uP,Py=Object.create,fP=(function(){function t(){}return s(t,"object"),function(e){if(!Mt(e))return{};if(Py)return Py(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}})(),dP=fP;function NR(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}s(NR,"apply");var pP=NR;function kR(){}s(kR,"noop");var qe=kR;function PR(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}s(PR,"copyArray");var hP=PR,mP=800,gP=16,yP=Date.now;function OR(t){var e=0,r=0;return function(){var n=yP(),a=gP-(n-r);if(r=n,a>0){if(++e>=mP)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}s(OR,"shortOut");var vP=OR;function LR(t){return function(){return t}}s(LR,"constant");var TP=LR,RP=(function(){try{var t=Yn(Object,"defineProperty");return t({},"",{}),t}catch{}})(),zu=RP,$P=zu?function(t,e){return zu(t,"toString",{configurable:!0,enumerable:!1,value:TP(e),writable:!0})}:Lo,AP=$P,EP=vP(AP),_P=EP;function DR(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}s(DR,"arrayEach");var MR=DR;function xR(t,e,r,n){for(var a=t.length,i=r+(n?1:-1);n?i--:++i<a;)if(e(t[i],i,t))return i;return-1}s(xR,"baseFindIndex");var FR=xR;function GR(t){return t!==t}s(GR,"baseIsNaN");var CP=GR;function jR(t,e,r){for(var n=r-1,a=t.length;++n<a;)if(t[n]===e)return n;return-1}s(jR,"strictIndexOf");var SP=jR;function UR(t,e,r){return e===e?SP(t,e,r):FR(t,CP,r)}s(UR,"baseIndexOf");var Bm=UR;function zR(t,e){var r=t==null?0:t.length;return!!r&&Bm(t,e,0)>-1}s(zR,"arrayIncludes");var BR=zR,bP=9007199254740991,wP=/^(?:0|[1-9]\d*)$/;function KR(t,e){var r=typeof t;return e=e??bP,!!e&&(r=="number"||r!="symbol"&&wP.test(t))&&t>-1&&t%1==0&&t<e}s(KR,"isIndex");var Nf=KR;function qR(t,e,r){e=="__proto__"&&zu?zu(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}s(qR,"baseAssignValue");var Km=qR;function WR(t,e){return t===e||t!==t&&e!==e}s(WR,"eq");var Ec=WR,IP=Object.prototype,NP=IP.hasOwnProperty;function VR(t,e,r){var n=t[e];(!(NP.call(t,e)&&Ec(n,r))||r===void 0&&!(e in t))&&Km(t,e,r)}s(VR,"assignValue");var kf=VR;function HR(t,e,r,n){var a=!r;r||(r={});for(var i=-1,o=e.length;++i<o;){var c=e[i],l=n?n(r[c],t[c],c,r,t):void 0;l===void 0&&(l=t[c]),a?Km(r,c,l):kf(r,c,l)}return r}s(HR,"copyObject");var _c=HR,Oy=Math.max;function YR(t,e,r){return e=Oy(e===void 0?t.length-1:e,0),function(){for(var n=arguments,a=-1,i=Oy(n.length-e,0),o=Array(i);++a<i;)o[a]=n[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=n[a];return c[e]=r(o),pP(t,this,c)}}s(YR,"overRest");var kP=YR;function XR(t,e){return _P(kP(t,e,Lo),t+"")}s(XR,"baseRest");var qm=XR,PP=9007199254740991;function JR(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=PP}s(JR,"isLength");var Wm=JR;function ZR(t){return t!=null&&Wm(t.length)&&!Mr(t)}s(ZR,"isArrayLike");var dr=ZR;function QR(t,e,r){if(!Mt(r))return!1;var n=typeof e;return(n=="number"?dr(r)&&Nf(e,r.length):n=="string"&&e in r)?Ec(r[e],t):!1}s(QR,"isIterateeCall");var Pf=QR;function e$(t){return qm(function(e,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=t.length>3&&typeof i=="function"?(a--,i):void 0,o&&Pf(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++n<a;){var c=r[n];c&&t(e,c,n,i)}return e})}s(e$,"createAssigner");var OP=e$,LP=Object.prototype;function t$(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||LP;return t===r}s(t$,"isPrototype");var Cc=t$;function r$(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}s(r$,"baseTimes");var DP=r$,MP="[object Arguments]";function n$(t){return Vt(t)&&en(t)==MP}s(n$,"baseIsArguments");var Ly=n$,a$=Object.prototype,xP=a$.hasOwnProperty,FP=a$.propertyIsEnumerable,GP=Ly((function(){return arguments})())?Ly:function(t){return Vt(t)&&xP.call(t,"callee")&&!FP.call(t,"callee")},Of=GP;function i$(){return!1}s(i$,"stubFalse");var jP=i$,s$=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Dy=s$&&typeof module=="object"&&module&&!module.nodeType&&module,UP=Dy&&Dy.exports===s$,My=UP?fr.Buffer:void 0,zP=My?My.isBuffer:void 0,BP=zP||jP,Ql=BP,KP="[object Arguments]",qP="[object Array]",WP="[object Boolean]",VP="[object Date]",HP="[object Error]",YP="[object Function]",XP="[object Map]",JP="[object Number]",ZP="[object Object]",QP="[object RegExp]",e0="[object Set]",t0="[object String]",r0="[object WeakMap]",n0="[object ArrayBuffer]",a0="[object DataView]",i0="[object Float32Array]",s0="[object Float64Array]",o0="[object Int8Array]",l0="[object Int16Array]",c0="[object Int32Array]",u0="[object Uint8Array]",f0="[object Uint8ClampedArray]",d0="[object Uint16Array]",p0="[object Uint32Array]",Ce={};Ce[i0]=Ce[s0]=Ce[o0]=Ce[l0]=Ce[c0]=Ce[u0]=Ce[f0]=Ce[d0]=Ce[p0]=!0;Ce[KP]=Ce[qP]=Ce[n0]=Ce[WP]=Ce[a0]=Ce[VP]=Ce[HP]=Ce[YP]=Ce[XP]=Ce[JP]=Ce[ZP]=Ce[QP]=Ce[e0]=Ce[t0]=Ce[r0]=!1;function o$(t){return Vt(t)&&Wm(t.length)&&!!Ce[en(t)]}s(o$,"baseIsTypedArray");var h0=o$;function l$(t){return function(e){return t(e)}}s(l$,"baseUnary");var Sc=l$,c$=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bl=c$&&typeof module=="object"&&module&&!module.nodeType&&module,m0=Bl&&Bl.exports===c$,Ad=m0&&cR.process,g0=(function(){try{var t=Bl&&Bl.require&&Bl.require("util").types;return t||Ad&&Ad.binding&&Ad.binding("util")}catch{}})(),Hr=g0,xy=Hr&&Hr.isTypedArray,y0=xy?Sc(xy):h0,Vm=y0,v0=Object.prototype,T0=v0.hasOwnProperty;function u$(t,e){var r=ae(t),n=!r&&Of(t),a=!r&&!n&&Ql(t),i=!r&&!n&&!a&&Vm(t),o=r||n||a||i,c=o?DP(t.length,String):[],l=c.length;for(var u in t)(e||T0.call(t,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Nf(u,l)))&&c.push(u);return c}s(u$,"arrayLikeKeys");var f$=u$;function d$(t,e){return function(r){return t(e(r))}}s(d$,"overArg");var p$=d$,R0=p$(Object.keys,Object),$0=R0,A0=Object.prototype,E0=A0.hasOwnProperty;function h$(t){if(!Cc(t))return $0(t);var e=[];for(var r in Object(t))E0.call(t,r)&&r!="constructor"&&e.push(r);return e}s(h$,"baseKeys");var m$=h$;function g$(t){return dr(t)?f$(t):m$(t)}s(g$,"keys");var $t=g$,_0=Object.prototype,C0=_0.hasOwnProperty,S0=OP(function(t,e){if(Cc(e)||dr(e)){_c(e,$t(e),t);return}for(var r in e)C0.call(e,r)&&kf(t,r,e[r])}),At=S0;function y$(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}s(y$,"nativeKeysIn");var b0=y$,w0=Object.prototype,I0=w0.hasOwnProperty;function v$(t){if(!Mt(t))return b0(t);var e=Cc(t),r=[];for(var n in t)n=="constructor"&&(e||!I0.call(t,n))||r.push(n);return r}s(v$,"baseKeysIn");var N0=v$;function T$(t){return dr(t)?f$(t,!0):N0(t)}s(T$,"keysIn");var Lf=T$,k0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P0=/^\w*$/;function R$(t,e){if(ae(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||If(t)?!0:P0.test(t)||!k0.test(t)||e!=null&&t in Object(e)}s(R$,"isKey");var Hm=R$,O0=Yn(Object,"create"),ec=O0;function $$(){this.__data__=ec?ec(null):{},this.size=0}s($$,"hashClear");var L0=$$;function A$(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}s(A$,"hashDelete");var D0=A$,M0="__lodash_hash_undefined__",x0=Object.prototype,F0=x0.hasOwnProperty;function E$(t){var e=this.__data__;if(ec){var r=e[t];return r===M0?void 0:r}return F0.call(e,t)?e[t]:void 0}s(E$,"hashGet");var G0=E$,j0=Object.prototype,U0=j0.hasOwnProperty;function _$(t){var e=this.__data__;return ec?e[t]!==void 0:U0.call(e,t)}s(_$,"hashHas");var z0=_$,B0="__lodash_hash_undefined__";function C$(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=ec&&e===void 0?B0:e,this}s(C$,"hashSet");var K0=C$;function Xn(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s(Xn,"Hash");Xn.prototype.clear=L0;Xn.prototype.delete=D0;Xn.prototype.get=G0;Xn.prototype.has=z0;Xn.prototype.set=K0;var Fy=Xn;function S$(){this.__data__=[],this.size=0}s(S$,"listCacheClear");var q0=S$;function b$(t,e){for(var r=t.length;r--;)if(Ec(t[r][0],e))return r;return-1}s(b$,"assocIndexOf");var Df=b$,W0=Array.prototype,V0=W0.splice;function w$(t){var e=this.__data__,r=Df(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():V0.call(e,r,1),--this.size,!0}s(w$,"listCacheDelete");var H0=w$;function I$(t){var e=this.__data__,r=Df(e,t);return r<0?void 0:e[r][1]}s(I$,"listCacheGet");var Y0=I$;function N$(t){return Df(this.__data__,t)>-1}s(N$,"listCacheHas");var X0=N$;function k$(t,e){var r=this.__data__,n=Df(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}s(k$,"listCacheSet");var J0=k$;function Jn(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s(Jn,"ListCache");Jn.prototype.clear=q0;Jn.prototype.delete=H0;Jn.prototype.get=Y0;Jn.prototype.has=X0;Jn.prototype.set=J0;var Mf=Jn,Z0=Yn(fr,"Map"),tc=Z0;function P$(){this.size=0,this.__data__={hash:new Fy,map:new(tc||Mf),string:new Fy}}s(P$,"mapCacheClear");var Q0=P$;function O$(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}s(O$,"isKeyable");var eO=O$;function L$(t,e){var r=t.__data__;return eO(e)?r[typeof e=="string"?"string":"hash"]:r.map}s(L$,"getMapData");var xf=L$;function D$(t){var e=xf(this,t).delete(t);return this.size-=e?1:0,e}s(D$,"mapCacheDelete");var tO=D$;function M$(t){return xf(this,t).get(t)}s(M$,"mapCacheGet");var rO=M$;function x$(t){return xf(this,t).has(t)}s(x$,"mapCacheHas");var nO=x$;function F$(t,e){var r=xf(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}s(F$,"mapCacheSet");var aO=F$;function Zn(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s(Zn,"MapCache");Zn.prototype.clear=Q0;Zn.prototype.delete=tO;Zn.prototype.get=rO;Zn.prototype.has=nO;Zn.prototype.set=aO;var Ff=Zn,iO="Expected a function";function Gf(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(iO);var r=s(function(){var n=arguments,a=e?e.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=t.apply(this,n);return r.cache=i.set(a,o)||i,o},"memoized");return r.cache=new(Gf.Cache||Ff),r}s(Gf,"memoize");Gf.Cache=Ff;var sO=Gf,oO=500;function G$(t){var e=sO(t,function(n){return r.size===oO&&r.clear(),n}),r=e.cache;return e}s(G$,"memoizeCapped");var lO=G$,cO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,uO=/\\(\\)?/g,fO=lO(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(cO,function(r,n,a,i){e.push(a?i.replace(uO,"$1"):n||r)}),e}),dO=fO;function j$(t){return t==null?"":Dk(t)}s(j$,"toString");var pO=j$;function U$(t,e){return ae(t)?t:Hm(t,e)?[t]:dO(pO(t))}s(U$,"castPath");var jf=U$;function z$(t){if(typeof t=="string"||If(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}s(z$,"toKey");var bc=z$;function B$(t,e){e=jf(e,t);for(var r=0,n=e.length;t!=null&&r<n;)t=t[bc(e[r++])];return r&&r==n?t:void 0}s(B$,"baseGet");var Ym=B$;function K$(t,e,r){var n=t==null?void 0:Ym(t,e);return n===void 0?r:n}s(K$,"get");var hO=K$;function q$(t,e){for(var r=-1,n=e.length,a=t.length;++r<n;)t[a+r]=e[r];return t}s(q$,"arrayPush");var Xm=q$,Gy=Dt?Dt.isConcatSpreadable:void 0;function W$(t){return ae(t)||Of(t)||!!(Gy&&t&&t[Gy])}s(W$,"isFlattenable");var mO=W$;function Jm(t,e,r,n,a){var i=-1,o=t.length;for(r||(r=mO),a||(a=[]);++i<o;){var c=t[i];e>0&&r(c)?e>1?Jm(c,e-1,r,n,a):Xm(a,c):n||(a[a.length]=c)}return a}s(Jm,"baseFlatten");var Zm=Jm;function V$(t){var e=t==null?0:t.length;return e?Zm(t,1):[]}s(V$,"flatten");var qt=V$,gO=p$(Object.getPrototypeOf,Object),H$=gO;function Y$(t,e,r){var n=-1,a=t.length;e<0&&(e=-e>a?0:a+e),r=r>a?a:r,r<0&&(r+=a),a=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(a);++n<a;)i[n]=t[n+e];return i}s(Y$,"baseSlice");var X$=Y$;function J$(t,e,r,n){var a=-1,i=t==null?0:t.length;for(n&&i&&(r=t[++a]);++a<i;)r=e(r,t[a],a,t);return r}s(J$,"arrayReduce");var yO=J$;function Z$(){this.__data__=new Mf,this.size=0}s(Z$,"stackClear");var vO=Z$;function Q$(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}s(Q$,"stackDelete");var TO=Q$;function eA(t){return this.__data__.get(t)}s(eA,"stackGet");var RO=eA;function tA(t){return this.__data__.has(t)}s(tA,"stackHas");var $O=tA,AO=200;function rA(t,e){var r=this.__data__;if(r instanceof Mf){var n=r.__data__;if(!tc||n.length<AO-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Ff(n)}return r.set(t,e),this.size=r.size,this}s(rA,"stackSet");var EO=rA;function Qn(t){var e=this.__data__=new Mf(t);this.size=e.size}s(Qn,"Stack");Qn.prototype.clear=vO;Qn.prototype.delete=TO;Qn.prototype.get=RO;Qn.prototype.has=$O;Qn.prototype.set=EO;var Kl=Qn;function nA(t,e){return t&&_c(e,$t(e),t)}s(nA,"baseAssign");var _O=nA;function aA(t,e){return t&&_c(e,Lf(e),t)}s(aA,"baseAssignIn");var CO=aA,iA=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jy=iA&&typeof module=="object"&&module&&!module.nodeType&&module,SO=jy&&jy.exports===iA,Uy=SO?fr.Buffer:void 0,zy=Uy?Uy.allocUnsafe:void 0;function sA(t,e){if(e)return t.slice();var r=t.length,n=zy?zy(r):new t.constructor(r);return t.copy(n),n}s(sA,"cloneBuffer");var bO=sA;function oA(t,e){for(var r=-1,n=t==null?0:t.length,a=0,i=[];++r<n;){var o=t[r];e(o,r,t)&&(i[a++]=o)}return i}s(oA,"arrayFilter");var Qm=oA;function lA(){return[]}s(lA,"stubArray");var cA=lA,wO=Object.prototype,IO=wO.propertyIsEnumerable,By=Object.getOwnPropertySymbols,NO=By?function(t){return t==null?[]:(t=Object(t),Qm(By(t),function(e){return IO.call(t,e)}))}:cA,eg=NO;function uA(t,e){return _c(t,eg(t),e)}s(uA,"copySymbols");var kO=uA,PO=Object.getOwnPropertySymbols,OO=PO?function(t){for(var e=[];t;)Xm(e,eg(t)),t=H$(t);return e}:cA,fA=OO;function dA(t,e){return _c(t,fA(t),e)}s(dA,"copySymbolsIn");var LO=dA;function pA(t,e,r){var n=e(t);return ae(t)?n:Xm(n,r(t))}s(pA,"baseGetAllKeys");var hA=pA;function mA(t){return hA(t,$t,eg)}s(mA,"getAllKeys");var Vp=mA;function gA(t){return hA(t,Lf,fA)}s(gA,"getAllKeysIn");var yA=gA,DO=Yn(fr,"DataView"),Hp=DO,MO=Yn(fr,"Promise"),Yp=MO,xO=Yn(fr,"Set"),Ga=xO,Ky="[object Map]",FO="[object Object]",qy="[object Promise]",Wy="[object Set]",Vy="[object WeakMap]",Hy="[object DataView]",GO=Hn(Hp),jO=Hn(tc),UO=Hn(Yp),zO=Hn(Ga),BO=Hn(Wp),dn=en;(Hp&&dn(new Hp(new ArrayBuffer(1)))!=Hy||tc&&dn(new tc)!=Ky||Yp&&dn(Yp.resolve())!=qy||Ga&&dn(new Ga)!=Wy||Wp&&dn(new Wp)!=Vy)&&(dn=s(function(t){var e=en(t),r=e==FO?t.constructor:void 0,n=r?Hn(r):"";if(n)switch(n){case GO:return Hy;case jO:return Ky;case UO:return qy;case zO:return Wy;case BO:return Vy}return e},"getTag"));var Do=dn,KO=Object.prototype,qO=KO.hasOwnProperty;function vA(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&qO.call(t,"index")&&(r.index=t.index,r.input=t.input),r}s(vA,"initCloneArray");var WO=vA,VO=fr.Uint8Array,Bu=VO;function TA(t){var e=new t.constructor(t.byteLength);return new Bu(e).set(new Bu(t)),e}s(TA,"cloneArrayBuffer");var tg=TA;function RA(t,e){var r=e?tg(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}s(RA,"cloneDataView");var HO=RA,YO=/\w*$/;function $A(t){var e=new t.constructor(t.source,YO.exec(t));return e.lastIndex=t.lastIndex,e}s($A,"cloneRegExp");var XO=$A,Yy=Dt?Dt.prototype:void 0,Xy=Yy?Yy.valueOf:void 0;function AA(t){return Xy?Object(Xy.call(t)):{}}s(AA,"cloneSymbol");var JO=AA;function EA(t,e){var r=e?tg(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}s(EA,"cloneTypedArray");var ZO=EA,QO="[object Boolean]",eL="[object Date]",tL="[object Map]",rL="[object Number]",nL="[object RegExp]",aL="[object Set]",iL="[object String]",sL="[object Symbol]",oL="[object ArrayBuffer]",lL="[object DataView]",cL="[object Float32Array]",uL="[object Float64Array]",fL="[object Int8Array]",dL="[object Int16Array]",pL="[object Int32Array]",hL="[object Uint8Array]",mL="[object Uint8ClampedArray]",gL="[object Uint16Array]",yL="[object Uint32Array]";function _A(t,e,r){var n=t.constructor;switch(e){case oL:return tg(t);case QO:case eL:return new n(+t);case lL:return HO(t,r);case cL:case uL:case fL:case dL:case pL:case hL:case mL:case gL:case yL:return ZO(t,r);case tL:return new n;case rL:case iL:return new n(t);case nL:return XO(t);case aL:return new n;case sL:return JO(t)}}s(_A,"initCloneByTag");var vL=_A;function CA(t){return typeof t.constructor=="function"&&!Cc(t)?dP(H$(t)):{}}s(CA,"initCloneObject");var TL=CA,RL="[object Map]";function SA(t){return Vt(t)&&Do(t)==RL}s(SA,"baseIsMap");var $L=SA,Jy=Hr&&Hr.isMap,AL=Jy?Sc(Jy):$L,EL=AL,_L="[object Set]";function bA(t){return Vt(t)&&Do(t)==_L}s(bA,"baseIsSet");var CL=bA,Zy=Hr&&Hr.isSet,SL=Zy?Sc(Zy):CL,bL=SL,wL=1,IL=2,NL=4,wA="[object Arguments]",kL="[object Array]",PL="[object Boolean]",OL="[object Date]",LL="[object Error]",IA="[object Function]",DL="[object GeneratorFunction]",ML="[object Map]",xL="[object Number]",NA="[object Object]",FL="[object RegExp]",GL="[object Set]",jL="[object String]",UL="[object Symbol]",zL="[object WeakMap]",BL="[object ArrayBuffer]",KL="[object DataView]",qL="[object Float32Array]",WL="[object Float64Array]",VL="[object Int8Array]",HL="[object Int16Array]",YL="[object Int32Array]",XL="[object Uint8Array]",JL="[object Uint8ClampedArray]",ZL="[object Uint16Array]",QL="[object Uint32Array]",Re={};Re[wA]=Re[kL]=Re[BL]=Re[KL]=Re[PL]=Re[OL]=Re[qL]=Re[WL]=Re[VL]=Re[HL]=Re[YL]=Re[ML]=Re[xL]=Re[NA]=Re[FL]=Re[GL]=Re[jL]=Re[UL]=Re[XL]=Re[JL]=Re[ZL]=Re[QL]=!0;Re[LL]=Re[IA]=Re[zL]=!1;function ql(t,e,r,n,a,i){var o,c=e&wL,l=e&IL,u=e&NL;if(r&&(o=a?r(t,n,a,i):r(t)),o!==void 0)return o;if(!Mt(t))return t;var f=ae(t);if(f){if(o=WO(t),!c)return hP(t,o)}else{var d=Do(t),p=d==IA||d==DL;if(Ql(t))return bO(t,c);if(d==NA||d==wA||p&&!a){if(o=l||p?{}:TL(t),!c)return l?LO(t,CO(o,t)):kO(t,_O(o,t))}else{if(!Re[d])return a?t:{};o=vL(t,d,c)}}i||(i=new Kl);var g=i.get(t);if(g)return g;i.set(t,o),bL(t)?t.forEach(function(_){o.add(ql(_,e,r,_,t,i))}):EL(t)&&t.forEach(function(_,v){o.set(v,ql(_,e,r,v,t,i))});var m=u?l?yA:Vp:l?Lf:$t,T=f?void 0:m(t);return MR(T||t,function(_,v){T&&(v=_,_=t[v]),kf(o,v,ql(_,e,r,v,t,i))}),o}s(ql,"baseClone");var eD=ql,tD=4;function kA(t){return eD(t,tD)}s(kA,"clone");var et=kA;function PA(t){for(var e=-1,r=t==null?0:t.length,n=0,a=[];++e<r;){var i=t[e];i&&(a[n++]=i)}return a}s(PA,"compact");var wc=PA,rD="__lodash_hash_undefined__";function OA(t){return this.__data__.set(t,rD),this}s(OA,"setCacheAdd");var nD=OA;function LA(t){return this.__data__.has(t)}s(LA,"setCacheHas");var aD=LA;function rc(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Ff;++e<r;)this.add(t[e])}s(rc,"SetCache");rc.prototype.add=rc.prototype.push=nD;rc.prototype.has=aD;var rg=rc;function DA(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}s(DA,"arraySome");var MA=DA;function xA(t,e){return t.has(e)}s(xA,"cacheHas");var ng=xA,iD=1,sD=2;function FA(t,e,r,n,a,i){var o=r&iD,c=t.length,l=e.length;if(c!=l&&!(o&&l>c))return!1;var u=i.get(t),f=i.get(e);if(u&&f)return u==e&&f==t;var d=-1,p=!0,g=r&sD?new rg:void 0;for(i.set(t,e),i.set(e,t);++d<c;){var m=t[d],T=e[d];if(n)var _=o?n(T,m,d,e,t,i):n(m,T,d,t,e,i);if(_!==void 0){if(_)continue;p=!1;break}if(g){if(!MA(e,function(v,w){if(!ng(g,w)&&(m===v||a(m,v,r,n,i)))return g.push(w)})){p=!1;break}}else if(!(m===T||a(m,T,r,n,i))){p=!1;break}}return i.delete(t),i.delete(e),p}s(FA,"equalArrays");var GA=FA;function jA(t){var e=-1,r=Array(t.size);return t.forEach(function(n,a){r[++e]=[a,n]}),r}s(jA,"mapToArray");var oD=jA;function UA(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}s(UA,"setToArray");var ag=UA,lD=1,cD=2,uD="[object Boolean]",fD="[object Date]",dD="[object Error]",pD="[object Map]",hD="[object Number]",mD="[object RegExp]",gD="[object Set]",yD="[object String]",vD="[object Symbol]",TD="[object ArrayBuffer]",RD="[object DataView]",Qy=Dt?Dt.prototype:void 0,Ed=Qy?Qy.valueOf:void 0;function zA(t,e,r,n,a,i,o){switch(r){case RD:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case TD:return!(t.byteLength!=e.byteLength||!i(new Bu(t),new Bu(e)));case uD:case fD:case hD:return Ec(+t,+e);case dD:return t.name==e.name&&t.message==e.message;case mD:case yD:return t==e+"";case pD:var c=oD;case gD:var l=n&lD;if(c||(c=ag),t.size!=e.size&&!l)return!1;var u=o.get(t);if(u)return u==e;n|=cD,o.set(t,e);var f=GA(c(t),c(e),n,a,i,o);return o.delete(t),f;case vD:if(Ed)return Ed.call(t)==Ed.call(e)}return!1}s(zA,"equalByTag");var $D=zA,AD=1,ED=Object.prototype,_D=ED.hasOwnProperty;function BA(t,e,r,n,a,i){var o=r&AD,c=Vp(t),l=c.length,u=Vp(e),f=u.length;if(l!=f&&!o)return!1;for(var d=l;d--;){var p=c[d];if(!(o?p in e:_D.call(e,p)))return!1}var g=i.get(t),m=i.get(e);if(g&&m)return g==e&&m==t;var T=!0;i.set(t,e),i.set(e,t);for(var _=o;++d<l;){p=c[d];var v=t[p],w=e[p];if(n)var C=o?n(w,v,p,e,t,i):n(v,w,p,t,e,i);if(!(C===void 0?v===w||a(v,w,r,n,i):C)){T=!1;break}_||(_=p=="constructor")}if(T&&!_){var k=t.constructor,B=e.constructor;k!=B&&"constructor"in t&&"constructor"in e&&!(typeof k=="function"&&k instanceof k&&typeof B=="function"&&B instanceof B)&&(T=!1)}return i.delete(t),i.delete(e),T}s(BA,"equalObjects");var CD=BA,SD=1,ev="[object Arguments]",tv="[object Array]",xc="[object Object]",bD=Object.prototype,rv=bD.hasOwnProperty;function KA(t,e,r,n,a,i){var o=ae(t),c=ae(e),l=o?tv:Do(t),u=c?tv:Do(e);l=l==ev?xc:l,u=u==ev?xc:u;var f=l==xc,d=u==xc,p=l==u;if(p&&Ql(t)){if(!Ql(e))return!1;o=!0,f=!1}if(p&&!f)return i||(i=new Kl),o||Vm(t)?GA(t,e,r,n,a,i):$D(t,e,l,r,n,a,i);if(!(r&SD)){var g=f&&rv.call(t,"__wrapped__"),m=d&&rv.call(e,"__wrapped__");if(g||m){var T=g?t.value():t,_=m?e.value():e;return i||(i=new Kl),a(T,_,r,n,i)}}return p?(i||(i=new Kl),CD(t,e,r,n,a,i)):!1}s(KA,"baseIsEqualDeep");var wD=KA;function ig(t,e,r,n,a){return t===e?!0:t==null||e==null||!Vt(t)&&!Vt(e)?t!==t&&e!==e:wD(t,e,r,n,ig,a)}s(ig,"baseIsEqual");var qA=ig,ID=1,ND=2;function WA(t,e,r,n){var a=r.length,i=a,o=!n;if(t==null)return!i;for(t=Object(t);a--;){var c=r[a];if(o&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<i;){c=r[a];var l=c[0],u=t[l],f=c[1];if(o&&c[2]){if(u===void 0&&!(l in t))return!1}else{var d=new Kl;if(n)var p=n(u,f,l,t,e,d);if(!(p===void 0?qA(f,u,ID|ND,n,d):p))return!1}}return!0}s(WA,"baseIsMatch");var kD=WA;function VA(t){return t===t&&!Mt(t)}s(VA,"isStrictComparable");var HA=VA;function YA(t){for(var e=$t(t),r=e.length;r--;){var n=e[r],a=t[n];e[r]=[n,a,HA(a)]}return e}s(YA,"getMatchData");var PD=YA;function XA(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}s(XA,"matchesStrictComparable");var JA=XA;function ZA(t){var e=PD(t);return e.length==1&&e[0][2]?JA(e[0][0],e[0][1]):function(r){return r===t||kD(r,t,e)}}s(ZA,"baseMatches");var OD=ZA;function QA(t,e){return t!=null&&e in Object(t)}s(QA,"baseHasIn");var LD=QA;function eE(t,e,r){e=jf(e,t);for(var n=-1,a=e.length,i=!1;++n<a;){var o=bc(e[n]);if(!(i=t!=null&&r(t,o)))break;t=t[o]}return i||++n!=a?i:(a=t==null?0:t.length,!!a&&Wm(a)&&Nf(o,a)&&(ae(t)||Of(t)))}s(eE,"hasPath");var tE=eE;function rE(t,e){return t!=null&&tE(t,e,LD)}s(rE,"hasIn");var DD=rE,MD=1,xD=2;function nE(t,e){return Hm(t)&&HA(e)?JA(bc(t),e):function(r){var n=hO(r,t);return n===void 0&&n===e?DD(r,t):qA(e,n,MD|xD)}}s(nE,"baseMatchesProperty");var FD=nE;function aE(t){return function(e){return e?.[t]}}s(aE,"baseProperty");var GD=aE;function iE(t){return function(e){return Ym(e,t)}}s(iE,"basePropertyDeep");var jD=iE;function sE(t){return Hm(t)?GD(bc(t)):jD(t)}s(sE,"property");var UD=sE;function oE(t){return typeof t=="function"?t:t==null?Lo:typeof t=="object"?ae(t)?FD(t[0],t[1]):OD(t):UD(t)}s(oE,"baseIteratee");var pr=oE;function lE(t,e,r,n){for(var a=-1,i=t==null?0:t.length;++a<i;){var o=t[a];e(n,o,r(o),t)}return n}s(lE,"arrayAggregator");var zD=lE;function cE(t){return function(e,r,n){for(var a=-1,i=Object(e),o=n(e),c=o.length;c--;){var l=o[t?c:++a];if(r(i[l],l,i)===!1)break}return e}}s(cE,"createBaseFor");var BD=cE,KD=BD(),qD=KD;function uE(t,e){return t&&qD(t,e,$t)}s(uE,"baseForOwn");var WD=uE;function fE(t,e){return function(r,n){if(r==null)return r;if(!dr(r))return t(r,n);for(var a=r.length,i=e?a:-1,o=Object(r);(e?i--:++i<a)&&n(o[i],i,o)!==!1;);return r}}s(fE,"createBaseEach");var VD=fE,HD=VD(WD),ea=HD;function dE(t,e,r,n){return ea(t,function(a,i,o){e(n,a,r(a),o)}),n}s(dE,"baseAggregator");var YD=dE;function pE(t,e){return function(r,n){var a=ae(r)?zD:YD,i=e?e():{};return a(r,t,pr(n),i)}}s(pE,"createAggregator");var XD=pE,hE=Object.prototype,JD=hE.hasOwnProperty,ZD=qm(function(t,e){t=Object(t);var r=-1,n=e.length,a=n>2?e[2]:void 0;for(a&&Pf(e[0],e[1],a)&&(n=1);++r<n;)for(var i=e[r],o=Lf(i),c=-1,l=o.length;++c<l;){var u=o[c],f=t[u];(f===void 0||Ec(f,hE[u])&&!JD.call(t,u))&&(t[u]=i[u])}return t}),sg=ZD;function mE(t){return Vt(t)&&dr(t)}s(mE,"isArrayLikeObject");var nv=mE;function gE(t,e,r){for(var n=-1,a=t==null?0:t.length;++n<a;)if(r(e,t[n]))return!0;return!1}s(gE,"arrayIncludesWith");var yE=gE,QD=200;function vE(t,e,r,n){var a=-1,i=BR,o=!0,c=t.length,l=[],u=e.length;if(!c)return l;r&&(e=$c(e,Sc(r))),n?(i=yE,o=!1):e.length>=QD&&(i=ng,o=!1,e=new rg(e));e:for(;++a<c;){var f=t[a],d=r==null?f:r(f);if(f=n||f!==0?f:0,o&&d===d){for(var p=u;p--;)if(e[p]===d)continue e;l.push(f)}else i(e,d,n)||l.push(f)}return l}s(vE,"baseDifference");var eM=vE,tM=qm(function(t,e){return nv(t)?eM(t,Zm(e,1,nv,!0)):[]}),Uf=tM;function TE(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}s(TE,"last");var Fn=TE;function RE(t,e,r){var n=t==null?0:t.length;return n?(e=r||e===void 0?1:Ac(e),X$(t,e<0?0:e,n)):[]}s(RE,"drop");var Ze=RE;function $E(t,e,r){var n=t==null?0:t.length;return n?(e=r||e===void 0?1:Ac(e),e=n-e,X$(t,0,e<0?0:e)):[]}s($E,"dropRight");var nc=$E;function AE(t){return typeof t=="function"?t:Lo}s(AE,"castFunction");var rM=AE;function EE(t,e){var r=ae(t)?MR:ea;return r(t,rM(e))}s(EE,"forEach");var V=EE;function _E(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}s(_E,"arrayEvery");var nM=_E;function CE(t,e){var r=!0;return ea(t,function(n,a,i){return r=!!e(n,a,i),r}),r}s(CE,"baseEvery");var aM=CE;function SE(t,e,r){var n=ae(t)?nM:aM;return r&&Pf(t,e,r)&&(e=void 0),n(t,pr(e))}s(SE,"every");var Wt=SE;function bE(t,e){var r=[];return ea(t,function(n,a,i){e(n,a,i)&&r.push(n)}),r}s(bE,"baseFilter");var wE=bE;function IE(t,e){var r=ae(t)?Qm:wE;return r(t,pr(e))}s(IE,"filter");var Ft=IE;function NE(t){return function(e,r,n){var a=Object(e);if(!dr(e)){var i=pr(r);e=$t(e),r=s(function(c){return i(a[c],c,a)},"predicate")}var o=t(e,r,n);return o>-1?a[i?e[o]:o]:void 0}}s(NE,"createFind");var iM=NE,sM=Math.max;function kE(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var a=r==null?0:Ac(r);return a<0&&(a=sM(n+a,0)),FR(t,pr(e),a)}s(kE,"findIndex");var oM=kE,lM=iM(oM),Mo=lM;function PE(t){return t&&t.length?t[0]:void 0}s(PE,"head");var Ht=PE;function OE(t,e){var r=-1,n=dr(t)?Array(t.length):[];return ea(t,function(a,i,o){n[++r]=e(a,i,o)}),n}s(OE,"baseMap");var cM=OE;function LE(t,e){var r=ae(t)?$c:cM;return r(t,pr(e))}s(LE,"map");var z=LE;function DE(t,e){return Zm(z(t,e),1)}s(DE,"flatMap");var Lt=DE,uM=Object.prototype,fM=uM.hasOwnProperty,dM=XD(function(t,e,r){fM.call(t,r)?t[r].push(e):Km(t,r,[e])}),pM=dM,hM=Object.prototype,mM=hM.hasOwnProperty;function ME(t,e){return t!=null&&mM.call(t,e)}s(ME,"baseHas");var gM=ME;function xE(t,e){return t!=null&&tE(t,e,gM)}s(xE,"has");var q=xE,yM="[object String]";function FE(t){return typeof t=="string"||!ae(t)&&Vt(t)&&en(t)==yM}s(FE,"isString");var mt=FE;function GE(t,e){return $c(e,function(r){return t[r]})}s(GE,"baseValues");var vM=GE;function jE(t){return t==null?[]:vM(t,$t(t))}s(jE,"values");var We=jE,TM=Math.max;function UE(t,e,r,n){t=dr(t)?t:We(t),r=r&&!n?Ac(r):0;var a=t.length;return r<0&&(r=TM(a+r,0)),mt(t)?r<=a&&t.indexOf(e,r)>-1:!!a&&Bm(t,e,r)>-1}s(UE,"includes");var ft=UE,RM=Math.max;function zE(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var a=r==null?0:Ac(r);return a<0&&(a=RM(n+a,0)),Bm(t,e,a)}s(zE,"indexOf");var av=zE,$M="[object Map]",AM="[object Set]",EM=Object.prototype,_M=EM.hasOwnProperty;function BE(t){if(t==null)return!0;if(dr(t)&&(ae(t)||typeof t=="string"||typeof t.splice=="function"||Ql(t)||Vm(t)||Of(t)))return!t.length;var e=Do(t);if(e==$M||e==AM)return!t.size;if(Cc(t))return!m$(t).length;for(var r in t)if(_M.call(t,r))return!1;return!0}s(BE,"isEmpty");var Ae=BE,CM="[object RegExp]";function KE(t){return Vt(t)&&en(t)==CM}s(KE,"baseIsRegExp");var SM=KE,iv=Hr&&Hr.isRegExp,bM=iv?Sc(iv):SM,Ir=bM;function qE(t){return t===void 0}s(qE,"isUndefined");var Nr=qE,wM="Expected a function";function WE(t){if(typeof t!="function")throw new TypeError(wM);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}s(WE,"negate");var IM=WE;function VE(t,e,r,n){if(!Mt(t))return t;e=jf(e,t);for(var a=-1,i=e.length,o=i-1,c=t;c!=null&&++a<i;){var l=bc(e[a]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(a!=o){var f=c[l];u=n?n(f,l,c):void 0,u===void 0&&(u=Mt(f)?f:Nf(e[a+1])?[]:{})}kf(c,l,u),c=c[l]}return t}s(VE,"baseSet");var NM=VE;function HE(t,e,r){for(var n=-1,a=e.length,i={};++n<a;){var o=e[n],c=Ym(t,o);r(c,o)&&NM(i,jf(o,t),c)}return i}s(HE,"basePickBy");var kM=HE;function YE(t,e){if(t==null)return{};var r=$c(yA(t),function(n){return[n]});return e=pr(e),kM(t,r,function(n,a){return e(n,a[0])})}s(YE,"pickBy");var Yt=YE;function XE(t,e,r,n,a){return a(t,function(i,o,c){r=n?(n=!1,i):e(r,i,o,c)}),r}s(XE,"baseReduce");var PM=XE;function JE(t,e,r){var n=ae(t)?yO:PM,a=arguments.length<3;return n(t,pr(e),r,a,ea)}s(JE,"reduce");var Et=JE;function ZE(t,e){var r=ae(t)?Qm:wE;return r(t,IM(pr(e)))}s(ZE,"reject");var zf=ZE;function QE(t,e){var r;return ea(t,function(n,a,i){return r=e(n,a,i),!r}),!!r}s(QE,"baseSome");var OM=QE;function e_(t,e,r){var n=ae(t)?MA:OM;return r&&Pf(t,e,r)&&(e=void 0),n(t,pr(e))}s(e_,"some");var t_=e_,LM=1/0,DM=Ga&&1/ag(new Ga([,-0]))[1]==LM?function(t){return new Ga(t)}:qe,MM=DM,xM=200;function r_(t,e,r){var n=-1,a=BR,i=t.length,o=!0,c=[],l=c;if(r)o=!1,a=yE;else if(i>=xM){var u=e?null:MM(t);if(u)return ag(u);o=!1,a=ng,l=new rg}else l=e?[]:c;e:for(;++n<i;){var f=t[n],d=e?e(f):f;if(f=r||f!==0?f:0,o&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;e&&l.push(d),c.push(f)}else a(l,d,r)||(l!==c&&l.push(d),c.push(f))}return c}s(r_,"baseUniq");var FM=r_;function n_(t){return t&&t.length?FM(t):[]}s(n_,"uniq");var og=n_;function Ku(t){console&&console.error&&console.error(`Error: ${t}`)}s(Ku,"PRINT_ERROR");function lg(t){console&&console.warn&&console.warn(`Warning: ${t}`)}s(lg,"PRINT_WARNING");function cg(t){const e=new Date().getTime(),r=t();return{time:new Date().getTime()-e,value:r}}s(cg,"timer");function ug(t){function e(){}s(e,"FakeConstructor"),e.prototype=t;const r=new e;function n(){return typeof r.bar}return s(n,"fakeAccess"),n(),n(),t}s(ug,"toFastProperties");function a_(t){return i_(t)?t.LABEL:t.name}s(a_,"tokenLabel");function i_(t){return mt(t.LABEL)&&t.LABEL!==""}s(i_,"hasTokenLabel");var Ya,hr=(Ya=class{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),V(this.definition,r=>{r.accept(e)})}},s(Ya,"AbstractProduction"),Ya),Xa,lt=(Xa=class extends hr{constructor(e){super([]),this.idx=1,At(this,Yt(e,r=>r!==void 0))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}},s(Xa,"NonTerminal"),Xa),Ja,zo=(Ja=class extends hr{constructor(e){super(e.definition),this.orgText="",At(this,Yt(e,r=>r!==void 0))}},s(Ja,"Rule"),Ja),Za,gt=(Za=class extends hr{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,At(this,Yt(e,r=>r!==void 0))}},s(Za,"Alternative"),Za),Qa,Qe=(Qa=class extends hr{constructor(e){super(e.definition),this.idx=1,At(this,Yt(e,r=>r!==void 0))}},s(Qa,"Option"),Qa),ei,_t=(ei=class extends hr{constructor(e){super(e.definition),this.idx=1,At(this,Yt(e,r=>r!==void 0))}},s(ei,"RepetitionMandatory"),ei),ti,Ct=(ti=class extends hr{constructor(e){super(e.definition),this.idx=1,At(this,Yt(e,r=>r!==void 0))}},s(ti,"RepetitionMandatoryWithSeparator"),ti),ri,xe=(ri=class extends hr{constructor(e){super(e.definition),this.idx=1,At(this,Yt(e,r=>r!==void 0))}},s(ri,"Repetition"),ri),ni,yt=(ni=class extends hr{constructor(e){super(e.definition),this.idx=1,At(this,Yt(e,r=>r!==void 0))}},s(ni,"RepetitionWithSeparator"),ni),ai,vt=(ai=class extends hr{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,At(this,Yt(e,r=>r!==void 0))}},s(ai,"Alternation"),ai),ii,be=(ii=class{constructor(e){this.idx=1,At(this,Yt(e,r=>r!==void 0))}accept(e){e.visit(this)}},s(ii,"Terminal"),ii);function s_(t){return z(t,Wl)}s(s_,"serializeGrammar");function Wl(t){function e(r){return z(r,Wl)}if(s(e,"convertDefinition"),t instanceof lt){const r={type:"NonTerminal",name:t.nonTerminalName,idx:t.idx};return mt(t.label)&&(r.label=t.label),r}else{if(t instanceof gt)return{type:"Alternative",definition:e(t.definition)};if(t instanceof Qe)return{type:"Option",idx:t.idx,definition:e(t.definition)};if(t instanceof _t)return{type:"RepetitionMandatory",idx:t.idx,definition:e(t.definition)};if(t instanceof Ct)return{type:"RepetitionMandatoryWithSeparator",idx:t.idx,separator:Wl(new be({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof yt)return{type:"RepetitionWithSeparator",idx:t.idx,separator:Wl(new be({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof xe)return{type:"Repetition",idx:t.idx,definition:e(t.definition)};if(t instanceof vt)return{type:"Alternation",idx:t.idx,definition:e(t.definition)};if(t instanceof be){const r={type:"Terminal",name:t.terminalType.name,label:a_(t.terminalType),idx:t.idx};mt(t.label)&&(r.terminalLabel=t.label);const n=t.terminalType.PATTERN;return t.terminalType.PATTERN&&(r.pattern=Ir(n)?n.source:n),r}else{if(t instanceof zo)return{type:"Rule",name:t.name,orgText:t.orgText,definition:e(t.definition)};throw Error("non exhaustive match")}}}s(Wl,"serializeProduction");var si,Bo=(si=class{visit(e){const r=e;switch(r.constructor){case lt:return this.visitNonTerminal(r);case gt:return this.visitAlternative(r);case Qe:return this.visitOption(r);case _t:return this.visitRepetitionMandatory(r);case Ct:return this.visitRepetitionMandatoryWithSeparator(r);case yt:return this.visitRepetitionWithSeparator(r);case xe:return this.visitRepetition(r);case vt:return this.visitAlternation(r);case be:return this.visitTerminal(r);case zo:return this.visitRule(r);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}},s(si,"GAstVisitor"),si);function o_(t){return t instanceof gt||t instanceof Qe||t instanceof xe||t instanceof _t||t instanceof Ct||t instanceof yt||t instanceof be||t instanceof zo}s(o_,"isSequenceProd");function ac(t,e=[]){return t instanceof Qe||t instanceof xe||t instanceof yt?!0:t instanceof vt?t_(t.definition,n=>ac(n,e)):t instanceof lt&&ft(e,t)?!1:t instanceof hr?(t instanceof lt&&e.push(t),Wt(t.definition,n=>ac(n,e))):!1}s(ac,"isOptionalProd");function l_(t){return t instanceof vt}s(l_,"isBranchingProd");function Ut(t){if(t instanceof lt)return"SUBRULE";if(t instanceof Qe)return"OPTION";if(t instanceof vt)return"OR";if(t instanceof _t)return"AT_LEAST_ONE";if(t instanceof Ct)return"AT_LEAST_ONE_SEP";if(t instanceof yt)return"MANY_SEP";if(t instanceof xe)return"MANY";if(t instanceof be)return"CONSUME";throw Error("non exhaustive match")}s(Ut,"getProductionDslName");var oi,Bf=(oi=class{walk(e,r=[]){V(e.definition,(n,a)=>{const i=Ze(e.definition,a+1);if(n instanceof lt)this.walkProdRef(n,i,r);else if(n instanceof be)this.walkTerminal(n,i,r);else if(n instanceof gt)this.walkFlat(n,i,r);else if(n instanceof Qe)this.walkOption(n,i,r);else if(n instanceof _t)this.walkAtLeastOne(n,i,r);else if(n instanceof Ct)this.walkAtLeastOneSep(n,i,r);else if(n instanceof yt)this.walkManySep(n,i,r);else if(n instanceof xe)this.walkMany(n,i,r);else if(n instanceof vt)this.walkOr(n,i,r);else throw Error("non exhaustive match")})}walkTerminal(e,r,n){}walkProdRef(e,r,n){}walkFlat(e,r,n){const a=r.concat(n);this.walk(e,a)}walkOption(e,r,n){const a=r.concat(n);this.walk(e,a)}walkAtLeastOne(e,r,n){const a=[new Qe({definition:e.definition})].concat(r,n);this.walk(e,a)}walkAtLeastOneSep(e,r,n){const a=Xp(e,r,n);this.walk(e,a)}walkMany(e,r,n){const a=[new Qe({definition:e.definition})].concat(r,n);this.walk(e,a)}walkManySep(e,r,n){const a=Xp(e,r,n);this.walk(e,a)}walkOr(e,r,n){const a=r.concat(n);V(e.definition,i=>{const o=new gt({definition:[i]});this.walk(o,a)})}},s(oi,"RestWalker"),oi);function Xp(t,e,r){return[new Qe({definition:[new be({terminalType:t.separator})].concat(t.definition)})].concat(e,r)}s(Xp,"restForRepetitionWithSeparator");function Ko(t){if(t instanceof lt)return Ko(t.referencedRule);if(t instanceof be)return f_(t);if(o_(t))return c_(t);if(l_(t))return u_(t);throw Error("non exhaustive match")}s(Ko,"first");function c_(t){let e=[];const r=t.definition;let n=0,a=r.length>n,i,o=!0;for(;a&&o;)i=r[n],o=ac(i),e=e.concat(Ko(i)),n=n+1,a=r.length>n;return og(e)}s(c_,"firstForSequence");function u_(t){const e=z(t.definition,r=>Ko(r));return og(qt(e))}s(u_,"firstForBranching");function f_(t){return[t.terminalType]}s(f_,"firstForTerminal");var d_="_~IN~_",li,GM=(li=class extends Bf{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,r,n){}walkProdRef(e,r,n){const a=h_(e.referencedRule,e.idx)+this.topProd.name,i=r.concat(n),o=new gt({definition:i}),c=Ko(o);this.follows[a]=c}},s(li,"ResyncFollowsWalker"),li);function p_(t){const e={};return V(t,r=>{const n=new GM(r).startWalking();At(e,n)}),e}s(p_,"computeAllProdsFollows");function h_(t,e){return t.name+e+d_}s(h_,"buildBetweenProdsFollowPrefix");var cu={},jM=new WT;function Ic(t){const e=t.toString();if(cu.hasOwnProperty(e))return cu[e];{const r=jM.pattern(e);return cu[e]=r,r}}s(Ic,"getRegExpAst");function m_(){cu={}}s(m_,"clearRegExpParserCache");var g_="Complement Sets are not supported for first char optimization",qu=`Unable to use "first char" lexer optimizations:
|
|
47
|
+
`;function y_(t,e=!1){try{const r=Ic(t);return Wu(r.value,{},r.flags.ignoreCase)}catch(r){if(r.message===g_)e&&lg(`${qu} Unable to optimize: < ${t.toString()} >
|
|
48
|
+
Complement Sets cannot be automatically optimized.
|
|
49
|
+
This will disable the lexer's first char optimizations.
|
|
50
|
+
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n="";e&&(n=`
|
|
51
|
+
This will disable the lexer's first char optimizations.
|
|
52
|
+
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),Ku(`${qu}
|
|
53
|
+
Failed parsing: < ${t.toString()} >
|
|
54
|
+
Using the @chevrotain/regexp-to-ast library
|
|
55
|
+
Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}s(y_,"getOptimizedStartCodesIndices");function Wu(t,e,r){switch(t.type){case"Disjunction":for(let a=0;a<t.value.length;a++)Wu(t.value[a],e,r);break;case"Alternative":const n=t.value;for(let a=0;a<n.length;a++){const i=n[a];switch(i.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}const o=i;switch(o.type){case"Character":Nl(o.value,e,r);break;case"Set":if(o.complement===!0)throw Error(g_);V(o.value,l=>{if(typeof l=="number")Nl(l,e,r);else{const u=l;if(r===!0)for(let f=u.from;f<=u.to;f++)Nl(f,e,r);else{for(let f=u.from;f<=u.to&&f<Pl;f++)Nl(f,e,r);if(u.to>=Pl){const f=u.from>=Pl?u.from:Pl,d=u.to,p=kr(f),g=kr(d);for(let m=p;m<=g;m++)e[m]=m}}}});break;case"Group":Wu(o.value,e,r);break;default:throw Error("Non Exhaustive Match")}const c=o.quantifier!==void 0&&o.quantifier.atLeast===0;if(o.type==="Group"&&Vu(o)===!1||o.type!=="Group"&&c===!1)break}break;default:throw Error("non exhaustive match!")}return We(e)}s(Wu,"firstCharOptimizedIndices");function Nl(t,e,r){const n=kr(t);e[n]=n,r===!0&&v_(t,e)}s(Nl,"addOptimizedIdxToResult");function v_(t,e){const r=String.fromCharCode(t),n=r.toUpperCase();if(n!==r){const a=kr(n.charCodeAt(0));e[a]=a}else{const a=r.toLowerCase();if(a!==r){const i=kr(a.charCodeAt(0));e[i]=i}}}s(v_,"handleIgnoreCase");function Jp(t,e){return Mo(t.value,r=>{if(typeof r=="number")return ft(e,r);{const n=r;return Mo(e,a=>n.from<=a&&a<=n.to)!==void 0}})}s(Jp,"findCode");function Vu(t){const e=t.quantifier;return e&&e.atLeast===0?!0:t.value?ae(t.value)?Wt(t.value,Vu):Vu(t.value):!1}s(Vu,"isWholeOptional");var ci,UM=(ci=class extends Af{constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found!==!0){switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return;case"Lookbehind":this.visitLookbehind(e);return;case"NegativeLookbehind":this.visitNegativeLookbehind(e);return}super.visitChildren(e)}}visitCharacter(e){ft(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?Jp(e,this.targetCharCodes)===void 0&&(this.found=!0):Jp(e,this.targetCharCodes)!==void 0&&(this.found=!0)}},s(ci,"CharCodeFinder"),ci);function Kf(t,e){if(e instanceof RegExp){const r=Ic(e),n=new UM(t);return n.visit(r),n.found}else return Mo(e,r=>ft(t,r.charCodeAt(0)))!==void 0}s(Kf,"canMatchCharCode");var Gn="PATTERN",kl="defaultMode",Fc="modes",T_=typeof new RegExp("(?:)").sticky=="boolean";function R_(t,e){e=sg(e,{useSticky:T_,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
|
|
56
|
+
`],tracer:s((w,C)=>C(),"tracer")});const r=e.tracer;r("initCharCodeToOptimizedIndexMap",()=>{U_()});let n;r("Reject Lexer.NA",()=>{n=zf(t,w=>w[Gn]===st.NA)});let a=!1,i;r("Transform Patterns",()=>{a=!1,i=z(n,w=>{const C=w[Gn];if(Ir(C)){const k=C.source;return k.length===1&&k!=="^"&&k!=="$"&&k!=="."&&!C.ignoreCase?k:k.length===2&&k[0]==="\\"&&!ft(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],k[1])?k[1]:e.useSticky?Qp(C):Zp(C)}else{if(Mr(C))return a=!0,{exec:C};if(typeof C=="object")return a=!0,C;if(typeof C=="string"){if(C.length===1)return C;{const k=C.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),B=new RegExp(k);return e.useSticky?Qp(B):Zp(B)}}else throw Error("non exhaustive match")}})});let o,c,l,u,f;r("misc mapping",()=>{o=z(n,w=>w.tokenTypeIdx),c=z(n,w=>{const C=w.GROUP;if(C!==st.SKIPPED){if(mt(C))return C;if(Nr(C))return!1;throw Error("non exhaustive match")}}),l=z(n,w=>{const C=w.LONGER_ALT;if(C)return ae(C)?z(C,B=>av(n,B)):[av(n,C)]}),u=z(n,w=>w.PUSH_MODE),f=z(n,w=>q(w,"POP_MODE"))});let d;r("Line Terminator Handling",()=>{const w=pg(e.lineTerminatorCharacters);d=z(n,C=>!1),e.positionTracking!=="onlyOffset"&&(d=z(n,C=>q(C,"LINE_BREAKS")?!!C.LINE_BREAKS:dg(C,w)===!1&&Kf(w,C.PATTERN)))});let p,g,m,T;r("Misc Mapping #2",()=>{p=z(n,fg),g=z(i,G_),m=Et(n,(w,C)=>{const k=C.GROUP;return mt(k)&&k!==st.SKIPPED&&(w[k]=[]),w},{}),T=z(i,(w,C)=>({pattern:i[C],longerAlt:l[C],canLineTerminator:d[C],isCustom:p[C],short:g[C],group:c[C],push:u[C],pop:f[C],tokenTypeIdx:o[C],tokenType:n[C]}))});let _=!0,v=[];return e.safeMode||r("First Char Optimization",()=>{v=Et(n,(w,C,k)=>{if(typeof C.PATTERN=="string"){const B=C.PATTERN.charCodeAt(0),re=kr(B);uu(w,re,T[k])}else if(ae(C.START_CHARS_HINT)){let B;V(C.START_CHARS_HINT,re=>{const X=typeof re=="string"?re.charCodeAt(0):re,ge=kr(X);B!==ge&&(B=ge,uu(w,ge,T[k]))})}else if(Ir(C.PATTERN))if(C.PATTERN.unicode)_=!1,e.ensureOptimizations&&Ku(`${qu} Unable to analyze < ${C.PATTERN.toString()} > pattern.
|
|
57
|
+
The regexp unicode flag is not currently supported by the regexp-to-ast library.
|
|
58
|
+
This will disable the lexer's first char optimizations.
|
|
59
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{const B=y_(C.PATTERN,e.ensureOptimizations);Ae(B)&&(_=!1),V(B,re=>{uu(w,re,T[k])})}else e.ensureOptimizations&&Ku(`${qu} TokenType: <${C.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
|
|
60
|
+
This will disable the lexer's first char optimizations.
|
|
61
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),_=!1;return w},[])}),{emptyGroups:m,patternIdxToConfig:T,charCodeToPatternIdxToConfig:v,hasCustom:a,canBeOptimized:_}}s(R_,"analyzeTokenTypes");function $_(t,e){let r=[];const n=E_(t);r=r.concat(n.errors);const a=__(n.valid),i=a.valid;return r=r.concat(a.errors),r=r.concat(A_(i)),r=r.concat(N_(i)),r=r.concat(k_(i,e)),r=r.concat(P_(i)),r}s($_,"validatePatterns");function A_(t){let e=[];const r=Ft(t,n=>Ir(n[Gn]));return e=e.concat(C_(r)),e=e.concat(b_(r)),e=e.concat(w_(r)),e=e.concat(I_(r)),e=e.concat(S_(r)),e}s(A_,"validateRegExpPattern");function E_(t){const e=Ft(t,a=>!q(a,Gn)),r=z(e,a=>({message:"Token Type: ->"+a.name+"<- missing static 'PATTERN' property",type:Fe.MISSING_PATTERN,tokenTypes:[a]})),n=Uf(t,e);return{errors:r,valid:n}}s(E_,"findMissingPatterns");function __(t){const e=Ft(t,a=>{const i=a[Gn];return!Ir(i)&&!Mr(i)&&!q(i,"exec")&&!mt(i)}),r=z(e,a=>({message:"Token Type: ->"+a.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Fe.INVALID_PATTERN,tokenTypes:[a]})),n=Uf(t,e);return{errors:r,valid:n}}s(__,"findInvalidPatterns");var zM=/[^\\][$]/;function C_(t){const a=class a extends Af{constructor(){super(...arguments),this.found=!1}visitEndAnchor(o){this.found=!0}};s(a,"EndAnchorFinder");let e=a;const r=Ft(t,i=>{const o=i.PATTERN;try{const c=Ic(o),l=new e;return l.visit(c),l.found}catch{return zM.test(o.source)}});return z(r,i=>({message:`Unexpected RegExp Anchor Error:
|
|
62
|
+
Token Type: ->`+i.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
|
|
63
|
+
See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Fe.EOI_ANCHOR_FOUND,tokenTypes:[i]}))}s(C_,"findEndOfInputAnchor");function S_(t){const e=Ft(t,n=>n.PATTERN.test(""));return z(e,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' must not match an empty string",type:Fe.EMPTY_MATCH_PATTERN,tokenTypes:[n]}))}s(S_,"findEmptyMatchRegExps");var BM=/[^\\[][\^]|^\^/;function b_(t){const a=class a extends Af{constructor(){super(...arguments),this.found=!1}visitStartAnchor(o){this.found=!0}};s(a,"StartAnchorFinder");let e=a;const r=Ft(t,i=>{const o=i.PATTERN;try{const c=Ic(o),l=new e;return l.visit(c),l.found}catch{return BM.test(o.source)}});return z(r,i=>({message:`Unexpected RegExp Anchor Error:
|
|
64
|
+
Token Type: ->`+i.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
|
|
65
|
+
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Fe.SOI_ANCHOR_FOUND,tokenTypes:[i]}))}s(b_,"findStartOfInputAnchor");function w_(t){const e=Ft(t,n=>{const a=n[Gn];return a instanceof RegExp&&(a.multiline||a.global)});return z(e,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Fe.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[n]}))}s(w_,"findUnsupportedFlags");function I_(t){const e=[];let r=z(t,i=>Et(t,(o,c)=>(i.PATTERN.source===c.PATTERN.source&&!ft(e,c)&&c.PATTERN!==st.NA&&(e.push(c),o.push(c)),o),[]));r=wc(r);const n=Ft(r,i=>i.length>1);return z(n,i=>{const o=z(i,l=>l.name);return{message:`The same RegExp pattern ->${Ht(i).PATTERN}<-has been used in all of the following Token Types: ${o.join(", ")} <-`,type:Fe.DUPLICATE_PATTERNS_FOUND,tokenTypes:i}})}s(I_,"findDuplicatePatterns");function N_(t){const e=Ft(t,n=>{if(!q(n,"GROUP"))return!1;const a=n.GROUP;return a!==st.SKIPPED&&a!==st.NA&&!mt(a)});return z(e,n=>({message:"Token Type: ->"+n.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Fe.INVALID_GROUP_TYPE_FOUND,tokenTypes:[n]}))}s(N_,"findInvalidGroupType");function k_(t,e){const r=Ft(t,a=>a.PUSH_MODE!==void 0&&!ft(e,a.PUSH_MODE));return z(r,a=>({message:`Token Type: ->${a.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${a.PUSH_MODE}<-which does not exist`,type:Fe.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[a]}))}s(k_,"findModesThatDoNotExist");function P_(t){const e=[],r=Et(t,(n,a,i)=>{const o=a.PATTERN;return o===st.NA||(mt(o)?n.push({str:o,idx:i,tokenType:a}):Ir(o)&&L_(o)&&n.push({str:o.source,idx:i,tokenType:a})),n},[]);return V(t,(n,a)=>{V(r,({str:i,idx:o,tokenType:c})=>{if(a<o&&O_(i,n.PATTERN)){const l=`Token: ->${c.name}<- can never be matched.
|
|
66
|
+
Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition.
|
|
67
|
+
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;e.push({message:l,type:Fe.UNREACHABLE_PATTERN,tokenTypes:[n,c]})}})}),e}s(P_,"findUnreachablePatterns");function O_(t,e){if(Ir(e)){if(D_(e))return!1;const r=e.exec(t);return r!==null&&r.index===0}else{if(Mr(e))return e(t,0,[],{});if(q(e,"exec"))return e.exec(t,0,[],{});if(typeof e=="string")return e===t;throw Error("non exhaustive match")}}s(O_,"tryToMatchStrToPattern");function L_(t){return Mo([".","\\","[","]","|","^","$","(",")","?","*","+","{"],r=>t.source.indexOf(r)!==-1)===void 0}s(L_,"noMetaChar");function D_(t){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(t.source)}s(D_,"usesLookAheadOrBehind");function Zp(t){const e=t.ignoreCase?"i":"";return new RegExp(`^(?:${t.source})`,e)}s(Zp,"addStartOfInput");function Qp(t){const e=t.ignoreCase?"iy":"y";return new RegExp(`${t.source}`,e)}s(Qp,"addStickyFlag");function M_(t,e,r){const n=[];return q(t,kl)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+kl+`> property in its definition
|
|
68
|
+
`,type:Fe.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),q(t,Fc)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+Fc+`> property in its definition
|
|
69
|
+
`,type:Fe.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),q(t,Fc)&&q(t,kl)&&!q(t.modes,t.defaultMode)&&n.push({message:`A MultiMode Lexer cannot be initialized with a ${kl}: <${t.defaultMode}>which does not exist
|
|
70
|
+
`,type:Fe.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),q(t,Fc)&&V(t.modes,(a,i)=>{V(a,(o,c)=>{if(Nr(o))n.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${i}> at index: <${c}>
|
|
71
|
+
`,type:Fe.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(q(o,"LONGER_ALT")){const l=ae(o.LONGER_ALT)?o.LONGER_ALT:[o.LONGER_ALT];V(l,u=>{!Nr(u)&&!ft(a,u)&&n.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${u.name}> on token <${o.name}> outside of mode <${i}>
|
|
72
|
+
`,type:Fe.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),n}s(M_,"performRuntimeChecks");function x_(t,e,r){const n=[];let a=!1;const i=wc(qt(We(t.modes))),o=zf(i,l=>l[Gn]===st.NA),c=pg(r);return e&&V(o,l=>{const u=dg(l,c);if(u!==!1){const d={message:j_(l,u),type:u.issue,tokenType:l};n.push(d)}else q(l,"LINE_BREAKS")?l.LINE_BREAKS===!0&&(a=!0):Kf(c,l.PATTERN)&&(a=!0)}),e&&!a&&n.push({message:`Warning: No LINE_BREAKS Found.
|
|
73
|
+
This Lexer has been defined to track line and column information,
|
|
74
|
+
But none of the Token Types can be identified as matching a line terminator.
|
|
75
|
+
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
|
|
76
|
+
for details.`,type:Fe.NO_LINE_BREAKS_FLAGS}),n}s(x_,"performWarningRuntimeChecks");function F_(t){const e={},r=$t(t);return V(r,n=>{const a=t[n];if(ae(a))e[n]=[];else throw Error("non exhaustive match")}),e}s(F_,"cloneEmptyGroups");function fg(t){const e=t.PATTERN;if(Ir(e))return!1;if(Mr(e))return!0;if(q(e,"exec"))return!0;if(mt(e))return!1;throw Error("non exhaustive match")}s(fg,"isCustomPattern");function G_(t){return mt(t)&&t.length===1?t.charCodeAt(0):!1}s(G_,"isShortPattern");var KM={test:s(function(t){const e=t.length;for(let r=this.lastIndex;r<e;r++){const n=t.charCodeAt(r);if(n===10)return this.lastIndex=r+1,!0;if(n===13)return t.charCodeAt(r+1)===10?this.lastIndex=r+2:this.lastIndex=r+1,!0}return!1},"test"),lastIndex:0};function dg(t,e){if(q(t,"LINE_BREAKS"))return!1;if(Ir(t.PATTERN)){try{Kf(e,t.PATTERN)}catch(r){return{issue:Fe.IDENTIFY_TERMINATOR,errMsg:r.message}}return!1}else{if(mt(t.PATTERN))return!1;if(fg(t))return{issue:Fe.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}s(dg,"checkLineBreaksIssues");function j_(t,e){if(e.issue===Fe.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
|
|
77
|
+
The problem is in the <${t.name}> Token Type
|
|
78
|
+
Root cause: ${e.errMsg}.
|
|
79
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(e.issue===Fe.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
|
|
80
|
+
The problem is in the <${t.name}> Token Type
|
|
81
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}s(j_,"buildLineBreakIssueMessage");function pg(t){return z(t,r=>mt(r)?r.charCodeAt(0):r)}s(pg,"getCharCodes");function uu(t,e,r){t[e]===void 0?t[e]=[r]:t[e].push(r)}s(uu,"addToMapOfArrays");var Pl=256,fu=[];function kr(t){return t<Pl?t:fu[t]}s(kr,"charCodeToOptimizedIndex");function U_(){if(Ae(fu)){fu=new Array(65536);for(let t=0;t<65536;t++)fu[t]=t>255?255+~~(t/255):t}}s(U_,"initCharCodeToOptimizedIndexMap");function qo(t,e){const r=t.tokenTypeIdx;return r===e.tokenTypeIdx?!0:e.isParent===!0&&e.categoryMatchesMap[r]===!0}s(qo,"tokenStructuredMatcher");function ic(t,e){return t.tokenTypeIdx===e.tokenTypeIdx}s(ic,"tokenStructuredMatcherNoCategories");var sv=1,z_={};function Wo(t){const e=B_(t);K_(e),W_(e),q_(e),V(e,r=>{r.isParent=r.categoryMatches.length>0})}s(Wo,"augmentTokenTypes");function B_(t){let e=et(t),r=t,n=!0;for(;n;){r=wc(qt(z(r,i=>i.CATEGORIES)));const a=Uf(r,e);e=e.concat(a),Ae(a)?n=!1:r=a}return e}s(B_,"expandCategories");function K_(t){V(t,e=>{mg(e)||(z_[sv]=e,e.tokenTypeIdx=sv++),eh(e)&&!ae(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),eh(e)||(e.CATEGORIES=[]),V_(e)||(e.categoryMatches=[]),H_(e)||(e.categoryMatchesMap={})})}s(K_,"assignTokenDefaultProps");function q_(t){V(t,e=>{e.categoryMatches=[],V(e.categoryMatchesMap,(r,n)=>{e.categoryMatches.push(z_[n].tokenTypeIdx)})})}s(q_,"assignCategoriesTokensProp");function W_(t){V(t,e=>{hg([],e)})}s(W_,"assignCategoriesMapProp");function hg(t,e){V(t,r=>{e.categoryMatchesMap[r.tokenTypeIdx]=!0}),V(e.CATEGORIES,r=>{const n=t.concat(e);ft(n,r)||hg(n,r)})}s(hg,"singleAssignCategoriesToksMap");function mg(t){return q(t,"tokenTypeIdx")}s(mg,"hasShortKeyProperty");function eh(t){return q(t,"CATEGORIES")}s(eh,"hasCategoriesProperty");function V_(t){return q(t,"categoryMatches")}s(V_,"hasExtendingTokensTypesProperty");function H_(t){return q(t,"categoryMatchesMap")}s(H_,"hasExtendingTokensTypesMapProperty");function Y_(t){return q(t,"tokenTypeIdx")}s(Y_,"isTokenType");var th={buildUnableToPopLexerModeMessage(t){return`Unable to pop Lexer Mode after encountering Token ->${t.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(t,e,r,n,a,i){return`unexpected character: ->${t.charAt(e)}<- at offset: ${e}, skipped ${r} characters.`}},Fe;(function(t){t[t.MISSING_PATTERN=0]="MISSING_PATTERN",t[t.INVALID_PATTERN=1]="INVALID_PATTERN",t[t.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",t[t.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",t[t.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",t[t.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",t[t.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",t[t.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",t[t.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",t[t.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",t[t.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",t[t.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",t[t.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",t[t.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",t[t.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",t[t.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",t[t.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",t[t.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(Fe||(Fe={}));var Ol={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
|
|
82
|
+
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:th,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(Ol);var ui,st=(ui=class{constructor(e,r=Ol){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(a,i)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;const o=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${o}--> <${a}>`);const{time:c,value:l}=cg(i),u=c>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&u(`${o}<-- <${a}> time: ${c}ms`),this.traceInitIndent--,l}else return i()},typeof r=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
|
|
83
|
+
a boolean 2nd argument is no longer supported`);this.config=At({},Ol,r);const n=this.config.traceInitPerf;n===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof n=="number"&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let a,i=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===Ol.lineTerminatorsPattern)this.config.lineTerminatorsPattern=KM;else if(this.config.lineTerminatorCharacters===Ol.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
|
|
84
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(r.safeMode&&r.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),ae(e)?a={modes:{defaultMode:et(e)},defaultMode:kl}:(i=!1,a=et(e))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(M_(a,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(x_(a,this.trackStartLines,this.config.lineTerminatorCharacters))})),a.modes=a.modes?a.modes:{},V(a.modes,(c,l)=>{a.modes[l]=zf(c,u=>Nr(u))});const o=$t(a.modes);if(V(a.modes,(c,l)=>{this.TRACE_INIT(`Mode: <${l}> processing`,()=>{if(this.modes.push(l),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat($_(c,o))}),Ae(this.lexerDefinitionErrors)){Wo(c);let u;this.TRACE_INIT("analyzeTokenTypes",()=>{u=R_(c,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:r.positionTracking,ensureOptimizations:r.ensureOptimizations,safeMode:r.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[l]=u.patternIdxToConfig,this.charCodeToPatternIdxToConfig[l]=u.charCodeToPatternIdxToConfig,this.emptyGroups=At({},this.emptyGroups,u.emptyGroups),this.hasCustom=u.hasCustom||this.hasCustom,this.canModeBeOptimized[l]=u.canBeOptimized}})}),this.defaultMode=a.defaultMode,!Ae(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){const l=z(this.lexerDefinitionErrors,u=>u.message).join(`-----------------------
|
|
85
|
+
`);throw new Error(`Errors detected in definition of Lexer:
|
|
86
|
+
`+l)}V(this.lexerDefinitionWarning,c=>{lg(c.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(T_?(this.chopInput=Lo,this.match=this.matchWithTest):(this.updateLastIndex=qe,this.match=this.matchWithExec),i&&(this.handleModes=qe),this.trackStartLines===!1&&(this.computeNewColumn=Lo),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=qe),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{const c=Et(this.canModeBeOptimized,(l,u,f)=>(u===!1&&l.push(f),l),[]);if(r.ensureOptimizations&&!Ae(c))throw Error(`Lexer Modes: < ${c.join(", ")} > cannot be optimized.
|
|
87
|
+
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
|
|
88
|
+
Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{m_()}),this.TRACE_INIT("toFastProperties",()=>{ug(this)})})}tokenize(e,r=this.defaultMode){if(!Ae(this.lexerDefinitionErrors)){const a=z(this.lexerDefinitionErrors,i=>i.message).join(`-----------------------
|
|
89
|
+
`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
|
|
90
|
+
`+a)}return this.tokenizeInternal(e,r)}tokenizeInternal(e,r){let n,a,i,o,c,l,u,f,d,p,g,m,T,_,v;const w=e,C=w.length;let k=0,B=0;const re=this.hasCustom?0:Math.floor(e.length/10),X=new Array(re),ge=[];let Ee=this.trackStartLines?1:void 0,we=this.trackStartLines?1:void 0;const oe=F_(this.emptyGroups),tt=this.trackStartLines,P=this.config.lineTerminatorsPattern;let S=0,R=[],I=[];const $=[],A=[];Object.freeze(A);let b;function O(){return R}s(O,"getPossiblePatternsSlow");function M(U){const Q=kr(U),fe=I[Q];return fe===void 0?A:fe}s(M,"getPossiblePatternsOptimized");const L=s(U=>{if($.length===1&&U.tokenType.PUSH_MODE===void 0){const Q=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(U);ge.push({offset:U.startOffset,line:U.startLine,column:U.startColumn,length:U.image.length,message:Q})}else{$.pop();const Q=Fn($);R=this.patternIdxToConfig[Q],I=this.charCodeToPatternIdxToConfig[Q],S=R.length;const fe=this.canModeBeOptimized[Q]&&this.config.safeMode===!1;I&&fe?b=M:b=O}},"pop_mode");function j(U){$.push(U),I=this.charCodeToPatternIdxToConfig[U],R=this.patternIdxToConfig[U],S=R.length,S=R.length;const Q=this.canModeBeOptimized[U]&&this.config.safeMode===!1;I&&Q?b=M:b=O}s(j,"push_mode"),j.call(this,r);let F;const te=this.config.recoveryEnabled;for(;k<C;){l=null;const U=w.charCodeAt(k),Q=b(U),fe=Q.length;for(n=0;n<fe;n++){F=Q[n];const de=F.pattern;u=null;const pe=F.short;if(pe!==!1?U===pe&&(l=de):F.isCustom===!0?(v=de.exec(w,k,X,oe),v!==null?(l=v[0],v.payload!==void 0&&(u=v.payload)):l=null):(this.updateLastIndex(de,k),l=this.match(de,e,k)),l!==null){if(c=F.longerAlt,c!==void 0){const ye=c.length;for(i=0;i<ye;i++){const Ie=R[c[i]],he=Ie.pattern;if(f=null,Ie.isCustom===!0?(v=he.exec(w,k,X,oe),v!==null?(o=v[0],v.payload!==void 0&&(f=v.payload)):o=null):(this.updateLastIndex(he,k),o=this.match(he,e,k)),o&&o.length>l.length){l=o,u=f,F=Ie;break}}}break}}if(l!==null){if(d=l.length,p=F.group,p!==void 0&&(g=F.tokenTypeIdx,m=this.createTokenInstance(l,k,g,F.tokenType,Ee,we,d),this.handlePayload(m,u),p===!1?B=this.addToken(X,B,m):oe[p].push(m)),e=this.chopInput(e,d),k=k+d,we=this.computeNewColumn(we,d),tt===!0&&F.canLineTerminator===!0){let de=0,pe,ye;P.lastIndex=0;do pe=P.test(l),pe===!0&&(ye=P.lastIndex-1,de++);while(pe===!0);de!==0&&(Ee=Ee+de,we=d-ye,this.updateTokenEndLineColumnLocation(m,p,ye,de,Ee,we,d))}this.handleModes(F,L,j,m)}else{const de=k,pe=Ee,ye=we;let Ie=te===!1;for(;Ie===!1&&k<C;)for(e=this.chopInput(e,1),k++,a=0;a<S;a++){const he=R[a],J=he.pattern,Ue=he.short;if(Ue!==!1?w.charCodeAt(k)===Ue&&(Ie=!0):he.isCustom===!0?Ie=J.exec(w,k,X,oe)!==null:(this.updateLastIndex(J,k),Ie=J.exec(e)!==null),Ie===!0)break}if(T=k-de,we=this.computeNewColumn(we,T),_=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(w,de,T,pe,ye,Fn($)),ge.push({offset:de,line:pe,column:ye,length:T,message:_}),te===!1)break}}return this.hasCustom||(X.length=B),{tokens:X,groups:oe,errors:ge}}handleModes(e,r,n,a){if(e.pop===!0){const i=e.push;r(a),i!==void 0&&n.call(this,i)}else e.push!==void 0&&n.call(this,e.push)}chopInput(e,r){return e.substring(r)}updateLastIndex(e,r){e.lastIndex=r}updateTokenEndLineColumnLocation(e,r,n,a,i,o,c){let l,u;r!==void 0&&(l=n===c-1,u=l?-1:0,a===1&&l===!0||(e.endLine=i+u,e.endColumn=o-1+-u))}computeNewColumn(e,r){return e+r}createOffsetOnlyToken(e,r,n,a){return{image:e,startOffset:r,tokenTypeIdx:n,tokenType:a}}createStartOnlyToken(e,r,n,a,i,o){return{image:e,startOffset:r,startLine:i,startColumn:o,tokenTypeIdx:n,tokenType:a}}createFullToken(e,r,n,a,i,o,c){return{image:e,startOffset:r,endOffset:r+c-1,startLine:i,endLine:i,startColumn:o,endColumn:o+c-1,tokenTypeIdx:n,tokenType:a}}addTokenUsingPush(e,r,n){return e.push(n),r}addTokenUsingMemberAccess(e,r,n){return e[r]=n,r++,r}handlePayloadNoCustom(e,r){}handlePayloadWithCustom(e,r){r!==null&&(e.payload=r)}matchWithTest(e,r,n){return e.test(r)===!0?r.substring(n,e.lastIndex):null}matchWithExec(e,r){const n=e.exec(r);return n!==null?n[0]:null}},s(ui,"Lexer"),ui);st.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";st.NA=/NOT_APPLICABLE/;function On(t){return gg(t)?t.LABEL:t.name}s(On,"tokenLabel");function gg(t){return mt(t.LABEL)&&t.LABEL!==""}s(gg,"hasTokenLabel");var qM="parent",ov="categories",lv="label",cv="group",uv="push_mode",fv="pop_mode",dv="longer_alt",pv="line_breaks",hv="start_chars_hint";function ja(t){return X_(t)}s(ja,"createToken");function X_(t){const e=t.pattern,r={};if(r.name=t.name,Nr(e)||(r.PATTERN=e),q(t,qM))throw`The parent property is no longer supported.
|
|
91
|
+
See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return q(t,ov)&&(r.CATEGORIES=t[ov]),Wo([r]),q(t,lv)&&(r.LABEL=t[lv]),q(t,cv)&&(r.GROUP=t[cv]),q(t,fv)&&(r.POP_MODE=t[fv]),q(t,uv)&&(r.PUSH_MODE=t[uv]),q(t,dv)&&(r.LONGER_ALT=t[dv]),q(t,pv)&&(r.LINE_BREAKS=t[pv]),q(t,hv)&&(r.START_CHARS_HINT=t[hv]),r}s(X_,"createTokenInternal");var Yr=ja({name:"EOF",pattern:st.NA});Wo([Yr]);function Nc(t,e,r,n,a,i,o,c){return{image:e,startOffset:r,endOffset:n,startLine:a,endLine:i,startColumn:o,endColumn:c,tokenTypeIdx:t.tokenTypeIdx,tokenType:t}}s(Nc,"createTokenInstance");function yg(t,e){return qo(t,e)}s(yg,"tokenMatcher");var xa={buildMismatchTokenMessage({expected:t,actual:e,previous:r,ruleName:n}){return`Expecting ${gg(t)?`--> ${On(t)} <--`:`token of type --> ${t.name} <--`} but found --> '${e.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:t,ruleName:e}){return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage({expectedPathsPerAlt:t,actual:e,previous:r,customUserDescription:n,ruleName:a}){const i="Expecting: ",c=`
|
|
92
|
+
but found: '`+Ht(e).image+"'";if(n)return i+n+c;{const l=Et(t,(p,g)=>p.concat(g),[]),u=z(l,p=>`[${z(p,g=>On(g)).join(", ")}]`),d=`one of these possible Token sequences:
|
|
93
|
+
${z(u,(p,g)=>` ${g+1}. ${p}`).join(`
|
|
94
|
+
`)}`;return i+d+c}},buildEarlyExitMessage({expectedIterationPaths:t,actual:e,customUserDescription:r,ruleName:n}){const a="Expecting: ",o=`
|
|
95
|
+
but found: '`+Ht(e).image+"'";if(r)return a+r+o;{const l=`expecting at least one iteration which starts with one of these possible Token sequences::
|
|
96
|
+
<${z(t,u=>`[${z(u,f=>On(f)).join(",")}]`).join(" ,")}>`;return a+l+o}}};Object.freeze(xa);var WM={buildRuleNotFoundError(t,e){return"Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+`<-
|
|
97
|
+
inside top level rule: ->`+t.name+"<-"}},Nn={buildDuplicateFoundError(t,e){function r(f){return f instanceof be?f.terminalType.name:f instanceof lt?f.nonTerminalName:""}s(r,"getExtraProductionArgument");const n=t.name,a=Ht(e),i=a.idx,o=Ut(a),c=r(a),l=i>0;let u=`->${o}${l?i:""}<- ${c?`with argument: ->${c}<-`:""}
|
|
98
|
+
appears more than once (${e.length} times) in the top level rule: ->${n}<-.
|
|
99
|
+
For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
|
|
100
|
+
`;return u=u.replace(/[ \t]+/g," "),u=u.replace(/\s\s+/g,`
|
|
101
|
+
`),u},buildNamespaceConflictError(t){return`Namespace conflict found in grammar.
|
|
102
|
+
The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${t.name}>.
|
|
103
|
+
To resolve this make sure each Terminal and Non-Terminal names are unique
|
|
104
|
+
This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
|
|
105
|
+
and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(t){const e=z(t.prefixPath,a=>On(a)).join(", "),r=t.alternation.idx===0?"":t.alternation.idx;return`Ambiguous alternatives: <${t.ambiguityIndices.join(" ,")}> due to common lookahead prefix
|
|
106
|
+
in <OR${r}> inside <${t.topLevelRule.name}> Rule,
|
|
107
|
+
<${e}> may appears as a prefix path in all these alternatives.
|
|
108
|
+
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
|
|
109
|
+
For Further details.`},buildAlternationAmbiguityError(t){const e=z(t.prefixPath,a=>On(a)).join(", "),r=t.alternation.idx===0?"":t.alternation.idx;let n=`Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(" ,")}> in <OR${r}> inside <${t.topLevelRule.name}> Rule,
|
|
110
|
+
<${e}> may appears as a prefix path in all these alternatives.
|
|
111
|
+
`;return n=n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
|
112
|
+
For Further details.`,n},buildEmptyRepetitionError(t){let e=Ut(t.repetition);return t.repetition.idx!==0&&(e+=t.repetition.idx),`The repetition <${e}> within Rule <${t.topLevelRule.name}> can never consume any tokens.
|
|
113
|
+
This could lead to an infinite loop.`},buildTokenNameError(t){return"deprecated"},buildEmptyAlternationError(t){return`Ambiguous empty alternative: <${t.emptyChoiceIdx+1}> in <OR${t.alternation.idx}> inside <${t.topLevelRule.name}> Rule.
|
|
114
|
+
Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(t){return`An Alternation cannot have more than 256 alternatives:
|
|
115
|
+
<OR${t.alternation.idx}> inside <${t.topLevelRule.name}> Rule.
|
|
116
|
+
has ${t.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(t){const e=t.topLevelRule.name,r=z(t.leftRecursionPath,i=>i.name),n=`${e} --> ${r.concat([e]).join(" --> ")}`;return`Left Recursion found in grammar.
|
|
117
|
+
rule: <${e}> can be invoked from itself (directly or indirectly)
|
|
118
|
+
without consuming any Tokens. The grammar path that causes this is:
|
|
119
|
+
${n}
|
|
120
|
+
To fix this refactor your grammar to remove the left recursion.
|
|
121
|
+
see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(t){return"deprecated"},buildDuplicateRuleNameError(t){let e;return t.topLevelRule instanceof zo?e=t.topLevelRule.name:e=t.topLevelRule,`Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`}};function J_(t,e){const r=new VM(t,e);return r.resolveRefs(),r.errors}s(J_,"resolveGrammar");var fi,VM=(fi=class extends Bo{constructor(e,r){super(),this.nameToTopRule=e,this.errMsgProvider=r,this.errors=[]}resolveRefs(){V(We(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){const r=this.nameToTopRule[e.nonTerminalName];if(r)e.referencedRule=r;else{const n=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:n,type:ct.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},s(fi,"GastRefResolverVisitor"),fi),di,HM=(di=class extends Bf{constructor(e,r){super(),this.topProd=e,this.path=r,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=et(this.path.ruleStack).reverse(),this.occurrenceStack=et(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,r=[]){this.found||super.walk(e,r)}walkProdRef(e,r,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){const a=r.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,a)}}updateExpectedNext(){Ae(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},s(di,"AbstractNextPossibleTokensWalker"),di),pi,YM=(pi=class extends HM{constructor(e,r){super(e,r),this.path=r,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,r,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){const a=r.concat(n),i=new gt({definition:a});this.possibleTokTypes=Ko(i),this.found=!0}}},s(pi,"NextAfterTokenWalker"),pi),hi,qf=(hi=class extends Bf{constructor(e,r){super(),this.topRule=e,this.occurrence=r,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},s(hi,"AbstractNextTerminalAfterProductionWalker"),hi),mi,XM=(mi=class extends qf{walkMany(e,r,n){if(e.idx===this.occurrence){const a=Ht(r.concat(n));this.result.isEndOfRule=a===void 0,a instanceof be&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else super.walkMany(e,r,n)}},s(mi,"NextTerminalAfterManyWalker"),mi),gi,mv=(gi=class extends qf{walkManySep(e,r,n){if(e.idx===this.occurrence){const a=Ht(r.concat(n));this.result.isEndOfRule=a===void 0,a instanceof be&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else super.walkManySep(e,r,n)}},s(gi,"NextTerminalAfterManySepWalker"),gi),yi,JM=(yi=class extends qf{walkAtLeastOne(e,r,n){if(e.idx===this.occurrence){const a=Ht(r.concat(n));this.result.isEndOfRule=a===void 0,a instanceof be&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else super.walkAtLeastOne(e,r,n)}},s(yi,"NextTerminalAfterAtLeastOneWalker"),yi),vi,gv=(vi=class extends qf{walkAtLeastOneSep(e,r,n){if(e.idx===this.occurrence){const a=Ht(r.concat(n));this.result.isEndOfRule=a===void 0,a instanceof be&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else super.walkAtLeastOneSep(e,r,n)}},s(vi,"NextTerminalAfterAtLeastOneSepWalker"),vi);function Hu(t,e,r=[]){r=et(r);let n=[],a=0;function i(c){return c.concat(Ze(t,a+1))}s(i,"remainingPathWith");function o(c){const l=Hu(i(c),e,r);return n.concat(l)}for(s(o,"getAlternativesForProd");r.length<e&&a<t.length;){const c=t[a];if(c instanceof gt)return o(c.definition);if(c instanceof lt)return o(c.definition);if(c instanceof Qe)n=o(c.definition);else if(c instanceof _t){const l=c.definition.concat([new xe({definition:c.definition})]);return o(l)}else if(c instanceof Ct){const l=[new gt({definition:c.definition}),new xe({definition:[new be({terminalType:c.separator})].concat(c.definition)})];return o(l)}else if(c instanceof yt){const l=c.definition.concat([new xe({definition:[new be({terminalType:c.separator})].concat(c.definition)})]);n=o(l)}else if(c instanceof xe){const l=c.definition.concat([new xe({definition:c.definition})]);n=o(l)}else{if(c instanceof vt)return V(c.definition,l=>{Ae(l.definition)===!1&&(n=o(l.definition))}),n;if(c instanceof be)r.push(c.terminalType);else throw Error("non exhaustive match")}a++}return n.push({partialPath:r,suffixDef:Ze(t,a)}),n}s(Hu,"possiblePathsFrom");function vg(t,e,r,n){const a="EXIT_NONE_TERMINAL",i=[a],o="EXIT_ALTERNATIVE";let c=!1;const l=e.length,u=l-n-1,f=[],d=[];for(d.push({idx:-1,def:t,ruleStack:[],occurrenceStack:[]});!Ae(d);){const p=d.pop();if(p===o){c&&Fn(d).idx<=u&&d.pop();continue}const g=p.def,m=p.idx,T=p.ruleStack,_=p.occurrenceStack;if(Ae(g))continue;const v=g[0];if(v===a){const w={idx:m,def:Ze(g),ruleStack:nc(T),occurrenceStack:nc(_)};d.push(w)}else if(v instanceof be)if(m<l-1){const w=m+1,C=e[w];if(r(C,v.terminalType)){const k={idx:w,def:Ze(g),ruleStack:T,occurrenceStack:_};d.push(k)}}else if(m===l-1)f.push({nextTokenType:v.terminalType,nextTokenOccurrence:v.idx,ruleStack:T,occurrenceStack:_}),c=!0;else throw Error("non exhaustive match");else if(v instanceof lt){const w=et(T);w.push(v.nonTerminalName);const C=et(_);C.push(v.idx);const k={idx:m,def:v.definition.concat(i,Ze(g)),ruleStack:w,occurrenceStack:C};d.push(k)}else if(v instanceof Qe){const w={idx:m,def:Ze(g),ruleStack:T,occurrenceStack:_};d.push(w),d.push(o);const C={idx:m,def:v.definition.concat(Ze(g)),ruleStack:T,occurrenceStack:_};d.push(C)}else if(v instanceof _t){const w=new xe({definition:v.definition,idx:v.idx}),C=v.definition.concat([w],Ze(g)),k={idx:m,def:C,ruleStack:T,occurrenceStack:_};d.push(k)}else if(v instanceof Ct){const w=new be({terminalType:v.separator}),C=new xe({definition:[w].concat(v.definition),idx:v.idx}),k=v.definition.concat([C],Ze(g)),B={idx:m,def:k,ruleStack:T,occurrenceStack:_};d.push(B)}else if(v instanceof yt){const w={idx:m,def:Ze(g),ruleStack:T,occurrenceStack:_};d.push(w),d.push(o);const C=new be({terminalType:v.separator}),k=new xe({definition:[C].concat(v.definition),idx:v.idx}),B=v.definition.concat([k],Ze(g)),re={idx:m,def:B,ruleStack:T,occurrenceStack:_};d.push(re)}else if(v instanceof xe){const w={idx:m,def:Ze(g),ruleStack:T,occurrenceStack:_};d.push(w),d.push(o);const C=new xe({definition:v.definition,idx:v.idx}),k=v.definition.concat([C],Ze(g)),B={idx:m,def:k,ruleStack:T,occurrenceStack:_};d.push(B)}else if(v instanceof vt)for(let w=v.definition.length-1;w>=0;w--){const C=v.definition[w],k={idx:m,def:C.definition.concat(Ze(g)),ruleStack:T,occurrenceStack:_};d.push(k),d.push(o)}else if(v instanceof gt)d.push({idx:m,def:v.definition.concat(Ze(g)),ruleStack:T,occurrenceStack:_});else if(v instanceof zo)d.push(Z_(v,m,T,_));else throw Error("non exhaustive match")}return f}s(vg,"nextPossibleTokensAfter");function Z_(t,e,r,n){const a=et(r);a.push(t.name);const i=et(n);return i.push(1),{idx:e,def:t.definition,ruleStack:a,occurrenceStack:i}}s(Z_,"expandTopLevelRule");var Le;(function(t){t[t.OPTION=0]="OPTION",t[t.REPETITION=1]="REPETITION",t[t.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",t[t.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",t[t.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",t[t.ALTERNATION=5]="ALTERNATION"})(Le||(Le={}));function Wf(t){if(t instanceof Qe||t==="Option")return Le.OPTION;if(t instanceof xe||t==="Repetition")return Le.REPETITION;if(t instanceof _t||t==="RepetitionMandatory")return Le.REPETITION_MANDATORY;if(t instanceof Ct||t==="RepetitionMandatoryWithSeparator")return Le.REPETITION_MANDATORY_WITH_SEPARATOR;if(t instanceof yt||t==="RepetitionWithSeparator")return Le.REPETITION_WITH_SEPARATOR;if(t instanceof vt||t==="Alternation")return Le.ALTERNATION;throw Error("non exhaustive match")}s(Wf,"getProdType");function rh(t){const{occurrence:e,rule:r,prodType:n,maxLookahead:a}=t,i=Wf(n);return i===Le.ALTERNATION?kc(e,r,a):Pc(e,r,i,a)}s(rh,"getLookaheadPaths");function Q_(t,e,r,n,a,i){const o=kc(t,e,r),c=Rg(o)?ic:qo;return i(o,n,c,a)}s(Q_,"buildLookaheadFuncForOr");function eC(t,e,r,n,a,i){const o=Pc(t,e,a,r),c=Rg(o)?ic:qo;return i(o[0],c,n)}s(eC,"buildLookaheadFuncForOptionalProd");function tC(t,e,r,n){const a=t.length,i=Wt(t,o=>Wt(o,c=>c.length===1));if(e)return function(o){const c=z(o,l=>l.GATE);for(let l=0;l<a;l++){const u=t[l],f=u.length,d=c[l];if(!(d!==void 0&&d.call(this)===!1))e:for(let p=0;p<f;p++){const g=u[p],m=g.length;for(let T=0;T<m;T++){const _=this.LA(T+1);if(r(_,g[T])===!1)continue e}return l}}};if(i&&!n){const o=z(t,l=>qt(l)),c=Et(o,(l,u,f)=>(V(u,d=>{q(l,d.tokenTypeIdx)||(l[d.tokenTypeIdx]=f),V(d.categoryMatches,p=>{q(l,p)||(l[p]=f)})}),l),{});return function(){const l=this.LA(1);return c[l.tokenTypeIdx]}}else return function(){for(let o=0;o<a;o++){const c=t[o],l=c.length;e:for(let u=0;u<l;u++){const f=c[u],d=f.length;for(let p=0;p<d;p++){const g=this.LA(p+1);if(r(g,f[p])===!1)continue e}return o}}}}s(tC,"buildAlternativesLookAheadFunc");function rC(t,e,r){const n=Wt(t,i=>i.length===1),a=t.length;if(n&&!r){const i=qt(t);if(i.length===1&&Ae(i[0].categoryMatches)){const c=i[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===c}}else{const o=Et(i,(c,l,u)=>(c[l.tokenTypeIdx]=!0,V(l.categoryMatches,f=>{c[f]=!0}),c),[]);return function(){const c=this.LA(1);return o[c.tokenTypeIdx]===!0}}}else return function(){e:for(let i=0;i<a;i++){const o=t[i],c=o.length;for(let l=0;l<c;l++){const u=this.LA(l+1);if(e(u,o[l])===!1)continue e}return!0}return!1}}s(rC,"buildSingleAlternativeLookaheadFunction");var Ti,ZM=(Ti=class extends Bf{constructor(e,r,n){super(),this.topProd=e,this.targetOccurrence=r,this.targetProdType=n}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,r,n,a){return e.idx===this.targetOccurrence&&this.targetProdType===r?(this.restDef=n.concat(a),!0):!1}walkOption(e,r,n){this.checkIsTarget(e,Le.OPTION,r,n)||super.walkOption(e,r,n)}walkAtLeastOne(e,r,n){this.checkIsTarget(e,Le.REPETITION_MANDATORY,r,n)||super.walkOption(e,r,n)}walkAtLeastOneSep(e,r,n){this.checkIsTarget(e,Le.REPETITION_MANDATORY_WITH_SEPARATOR,r,n)||super.walkOption(e,r,n)}walkMany(e,r,n){this.checkIsTarget(e,Le.REPETITION,r,n)||super.walkOption(e,r,n)}walkManySep(e,r,n){this.checkIsTarget(e,Le.REPETITION_WITH_SEPARATOR,r,n)||super.walkOption(e,r,n)}},s(Ti,"RestDefinitionFinderWalker"),Ti),Ri,nC=(Ri=class extends Bo{constructor(e,r,n){super(),this.targetOccurrence=e,this.targetProdType=r,this.targetRef=n,this.result=[]}checkIsTarget(e,r){e.idx===this.targetOccurrence&&this.targetProdType===r&&(this.targetRef===void 0||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,Le.OPTION)}visitRepetition(e){this.checkIsTarget(e,Le.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,Le.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,Le.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,Le.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,Le.ALTERNATION)}},s(Ri,"InsideDefinitionFinderVisitor"),Ri);function nh(t){const e=new Array(t);for(let r=0;r<t;r++)e[r]=[];return e}s(nh,"initializeArrayOfArrays");function du(t){let e=[""];for(let r=0;r<t.length;r++){const n=t[r],a=[];for(let i=0;i<e.length;i++){const o=e[i];a.push(o+"_"+n.tokenTypeIdx);for(let c=0;c<n.categoryMatches.length;c++){const l="_"+n.categoryMatches[c];a.push(o+l)}}e=a}return e}s(du,"pathToHashKeys");function aC(t,e,r){for(let n=0;n<t.length;n++){if(n===r)continue;const a=t[n];for(let i=0;i<e.length;i++){const o=e[i];if(a[o]===!0)return!1}}return!0}s(aC,"isUniquePrefixHash");function Tg(t,e){const r=z(t,o=>Hu([o],1)),n=nh(r.length),a=z(r,o=>{const c={};return V(o,l=>{const u=du(l.partialPath);V(u,f=>{c[f]=!0})}),c});let i=r;for(let o=1;o<=e;o++){const c=i;i=nh(c.length);for(let l=0;l<c.length;l++){const u=c[l];for(let f=0;f<u.length;f++){const d=u[f].partialPath,p=u[f].suffixDef,g=du(d);if(aC(a,g,l)||Ae(p)||d.length===e){const T=n[l];if(Yu(T,d)===!1){T.push(d);for(let _=0;_<g.length;_++){const v=g[_];a[l][v]=!0}}}else{const T=Hu(p,o+1,d);i[l]=i[l].concat(T),V(T,_=>{const v=du(_.partialPath);V(v,w=>{a[l][w]=!0})})}}}}return n}s(Tg,"lookAheadSequenceFromAlternatives");function kc(t,e,r,n){const a=new nC(t,Le.ALTERNATION,n);return e.accept(a),Tg(a.result,r)}s(kc,"getLookaheadPathsForOr");function Pc(t,e,r,n){const a=new nC(t,r);e.accept(a);const i=a.result,c=new ZM(e,t,r).startWalking(),l=new gt({definition:i}),u=new gt({definition:c});return Tg([l,u],n)}s(Pc,"getLookaheadPathsForOptionalProd");function Yu(t,e){e:for(let r=0;r<t.length;r++){const n=t[r];if(n.length===e.length){for(let a=0;a<n.length;a++){const i=e[a],o=n[a];if((i===o||o.categoryMatchesMap[i.tokenTypeIdx]!==void 0)===!1)continue e}return!0}}return!1}s(Yu,"containsPath");function iC(t,e){return t.length<e.length&&Wt(t,(r,n)=>{const a=e[n];return r===a||a.categoryMatchesMap[r.tokenTypeIdx]})}s(iC,"isStrictPrefixOfPath");function Rg(t){return Wt(t,e=>Wt(e,r=>Wt(r,n=>Ae(n.categoryMatches))))}s(Rg,"areTokenCategoriesNotUsed");function sC(t){const e=t.lookaheadStrategy.validate({rules:t.rules,tokenTypes:t.tokenTypes,grammarName:t.grammarName});return z(e,r=>Object.assign({type:ct.CUSTOM_LOOKAHEAD_VALIDATION},r))}s(sC,"validateLookahead");function oC(t,e,r,n){const a=Lt(t,l=>lC(l,r)),i=vC(t,e,r),o=Lt(t,l=>hC(l,r)),c=Lt(t,l=>uC(l,t,n,r));return a.concat(i,o,c)}s(oC,"validateGrammar");function lC(t,e){const r=new QM;t.accept(r);const n=r.allProductions,a=pM(n,cC),i=Yt(a,c=>c.length>1);return z(We(i),c=>{const l=Ht(c),u=e.buildDuplicateFoundError(t,c),f=Ut(l),d={message:u,type:ct.DUPLICATE_PRODUCTIONS,ruleName:t.name,dslName:f,occurrence:l.idx},p=$g(l);return p&&(d.parameter=p),d})}s(lC,"validateDuplicateProductions");function cC(t){return`${Ut(t)}_#_${t.idx}_#_${$g(t)}`}s(cC,"identifyProductionForDuplicates");function $g(t){return t instanceof be?t.terminalType.name:t instanceof lt?t.nonTerminalName:""}s($g,"getExtraProductionArgument");var $i,QM=($i=class extends Bo{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}},s($i,"OccurrenceValidationCollector"),$i);function uC(t,e,r,n){const a=[];if(Et(e,(o,c)=>c.name===t.name?o+1:o,0)>1){const o=n.buildDuplicateRuleNameError({topLevelRule:t,grammarName:r});a.push({message:o,type:ct.DUPLICATE_RULE_NAME,ruleName:t.name})}return a}s(uC,"validateRuleDoesNotAlreadyExist");function fC(t,e,r){const n=[];let a;return ft(e,t)||(a=`Invalid rule override, rule: ->${t}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `,n.push({message:a,type:ct.INVALID_RULE_OVERRIDE,ruleName:t})),n}s(fC,"validateRuleIsOverridden");function Ag(t,e,r,n=[]){const a=[],i=Vl(e.definition);if(Ae(i))return[];{const o=t.name;ft(i,t)&&a.push({message:r.buildLeftRecursionError({topLevelRule:t,leftRecursionPath:n}),type:ct.LEFT_RECURSION,ruleName:o});const l=Uf(i,n.concat([t])),u=Lt(l,f=>{const d=et(n);return d.push(f),Ag(t,f,r,d)});return a.concat(u)}}s(Ag,"validateNoLeftRecursion");function Vl(t){let e=[];if(Ae(t))return e;const r=Ht(t);if(r instanceof lt)e.push(r.referencedRule);else if(r instanceof gt||r instanceof Qe||r instanceof _t||r instanceof Ct||r instanceof yt||r instanceof xe)e=e.concat(Vl(r.definition));else if(r instanceof vt)e=qt(z(r.definition,i=>Vl(i.definition)));else if(!(r instanceof be))throw Error("non exhaustive match");const n=ac(r),a=t.length>1;if(n&&a){const i=Ze(t);return e.concat(Vl(i))}else return e}s(Vl,"getFirstNoneTerminal");var Ai,Eg=(Ai=class extends Bo{constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}},s(Ai,"OrCollector"),Ai);function dC(t,e){const r=new Eg;t.accept(r);const n=r.alternations;return Lt(n,i=>{const o=nc(i.definition);return Lt(o,(c,l)=>{const u=vg([c],[],qo,1);return Ae(u)?[{message:e.buildEmptyAlternationError({topLevelRule:t,alternation:i,emptyChoiceIdx:l}),type:ct.NONE_LAST_EMPTY_ALT,ruleName:t.name,occurrence:i.idx,alternative:l+1}]:[]})})}s(dC,"validateEmptyOrAlternative");function pC(t,e,r){const n=new Eg;t.accept(n);let a=n.alternations;return a=zf(a,o=>o.ignoreAmbiguities===!0),Lt(a,o=>{const c=o.idx,l=o.maxLookahead||e,u=kc(c,t,l,o),f=gC(u,o,t,r),d=yC(u,o,t,r);return f.concat(d)})}s(pC,"validateAmbiguousAlternationAlternatives");var Ei,ex=(Ei=class extends Bo{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}},s(Ei,"RepetitionCollector"),Ei);function hC(t,e){const r=new Eg;t.accept(r);const n=r.alternations;return Lt(n,i=>i.definition.length>255?[{message:e.buildTooManyAlternativesError({topLevelRule:t,alternation:i}),type:ct.TOO_MANY_ALTS,ruleName:t.name,occurrence:i.idx}]:[])}s(hC,"validateTooManyAlts");function mC(t,e,r){const n=[];return V(t,a=>{const i=new ex;a.accept(i);const o=i.allProductions;V(o,c=>{const l=Wf(c),u=c.maxLookahead||e,f=c.idx,p=Pc(f,a,l,u)[0];if(Ae(qt(p))){const g=r.buildEmptyRepetitionError({topLevelRule:a,repetition:c});n.push({message:g,type:ct.NO_NON_EMPTY_LOOKAHEAD,ruleName:a.name})}})}),n}s(mC,"validateSomeNonEmptyLookaheadPath");function gC(t,e,r,n){const a=[],i=Et(t,(c,l,u)=>(e.definition[u].ignoreAmbiguities===!0||V(l,f=>{const d=[u];V(t,(p,g)=>{u!==g&&Yu(p,f)&&e.definition[g].ignoreAmbiguities!==!0&&d.push(g)}),d.length>1&&!Yu(a,f)&&(a.push(f),c.push({alts:d,path:f}))}),c),[]);return z(i,c=>{const l=z(c.alts,f=>f+1);return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:e,ambiguityIndices:l,prefixPath:c.path}),type:ct.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:e.idx,alternatives:c.alts}})}s(gC,"checkAlternativesAmbiguities");function yC(t,e,r,n){const a=Et(t,(o,c,l)=>{const u=z(c,f=>({idx:l,path:f}));return o.concat(u)},[]);return wc(Lt(a,o=>{if(e.definition[o.idx].ignoreAmbiguities===!0)return[];const l=o.idx,u=o.path,f=Ft(a,p=>e.definition[p.idx].ignoreAmbiguities!==!0&&p.idx<l&&iC(p.path,u));return z(f,p=>{const g=[p.idx+1,l+1],m=e.idx===0?"":e.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:e,ambiguityIndices:g,prefixPath:p.path}),type:ct.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:m,alternatives:g}})}))}s(yC,"checkPrefixAlternativesAmbiguities");function vC(t,e,r){const n=[],a=z(e,i=>i.name);return V(t,i=>{const o=i.name;if(ft(a,o)){const c=r.buildNamespaceConflictError(i);n.push({message:c,type:ct.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:o})}}),n}s(vC,"checkTerminalAndNoneTerminalsNameSpace");function TC(t){const e=sg(t,{errMsgProvider:WM}),r={};return V(t.rules,n=>{r[n.name]=n}),J_(r,e.errMsgProvider)}s(TC,"resolveGrammar");function RC(t){return t=sg(t,{errMsgProvider:Nn}),oC(t.rules,t.tokenTypes,t.errMsgProvider,t.grammarName)}s(RC,"validateGrammar");var $C="MismatchedTokenException",AC="NoViableAltException",EC="EarlyExitException",_C="NotAllInputParsedException",CC=[$C,AC,EC,_C];Object.freeze(CC);function sc(t){return ft(CC,t.name)}s(sc,"isRecognitionException");var _i,Vf=(_i=class extends Error{constructor(e,r){super(e),this.token=r,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},s(_i,"RecognitionException"),_i),Ci,SC=(Ci=class extends Vf{constructor(e,r,n){super(e,r),this.previousToken=n,this.name=$C}},s(Ci,"MismatchedTokenException"),Ci),Si,tx=(Si=class extends Vf{constructor(e,r,n){super(e,r),this.previousToken=n,this.name=AC}},s(Si,"NoViableAltException"),Si),bi,rx=(bi=class extends Vf{constructor(e,r){super(e,r),this.name=_C}},s(bi,"NotAllInputParsedException"),bi),wi,nx=(wi=class extends Vf{constructor(e,r,n){super(e,r),this.previousToken=n,this.name=EC}},s(wi,"EarlyExitException"),wi),_d={},bC="InRuleRecoveryException",Ii,ax=(Ii=class extends Error{constructor(e){super(e),this.name=bC}},s(Ii,"InRuleRecoveryException"),Ii),Ni,ix=(Ni=class{initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=q(e,"recoveryEnabled")?e.recoveryEnabled:Pr.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=wC)}getTokenToInsert(e){const r=Nc(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return r.isInsertedInRecovery=!0,r}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,r,n,a){const i=this.findReSyncTokenType(),o=this.exportLexerState(),c=[];let l=!1;const u=this.LA(1);let f=this.LA(1);const d=s(()=>{const p=this.LA(0),g=this.errorMessageProvider.buildMismatchTokenMessage({expected:a,actual:u,previous:p,ruleName:this.getCurrRuleFullName()}),m=new SC(g,u,this.LA(0));m.resyncedTokens=nc(c),this.SAVE_ERROR(m)},"generateErrorMessage");for(;!l;)if(this.tokenMatcher(f,a)){d();return}else if(n.call(this)){d(),e.apply(this,r);return}else this.tokenMatcher(f,i)?l=!0:(f=this.SKIP_TOKEN(),this.addToResyncTokens(f,c));this.importLexerState(o)}shouldInRepetitionRecoveryBeTried(e,r,n){return!(n===!1||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,r)))}getFollowsForInRuleRecovery(e,r){const n=this.getCurrentGrammarPath(e,r);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,r){if(this.canRecoverWithSingleTokenInsertion(e,r))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){const n=this.SKIP_TOKEN();return this.consumeToken(),n}throw new ax("sad sad panda")}canPerformInRuleRecovery(e,r){return this.canRecoverWithSingleTokenInsertion(e,r)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,r){if(!this.canTokenTypeBeInsertedInRecovery(e)||Ae(r))return!1;const n=this.LA(1);return Mo(r,i=>this.tokenMatcher(n,i))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){const r=this.getCurrFollowKey(),n=this.getFollowSetFromFollowKey(r);return ft(n,e)}findReSyncTokenType(){const e=this.flattenFollowSet();let r=this.LA(1),n=2;for(;;){const a=Mo(e,i=>yg(r,i));if(a!==void 0)return a;r=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return _d;const e=this.getLastExplicitRuleShortName(),r=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:r,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){const e=this.RULE_STACK,r=this.RULE_OCCURRENCE_STACK;return z(e,(n,a)=>a===0?_d:{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:r[a],inRule:this.shortRuleNameToFullName(e[a-1])})}flattenFollowSet(){const e=z(this.buildFullFollowKeyStack(),r=>this.getFollowSetFromFollowKey(r));return qt(e)}getFollowSetFromFollowKey(e){if(e===_d)return[Yr];const r=e.ruleName+e.idxInCallingRule+d_+e.inRule;return this.resyncFollows[r]}addToResyncTokens(e,r){return this.tokenMatcher(e,Yr)||r.push(e),r}reSyncTo(e){const r=[];let n=this.LA(1);for(;this.tokenMatcher(n,e)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,r);return nc(r)}attemptInRepetitionRecovery(e,r,n,a,i,o,c){}getCurrentGrammarPath(e,r){const n=this.getHumanReadableRuleStack(),a=et(this.RULE_OCCURRENCE_STACK);return{ruleStack:n,occurrenceStack:a,lastTok:e,lastTokOccurrence:r}}getHumanReadableRuleStack(){return z(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}},s(Ni,"Recoverable"),Ni);function wC(t,e,r,n,a,i,o){const c=this.getKeyForAutomaticLookahead(n,a);let l=this.firstAfterRepMap[c];if(l===void 0){const p=this.getCurrRuleFullName(),g=this.getGAstProductions()[p];l=new i(g,a).startWalking(),this.firstAfterRepMap[c]=l}let u=l.token,f=l.occurrence;const d=l.isEndOfRule;this.RULE_STACK.length===1&&d&&u===void 0&&(u=Yr,f=1),!(u===void 0||f===void 0)&&this.shouldInRepetitionRecoveryBeTried(u,f,o)&&this.tryInRepetitionRecovery(t,e,r,u)}s(wC,"attemptInRepetitionRecovery");var sx=4,tn=8,IC=1<<tn,NC=2<<tn,ah=3<<tn,ih=4<<tn,sh=5<<tn,pu=6<<tn;function hu(t,e,r){return r|e|t}s(hu,"getKeyForAutomaticLookahead");var ki,_g=(ki=class{constructor(e){var r;this.maxLookahead=(r=e?.maxLookahead)!==null&&r!==void 0?r:Pr.maxLookahead}validate(e){const r=this.validateNoLeftRecursion(e.rules);if(Ae(r)){const n=this.validateEmptyOrAlternatives(e.rules),a=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),i=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...r,...n,...a,...i]}return r}validateNoLeftRecursion(e){return Lt(e,r=>Ag(r,r,Nn))}validateEmptyOrAlternatives(e){return Lt(e,r=>dC(r,Nn))}validateAmbiguousAlternationAlternatives(e,r){return Lt(e,n=>pC(n,r,Nn))}validateSomeNonEmptyLookaheadPath(e,r){return mC(e,r,Nn)}buildLookaheadForAlternation(e){return Q_(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,tC)}buildLookaheadForOptional(e){return eC(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,Wf(e.prodType),rC)}},s(ki,"LLkLookaheadStrategy"),ki),Pi,ox=(Pi=class{initLooksAhead(e){this.dynamicTokensEnabled=q(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:Pr.dynamicTokensEnabled,this.maxLookahead=q(e,"maxLookahead")?e.maxLookahead:Pr.maxLookahead,this.lookaheadStrategy=q(e,"lookaheadStrategy")?e.lookaheadStrategy:new _g({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){V(e,r=>{this.TRACE_INIT(`${r.name} Rule Lookahead`,()=>{const{alternation:n,repetition:a,option:i,repetitionMandatory:o,repetitionMandatoryWithSeparator:c,repetitionWithSeparator:l}=kC(r);V(n,u=>{const f=u.idx===0?"":u.idx;this.TRACE_INIT(`${Ut(u)}${f}`,()=>{const d=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:u.idx,rule:r,maxLookahead:u.maxLookahead||this.maxLookahead,hasPredicates:u.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),p=hu(this.fullRuleNameToShort[r.name],IC,u.idx);this.setLaFuncCache(p,d)})}),V(a,u=>{this.computeLookaheadFunc(r,u.idx,ah,"Repetition",u.maxLookahead,Ut(u))}),V(i,u=>{this.computeLookaheadFunc(r,u.idx,NC,"Option",u.maxLookahead,Ut(u))}),V(o,u=>{this.computeLookaheadFunc(r,u.idx,ih,"RepetitionMandatory",u.maxLookahead,Ut(u))}),V(c,u=>{this.computeLookaheadFunc(r,u.idx,pu,"RepetitionMandatoryWithSeparator",u.maxLookahead,Ut(u))}),V(l,u=>{this.computeLookaheadFunc(r,u.idx,sh,"RepetitionWithSeparator",u.maxLookahead,Ut(u))})})})}computeLookaheadFunc(e,r,n,a,i,o){this.TRACE_INIT(`${o}${r===0?"":r}`,()=>{const c=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:r,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:a}),l=hu(this.fullRuleNameToShort[e.name],n,r);this.setLaFuncCache(l,c)})}getKeyForAutomaticLookahead(e,r){const n=this.getLastExplicitRuleShortName();return hu(n,e,r)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,r){this.lookAheadFuncsCache.set(e,r)}},s(Pi,"LooksAhead"),Pi),Oi,lx=(Oi=class extends Bo{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}},s(Oi,"DslMethodsCollectorVisitor"),Oi),Gc=new lx;function kC(t){Gc.reset(),t.accept(Gc);const e=Gc.dslMethods;return Gc.reset(),e}s(kC,"collectMethods");function oh(t,e){isNaN(t.startOffset)===!0?(t.startOffset=e.startOffset,t.endOffset=e.endOffset):t.endOffset<e.endOffset&&(t.endOffset=e.endOffset)}s(oh,"setNodeLocationOnlyOffset");function lh(t,e){isNaN(t.startOffset)===!0?(t.startOffset=e.startOffset,t.startColumn=e.startColumn,t.startLine=e.startLine,t.endOffset=e.endOffset,t.endColumn=e.endColumn,t.endLine=e.endLine):t.endOffset<e.endOffset&&(t.endOffset=e.endOffset,t.endColumn=e.endColumn,t.endLine=e.endLine)}s(lh,"setNodeLocationFull");function PC(t,e,r){t.children[r]===void 0?t.children[r]=[e]:t.children[r].push(e)}s(PC,"addTerminalToCst");function OC(t,e,r){t.children[e]===void 0?t.children[e]=[r]:t.children[e].push(r)}s(OC,"addNoneTerminalToCst");var cx="name";function Cg(t,e){Object.defineProperty(t,cx,{enumerable:!1,configurable:!0,writable:!1,value:e})}s(Cg,"defineNameProp");function LC(t,e){const r=$t(t),n=r.length;for(let a=0;a<n;a++){const i=r[a],o=t[i],c=o.length;for(let l=0;l<c;l++){const u=o[l];u.tokenTypeIdx===void 0&&this[u.name](u.children,e)}}}s(LC,"defaultVisit");function DC(t,e){const r=s(function(){},"derivedConstructor");Cg(r,t+"BaseSemantics");const n={visit:s(function(a,i){if(ae(a)&&(a=a[0]),!Nr(a))return this[a.name](a.children,i)},"visit"),validateVisitor:s(function(){const a=xC(this,e);if(!Ae(a)){const i=z(a,o=>o.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
|
|
122
|
+
${i.join(`
|
|
123
|
+
|
|
124
|
+
`).replace(/\n/g,`
|
|
125
|
+
`)}`)}},"validateVisitor")};return r.prototype=n,r.prototype.constructor=r,r._RULE_NAMES=e,r}s(DC,"createBaseSemanticVisitorConstructor");function MC(t,e,r){const n=s(function(){},"derivedConstructor");Cg(n,t+"BaseSemanticsWithDefaults");const a=Object.create(r.prototype);return V(e,i=>{a[i]=LC}),n.prototype=a,n.prototype.constructor=n,n}s(MC,"createBaseVisitorConstructorWithDefaults");var ch;(function(t){t[t.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",t[t.MISSING_METHOD=1]="MISSING_METHOD"})(ch||(ch={}));function xC(t,e){return FC(t,e)}s(xC,"validateVisitor");function FC(t,e){const r=Ft(e,a=>Mr(t[a])===!1),n=z(r,a=>({msg:`Missing visitor method: <${a}> on ${t.constructor.name} CST Visitor.`,type:ch.MISSING_METHOD,methodName:a}));return wc(n)}s(FC,"validateMissingCstMethods");var Li,ux=(Li=class{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=q(e,"nodeLocationTracking")?e.nodeLocationTracking:Pr.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=qe,this.cstFinallyStateUpdate=qe,this.cstPostTerminal=qe,this.cstPostNonTerminal=qe,this.cstPostRule=qe;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=lh,this.setNodeLocationFromNode=lh,this.cstPostRule=qe,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=qe,this.setNodeLocationFromNode=qe,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=oh,this.setNodeLocationFromNode=oh,this.cstPostRule=qe,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=qe,this.setNodeLocationFromNode=qe,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=qe,this.setNodeLocationFromNode=qe,this.cstPostRule=qe,this.setInitialNodeLocation=qe;else throw Error(`Invalid <nodeLocationTracking> config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){const r=this.LA(1);e.location={startOffset:r.startOffset,startLine:r.startLine,startColumn:r.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){const r={name:e,children:Object.create(null)};this.setInitialNodeLocation(r),this.CST_STACK.push(r)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){const r=this.LA(0),n=e.location;n.startOffset<=r.startOffset?(n.endOffset=r.endOffset,n.endLine=r.endLine,n.endColumn=r.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)}cstPostRuleOnlyOffset(e){const r=this.LA(0),n=e.location;n.startOffset<=r.startOffset?n.endOffset=r.endOffset:n.startOffset=NaN}cstPostTerminal(e,r){const n=this.CST_STACK[this.CST_STACK.length-1];PC(n,r,e),this.setNodeLocationFromToken(n.location,r)}cstPostNonTerminal(e,r){const n=this.CST_STACK[this.CST_STACK.length-1];OC(n,r,e),this.setNodeLocationFromNode(n.location,e.location)}getBaseCstVisitorConstructor(){if(Nr(this.baseCstVisitorConstructor)){const e=DC(this.className,$t(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(Nr(this.baseCstVisitorWithDefaultsConstructor)){const e=MC(this.className,$t(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){const e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}},s(Li,"TreeBuilder"),Li),Di,fx=(Di=class{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Xu}LA(e){const r=this.currIdx+e;return r<0||this.tokVectorLength<=r?Xu:this.tokVector[r]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}},s(Di,"LexerAdapter"),Di),Mi,dx=(Mi=class{ACTION(e){return e.call(this)}consume(e,r,n){return this.consumeInternal(r,e,n)}subrule(e,r,n){return this.subruleInternal(r,e,n)}option(e,r){return this.optionInternal(r,e)}or(e,r){return this.orInternal(r,e)}many(e,r){return this.manyInternal(e,r)}atLeastOne(e,r){return this.atLeastOneInternal(e,r)}CONSUME(e,r){return this.consumeInternal(e,0,r)}CONSUME1(e,r){return this.consumeInternal(e,1,r)}CONSUME2(e,r){return this.consumeInternal(e,2,r)}CONSUME3(e,r){return this.consumeInternal(e,3,r)}CONSUME4(e,r){return this.consumeInternal(e,4,r)}CONSUME5(e,r){return this.consumeInternal(e,5,r)}CONSUME6(e,r){return this.consumeInternal(e,6,r)}CONSUME7(e,r){return this.consumeInternal(e,7,r)}CONSUME8(e,r){return this.consumeInternal(e,8,r)}CONSUME9(e,r){return this.consumeInternal(e,9,r)}SUBRULE(e,r){return this.subruleInternal(e,0,r)}SUBRULE1(e,r){return this.subruleInternal(e,1,r)}SUBRULE2(e,r){return this.subruleInternal(e,2,r)}SUBRULE3(e,r){return this.subruleInternal(e,3,r)}SUBRULE4(e,r){return this.subruleInternal(e,4,r)}SUBRULE5(e,r){return this.subruleInternal(e,5,r)}SUBRULE6(e,r){return this.subruleInternal(e,6,r)}SUBRULE7(e,r){return this.subruleInternal(e,7,r)}SUBRULE8(e,r){return this.subruleInternal(e,8,r)}SUBRULE9(e,r){return this.subruleInternal(e,9,r)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,r,n=Ju){if(ft(this.definedRulesNames,e)){const o={message:Nn.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:ct.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(o)}this.definedRulesNames.push(e);const a=this.defineRule(e,r,n);return this[e]=a,a}OVERRIDE_RULE(e,r,n=Ju){const a=fC(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(a);const i=this.defineRule(e,r,n);return this[e]=i,i}BACKTRACK(e,r){return function(){this.isBackTrackingStack.push(1);const n=this.saveRecogState();try{return e.apply(this,r),!0}catch(a){if(sc(a))return!1;throw a}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return s_(We(this.gastProductionsCache))}},s(Mi,"RecognizerApi"),Mi),xi,px=(xi=class{initRecognizerEngine(e,r){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=ic,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},q(r,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
|
|
126
|
+
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
|
|
127
|
+
For Further details.`);if(ae(e)){if(Ae(e))throw Error(`A Token Vocabulary cannot be empty.
|
|
128
|
+
Note that the first argument for the parser constructor
|
|
129
|
+
is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
|
|
130
|
+
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
|
|
131
|
+
For Further details.`)}if(ae(e))this.tokensMap=Et(e,(i,o)=>(i[o.name]=o,i),{});else if(q(e,"modes")&&Wt(qt(We(e.modes)),Y_)){const i=qt(We(e.modes)),o=og(i);this.tokensMap=Et(o,(c,l)=>(c[l.name]=l,c),{})}else if(Mt(e))this.tokensMap=et(e);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=Yr;const n=q(e,"modes")?qt(We(e.modes)):We(e),a=Wt(n,i=>Ae(i.categoryMatches));this.tokenMatcher=a?ic:qo,Wo(We(this.tokensMap))}defineRule(e,r,n){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'
|
|
132
|
+
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);const a=q(n,"resyncEnabled")?n.resyncEnabled:Ju.resyncEnabled,i=q(n,"recoveryValueFunc")?n.recoveryValueFunc:Ju.recoveryValueFunc,o=this.ruleShortNameIdx<<sx+tn;this.ruleShortNameIdx++,this.shortRuleNameToFull[o]=e,this.fullRuleNameToShort[e]=o;let c;return this.outputCst===!0?c=s(function(...f){try{this.ruleInvocationStateUpdate(o,e,this.subruleIdx),r.apply(this,f);const d=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(d),d}catch(d){return this.invokeRuleCatch(d,a,i)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"):c=s(function(...f){try{return this.ruleInvocationStateUpdate(o,e,this.subruleIdx),r.apply(this,f)}catch(d){return this.invokeRuleCatch(d,a,i)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),Object.assign(c,{ruleName:e,originalGrammarAction:r})}invokeRuleCatch(e,r,n){const a=this.RULE_STACK.length===1,i=r&&!this.isBackTracking()&&this.recoveryEnabled;if(sc(e)){const o=e;if(i){const c=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(c))if(o.resyncedTokens=this.reSyncTo(c),this.outputCst){const l=this.CST_STACK[this.CST_STACK.length-1];return l.recoveredNode=!0,l}else return n(e);else{if(this.outputCst){const l=this.CST_STACK[this.CST_STACK.length-1];l.recoveredNode=!0,o.partialCstResult=l}throw o}}else{if(a)return this.moveToTerminatedState(),n(e);throw o}}else throw e}optionInternal(e,r){const n=this.getKeyForAutomaticLookahead(NC,r);return this.optionInternalLogic(e,r,n)}optionInternalLogic(e,r,n){let a=this.getLaFuncFromCache(n),i;if(typeof e!="function"){i=e.DEF;const o=e.GATE;if(o!==void 0){const c=a;a=s(()=>o.call(this)&&c.call(this),"lookAheadFunc")}}else i=e;if(a.call(this)===!0)return i.call(this)}atLeastOneInternal(e,r){const n=this.getKeyForAutomaticLookahead(ih,e);return this.atLeastOneInternalLogic(e,r,n)}atLeastOneInternalLogic(e,r,n){let a=this.getLaFuncFromCache(n),i;if(typeof r!="function"){i=r.DEF;const o=r.GATE;if(o!==void 0){const c=a;a=s(()=>o.call(this)&&c.call(this),"lookAheadFunc")}}else i=r;if(a.call(this)===!0){let o=this.doSingleRepetition(i);for(;a.call(this)===!0&&o===!0;)o=this.doSingleRepetition(i)}else throw this.raiseEarlyExitException(e,Le.REPETITION_MANDATORY,r.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,r],a,ih,e,JM)}atLeastOneSepFirstInternal(e,r){const n=this.getKeyForAutomaticLookahead(pu,e);this.atLeastOneSepFirstInternalLogic(e,r,n)}atLeastOneSepFirstInternalLogic(e,r,n){const a=r.DEF,i=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){a.call(this);const c=s(()=>this.tokenMatcher(this.LA(1),i),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),i)===!0;)this.CONSUME(i),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,c,a,gv],c,pu,e,gv)}else throw this.raiseEarlyExitException(e,Le.REPETITION_MANDATORY_WITH_SEPARATOR,r.ERR_MSG)}manyInternal(e,r){const n=this.getKeyForAutomaticLookahead(ah,e);return this.manyInternalLogic(e,r,n)}manyInternalLogic(e,r,n){let a=this.getLaFuncFromCache(n),i;if(typeof r!="function"){i=r.DEF;const c=r.GATE;if(c!==void 0){const l=a;a=s(()=>c.call(this)&&l.call(this),"lookaheadFunction")}}else i=r;let o=!0;for(;a.call(this)===!0&&o===!0;)o=this.doSingleRepetition(i);this.attemptInRepetitionRecovery(this.manyInternal,[e,r],a,ah,e,XM,o)}manySepFirstInternal(e,r){const n=this.getKeyForAutomaticLookahead(sh,e);this.manySepFirstInternalLogic(e,r,n)}manySepFirstInternalLogic(e,r,n){const a=r.DEF,i=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){a.call(this);const c=s(()=>this.tokenMatcher(this.LA(1),i),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),i)===!0;)this.CONSUME(i),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,c,a,mv],c,sh,e,mv)}}repetitionSepSecondInternal(e,r,n,a,i){for(;n();)this.CONSUME(r),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,n,a,i],n,pu,e,i)}doSingleRepetition(e){const r=this.getLexerPosition();return e.call(this),this.getLexerPosition()>r}orInternal(e,r){const n=this.getKeyForAutomaticLookahead(IC,r),a=ae(e)?e:e.DEF,o=this.getLaFuncFromCache(n).call(this,a);if(o!==void 0)return a[o].ALT.call(this);this.raiseNoAltException(r,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){const e=this.LA(1),r=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new rx(r,e))}}subruleInternal(e,r,n){let a;try{const i=n!==void 0?n.ARGS:void 0;return this.subruleIdx=r,a=e.apply(this,i),this.cstPostNonTerminal(a,n!==void 0&&n.LABEL!==void 0?n.LABEL:e.ruleName),a}catch(i){throw this.subruleInternalError(i,n,e.ruleName)}}subruleInternalError(e,r,n){throw sc(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,r!==void 0&&r.LABEL!==void 0?r.LABEL:n),delete e.partialCstResult),e}consumeInternal(e,r,n){let a;try{const i=this.LA(1);this.tokenMatcher(i,e)===!0?(this.consumeToken(),a=i):this.consumeInternalError(e,i,n)}catch(i){a=this.consumeInternalRecovery(e,r,i)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:e.name,a),a}consumeInternalError(e,r,n){let a;const i=this.LA(0);throw n!==void 0&&n.ERR_MSG?a=n.ERR_MSG:a=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:r,previous:i,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new SC(a,r,i))}consumeInternalRecovery(e,r,n){if(this.recoveryEnabled&&n.name==="MismatchedTokenException"&&!this.isBackTracking()){const a=this.getFollowsForInRuleRecovery(e,r);try{return this.tryInRuleRecovery(e,a)}catch(i){throw i.name===bC?n:i}}else throw n}saveRecogState(){const e=this.errors,r=et(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:r,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,r,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(r)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){const e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),Yr)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},s(xi,"RecognizerEngine"),xi),Fi,hx=(Fi=class{initErrorHandler(e){this._errors=[],this.errorMessageProvider=q(e,"errorMessageProvider")?e.errorMessageProvider:Pr.errorMessageProvider}SAVE_ERROR(e){if(sc(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:et(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return et(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,r,n){const a=this.getCurrRuleFullName(),i=this.getGAstProductions()[a],c=Pc(e,i,r,this.maxLookahead)[0],l=[];for(let f=1;f<=this.maxLookahead;f++)l.push(this.LA(f));const u=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:c,actual:l,previous:this.LA(0),customUserDescription:n,ruleName:a});throw this.SAVE_ERROR(new nx(u,this.LA(1),this.LA(0)))}raiseNoAltException(e,r){const n=this.getCurrRuleFullName(),a=this.getGAstProductions()[n],i=kc(e,a,this.maxLookahead),o=[];for(let u=1;u<=this.maxLookahead;u++)o.push(this.LA(u));const c=this.LA(0),l=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:i,actual:o,previous:c,customUserDescription:r,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new tx(l,this.LA(1),c))}},s(Fi,"ErrorHandler"),Fi),Gi,mx=(Gi=class{initContentAssist(){}computeContentAssist(e,r){const n=this.gastProductionsCache[e];if(Nr(n))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return vg([n],r,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){const r=Ht(e.ruleStack),a=this.getGAstProductions()[r];return new YM(a,e).startWalking()}},s(Gi,"ContentAssist"),Gi),Hf={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(Hf);var yv=!0,vv=Math.pow(2,tn)-1,GC=ja({name:"RECORDING_PHASE_TOKEN",pattern:st.NA});Wo([GC]);var jC=Nc(GC,`This IToken indicates the Parser is in Recording Phase
|
|
133
|
+
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(jC);var gx={name:`This CSTNode indicates the Parser is in Recording Phase
|
|
134
|
+
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},ji,yx=(ji=class{initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){const r=e>0?e:"";this[`CONSUME${r}`]=function(n,a){return this.consumeInternalRecord(n,e,a)},this[`SUBRULE${r}`]=function(n,a){return this.subruleInternalRecord(n,e,a)},this[`OPTION${r}`]=function(n){return this.optionInternalRecord(n,e)},this[`OR${r}`]=function(n){return this.orInternalRecord(n,e)},this[`MANY${r}`]=function(n){this.manyInternalRecord(e,n)},this[`MANY_SEP${r}`]=function(n){this.manySepFirstInternalRecord(e,n)},this[`AT_LEAST_ONE${r}`]=function(n){this.atLeastOneInternalRecord(e,n)},this[`AT_LEAST_ONE_SEP${r}`]=function(n){this.atLeastOneSepFirstInternalRecord(e,n)}}this.consume=function(e,r,n){return this.consumeInternalRecord(r,e,n)},this.subrule=function(e,r,n){return this.subruleInternalRecord(r,e,n)},this.option=function(e,r){return this.optionInternalRecord(r,e)},this.or=function(e,r){return this.orInternalRecord(r,e)},this.many=function(e,r){this.manyInternalRecord(e,r)},this.atLeastOne=function(e,r){this.atLeastOneInternalRecord(e,r)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{const e=this;for(let r=0;r<10;r++){const n=r>0?r:"";delete e[`CONSUME${n}`],delete e[`SUBRULE${n}`],delete e[`OPTION${n}`],delete e[`OR${n}`],delete e[`MANY${n}`],delete e[`MANY_SEP${n}`],delete e[`AT_LEAST_ONE${n}`],delete e[`AT_LEAST_ONE_SEP${n}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,r){return()=>!0}LA_RECORD(e){return Xu}topLevelRuleRecord(e,r){try{const n=new zo({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),r.call(this),this.recordingProdStack.pop(),n}catch(n){if(n.KNOWN_RECORDER_ERROR!==!0)try{n.message=n.message+`
|
|
135
|
+
This error was thrown during the "grammar recording phase" For more info see:
|
|
136
|
+
https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw n}throw n}}optionInternalRecord(e,r){return _a.call(this,Qe,e,r)}atLeastOneInternalRecord(e,r){_a.call(this,_t,r,e)}atLeastOneSepFirstInternalRecord(e,r){_a.call(this,Ct,r,e,yv)}manyInternalRecord(e,r){_a.call(this,xe,r,e)}manySepFirstInternalRecord(e,r){_a.call(this,yt,r,e,yv)}orInternalRecord(e,r){return UC.call(this,e,r)}subruleInternalRecord(e,r,n){if(oc(r),!e||q(e,"ruleName")===!1){const c=new Error(`<SUBRULE${uh(r)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>
|
|
137
|
+
inside top level rule: <${this.recordingProdStack[0].name}>`);throw c.KNOWN_RECORDER_ERROR=!0,c}const a=Fn(this.recordingProdStack),i=e.ruleName,o=new lt({idx:r,nonTerminalName:i,label:n?.LABEL,referencedRule:void 0});return a.definition.push(o),this.outputCst?gx:Hf}consumeInternalRecord(e,r,n){if(oc(r),!mg(e)){const o=new Error(`<CONSUME${uh(r)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>
|
|
138
|
+
inside top level rule: <${this.recordingProdStack[0].name}>`);throw o.KNOWN_RECORDER_ERROR=!0,o}const a=Fn(this.recordingProdStack),i=new be({idx:r,terminalType:e,label:n?.LABEL});return a.definition.push(i),jC}},s(ji,"GastRecorder"),ji);function _a(t,e,r,n=!1){oc(r);const a=Fn(this.recordingProdStack),i=Mr(e)?e:e.DEF,o=new t({definition:[],idx:r});return n&&(o.separator=e.SEP),q(e,"MAX_LOOKAHEAD")&&(o.maxLookahead=e.MAX_LOOKAHEAD),this.recordingProdStack.push(o),i.call(this),a.definition.push(o),this.recordingProdStack.pop(),Hf}s(_a,"recordProd");function UC(t,e){oc(e);const r=Fn(this.recordingProdStack),n=ae(t)===!1,a=n===!1?t:t.DEF,i=new vt({definition:[],idx:e,ignoreAmbiguities:n&&t.IGNORE_AMBIGUITIES===!0});q(t,"MAX_LOOKAHEAD")&&(i.maxLookahead=t.MAX_LOOKAHEAD);const o=t_(a,c=>Mr(c.GATE));return i.hasPredicates=o,r.definition.push(i),V(a,c=>{const l=new gt({definition:[]});i.definition.push(l),q(c,"IGNORE_AMBIGUITIES")?l.ignoreAmbiguities=c.IGNORE_AMBIGUITIES:q(c,"GATE")&&(l.ignoreAmbiguities=!0),this.recordingProdStack.push(l),c.ALT.call(this),this.recordingProdStack.pop()}),Hf}s(UC,"recordOrProd");function uh(t){return t===0?"":`${t}`}s(uh,"getIdxSuffix");function oc(t){if(t<0||t>vv){const e=new Error(`Invalid DSL Method idx value: <${t}>
|
|
139
|
+
Idx value must be a none negative value smaller than ${vv+1}`);throw e.KNOWN_RECORDER_ERROR=!0,e}}s(oc,"assertMethodIdxIsValid");var Ui,vx=(Ui=class{initPerformanceTracer(e){if(q(e,"traceInitPerf")){const r=e.traceInitPerf,n=typeof r=="number";this.traceInitMaxIdent=n?r:1/0,this.traceInitPerf=n?r>0:r}else this.traceInitMaxIdent=0,this.traceInitPerf=Pr.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,r){if(this.traceInitPerf===!0){this.traceInitIndent++;const n=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${n}--> <${e}>`);const{time:a,value:i}=cg(r),o=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&o(`${n}<-- <${e}> time: ${a}ms`),this.traceInitIndent--,i}else return r()}},s(Ui,"PerformanceTracer"),Ui);function zC(t,e){e.forEach(r=>{const n=r.prototype;Object.getOwnPropertyNames(n).forEach(a=>{if(a==="constructor")return;const i=Object.getOwnPropertyDescriptor(n,a);i&&(i.get||i.set)?Object.defineProperty(t.prototype,a,i):t.prototype[a]=r.prototype[a]})})}s(zC,"applyMixins");var Xu=Nc(Yr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Xu);var Pr=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:xa,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Ju=Object.freeze({recoveryValueFunc:s(()=>{},"recoveryValueFunc"),resyncEnabled:!0}),ct;(function(t){t[t.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",t[t.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",t[t.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",t[t.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",t[t.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",t[t.LEFT_RECURSION=5]="LEFT_RECURSION",t[t.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",t[t.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",t[t.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",t[t.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",t[t.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",t[t.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",t[t.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",t[t.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(ct||(ct={}));function fh(t=void 0){return function(){return t}}s(fh,"EMPTY_ALT");var Dn,Sg=(Dn=class{static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let e;this.selfAnalysisDone=!0;const r=this.className;this.TRACE_INIT("toFastProps",()=>{ug(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),V(this.definedRulesNames,a=>{const o=this[a].originalGrammarAction;let c;this.TRACE_INIT(`${a} Rule`,()=>{c=this.topLevelRuleRecord(a,o)}),this.gastProductionsCache[a]=c})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=TC({rules:We(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(Ae(n)&&this.skipValidations===!1){const a=RC({rules:We(this.gastProductionsCache),tokenTypes:We(this.tokensMap),errMsgProvider:Nn,grammarName:r}),i=sC({lookaheadStrategy:this.lookaheadStrategy,rules:We(this.gastProductionsCache),tokenTypes:We(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(a,i)}}),Ae(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{const a=p_(We(this.gastProductionsCache));this.resyncFollows=a}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var a,i;(i=(a=this.lookaheadStrategy).initialize)===null||i===void 0||i.call(a,{rules:We(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(We(this.gastProductionsCache))})),!Dn.DEFER_DEFINITION_ERRORS_HANDLING&&!Ae(this.definitionErrors))throw e=z(this.definitionErrors,a=>a.message),new Error(`Parser Definition Errors detected:
|
|
140
|
+
${e.join(`
|
|
141
|
+
-------------------------------
|
|
142
|
+
`)}`)})}constructor(e,r){this.definitionErrors=[],this.selfAnalysisDone=!1;const n=this;if(n.initErrorHandler(r),n.initLexerAdapter(),n.initLooksAhead(r),n.initRecognizerEngine(e,r),n.initRecoverable(r),n.initTreeBuilder(r),n.initContentAssist(),n.initGastRecorder(r),n.initPerformanceTracer(r),q(r,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
|
|
143
|
+
Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
|
|
144
|
+
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
|
|
145
|
+
For further details.`);this.skipValidations=q(r,"skipValidations")?r.skipValidations:Pr.skipValidations}},s(Dn,"Parser"),Dn);Sg.DEFER_DEFINITION_ERRORS_HANDLING=!1;zC(Sg,[ix,ox,ux,fx,px,dx,hx,mx,yx,vx]);var zi,Tx=(zi=class extends Sg{constructor(e,r=Pr){const n=et(r);n.outputCst=!1,super(e,n)}},s(zi,"EmbeddedActionsParser"),zi);function BC(t,e){for(var r=-1,n=t==null?0:t.length,a=Array(n);++r<n;)a[r]=e(t[r],r,t);return a}s(BC,"arrayMap");var KC=BC;function qC(){this.__data__=[],this.size=0}s(qC,"listCacheClear");var Rx=qC;function WC(t,e){return t===e||t!==t&&e!==e}s(WC,"eq");var VC=WC;function HC(t,e){for(var r=t.length;r--;)if(VC(t[r][0],e))return r;return-1}s(HC,"assocIndexOf");var Yf=HC,$x=Array.prototype,Ax=$x.splice;function YC(t){var e=this.__data__,r=Yf(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Ax.call(e,r,1),--this.size,!0}s(YC,"listCacheDelete");var Ex=YC;function XC(t){var e=this.__data__,r=Yf(e,t);return r<0?void 0:e[r][1]}s(XC,"listCacheGet");var _x=XC;function JC(t){return Yf(this.__data__,t)>-1}s(JC,"listCacheHas");var Cx=JC;function ZC(t,e){var r=this.__data__,n=Yf(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}s(ZC,"listCacheSet");var Sx=ZC;function ta(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s(ta,"ListCache");ta.prototype.clear=Rx;ta.prototype.delete=Ex;ta.prototype.get=_x;ta.prototype.has=Cx;ta.prototype.set=Sx;var Xf=ta;function QC(){this.__data__=new Xf,this.size=0}s(QC,"stackClear");var bx=QC;function eS(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}s(eS,"stackDelete");var wx=eS;function tS(t){return this.__data__.get(t)}s(tS,"stackGet");var Ix=tS;function rS(t){return this.__data__.has(t)}s(rS,"stackHas");var Nx=rS,kx=typeof global=="object"&&global&&global.Object===Object&&global,nS=kx,Px=typeof self=="object"&&self&&self.Object===Object&&self,Ox=nS||Px||Function("return this")(),xr=Ox,Lx=xr.Symbol,ur=Lx,aS=Object.prototype,Dx=aS.hasOwnProperty,Mx=aS.toString,ml=ur?ur.toStringTag:void 0;function iS(t){var e=Dx.call(t,ml),r=t[ml];try{t[ml]=void 0;var n=!0}catch{}var a=Mx.call(t);return n&&(e?t[ml]=r:delete t[ml]),a}s(iS,"getRawTag");var xx=iS,Fx=Object.prototype,Gx=Fx.toString;function sS(t){return Gx.call(t)}s(sS,"objectToString");var jx=sS,Ux="[object Null]",zx="[object Undefined]",Tv=ur?ur.toStringTag:void 0;function oS(t){return t==null?t===void 0?zx:Ux:Tv&&Tv in Object(t)?xx(t):jx(t)}s(oS,"baseGetTag");var Vo=oS;function lS(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}s(lS,"isObject");var bg=lS,Bx="[object AsyncFunction]",Kx="[object Function]",qx="[object GeneratorFunction]",Wx="[object Proxy]";function cS(t){if(!bg(t))return!1;var e=Vo(t);return e==Kx||e==qx||e==Bx||e==Wx}s(cS,"isFunction");var uS=cS,Vx=xr["__core-js_shared__"],Cd=Vx,Rv=(function(){var t=/[^.]+$/.exec(Cd&&Cd.keys&&Cd.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function fS(t){return!!Rv&&Rv in t}s(fS,"isMasked");var Hx=fS,Yx=Function.prototype,Xx=Yx.toString;function dS(t){if(t!=null){try{return Xx.call(t)}catch{}try{return t+""}catch{}}return""}s(dS,"toSource");var ra=dS,Jx=/[\\^$.*+?()[\]{}|]/g,Zx=/^\[object .+?Constructor\]$/,Qx=Function.prototype,e1=Object.prototype,t1=Qx.toString,r1=e1.hasOwnProperty,n1=RegExp("^"+t1.call(r1).replace(Jx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pS(t){if(!bg(t)||Hx(t))return!1;var e=uS(t)?n1:Zx;return e.test(ra(t))}s(pS,"baseIsNative");var a1=pS;function hS(t,e){return t?.[e]}s(hS,"getValue");var i1=hS;function mS(t,e){var r=i1(t,e);return a1(r)?r:void 0}s(mS,"getNative");var Ho=mS,s1=Ho(xr,"Map"),lc=s1,o1=Ho(Object,"create"),cc=o1;function gS(){this.__data__=cc?cc(null):{},this.size=0}s(gS,"hashClear");var l1=gS;function yS(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}s(yS,"hashDelete");var c1=yS,u1="__lodash_hash_undefined__",f1=Object.prototype,d1=f1.hasOwnProperty;function vS(t){var e=this.__data__;if(cc){var r=e[t];return r===u1?void 0:r}return d1.call(e,t)?e[t]:void 0}s(vS,"hashGet");var p1=vS,h1=Object.prototype,m1=h1.hasOwnProperty;function TS(t){var e=this.__data__;return cc?e[t]!==void 0:m1.call(e,t)}s(TS,"hashHas");var g1=TS,y1="__lodash_hash_undefined__";function RS(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=cc&&e===void 0?y1:e,this}s(RS,"hashSet");var v1=RS;function na(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s(na,"Hash");na.prototype.clear=l1;na.prototype.delete=c1;na.prototype.get=p1;na.prototype.has=g1;na.prototype.set=v1;var $v=na;function $S(){this.size=0,this.__data__={hash:new $v,map:new(lc||Xf),string:new $v}}s($S,"mapCacheClear");var T1=$S;function AS(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}s(AS,"isKeyable");var R1=AS;function ES(t,e){var r=t.__data__;return R1(e)?r[typeof e=="string"?"string":"hash"]:r.map}s(ES,"getMapData");var Jf=ES;function _S(t){var e=Jf(this,t).delete(t);return this.size-=e?1:0,e}s(_S,"mapCacheDelete");var $1=_S;function CS(t){return Jf(this,t).get(t)}s(CS,"mapCacheGet");var A1=CS;function SS(t){return Jf(this,t).has(t)}s(SS,"mapCacheHas");var E1=SS;function bS(t,e){var r=Jf(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}s(bS,"mapCacheSet");var _1=bS;function aa(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s(aa,"MapCache");aa.prototype.clear=T1;aa.prototype.delete=$1;aa.prototype.get=A1;aa.prototype.has=E1;aa.prototype.set=_1;var Zf=aa,C1=200;function wS(t,e){var r=this.__data__;if(r instanceof Xf){var n=r.__data__;if(!lc||n.length<C1-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Zf(n)}return r.set(t,e),this.size=r.size,this}s(wS,"stackSet");var S1=wS;function ia(t){var e=this.__data__=new Xf(t);this.size=e.size}s(ia,"Stack");ia.prototype.clear=bx;ia.prototype.delete=wx;ia.prototype.get=Ix;ia.prototype.has=Nx;ia.prototype.set=S1;var mu=ia,b1="__lodash_hash_undefined__";function IS(t){return this.__data__.set(t,b1),this}s(IS,"setCacheAdd");var w1=IS;function NS(t){return this.__data__.has(t)}s(NS,"setCacheHas");var I1=NS;function uc(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Zf;++e<r;)this.add(t[e])}s(uc,"SetCache");uc.prototype.add=uc.prototype.push=w1;uc.prototype.has=I1;var kS=uc;function PS(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}s(PS,"arraySome");var N1=PS;function OS(t,e){return t.has(e)}s(OS,"cacheHas");var LS=OS,k1=1,P1=2;function DS(t,e,r,n,a,i){var o=r&k1,c=t.length,l=e.length;if(c!=l&&!(o&&l>c))return!1;var u=i.get(t),f=i.get(e);if(u&&f)return u==e&&f==t;var d=-1,p=!0,g=r&P1?new kS:void 0;for(i.set(t,e),i.set(e,t);++d<c;){var m=t[d],T=e[d];if(n)var _=o?n(T,m,d,e,t,i):n(m,T,d,t,e,i);if(_!==void 0){if(_)continue;p=!1;break}if(g){if(!N1(e,function(v,w){if(!LS(g,w)&&(m===v||a(m,v,r,n,i)))return g.push(w)})){p=!1;break}}else if(!(m===T||a(m,T,r,n,i))){p=!1;break}}return i.delete(t),i.delete(e),p}s(DS,"equalArrays");var MS=DS,O1=xr.Uint8Array,Av=O1;function xS(t){var e=-1,r=Array(t.size);return t.forEach(function(n,a){r[++e]=[a,n]}),r}s(xS,"mapToArray");var L1=xS;function FS(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}s(FS,"setToArray");var wg=FS,D1=1,M1=2,x1="[object Boolean]",F1="[object Date]",G1="[object Error]",j1="[object Map]",U1="[object Number]",z1="[object RegExp]",B1="[object Set]",K1="[object String]",q1="[object Symbol]",W1="[object ArrayBuffer]",V1="[object DataView]",Ev=ur?ur.prototype:void 0,Sd=Ev?Ev.valueOf:void 0;function GS(t,e,r,n,a,i,o){switch(r){case V1:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case W1:return!(t.byteLength!=e.byteLength||!i(new Av(t),new Av(e)));case x1:case F1:case U1:return VC(+t,+e);case G1:return t.name==e.name&&t.message==e.message;case z1:case K1:return t==e+"";case j1:var c=L1;case B1:var l=n&D1;if(c||(c=wg),t.size!=e.size&&!l)return!1;var u=o.get(t);if(u)return u==e;n|=M1,o.set(t,e);var f=MS(c(t),c(e),n,a,i,o);return o.delete(t),f;case q1:if(Sd)return Sd.call(t)==Sd.call(e)}return!1}s(GS,"equalByTag");var H1=GS;function jS(t,e){for(var r=-1,n=e.length,a=t.length;++r<n;)t[a+r]=e[r];return t}s(jS,"arrayPush");var US=jS,Y1=Array.isArray,ut=Y1;function zS(t,e,r){var n=e(t);return ut(t)?n:US(n,r(t))}s(zS,"baseGetAllKeys");var X1=zS;function BS(t,e){for(var r=-1,n=t==null?0:t.length,a=0,i=[];++r<n;){var o=t[r];e(o,r,t)&&(i[a++]=o)}return i}s(BS,"arrayFilter");var KS=BS;function qS(){return[]}s(qS,"stubArray");var J1=qS,Z1=Object.prototype,Q1=Z1.propertyIsEnumerable,_v=Object.getOwnPropertySymbols,eF=_v?function(t){return t==null?[]:(t=Object(t),KS(_v(t),function(e){return Q1.call(t,e)}))}:J1,tF=eF;function WS(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}s(WS,"baseTimes");var rF=WS;function VS(t){return t!=null&&typeof t=="object"}s(VS,"isObjectLike");var xo=VS,nF="[object Arguments]";function HS(t){return xo(t)&&Vo(t)==nF}s(HS,"baseIsArguments");var Cv=HS,YS=Object.prototype,aF=YS.hasOwnProperty,iF=YS.propertyIsEnumerable,sF=Cv((function(){return arguments})())?Cv:function(t){return xo(t)&&aF.call(t,"callee")&&!iF.call(t,"callee")},Qf=sF;function XS(){return!1}s(XS,"stubFalse");var oF=XS,JS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sv=JS&&typeof module=="object"&&module&&!module.nodeType&&module,lF=Sv&&Sv.exports===JS,bv=lF?xr.Buffer:void 0,cF=bv?bv.isBuffer:void 0,uF=cF||oF,Zu=uF,fF=9007199254740991,dF=/^(?:0|[1-9]\d*)$/;function ZS(t,e){var r=typeof t;return e=e??fF,!!e&&(r=="number"||r!="symbol"&&dF.test(t))&&t>-1&&t%1==0&&t<e}s(ZS,"isIndex");var QS=ZS,pF=9007199254740991;function eb(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=pF}s(eb,"isLength");var Ig=eb,hF="[object Arguments]",mF="[object Array]",gF="[object Boolean]",yF="[object Date]",vF="[object Error]",TF="[object Function]",RF="[object Map]",$F="[object Number]",AF="[object Object]",EF="[object RegExp]",_F="[object Set]",CF="[object String]",SF="[object WeakMap]",bF="[object ArrayBuffer]",wF="[object DataView]",IF="[object Float32Array]",NF="[object Float64Array]",kF="[object Int8Array]",PF="[object Int16Array]",OF="[object Int32Array]",LF="[object Uint8Array]",DF="[object Uint8ClampedArray]",MF="[object Uint16Array]",xF="[object Uint32Array]",Se={};Se[IF]=Se[NF]=Se[kF]=Se[PF]=Se[OF]=Se[LF]=Se[DF]=Se[MF]=Se[xF]=!0;Se[hF]=Se[mF]=Se[bF]=Se[gF]=Se[wF]=Se[yF]=Se[vF]=Se[TF]=Se[RF]=Se[$F]=Se[AF]=Se[EF]=Se[_F]=Se[CF]=Se[SF]=!1;function tb(t){return xo(t)&&Ig(t.length)&&!!Se[Vo(t)]}s(tb,"baseIsTypedArray");var FF=tb;function rb(t){return function(e){return t(e)}}s(rb,"baseUnary");var GF=rb,nb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Hl=nb&&typeof module=="object"&&module&&!module.nodeType&&module,jF=Hl&&Hl.exports===nb,bd=jF&&nS.process,UF=(function(){try{var t=Hl&&Hl.require&&Hl.require("util").types;return t||bd&&bd.binding&&bd.binding("util")}catch{}})(),wv=UF,Iv=wv&&wv.isTypedArray,zF=Iv?GF(Iv):FF,Ng=zF,BF=Object.prototype,KF=BF.hasOwnProperty;function ab(t,e){var r=ut(t),n=!r&&Qf(t),a=!r&&!n&&Zu(t),i=!r&&!n&&!a&&Ng(t),o=r||n||a||i,c=o?rF(t.length,String):[],l=c.length;for(var u in t)(e||KF.call(t,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||QS(u,l)))&&c.push(u);return c}s(ab,"arrayLikeKeys");var qF=ab,WF=Object.prototype;function ib(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||WF;return t===r}s(ib,"isPrototype");var sb=ib;function ob(t,e){return function(r){return t(e(r))}}s(ob,"overArg");var VF=ob,HF=VF(Object.keys,Object),YF=HF,XF=Object.prototype,JF=XF.hasOwnProperty;function lb(t){if(!sb(t))return YF(t);var e=[];for(var r in Object(t))JF.call(t,r)&&r!="constructor"&&e.push(r);return e}s(lb,"baseKeys");var cb=lb;function ub(t){return t!=null&&Ig(t.length)&&!uS(t)}s(ub,"isArrayLike");var ed=ub;function fb(t){return ed(t)?qF(t):cb(t)}s(fb,"keys");var kg=fb;function db(t){return X1(t,kg,tF)}s(db,"getAllKeys");var Nv=db,ZF=1,QF=Object.prototype,eG=QF.hasOwnProperty;function pb(t,e,r,n,a,i){var o=r&ZF,c=Nv(t),l=c.length,u=Nv(e),f=u.length;if(l!=f&&!o)return!1;for(var d=l;d--;){var p=c[d];if(!(o?p in e:eG.call(e,p)))return!1}var g=i.get(t),m=i.get(e);if(g&&m)return g==e&&m==t;var T=!0;i.set(t,e),i.set(e,t);for(var _=o;++d<l;){p=c[d];var v=t[p],w=e[p];if(n)var C=o?n(w,v,p,e,t,i):n(v,w,p,t,e,i);if(!(C===void 0?v===w||a(v,w,r,n,i):C)){T=!1;break}_||(_=p=="constructor")}if(T&&!_){var k=t.constructor,B=e.constructor;k!=B&&"constructor"in t&&"constructor"in e&&!(typeof k=="function"&&k instanceof k&&typeof B=="function"&&B instanceof B)&&(T=!1)}return i.delete(t),i.delete(e),T}s(pb,"equalObjects");var tG=pb,rG=Ho(xr,"DataView"),dh=rG,nG=Ho(xr,"Promise"),ph=nG,aG=Ho(xr,"Set"),Ua=aG,iG=Ho(xr,"WeakMap"),hh=iG,kv="[object Map]",sG="[object Object]",Pv="[object Promise]",Ov="[object Set]",Lv="[object WeakMap]",Dv="[object DataView]",oG=ra(dh),lG=ra(lc),cG=ra(ph),uG=ra(Ua),fG=ra(hh),pn=Vo;(dh&&pn(new dh(new ArrayBuffer(1)))!=Dv||lc&&pn(new lc)!=kv||ph&&pn(ph.resolve())!=Pv||Ua&&pn(new Ua)!=Ov||hh&&pn(new hh)!=Lv)&&(pn=s(function(t){var e=Vo(t),r=e==sG?t.constructor:void 0,n=r?ra(r):"";if(n)switch(n){case oG:return Dv;case lG:return kv;case cG:return Pv;case uG:return Ov;case fG:return Lv}return e},"getTag"));var mh=pn,dG=1,Mv="[object Arguments]",xv="[object Array]",jc="[object Object]",pG=Object.prototype,Fv=pG.hasOwnProperty;function hb(t,e,r,n,a,i){var o=ut(t),c=ut(e),l=o?xv:mh(t),u=c?xv:mh(e);l=l==Mv?jc:l,u=u==Mv?jc:u;var f=l==jc,d=u==jc,p=l==u;if(p&&Zu(t)){if(!Zu(e))return!1;o=!0,f=!1}if(p&&!f)return i||(i=new mu),o||Ng(t)?MS(t,e,r,n,a,i):H1(t,e,l,r,n,a,i);if(!(r&dG)){var g=f&&Fv.call(t,"__wrapped__"),m=d&&Fv.call(e,"__wrapped__");if(g||m){var T=g?t.value():t,_=m?e.value():e;return i||(i=new mu),a(T,_,r,n,i)}}return p?(i||(i=new mu),tG(t,e,r,n,a,i)):!1}s(hb,"baseIsEqualDeep");var hG=hb;function Pg(t,e,r,n,a){return t===e?!0:t==null||e==null||!xo(t)&&!xo(e)?t!==t&&e!==e:hG(t,e,r,n,Pg,a)}s(Pg,"baseIsEqual");var mb=Pg,mG=1,gG=2;function gb(t,e,r,n){var a=r.length,i=a,o=!n;if(t==null)return!i;for(t=Object(t);a--;){var c=r[a];if(o&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<i;){c=r[a];var l=c[0],u=t[l],f=c[1];if(o&&c[2]){if(u===void 0&&!(l in t))return!1}else{var d=new mu;if(n)var p=n(u,f,l,t,e,d);if(!(p===void 0?mb(f,u,mG|gG,n,d):p))return!1}}return!0}s(gb,"baseIsMatch");var yG=gb;function yb(t){return t===t&&!bg(t)}s(yb,"isStrictComparable");var vb=yb;function Tb(t){for(var e=kg(t),r=e.length;r--;){var n=e[r],a=t[n];e[r]=[n,a,vb(a)]}return e}s(Tb,"getMatchData");var vG=Tb;function Rb(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}s(Rb,"matchesStrictComparable");var $b=Rb;function Ab(t){var e=vG(t);return e.length==1&&e[0][2]?$b(e[0][0],e[0][1]):function(r){return r===t||yG(r,t,e)}}s(Ab,"baseMatches");var TG=Ab,RG="[object Symbol]";function Eb(t){return typeof t=="symbol"||xo(t)&&Vo(t)==RG}s(Eb,"isSymbol");var td=Eb,$G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,AG=/^\w*$/;function _b(t,e){if(ut(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||td(t)?!0:AG.test(t)||!$G.test(t)||e!=null&&t in Object(e)}s(_b,"isKey");var Og=_b,EG="Expected a function";function rd(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(EG);var r=s(function(){var n=arguments,a=e?e.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=t.apply(this,n);return r.cache=i.set(a,o)||i,o},"memoized");return r.cache=new(rd.Cache||Zf),r}s(rd,"memoize");rd.Cache=Zf;var _G=rd,CG=500;function Cb(t){var e=_G(t,function(n){return r.size===CG&&r.clear(),n}),r=e.cache;return e}s(Cb,"memoizeCapped");var SG=Cb,bG=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wG=/\\(\\)?/g,IG=SG(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(bG,function(r,n,a,i){e.push(a?i.replace(wG,"$1"):n||r)}),e}),NG=IG,Gv=ur?ur.prototype:void 0,jv=Gv?Gv.toString:void 0;function Lg(t){if(typeof t=="string")return t;if(ut(t))return KC(t,Lg)+"";if(td(t))return jv?jv.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}s(Lg,"baseToString");var kG=Lg;function Sb(t){return t==null?"":kG(t)}s(Sb,"toString");var PG=Sb;function bb(t,e){return ut(t)?t:Og(t,e)?[t]:NG(PG(t))}s(bb,"castPath");var wb=bb;function Ib(t){if(typeof t=="string"||td(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}s(Ib,"toKey");var nd=Ib;function Nb(t,e){e=wb(e,t);for(var r=0,n=e.length;t!=null&&r<n;)t=t[nd(e[r++])];return r&&r==n?t:void 0}s(Nb,"baseGet");var kb=Nb;function Pb(t,e,r){var n=t==null?void 0:kb(t,e);return n===void 0?r:n}s(Pb,"get");var OG=Pb;function Ob(t,e){return t!=null&&e in Object(t)}s(Ob,"baseHasIn");var LG=Ob;function Lb(t,e,r){e=wb(e,t);for(var n=-1,a=e.length,i=!1;++n<a;){var o=nd(e[n]);if(!(i=t!=null&&r(t,o)))break;t=t[o]}return i||++n!=a?i:(a=t==null?0:t.length,!!a&&Ig(a)&&QS(o,a)&&(ut(t)||Qf(t)))}s(Lb,"hasPath");var DG=Lb;function Db(t,e){return t!=null&&DG(t,e,LG)}s(Db,"hasIn");var MG=Db,xG=1,FG=2;function Mb(t,e){return Og(t)&&vb(e)?$b(nd(t),e):function(r){var n=OG(r,t);return n===void 0&&n===e?MG(r,t):mb(e,n,xG|FG)}}s(Mb,"baseMatchesProperty");var GG=Mb;function xb(t){return t}s(xb,"identity");var Dg=xb;function Fb(t){return function(e){return e?.[t]}}s(Fb,"baseProperty");var jG=Fb;function Gb(t){return function(e){return kb(e,t)}}s(Gb,"basePropertyDeep");var UG=Gb;function jb(t){return Og(t)?jG(nd(t)):UG(t)}s(jb,"property");var zG=jb;function Ub(t){return typeof t=="function"?t:t==null?Dg:typeof t=="object"?ut(t)?GG(t[0],t[1]):TG(t):zG(t)}s(Ub,"baseIteratee");var ad=Ub;function zb(t){return function(e,r,n){for(var a=-1,i=Object(e),o=n(e),c=o.length;c--;){var l=o[t?c:++a];if(r(i[l],l,i)===!1)break}return e}}s(zb,"createBaseFor");var BG=zb,KG=BG(),qG=KG;function Bb(t,e){return t&&qG(t,e,kg)}s(Bb,"baseForOwn");var WG=Bb;function Kb(t,e){return function(r,n){if(r==null)return r;if(!ed(r))return t(r,n);for(var a=r.length,i=e?a:-1,o=Object(r);(e?i--:++i<a)&&n(o[i],i,o)!==!1;);return r}}s(Kb,"createBaseEach");var VG=Kb,HG=VG(WG),id=HG;function qb(t,e){var r=-1,n=ed(t)?Array(t.length):[];return id(t,function(a,i,o){n[++r]=e(a,i,o)}),n}s(qb,"baseMap");var YG=qb;function Wb(t,e){var r=ut(t)?KC:YG;return r(t,ad(e))}s(Wb,"map");var _r=Wb;function Vb(t,e){var r=[];return id(t,function(n,a,i){e(n,a,i)&&r.push(n)}),r}s(Vb,"baseFilter");var XG=Vb;function Hb(t,e){var r=ut(t)?KS:XG;return r(t,ad(e))}s(Hb,"filter");var JG=Hb;function jn(t,e,r){return`${t.name}_${e}_${r}`}s(jn,"buildATNKey");var Xr=1,ZG=2,Yb=4,Xb=5,Oc=7,QG=8,ej=9,tj=10,rj=11,Jb=12,Bi,Mg=(Bi=class{constructor(e){this.target=e}isEpsilon(){return!1}},s(Bi,"AbstractTransition"),Bi),Ki,xg=(Ki=class extends Mg{constructor(e,r){super(e),this.tokenType=r}},s(Ki,"AtomTransition"),Ki),qi,Zb=(qi=class extends Mg{constructor(e){super(e)}isEpsilon(){return!0}},s(qi,"EpsilonTransition"),qi),Wi,Fg=(Wi=class extends Mg{constructor(e,r,n){super(e),this.rule=r,this.followState=n}isEpsilon(){return!0}},s(Wi,"RuleTransition"),Wi);function Qb(t){const e={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};ew(e,t);const r=t.length;for(let n=0;n<r;n++){const a=t[n],i=rn(e,a,a);i!==void 0&&fw(e,a,i)}return e}s(Qb,"createATN");function ew(t,e){const r=e.length;for(let n=0;n<r;n++){const a=e[n],i=Ve(t,a,void 0,{type:ZG}),o=Ve(t,a,void 0,{type:Oc});i.stop=o,t.ruleToStartState.set(a,i),t.ruleToStopState.set(a,o)}}s(ew,"createRuleStartAndStopATNStates");function Gg(t,e,r){return r instanceof be?sd(t,e,r.terminalType,r):r instanceof lt?uw(t,e,r):r instanceof vt?iw(t,e,r):r instanceof Qe?sw(t,e,r):r instanceof xe?tw(t,e,r):r instanceof yt?rw(t,e,r):r instanceof _t?nw(t,e,r):r instanceof Ct?aw(t,e,r):rn(t,e,r)}s(Gg,"atom");function tw(t,e,r){const n=Ve(t,e,r,{type:Xb});Fr(t,n);const a=sa(t,e,n,r,rn(t,e,r));return Ug(t,e,r,a)}s(tw,"repetition");function rw(t,e,r){const n=Ve(t,e,r,{type:Xb});Fr(t,n);const a=sa(t,e,n,r,rn(t,e,r)),i=sd(t,e,r.separator,r);return Ug(t,e,r,a,i)}s(rw,"repetitionSep");function nw(t,e,r){const n=Ve(t,e,r,{type:Yb});Fr(t,n);const a=sa(t,e,n,r,rn(t,e,r));return jg(t,e,r,a)}s(nw,"repetitionMandatory");function aw(t,e,r){const n=Ve(t,e,r,{type:Yb});Fr(t,n);const a=sa(t,e,n,r,rn(t,e,r)),i=sd(t,e,r.separator,r);return jg(t,e,r,a,i)}s(aw,"repetitionMandatorySep");function iw(t,e,r){const n=Ve(t,e,r,{type:Xr});Fr(t,n);const a=_r(r.definition,o=>Gg(t,e,o));return sa(t,e,n,r,...a)}s(iw,"alternation");function sw(t,e,r){const n=Ve(t,e,r,{type:Xr});Fr(t,n);const a=sa(t,e,n,r,rn(t,e,r));return ow(t,e,r,a)}s(sw,"option");function rn(t,e,r){const n=JG(_r(r.definition,a=>Gg(t,e,a)),a=>a!==void 0);return n.length===1?n[0]:n.length===0?void 0:cw(t,n)}s(rn,"block");function jg(t,e,r,n,a){const i=n.left,o=n.right,c=Ve(t,e,r,{type:rj});Fr(t,c);const l=Ve(t,e,r,{type:Jb});return i.loopback=c,l.loopback=c,t.decisionMap[jn(e,a?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=c,je(o,c),a===void 0?(je(c,i),je(c,l)):(je(c,l),je(c,a.left),je(a.right,i)),{left:i,right:l}}s(jg,"plus");function Ug(t,e,r,n,a){const i=n.left,o=n.right,c=Ve(t,e,r,{type:tj});Fr(t,c);const l=Ve(t,e,r,{type:Jb}),u=Ve(t,e,r,{type:ej});return c.loopback=u,l.loopback=u,je(c,i),je(c,l),je(o,u),a!==void 0?(je(u,l),je(u,a.left),je(a.right,i)):je(u,c),t.decisionMap[jn(e,a?"RepetitionWithSeparator":"Repetition",r.idx)]=c,{left:c,right:l}}s(Ug,"star");function ow(t,e,r,n){const a=n.left,i=n.right;return je(a,i),t.decisionMap[jn(e,"Option",r.idx)]=a,n}s(ow,"optional");function Fr(t,e){return t.decisionStates.push(e),e.decision=t.decisionStates.length-1,e.decision}s(Fr,"defineDecisionState");function sa(t,e,r,n,...a){const i=Ve(t,e,n,{type:QG,start:r});r.end=i;for(const c of a)c!==void 0?(je(r,c.left),je(c.right,i)):je(r,i);const o={left:r,right:i};return t.decisionMap[jn(e,lw(n),n.idx)]=r,o}s(sa,"makeAlts");function lw(t){if(t instanceof vt)return"Alternation";if(t instanceof Qe)return"Option";if(t instanceof xe)return"Repetition";if(t instanceof yt)return"RepetitionWithSeparator";if(t instanceof _t)return"RepetitionMandatory";if(t instanceof Ct)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}s(lw,"getProdType");function cw(t,e){const r=e.length;for(let i=0;i<r-1;i++){const o=e[i];let c;o.left.transitions.length===1&&(c=o.left.transitions[0]);const l=c instanceof Fg,u=c,f=e[i+1].left;o.left.type===Xr&&o.right.type===Xr&&c!==void 0&&(l&&u.followState===o.right||c.target===o.right)?(l?u.followState=f:c.target=f,dw(t,o.right)):je(o.right,f)}const n=e[0],a=e[r-1];return{left:n.left,right:a.right}}s(cw,"makeBlock");function sd(t,e,r,n){const a=Ve(t,e,n,{type:Xr}),i=Ve(t,e,n,{type:Xr});return od(a,new xg(i,r)),{left:a,right:i}}s(sd,"tokenRef");function uw(t,e,r){const n=r.referencedRule,a=t.ruleToStartState.get(n),i=Ve(t,e,r,{type:Xr}),o=Ve(t,e,r,{type:Xr}),c=new Fg(a,n,o);return od(i,c),{left:i,right:o}}s(uw,"ruleRef");function fw(t,e,r){const n=t.ruleToStartState.get(e);je(n,r.left);const a=t.ruleToStopState.get(e);return je(r.right,a),{left:n,right:a}}s(fw,"buildRuleHandle");function je(t,e){const r=new Zb(e);od(t,r)}s(je,"epsilon");function Ve(t,e,r,n){const a=Object.assign({atn:t,production:r,epsilonOnlyTransitions:!1,rule:e,transitions:[],nextTokenWithinRule:[],stateNumber:t.states.length},n);return t.states.push(a),a}s(Ve,"newState");function od(t,e){t.transitions.length===0&&(t.epsilonOnlyTransitions=e.isEpsilon()),t.transitions.push(e)}s(od,"addTransition");function dw(t,e){t.states.splice(t.states.indexOf(e),1)}s(dw,"removeState");var Qu={},Vi,gh=(Vi=class{constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){const r=zg(e);r in this.map||(this.map[r]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return _r(this.configs,e=>e.alt)}get key(){let e="";for(const r in this.map)e+=r+":";return e}},s(Vi,"ATNConfigSet"),Vi);function zg(t,e=!0){return`${e?`a${t.alt}`:""}s${t.state.stateNumber}:${t.stack.map(r=>r.stateNumber.toString()).join("_")}`}s(zg,"getATNConfigKey");function pw(t,e,r){for(var n=-1,a=t.length;++n<a;){var i=t[n],o=e(i);if(o!=null&&(c===void 0?o===o&&!td(o):r(o,c)))var c=o,l=i}return l}s(pw,"baseExtremum");var nj=pw;function hw(t,e){return t<e}s(hw,"baseLt");var aj=hw;function mw(t){return t&&t.length?nj(t,Dg,aj):void 0}s(mw,"min");var ij=mw,Uv=ur?ur.isConcatSpreadable:void 0;function gw(t){return ut(t)||Qf(t)||!!(Uv&&t&&t[Uv])}s(gw,"isFlattenable");var sj=gw;function Bg(t,e,r,n,a){var i=-1,o=t.length;for(r||(r=sj),a||(a=[]);++i<o;){var c=t[i];e>0&&r(c)?e>1?Bg(c,e-1,r,n,a):US(a,c):n||(a[a.length]=c)}return a}s(Bg,"baseFlatten");var yw=Bg;function vw(t,e){return yw(_r(t,e),1)}s(vw,"flatMap");var oj=vw;function Tw(t,e,r,n){for(var a=t.length,i=r+(n?1:-1);n?i--:++i<a;)if(e(t[i],i,t))return i;return-1}s(Tw,"baseFindIndex");var lj=Tw;function Rw(t){return t!==t}s(Rw,"baseIsNaN");var cj=Rw;function $w(t,e,r){for(var n=r-1,a=t.length;++n<a;)if(t[n]===e)return n;return-1}s($w,"strictIndexOf");var uj=$w;function Aw(t,e,r){return e===e?uj(t,e,r):lj(t,cj,r)}s(Aw,"baseIndexOf");var fj=Aw;function Ew(t,e){var r=t==null?0:t.length;return!!r&&fj(t,e,0)>-1}s(Ew,"arrayIncludes");var dj=Ew;function _w(t,e,r){for(var n=-1,a=t==null?0:t.length;++n<a;)if(r(e,t[n]))return!0;return!1}s(_w,"arrayIncludesWith");var pj=_w;function Cw(){}s(Cw,"noop");var hj=Cw,mj=1/0,gj=Ua&&1/wg(new Ua([,-0]))[1]==mj?function(t){return new Ua(t)}:hj,yj=gj,vj=200;function Sw(t,e,r){var n=-1,a=dj,i=t.length,o=!0,c=[],l=c;if(r)o=!1,a=pj;else if(i>=vj){var u=e?null:yj(t);if(u)return wg(u);o=!1,a=LS,l=new kS}else l=e?[]:c;e:for(;++n<i;){var f=t[n],d=e?e(f):f;if(f=r||f!==0?f:0,o&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;e&&l.push(d),c.push(f)}else a(l,d,r)||(l!==c&&l.push(d),c.push(f))}return c}s(Sw,"baseUniq");var Tj=Sw;function bw(t,e){return t&&t.length?Tj(t,ad(e)):[]}s(bw,"uniqBy");var Rj=bw;function ww(t){var e=t==null?0:t.length;return e?yw(t,1):[]}s(ww,"flatten");var $j=ww;function Iw(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}s(Iw,"arrayEach");var Aj=Iw;function Nw(t){return typeof t=="function"?t:Dg}s(Nw,"castFunction");var Ej=Nw;function kw(t,e){var r=ut(t)?Aj:id;return r(t,Ej(e))}s(kw,"forEach");var wd=kw,_j="[object Map]",Cj="[object Set]",Sj=Object.prototype,bj=Sj.hasOwnProperty;function Pw(t){if(t==null)return!0;if(ed(t)&&(ut(t)||typeof t=="string"||typeof t.splice=="function"||Zu(t)||Ng(t)||Qf(t)))return!t.length;var e=mh(t);if(e==_j||e==Cj)return!t.size;if(sb(t))return!cb(t).length;for(var r in t)if(bj.call(t,r))return!1;return!0}s(Pw,"isEmpty");var wj=Pw;function Ow(t,e,r,n){var a=-1,i=t==null?0:t.length;for(n&&i&&(r=t[++a]);++a<i;)r=e(r,t[a],a,t);return r}s(Ow,"arrayReduce");var Ij=Ow;function Lw(t,e,r,n,a){return a(t,function(i,o,c){r=n?(n=!1,i):e(r,i,o,c)}),r}s(Lw,"baseReduce");var Nj=Lw;function Dw(t,e,r){var n=ut(t)?Ij:Nj,a=arguments.length<3;return n(t,ad(e),r,a,id)}s(Dw,"reduce");var zv=Dw;function Mw(t,e){const r={};return n=>{const a=n.toString();let i=r[a];return i!==void 0||(i={atnStartState:t,decision:e,states:{}},r[a]=i),i}}s(Mw,"createDFACache");var Hi,xw=(Hi=class{constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,r){this.predicates[e]=r}toString(){let e="";const r=this.predicates.length;for(let n=0;n<r;n++)e+=this.predicates[n]===!0?"1":"0";return e}},s(Hi,"PredicateSet"),Hi),Bv=new xw,Yi,kj=(Yi=class extends _g{constructor(e){var r;super(),this.logging=(r=e?.logging)!==null&&r!==void 0?r:(n=>console.log(n))}initialize(e){this.atn=Qb(e.rules),this.dfas=Fw(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){const{prodOccurrence:r,rule:n,hasPredicates:a,dynamicTokensEnabled:i}=e,o=this.dfas,c=this.logging,l=jn(n,"Alternation",r),f=this.atn.decisionMap[l].decision,d=_r(rh({maxLookahead:1,occurrence:r,prodType:"Alternation",rule:n}),p=>_r(p,g=>g[0]));if(yh(d,!1)&&!i){const p=zv(d,(g,m,T)=>(wd(m,_=>{_&&(g[_.tokenTypeIdx]=T,wd(_.categoryMatches,v=>{g[v]=T}))}),g),{});return a?function(g){var m;const T=this.LA(1),_=p[T.tokenTypeIdx];if(g!==void 0&&_!==void 0){const v=(m=g[_])===null||m===void 0?void 0:m.GATE;if(v!==void 0&&v.call(this)===!1)return}return _}:function(){const g=this.LA(1);return p[g.tokenTypeIdx]}}else return a?function(p){const g=new xw,m=p===void 0?0:p.length;for(let _=0;_<m;_++){const v=p?.[_].GATE;g.set(_,v===void 0||v.call(this))}const T=gu.call(this,o,f,g,c);return typeof T=="number"?T:void 0}:function(){const p=gu.call(this,o,f,Bv,c);return typeof p=="number"?p:void 0}}buildLookaheadForOptional(e){const{prodOccurrence:r,rule:n,prodType:a,dynamicTokensEnabled:i}=e,o=this.dfas,c=this.logging,l=jn(n,a,r),f=this.atn.decisionMap[l].decision,d=_r(rh({maxLookahead:1,occurrence:r,prodType:a,rule:n}),p=>_r(p,g=>g[0]));if(yh(d)&&d[0][0]&&!i){const p=d[0],g=$j(p);if(g.length===1&&wj(g[0].categoryMatches)){const T=g[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===T}}else{const m=zv(g,(T,_)=>(_!==void 0&&(T[_.tokenTypeIdx]=!0,wd(_.categoryMatches,v=>{T[v]=!0})),T),{});return function(){const T=this.LA(1);return m[T.tokenTypeIdx]===!0}}}return function(){const p=gu.call(this,o,f,Bv,c);return typeof p=="object"?!1:p===0}}},s(Yi,"LLStarLookaheadStrategy"),Yi);function yh(t,e=!0){const r=new Set;for(const n of t){const a=new Set;for(const i of n){if(i===void 0){if(e)break;return!1}const o=[i.tokenTypeIdx].concat(i.categoryMatches);for(const c of o)if(r.has(c)){if(!a.has(c))return!1}else r.add(c),a.add(c)}}return!0}s(yh,"isLL1Sequence");function Fw(t){const e=t.decisionStates.length,r=Array(e);for(let n=0;n<e;n++)r[n]=Mw(t.decisionStates[n],n);return r}s(Fw,"initATNSimulator");function gu(t,e,r,n){const a=t[e](r);let i=a.start;if(i===void 0){const c=Yw(a.atnStartState);i=qg(a,Kg(c)),a.start=i}return Gw.apply(this,[a,i,r,n])}s(gu,"adaptivePredict");function Gw(t,e,r,n){let a=e,i=1;const o=[];let c=this.LA(i++);for(;;){let l=qw(a,c);if(l===void 0&&(l=jw.apply(this,[t,a,c,i,r,n])),l===Qu)return Kw(o,a,c);if(l.isAcceptState===!0)return l.prediction;a=l,o.push(c),c=this.LA(i++)}}s(Gw,"performLookahead");function jw(t,e,r,n,a,i){const o=Ww(e.configs,r,a);if(o.size===0)return vh(t,e,r,Qu),Qu;let c=Kg(o);const l=Hw(o,a);if(l!==void 0)c.isAcceptState=!0,c.prediction=l,c.configs.uniqueAlt=l;else if(Qw(o)){const u=ij(o.alts);c.isAcceptState=!0,c.prediction=u,c.configs.uniqueAlt=u,Uw.apply(this,[t,n,o.alts,i])}return c=vh(t,e,r,c),c}s(jw,"computeLookaheadTarget");function Uw(t,e,r,n){const a=[];for(let u=1;u<=e;u++)a.push(this.LA(u).tokenType);const i=t.atnStartState,o=i.rule,c=i.production,l=zw({topLevelRule:o,ambiguityIndices:r,production:c,prefixPath:a});n(l)}s(Uw,"reportLookaheadAmbiguity");function zw(t){const e=_r(t.prefixPath,a=>On(a)).join(", "),r=t.production.idx===0?"":t.production.idx;let n=`Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${Bw(t.production)}${r}> inside <${t.topLevelRule.name}> Rule,
|
|
146
|
+
<${e}> may appears as a prefix path in all these alternatives.
|
|
147
|
+
`;return n=n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
|
148
|
+
For Further details.`,n}s(zw,"buildAmbiguityError");function Bw(t){if(t instanceof lt)return"SUBRULE";if(t instanceof Qe)return"OPTION";if(t instanceof vt)return"OR";if(t instanceof _t)return"AT_LEAST_ONE";if(t instanceof Ct)return"AT_LEAST_ONE_SEP";if(t instanceof yt)return"MANY_SEP";if(t instanceof xe)return"MANY";if(t instanceof be)return"CONSUME";throw Error("non exhaustive match")}s(Bw,"getProductionDslName");function Kw(t,e,r){const n=oj(e.configs.elements,i=>i.state.transitions),a=Rj(n.filter(i=>i instanceof xg).map(i=>i.tokenType),i=>i.tokenTypeIdx);return{actualToken:r,possibleTokenTypes:a,tokenPath:t}}s(Kw,"buildAdaptivePredictError");function qw(t,e){return t.edges[e.tokenTypeIdx]}s(qw,"getExistingTargetState");function Ww(t,e,r){const n=new gh,a=[];for(const o of t.elements){if(r.is(o.alt)===!1)continue;if(o.state.type===Oc){a.push(o);continue}const c=o.state.transitions.length;for(let l=0;l<c;l++){const u=o.state.transitions[l],f=Vw(u,e);f!==void 0&&n.add({state:f,alt:o.alt,stack:o.stack})}}let i;if(a.length===0&&n.size===1&&(i=n),i===void 0){i=new gh;for(const o of n.elements)fc(o,i)}if(a.length>0&&!Jw(i))for(const o of a)i.add(o);return i}s(Ww,"computeReachSet");function Vw(t,e){if(t instanceof xg&&yg(e,t.tokenType))return t.target}s(Vw,"getReachableTarget");function Hw(t,e){let r;for(const n of t.elements)if(e.is(n.alt)===!0){if(r===void 0)r=n.alt;else if(r!==n.alt)return}return r}s(Hw,"getUniqueAlt");function Kg(t){return{configs:t,edges:{},isAcceptState:!1,prediction:-1}}s(Kg,"newDFAState");function vh(t,e,r,n){return n=qg(t,n),e.edges[r.tokenTypeIdx]=n,n}s(vh,"addDFAEdge");function qg(t,e){if(e===Qu)return e;const r=e.configs.key,n=t.states[r];return n!==void 0?n:(e.configs.finalize(),t.states[r]=e,e)}s(qg,"addDFAState");function Yw(t){const e=new gh,r=t.transitions.length;for(let n=0;n<r;n++){const i={state:t.transitions[n].target,alt:n,stack:[]};fc(i,e)}return e}s(Yw,"computeStartState");function fc(t,e){const r=t.state;if(r.type===Oc){if(t.stack.length>0){const a=[...t.stack],o={state:a.pop(),alt:t.alt,stack:a};fc(o,e)}else e.add(t);return}r.epsilonOnlyTransitions||e.add(t);const n=r.transitions.length;for(let a=0;a<n;a++){const i=r.transitions[a],o=Xw(t,i);o!==void 0&&fc(o,e)}}s(fc,"closure");function Xw(t,e){if(e instanceof Zb)return{state:e.target,alt:t.alt,stack:t.stack};if(e instanceof Fg){const r=[...t.stack,e.followState];return{state:e.target,alt:t.alt,stack:r}}}s(Xw,"getEpsilonTarget");function Jw(t){for(const e of t.elements)if(e.state.type===Oc)return!0;return!1}s(Jw,"hasConfigInRuleStopState");function Zw(t){for(const e of t.elements)if(e.state.type!==Oc)return!1;return!0}s(Zw,"allConfigsInRuleStopStates");function Qw(t){if(Zw(t))return!0;const e=eI(t.elements);return tI(e)&&!rI(e)}s(Qw,"hasConflictTerminatingPrediction");function eI(t){const e=new Map;for(const r of t){const n=zg(r,!1);let a=e.get(n);a===void 0&&(a={},e.set(n,a)),a[r.alt]=!0}return e}s(eI,"getConflictingAltSets");function tI(t){for(const e of Array.from(t.values()))if(Object.keys(e).length>1)return!0;return!1}s(tI,"hasConflictingAltSet");function rI(t){for(const e of Array.from(t.values()))if(Object.keys(e).length===1)return!0;return!1}s(rI,"hasStateAssociatedWithOneAlt");hc();var Xi,nI=(Xi=class{constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new Vg(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){const r=new ld;return r.grammarSource=e,r.root=this.rootNode,this.current.content.push(r),this.nodeStack.push(r),r}buildLeafNode(e,r){const n=new ef(e.startOffset,e.image.length,Zl(e),e.tokenType,!r);return n.grammarSource=r,n.root=this.rootNode,this.current.content.push(n),n}removeNode(e){const r=e.container;if(r){const n=r.content.indexOf(e);n>=0&&r.content.splice(n,1)}}addHiddenNodes(e){const r=[];for(const i of e){const o=new ef(i.startOffset,i.image.length,Zl(i),i.tokenType,!0);o.root=this.rootNode,r.push(o)}let n=this.current,a=!1;if(n.content.length>0){n.content.push(...r);return}for(;n.container;){const i=n.container.content.indexOf(n);if(i>0){n.container.content.splice(i,0,...r),a=!0;break}n=n.container}a||this.rootNode.content.unshift(...r)}construct(e){const r=this.current;typeof e.$type=="string"&&!e.$infix&&(this.current.astNode=e),e.$cstNode=r;const n=this.nodeStack.pop();n?.content.length===0&&this.removeNode(n)}},s(Xi,"CstNodeBuilder"),Xi),Ji,Wg=(Ji=class{get hidden(){return!1}get astNode(){const e=typeof this._astNode?.$type=="string"?this._astNode:this.container?.astNode;if(!e)throw new Error("This node has no associated AST element");return e}set astNode(e){this._astNode=e}get text(){return this.root.fullText.substring(this.offset,this.end)}},s(Ji,"AbstractCstNode"),Ji),Zi,ef=(Zi=class extends Wg{get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,r,n,a,i=!1){super(),this._hidden=i,this._offset=e,this._tokenType=a,this._length=r,this._range=n}},s(Zi,"LeafCstNodeImpl"),Zi),Qi,ld=(Qi=class extends Wg{constructor(){super(...arguments),this.content=new Pj(this)}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){const e=this.firstNonHiddenNode,r=this.lastNonHiddenNode;if(e&&r){if(this._rangeCache===void 0){const{range:n}=e,{range:a}=r;this._rangeCache={start:n.start,end:a.end.line<n.start.line?n.start:a.end}}return this._rangeCache}else return{start:ie.create(0,0),end:ie.create(0,0)}}get firstNonHiddenNode(){for(const e of this.content)if(!e.hidden)return e;return this.content[0]}get lastNonHiddenNode(){for(let e=this.content.length-1;e>=0;e--){const r=this.content[e];if(!r.hidden)return r}return this.content[this.content.length-1]}},s(Qi,"CompositeCstNodeImpl"),Qi),Mn,Pj=(Mn=class extends Array{constructor(e){super(),this.parent=e,Object.setPrototypeOf(this,Mn.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,r,...n){return this.addParents(n),super.splice(e,r,...n)}addParents(e){for(const r of e)r.container=this.parent}},s(Mn,"CstNodeContainer"),Mn),es,Vg=(es=class extends ld{get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}},s(es,"RootCstNodeImpl"),es),tf=Symbol("Datatype");function yu(t){return t.$type===tf}s(yu,"isDataTypeNode");var Kv="",aI=s(t=>t.endsWith(Kv)?t:t+Kv,"withRuleSuffix"),ts,Hg=(ts=class{constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;const r=this.lexer.definition,n=e.LanguageMetaData.mode==="production";e.shared.profilers.LangiumProfiler?.isActive("parsing")?this.wrapper=new Lj(r,{...e.parser.ParserConfig,skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask("parsing",e.LanguageMetaData.languageId)):this.wrapper=new lI(r,{...e.parser.ParserConfig,skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider})}alternatives(e,r){this.wrapper.wrapOr(e,r)}optional(e,r){this.wrapper.wrapOption(e,r)}many(e,r){this.wrapper.wrapMany(e,r)}atLeastOne(e,r){this.wrapper.wrapAtLeastOne(e,r)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},s(ts,"AbstractLangiumParser"),ts),rs,iI=(rs=class extends Hg{get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new nI,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,r){const n=this.computeRuleType(e);let a;ko(e)&&(a=e.name,this.registerPrecedenceMap(e));const i=this.wrapper.DEFINE_RULE(aI(e.name),this.startImplementation(n,a,r).bind(this));return this.allRules.set(e.name,i),ot(e)&&e.entry&&(this.mainRule=i),i}registerPrecedenceMap(e){const r=e.name,n=new Map;for(let a=0;a<e.operators.precedences.length;a++){const i=e.operators.precedences[a];for(const o of i.operators)n.set(o.value,{precedence:a,rightAssoc:i.associativity==="right"})}this.operatorPrecedence.set(r,n)}computeRuleType(e){return ko(e)?xn(e):e.fragment?void 0:vc(e)?tf:xn(e)}parse(e,r={}){this.nodeBuilder.buildRootNode(e);const n=this.lexerResult=this.lexer.tokenize(e);this.wrapper.input=n.tokens;const a=r.rule?this.allRules.get(r.rule):this.mainRule;if(!a)throw new Error(r.rule?`No rule found with name '${r.rule}'`:"No main rule available.");const i=this.doParse(a);return this.nodeBuilder.addHiddenNodes(n.hidden),this.unorderedGroups.clear(),this.lexerResult=void 0,Io(i,{deep:!0}),{value:i,lexerErrors:n.errors,lexerReport:n.report,parserErrors:this.wrapper.errors}}doParse(e){let r=this.wrapper.rule(e);if(this.stack.length>0&&(r=this.construct()),r===void 0)throw new Error("No result from parser");if(this.stack.length>0)throw new Error("Parser stack is not empty after parsing");return r}startImplementation(e,r,n){return a=>{const i=!this.isRecording()&&e!==void 0;if(i){const o={$type:e};this.stack.push(o),e===tf?o.value="":r!==void 0&&(o.$infixName=r)}return n(a),i?this.construct():void 0}}extractHiddenTokens(e){const r=this.lexerResult.hidden;if(!r.length)return[];const n=e.startOffset;for(let a=0;a<r.length;a++)if(r[a].startOffset>n)return r.splice(0,a);return r.splice(0,r.length)}consume(e,r,n){const a=this.wrapper.wrapConsume(e,r);if(!this.isRecording()&&this.isValidToken(a)){const i=this.extractHiddenTokens(a);this.nodeBuilder.addHiddenNodes(i);const o=this.nodeBuilder.buildLeafNode(a,n),{assignment:c,crossRef:l}=this.getAssignment(n),u=this.current;if(c){const f=br(n)?a.image:this.converter.convert(a.image,o);this.assign(c.operator,c.feature,f,o,l)}else if(yu(u)){let f=a.image;br(n)||(f=this.converter.convert(f,o).toString()),u.value+=f}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset=="number"&&!isNaN(e.endOffset)}subrule(e,r,n,a,i){let o;!this.isRecording()&&!n&&(o=this.nodeBuilder.buildCompositeNode(a));let c;try{c=this.wrapper.wrapSubrule(e,r,i)}finally{this.isRecording()||(c===void 0&&!n&&(c=this.construct()),c!==void 0&&o&&o.length>0&&this.performSubruleAssignment(c,a,o))}}performSubruleAssignment(e,r,n){const{assignment:a,crossRef:i}=this.getAssignment(r);if(a)this.assign(a.operator,a.feature,e,n,i);else if(!a){const o=this.current;if(yu(o))o.value+=e.toString();else if(typeof e=="object"&&e){const l=this.assignWithoutOverride(e,o);this.stack.pop(),this.stack.push(l)}}}action(e,r){if(!this.isRecording()){let n=this.current;if(r.feature&&r.operator){n=this.construct(),this.nodeBuilder.removeNode(n.$cstNode),this.nodeBuilder.buildCompositeNode(r).content.push(n.$cstNode);const i={$type:e};this.stack.push(i),this.assign(r.operator,r.feature,n,n.$cstNode)}else n.$type=e}}construct(){if(this.isRecording())return;const e=this.stack.pop();return this.nodeBuilder.construct(e),"$infixName"in e?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):yu(e)?this.converter.convert(e.value,e.$cstNode):(Wh(this.astReflection,e),e)}constructInfix(e,r){const n=e.parts;if(!Array.isArray(n)||n.length===0)return;const a=e.operators;if(!Array.isArray(a)||n.length<2)return n[0];let i=0,o=-1;for(let T=0;T<a.length;T++){const _=a[T],v=r.get(_)??{precedence:1/0,rightAssoc:!1};v.precedence>o?(o=v.precedence,i=T):v.precedence===o&&(v.rightAssoc||(i=T))}const c=a.slice(0,i),l=a.slice(i+1),u=n.slice(0,i+1),f=n.slice(i+1),d={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:u,operators:c},p={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:f,operators:l},g=this.constructInfix(d,r),m=this.constructInfix(p,r);return{$type:e.$type,$cstNode:e.$cstNode,left:g,operator:a[i],right:m}}getAssignment(e){if(!this.assignmentMap.has(e)){const r=Bn(e,Sr);this.assignmentMap.set(e,{assignment:r,crossRef:r&&qn(r.terminal)?r.terminal.isMulti?"multi":"single":void 0})}return this.assignmentMap.get(e)}assign(e,r,n,a,i){const o=this.current;let c;switch(i==="single"&&typeof n=="string"?c=this.linker.buildReference(o,r,a,n):i==="multi"&&typeof n=="string"?c=this.linker.buildMultiReference(o,r,a,n):c=n,e){case"=":{o[r]=c;break}case"?=":{o[r]=!0;break}case"+=":Array.isArray(o[r])||(o[r]=[]),o[r].push(c)}}assignWithoutOverride(e,r){for(const[a,i]of Object.entries(r)){const o=e[a];o===void 0?e[a]=i:Array.isArray(o)&&Array.isArray(i)&&(i.push(...o),e[a]=i)}const n=e.$cstNode;return n&&(n.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},s(rs,"LangiumParser"),rs),ns,sI=(ns=class{buildMismatchTokenMessage(e){return xa.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return xa.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return xa.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return xa.buildEarlyExitMessage(e)}},s(ns,"AbstractParserErrorMessageProvider"),ns),as,Yg=(as=class extends sI{buildMismatchTokenMessage({expected:e,actual:r}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${r.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},s(as,"LangiumParserErrorMessageProvider"),as),is,oI=(is=class extends Hg{constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();const r=this.lexer.tokenize(e,{mode:"partial"});return this.tokens=r.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,r){const n=this.wrapper.DEFINE_RULE(aI(e.name),this.startImplementation(r).bind(this));return this.allRules.set(e.name,n),e.entry&&(this.mainRule=n),n}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return r=>{const n=this.keepStackSize();try{e(r)}finally{this.resetStackSize(n)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){const e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,r,n){this.wrapper.wrapConsume(e,r),this.isRecording()||(this.lastElementStack=[...this.elementStack,n],this.nextTokenIndex=this.currIdx+1)}subrule(e,r,n,a,i){this.before(a),this.wrapper.wrapSubrule(e,r,i),this.after(a)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){const r=this.elementStack.lastIndexOf(e);r>=0&&this.elementStack.splice(r)}}get currIdx(){return this.wrapper.currIdx}},s(is,"LangiumCompletionParser"),is),Oj={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new Yg},ss,lI=(ss=class extends Tx{constructor(e,r){const n=r&&"maxLookahead"in r;super(e,{...Oj,lookaheadStrategy:n?new _g({maxLookahead:r.maxLookahead}):new kj({logging:r.skipValidations?()=>{}:void 0}),...r})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,r,n){return this.RULE(e,r,n)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,r){return this.consume(e,r,void 0)}wrapSubrule(e,r,n){return this.subrule(e,r,{ARGS:[n]})}wrapOr(e,r){this.or(e,r)}wrapOption(e,r){this.option(e,r)}wrapMany(e,r){this.many(e,r)}wrapAtLeastOne(e,r){this.atLeastOne(e,r)}rule(e){return e.call(this,{})}},s(ss,"ChevrotainWrapper"),ss),os,Lj=(os=class extends lI{constructor(e,r,n){super(e,r),this.task=n}rule(e){this.task.start(),this.task.startSubTask(this.ruleName(e));try{return super.rule(e)}finally{this.task.stopSubTask(this.ruleName(e)),this.task.stop()}}ruleName(e){return e.ruleName}subrule(e,r,n){this.task.startSubTask(this.ruleName(r));try{return super.subrule(e,r,n)}finally{this.task.stopSubTask(this.ruleName(r))}}},s(os,"ProfilerWrapper"),os);function cd(t,e,r){return cI({parser:e,tokens:r,ruleNames:new Map},t),e}s(cd,"createParser");function cI(t,e){const r=_f(e,!1),n=ue(e.rules).filter(ot).filter(i=>r.has(i));for(const i of n){const o={...t,consume:1,optional:1,subrule:1,many:1,or:1};t.parser.rule(i,Jr(o,i.definition))}const a=ue(e.rules).filter(ko).filter(i=>r.has(i));for(const i of a)t.parser.rule(i,uI(t,i))}s(cI,"buildRules");function uI(t,e){const r=e.call.rule.ref;if(!r)throw new Error("Could not resolve reference to infix operator rule: "+e.call.rule.$refText);if(xt(r))throw new Error("Cannot use terminal rule in infix expression");const n=e.operators.precedences.flatMap(g=>g.operators),a={$type:"Group",elements:[]},i={$container:a,$type:"Assignment",feature:"parts",operator:"+=",terminal:e.call},o={$container:a,$type:"Group",elements:[],cardinality:"*"};a.elements.push(i,o);const l={$container:o,$type:"Assignment",feature:"operators",operator:"+=",terminal:{$type:"Alternatives",elements:n}},u={...i,$container:o};o.elements.push(l,u);const d=n.map(g=>t.tokens[g.value]).map((g,m)=>({ALT:s(()=>t.parser.consume(m,g,l),"ALT")}));let p;return g=>{p??(p=ud(t,r)),t.parser.subrule(0,p,!1,i,g),t.parser.many(0,{DEF:s(()=>{t.parser.alternatives(0,d),t.parser.subrule(1,p,!1,u,g)},"DEF")})}}s(uI,"buildInfixRule");function Jr(t,e,r=!1){let n;if(br(e))n=yI(t,e);else if(Vr(e))n=fI(t,e);else if(Sr(e))n=Jr(t,e.terminal);else if(qn(e))n=Xg(t,e);else if(wr(e))n=dI(t,e);else if(mf(e))n=hI(t,e);else if(Tf(e))n=mI(t,e);else if(Wn(e))n=gI(t,e);else if(Qh(e)){const a=t.consume++;n=s(()=>t.parser.consume(a,Yr,e),"method")}else throw new $f(e.$cstNode,`Unexpected element type: ${e.$type}`);return Jg(t,r?void 0:dc(e),n,e.cardinality)}s(Jr,"buildElement");function fI(t,e){const r=xn(e);return()=>t.parser.action(r,e)}s(fI,"buildAction");function dI(t,e){const r=e.rule.ref;if(Kn(r)){const n=t.subrule++,a=ot(r)&&r.fragment,i=e.arguments.length>0?pI(r,e.arguments):()=>({});let o;return c=>{o??(o=ud(t,r)),t.parser.subrule(n,o,a,e,i(c))}}else if(xt(r)){const n=t.consume++,a=rf(t,r.name);return()=>t.parser.consume(n,a,e)}else if(r)Qr();else throw new $f(e.$cstNode,`Undefined rule: ${e.rule.$refText}`)}s(dI,"buildRuleCall");function pI(t,e){if(e.some(n=>n.calledByName)){const n=e.map(a=>({parameterName:a.parameter?.ref?.name,predicate:zt(a.value)}));return a=>{const i={};for(const{parameterName:o,predicate:c}of n)o&&(i[o]=c(a));return i}}else{const n=e.map(a=>zt(a.value));return a=>{const i={};for(let o=0;o<n.length;o++)if(o<t.parameters.length){const c=t.parameters[o].name,l=n[o];i[c]=l(a)}return i}}}s(pI,"buildRuleCallPredicate");function zt(t){if(Zh(t)){const e=zt(t.left),r=zt(t.right);return n=>e(n)||r(n)}else if(Jh(t)){const e=zt(t.left),r=zt(t.right);return n=>e(n)&&r(n)}else if(rm(t)){const e=zt(t.value);return r=>!e(r)}else if(nm(t)){const e=t.parameter.ref.name;return r=>r!==void 0&&r[e]===!0}else if(Yh(t)){const e=!!t.true;return()=>e}Qr()}s(zt,"buildPredicate");function hI(t,e){if(e.elements.length===1)return Jr(t,e.elements[0]);{const r=[];for(const a of e.elements){const i={ALT:Jr(t,a,!0)},o=dc(a);o&&(i.GATE=zt(o)),r.push(i)}const n=t.or++;return a=>t.parser.alternatives(n,r.map(i=>{const o={ALT:s(()=>i.ALT(a),"ALT")},c=i.GATE;return c&&(o.GATE=()=>c(a)),o}))}}s(hI,"buildAlternatives");function mI(t,e){if(e.elements.length===1)return Jr(t,e.elements[0]);const r=[];for(const c of e.elements){const l={ALT:Jr(t,c,!0)},u=dc(c);u&&(l.GATE=zt(u)),r.push(l)}const n=t.or++,a=s((c,l)=>{const u=l.getRuleStack().join("-");return`uGroup_${c}_${u}`},"idFunc"),i=s(c=>t.parser.alternatives(n,r.map((l,u)=>{const f={ALT:s(()=>!0,"ALT")},d=t.parser;f.ALT=()=>{if(l.ALT(c),!d.isRecording()){const g=a(n,d);d.unorderedGroups.get(g)||d.unorderedGroups.set(g,[]);const m=d.unorderedGroups.get(g);typeof m?.[u]>"u"&&(m[u]=!0)}};const p=l.GATE;return p?f.GATE=()=>p(c):f.GATE=()=>!d.unorderedGroups.get(a(n,d))?.[u],f})),"alternatives"),o=Jg(t,dc(e),i,"*");return c=>{o(c),t.parser.isRecording()||t.parser.unorderedGroups.delete(a(n,t.parser))}}s(mI,"buildUnorderedGroup");function gI(t,e){const r=e.elements.map(n=>Jr(t,n));return n=>r.forEach(a=>a(n))}s(gI,"buildGroup");function dc(t){if(Wn(t))return t.guardCondition}s(dc,"getGuardCondition");function Xg(t,e,r=e.terminal){if(r)if(wr(r)&&ot(r.rule.ref)){const n=r.rule.ref,a=t.subrule++;let i;return o=>{i??(i=ud(t,n)),t.parser.subrule(a,i,!1,e,o)}}else if(wr(r)&&xt(r.rule.ref)){const n=t.consume++,a=rf(t,r.rule.ref.name);return()=>t.parser.consume(n,a,e)}else if(br(r)){const n=t.consume++,a=rf(t,r.value);return()=>t.parser.consume(n,a,e)}else throw new Error("Could not build cross reference parser");else{if(!e.type.ref)throw new Error("Could not resolve reference to type: "+e.type.$refText);const a=wf(e.type.ref)?.terminal;if(!a)throw new Error("Could not find name assignment for type: "+xn(e.type.ref));return Xg(t,e,a)}}s(Xg,"buildCrossReference");function yI(t,e){const r=t.consume++,n=t.tokens[e.value];if(!n)throw new Error("Could not find token for keyword: "+e.value);return()=>t.parser.consume(r,n,e)}s(yI,"buildKeyword");function Jg(t,e,r,n){const a=e&&zt(e);if(!n)if(a){const i=t.or++;return o=>t.parser.alternatives(i,[{ALT:s(()=>r(o),"ALT"),GATE:s(()=>a(o),"GATE")},{ALT:fh(),GATE:s(()=>!a(o),"GATE")}])}else return r;if(n==="*"){const i=t.many++;return o=>t.parser.many(i,{DEF:s(()=>r(o),"DEF"),GATE:a?()=>a(o):void 0})}else if(n==="+"){const i=t.many++;if(a){const o=t.or++;return c=>t.parser.alternatives(o,[{ALT:s(()=>t.parser.atLeastOne(i,{DEF:s(()=>r(c),"DEF")}),"ALT"),GATE:s(()=>a(c),"GATE")},{ALT:fh(),GATE:s(()=>!a(c),"GATE")}])}else return o=>t.parser.atLeastOne(i,{DEF:s(()=>r(o),"DEF")})}else if(n==="?"){const i=t.optional++;return o=>t.parser.optional(i,{DEF:s(()=>r(o),"DEF"),GATE:a?()=>a(o):void 0})}else Qr()}s(Jg,"wrap");function ud(t,e){const r=vI(t,e),n=t.parser.getRule(r);if(!n)throw new Error(`Rule "${r}" not found."`);return n}s(ud,"getRule");function vI(t,e){if(Kn(e))return e.name;if(t.ruleNames.has(e))return t.ruleNames.get(e);{let r=e,n=r.$container,a=e.$type;for(;!ot(n);)(Wn(n)||mf(n)||Tf(n))&&(a=n.elements.indexOf(r).toString()+":"+a),r=n,n=n.$container;return a=n.name+":"+a,t.ruleNames.set(e,a),a}}s(vI,"getRuleName");function rf(t,e){const r=t.tokens[e];if(!r)throw new Error(`Token "${e}" not found."`);return r}s(rf,"getToken");function Zg(t){const e=t.Grammar,r=t.parser.Lexer,n=new oI(t);return cd(e,n,r.definition),n.finalize(),n}s(Zg,"createCompletionParser");function Qg(t){const e=ey(t);return e.finalize(),e}s(Qg,"createLangiumParser");function ey(t){const e=t.Grammar,r=t.parser.Lexer,n=new iI(t);return cd(e,n,r.definition)}s(ey,"prepareLangiumParser");var ls,fd=(ls=class{constructor(){this.diagnostics=[]}buildTokens(e,r){const n=ue(_f(e,!1)),a=this.buildTerminalTokens(n),i=this.buildKeywordTokens(n,a,r);return i.push(...a),i}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){const e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(xt).filter(r=>!r.fragment).map(r=>this.buildTerminalToken(r)).toArray()}buildTerminalToken(e){const r=Rc(e),n=this.requiresCustomPattern(r)?this.regexPatternFunction(r):r,a={name:e.name,PATTERN:n};return typeof n=="function"&&(a.LINE_BREAKS=!0),e.hidden&&(a.GROUP=Ef(r)?st.SKIPPED:"hidden"),a}requiresCustomPattern(e){return!!(e.flags.includes("u")||e.flags.includes("s"))}regexPatternFunction(e){const r=new RegExp(e,e.flags+"y");return(n,a)=>(r.lastIndex=a,r.exec(n))}buildKeywordTokens(e,r,n){return e.filter(Kn).flatMap(a=>Dr(a).filter(br)).distinct(a=>a.value).toArray().sort((a,i)=>i.value.length-a.value.length).map(a=>this.buildKeywordToken(a,r,!!n?.caseInsensitive))}buildKeywordToken(e,r,n){const a=this.buildKeywordPattern(e,n),i={name:e.value,PATTERN:a,LONGER_ALT:this.findLongerAlt(e,r)};return typeof a=="function"&&(i.LINE_BREAKS=!0),i}buildKeywordPattern(e,r){return r?new RegExp(Uo(e.value),"i"):e.value}findLongerAlt(e,r){return r.reduce((n,a)=>{const i=a?.PATTERN;return i?.source&&Cm("^"+i.source+"$",e.value)&&n.push(a),n},[])}},s(ls,"DefaultTokenBuilder"),ls),cs,ty=(cs=class{convert(e,r){let n=r.grammarSource;if(qn(n)&&(n=Nm(n)),wr(n)){const a=n.rule.ref;if(!a)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(a,e,r)}return e}runConverter(e,r,n){switch(e.name.toUpperCase()){case"INT":return ar.convertInt(r);case"STRING":return ar.convertString(r);case"ID":return ar.convertID(r)}switch(Gm(e)?.toLowerCase()){case"number":return ar.convertNumber(r);case"boolean":return ar.convertBoolean(r);case"bigint":return ar.convertBigint(r);case"date":return ar.convertDate(r);default:return r}}},s(cs,"DefaultValueConverter"),cs),ar;(function(t){function e(u){let f="";for(let d=1;d<u.length-1;d++){const p=u.charAt(d);if(p==="\\"){const g=u.charAt(++d);f+=r(g)}else f+=p}return f}s(e,"convertString"),t.convertString=e;function r(u){switch(u){case"b":return"\b";case"f":return"\f";case"n":return`
|
|
149
|
+
`;case"r":return"\r";case"t":return" ";case"v":return"\v";case"0":return"\0";default:return u}}s(r,"convertEscapeCharacter");function n(u){return u.charAt(0)==="^"?u.substring(1):u}s(n,"convertID"),t.convertID=n;function a(u){return parseInt(u)}s(a,"convertInt"),t.convertInt=a;function i(u){return BigInt(u)}s(i,"convertBigint"),t.convertBigint=i;function o(u){return new Date(u)}s(o,"convertDate"),t.convertDate=o;function c(u){return Number(u)}s(c,"convertNumber"),t.convertNumber=c;function l(u){return u.toLowerCase()==="true"}s(l,"convertBoolean"),t.convertBoolean=l})(ar||(ar={}));var $e={};uf($e,Gh(df()));function dd(){return new Promise(t=>{typeof setImmediate>"u"?setTimeout(t,0):setImmediate(t)})}s(dd,"delayNextTick");var vu=0,TI=10;function pd(){return vu=performance.now(),new $e.CancellationTokenSource}s(pd,"startCancelableOperation");function ry(t){TI=t}s(ry,"setInterruptionPeriod");var or=Symbol("OperationCancelled");function oa(t){return t===or}s(oa,"isOperationCancelled");async function Ye(t){if(t===$e.CancellationToken.None)return;const e=performance.now();if(e-vu>=TI&&(vu=e,await dd(),vu=performance.now()),t.isCancellationRequested)throw or}s(Ye,"interruptAndCheck");var us,Or=(us=class{constructor(){this.promise=new Promise((e,r)=>{this.resolve=n=>(e(n),this),this.reject=n=>(r(n),this)})}},s(us,"Deferred"),us),Wr,qv=(Wr=class{constructor(e,r,n,a){this._uri=e,this._languageId=r,this._version=n,this._content=a,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const r=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(r,n)}return this._content}update(e,r){for(const n of e)if(Wr.isIncremental(n)){const a=ay(n.range),i=this.offsetAt(a.start),o=this.offsetAt(a.end);this._content=this._content.substring(0,i)+n.text+this._content.substring(o,this._content.length);const c=Math.max(a.start.line,0),l=Math.max(a.end.line,0);let u=this._lineOffsets;const f=Th(n.text,!1,i);if(l-c===f.length)for(let p=0,g=f.length;p<g;p++)u[p+c+1]=f[p];else f.length<1e4?u.splice(c+1,l-c,...f):this._lineOffsets=u=u.slice(0,c+1).concat(f,u.slice(l+1));const d=n.text.length-(o-i);if(d!==0)for(let p=c+1+f.length,g=u.length;p<g;p++)u[p]=u[p]+d}else if(Wr.isFull(n))this._content=n.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=r}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Th(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);const r=this.getLineOffsets();let n=0,a=r.length;if(a===0)return{line:0,character:e};for(;n<a;){const o=Math.floor((n+a)/2);r[o]>e?a=o:n=o+1}const i=n-1;return e=this.ensureBeforeEOL(e,r[i]),{line:i,character:e-r[i]}}offsetAt(e){const r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;if(e.line<0)return 0;const n=r[e.line];if(e.character<=0)return n;const a=e.line+1<r.length?r[e.line+1]:this._content.length,i=Math.min(n+e.character,a);return this.ensureBeforeEOL(i,n)}ensureBeforeEOL(e,r){for(;e>r&&ny(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const r=e;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(e){const r=e;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}},s(Wr,"FullTextDocument"),Wr),nf;(function(t){function e(a,i,o,c){return new qv(a,i,o,c)}s(e,"create"),t.create=e;function r(a,i,o){if(a instanceof qv)return a.update(i,o),a;throw new Error("TextDocument.update: document must be created by TextDocument.create")}s(r,"update"),t.update=r;function n(a,i){const o=a.getText(),c=af(i.map(RI),(f,d)=>{const p=f.range.start.line-d.range.start.line;return p===0?f.range.start.character-d.range.start.character:p});let l=0;const u=[];for(const f of c){const d=a.offsetAt(f.range.start);if(d<l)throw new Error("Overlapping edit");d>l&&u.push(o.substring(l,d)),f.newText.length&&u.push(f.newText),l=a.offsetAt(f.range.end)}return u.push(o.substr(l)),u.join("")}s(n,"applyEdits"),t.applyEdits=n})(nf||(nf={}));function af(t,e){if(t.length<=1)return t;const r=t.length/2|0,n=t.slice(0,r),a=t.slice(r);af(n,e),af(a,e);let i=0,o=0,c=0;for(;i<n.length&&o<a.length;)e(n[i],a[o])<=0?t[c++]=n[i++]:t[c++]=a[o++];for(;i<n.length;)t[c++]=n[i++];for(;o<a.length;)t[c++]=a[o++];return t}s(af,"mergeSort");function Th(t,e,r=0){const n=e?[r]:[];for(let a=0;a<t.length;a++){const i=t.charCodeAt(a);ny(i)&&(i===13&&a+1<t.length&&t.charCodeAt(a+1)===10&&a++,n.push(r+a+1))}return n}s(Th,"computeLineOffsets");function ny(t){return t===13||t===10}s(ny,"isEOL");function ay(t){const e=t.start,r=t.end;return e.line>r.line||e.line===r.line&&e.character>r.character?{start:r,end:e}:t}s(ay,"getWellformedRange");function RI(t){const e=ay(t.range);return e!==t.range?{newText:t.newText,range:e}:t}s(RI,"getWellformedEdit");var $I;(()=>{var t={975:P=>{function S($){if(typeof $!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify($))}s(S,"e");function R($,A){for(var b,O="",M=0,L=-1,j=0,F=0;F<=$.length;++F){if(F<$.length)b=$.charCodeAt(F);else{if(b===47)break;b=47}if(b===47){if(!(L===F-1||j===1))if(L!==F-1&&j===2){if(O.length<2||M!==2||O.charCodeAt(O.length-1)!==46||O.charCodeAt(O.length-2)!==46){if(O.length>2){var te=O.lastIndexOf("/");if(te!==O.length-1){te===-1?(O="",M=0):M=(O=O.slice(0,te)).length-1-O.lastIndexOf("/"),L=F,j=0;continue}}else if(O.length===2||O.length===1){O="",M=0,L=F,j=0;continue}}A&&(O.length>0?O+="/..":O="..",M=2)}else O.length>0?O+="/"+$.slice(L+1,F):O=$.slice(L+1,F),M=F-L-1;L=F,j=0}else b===46&&j!==-1?++j:j=-1}return O}s(R,"r");var I={resolve:s(function(){for(var $,A="",b=!1,O=arguments.length-1;O>=-1&&!b;O--){var M;O>=0?M=arguments[O]:($===void 0&&($=process.cwd()),M=$),S(M),M.length!==0&&(A=M+"/"+A,b=M.charCodeAt(0)===47)}return A=R(A,!b),b?A.length>0?"/"+A:"/":A.length>0?A:"."},"resolve"),normalize:s(function($){if(S($),$.length===0)return".";var A=$.charCodeAt(0)===47,b=$.charCodeAt($.length-1)===47;return($=R($,!A)).length!==0||A||($="."),$.length>0&&b&&($+="/"),A?"/"+$:$},"normalize"),isAbsolute:s(function($){return S($),$.length>0&&$.charCodeAt(0)===47},"isAbsolute"),join:s(function(){if(arguments.length===0)return".";for(var $,A=0;A<arguments.length;++A){var b=arguments[A];S(b),b.length>0&&($===void 0?$=b:$+="/"+b)}return $===void 0?".":I.normalize($)},"join"),relative:s(function($,A){if(S($),S(A),$===A||($=I.resolve($))===(A=I.resolve(A)))return"";for(var b=1;b<$.length&&$.charCodeAt(b)===47;++b);for(var O=$.length,M=O-b,L=1;L<A.length&&A.charCodeAt(L)===47;++L);for(var j=A.length-L,F=M<j?M:j,te=-1,U=0;U<=F;++U){if(U===F){if(j>F){if(A.charCodeAt(L+U)===47)return A.slice(L+U+1);if(U===0)return A.slice(L+U)}else M>F&&($.charCodeAt(b+U)===47?te=U:U===0&&(te=0));break}var Q=$.charCodeAt(b+U);if(Q!==A.charCodeAt(L+U))break;Q===47&&(te=U)}var fe="";for(U=b+te+1;U<=O;++U)U!==O&&$.charCodeAt(U)!==47||(fe.length===0?fe+="..":fe+="/..");return fe.length>0?fe+A.slice(L+te):(L+=te,A.charCodeAt(L)===47&&++L,A.slice(L))},"relative"),_makeLong:s(function($){return $},"_makeLong"),dirname:s(function($){if(S($),$.length===0)return".";for(var A=$.charCodeAt(0),b=A===47,O=-1,M=!0,L=$.length-1;L>=1;--L)if((A=$.charCodeAt(L))===47){if(!M){O=L;break}}else M=!1;return O===-1?b?"/":".":b&&O===1?"//":$.slice(0,O)},"dirname"),basename:s(function($,A){if(A!==void 0&&typeof A!="string")throw new TypeError('"ext" argument must be a string');S($);var b,O=0,M=-1,L=!0;if(A!==void 0&&A.length>0&&A.length<=$.length){if(A.length===$.length&&A===$)return"";var j=A.length-1,F=-1;for(b=$.length-1;b>=0;--b){var te=$.charCodeAt(b);if(te===47){if(!L){O=b+1;break}}else F===-1&&(L=!1,F=b+1),j>=0&&(te===A.charCodeAt(j)?--j==-1&&(M=b):(j=-1,M=F))}return O===M?M=F:M===-1&&(M=$.length),$.slice(O,M)}for(b=$.length-1;b>=0;--b)if($.charCodeAt(b)===47){if(!L){O=b+1;break}}else M===-1&&(L=!1,M=b+1);return M===-1?"":$.slice(O,M)},"basename"),extname:s(function($){S($);for(var A=-1,b=0,O=-1,M=!0,L=0,j=$.length-1;j>=0;--j){var F=$.charCodeAt(j);if(F!==47)O===-1&&(M=!1,O=j+1),F===46?A===-1?A=j:L!==1&&(L=1):A!==-1&&(L=-1);else if(!M){b=j+1;break}}return A===-1||O===-1||L===0||L===1&&A===O-1&&A===b+1?"":$.slice(A,O)},"extname"),format:s(function($){if($===null||typeof $!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof $);return(function(A,b){var O=b.dir||b.root,M=b.base||(b.name||"")+(b.ext||"");return O?O===b.root?O+M:O+"/"+M:M})(0,$)},"format"),parse:s(function($){S($);var A={root:"",dir:"",base:"",ext:"",name:""};if($.length===0)return A;var b,O=$.charCodeAt(0),M=O===47;M?(A.root="/",b=1):b=0;for(var L=-1,j=0,F=-1,te=!0,U=$.length-1,Q=0;U>=b;--U)if((O=$.charCodeAt(U))!==47)F===-1&&(te=!1,F=U+1),O===46?L===-1?L=U:Q!==1&&(Q=1):L!==-1&&(Q=-1);else if(!te){j=U+1;break}return L===-1||F===-1||Q===0||Q===1&&L===F-1&&L===j+1?F!==-1&&(A.base=A.name=j===0&&M?$.slice(1,F):$.slice(j,F)):(j===0&&M?(A.name=$.slice(1,L),A.base=$.slice(1,F)):(A.name=$.slice(j,L),A.base=$.slice(j,F)),A.ext=$.slice(L,F)),j>0?A.dir=$.slice(0,j-1):M&&(A.dir="/"),A},"parse"),sep:"/",delimiter:":",win32:null,posix:null};I.posix=I,P.exports=I}},e={};function r(P){var S=e[P];if(S!==void 0)return S.exports;var R=e[P]={exports:{}};return t[P](R,R.exports,r),R.exports}s(r,"r"),r.d=(P,S)=>{for(var R in S)r.o(S,R)&&!r.o(P,R)&&Object.defineProperty(P,R,{enumerable:!0,get:S[R]})},r.o=(P,S)=>Object.prototype.hasOwnProperty.call(P,S),r.r=P=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(P,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(P,"__esModule",{value:!0})};var n={};let a;r.r(n),r.d(n,{URI:s(()=>p,"URI"),Utils:s(()=>we,"Utils")}),typeof process=="object"?a=process.platform==="win32":typeof navigator=="object"&&(a=navigator.userAgent.indexOf("Windows")>=0);const i=/^\w[\w\d+.-]*$/,o=/^\//,c=/^\/\//;function l(P,S){if(!P.scheme&&S)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${P.authority}", path: "${P.path}", query: "${P.query}", fragment: "${P.fragment}"}`);if(P.scheme&&!i.test(P.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(P.path){if(P.authority){if(!o.test(P.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(c.test(P.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}s(l,"a");const u="",f="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,oe=class oe{static isUri(S){return S instanceof oe||!!S&&typeof S.authority=="string"&&typeof S.fragment=="string"&&typeof S.path=="string"&&typeof S.query=="string"&&typeof S.scheme=="string"&&typeof S.fsPath=="string"&&typeof S.with=="function"&&typeof S.toString=="function"}scheme;authority;path;query;fragment;constructor(S,R,I,$,A,b=!1){typeof S=="object"?(this.scheme=S.scheme||u,this.authority=S.authority||u,this.path=S.path||u,this.query=S.query||u,this.fragment=S.fragment||u):(this.scheme=(function(O,M){return O||M?O:"file"})(S,b),this.authority=R||u,this.path=(function(O,M){switch(O){case"https":case"http":case"file":M?M[0]!==f&&(M=f+M):M=f}return M})(this.scheme,I||u),this.query=$||u,this.fragment=A||u,l(this,b))}get fsPath(){return w(this,!1)}with(S){if(!S)return this;let{scheme:R,authority:I,path:$,query:A,fragment:b}=S;return R===void 0?R=this.scheme:R===null&&(R=u),I===void 0?I=this.authority:I===null&&(I=u),$===void 0?$=this.path:$===null&&($=u),A===void 0?A=this.query:A===null&&(A=u),b===void 0?b=this.fragment:b===null&&(b=u),R===this.scheme&&I===this.authority&&$===this.path&&A===this.query&&b===this.fragment?this:new m(R,I,$,A,b)}static parse(S,R=!1){const I=d.exec(S);return I?new m(I[2]||u,re(I[4]||u),re(I[5]||u),re(I[7]||u),re(I[9]||u),R):new m(u,u,u,u,u)}static file(S){let R=u;if(a&&(S=S.replace(/\\/g,f)),S[0]===f&&S[1]===f){const I=S.indexOf(f,2);I===-1?(R=S.substring(2),S=f):(R=S.substring(2,I),S=S.substring(I)||f)}return new m("file",R,S,u,u)}static from(S){const R=new m(S.scheme,S.authority,S.path,S.query,S.fragment);return l(R,!0),R}toString(S=!1){return C(this,S)}toJSON(){return this}static revive(S){if(S){if(S instanceof oe)return S;{const R=new m(S);return R._formatted=S.external,R._fsPath=S._sep===g?S.fsPath:null,R}}return S}};s(oe,"l");let p=oe;const g=a?1:void 0,tt=class tt extends p{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=w(this,!1)),this._fsPath}toString(S=!1){return S?C(this,!0):(this._formatted||(this._formatted=C(this,!1)),this._formatted)}toJSON(){const S={$mid:1};return this._fsPath&&(S.fsPath=this._fsPath,S._sep=g),this._formatted&&(S.external=this._formatted),this.path&&(S.path=this.path),this.scheme&&(S.scheme=this.scheme),this.authority&&(S.authority=this.authority),this.query&&(S.query=this.query),this.fragment&&(S.fragment=this.fragment),S}};s(tt,"d");let m=tt;const T={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function _(P,S,R){let I,$=-1;for(let A=0;A<P.length;A++){const b=P.charCodeAt(A);if(b>=97&&b<=122||b>=65&&b<=90||b>=48&&b<=57||b===45||b===46||b===95||b===126||S&&b===47||R&&b===91||R&&b===93||R&&b===58)$!==-1&&(I+=encodeURIComponent(P.substring($,A)),$=-1),I!==void 0&&(I+=P.charAt(A));else{I===void 0&&(I=P.substr(0,A));const O=T[b];O!==void 0?($!==-1&&(I+=encodeURIComponent(P.substring($,A)),$=-1),I+=O):$===-1&&($=A)}}return $!==-1&&(I+=encodeURIComponent(P.substring($))),I!==void 0?I:P}s(_,"m");function v(P){let S;for(let R=0;R<P.length;R++){const I=P.charCodeAt(R);I===35||I===63?(S===void 0&&(S=P.substr(0,R)),S+=T[I]):S!==void 0&&(S+=P[R])}return S!==void 0?S:P}s(v,"y");function w(P,S){let R;return R=P.authority&&P.path.length>1&&P.scheme==="file"?`//${P.authority}${P.path}`:P.path.charCodeAt(0)===47&&(P.path.charCodeAt(1)>=65&&P.path.charCodeAt(1)<=90||P.path.charCodeAt(1)>=97&&P.path.charCodeAt(1)<=122)&&P.path.charCodeAt(2)===58?S?P.path.substr(1):P.path[1].toLowerCase()+P.path.substr(2):P.path,a&&(R=R.replace(/\//g,"\\")),R}s(w,"v");function C(P,S){const R=S?v:_;let I="",{scheme:$,authority:A,path:b,query:O,fragment:M}=P;if($&&(I+=$,I+=":"),(A||$==="file")&&(I+=f,I+=f),A){let L=A.indexOf("@");if(L!==-1){const j=A.substr(0,L);A=A.substr(L+1),L=j.lastIndexOf(":"),L===-1?I+=R(j,!1,!1):(I+=R(j.substr(0,L),!1,!1),I+=":",I+=R(j.substr(L+1),!1,!0)),I+="@"}A=A.toLowerCase(),L=A.lastIndexOf(":"),L===-1?I+=R(A,!1,!0):(I+=R(A.substr(0,L),!1,!0),I+=A.substr(L))}if(b){if(b.length>=3&&b.charCodeAt(0)===47&&b.charCodeAt(2)===58){const L=b.charCodeAt(1);L>=65&&L<=90&&(b=`/${String.fromCharCode(L+32)}:${b.substr(3)}`)}else if(b.length>=2&&b.charCodeAt(1)===58){const L=b.charCodeAt(0);L>=65&&L<=90&&(b=`${String.fromCharCode(L+32)}:${b.substr(2)}`)}I+=R(b,!0,!1)}return O&&(I+="?",I+=R(O,!1,!1)),M&&(I+="#",I+=S?M:_(M,!1,!1)),I}s(C,"b");function k(P){try{return decodeURIComponent(P)}catch{return P.length>3?P.substr(0,3)+k(P.substr(3)):P}}s(k,"C");const B=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function re(P){return P.match(B)?P.replace(B,(S=>k(S))):P}s(re,"w");var X=r(975);const ge=X.posix||X,Ee="/";var we;(function(P){P.joinPath=function(S,...R){return S.with({path:ge.join(S.path,...R)})},P.resolvePath=function(S,...R){let I=S.path,$=!1;I[0]!==Ee&&(I=Ee+I,$=!0);let A=ge.resolve(I,...R);return $&&A[0]===Ee&&!S.authority&&(A=A.substring(1)),S.with({path:A})},P.dirname=function(S){if(S.path.length===0||S.path===Ee)return S;let R=ge.dirname(S.path);return R.length===1&&R.charCodeAt(0)===46&&(R=""),S.with({path:R})},P.basename=function(S){return ge.basename(S.path)},P.extname=function(S){return ge.extname(S.path)}})(we||(we={})),$I=n})();var{URI:Rt,Utils:gl}=$I,it;(function(t){t.basename=gl.basename,t.dirname=gl.dirname,t.extname=gl.extname,t.joinPath=gl.joinPath,t.resolvePath=gl.resolvePath;const e=typeof process=="object"&&process?.platform==="win32";function r(o,c){return o?.toString()===c?.toString()}s(r,"equals"),t.equals=r;function n(o,c){const l=typeof o=="string"?Rt.parse(o).path:o.path,u=typeof c=="string"?Rt.parse(c).path:c.path,f=l.split("/").filter(T=>T.length>0),d=u.split("/").filter(T=>T.length>0);if(e){const T=/^[A-Z]:$/;if(f[0]&&T.test(f[0])&&(f[0]=f[0].toLowerCase()),d[0]&&T.test(d[0])&&(d[0]=d[0].toLowerCase()),f[0]!==d[0])return u.substring(1)}let p=0;for(;p<f.length&&f[p]===d[p];p++);const g="../".repeat(f.length-p),m=d.slice(p).join("/");return g+m}s(n,"relative"),t.relative=n;function a(o){return Rt.parse(o.toString()).toString()}s(a,"normalize"),t.normalize=a;function i(o,c){let l=typeof o=="string"?o:o.path,u=typeof c=="string"?c:c.path;return u.charAt(u.length-1)==="/"&&(u=u.slice(0,-1)),l.charAt(l.length-1)==="/"&&(l=l.slice(0,-1)),u===l?!0:u.length<l.length||u.charAt(l.length)!=="/"?!1:u.startsWith(l)}s(i,"contains"),t.contains=i})(it||(it={}));var fs,iy=(fs=class{constructor(){this.root={name:"",children:new Map}}normalizeUri(e){return it.normalize(e)}clear(){this.root.children.clear()}insert(e,r){const n=this.getNode(this.normalizeUri(e),!0);n.element=r}delete(e){const r=this.getNode(this.normalizeUri(e),!1);r?.parent&&r.parent.children.delete(r.name)}has(e){return this.getNode(this.normalizeUri(e),!1)?.element!==void 0}hasNode(e){return this.getNode(this.normalizeUri(e),!1)!==void 0}find(e){return this.getNode(this.normalizeUri(e),!1)?.element}findNode(e){const r=this.normalizeUri(e),n=this.getNode(r,!1);if(n)return{name:n.name,uri:it.joinPath(Rt.parse(r),n.name).toString(),element:n.element}}findChildren(e){const r=this.normalizeUri(e),n=this.getNode(r,!1);return n?Array.from(n.children.values()).map(a=>({name:a.name,uri:it.joinPath(Rt.parse(r),a.name).toString(),element:a.element})):[]}all(){return this.collectValues(this.root)}findAll(e){const r=this.getNode(it.normalize(e),!1);return r?this.collectValues(r):[]}getNode(e,r){const n=e.split("/");e.charAt(e.length-1)==="/"&&n.pop();let a=this.root;for(const i of n){let o=a.children.get(i);if(!o)if(r)o={name:i,children:new Map,parent:a},a.children.set(i,o);else return;a=o}return a}collectValues(e){const r=[];e.element&&r.push(e.element);for(const n of e.children.values())r.push(...this.collectValues(n));return r}},s(fs,"UriTrie"),fs),Z;(function(t){t[t.Changed=0]="Changed",t[t.Parsed=1]="Parsed",t[t.IndexedContent=2]="IndexedContent",t[t.ComputedScopes=3]="ComputedScopes",t[t.Linked=4]="Linked",t[t.IndexedReferences=5]="IndexedReferences",t[t.Validated=6]="Validated"})(Z||(Z={}));var ds,AI=(ds=class{constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,r=$e.CancellationToken.None){const n=await this.fileSystemProvider.readFile(e);return this.createAsync(e,n,r)}fromTextDocument(e,r,n){return r=r??Rt.parse(e.uri),$e.CancellationToken.is(n)?this.createAsync(r,e,n):this.create(r,e,n)}fromString(e,r,n){return $e.CancellationToken.is(n)?this.createAsync(r,e,n):this.create(r,e,n)}fromModel(e,r){return this.create(r,{$model:e})}create(e,r,n){if(typeof r=="string"){const a=this.parse(e,r,n);return this.createLangiumDocument(a,e,void 0,r)}else if("$model"in r){const a={value:r.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(a,e)}else{const a=this.parse(e,r.getText(),n);return this.createLangiumDocument(a,e,r)}}async createAsync(e,r,n){if(typeof r=="string"){const a=await this.parseAsync(e,r,n);return this.createLangiumDocument(a,e,void 0,r)}else{const a=await this.parseAsync(e,r.getText(),n);return this.createLangiumDocument(a,e,r)}}createLangiumDocument(e,r,n,a){let i;if(n)i={parseResult:e,uri:r,state:Z.Parsed,references:[],textDocument:n};else{const o=this.createTextDocumentGetter(r,a);i={parseResult:e,uri:r,state:Z.Parsed,references:[],get textDocument(){return o()}}}return e.value.$document=i,i}async update(e,r){const n=e.parseResult.value.$cstNode?.root.fullText,a=this.textDocuments?.get(e.uri.toString()),i=a?a.getText():await this.fileSystemProvider.readFile(e.uri);if(a)Object.defineProperty(e,"textDocument",{value:a});else{const o=this.createTextDocumentGetter(e.uri,i);Object.defineProperty(e,"textDocument",{get:o})}return n!==i&&(e.parseResult=await this.parseAsync(e.uri,i,r),e.parseResult.value.$document=e),e.state=Z.Parsed,e}parse(e,r,n){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(r,n)}parseAsync(e,r,n){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(r,n)}createTextDocumentGetter(e,r){const n=this.serviceRegistry;let a;return()=>a??(a=nf.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,r??""))}},s(ds,"DefaultLangiumDocumentFactory"),ds),ps,EI=(ps=class{constructor(e){this.documentTrie=new iy,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return ue(this.documentTrie.all())}addDocument(e){const r=e.uri.toString();if(this.documentTrie.has(r))throw new Error(`A document with the URI '${r}' is already present.`);this.documentTrie.insert(r,e)}getDocument(e){const r=e.toString();return this.documentTrie.find(r)}getDocuments(e){const r=e.toString();return this.documentTrie.findAll(r)}async getOrCreateDocument(e,r){let n=this.getDocument(e);return n||(n=await this.langiumDocumentFactory.fromUri(e,r),this.addDocument(n),n)}createDocument(e,r,n){if(n)return this.langiumDocumentFactory.fromString(r,e,n).then(a=>(this.addDocument(a),a));{const a=this.langiumDocumentFactory.fromString(r,e);return this.addDocument(a),a}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){const r=e.toString(),n=this.documentTrie.find(r);return n&&this.documentBuilder().resetToState(n,Z.Changed),n}deleteDocument(e){const r=e.toString(),n=this.documentTrie.find(r);return n&&(n.state=Z.Changed,this.documentTrie.delete(r)),n}deleteDocuments(e){const r=e.toString(),n=this.documentTrie.findAll(r);for(const a of n)a.state=Z.Changed;return this.documentTrie.delete(r),n}},s(ps,"DefaultLangiumDocuments"),ps),hn=Symbol("RefResolving"),hs,_I=(hs=class{constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async link(e,r=$e.CancellationToken.None){if(this.profiler?.isActive("linking")){const n=this.profiler.createTask("linking",this.languageId);n.start();try{for(const a of Kt(e.parseResult.value))await Ye(r),No(a).forEach(i=>{const o=`${a.$type}:${i.property}`;n.startSubTask(o);try{this.doLink(i,e)}finally{n.stopSubTask(o)}})}finally{n.stop()}}else for(const n of Kt(e.parseResult.value))await Ye(r),No(n).forEach(a=>this.doLink(a,e))}doLink(e,r){const n=e.reference;if("_ref"in n&&n._ref===void 0){n._ref=hn;try{const a=this.getCandidate(e);if(yn(a))n._ref=a;else{n._nodeDescription=a;const i=this.loadAstNode(a);n._ref=i??this.createLinkingError(e,a)}}catch(a){console.error(`An error occurred while resolving reference to '${n.$refText}':`,a);const i=a.message??String(a);n._ref={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${i}`}}r.references.push(n)}else if("_items"in n&&n._items===void 0){n._items=hn;try{const a=this.getCandidates(e),i=[];if(yn(a))n._linkingError=a;else for(const o of a){const c=this.loadAstNode(o);c&&i.push({ref:c,$nodeDescription:o})}n._items=i}catch(a){n._linkingError={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${a}`},n._items=[]}r.references.push(n)}}unlink(e){for(const r of e.references)"_ref"in r?(r._ref=void 0,delete r._nodeDescription):"_items"in r&&(r._items=void 0,delete r._linkingError);e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){const n=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct(a=>`${a.documentUri}#${a.path}`).toArray();return n.length>0?n:this.createLinkingError(e)}buildReference(e,r,n,a){const i=this,o={$refNode:n,$refText:a,_ref:void 0,get ref(){if(Be(this._ref))return this._ref;if(Bh(this._nodeDescription)){const c=i.loadAstNode(this._nodeDescription);this._ref=c??i.createLinkingError({reference:o,container:e,property:r},this._nodeDescription)}else if(this._ref===void 0){this._ref=hn;const c=Fa(e).$document,l=i.getLinkedNode({reference:o,container:e,property:r});if(l.error&&c&&c.state<Z.ComputedScopes)return this._ref=void 0;this._ref=l.node??l.error,this._nodeDescription=l.descr,c?.references.push(this)}else this._ref===hn&&i.throwCyclicReferenceError(e,r,a);return Be(this._ref)?this._ref:void 0},get $nodeDescription(){return this._nodeDescription},get error(){return yn(this._ref)?this._ref:void 0}};return o}buildMultiReference(e,r,n,a){const i=this,o={$refNode:n,$refText:a,_items:void 0,get items(){if(Array.isArray(this._items))return this._items;if(this._items===void 0){this._items=hn;const c=Fa(e).$document,l=i.getCandidates({reference:o,container:e,property:r}),u=[];if(yn(l))this._linkingError=l;else for(const f of l){const d=i.loadAstNode(f);d&&u.push({ref:d,$nodeDescription:f})}this._items=u,c?.references.push(this)}else this._items===hn&&i.throwCyclicReferenceError(e,r,a);return Array.isArray(this._items)?this._items:[]},get error(){if(this._linkingError)return this._linkingError;if(!(this.items.length>0))return this._linkingError=i.createLinkingError({reference:o,container:e,property:r})}};return o}throwCyclicReferenceError(e,r,n){throw new Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(e)}/${r} (symbol '${n}')`)}getLinkedNode(e){try{const r=this.getCandidate(e);if(yn(r))return{error:r};const n=this.loadAstNode(r);return n?{node:n,descr:r}:{descr:r,error:this.createLinkingError(e,r)}}catch(r){console.error(`An error occurred while resolving reference to '${e.reference.$refText}':`,r);const n=r.message??String(r);return{error:{info:e,message:`An error occurred while resolving reference to '${e.reference.$refText}': ${n}`}}}}loadAstNode(e){if(e.node)return e.node;const r=this.langiumDocuments().getDocument(e.documentUri);if(r)return this.astNodeLocator.getAstNode(r.parseResult.value,e.path)}createLinkingError(e,r){const n=Fa(e.container).$document;n&&n.state<Z.ComputedScopes&&console.warn(`Attempted reference resolution before document reached ComputedScopes state (${n.uri}).`);const a=this.reflection.getReferenceType(e);return{info:e,message:`Could not resolve reference to ${a} named '${e.reference.$refText}'.`,targetDescription:r}}},s(hs,"DefaultLinker"),hs);function sy(t){return typeof t.name=="string"}s(sy,"isNamed");var ms,CI=(ms=class{getName(e){if(sy(e))return e.name}getNameNode(e){return Cf(e.$cstNode,"name")}},s(ms,"DefaultNameProvider"),ms),gs,SI=(gs=class{constructor(e){this.nameProvider=e.references.NameProvider,this.index=e.shared.workspace.IndexManager,this.nodeLocator=e.workspace.AstNodeLocator,this.documents=e.shared.workspace.LangiumDocuments,this.hasMultiReference=Kt(e.Grammar).some(r=>qn(r)&&r.isMulti)}findDeclarations(e){if(e){const r=Lm(e),n=e.astNode;if(r&&n){const a=n[r.feature];if(at(a)||lr(a))return Au(a);if(Array.isArray(a)){for(const i of a)if((at(i)||lr(i))&&i.$refNode&&i.$refNode.offset<=e.offset&&i.$refNode.end>=e.end)return Au(i)}}if(n){const a=this.nameProvider.getNameNode(n);if(a&&(a===e||pm(e,a)))return this.getSelfNodes(n)}}return[]}getSelfNodes(e){if(this.hasMultiReference){const r=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),n=this.getNodeFromReferenceDescription(r.head());if(n){for(const a of No(n))if(lr(a.reference)&&a.reference.items.some(i=>i.ref===e))return a.reference.items.map(i=>i.ref)}return[e]}else return[e]}getNodeFromReferenceDescription(e){if(!e)return;const r=this.documents.getDocument(e.sourceUri);if(r)return this.nodeLocator.getAstNode(r.parseResult.value,e.sourcePath)}findDeclarationNodes(e){const r=this.findDeclarations(e),n=[];for(const a of r){const i=this.nameProvider.getNameNode(a)??a.$cstNode;i&&n.push(i)}return n}findReferences(e,r){const n=[];r.includeDeclaration&&n.push(...this.getSelfReferences(e));let a=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return r.documentUri&&(a=a.filter(i=>it.equals(i.sourceUri,r.documentUri))),n.push(...a),ue(n)}getSelfReferences(e){const r=this.getSelfNodes(e),n=[];for(const a of r){const i=this.nameProvider.getNameNode(a);if(i){const o=Bt(a),c=this.nodeLocator.getAstNodePath(a);n.push({sourceUri:o.uri,sourcePath:c,targetUri:o.uri,targetPath:c,segment:Oo(i),local:!0})}}return n}},s(gs,"DefaultReferences"),gs),ys,Lr=(ys=class{constructor(e){if(this.map=new Map,e)for(const[r,n]of e)this.add(r,n)}get size(){return Jl.sum(ue(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,r){if(r===void 0)return this.map.delete(e);{const n=this.map.get(e);if(n){const a=n.indexOf(r);if(a>=0)return n.length===1?this.map.delete(e):n.splice(a,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){const r=this.map.get(e);return r?ue(r):bo}has(e,r){if(r===void 0)return this.map.has(e);{const n=this.map.get(e);return n?n.indexOf(r)>=0:!1}}add(e,r){return this.map.has(e)?this.map.get(e).push(r):this.map.set(e,[r]),this}addAll(e,r){return this.map.has(e)?this.map.get(e).push(...r):this.map.set(e,Array.from(r)),this}forEach(e){this.map.forEach((r,n)=>r.forEach(a=>e(a,n,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return ue(this.map.entries()).flatMap(([e,r])=>r.map(n=>[e,n]))}keys(){return ue(this.map.keys())}values(){return ue(this.map.values()).flat()}entriesGroupedByKey(){return ue(this.map.entries())}},s(ys,"MultiMap"),ys),vs,sf=(vs=class{get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(const[r,n]of e)this.set(r,n)}clear(){this.map.clear(),this.inverse.clear()}set(e,r){return this.map.set(e,r),this.inverse.set(r,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){const r=this.map.get(e);return r!==void 0?(this.map.delete(e),this.inverse.delete(r),!0):!1}},s(vs,"BiMap"),vs),Ts,bI=(Ts=class{constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,r=$e.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,r)}async collectExportedSymbolsForNode(e,r,n=gc,a=$e.CancellationToken.None){const i=[];this.addExportedSymbol(e,i,r);for(const o of n(e))await Ye(a),this.addExportedSymbol(o,i,r);return i}addExportedSymbol(e,r,n){const a=this.nameProvider.getName(e);a&&r.push(this.descriptions.createDescription(e,a,n))}async collectLocalSymbols(e,r=$e.CancellationToken.None){const n=e.parseResult.value,a=new Lr;for(const i of Dr(n))await Ye(r),this.addLocalSymbol(i,e,a);return a}addLocalSymbol(e,r,n){const a=e.$container;if(a){const i=this.nameProvider.getName(e);i&&n.add(a,this.descriptions.createDescription(e,i,r))}}},s(Ts,"DefaultScopeComputation"),Ts),Rs,Rh=(Rs=class{constructor(e,r,n){this.elements=e,this.outerScope=r,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.find(a=>a.name.toLowerCase()===r):this.elements.find(a=>a.name===e);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.filter(a=>a.name.toLowerCase()===r):this.elements.filter(a=>a.name===e);return(this.concatOuterScope||n.isEmpty())&&this.outerScope?n.concat(this.outerScope.getElements(e)):n}},s(Rs,"StreamScope"),Rs),$s,Dj=($s=class{constructor(e,r,n){this.elements=new Map,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(const a of e){const i=this.caseInsensitive?a.name.toLowerCase():a.name;this.elements.set(i,a)}this.outerScope=r}getElement(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(r);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(r),a=n?[n]:[];return(this.concatOuterScope||a.length>0)&&this.outerScope?ue(a).concat(this.outerScope.getElements(e)):ue(a)}getAllElements(){let e=ue(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},s($s,"MapScope"),$s),As,wI=(As=class{constructor(e,r,n){this.elements=new Lr,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(const a of e){const i=this.caseInsensitive?a.name.toLowerCase():a.name;this.elements.add(i,a)}this.outerScope=r}getElement(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(r)[0];if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){const r=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(r);return(this.concatOuterScope||n.length===0)&&this.outerScope?ue(n).concat(this.outerScope.getElements(e)):ue(n)}getAllElements(){let e=ue(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},s(As,"MultiMapScope"),As),Mj={getElement(){},getElements(){return bo},getAllElements(){return bo}},Es,hd=(Es=class{constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}},s(Es,"DisposableCache"),Es),_s,oy=(_s=class extends hd{constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,r){this.throwIfDisposed(),this.cache.set(e,r)}get(e,r){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(r){const n=r();return this.cache.set(e,n),n}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},s(_s,"SimpleCache"),_s),Cs,md=(Cs=class extends hd{constructor(e){super(),this.cache=new Map,this.converter=e??(r=>r)}has(e,r){return this.throwIfDisposed(),this.cacheForContext(e).has(r)}set(e,r,n){this.throwIfDisposed(),this.cacheForContext(e).set(r,n)}get(e,r,n){this.throwIfDisposed();const a=this.cacheForContext(e);if(a.has(r))return a.get(r);if(n){const i=n();return a.set(r,i),i}else return}delete(e,r){return this.throwIfDisposed(),this.cacheForContext(e).delete(r)}clear(e){if(this.throwIfDisposed(),e){const r=this.converter(e);this.cache.delete(r)}else this.cache.clear()}cacheForContext(e){const r=this.converter(e);let n=this.cache.get(r);return n||(n=new Map,this.cache.set(r,n)),n}},s(Cs,"ContextCache"),Cs),Ss,II=(Ss=class extends md{constructor(e,r){super(n=>n.toString()),r?(this.toDispose.push(e.workspace.DocumentBuilder.onDocumentPhase(r,n=>{this.clear(n.uri.toString())})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((n,a)=>{for(const i of a)this.clear(i)}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((n,a)=>{const i=n.concat(a);for(const o of i)this.clear(o)}))}},s(Ss,"DocumentCache"),Ss),bs,ly=(bs=class extends oy{constructor(e,r){super(),r?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(r,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((n,a)=>{a.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},s(bs,"WorkspaceCache"),bs),ws,NI=(ws=class{constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new ly(e.shared)}getScope(e){const r=[],n=this.reflection.getReferenceType(e),a=Bt(e.container).localSymbols;if(a){let o=e.container;do a.has(o)&&r.push(a.getStream(o).filter(c=>this.reflection.isSubtype(c.type,n))),o=o.$container;while(o)}let i=this.getGlobalScope(n,e);for(let o=r.length-1;o>=0;o--)i=this.createScope(r[o],i);return i}createScope(e,r,n){return new Rh(ue(e),r,n)}createScopeForNodes(e,r,n){const a=ue(e).map(i=>{const o=this.nameProvider.getName(i);if(o)return this.descriptions.createDescription(i,o)}).nonNullable();return new Rh(a,r,n)}getGlobalScope(e,r){return this.globalScopeCache.get(e,()=>new wI(this.indexManager.allElements(e)))}},s(ws,"DefaultScopeProvider"),ws);function cy(t){return typeof t.$comment=="string"}s(cy,"isAstNodeWithComment");function $h(t){return typeof t=="object"&&!!t&&("$ref"in t||"$error"in t)}s($h,"isIntermediateReference");var Is,kI=(Is=class{constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,r){const n=r??{},a=r?.replacer,i=s((c,l)=>this.replacer(c,l,n),"defaultReplacer"),o=a?(c,l)=>a(c,l,i):i;try{return this.currentDocument=Bt(e),JSON.stringify(e,o,r?.space)}finally{this.currentDocument=void 0}}deserialize(e,r){const n=r??{},a=JSON.parse(e);return this.linkNode(a,a,n),a}replacer(e,r,{refText:n,sourceText:a,textRegions:i,comments:o,uriConverter:c}){if(!this.ignoreProperties.has(e))if(at(r)){const l=r.ref,u=n?r.$refText:void 0;if(l){const f=Bt(l);let d="";this.currentDocument&&this.currentDocument!==f&&(c?d=c(f.uri,l):d=f.uri.toString());const p=this.astNodeLocator.getAstNodePath(l);return{$ref:`${d}#${p}`,$refText:u}}else return{$error:r.error?.message??"Could not resolve reference",$refText:u}}else if(lr(r)){const l=n?r.$refText:void 0,u=[];for(const f of r.items){const d=f.ref,p=Bt(f.ref);let g="";this.currentDocument&&this.currentDocument!==p&&(c?g=c(p.uri,d):g=p.uri.toString());const m=this.astNodeLocator.getAstNodePath(d);u.push(`${g}#${m}`)}return{$refs:u,$refText:l}}else if(Be(r)){let l;if(i&&(l=this.addAstNodeRegionWithAssignmentsTo({...r}),(!e||r.$document)&&l?.$textRegion&&(l.$textRegion.documentURI=this.currentDocument?.uri.toString())),a&&!e&&(l??(l={...r}),l.$sourceText=r.$cstNode?.text),o){l??(l={...r});const u=this.commentProvider.getComment(r);u&&(l.$comment=u.replace(/\r/g,""))}return l??r}else return r}addAstNodeRegionWithAssignmentsTo(e){const r=s(n=>({offset:n.offset,end:n.end,length:n.length,range:n.range}),"createDocumentSegment");if(e.$cstNode){const n=e.$textRegion=r(e.$cstNode),a=n.assignments={};return Object.keys(e).filter(i=>!i.startsWith("$")).forEach(i=>{const o=Pm(e.$cstNode,i).map(r);o.length!==0&&(a[i]=o)}),e}}linkNode(e,r,n,a,i,o){for(const[l,u]of Object.entries(e))if(Array.isArray(u))for(let f=0;f<u.length;f++){const d=u[f];$h(d)?u[f]=this.reviveReference(e,l,r,d,n):Be(d)&&this.linkNode(d,r,n,e,l,f)}else $h(u)?e[l]=this.reviveReference(e,l,r,u,n):Be(u)&&this.linkNode(u,r,n,e,l);const c=e;c.$container=a,c.$containerProperty=i,c.$containerIndex=o}reviveReference(e,r,n,a,i){let o=a.$refText,c=a.$error,l;if(a.$ref){const u=this.getRefNode(n,a.$ref,i.uriConverter);if(Be(u))return o||(o=this.nameProvider.getName(u)),{$refText:o??"",ref:u};c=u}else if(a.$refs){const u=[];for(const f of a.$refs){const d=this.getRefNode(n,f,i.uriConverter);Be(d)&&u.push({ref:d})}if(u.length===0)l={$refText:o??"",items:u},c??(c="Could not resolve multi-reference");else return{$refText:o??"",items:u}}if(c)return l??(l={$refText:o??"",ref:void 0}),l.error={info:{container:e,property:r,reference:l},message:c},l}getRefNode(e,r,n){try{const a=r.indexOf("#");if(a===0){const l=this.astNodeLocator.getAstNode(e,r.substring(1));return l||"Could not resolve path: "+r}if(a<0){const l=n?n(r):Rt.parse(r),u=this.langiumDocuments.getDocument(l);return u?u.parseResult.value:"Could not find document for URI: "+r}const i=n?n(r.substring(0,a)):Rt.parse(r.substring(0,a)),o=this.langiumDocuments.getDocument(i);if(!o)return"Could not find document for URI: "+r;if(a===r.length-1)return o.parseResult.value;const c=this.astNodeLocator.getAstNode(o.parseResult.value,r.substring(a+1));return c||"Could not resolve URI: "+r}catch(a){return String(a)}}},s(Is,"DefaultJsonSerializer"),Is),Ns,PI=(Ns=class{get map(){return this.fileExtensionMap}constructor(e){this.languageIdMap=new Map,this.fileExtensionMap=new Map,this.fileNameMap=new Map,this.textDocuments=e?.workspace.TextDocuments}register(e){const r=e.LanguageMetaData;for(const n of r.fileExtensions)this.fileExtensionMap.has(n)&&console.warn(`The file extension ${n} is used by multiple languages. It is now assigned to '${r.languageId}'.`),this.fileExtensionMap.set(n,e);if(r.fileNames)for(const n of r.fileNames)this.fileNameMap.has(n)&&console.warn(`The file name ${n} is used by multiple languages. It is now assigned to '${r.languageId}'.`),this.fileNameMap.set(n,e);this.languageIdMap.set(r.languageId,e)}getServices(e){if(this.languageIdMap.size===0)throw new Error("The service registry is empty. Use `register` to register the services of a language.");const r=this.textDocuments?.get(e)?.languageId;if(r!==void 0){const o=this.languageIdMap.get(r);if(o)return o}const n=it.extname(e),a=it.basename(e),i=this.fileNameMap.get(a)??this.fileExtensionMap.get(n);if(!i)throw r?new Error(`The service registry contains no services for the extension '${n}' for language '${r}'.`):new Error(`The service registry contains no services for the extension '${n}'.`);return i}hasServices(e){try{return this.getServices(e),!0}catch{return!1}}get all(){return Array.from(this.languageIdMap.values())}},s(Ns,"DefaultServiceRegistry"),Ns);function kn(t){return{code:t}}s(kn,"diagnosticData");var of;(function(t){t.defaults=["fast","slow","built-in"],t.all=t.defaults})(of||(of={}));var ks,OI=(ks=class{constructor(e){this.entries=new Lr,this.knownCategories=new Set(of.defaults),this.entriesBefore=[],this.entriesAfter=[],this.reflection=e.shared.AstReflection}register(e,r=this,n="fast"){if(n==="built-in")throw new Error("The 'built-in' category is reserved for lexer, parser, and linker errors.");this.knownCategories.add(n);for(const[a,i]of Object.entries(e)){const o=i;if(Array.isArray(o))for(const c of o){const l={check:this.wrapValidationException(c,r),category:n};this.addEntry(a,l)}else if(typeof o=="function"){const c={check:this.wrapValidationException(o,r),category:n};this.addEntry(a,c)}else Qr()}}wrapValidationException(e,r){return async(n,a,i)=>{await this.handleException(()=>e.call(r,n,a,i),"An error occurred during validation",a,n)}}async handleException(e,r,n,a){try{await e()}catch(i){if(oa(i))throw i;console.error(`${r}:`,i),i instanceof Error&&i.stack&&console.error(i.stack);const o=i instanceof Error?i.message:String(i);n("error",`${r}: ${o}`,{node:a})}}addEntry(e,r){if(e==="AstNode"){this.entries.add("AstNode",r);return}for(const n of this.reflection.getAllSubTypes(e))this.entries.add(n,r)}getChecks(e,r){let n=ue(this.entries.get(e)).concat(this.entries.get("AstNode"));return r&&(n=n.filter(a=>r.includes(a.category))),n.map(a=>a.check)}registerBeforeDocument(e,r=this){this.entriesBefore.push(this.wrapPreparationException(e,"An error occurred during set-up of the validation",r))}registerAfterDocument(e,r=this){this.entriesAfter.push(this.wrapPreparationException(e,"An error occurred during tear-down of the validation",r))}wrapPreparationException(e,r,n){return async(a,i,o,c)=>{await this.handleException(()=>e.call(n,a,i,o,c),r,i,a)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},s(ks,"ValidationRegistry"),ks),LI=Object.freeze({validateNode:!0,validateChildren:!0}),Ps,DI=(Ps=class{constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async validateDocument(e,r={},n=$e.CancellationToken.None){const a=e.parseResult,i=[];if(await Ye(n),(!r.categories||r.categories.includes("built-in"))&&(this.processLexingErrors(a,i,r),r.stopAfterLexingErrors&&i.some(o=>o.data?.code===Ot.LexingError)||(this.processParsingErrors(a,i,r),r.stopAfterParsingErrors&&i.some(o=>o.data?.code===Ot.ParsingError))||(this.processLinkingErrors(e,i,r),r.stopAfterLinkingErrors&&i.some(o=>o.data?.code===Ot.LinkingError))))return i;try{i.push(...await this.validateAst(a.value,r,n))}catch(o){if(oa(o))throw o;console.error("An error occurred during validation:",o)}return await Ye(n),i}processLexingErrors(e,r,n){const a=[...e.lexerErrors,...e.lexerReport?.diagnostics??[]];for(const i of a){const o=i.severity??"error",c={severity:Yl(o),range:{start:{line:i.line-1,character:i.column-1},end:{line:i.line-1,character:i.column+i.length-1}},message:i.message,data:fy(o),source:this.getSource()};r.push(c)}}processParsingErrors(e,r,n){for(const a of e.parserErrors){let i;if(isNaN(a.token.startOffset)){if("previousToken"in a){const o=a.previousToken;if(isNaN(o.startOffset)){const c={line:0,character:0};i={start:c,end:c}}else{const c={line:o.endLine-1,character:o.endColumn};i={start:c,end:c}}}}else i=Zl(a.token);if(i){const o={severity:Yl("error"),range:i,message:a.message,data:kn(Ot.ParsingError),source:this.getSource()};r.push(o)}}}processLinkingErrors(e,r,n){for(const a of e.references){const i=a.error;if(i){const o={node:i.info.container,range:a.$refNode?.range,property:i.info.property,index:i.info.index,data:{code:Ot.LinkingError,containerType:i.info.container.$type,property:i.info.property,refText:i.info.reference.$refText}};r.push(this.toDiagnostic("error",i.message,o))}}}async validateAst(e,r,n=$e.CancellationToken.None){const a=[],i=s((o,c,l)=>{a.push(this.toDiagnostic(o,c,l))},"acceptor");return await this.validateAstBefore(e,r,i,n),await this.validateAstNodes(e,r,i,n),await this.validateAstAfter(e,r,i,n),a}async validateAstBefore(e,r,n,a=$e.CancellationToken.None){const i=this.validationRegistry.checksBefore;for(const o of i)await Ye(a),await o(e,n,r.categories??[],a)}async validateAstNodes(e,r,n,a=$e.CancellationToken.None){if(this.profiler?.isActive("validating")){const i=this.profiler.createTask("validating",this.languageId);i.start();try{const o=Kt(e).iterator();for(const c of o){i.startSubTask(c.$type);const l=this.validateSingleNodeOptions(c,r);if(l.validateNode)try{const u=this.validationRegistry.getChecks(c.$type,r.categories);for(const f of u)await f(c,n,a)}finally{i.stopSubTask(c.$type)}l.validateChildren||o.prune()}}finally{i.stop()}}else{const i=Kt(e).iterator();for(const o of i){await Ye(a);const c=this.validateSingleNodeOptions(o,r);if(c.validateNode){const l=this.validationRegistry.getChecks(o.$type,r.categories);for(const u of l)await u(o,n,a)}c.validateChildren||i.prune()}}}validateSingleNodeOptions(e,r){return LI}async validateAstAfter(e,r,n,a=$e.CancellationToken.None){const i=this.validationRegistry.checksAfter;for(const o of i)await Ye(a),await o(e,n,r.categories??[],a)}toDiagnostic(e,r,n){return{message:r,range:uy(n),severity:Yl(e),code:n.code,codeDescription:n.codeDescription,tags:n.tags,relatedInformation:n.relatedInformation,data:n.data,source:this.getSource()}}getSource(){return this.metadata.languageId}},s(Ps,"DefaultDocumentValidator"),Ps);function uy(t){if(t.range)return t.range;let e;return typeof t.property=="string"?e=Cf(t.node.$cstNode,t.property,t.index):typeof t.keyword=="string"&&(e=Om(t.node.$cstNode,t.keyword,t.index)),e??(e=t.node.$cstNode),e?e.range:{start:{line:0,character:0},end:{line:0,character:0}}}s(uy,"getDiagnosticRange");function Yl(t){switch(t){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+t)}}s(Yl,"toDiagnosticSeverity");function fy(t){switch(t){case"error":return kn(Ot.LexingError);case"warning":return kn(Ot.LexingWarning);case"info":return kn(Ot.LexingInfo);case"hint":return kn(Ot.LexingHint);default:throw new Error("Invalid diagnostic severity: "+t)}}s(fy,"toDiagnosticData");var Ot;(function(t){t.LexingError="lexing-error",t.LexingWarning="lexing-warning",t.LexingInfo="lexing-info",t.LexingHint="lexing-hint",t.ParsingError="parsing-error",t.LinkingError="linking-error"})(Ot||(Ot={}));var Os,MI=(Os=class{constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,r,n){const a=n??Bt(e);r??(r=this.nameProvider.getName(e));const i=this.astNodeLocator.getAstNodePath(e);if(!r)throw new Error(`Node at path ${i} has no name.`);let o;const c=s(()=>o??(o=Oo(this.nameProvider.getNameNode(e)??e.$cstNode)),"nameSegmentGetter");return{node:e,name:r,get nameSegment(){return c()},selectionSegment:Oo(e.$cstNode),type:e.$type,documentUri:a.uri,path:i}}},s(Os,"DefaultAstNodeDescriptionProvider"),Os),Ls,xI=(Ls=class{constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,r=$e.CancellationToken.None){const n=[],a=e.parseResult.value;for(const i of Kt(a))await Ye(r),No(i).forEach(o=>{o.reference.error||n.push(...this.createInfoDescriptions(o))});return n}createInfoDescriptions(e){const r=e.reference;if(r.error||!r.$refNode)return[];let n=[];at(r)&&r.$nodeDescription?n=[r.$nodeDescription]:lr(r)&&(n=r.items.map(l=>l.$nodeDescription).filter(l=>l!==void 0));const a=Bt(e.container).uri,i=this.nodeLocator.getAstNodePath(e.container),o=[],c=Oo(r.$refNode);for(const l of n)o.push({sourceUri:a,sourcePath:i,targetUri:l.documentUri,targetPath:l.path,segment:c,local:it.equals(l.documentUri,a)});return o}},s(Ls,"DefaultReferenceDescriptionProvider"),Ls),Ds,FI=(Ds=class{constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){const r=this.getAstNodePath(e.$container),n=this.getPathSegment(e);return r+this.segmentSeparator+n}return""}getPathSegment({$containerProperty:e,$containerIndex:r}){if(!e)throw new Error("Missing '$containerProperty' in AST node.");return r!==void 0?e+this.indexSeparator+r:e}getAstNode(e,r){return r.split(this.segmentSeparator).reduce((a,i)=>{if(!a||i.length===0)return a;const o=i.indexOf(this.indexSeparator);if(o>0){const c=i.substring(0,o),l=parseInt(i.substring(o+1));return a[c]?.[l]}return a[i]},e)}},s(Ds,"DefaultAstNodeLocator"),Ds),gd={};uf(gd,Gh(Go()));var Ms,GI=(Ms=class{constructor(e){this._ready=new Or,this.onConfigurationSectionUpdateEmitter=new gd.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){this.workspaceConfig=e.capabilities.workspace?.configuration??!1}async initialized(e){if(this.workspaceConfig){if(e.register){const r=this.serviceRegistry.all;e.register({section:r.map(n=>this.toSectionName(n.LanguageMetaData.languageId))})}if(e.fetchConfiguration){const r=this.serviceRegistry.all.map(a=>({section:this.toSectionName(a.LanguageMetaData.languageId)})),n=await e.fetchConfiguration(r);r.forEach((a,i)=>{this.updateSectionConfiguration(a.section,n[i])})}}this._ready.resolve()}updateConfiguration(e){typeof e.settings!="object"||e.settings===null||Object.entries(e.settings).forEach(([r,n])=>{this.updateSectionConfiguration(r,n),this.onConfigurationSectionUpdateEmitter.fire({section:r,configuration:n})})}updateSectionConfiguration(e,r){this.settings[e]=r}async getConfiguration(e,r){await this.ready;const n=this.toSectionName(e);if(this.settings[n])return this.settings[n][r]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},s(Ms,"DefaultConfigurationProvider"),Ms),Uc=Gh(gk()),Ln;(function(t){function e(r){return{dispose:s(async()=>await r(),"dispose")}}s(e,"create"),t.create=e})(Ln||(Ln={}));var xs,jI=(xs=class{constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new Lr,this.documentPhaseListeners=new Lr,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=Z.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.fileSystemProvider=e.workspace.FileSystemProvider,this.workspaceManager=()=>e.workspace.WorkspaceManager,this.serviceRegistry=e.ServiceRegistry}async build(e,r={},n=$e.CancellationToken.None){for(const a of e){const i=a.uri.toString();if(a.state===Z.Validated){if(typeof r.validation=="boolean"&&r.validation)this.resetToState(a,Z.IndexedReferences);else if(typeof r.validation=="object"){const o=this.findMissingValidationCategories(a,r);o.length>0&&(this.buildState.set(i,{completed:!1,options:{validation:{categories:o}},result:this.buildState.get(i)?.result}),a.state=Z.IndexedReferences)}}else this.buildState.delete(i)}this.currentState=Z.Changed,await this.emitUpdate(e.map(a=>a.uri),[]),await this.buildDocuments(e,r,n)}async update(e,r,n=$e.CancellationToken.None){this.currentState=Z.Changed;const a=[];for(const l of r){const u=this.langiumDocuments.deleteDocuments(l);for(const f of u)a.push(f.uri),this.cleanUpDeleted(f)}const i=(await Promise.all(e.map(l=>this.findChangedUris(l)))).flat();for(const l of i){let u=this.langiumDocuments.getDocument(l);u===void 0&&(u=this.langiumDocumentFactory.fromModel({$type:"INVALID"},l),u.state=Z.Changed,this.langiumDocuments.addDocument(u)),this.resetToState(u,Z.Changed)}const o=ue(i).concat(a).map(l=>l.toString()).toSet();this.langiumDocuments.all.filter(l=>!o.has(l.uri.toString())&&this.shouldRelink(l,o)).forEach(l=>this.resetToState(l,Z.ComputedScopes)),await this.emitUpdate(i,a),await Ye(n);const c=this.sortDocuments(this.langiumDocuments.all.filter(l=>l.state<Z.Validated||!this.buildState.get(l.uri.toString())?.completed||this.resultsAreIncomplete(l,this.updateBuildOptions)).toArray());await this.buildDocuments(c,this.updateBuildOptions,n)}resultsAreIncomplete(e,r){return this.findMissingValidationCategories(e,r).length>=1}findMissingValidationCategories(e,r){const n=this.buildState.get(e.uri.toString()),a=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),i=n?.result?.validationChecks?new Set(n?.result?.validationChecks):n?.completed?a:new Set,o=r===void 0||r.validation===!0?a:typeof r.validation=="object"?r.validation.categories??a:[];return ue(o).filter(c=>!i.has(c)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{const n=await this.fileSystemProvider.stat(e);if(n.isDirectory)return await this.workspaceManager().searchFolder(e);if(this.workspaceManager().shouldIncludeEntry(n))return[e]}catch{}return[]}async emitUpdate(e,r){await Promise.all(this.updateListeners.map(n=>n(e,r)))}sortDocuments(e){let r=0,n=e.length-1;for(;r<n;){for(;r<e.length&&this.hasTextDocument(e[r]);)r++;for(;n>=0&&!this.hasTextDocument(e[n]);)n--;r<n&&([e[r],e[n]]=[e[n],e[r]])}return e}hasTextDocument(e){return!!this.textDocuments?.get(e.uri)}shouldRelink(e,r){return e.references.some(n=>n.error!==void 0)?!0:this.indexManager.isAffected(e,r)}onUpdate(e){return this.updateListeners.push(e),Ln.create(()=>{const r=this.updateListeners.indexOf(e);r>=0&&this.updateListeners.splice(r,1)})}resetToState(e,r){switch(r){case Z.Changed:case Z.Parsed:this.indexManager.removeContent(e.uri);case Z.IndexedContent:e.localSymbols=void 0;case Z.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case Z.Linked:this.indexManager.removeReferences(e.uri);case Z.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case Z.Validated:}e.state>r&&(e.state=r)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=Z.Changed}async buildDocuments(e,r,n){this.prepareBuild(e,r),await this.runCancelable(e,Z.Parsed,n,o=>this.langiumDocumentFactory.update(o,n)),await this.runCancelable(e,Z.IndexedContent,n,o=>this.indexManager.updateContent(o,n)),await this.runCancelable(e,Z.ComputedScopes,n,async o=>{const c=this.serviceRegistry.getServices(o.uri).references.ScopeComputation;o.localSymbols=await c.collectLocalSymbols(o,n)});const a=e.filter(o=>this.shouldLink(o));await this.runCancelable(a,Z.Linked,n,o=>this.serviceRegistry.getServices(o.uri).references.Linker.link(o,n)),await this.runCancelable(a,Z.IndexedReferences,n,o=>this.indexManager.updateReferences(o,n));const i=e.filter(o=>this.shouldValidate(o)?!0:(this.markAsCompleted(o),!1));await this.runCancelable(i,Z.Validated,n,async o=>{await this.validate(o,n),this.markAsCompleted(o)})}markAsCompleted(e){const r=this.buildState.get(e.uri.toString());r&&(r.completed=!0)}prepareBuild(e,r){for(const n of e){const a=n.uri.toString(),i=this.buildState.get(a);(!i||i.completed)&&this.buildState.set(a,{completed:!1,options:r,result:i?.result})}}async runCancelable(e,r,n,a){for(const o of e)o.state<r&&(await Ye(n),await a(o),o.state=r,await this.notifyDocumentPhase(o,r,n));const i=e.filter(o=>o.state===r);await this.notifyBuildPhase(i,r,n),this.currentState=r}onBuildPhase(e,r){return this.buildPhaseListeners.add(e,r),Ln.create(()=>{this.buildPhaseListeners.delete(e,r)})}onDocumentPhase(e,r){return this.documentPhaseListeners.add(e,r),Ln.create(()=>{this.documentPhaseListeners.delete(e,r)})}waitUntil(e,r,n){let a;return r&&"path"in r?a=r:n=r,n??(n=$e.CancellationToken.None),a?this.awaitDocumentState(e,a,n):this.awaitBuilderState(e,n)}awaitDocumentState(e,r,n){const a=this.langiumDocuments.getDocument(r);if(a){if(a.state>=e)return Promise.resolve(r);if(n.isCancellationRequested)return Promise.reject(or);if(this.currentState>=e&&e>a.state)return Promise.reject(new Uc.ResponseError(Uc.LSPErrorCodes.RequestFailed,`Document state of ${r.toString()} is ${Z[a.state]}, requiring ${Z[e]}, but workspace state is already ${Z[this.currentState]}. Returning undefined.`))}else return Promise.reject(new Uc.ResponseError(Uc.LSPErrorCodes.ServerCancelled,`No document found for URI: ${r.toString()}`));return new Promise((i,o)=>{const c=this.onDocumentPhase(e,u=>{it.equals(u.uri,r)&&(c.dispose(),l.dispose(),i(u.uri))}),l=n.onCancellationRequested(()=>{c.dispose(),l.dispose(),o(or)})})}awaitBuilderState(e,r){return this.currentState>=e?Promise.resolve():r.isCancellationRequested?Promise.reject(or):new Promise((n,a)=>{const i=this.onBuildPhase(e,()=>{i.dispose(),o.dispose(),n()}),o=r.onCancellationRequested(()=>{i.dispose(),o.dispose(),a(or)})})}async notifyDocumentPhase(e,r,n){const i=this.documentPhaseListeners.get(r).slice();for(const o of i)try{await Ye(n),await o(e,n)}catch(c){if(!oa(c))throw c}}async notifyBuildPhase(e,r,n){if(e.length===0)return;const i=this.buildPhaseListeners.get(r).slice();for(const o of i)await Ye(n),await o(e,n)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,r){const n=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,a=this.getBuildOptions(e),i=typeof a.validation=="object"?{...a.validation}:{};i.categories=this.findMissingValidationCategories(e,a);const o=await n.validateDocument(e,i,r);e.diagnostics?e.diagnostics.push(...o):e.diagnostics=o;const c=this.buildState.get(e.uri.toString());c&&(c.result??(c.result={}),c.result.validationChecks?c.result.validationChecks=ue(c.result.validationChecks).concat(i.categories).distinct().toArray():c.result.validationChecks=[...i.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},s(xs,"DefaultDocumentBuilder"),xs),Fs,UI=(Fs=class{constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new md,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,r){const n=Bt(e).uri,a=[];return this.referenceIndex.forEach(i=>{i.forEach(o=>{it.equals(o.targetUri,n)&&o.targetPath===r&&a.push(o)})}),ue(a)}allElements(e,r){let n=ue(this.symbolIndex.keys());return r&&(n=n.filter(a=>!r||r.has(a))),n.map(a=>this.getFileDescriptions(a,e)).flat()}getFileDescriptions(e,r){return r?this.symbolByTypeIndex.get(e,r,()=>(this.symbolIndex.get(e)??[]).filter(i=>this.astReflection.isSubtype(i.type,r))):this.symbolIndex.get(e)??[]}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){const r=e.toString();this.symbolIndex.delete(r),this.symbolByTypeIndex.clear(r)}removeReferences(e){const r=e.toString();this.referenceIndex.delete(r)}async updateContent(e,r=$e.CancellationToken.None){const a=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e,r),i=e.uri.toString();this.symbolIndex.set(i,a),this.symbolByTypeIndex.clear(i)}async updateReferences(e,r=$e.CancellationToken.None){const a=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,r);this.referenceIndex.set(e.uri.toString(),a)}isAffected(e,r){const n=this.referenceIndex.get(e.uri.toString());return n?n.some(a=>!a.local&&r.has(a.targetUri.toString())):!1}},s(Fs,"DefaultIndexManager"),Fs),Gs,zI=(Gs=class{constructor(e){this.initialBuildOptions={},this._ready=new Or,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=e.workspaceFolders??void 0}initialized(e){return this.mutex.write(r=>this.initializeWorkspace(this.folders??[],r))}async initializeWorkspace(e,r=$e.CancellationToken.None){const n=await this.performStartup(e);await Ye(r),await this.documentBuilder.build(n,this.initialBuildOptions,r)}async performStartup(e){const r=[],n=s(o=>{r.push(o),this.langiumDocuments.hasDocument(o.uri)||this.langiumDocuments.addDocument(o)},"collector");await this.loadAdditionalDocuments(e,n);const a=[];await Promise.all(e.map(o=>this.getRootFolder(o)).map(async o=>this.traverseFolder(o,a)));const i=ue(a).distinct(o=>o.toString()).filter(o=>!this.langiumDocuments.hasDocument(o));return await this.loadWorkspaceDocuments(i,n),this._ready.resolve(),r}async loadWorkspaceDocuments(e,r){await Promise.all(e.map(async n=>{const a=await this.langiumDocuments.getOrCreateDocument(n);r(a)}))}loadAdditionalDocuments(e,r){return Promise.resolve()}getRootFolder(e){return Rt.parse(e.uri)}async traverseFolder(e,r){try{const n=await this.fileSystemProvider.readDirectory(e);await Promise.all(n.map(async a=>{this.shouldIncludeEntry(a)&&(a.isDirectory?await this.traverseFolder(a.uri,r):a.isFile&&r.push(a.uri))}))}catch(n){console.error("Failure to read directory content of "+e.toString(!0),n)}}async searchFolder(e){const r=[];return await this.traverseFolder(e,r),r}shouldIncludeEntry(e){const r=it.basename(e.uri);return r.startsWith(".")?!1:e.isDirectory?r!=="node_modules"&&r!=="out":e.isFile?this.serviceRegistry.hasServices(e.uri):!1}},s(Gs,"DefaultWorkspaceManager"),Gs),js,BI=(js=class{buildUnexpectedCharactersMessage(e,r,n,a,i){return th.buildUnexpectedCharactersMessage(e,r,n,a,i)}buildUnableToPopLexerModeMessage(e){return th.buildUnableToPopLexerModeMessage(e)}},s(js,"DefaultLexerErrorMessageProvider"),js),dy={mode:"full"},Us,py=(Us=class{constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;const r=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(r);const n=lf(r)?Object.values(r):r,a=e.LanguageMetaData.mode==="production";this.chevrotainLexer=new st(n,{positionTracking:"full",skipValidations:a,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,r=dy){const n=this.chevrotainLexer.tokenize(e);return{tokens:n.tokens,errors:n.errors,hidden:n.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(lf(e))return e;const r=vd(e)?Object.values(e.modes).flat():e,n={};return r.forEach(a=>n[a.name]=a),n}},s(Us,"DefaultLexer"),Us);function yd(t){return Array.isArray(t)&&(t.length===0||"name"in t[0])}s(yd,"isTokenTypeArray");function vd(t){return t&&"modes"in t&&"defaultMode"in t}s(vd,"isIMultiModeLexerDefinition");function lf(t){return!yd(t)&&!vd(t)}s(lf,"isTokenTypeDictionary");hc();function hy(t,e,r){let n,a;typeof t=="string"?(a=e,n=r):(a=t.range.start,n=e),a||(a=ie.create(0,0));const i=gy(t),o=Td(n),c=KI({lines:i,position:a,options:o});return VI({index:0,tokens:c,position:a})}s(hy,"parseJSDoc");function my(t,e){const r=Td(e),n=gy(t);if(n.length===0)return!1;const a=n[0],i=n[n.length-1],o=r.start,c=r.end;return!!o?.exec(a)&&!!c?.exec(i)}s(my,"isJSDoc");function gy(t){let e="";return typeof t=="string"?e=t:e=t.text,e.split(VT)}s(gy,"getLines");var Wv=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,xj=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function KI(t){const e=[];let r=t.position.line,n=t.position.character;for(let a=0;a<t.lines.length;a++){const i=a===0,o=a===t.lines.length-1;let c=t.lines[a],l=0;if(i&&t.options.start){const f=t.options.start?.exec(c);f&&(l=f.index+f[0].length)}else{const f=t.options.line?.exec(c);f&&(l=f.index+f[0].length)}if(o){const f=t.options.end?.exec(c);f&&(c=c.substring(0,f.index))}if(c=c.substring(0,WI(c)),cf(c,l)>=c.length){if(e.length>0){const f=ie.create(r,n);e.push({type:"break",content:"",range:ee.create(f,f)})}}else{Wv.lastIndex=l;const f=Wv.exec(c);if(f){const d=f[0],p=f[1],g=ie.create(r,n+l),m=ie.create(r,n+l+d.length);e.push({type:"tag",content:p,range:ee.create(g,m)}),l+=d.length,l=cf(c,l)}if(l<c.length){const d=c.substring(l),p=Array.from(d.matchAll(xj));e.push(...qI(p,d,r,n+l))}}r++,n=0}return e.length>0&&e[e.length-1].type==="break"?e.slice(0,-1):e}s(KI,"tokenize");function qI(t,e,r,n){const a=[];if(t.length===0){const i=ie.create(r,n),o=ie.create(r,n+e.length);a.push({type:"text",content:e,range:ee.create(i,o)})}else{let i=0;for(const c of t){const l=c.index,u=e.substring(i,l);u.length>0&&a.push({type:"text",content:e.substring(i,l),range:ee.create(ie.create(r,i+n),ie.create(r,l+n))});let f=u.length+1;const d=c[1];if(a.push({type:"inline-tag",content:d,range:ee.create(ie.create(r,i+f+n),ie.create(r,i+f+d.length+n))}),f+=d.length,c.length===4){f+=c[2].length;const p=c[3];a.push({type:"text",content:p,range:ee.create(ie.create(r,i+f+n),ie.create(r,i+f+p.length+n))})}else a.push({type:"text",content:"",range:ee.create(ie.create(r,i+f+n),ie.create(r,i+f+n))});i=l+c[0].length}const o=e.substring(i);o.length>0&&a.push({type:"text",content:o,range:ee.create(ie.create(r,i+n),ie.create(r,i+n+o.length))})}return a}s(qI,"buildInlineTokens");var Fj=/\S/,Gj=/\s*$/;function cf(t,e){const r=t.substring(e).match(Fj);return r?e+r.index:t.length}s(cf,"skipWhitespace");function WI(t){const e=t.match(Gj);if(e&&typeof e.index=="number")return e.index}s(WI,"lastCharacter");function VI(t){const e=ie.create(t.position.line,t.position.character);if(t.tokens.length===0)return new Vv([],ee.create(e,e));const r=[];for(;t.index<t.tokens.length;){const i=HI(t,r[r.length-1]);i&&r.push(i)}const n=r[0]?.range.start??e,a=r[r.length-1]?.range.end??e;return new Vv(r,ee.create(n,a))}s(VI,"parseJSDocComment");function HI(t,e){const r=t.tokens[t.index];if(r.type==="tag")return vy(t,!1);if(r.type==="text"||r.type==="inline-tag")return yy(t);YI(r,e),t.index++}s(HI,"parseJSDocElement");function YI(t,e){if(e){const r=new QI("",t.range);"inlines"in e?e.inlines.push(r):e.content.inlines.push(r)}}s(YI,"appendEmptyLine");function yy(t){let e=t.tokens[t.index];const r=e;let n=e;const a=[];for(;e&&e.type!=="break"&&e.type!=="tag";)a.push(XI(t)),n=e,e=t.tokens[t.index];return new Ah(a,ee.create(r.range.start,n.range.end))}s(yy,"parseJSDocText");function XI(t){return t.tokens[t.index].type==="inline-tag"?vy(t,!0):Ty(t)}s(XI,"parseJSDocInline");function vy(t,e){const r=t.tokens[t.index++],n=r.content.substring(1);if(t.tokens[t.index]?.type==="text")if(e){const i=Ty(t);return new Id(n,new Ah([i],i.range),e,ee.create(r.range.start,i.range.end))}else{const i=yy(t);return new Id(n,i,e,ee.create(r.range.start,i.range.end))}else{const i=r.range;return new Id(n,new Ah([],i),e,i)}}s(vy,"parseJSDocTag");function Ty(t){const e=t.tokens[t.index++];return new QI(e.content,e.range)}s(Ty,"parseJSDocLine");function Td(t){if(!t)return Td({start:"/**",end:"*/",line:"*"});const{start:e,end:r,line:n}=t;return{start:Tu(e,!0),end:Tu(r,!1),line:Tu(n,!0)}}s(Td,"normalizeOptions");function Tu(t,e){if(typeof t=="string"||typeof t=="object"){const r=typeof t=="string"?Uo(t):t.source;return e?new RegExp(`^\\s*${r}`):new RegExp(`\\s*${r}\\s*$`)}else return t}s(Tu,"normalizeOption");var zs,Vv=(zs=class{constructor(e,r){this.elements=e,this.range=r}getTag(e){return this.getAllTags().find(r=>r.name===e)}getTags(e){return this.getAllTags().filter(r=>r.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(const r of this.elements)if(e.length===0)e=r.toString();else{const n=r.toString();e+=Eh(e)+n}return e.trim()}toMarkdown(e){let r="";for(const n of this.elements)if(r.length===0)r=n.toMarkdown(e);else{const a=n.toMarkdown(e);r+=Eh(r)+a}return r.trim()}},s(zs,"JSDocCommentImpl"),zs),Bs,Id=(Bs=class{constructor(e,r,n,a){this.name=e,this.content=r,this.inline=n,this.range=a}toString(){let e=`@${this.name}`;const r=this.content.toString();return this.content.inlines.length===1?e=`${e} ${r}`:this.content.inlines.length>1&&(e=`${e}
|
|
150
|
+
${r}`),this.inline?`{${e}}`:e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){const r=this.content.toMarkdown(e);if(this.inline){const i=JI(this.name,r,e??{});if(typeof i=="string")return i}let n="";e?.tag==="italic"||e?.tag===void 0?n="*":e?.tag==="bold"?n="**":e?.tag==="bold-italic"&&(n="***");let a=`${n}@${this.name}${n}`;return this.content.inlines.length===1?a=`${a} — ${r}`:this.content.inlines.length>1&&(a=`${a}
|
|
151
|
+
${r}`),this.inline?`{${a}}`:a}},s(Bs,"JSDocTagImpl"),Bs);function JI(t,e,r){if(t==="linkplain"||t==="linkcode"||t==="link"){const n=e.indexOf(" ");let a=e;if(n>0){const o=cf(e,n);a=e.substring(o),e=e.substring(0,n)}return(t==="linkcode"||t==="link"&&r.link==="code")&&(a=`\`${a}\``),r.renderLink?.(e,a)??ZI(e,a)}}s(JI,"renderInlineTag");function ZI(t,e){try{return Rt.parse(t,!0),`[${e}](${t})`}catch{return t}}s(ZI,"renderLinkDefault");var Ks,Ah=(Ks=class{constructor(e,r){this.inlines=e,this.range=r}toString(){let e="";for(let r=0;r<this.inlines.length;r++){const n=this.inlines[r],a=this.inlines[r+1];e+=n.toString(),a&&a.range.start.line>n.range.start.line&&(e+=`
|
|
152
|
+
`)}return e}toMarkdown(e){let r="";for(let n=0;n<this.inlines.length;n++){const a=this.inlines[n],i=this.inlines[n+1];r+=a.toMarkdown(e),i&&i.range.start.line>a.range.start.line&&(r+=`
|
|
153
|
+
`)}return r}},s(Ks,"JSDocTextImpl"),Ks),qs,QI=(qs=class{constructor(e,r){this.text=e,this.range=r}toString(){return this.text}toMarkdown(){return this.text}},s(qs,"JSDocLineImpl"),qs);function Eh(t){return t.endsWith(`
|
|
154
|
+
`)?`
|
|
155
|
+
`:`
|
|
156
|
+
|
|
157
|
+
`}s(Eh,"fillNewlines");var Ws,eN=(Ws=class{constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){const r=this.commentProvider.getComment(e);if(r&&my(r))return hy(r).toMarkdown({renderLink:s((a,i)=>this.documentationLinkRenderer(e,a,i),"renderLink"),renderTag:s(a=>this.documentationTagRenderer(e,a),"renderTag")})}documentationLinkRenderer(e,r,n){const a=this.findNameInLocalSymbols(e,r)??this.findNameInGlobalScope(e,r);if(a&&a.nameSegment){const i=a.nameSegment.range.start.line+1,o=a.nameSegment.range.start.character+1,c=a.documentUri.with({fragment:`L${i},${o}`});return`[${n}](${c.toString()})`}else return}documentationTagRenderer(e,r){}findNameInLocalSymbols(e,r){const a=Bt(e).localSymbols;if(!a)return;let i=e;do{const c=a.getStream(i).find(l=>l.name===r);if(c)return c;i=i.$container}while(i)}findNameInGlobalScope(e,r){return this.indexManager.allElements().find(a=>a.name===r)}},s(Ws,"JSDocDocumentationProvider"),Ws),Vs,tN=(Vs=class{constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return cy(e)?e.$comment:ym(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},s(Vs,"DefaultCommentProvider"),Vs),Hs,rN=(Hs=class{constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,r){return Promise.resolve(this.syncParser.parse(e))}},s(Hs,"DefaultAsyncParser"),Hs),Ys,jj=(Ys=class{constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length<this.threadCount;){const e=this.createWorker();e.onReady(()=>{if(this.queue.length>0){const r=this.queue.shift();r&&(e.lock(),r.resolve(e))}}),this.workerPool.push(e)}}async parse(e,r){const n=await this.acquireParserWorker(r),a=new Or;let i;const o=r.onCancellationRequested(()=>{i=setTimeout(()=>{this.terminateWorker(n)},this.terminationDelay)});return n.parse(e).then(c=>{const l=this.hydrator.hydrate(c);a.resolve(l)}).catch(c=>{a.reject(c)}).finally(()=>{o.dispose(),clearTimeout(i)}),a.promise}terminateWorker(e){e.terminate();const r=this.workerPool.indexOf(e);r>=0&&this.workerPool.splice(r,1)}async acquireParserWorker(e){this.initializeWorkers();for(const n of this.workerPool)if(n.ready)return n.lock(),n;const r=new Or;return e.onCancellationRequested(()=>{const n=this.queue.indexOf(r);n>=0&&this.queue.splice(n,1),r.reject(or)}),this.queue.push(r),r.promise}},s(Ys,"AbstractThreadedAsyncParser"),Ys),Xs,Uj=(Xs=class{get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,r,n,a){this.onReadyEmitter=new gd.Emitter,this.deferred=new Or,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=a,r(i=>{const o=i;this.deferred.resolve(o),this.unlock()}),n(i=>{this.deferred.reject(i),this.unlock()})}terminate(){this.deferred.reject(or),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new Or,this.sendMessage(e),this.deferred.promise}},s(Xs,"ParserWorker"),Xs),Js,nN=(Js=class{constructor(){this.previousTokenSource=new $e.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();const r=pd();return this.previousTokenSource=r,this.enqueue(this.writeQueue,e,r.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,r,n=$e.CancellationToken.None){const a=new Or,i={action:r,deferred:a,cancellationToken:n};return e.push(i),this.performNextOperation(),a.promise}async performNextOperation(){if(!this.done)return;const e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,await Promise.all(e.map(async({action:r,deferred:n,cancellationToken:a})=>{try{const i=await Promise.resolve().then(()=>r(a));n.resolve(i)}catch(i){oa(i)?n.resolve(void 0):n.reject(i)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},s(Js,"DefaultWorkspaceLock"),Js),Zs,aN=(Zs=class{constructor(e){this.grammarElementIdMap=new sf,this.tokenTypeIdMap=new sf,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map(r=>({...r,message:r.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){const r=new Map,n=new Map;for(const a of Kt(e))r.set(a,{});if(e.$cstNode)for(const a of Po(e.$cstNode))n.set(a,{});return{astNodes:r,cstNodes:n}}dehydrateAstNode(e,r){const n=r.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode!==void 0&&(n.$cstNode=this.dehydrateCstNode(e.$cstNode,r));for(const[a,i]of Object.entries(e))if(!a.startsWith("$"))if(Array.isArray(i)){const o=[];n[a]=o;for(const c of i)Be(c)?o.push(this.dehydrateAstNode(c,r)):at(c)?o.push(this.dehydrateReference(c,r)):o.push(c)}else Be(i)?n[a]=this.dehydrateAstNode(i,r):at(i)?n[a]=this.dehydrateReference(i,r):i!==void 0&&(n[a]=i);return n}dehydrateReference(e,r){const n={};return n.$refText=e.$refText,e.$refNode&&(n.$refNode=r.cstNodes.get(e.$refNode)),n}dehydrateCstNode(e,r){const n=r.cstNodes.get(e);return pf(e)?n.fullText=e.fullText:n.grammarSource=this.getGrammarElementId(e.grammarSource),n.hidden=e.hidden,n.astNode=r.astNodes.get(e.astNode),Cr(e)?n.content=e.content.map(a=>this.dehydrateCstNode(a,r)):zn(e)&&(n.tokenType=e.tokenType.name,n.offset=e.offset,n.length=e.length,n.startLine=e.range.start.line,n.startColumn=e.range.start.character,n.endLine=e.range.end.line,n.endColumn=e.range.end.character),n}hydrate(e){const r=e.value,n=this.createHydrationContext(r);return"$cstNode"in r&&this.hydrateCstNode(r.$cstNode,n),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(r,n)}}createHydrationContext(e){const r=new Map,n=new Map;for(const i of Kt(e))r.set(i,{});let a;if(e.$cstNode)for(const i of Po(e.$cstNode)){let o;"fullText"in i?(o=new Vg(i.fullText),a=o):"content"in i?o=new ld:"tokenType"in i&&(o=this.hydrateCstLeafNode(i)),o&&(n.set(i,o),o.root=a)}return{astNodes:r,cstNodes:n}}hydrateAstNode(e,r){const n=r.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode&&(n.$cstNode=r.cstNodes.get(e.$cstNode));for(const[a,i]of Object.entries(e))if(!a.startsWith("$"))if(Array.isArray(i)){const o=[];n[a]=o;for(const c of i)Be(c)?o.push(this.setParent(this.hydrateAstNode(c,r),n)):at(c)?o.push(this.hydrateReference(c,n,a,r)):o.push(c)}else Be(i)?n[a]=this.setParent(this.hydrateAstNode(i,r),n):at(i)?n[a]=this.hydrateReference(i,n,a,r):i!==void 0&&(n[a]=i);return n}setParent(e,r){return e.$container=r,e}hydrateReference(e,r,n,a){return this.linker.buildReference(r,n,a.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,r,n=0){const a=r.cstNodes.get(e);if(typeof e.grammarSource=="number"&&(a.grammarSource=this.getGrammarElement(e.grammarSource)),a.astNode=r.astNodes.get(e.astNode),Cr(a))for(const i of e.content){const o=this.hydrateCstNode(i,r,n++);a.content.push(o)}return a}hydrateCstLeafNode(e){const r=this.getTokenType(e.tokenType),n=e.offset,a=e.length,i=e.startLine,o=e.startColumn,c=e.endLine,l=e.endColumn,u=e.hidden;return new ef(n,a,{start:{line:i,character:o},end:{line:c,character:l}},r,u)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(e)return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(const r of Kt(this.grammar))hf(r)&&this.grammarElementIdMap.set(r,e++)}},s(Zs,"DefaultHydrator"),Zs);function St(t){return{documentation:{CommentProvider:s(e=>new tN(e),"CommentProvider"),DocumentationProvider:s(e=>new eN(e),"DocumentationProvider")},parser:{AsyncParser:s(e=>new rN(e),"AsyncParser"),GrammarConfig:s(e=>Um(e),"GrammarConfig"),LangiumParser:s(e=>Qg(e),"LangiumParser"),CompletionParser:s(e=>Zg(e),"CompletionParser"),ValueConverter:s(()=>new ty,"ValueConverter"),TokenBuilder:s(()=>new fd,"TokenBuilder"),Lexer:s(e=>new py(e),"Lexer"),ParserErrorMessageProvider:s(()=>new Yg,"ParserErrorMessageProvider"),LexerErrorMessageProvider:s(()=>new BI,"LexerErrorMessageProvider")},workspace:{AstNodeLocator:s(()=>new FI,"AstNodeLocator"),AstNodeDescriptionProvider:s(e=>new MI(e),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:s(e=>new xI(e),"ReferenceDescriptionProvider")},references:{Linker:s(e=>new _I(e),"Linker"),NameProvider:s(()=>new CI,"NameProvider"),ScopeProvider:s(e=>new NI(e),"ScopeProvider"),ScopeComputation:s(e=>new bI(e),"ScopeComputation"),References:s(e=>new SI(e),"References")},serializer:{Hydrator:s(e=>new aN(e),"Hydrator"),JsonSerializer:s(e=>new kI(e),"JsonSerializer")},validation:{DocumentValidator:s(e=>new DI(e),"DocumentValidator"),ValidationRegistry:s(e=>new OI(e),"ValidationRegistry")},shared:s(()=>t.shared,"shared")}}s(St,"createDefaultCoreModule");function bt(t){return{ServiceRegistry:s(e=>new PI(e),"ServiceRegistry"),workspace:{LangiumDocuments:s(e=>new EI(e),"LangiumDocuments"),LangiumDocumentFactory:s(e=>new AI(e),"LangiumDocumentFactory"),DocumentBuilder:s(e=>new jI(e),"DocumentBuilder"),IndexManager:s(e=>new UI(e),"IndexManager"),WorkspaceManager:s(e=>new zI(e),"WorkspaceManager"),FileSystemProvider:s(e=>t.fileSystemProvider(e),"FileSystemProvider"),WorkspaceLock:s(()=>new nN,"WorkspaceLock"),ConfigurationProvider:s(e=>new GI(e),"ConfigurationProvider")},profilers:{}}}s(bt,"createDefaultSharedCoreModule");var _h;(function(t){t.merge=(e,r)=>Fo(Fo({},e),r)})(_h||(_h={}));function ke(t,e,r,n,a,i,o,c,l){const u=[t,e,r,n,a,i,o,c,l].reduce(Fo,{});return $y(u)}s(ke,"inject");var iN=Symbol("isProxy");function Ry(t){if(t&&t[iN])for(const e of Object.values(t))Ry(e);return t}s(Ry,"eagerLoad");function $y(t,e){const r=new Proxy({},{deleteProperty:s(()=>!1,"deleteProperty"),set:s(()=>{throw new Error("Cannot set property on injected service container")},"set"),get:s((n,a)=>a===iN?!0:Ch(n,a,t,e||r),"get"),getOwnPropertyDescriptor:s((n,a)=>(Ch(n,a,t,e||r),Object.getOwnPropertyDescriptor(n,a)),"getOwnPropertyDescriptor"),has:s((n,a)=>a in t,"has"),ownKeys:s(()=>[...Object.getOwnPropertyNames(t)],"ownKeys")});return r}s($y,"_inject");var Hv=Symbol();function Ch(t,e,r,n){if(e in t){if(t[e]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable. Cause: "+t[e]);if(t[e]===Hv)throw new Error('Cycle detected. Please make "'+String(e)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return t[e]}else if(e in r){const a=r[e];t[e]=Hv;try{t[e]=typeof a=="function"?a(n):$y(a,n)}catch(i){throw t[e]=i instanceof Error?i:void 0,i}return t[e]}else return}s(Ch,"_resolve");function Fo(t,e){if(e){for(const[r,n]of Object.entries(e))if(n!=null)if(typeof n=="object"){const a=t[r];typeof a=="object"&&a!==null?t[r]=Fo(a,n):t[r]=Fo({},n)}else t[r]=n}return t}s(Fo,"_merge");var Sh={indentTokenName:"INDENT",dedentTokenName:"DEDENT",whitespaceTokenName:"WS",ignoreIndentationDelimiters:[]},Pn;(function(t){t.REGULAR="indentation-sensitive",t.IGNORE_INDENTATION="ignore-indentation"})(Pn||(Pn={}));var Qs,sN=(Qs=class extends fd{constructor(e=Sh){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options={...Sh,...e},this.indentTokenType=ja({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=ja({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(e,r){const n=super.buildTokens(e,r);if(!yd(n))throw new Error("Invalid tokens built by default builder");const{indentTokenName:a,dedentTokenName:i,whitespaceTokenName:o,ignoreIndentationDelimiters:c}=this.options;let l,u,f;const d=[];for(const p of n){for(const[g,m]of c)p.name===g?p.PUSH_MODE=Pn.IGNORE_INDENTATION:p.name===m&&(p.POP_MODE=!0);p.name===i?l=p:p.name===a?u=p:p.name===o?f=p:d.push(p)}if(!l||!u||!f)throw new Error("Some indentation/whitespace tokens not found!");return c.length>0?{modes:{[Pn.REGULAR]:[l,u,...d,f],[Pn.IGNORE_INDENTATION]:[...d,f]},defaultMode:Pn.REGULAR}:[l,u,f,...d]}flushLexingReport(e){return{...super.flushLexingReport(e),remainingDedents:this.flushRemainingDedents(e)}}isStartOfLine(e,r){return r===0||`\r
|
|
158
|
+
`.includes(e[r-1])}matchWhitespace(e,r,n,a){this.whitespaceRegExp.lastIndex=r;const i=this.whitespaceRegExp.exec(e);return{currIndentLevel:i?.[0].length??0,prevIndentLevel:this.indentationStack.at(-1),match:i}}createIndentationTokenInstance(e,r,n,a){const i=this.getLineNumber(r,a);return Nc(e,n,a,a+n.length,i,i,1,n.length)}getLineNumber(e,r){return e.substring(0,r).split(/\r\n|\r|\n/).length}indentMatcher(e,r,n,a){if(!this.isStartOfLine(e,r))return null;const{currIndentLevel:i,prevIndentLevel:o,match:c}=this.matchWhitespace(e,r,n,a);return i<=o?null:(this.indentationStack.push(i),c)}dedentMatcher(e,r,n,a){if(!this.isStartOfLine(e,r))return null;const{currIndentLevel:i,prevIndentLevel:o,match:c}=this.matchWhitespace(e,r,n,a);if(i>=o)return null;const l=this.indentationStack.lastIndexOf(i);if(l===-1)return this.diagnostics.push({severity:"error",message:`Invalid dedent level ${i} at offset: ${r}. Current indentation stack: ${this.indentationStack}`,offset:r,length:c?.[0]?.length??0,line:this.getLineNumber(e,r),column:1}),null;const u=this.indentationStack.length-l-1,f=e.substring(0,r).match(/[\r\n]+$/)?.[0].length??1;for(let d=0;d<u;d++){const p=this.createIndentationTokenInstance(this.dedentTokenType,e,"",r-(f-1));n.push(p),this.indentationStack.pop()}return null}buildTerminalToken(e){const r=super.buildTerminalToken(e),{indentTokenName:n,dedentTokenName:a,whitespaceTokenName:i}=this.options;return r.name===n?this.indentTokenType:r.name===a?this.dedentTokenType:r.name===i?ja({name:i,pattern:this.whitespaceRegExp,group:st.SKIPPED}):r}flushRemainingDedents(e){const r=[];for(;this.indentationStack.length>1;)r.push(this.createIndentationTokenInstance(this.dedentTokenType,e,"",e.length)),this.indentationStack.pop();return this.indentationStack=[0],r}},s(Qs,"IndentationAwareTokenBuilder"),Qs),eo,zj=(eo=class extends py{constructor(e){if(super(e),e.parser.TokenBuilder instanceof sN)this.indentationTokenBuilder=e.parser.TokenBuilder;else throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder")}tokenize(e,r=dy){const n=super.tokenize(e),a=n.report;r?.mode==="full"&&n.tokens.push(...a.remainingDedents),a.remainingDedents=[];const{indentTokenType:i,dedentTokenType:o}=this.indentationTokenBuilder,c=i.tokenTypeIdx,l=o.tokenTypeIdx,u=[],f=n.tokens.length-1;for(let d=0;d<f;d++){const p=n.tokens[d],g=n.tokens[d+1];if(p.tokenTypeIdx===c&&g.tokenTypeIdx===l){d++;continue}u.push(p)}return f>=0&&u.push(n.tokens[f]),n.tokens=u,n}},s(eo,"IndentationAwareLexer"),eo),Ay={};Zr(Ay,{AstUtils:()=>qh,BiMap:()=>sf,Cancellation:()=>$e,ContextCache:()=>md,CstUtils:()=>zh,DONE_RESULT:()=>nt,Deferred:()=>Or,Disposable:()=>Ln,DisposableCache:()=>hd,DocumentCache:()=>II,EMPTY_STREAM:()=>bo,ErrorWithLocation:()=>$f,GrammarUtils:()=>$m,MultiMap:()=>Lr,OperationCancelled:()=>or,Reduction:()=>Jl,RegExpUtils:()=>Em,SimpleCache:()=>oy,StreamImpl:()=>sr,TreeStreamImpl:()=>wo,URI:()=>Rt,UriTrie:()=>iy,UriUtils:()=>it,WorkspaceCache:()=>ly,assertCondition:()=>Am,assertUnreachable:()=>Qr,delayNextTick:()=>dd,interruptAndCheck:()=>Ye,isOperationCancelled:()=>oa,loadGrammarFromJson:()=>wt,setInterruptionPeriod:()=>ry,startCancelableOperation:()=>pd,stream:()=>ue});uf(Ay,gd);var to,oN=(to=class{stat(e){throw new Error("No file system is available.")}statSync(e){throw new Error("No file system is available.")}async exists(){return!1}existsSync(){return!1}readBinary(){throw new Error("No file system is available.")}readBinarySync(){throw new Error("No file system is available.")}readFile(){throw new Error("No file system is available.")}readFileSync(){throw new Error("No file system is available.")}async readDirectory(){return[]}readDirectorySync(){return[]}},s(to,"EmptyFileSystemProvider"),to),Gt={fileSystemProvider:s(()=>new oN,"fileSystemProvider")},Bj={Grammar:s(()=>{},"Grammar"),LanguageMetaData:s(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},Kj={AstReflection:s(()=>new dm,"AstReflection")};function lN(){const t=ke(bt(Gt),Kj),e=ke(St({shared:t}),Bj);return t.ServiceRegistry.register(e),e}s(lN,"createMinimalGrammarServices");function wt(t){const e=lN(),r=e.serializer.JsonSerializer.deserialize(t);return e.shared.workspace.LangiumDocumentFactory.fromModel(r,Rt.parse(`memory:/${r.name??"grammar"}.langium`)),r}s(wt,"loadGrammarFromJson");uf(vT,Ay);var ro,qj=(ro=class{constructor(e){this.activeCategories=new Set,this.allCategories=new Set(["validating","parsing","linking"]),this.activeCategories=e??new Set(this.allCategories),this.records=new Lr}isActive(e){return this.activeCategories.has(e)}start(...e){e?e.forEach(r=>this.activeCategories.add(r)):this.activeCategories=new Set(this.allCategories)}stop(...e){e?e.forEach(r=>this.activeCategories.delete(r)):this.activeCategories.clear()}createTask(e,r){if(!this.isActive(e))throw new Error(`Category "${e}" is not active.`);return console.log(`Creating profiling task for '${e}.${r}'.`),new cN(n=>this.records.add(e,this.dumpRecord(e,n)),r)}dumpRecord(e,r){console.info(`Task ${e}.${r.identifier} executed in ${r.duration.toFixed(2)}ms and ended at ${r.date.toISOString()}`);const n=[];for(const o of r.entries.keys()){const c=r.entries.get(o),l=c.reduce((u,f)=>u+f);n.push({name:`${r.identifier}.${o}`,count:c.length,duration:l})}const a=r.duration-n.map(o=>o.duration).reduce((o,c)=>o+c,0);n.push({name:r.identifier,count:1,duration:a}),n.sort((o,c)=>c.duration-o.duration);function i(o){return Math.round(100*o)/100}return s(i,"Round"),console.table(n.map(o=>({Element:o.name,Count:o.count,"Self %":i(100*o.duration/r.duration),"Time (ms)":i(o.duration)}))),r}getRecords(...e){return e.length===0?this.records.values():this.records.entries().filter(r=>e.some(n=>n===r[0])).flatMap(r=>r[1])}},s(ro,"DefaultLangiumProfiler"),ro),no,cN=(no=class{constructor(e,r){this.stack=[],this.entries=new Lr,this.addRecord=e,this.identifier=r}start(){if(this.startTime!==void 0)throw new Error(`Task "${this.identifier}" is already started.`);this.startTime=performance.now()}stop(){if(this.startTime===void 0)throw new Error(`Task "${this.identifier}" was not started.`);if(this.stack.length!==0)throw new Error(`Task "${this.identifier}" cannot be stopped before sub-task(s): ${this.stack.map(r=>r.id).join(", ")}.`);const e={identifier:this.identifier,date:new Date,duration:performance.now()-this.startTime,entries:this.entries};this.addRecord(e),this.startTime=void 0,this.entries.clear()}startSubTask(e){this.stack.push({id:e,start:performance.now(),content:0})}stopSubTask(e){const r=this.stack.pop();if(!r)throw new Error(`Task "${this.identifier}.${e}" was not started.`);if(r.id!==e)throw new Error(`Sub-Task "${r.id}" is not already stopped.`);const n=performance.now()-r.start;this.stack.at(-1)!==void 0&&(this.stack[this.stack.length-1].content+=n);const a=n-r.content;this.entries.add(e,a)}},s(no,"ProfilingTask"),no),bh;(t=>{t.Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[\w ]+)\]/}})(bh||(bh={}));var wh;(t=>{t.Terminals={EM_ID:/[_a-zA-Z][\w_]*/,EM_FID:/\d{1,3}/,EM_DATA_INLINE:/\{(.*)\}|"(.*)"|'(.*)'/,EM_DATA_BLOCK:/\{[\t ]*\r?\n(?:[\S\s]*?\r?\n)?\}(?:\r?\n|(?!\S))/,EM_ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EM_ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,EM_TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,EM_WS:/\s+/,EM_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EM_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EM_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EM_ML_COMMENT:/\/\*[\s\S]*?\*\//,EM_SL_COMMENT:/\/\/[^\n\r]*/}})(wh||(wh={}));var Ih;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/}})(Ih||(Ih={}));var Nh;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Nh||(Nh={}));var kh;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(kh||(kh={}));var Ph;(t=>{t.Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Ph||(Ph={}));var Oh;(t=>{t.Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Oh||(Oh={}));var Lh;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/}})(Lh||(Lh={}));var Dh;(t=>{t.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,STRING2:/"[^"]*"|'[^']*'/}})(Dh||(Dh={}));var Mh;(t=>{t.Terminals={WARDLEY_NUMBER:/[0-9]+\.[0-9]+/,ARROW:/->/,LINK_PORT:/\+<>|\+>|\+</,LINK_ARROW:/-->|-\.->|>|\+'[^']*'<>|\+'[^']*'<|\+'[^']*'>/,LINK_LABEL:/;[^\n\r]+/,STRATEGY:/build|buy|outsource|market/,KW_WARDLEY:/wardley-beta/,KW_SIZE:/size/,KW_EVOLUTION:/evolution/,KW_ANCHOR:/anchor/,KW_COMPONENT:/component/,KW_LABEL:/label/,KW_INERTIA:/inertia/,KW_EVOLVE:/evolve/,KW_PIPELINE:/pipeline/,KW_NOTE:/note/,KW_ANNOTATIONS:/annotations/,KW_ANNOTATION:/annotation/,KW_ACCELERATOR:/accelerator/,KW_DEACCELERATOR:/deaccelerator/,NAME_WITH_SPACES:/(?!title\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/,WS:/[ \t]+/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Mh||(Mh={}));({...bh.Terminals,...wh.Terminals,...Ih.Terminals,...Nh.Terminals,...kh.Terminals,...Ph.Terminals,...Oh.Terminals,...Dh.Terminals,...Lh.Terminals,...Mh.Terminals});var zc={$type:"Accelerator",name:"name",x:"x",y:"y"},Bc={$type:"Anchor",evolution:"evolution",name:"name",visibility:"visibility"},yl={$type:"Annotation",number:"number",text:"text",x:"x",y:"y"},Nd={$type:"Annotations",x:"x",y:"y"},Rr={$type:"Architecture",accDescr:"accDescr",accTitle:"accTitle",edges:"edges",groups:"groups",junctions:"junctions",services:"services",title:"title"};function Wj(t){return It.isInstance(t,Rr.$type)}s(Wj,"isArchitecture");var Kc={$type:"Axis",label:"label",name:"name"},Ru={$type:"Branch",name:"name",order:"order"};function Vj(t){return It.isInstance(t,Ru.$type)}s(Vj,"isBranch");var Yv={$type:"Checkout",branch:"branch"},qc={$type:"CherryPicking",id:"id",parent:"parent",tags:"tags"},kd={$type:"ClassDefStatement",className:"className",styleText:"styleText"},Ca={$type:"Commit",id:"id",message:"message",tags:"tags",type:"type"};function Hj(t){return It.isInstance(t,Ca.$type)}s(Hj,"isCommit");var Wc={$type:"Common",accDescr:"accDescr",accTitle:"accTitle",title:"title"},an={$type:"Component",decorator:"decorator",evolution:"evolution",inertia:"inertia",label:"label",name:"name",visibility:"visibility"},Vc={$type:"Curve",entries:"entries",label:"label",name:"name"},Hc={$type:"Deaccelerator",name:"name",x:"x",y:"y"},Xv={$type:"Decorator",strategy:"strategy"},ma={$type:"Direction",accDescr:"accDescr",accTitle:"accTitle",dir:"dir",statements:"statements",title:"title"},tr={$type:"Edge",lhsDir:"lhsDir",lhsGroup:"lhsGroup",lhsId:"lhsId",lhsInto:"lhsInto",rhsDir:"rhsDir",rhsGroup:"rhsGroup",rhsId:"rhsId",rhsInto:"rhsInto",title:"title"},ga={$type:"EmDataEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",name:"name"},sn={$type:"EmFrame"},vl={$type:"EmGwt",givenStatements:"givenStatements",sourceFrame:"sourceFrame",thenStatements:"thenStatements",whenStatements:"whenStatements"},Jv={$type:"EmGwtStatement",entityIdentifier:"entityIdentifier"},Pd={$type:"EmModelEntity",name:"name"};function Yj(t){return t==="rmo"||t==="readmodel"||t==="ui"||t==="cmd"||t==="command"||t==="evt"||t==="event"||t==="pcr"||t==="processor"}s(Yj,"isEmModelEntityType");var Yc={$type:"EmNoteEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",sourceFrame:"sourceFrame"},$r={$type:"EmResetFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"};function Xj(t){return It.isInstance(t,$r.$type)}s(Xj,"isEmResetFrame");var jr={$type:"EmTimeFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"},Od={$type:"Entry",axis:"axis",value:"value"},vr={$type:"EventModel",accDescr:"accDescr",accTitle:"accTitle",dataEntities:"dataEntities",frames:"frames",gwtEntities:"gwtEntities",modelEntities:"modelEntities",noteEntities:"noteEntities",title:"title"},Zv={$type:"Evolution",stages:"stages"},Xc={$type:"EvolutionStage",boundary:"boundary",name:"name",secondName:"secondName"},Ld={$type:"Evolve",component:"component",target:"target"},mn={$type:"GitGraph",accDescr:"accDescr",accTitle:"accTitle",statements:"statements",title:"title"};function Jj(t){return It.isInstance(t,mn.$type)}s(Jj,"isGitGraph");var Tl={$type:"Group",icon:"icon",id:"id",in:"in",title:"title"},Ll={$type:"Info",accDescr:"accDescr",accTitle:"accTitle",title:"title"};function Zj(t){return It.isInstance(t,Ll.$type)}s(Zj,"isInfo");var Rl={$type:"Item",classSelector:"classSelector",name:"name"},Dd={$type:"Junction",id:"id",in:"in"},$l={$type:"Label",negX:"negX",negY:"negY",offsetX:"offsetX",offsetY:"offsetY"},Jc={$type:"Leaf",classSelector:"classSelector",name:"name",value:"value"},on={$type:"Link",arrow:"arrow",from:"from",fromPort:"fromPort",linkLabel:"linkLabel",to:"to",toPort:"toPort"},Sa={$type:"Merge",branch:"branch",id:"id",tags:"tags",type:"type"};function Qj(t){return It.isInstance(t,Sa.$type)}s(Qj,"isMerge");var Zc={$type:"Note",evolution:"evolution",text:"text",visibility:"visibility"},Md={$type:"Option",name:"name",value:"value"},ba={$type:"Packet",accDescr:"accDescr",accTitle:"accTitle",blocks:"blocks",title:"title"};function eU(t){return It.isInstance(t,ba.$type)}s(eU,"isPacket");var wa={$type:"PacketBlock",bits:"bits",end:"end",label:"label",start:"start"};function tU(t){return It.isInstance(t,wa.$type)}s(tU,"isPacketBlock");var gn={$type:"Pie",accDescr:"accDescr",accTitle:"accTitle",sections:"sections",showData:"showData",title:"title"};function rU(t){return It.isInstance(t,gn.$type)}s(rU,"isPie");var $u={$type:"PieSection",label:"label",value:"value"};function nU(t){return It.isInstance(t,$u.$type)}s(nU,"isPieSection");var xd={$type:"Pipeline",components:"components",parent:"parent"},Qc={$type:"PipelineComponent",evolution:"evolution",label:"label",name:"name"},ln={$type:"Radar",accDescr:"accDescr",accTitle:"accTitle",axes:"axes",curves:"curves",options:"options",title:"title"},Fd={$type:"Section",classSelector:"classSelector",name:"name"},ya={$type:"Service",icon:"icon",iconText:"iconText",id:"id",in:"in",title:"title"},Gd={$type:"Size",height:"height",width:"width"},va={$type:"Statement"},Ia={$type:"Treemap",accDescr:"accDescr",accTitle:"accTitle",title:"title",TreemapRows:"TreemapRows"};function aU(t){return It.isInstance(t,Ia.$type)}s(aU,"isTreemap");var jd={$type:"TreemapRow",indent:"indent",item:"item"},Ud={$type:"TreeNode",indent:"indent",name:"name"},Al={$type:"TreeView",accDescr:"accDescr",accTitle:"accTitle",nodes:"nodes",title:"title"},Je={$type:"Wardley",accDescr:"accDescr",accelerators:"accelerators",accTitle:"accTitle",anchors:"anchors",annotation:"annotation",annotations:"annotations",components:"components",deaccelerators:"deaccelerators",evolution:"evolution",evolves:"evolves",links:"links",notes:"notes",pipelines:"pipelines",size:"size",title:"title"};function iU(t){return It.isInstance(t,Je.$type)}s(iU,"isWardley");var ao,uN=(ao=class extends Kh{constructor(){super(...arguments),this.types={Accelerator:{name:zc.$type,properties:{name:{name:zc.name},x:{name:zc.x},y:{name:zc.y}},superTypes:[]},Anchor:{name:Bc.$type,properties:{evolution:{name:Bc.evolution},name:{name:Bc.name},visibility:{name:Bc.visibility}},superTypes:[]},Annotation:{name:yl.$type,properties:{number:{name:yl.number},text:{name:yl.text},x:{name:yl.x},y:{name:yl.y}},superTypes:[]},Annotations:{name:Nd.$type,properties:{x:{name:Nd.x},y:{name:Nd.y}},superTypes:[]},Architecture:{name:Rr.$type,properties:{accDescr:{name:Rr.accDescr},accTitle:{name:Rr.accTitle},edges:{name:Rr.edges,defaultValue:[]},groups:{name:Rr.groups,defaultValue:[]},junctions:{name:Rr.junctions,defaultValue:[]},services:{name:Rr.services,defaultValue:[]},title:{name:Rr.title}},superTypes:[]},Axis:{name:Kc.$type,properties:{label:{name:Kc.label},name:{name:Kc.name}},superTypes:[]},Branch:{name:Ru.$type,properties:{name:{name:Ru.name},order:{name:Ru.order}},superTypes:[va.$type]},Checkout:{name:Yv.$type,properties:{branch:{name:Yv.branch}},superTypes:[va.$type]},CherryPicking:{name:qc.$type,properties:{id:{name:qc.id},parent:{name:qc.parent},tags:{name:qc.tags,defaultValue:[]}},superTypes:[va.$type]},ClassDefStatement:{name:kd.$type,properties:{className:{name:kd.className},styleText:{name:kd.styleText}},superTypes:[]},Commit:{name:Ca.$type,properties:{id:{name:Ca.id},message:{name:Ca.message},tags:{name:Ca.tags,defaultValue:[]},type:{name:Ca.type}},superTypes:[va.$type]},Common:{name:Wc.$type,properties:{accDescr:{name:Wc.accDescr},accTitle:{name:Wc.accTitle},title:{name:Wc.title}},superTypes:[]},Component:{name:an.$type,properties:{decorator:{name:an.decorator},evolution:{name:an.evolution},inertia:{name:an.inertia,defaultValue:!1},label:{name:an.label},name:{name:an.name},visibility:{name:an.visibility}},superTypes:[]},Curve:{name:Vc.$type,properties:{entries:{name:Vc.entries,defaultValue:[]},label:{name:Vc.label},name:{name:Vc.name}},superTypes:[]},Deaccelerator:{name:Hc.$type,properties:{name:{name:Hc.name},x:{name:Hc.x},y:{name:Hc.y}},superTypes:[]},Decorator:{name:Xv.$type,properties:{strategy:{name:Xv.strategy}},superTypes:[]},Direction:{name:ma.$type,properties:{accDescr:{name:ma.accDescr},accTitle:{name:ma.accTitle},dir:{name:ma.dir},statements:{name:ma.statements,defaultValue:[]},title:{name:ma.title}},superTypes:[mn.$type]},Edge:{name:tr.$type,properties:{lhsDir:{name:tr.lhsDir},lhsGroup:{name:tr.lhsGroup,defaultValue:!1},lhsId:{name:tr.lhsId},lhsInto:{name:tr.lhsInto,defaultValue:!1},rhsDir:{name:tr.rhsDir},rhsGroup:{name:tr.rhsGroup,defaultValue:!1},rhsId:{name:tr.rhsId},rhsInto:{name:tr.rhsInto,defaultValue:!1},title:{name:tr.title}},superTypes:[]},EmDataEntity:{name:ga.$type,properties:{dataBlockValue:{name:ga.dataBlockValue},dataType:{name:ga.dataType},name:{name:ga.name}},superTypes:[]},EmFrame:{name:sn.$type,properties:{},superTypes:[]},EmGwt:{name:vl.$type,properties:{givenStatements:{name:vl.givenStatements,defaultValue:[]},sourceFrame:{name:vl.sourceFrame,referenceType:sn.$type},thenStatements:{name:vl.thenStatements,defaultValue:[]},whenStatements:{name:vl.whenStatements,defaultValue:[]}},superTypes:[]},EmGwtStatement:{name:Jv.$type,properties:{entityIdentifier:{name:Jv.entityIdentifier,referenceType:Pd.$type}},superTypes:[]},EmModelEntity:{name:Pd.$type,properties:{name:{name:Pd.name}},superTypes:[]},EmNoteEntity:{name:Yc.$type,properties:{dataBlockValue:{name:Yc.dataBlockValue},dataType:{name:Yc.dataType},sourceFrame:{name:Yc.sourceFrame,referenceType:sn.$type}},superTypes:[]},EmResetFrame:{name:$r.$type,properties:{dataInlineValue:{name:$r.dataInlineValue},dataReference:{name:$r.dataReference,referenceType:ga.$type},dataType:{name:$r.dataType},entityIdentifier:{name:$r.entityIdentifier},modelEntityType:{name:$r.modelEntityType},name:{name:$r.name},sourceFrames:{name:$r.sourceFrames,defaultValue:[],referenceType:sn.$type}},superTypes:[sn.$type]},EmTimeFrame:{name:jr.$type,properties:{dataInlineValue:{name:jr.dataInlineValue},dataReference:{name:jr.dataReference,referenceType:ga.$type},dataType:{name:jr.dataType},entityIdentifier:{name:jr.entityIdentifier},modelEntityType:{name:jr.modelEntityType},name:{name:jr.name},sourceFrames:{name:jr.sourceFrames,defaultValue:[],referenceType:sn.$type}},superTypes:[sn.$type]},Entry:{name:Od.$type,properties:{axis:{name:Od.axis,referenceType:Kc.$type},value:{name:Od.value}},superTypes:[]},EventModel:{name:vr.$type,properties:{accDescr:{name:vr.accDescr},accTitle:{name:vr.accTitle},dataEntities:{name:vr.dataEntities,defaultValue:[]},frames:{name:vr.frames,defaultValue:[]},gwtEntities:{name:vr.gwtEntities,defaultValue:[]},modelEntities:{name:vr.modelEntities,defaultValue:[]},noteEntities:{name:vr.noteEntities,defaultValue:[]},title:{name:vr.title}},superTypes:[]},Evolution:{name:Zv.$type,properties:{stages:{name:Zv.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:Xc.$type,properties:{boundary:{name:Xc.boundary},name:{name:Xc.name},secondName:{name:Xc.secondName}},superTypes:[]},Evolve:{name:Ld.$type,properties:{component:{name:Ld.component},target:{name:Ld.target}},superTypes:[]},GitGraph:{name:mn.$type,properties:{accDescr:{name:mn.accDescr},accTitle:{name:mn.accTitle},statements:{name:mn.statements,defaultValue:[]},title:{name:mn.title}},superTypes:[]},Group:{name:Tl.$type,properties:{icon:{name:Tl.icon},id:{name:Tl.id},in:{name:Tl.in},title:{name:Tl.title}},superTypes:[]},Info:{name:Ll.$type,properties:{accDescr:{name:Ll.accDescr},accTitle:{name:Ll.accTitle},title:{name:Ll.title}},superTypes:[]},Item:{name:Rl.$type,properties:{classSelector:{name:Rl.classSelector},name:{name:Rl.name}},superTypes:[]},Junction:{name:Dd.$type,properties:{id:{name:Dd.id},in:{name:Dd.in}},superTypes:[]},Label:{name:$l.$type,properties:{negX:{name:$l.negX,defaultValue:!1},negY:{name:$l.negY,defaultValue:!1},offsetX:{name:$l.offsetX},offsetY:{name:$l.offsetY}},superTypes:[]},Leaf:{name:Jc.$type,properties:{classSelector:{name:Jc.classSelector},name:{name:Jc.name},value:{name:Jc.value}},superTypes:[Rl.$type]},Link:{name:on.$type,properties:{arrow:{name:on.arrow},from:{name:on.from},fromPort:{name:on.fromPort},linkLabel:{name:on.linkLabel},to:{name:on.to},toPort:{name:on.toPort}},superTypes:[]},Merge:{name:Sa.$type,properties:{branch:{name:Sa.branch},id:{name:Sa.id},tags:{name:Sa.tags,defaultValue:[]},type:{name:Sa.type}},superTypes:[va.$type]},Note:{name:Zc.$type,properties:{evolution:{name:Zc.evolution},text:{name:Zc.text},visibility:{name:Zc.visibility}},superTypes:[]},Option:{name:Md.$type,properties:{name:{name:Md.name},value:{name:Md.value,defaultValue:!1}},superTypes:[]},Packet:{name:ba.$type,properties:{accDescr:{name:ba.accDescr},accTitle:{name:ba.accTitle},blocks:{name:ba.blocks,defaultValue:[]},title:{name:ba.title}},superTypes:[]},PacketBlock:{name:wa.$type,properties:{bits:{name:wa.bits},end:{name:wa.end},label:{name:wa.label},start:{name:wa.start}},superTypes:[]},Pie:{name:gn.$type,properties:{accDescr:{name:gn.accDescr},accTitle:{name:gn.accTitle},sections:{name:gn.sections,defaultValue:[]},showData:{name:gn.showData,defaultValue:!1},title:{name:gn.title}},superTypes:[]},PieSection:{name:$u.$type,properties:{label:{name:$u.label},value:{name:$u.value}},superTypes:[]},Pipeline:{name:xd.$type,properties:{components:{name:xd.components,defaultValue:[]},parent:{name:xd.parent}},superTypes:[]},PipelineComponent:{name:Qc.$type,properties:{evolution:{name:Qc.evolution},label:{name:Qc.label},name:{name:Qc.name}},superTypes:[]},Radar:{name:ln.$type,properties:{accDescr:{name:ln.accDescr},accTitle:{name:ln.accTitle},axes:{name:ln.axes,defaultValue:[]},curves:{name:ln.curves,defaultValue:[]},options:{name:ln.options,defaultValue:[]},title:{name:ln.title}},superTypes:[]},Section:{name:Fd.$type,properties:{classSelector:{name:Fd.classSelector},name:{name:Fd.name}},superTypes:[Rl.$type]},Service:{name:ya.$type,properties:{icon:{name:ya.icon},iconText:{name:ya.iconText},id:{name:ya.id},in:{name:ya.in},title:{name:ya.title}},superTypes:[]},Size:{name:Gd.$type,properties:{height:{name:Gd.height},width:{name:Gd.width}},superTypes:[]},Statement:{name:va.$type,properties:{},superTypes:[]},TreeNode:{name:Ud.$type,properties:{indent:{name:Ud.indent},name:{name:Ud.name}},superTypes:[]},TreeView:{name:Al.$type,properties:{accDescr:{name:Al.accDescr},accTitle:{name:Al.accTitle},nodes:{name:Al.nodes,defaultValue:[]},title:{name:Al.title}},superTypes:[]},Treemap:{name:Ia.$type,properties:{accDescr:{name:Ia.accDescr},accTitle:{name:Ia.accTitle},title:{name:Ia.title},TreemapRows:{name:Ia.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:jd.$type,properties:{indent:{name:jd.indent},item:{name:jd.item}},superTypes:[]},Wardley:{name:Je.$type,properties:{accDescr:{name:Je.accDescr},accelerators:{name:Je.accelerators,defaultValue:[]},accTitle:{name:Je.accTitle},anchors:{name:Je.anchors,defaultValue:[]},annotation:{name:Je.annotation,defaultValue:[]},annotations:{name:Je.annotations,defaultValue:[]},components:{name:Je.components,defaultValue:[]},deaccelerators:{name:Je.deaccelerators,defaultValue:[]},evolution:{name:Je.evolution},evolves:{name:Je.evolves,defaultValue:[]},links:{name:Je.links,defaultValue:[]},notes:{name:Je.notes,defaultValue:[]},pipelines:{name:Je.pipelines,defaultValue:[]},size:{name:Je.size},title:{name:Je.title}},superTypes:[]}}}},s(ao,"MermaidAstReflection"),ao),It=new uN,Qv,sU=s(()=>Qv??(Qv=wt(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@18"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[\\\\w ]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"ArchitectureGrammarGrammar"),eT,oU=s(()=>eT??(eT=wt('{"$type":"Grammar","isDeclared":true,"name":"EventModeling","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","entry":true,"name":"EventModel","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"eventmodeling"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"frames","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"dataEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"noteEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"gwtEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntityType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rmo"},{"$type":"Keyword","value":"readmodel"},{"$type":"Keyword","value":"ui"},{"$type":"Keyword","value":"cmd"},{"$type":"Keyword","value":"command"},{"$type":"Keyword","value":"evt"},{"$type":"Keyword","value":"event"},{"$type":"Keyword","value":"pcr"},{"$type":"Keyword","value":"processor"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"json"},{"$type":"Keyword","value":"jsobj"},{"$type":"Keyword","value":"figma"},{"$type":"Keyword","value":"salt"},{"$type":"Keyword","value":"uri"},{"$type":"Keyword","value":"md"},{"$type":"Keyword","value":"html"},{"$type":"Keyword","value":"text"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataInline","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataInlineValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataBlock","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataBlockValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"QualifiedName","dataType":"string","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"."},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmTimeFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"tf"},{"$type":"Keyword","value":"timeframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmResetFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rf"},{"$type":"Keyword","value":"resetframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmFrame","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"entity"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"data"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmNoteEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"note"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwt","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"gwt"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"given"},{"$type":"Assignment","feature":"givenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"},{"$type":"Group","elements":[{"$type":"Keyword","value":"when"},{"$type":"Assignment","feature":"whenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}],"cardinality":"?"},{"$type":"Keyword","value":"then"},{"$type":"Assignment","feature":"thenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwtStatement","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@9"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_EID","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_FI","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"EM_ID","definition":{"$type":"RegexToken","regex":"/[_a-zA-Z][\\\\w_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_FID","definition":{"$type":"RegexToken","regex":"/\\\\d{1,3}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_INLINE","definition":{"$type":"RegexToken","regex":"/\\\\{(.*)\\\\}|\\"(.*)\\"|\'(.*)\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_BLOCK","definition":{"$type":"RegexToken","regex":"/\\\\{[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?\\\\}(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EM_WS","definition":{"$type":"RegexToken","regex":"/\\\\s+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SL_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\/[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"imports":[],"types":[]}')),"EventModelingGrammar"),tT,lU=s(()=>tT??(tT=wt(`{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"GitGraphGrammarGrammar"),rT,cU=s(()=>rT??(rT=wt(`{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"InfoGrammarGrammar"),nT,uU=s(()=>nT??(nT=wt(`{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PacketGrammarGrammar"),aT,fU=s(()=>aT??(aT=wt(`{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PieGrammarGrammar"),iT,dU=s(()=>iT??(iT=wt(`{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}`)),"RadarGrammarGrammar"),sT,pU=s(()=>sT??(sT=wt(`{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`)),"TreemapGrammarGrammar"),oT,hU=s(()=>oT??(oT=wt(`{"$type":"Grammar","isDeclared":true,"name":"TreeViewGrammar","rules":[{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"TreeView","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"treeView-beta"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"nodes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@9"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * TreeView grammar for Langium\\n * Converted from treemap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}`)),"TreeViewGrammarGrammar"),lT,mU=s(()=>lT??(lT=wt(`{"$type":"Grammar","isDeclared":true,"name":"WardleyGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Wardley","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@42"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"size","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"anchors","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"links","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"evolves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"pipelines","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"notes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"annotations","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Assignment","feature":"annotation","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"deaccelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Size","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"width","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"height","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolution","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EvolutionStage","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"@"},{"$type":"Assignment","feature":"boundary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}],"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"secondName","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Anchor","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Component","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"decorator","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Keyword","value":")"}]}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Label","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"negX","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetX","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"negY","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetY","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Decorator","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"strategy","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Link","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"fromPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"arrow","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"cardinality":"?"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"toPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"linkLabel","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolve","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@32"},"arguments":[]},{"$type":"Assignment","feature":"component","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"target","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Pipeline","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@33"},"arguments":[]},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"+"},{"$type":"Keyword","value":"}"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PipelineComponent","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Note","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@34"},"arguments":[]},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotations","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@35"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotation","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@36"},"arguments":[]},{"$type":"Assignment","feature":"number","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CoordinateValue","dataType":"number","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Accelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@37"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Deaccelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@38"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"WARDLEY_NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"->"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_PORT","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<>"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+>"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_ARROW","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-->"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-.->"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":">"},"parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'<>/","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'</","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'>/","parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_LABEL","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRATEGY","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"build"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"buy"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"outsource"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"market"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_WARDLEY","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"wardley-beta"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_SIZE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"size"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLUTION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolution"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANCHOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"anchor"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_COMPONENT","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"component"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_LABEL","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"label"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_INERTIA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"inertia"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLVE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolve"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_PIPELINE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"pipeline"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_NOTE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"note"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATIONS","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotations"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotation"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"accelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_DEACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"deaccelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NAME_WITH_SPACES","definition":{"$type":"RegexToken","regex":"/(?!title\\\\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \\\\t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@44"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@45"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@46"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@47"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@48"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"WardleyGrammarGrammar"),gU={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},yU={languageId:"eventmodeling",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},vU={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},TU={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},RU={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},$U={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},AU={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},EU={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},_U={languageId:"treeView",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},CU={languageId:"wardley",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},mr={AstReflection:s(()=>new uN,"AstReflection")},SU={Grammar:s(()=>sU(),"Grammar"),LanguageMetaData:s(()=>gU,"LanguageMetaData"),parser:{}},bU={Grammar:s(()=>oU(),"Grammar"),LanguageMetaData:s(()=>yU,"LanguageMetaData"),parser:{}},wU={Grammar:s(()=>lU(),"Grammar"),LanguageMetaData:s(()=>vU,"LanguageMetaData"),parser:{}},IU={Grammar:s(()=>cU(),"Grammar"),LanguageMetaData:s(()=>TU,"LanguageMetaData"),parser:{}},NU={Grammar:s(()=>uU(),"Grammar"),LanguageMetaData:s(()=>RU,"LanguageMetaData"),parser:{}},kU={Grammar:s(()=>fU(),"Grammar"),LanguageMetaData:s(()=>$U,"LanguageMetaData"),parser:{}},PU={Grammar:s(()=>dU(),"Grammar"),LanguageMetaData:s(()=>AU,"LanguageMetaData"),parser:{}},OU={Grammar:s(()=>pU(),"Grammar"),LanguageMetaData:s(()=>EU,"LanguageMetaData"),parser:{}},LU={Grammar:s(()=>hU(),"Grammar"),LanguageMetaData:s(()=>_U,"LanguageMetaData"),parser:{}},DU={Grammar:s(()=>mU(),"Grammar"),LanguageMetaData:s(()=>CU,"LanguageMetaData"),parser:{}},MU=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,xU=/accTitle[\t ]*:([^\n\r]*)/,FU=/title([\t ][^\n\r]*|)/,GU={ACC_DESCR:MU,ACC_TITLE:xU,TITLE:FU},io,Yo=(io=class extends ty{runConverter(e,r,n){let a=this.runCommonConverter(e,r,n);return a===void 0&&(a=this.runCustomConverter(e,r,n)),a===void 0?super.runConverter(e,r,n):a}runCommonConverter(e,r,n){const a=GU[e.name];if(a===void 0)return;const i=a.exec(r);if(i!==null){if(i[1]!==void 0)return i[1].trim().replace(/[\t ]{2,}/gm," ");if(i[2]!==void 0)return i[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,`
|
|
159
|
+
`)}}},s(io,"AbstractMermaidValueConverter"),io),so,Lc=(so=class extends Yo{runCustomConverter(e,r,n){}},s(so,"CommonValueConverter"),so),oo,gr=(oo=class extends fd{constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,r,n){const a=super.buildKeywordTokens(e,r,n);return a.forEach(i=>{this.keywords.has(i.name)&&i.PATTERN!==void 0&&(i.PATTERN=new RegExp(i.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),a}},s(oo,"AbstractMermaidTokenBuilder"),oo),lo;lo=class extends gr{},s(lo,"CommonTokenBuilder");var co,jU=(co=class extends gr{constructor(){super(["radar-beta"])}},s(co,"RadarTokenBuilder"),co),fN={parser:{TokenBuilder:s(()=>new jU,"TokenBuilder"),ValueConverter:s(()=>new Lc,"ValueConverter")}};function dN(t=Gt){const e=ke(bt(t),mr),r=ke(St({shared:e}),PU,fN);return e.ServiceRegistry.register(r),{shared:e,Radar:r}}s(dN,"createRadarServices");var uo,UU=(uo=class extends gr{constructor(){super(["treemap"])}},s(uo,"TreemapTokenBuilder"),uo),zU=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,fo,BU=(fo=class extends Yo{runCustomConverter(e,r,n){if(e.name==="NUMBER2")return parseFloat(r.replace(/,/g,""));if(e.name==="SEPARATOR")return r.substring(1,r.length-1);if(e.name==="STRING2")return r.substring(1,r.length-1);if(e.name==="INDENTATION")return r.length;if(e.name==="ClassDef"){if(typeof r!="string")return r;const a=zU.exec(r);if(a)return{$type:"ClassDefStatement",className:a[1],styleText:a[2]||void 0}}}},s(fo,"TreemapValueConverter"),fo);function pN(t){const e=t.validation.TreemapValidator,r=t.validation.ValidationRegistry;if(r){const n={Treemap:e.checkSingleRoot.bind(e)};r.register(n,e)}}s(pN,"registerValidationChecks");var po,KU=(po=class{checkSingleRoot(e,r){let n;for(const a of e.TreemapRows)a.item&&(n===void 0&&a.indent===void 0?n=0:a.indent===void 0?r("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}):n!==void 0&&n>=parseInt(a.indent,10)&&r("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}))}},s(po,"TreemapValidator"),po),hN={parser:{TokenBuilder:s(()=>new UU,"TokenBuilder"),ValueConverter:s(()=>new BU,"ValueConverter")},validation:{TreemapValidator:s(()=>new KU,"TreemapValidator")}};function mN(t=Gt){const e=ke(bt(t),mr),r=ke(St({shared:e}),OU,hN);return e.ServiceRegistry.register(r),pN(r),{shared:e,Treemap:r}}s(mN,"createTreemapServices");var ho,qU=(ho=class extends Yo{runCustomConverter(e,r,n){if(e.name.toUpperCase()==="LINK_LABEL")return r.substring(1).trim()}},s(ho,"WardleyValueConverter"),ho),gN={parser:{ValueConverter:s(()=>new qU,"ValueConverter")}};function yN(t=Gt){const e=ke(bt(t),mr),r=ke(St({shared:e}),DU,gN);return e.ServiceRegistry.register(r),{shared:e,Wardley:r}}s(yN,"createWardleyServices");var mo,WU=(mo=class extends gr{constructor(){super(["gitGraph"])}},s(mo,"GitGraphTokenBuilder"),mo),vN={parser:{TokenBuilder:s(()=>new WU,"TokenBuilder"),ValueConverter:s(()=>new Lc,"ValueConverter")}};function TN(t=Gt){const e=ke(bt(t),mr),r=ke(St({shared:e}),wU,vN);return e.ServiceRegistry.register(r),{shared:e,GitGraph:r}}s(TN,"createGitGraphServices");var go,VU=(go=class extends gr{constructor(){super(["info","showInfo"])}},s(go,"InfoTokenBuilder"),go),RN={parser:{TokenBuilder:s(()=>new VU,"TokenBuilder"),ValueConverter:s(()=>new Lc,"ValueConverter")}};function $N(t=Gt){const e=ke(bt(t),mr),r=ke(St({shared:e}),IU,RN);return e.ServiceRegistry.register(r),{shared:e,Info:r}}s($N,"createInfoServices");var yo,HU=(yo=class extends gr{constructor(){super(["packet"])}},s(yo,"PacketTokenBuilder"),yo),AN={parser:{TokenBuilder:s(()=>new HU,"TokenBuilder"),ValueConverter:s(()=>new Lc,"ValueConverter")}};function EN(t=Gt){const e=ke(bt(t),mr),r=ke(St({shared:e}),NU,AN);return e.ServiceRegistry.register(r),{shared:e,Packet:r}}s(EN,"createPacketServices");var vo,YU=(vo=class extends gr{constructor(){super(["pie","showData"])}},s(vo,"PieTokenBuilder"),vo),To,XU=(To=class extends Yo{runCustomConverter(e,r,n){if(e.name==="PIE_SECTION_LABEL")return r.replace(/"/g,"").trim()}},s(To,"PieValueConverter"),To),_N={parser:{TokenBuilder:s(()=>new YU,"TokenBuilder"),ValueConverter:s(()=>new XU,"ValueConverter")}};function CN(t=Gt){const e=ke(bt(t),mr),r=ke(St({shared:e}),kU,_N);return e.ServiceRegistry.register(r),{shared:e,Pie:r}}s(CN,"createPieServices");var Ro,JU=(Ro=class extends Yo{runCustomConverter(e,r,n){if(e.name==="INDENTATION")return r?.length||0;if(e.name==="STRING2")return r.substring(1,r.length-1)}},s(Ro,"TreeViewValueConverter"),Ro),$o,ZU=($o=class extends gr{constructor(){super(["treeView-beta"])}},s($o,"TreeViewTokenBuilder"),$o),SN={parser:{TokenBuilder:s(()=>new ZU,"TokenBuilder"),ValueConverter:s(()=>new JU,"ValueConverter")}};function bN(t=Gt){const e=ke(bt(t),mr),r=ke(St({shared:e}),LU,SN);return e.ServiceRegistry.register(r),{shared:e,TreeView:r}}s(bN,"createTreeViewServices");var Ao,QU=(Ao=class extends gr{constructor(){super(["architecture"])}},s(Ao,"ArchitectureTokenBuilder"),Ao),Eo,ez=(Eo=class extends Yo{runCustomConverter(e,r,n){if(e.name==="ARCH_ICON")return r.replace(/[()]/g,"").trim();if(e.name==="ARCH_TEXT_ICON")return r.replace(/["()]/g,"");if(e.name==="ARCH_TITLE"){let a=r.replace(/^\[|]$/g,"").trim();return(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))&&(a=a.slice(1,-1),a=a.replace(/\\"/g,'"').replace(/\\'/g,"'")),a.trim()}}},s(Eo,"ArchitectureValueConverter"),Eo),wN={parser:{TokenBuilder:s(()=>new QU,"TokenBuilder"),ValueConverter:s(()=>new ez,"ValueConverter")}};function IN(t=Gt){const e=ke(bt(t),mr),r=ke(St({shared:e}),SU,wN);return e.ServiceRegistry.register(r),{shared:e,Architecture:r}}s(IN,"createArchitectureServices");var _o,tz=(_o=class extends gr{constructor(){super(["eventmodeling"])}},s(_o,"EventModelingTokenBuilder"),_o),cT=new Set(["cmd","command"]),uT=new Set(["evt","event"]),zd=new Set(["rmo","readmodel"]),fT=new Set(["pcr","processor"]),dT=new Set(["ui"]);function NN(t){const e=t.validation.EventModelingValidator,r=t.validation.ValidationRegistry;if(r){const n={EmTimeFrame:e.checkSourceFrameTypes.bind(e),EmResetFrame:e.checkSourceFrameTypes.bind(e)};r.register(n,e)}}s(NN,"registerValidationChecks");var Co,rz=(Co=class{checkSourceFrameTypes(e,r){e.sourceFrames.length!==0&&(cT.has(e.modelEntityType)?this.validateSources(e,new Set([...dT,...fT]),"command","ui or processor",r):uT.has(e.modelEntityType)?this.validateSources(e,cT,"event","command",r):zd.has(e.modelEntityType)?this.validateSources(e,uT,"read model","event",r):fT.has(e.modelEntityType)?this.validateSources(e,zd,"processor","read model",r):dT.has(e.modelEntityType)&&this.validateSources(e,zd,"ui","read model",r))}validateSources(e,r,n,a,i){for(const o of e.sourceFrames){const c=o.ref;c!==void 0&&!r.has(c.modelEntityType)&&i("error",`A ${n} can only receive input from a ${a}, not from '${c.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},s(Co,"EventModelingValidator"),Co),kN={parser:{TokenBuilder:s(()=>new tz,"TokenBuilder"),ValueConverter:s(()=>new Lc,"ValueConverter")},validation:{EventModelingValidator:s(()=>new rz,"EventModelingValidator")}};function PN(t=Gt){const e=ke(bt(t),mr),r=ke(St({shared:e}),bU,kN);return e.ServiceRegistry.register(r),NN(r),{shared:e,EventModel:r}}s(PN,"createEventModelingServices");var Pt={},nz={info:s(async()=>{const{createInfoServices:t}=await er(async()=>{const{createInfoServices:r}=await Promise.resolve().then(()=>sz);return{createInfoServices:r}},void 0),e=t().Info.parser.LangiumParser;Pt.info=e},"info"),packet:s(async()=>{const{createPacketServices:t}=await er(async()=>{const{createPacketServices:r}=await Promise.resolve().then(()=>oz);return{createPacketServices:r}},void 0),e=t().Packet.parser.LangiumParser;Pt.packet=e},"packet"),pie:s(async()=>{const{createPieServices:t}=await er(async()=>{const{createPieServices:r}=await Promise.resolve().then(()=>lz);return{createPieServices:r}},void 0),e=t().Pie.parser.LangiumParser;Pt.pie=e},"pie"),treeView:s(async()=>{const{createTreeViewServices:t}=await er(async()=>{const{createTreeViewServices:r}=await Promise.resolve().then(()=>cz);return{createTreeViewServices:r}},void 0),e=t().TreeView.parser.LangiumParser;Pt.treeView=e},"treeView"),architecture:s(async()=>{const{createArchitectureServices:t}=await er(async()=>{const{createArchitectureServices:r}=await Promise.resolve().then(()=>uz);return{createArchitectureServices:r}},void 0),e=t().Architecture.parser.LangiumParser;Pt.architecture=e},"architecture"),gitGraph:s(async()=>{const{createGitGraphServices:t}=await er(async()=>{const{createGitGraphServices:r}=await Promise.resolve().then(()=>fz);return{createGitGraphServices:r}},void 0),e=t().GitGraph.parser.LangiumParser;Pt.gitGraph=e},"gitGraph"),eventmodeling:s(async()=>{const{createEventModelingServices:t}=await er(async()=>{const{createEventModelingServices:r}=await Promise.resolve().then(()=>dz);return{createEventModelingServices:r}},void 0),e=t().EventModel.parser.LangiumParser;Pt.eventmodeling=e},"eventmodeling"),radar:s(async()=>{const{createRadarServices:t}=await er(async()=>{const{createRadarServices:r}=await Promise.resolve().then(()=>pz);return{createRadarServices:r}},void 0),e=t().Radar.parser.LangiumParser;Pt.radar=e},"radar"),treemap:s(async()=>{const{createTreemapServices:t}=await er(async()=>{const{createTreemapServices:r}=await Promise.resolve().then(()=>hz);return{createTreemapServices:r}},void 0),e=t().Treemap.parser.LangiumParser;Pt.treemap=e},"treemap"),wardley:s(async()=>{const{createWardleyServices:t}=await er(async()=>{const{createWardleyServices:r}=await Promise.resolve().then(()=>mz);return{createWardleyServices:r}},void 0),e=t().Wardley.parser.LangiumParser;Pt.wardley=e},"wardley")};async function az(t,e){const r=nz[t];if(!r)throw new Error(`Unknown diagram type: ${t}`);Pt[t]||await r();const a=Pt[t].parse(e);if(a.lexerErrors.length>0||a.parserErrors.length>0)throw new iz(a);return a.value}s(az,"parse");var So,iz=(So=class extends Error{constructor(e){const r=e.lexerErrors.map(a=>{const i=a.line!==void 0&&!isNaN(a.line)?a.line:"?",o=a.column!==void 0&&!isNaN(a.column)?a.column:"?";return`Lexer error on line ${i}, column ${o}: ${a.message}`}).join(`
|
|
160
|
+
`),n=e.parserErrors.map(a=>{const i=a.token.startLine!==void 0&&!isNaN(a.token.startLine)?a.token.startLine:"?",o=a.token.startColumn!==void 0&&!isNaN(a.token.startColumn)?a.token.startColumn:"?";return`Parse error on line ${i}, column ${o}: ${a.message}`}).join(`
|
|
161
|
+
`);super(`Parsing failed: ${r} ${n}`),this.result=e}},s(So,"MermaidParseError"),So);const sz=Object.freeze(Object.defineProperty({__proto__:null,InfoModule:RN,createInfoServices:$N},Symbol.toStringTag,{value:"Module"})),oz=Object.freeze(Object.defineProperty({__proto__:null,PacketModule:AN,createPacketServices:EN},Symbol.toStringTag,{value:"Module"})),lz=Object.freeze(Object.defineProperty({__proto__:null,PieModule:_N,createPieServices:CN},Symbol.toStringTag,{value:"Module"})),cz=Object.freeze(Object.defineProperty({__proto__:null,TreeViewModule:SN,createTreeViewServices:bN},Symbol.toStringTag,{value:"Module"})),uz=Object.freeze(Object.defineProperty({__proto__:null,ArchitectureModule:wN,createArchitectureServices:IN},Symbol.toStringTag,{value:"Module"})),fz=Object.freeze(Object.defineProperty({__proto__:null,GitGraphModule:vN,createGitGraphServices:TN},Symbol.toStringTag,{value:"Module"})),dz=Object.freeze(Object.defineProperty({__proto__:null,EventModelingModule:kN,createEventModelingServices:PN},Symbol.toStringTag,{value:"Module"})),pz=Object.freeze(Object.defineProperty({__proto__:null,RadarModule:fN,createRadarServices:dN},Symbol.toStringTag,{value:"Module"})),hz=Object.freeze(Object.defineProperty({__proto__:null,TreemapModule:hN,createTreemapServices:mN},Symbol.toStringTag,{value:"Module"})),mz=Object.freeze(Object.defineProperty({__proto__:null,WardleyModule:gN,createWardleyServices:yN},Symbol.toStringTag,{value:"Module"}));export{Xj as i,az as p};
|