import { a as o } from "../chunk-ZTDUXSWH.js";
import "@sinclair/typebox";
import "../chunk-T3LIA4YB.js";
import "../chunk-YBGPPF7T.js";
import "../chunk-UMHXXXVP.js";
import "../chunk-5N6MBJJ4.js";
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
function h(r) {
  if (!r.$ref) return r;
  let e = o.getSchema(r.$ref)?.schema;
  if (!e || typeof r != "object") throw new Error(`Schema not found for reference: ${r.$ref}`);
  let { $ref: f, ...t } = r;
  return { ...e, ...t };
}
export {
  h as resolveSchema
};
//# sourceMappingURL=schema-resolver.js.map
