"use strict";var a=Object.defineProperty;var l=(r,t)=>a(r,"name",{value:t,configurable:!0});const f={null:!0,string:!0,array:!0,buffer:!0,map:!0,set:!0,object:!0,whitespace:!1,zero:!1,false:!1,falsy:!1,date:!0};function s(r,t={}){const e={...f,...t};if(r===void 0)return!0;if(e.none!==!0){if(r===null&&(e.all||e.null)||typeof r=="string"&&r.length===0&&(e.all||e.string)||typeof r=="string"&&/^\s+$/.test(r)&&(e.all||e.whitespace)||typeof r=="number"&&isNaN(r)&&(e.all||e.nan)||r===0&&(e.all||e.zero))return!0;if(Array.isArray(r)){if(r.length===0&&(e.all||e.array))return!0}else if(Buffer.isBuffer(r)){if(r.byteLength===0&&(e.all||e.buffer))return!0}else if(r instanceof Map){if(r.size===0&&(e.all||e.map))return!0}else if(r instanceof Set){if(r.size===0&&(e.all||e.set))return!0}else if(r instanceof Date){if(r.valueOf()===0&&(e.all||e.date))return!0}else if(r instanceof URL){if(r.toString().length===0)return!0}else if(typeof r=="object"&&r!==null&&Object.keys(r).length===0&&(e.all||e.object))return!0;if(r===!1&&e.all||e.false||!r&&(e.all||e.falsy))return!0}return!!(e.custom&&e.custom(r,e))}l(s,"isEmpty"),exports.emptyDefaults=f,exports.isEmpty=s;