import { C as isArray_default, D as _root_default, T as _baseGetTag_default, a as _Map_default, c as isTypedArray_default, d as isBuffer_default, f as isArguments_default, m as isArrayLike_default, o as _overArg_default, p as _isPrototype_default, v as _getNative_default, y as _toSource_default } from "./_baseFor-BGiY-cm1.js";
var _WeakMap_default = _getNative_default(_root_default, "WeakMap"), _nativeKeys_default = _overArg_default(Object.keys, Object), hasOwnProperty$1 = Object.prototype.hasOwnProperty;
function baseKeys(p) {
  if (!_isPrototype_default(p)) return _nativeKeys_default(p);
  var P = [];
  for (var F in Object(p)) hasOwnProperty$1.call(p, F) && F != "constructor" && P.push(F);
  return P;
}
var _baseKeys_default = baseKeys, _DataView_default = _getNative_default(_root_default, "DataView"), _Promise_default = _getNative_default(_root_default, "Promise"), _Set_default = _getNative_default(_root_default, "Set"), mapTag$1 = "[object Map]", objectTag = "[object Object]", promiseTag = "[object Promise]", setTag$1 = "[object Set]", weakMapTag = "[object WeakMap]", dataViewTag = "[object DataView]", dataViewCtorString = _toSource_default(_DataView_default), mapCtorString = _toSource_default(_Map_default), promiseCtorString = _toSource_default(_Promise_default), setCtorString = _toSource_default(_Set_default), weakMapCtorString = _toSource_default(_WeakMap_default), getTag = _baseGetTag_default;
(_DataView_default && getTag(new _DataView_default(/* @__PURE__ */ new ArrayBuffer(1))) != dataViewTag || _Map_default && getTag(new _Map_default()) != mapTag$1 || _Promise_default && getTag(_Promise_default.resolve()) != promiseTag || _Set_default && getTag(new _Set_default()) != setTag$1 || _WeakMap_default && getTag(new _WeakMap_default()) != weakMapTag) && (getTag = function(p) {
  var P = _baseGetTag_default(p), I = P == objectTag ? p.constructor : void 0, L = I ? _toSource_default(I) : "";
  if (L) switch (L) {
    case dataViewCtorString:
      return dataViewTag;
    case mapCtorString:
      return mapTag$1;
    case promiseCtorString:
      return promiseTag;
    case setCtorString:
      return setTag$1;
    case weakMapCtorString:
      return weakMapTag;
  }
  return P;
});
var _getTag_default = getTag, mapTag = "[object Map]", setTag = "[object Set]", hasOwnProperty = Object.prototype.hasOwnProperty;
function isEmpty(P) {
  if (P == null) return true;
  if (isArrayLike_default(P) && (isArray_default(P) || typeof P == "string" || typeof P.splice == "function" || isBuffer_default(P) || isTypedArray_default(P) || isArguments_default(P))) return !P.length;
  var F = _getTag_default(P);
  if (F == mapTag || F == setTag) return !P.size;
  if (_isPrototype_default(P)) return !_baseKeys_default(P).length;
  for (var I in P) if (hasOwnProperty.call(P, I)) return false;
  return true;
}
var isEmpty_default = isEmpty;
export {
  _baseKeys_default as i,
  _getTag_default as n,
  _Set_default as r,
  isEmpty_default as t
};
