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

'use strict';

var _typeof = require('@babel/runtime/helpers/typeof');
var isObjectLike2443c6ff = require('./isObjectLike-2443c6ff.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);

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

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

function isSymbol(value) {
  return _typeof__default["default"](value) == "symbol" || isObjectLike(value) && baseGetTag$1(value) == symbolTag;
}

var isSymbol_1 = isSymbol;

function isObject$1(value) {
  var type = _typeof__default["default"](value);

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

var isObject_1 = isObject$1;
var baseGetTag = isObjectLike2443c6ff._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__default["default"](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;

exports._baseSlice = _baseSlice;
exports._isIndex = _isIndex;
exports.eq_1 = eq_1;
exports.isArrayLike_1 = isArrayLike_1;
exports.isFunction_1 = isFunction_1;
exports.isLength_1 = isLength_1;
exports.isObject_1 = isObject_1;
exports.isSymbol_1 = isSymbol_1;
//# sourceMappingURL=_isIndex-1bf92538.js.map
