"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _common = require("./common"); var _default = function _default(max) { return (0, _common.withParams)({ type: 'maxValue', max: max }, function (value) { return !(0, _common.req)(value) || (!/\s/.test(value) || value instanceof Date) && +value <= +max; }); }; exports.default = _default;