const require_rolldown_runtime = require('../../../../../../../../_virtual/rolldown_runtime.js');
const require_ValidateBy$1 = require('../common/ValidateBy.js');

//#region ../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/typechecker/IsObject.js
var require_IsObject = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/typechecker/IsObject.js": ((exports) => {
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.IsObject = exports.isObject = exports.IS_OBJECT = void 0;
	const ValidateBy_1 = require_ValidateBy$1.require_ValidateBy();
	exports.IS_OBJECT = "isObject";
	/**
	* Checks if the value is valid Object.
	* Returns false if the value is not an object.
	*/
	function isObject(value) {
		return value != null && (typeof value === "object" || typeof value === "function") && !Array.isArray(value);
	}
	exports.isObject = isObject;
	/**
	* Checks if the value is valid Object.
	* Returns false if the value is not an object.
	*/
	function IsObject(validationOptions) {
		return (0, ValidateBy_1.ValidateBy)({
			name: exports.IS_OBJECT,
			validator: {
				validate: (value, args) => isObject(value),
				defaultMessage: (0, ValidateBy_1.buildMessage)((eachPrefix) => eachPrefix + "$property must be an object", validationOptions)
			}
		}, validationOptions);
	}
	exports.IsObject = IsObject;
}) });

//#endregion
Object.defineProperty(exports, 'default', {
  enumerable: true,
  get: function () {
    return require_IsObject();
  }
});