"use strict";
var _a, _b;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const chunk4KMFLZZN = require("./dist-chunks-mermaid-parser.core-chunk-4KMFLZZN.cjs");
const fileSystemProvider = require("../../langium/lib-workspace-file-system-provider.cjs");
const dependencyInjection = require("../../langium/lib-dependency-injection.cjs");
const defaultModule = require("../../langium/lib-default-module.cjs");
var PieTokenBuilder = (_a = class extends chunk4KMFLZZN.AbstractMermaidTokenBuilder {
  constructor() {
    super(["pie", "showData"]);
  }
}, chunk4KMFLZZN.__name(_a, "PieTokenBuilder"), _a);
var PieValueConverter = (_b = class extends chunk4KMFLZZN.AbstractMermaidValueConverter {
  runCustomConverter(rule, input, _cstNode) {
    if (rule.name !== "PIE_SECTION_LABEL") {
      return void 0;
    }
    return input.replace(/"/g, "").trim();
  }
}, chunk4KMFLZZN.__name(_b, "PieValueConverter"), _b);
var PieModule = {
  parser: {
    TokenBuilder: /* @__PURE__ */ chunk4KMFLZZN.__name(() => new PieTokenBuilder(), "TokenBuilder"),
    ValueConverter: /* @__PURE__ */ chunk4KMFLZZN.__name(() => new PieValueConverter(), "ValueConverter")
  }
};
function createPieServices(context = fileSystemProvider.EmptyFileSystem) {
  const shared = dependencyInjection.inject(
    defaultModule.createDefaultSharedCoreModule(context),
    chunk4KMFLZZN.MermaidGeneratedSharedModule
  );
  const Pie = dependencyInjection.inject(
    defaultModule.createDefaultCoreModule({ shared }),
    chunk4KMFLZZN.PieGeneratedModule,
    PieModule
  );
  shared.ServiceRegistry.register(Pie);
  return { shared, Pie };
}
chunk4KMFLZZN.__name(createPieServices, "createPieServices");
exports.PieModule = PieModule;
exports.createPieServices = createPieServices;
//# sourceMappingURL=dist-chunks-mermaid-parser.core-chunk-WFWHJNB7.cjs.map
