/**
 * ldesign v0.2.2
 * (c) 2022年9月20日 swimly
 * @license MIT
 */

import _typeof from '@babel/runtime/helpers/typeof';
import { _ as _baseGetTag, i as isObjectLike_1 } from './dep-5c5da9dd.js';

function eq(value, other) {
  return value === other || value !== value && other !== other;
}

var eq_1 = eq;
var baseGetTag$1 = _baseGetTag,
    isObjectLike = isObjectLike_1;
var symbolTag = "[object Symbol]";

function isSymbol(value) {
  return _typeof(value) == "symbol" || isObjectLike(value) && baseGetTag$1(value) == symbolTag;
}

var isSymbol_1 = isSymbol;

function isObject$1(value) {
  var type = _typeof(value);

  return value != null && (type == "object" || type == "function");
}

var isObject_1 = isObject$1;
var baseGetTag = _baseGetTag,
    isObject = isObject_1;
var asyncTag = "[object AsyncFunction]",
    funcTag = "[object Function]",
    genTag = "[object GeneratorFunction]",
    proxyTag = "[object Proxy]";

function isFunction$1(value) {
  if (!isObject(value)) {
    return false;
  }

  var tag = baseGetTag(value);
  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
}

var isFunction_1 = isFunction$1;

function baseSlice(array, start, end) {
  var index = -1,
      length = array.length;

  if (start < 0) {
    start = -start > length ? 0 : length + start;
  }

  end = end > length ? length : end;

  if (end < 0) {
    end += length;
  }

  length = start > end ? 0 : end - start >>> 0;
  start >>>= 0;
  var result = Array(length);

  while (++index < length) {
    result[index] = array[index + start];
  }

  return result;
}

var _baseSlice = baseSlice;
var MAX_SAFE_INTEGER$1 = 9007199254740991;

function isLength$1(value) {
  return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
}

var isLength_1 = isLength$1;
var isFunction = isFunction_1,
    isLength = isLength_1;

function isArrayLike(value) {
  return value != null && isLength(value.length) && !isFunction(value);
}

var isArrayLike_1 = isArrayLike;
var MAX_SAFE_INTEGER = 9007199254740991;
var reIsUint = /^(?:0|[1-9]\d*)$/;

function isIndex(value, length) {
  var type = _typeof(value);

  length = length == null ? MAX_SAFE_INTEGER : length;
  return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
}

var _isIndex = isIndex;

export { _baseSlice as _, _isIndex as a, isObject_1 as b, isSymbol_1 as c, isFunction_1 as d, eq_1 as e, isLength_1 as f, isArrayLike_1 as i };
//# sourceMappingURL=dep-64cbbe92.js.map
