"use strict";
var _a, _b;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const chunkFPAJGGOC = require("./dist-chunks-mermaid-parser.core-chunk-FPAJGGOC.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 ArchitectureTokenBuilder = (_a = class extends chunkFPAJGGOC.AbstractMermaidTokenBuilder {
  constructor() {
    super(["architecture"]);
  }
}, chunkFPAJGGOC.__name(_a, "ArchitectureTokenBuilder"), _a);
var ArchitectureValueConverter = (_b = class extends chunkFPAJGGOC.AbstractMermaidValueConverter {
  runCustomConverter(rule, input, _cstNode) {
    if (rule.name === "ARCH_ICON") {
      return input.replace(/[()]/g, "").trim();
    } else if (rule.name === "ARCH_TEXT_ICON") {
      return input.replace(/["()]/g, "");
    } else if (rule.name === "ARCH_TITLE") {
      return input.replace(/[[\]]/g, "").trim();
    }
    return void 0;
  }
}, chunkFPAJGGOC.__name(_b, "ArchitectureValueConverter"), _b);
var ArchitectureModule = {
  parser: {
    TokenBuilder: /* @__PURE__ */ chunkFPAJGGOC.__name(() => new ArchitectureTokenBuilder(), "TokenBuilder"),
    ValueConverter: /* @__PURE__ */ chunkFPAJGGOC.__name(() => new ArchitectureValueConverter(), "ValueConverter")
  }
};
function createArchitectureServices(context = fileSystemProvider.EmptyFileSystem) {
  const shared = dependencyInjection.inject(
    defaultModule.createDefaultSharedCoreModule(context),
    chunkFPAJGGOC.MermaidGeneratedSharedModule
  );
  const Architecture = dependencyInjection.inject(
    defaultModule.createDefaultCoreModule({ shared }),
    chunkFPAJGGOC.ArchitectureGeneratedModule,
    ArchitectureModule
  );
  shared.ServiceRegistry.register(Architecture);
  return { shared, Architecture };
}
chunkFPAJGGOC.__name(createArchitectureServices, "createArchitectureServices");
exports.ArchitectureModule = ArchitectureModule;
exports.createArchitectureServices = createArchitectureServices;
//# sourceMappingURL=dist-chunks-mermaid-parser.core-chunk-O7ZBX7Z2.cjs.map
