class FieldRegistryImpl {
  constructor() {
    this.map = /* @__PURE__ */ new Map();
  }
  register(kind, entry) {
    const k = kind.toLowerCase();
    const prev = this.map.get(k) || {};
    this.map.set(k, { ...prev, ...entry });
  }
  getInput(kind) {
    return this.map.get(kind.toLowerCase())?.input;
  }
  getDefEditor(kind) {
    return this.map.get(kind.toLowerCase())?.defEditor;
  }
}
const FieldRegistry = new FieldRegistryImpl();
async function loadGeneratedFieldRegistrations() {
  try {
    const gen = await import("./registry.generated.js");
    if (typeof gen.loadAll === "function") gen.loadAll();
  } catch {
  }
}
export {
  FieldRegistry,
  loadGeneratedFieldRegistrations
};
//# sourceMappingURL=registry.js.map
