import { AbstractMermaidTokenBuilder as s, __name as i, AbstractMermaidValueConverter as u, MermaidGeneratedSharedModule as d, PieGeneratedModule as c } from "./chunk-FPAJGGOC.js";
import { EmptyFileSystem as l } from "../../../../../../../langium@3.3.1/node_modules/langium/lib/workspace/file-system-provider.js";
import { inject as a } from "../../../../../../../langium@3.3.1/node_modules/langium/lib/dependency-injection.js";
import { createDefaultSharedCoreModule as m, createDefaultCoreModule as v } from "../../../../../../../langium@3.3.1/node_modules/langium/lib/default-module.js";
var e, p = (e = class extends s {
  constructor() {
    super(["pie", "showData"]);
  }
}, i(e, "PieTokenBuilder"), e), r, C = (r = class extends u {
  runCustomConverter(t, o, M) {
    if (t.name === "PIE_SECTION_LABEL")
      return o.replace(/"/g, "").trim();
  }
}, i(r, "PieValueConverter"), r), P = {
  parser: {
    TokenBuilder: /* @__PURE__ */ i(() => new p(), "TokenBuilder"),
    ValueConverter: /* @__PURE__ */ i(() => new C(), "ValueConverter")
  }
};
function f(n = l) {
  const t = a(
    m(n),
    d
  ), o = a(
    v({ shared: t }),
    c,
    P
  );
  return t.ServiceRegistry.register(o), { shared: t, Pie: o };
}
i(f, "createPieServices");
export {
  P as PieModule,
  f as createPieServices
};
