import { __exports as o } from "../../../../../../../../_virtual/multipleOf.js";
import { __require as d } from "../../compile/codegen/index.js";
var u;
function _() {
  if (u) return o;
  u = 1, Object.defineProperty(o, "__esModule", { value: !0 });
  const r = d(), i = {
    keyword: "multipleOf",
    type: "number",
    schemaType: "number",
    $data: !0,
    error: {
      message: ({ schemaCode: e }) => (0, r.str)`must be multiple of ${e}`,
      params: ({ schemaCode: e }) => (0, r._)`{multipleOf: ${e}}`
    },
    code(e) {
      const { gen: n, data: l, schemaCode: s, it: p } = e, a = p.opts.multipleOfPrecision, t = n.let("res"), m = a ? (0, r._)`Math.abs(Math.round(${t}) - ${t}) > 1e-${a}` : (0, r._)`${t} !== parseInt(${t})`;
      e.fail$data((0, r._)`(${s} === 0 || (${t} = ${l}/${s}, ${m}))`);
    }
  };
  return o.default = i, o;
}
export {
  _ as __require
};
//# sourceMappingURL=multipleOf.js.map
