import { __exports as e } from "../../../../../../../../_virtual/applicability.js";
var n;
function d() {
  if (n) return e;
  n = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
  function t({ schema: r, self: o }, u) {
    const s = o.RULES.types[u];
    return s && s !== !0 && i(r, s);
  }
  e.schemaHasRulesForType = t;
  function i(r, o) {
    return o.rules.some((u) => l(r, u));
  }
  e.shouldUseGroup = i;
  function l(r, o) {
    var u;
    return r[o.keyword] !== void 0 || ((u = o.definition.implements) === null || u === void 0 ? void 0 : u.some((s) => r[s] !== void 0));
  }
  return e.shouldUseRule = l, e;
}
export {
  d as __require
};
//# sourceMappingURL=applicability.js.map
