module.exports=[63990,a=>{"use strict";var b=a.i(57741),c=class extends b.AbstractMermaidTokenBuilder{static{(0,b.__name)(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},d=new Set(["cmd","command"]),e=new Set(["evt","event"]),f=new Set(["rmo","readmodel"]),g=new Set(["pcr","processor"]),h=new Set(["ui"]);function i(a){let b=a.validation.EventModelingValidator,c=a.validation.ValidationRegistry;if(c){let a={EmTimeFrame:b.checkSourceFrameTypes.bind(b),EmResetFrame:b.checkSourceFrameTypes.bind(b)};c.register(a,b)}}(0,b.__name)(i,"registerValidationChecks");var j=class{static{(0,b.__name)(this,"EventModelingValidator")}checkSourceFrameTypes(a,b){0!==a.sourceFrames.length&&(d.has(a.modelEntityType)?this.validateSources(a,new Set([...h,...g]),"command","ui or processor",b):e.has(a.modelEntityType)?this.validateSources(a,d,"event","command",b):f.has(a.modelEntityType)?this.validateSources(a,e,"read model","event",b):g.has(a.modelEntityType)?this.validateSources(a,f,"processor","read model",b):h.has(a.modelEntityType)&&this.validateSources(a,f,"ui","read model",b))}validateSources(a,b,c,d,e){for(let f of a.sourceFrames){let g=f.ref;void 0===g||b.has(g.modelEntityType)||e("error",`A ${c} can only receive input from a ${d}, not from '${g.modelEntityType}'.`,{node:a,property:"sourceFrames"})}}},k={parser:{TokenBuilder:(0,b.__name)(()=>new c,"TokenBuilder"),ValueConverter:(0,b.__name)(()=>new b.CommonValueConverter,"ValueConverter")},validation:{EventModelingValidator:(0,b.__name)(()=>new j,"EventModelingValidator")}};function l(a=b.EmptyFileSystem){let c=(0,b.inject)((0,b.createDefaultSharedCoreModule)(a),b.MermaidGeneratedSharedModule),d=(0,b.inject)((0,b.createDefaultCoreModule)({shared:c}),b.EventModelingGeneratedModule,k);return c.ServiceRegistry.register(d),i(d),{shared:c,EventModel:d}}(0,b.__name)(l,"createEventModelingServices"),a.s(["EventModelingModule",0,k,"createEventModelingServices",0,l])},43256,a=>{"use strict";var b=a.i(63990);a.i(57741),a.s([],39828),a.i(39828),a.s(["createEventModelingServices",()=>b.createEventModelingServices],43256)}];

//# sourceMappingURL=0ui-_%40mermaid-js_parser_dist_chunks_mermaid-parser_core_08_~0ln._.js.map