Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

celia

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

celia - npm Package Compare versions

Comparing version 6.1.0 to 6.1.1

_flatten.js

2

_append.js
/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -10,3 +10,3 @@ * Released under the MIT License.

var isString = require('./isString.js');
var __chunk_1 = require('./chunk-b190761f.js');
var __chunk_1 = require('./chunk-4633feec.js');

@@ -13,0 +13,0 @@ function get (object, path) {

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -58,2 +58,25 @@ * Released under the MIT License.

var isArray = Array.isArray;
function flatten(arr, result, depth) {
loop(arr, 0, arr.length, function (n) {
if (depth > 0) {
if (isArray(n)) {
flatten(n, result, --depth);
} else {
append(result, n);
}
} else {
if (isArray(n)) {
loop(n, 0, n.length, function (m) {
append(result, m);
});
} else {
append(result, n);
}
}
});
return result;
}
function forSlice (value, start, end, iterator, context) {

@@ -133,2 +156,14 @@ iterator = bindContext(iterator, context);

function removeAt (elems, index) {
return elems.splice(index, 1)[0] || null;
}
function remove (elems, value) {
var index = elems.indexOf(value);
if (index > -1) {
return removeAt(elems, index);
}
return null;
}
function _repeat (start, end, callback) {

@@ -162,3 +197,3 @@ for (; start < end; start++) {

var isArray = Array.isArray;
var isArray$1 = Array.isArray;

@@ -169,3 +204,3 @@ function alias (proto, mappings) {

key = proto[key];
isArray(mapping)
isArray$1(mapping)
? mapping.forEach(function (m) { return (proto[m] = key); })

@@ -266,2 +301,13 @@ : (proto[mapping] = key);

function flatten$1 (arr, depth) {
if (arr) {
return flatten(arr, [], depth || 1);
}
return [];
}
function flattenDeep (arr) {
return flatten$1(arr, Number.MAX_VALUE);
}
function forIn$1 (value, iterator, context) {

@@ -369,6 +415,6 @@ !isNil(value) && forIn(value, iterator, context);

var isArray$1 = Array.isArray;
var isArray$2 = Array.isArray;
function copyDeep(value) {
var target = value;
if (isArray$1(value)) {
if (isArray$2(value)) {
target = [];

@@ -391,3 +437,3 @@ value.forEach(function (val, i) {

var isArray$2 = Array.isArray;
var isArray$3 = Array.isArray;
function looseEqual(a, b) {

@@ -398,3 +444,3 @@ if (a === b) {

if (isObject(a) && isObject(b)) {
if (isArray$2(a) && isArray$2(b)) { // 判断是否是数组
if (isArray$3(a) && isArray$3(b)) { // 判断是否是数组
return a.length === b.length && a.every(function (e, i) {

@@ -434,2 +480,18 @@ return looseEqual(e, b[i]);

var isArray$4 = Array.isArray;
function remove$1 (elems, value) {
if (isArray$4(elems)) {
return remove(elems, value);
}
return null;
}
var isArray$5 = Array.isArray;
function removeAt$1 (elems, index) {
if (isArray$5(elems)) {
return removeAt(elems, index);
}
return null;
}
function set (object, path, value) {

@@ -508,2 +570,3 @@ if (!isNil(object)) {

exports._bindContext = bindContext;
exports._flatten = flatten;
exports._forEach = forEach;

@@ -518,2 +581,4 @@ exports._forIn = forIn;

exports._map = map;
exports._remove = remove;
exports._removeAt = removeAt;
exports._repeat = _repeat;

@@ -529,2 +594,4 @@ exports.afterCall = afterCall;

exports.each = each$1;
exports.flatten = flatten$1;
exports.flattenDeep = flattenDeep;
exports.forIn = forIn$1;

@@ -558,2 +625,4 @@ exports.forOwn = each;

exports.noop = noop;
exports.remove = remove$1;
exports.removeAt = removeAt$1;
exports.set = set;

@@ -560,0 +629,0 @@ exports.sleep = sleep;

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
define(["exports"],function(n){"use strict";function u(n,t){return n[n.length]=t,n}function v(n){return null==n}function e(n,t,r,e){for(;t<r;t++)e(n[t],t,n)}function c(n,t){return t?n.bind(t):n}function i(n,t,r){t=c(t,r);for(var e=Object.keys(n),o=e.length,i=0,u=void 0;i<o;i++)!1===t(n[u=e[i]],u,n)&&(i=o)}function t(n){if(v(n))throw new TypeError("Cannot convert undefined or null to object");var r=Object(n);return e(arguments,1,arguments.length,function(n){v(n)||i(n,function(n,t){r[t]=n})}),r}function o(n,t,r,e,o){e=c(e,o);for(var i=t;i<r;i++)!1===e(n[i],i,n)&&(i=r)}function f(n,t,r){o(n,0,n.length,t,r)}function a(n,t,r){for(var e in t=c(t,r),n)if(!1===t(n[e],e))break}function s(n,t,r){t=c(t,r);for(var e=0;e<n;e++)!1===t(e,e,n)&&(e=n)}function p(n){return"string"==typeof n}var y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,g=/\\(\\)?/g,b=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;function l(n,t){if(!p(t)||!b.test(t))return n[t];var r;for(y.lastIndex=0;!v(n)&&(r=y.exec(t));){var e=r[0],o=r[1],i=r[2],u=r[3];n=n[i?u.replace(g,"$1"):o||e]}return n}function d(n){return"number"==typeof n}function r(n){return d(n)&&isFinite(n)&&n>>0===n}function h(n,t,r,e){var o=[],i=c(r,e);return n(t,function(n,t){v(n=i(n,t))||u(o,n)}),o}function j(n){return null!==n&&"object"==typeof n}function O(n,t,r){v(n)||i(n,t,r)}var m=Array.isArray;var w=Object.assign||t;function _(n){return"function"==typeof n}function E(n){return!v(n)&&d(n.length)&&!_(n)}function A(n,t,r){E(n)?f(n,t,r):d(n)?s(n,t,r):v(n)||i(n,t,r)}var x="celia_uid_"+(1e9*Math.random()>>>0),C=0;function S(n){return n[x]||(++C,Object.defineProperty(n,x,{configurable:!0,value:C}),C)}var F=Object.prototype.hasOwnProperty;var I=/^([a-z][a-z\d+\-.]*:)?\/\//i;var N=Object.prototype.toString;function k(n){return N.call(n)}function P(n){return n instanceof Date}var T={false:!0,null:!0,undefined:!0,0:!0,NaN:!0,"":!0};var D=Number.isInteger||r;function L(n){return n instanceof RegExp}var R=Array.isArray;var U=Array.isArray;var $={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){$["[object "+n+"]"]=n.toLowerCase()}),n._append=u,n._assign=t,n._bindContext=c,n._forEach=f,n._forIn=a,n._forNumber=s,n._forOwn=i,n._forSlice=o,n._get=l,n._isInteger=r,n._loop=e,n._map=h,n._repeat=function(n,t,r){for(;n<t;n++)r(n,t)},n.afterCall=function(n,t,e){if(j(n)){var o=n[t];n[t]=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];var r=o.apply(this,n);return e.apply(this,n,r)}}},n.alias=function(r,n){j(r)&&O(n,function(n,t){t=r[t],m(n)?n.forEach(function(n){return r[n]=t}):r[n]=t})},n.aroundCall=function(n,t,r){if(j(n)){var e=n[t];n[t]=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return r.call(this,e,n)}}},n.assert=function(n,t){if(!n)throw new Error(t)},n.assign=w,n.assignDeep=function(n){if(v(n))throw new TypeError("Cannot convert undefined or null to object");var t=Object(n);return e(arguments,1,arguments.length,function(n){!function r(e,n){var o;v(n)||i(n,function(n,t){j(o=e[t])&&j(n)?r(o,n):e[t]=n})}(t,n)}),t},n.beforeCall=function(n,t,r){if(j(n)){var e=n[t];n[t]=function(){return r.apply(this,arguments),e.apply(this,arguments)}}},n.debounce=function(n,t){var r=null;function e(){null!==r&&(clearTimeout(r),r=null)}function o(){e(),r=setTimeout(n,t)}return o.cancel=e,o},n.each=A,n.forIn=function(n,t,r){v(n)||a(n,t,r)},n.forOwn=O,n.get=function(n,t,r){var e=v(n)?void 0:l(n,t);return void 0===e?r:e},n.getEasyHash=function(n){return j(n)?"o"+S(n):(typeof n)[0]+n},n.getUid=S,n.hasOwn=function(n,t){return F.call(n,t)},n.isAbsoluteURL=function(n){return I.test(n)},n.isArrayLike=E,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===k(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=P,n.isFalsy=function(n){return!!T[n]},n.isFunction=_,n.isInteger=D,n.isNil=v,n.isNumber=d,n.isObject=j,n.isPlainObject=function(n){return!v(n)&&"[object Object]"===k(n)},n.isPromiseLike=function(n){return!!n&&_(n.then)&&_(n.catch)},n.isRegExp=L,n.isString=p,n.isUndefined=function(n){return void 0===n},n.isWindow=function(n){return!!n&&n===n.window},n.looseClone=function(n,t){return t?function r(n){var e=n;return R(n)?(e=[],n.forEach(function(n,t){e[t]=r(n)})):j(n)&&(e={},i(n,function(n,t){e[t]=r(n)})),e}(n):function(n){return j(n)?w({},n):n}(n)},n.looseEqual=function r(t,e){if(t===e)return!0;if(j(t)&&j(e)){if(U(t)&&U(e))return t.length===e.length&&t.every(function(n,t){return r(n,e[t])});if(P(t)&&P(e))return+t==+e;if(L(t)&&L(e))return t.toString()===e.toString();var n=Object.keys(t),o=Object.keys(e);return n.length===o.length&&n.every(function(n){return r(t[n],e[n])})}return!1},n.map=function(n,t,r){return h(A,n,t,r)},n.mapObject=function(n,t,r){var e={},o=c(t,r);return O(n,function(n,t){v(n=o(n,t))||(e[t]=n)}),e},n.noop=function(){},n.set=function(n,t,r){if(!v(n)){if(!p(t)||!b.test(t))return void(n[t]=r);var e,o,i=[],u=0;for(y.lastIndex=0;e=y.exec(t);){var c=e[0],f=e[1],a=e[2],s=e[3],l=void 0;a?v(l=n[o=s.replace(g,"$1")])&&(l=n[o]={}):f?v(l=n[o=f])&&(l=n[f]=[]):v(l=n[o=c])&&(l=n[c]={}),n=l,i[u++]=l}(n=i[u-2])[o]=r}},n.sleep=function(t){return new Promise(function(n){setTimeout(n,t)})},n.toString=k,n.transform=function(n,e,o){return A(n,function(n,t,r){return e(o,n,t,r)}),o},n.type=function(n){return v(n)?n+"":j(n)||_(n)?$[k(n)]||"object":typeof n}});
define(["exports"],function(n){"use strict";function u(n,t){return n[n.length]=t,n}function v(n){return null==n}function e(n,t,r,e){for(;t<r;t++)e(n[t],t,n)}function f(n,t){return t?n.bind(t):n}function i(n,t,r){t=f(t,r);for(var e=Object.keys(n),o=e.length,i=0,u=void 0;i<o;i++)!1===t(n[u=e[i]],u,n)&&(i=o)}function t(n){if(v(n))throw new TypeError("Cannot convert undefined or null to object");var r=Object(n);return e(arguments,1,arguments.length,function(n){v(n)||i(n,function(n,t){r[t]=n})}),r}var o=Array.isArray;function c(n,t,r){return e(n,0,n.length,function(n){0<r?o(n)?c(n,t,--r):u(t,n):o(n)?e(n,0,n.length,function(n){u(t,n)}):u(t,n)}),t}function a(n,t,r,e,o){e=f(e,o);for(var i=t;i<r;i++)!1===e(n[i],i,n)&&(i=r)}function l(n,t,r){a(n,0,n.length,t,r)}function s(n,t,r){for(var e in t=f(t,r),n)if(!1===t(n[e],e))break}function p(n,t,r){t=f(t,r);for(var e=0;e<n;e++)!1===t(e,e,n)&&(e=n)}function y(n){return"string"==typeof n}var g=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,b=/\\(\\)?/g,h=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;function d(n,t){if(!y(t)||!h.test(t))return n[t];var r;for(g.lastIndex=0;!v(n)&&(r=g.exec(t));){var e=r[0],o=r[1],i=r[2],u=r[3];n=n[i?u.replace(b,"$1"):o||e]}return n}function A(n){return"number"==typeof n}function r(n){return A(n)&&isFinite(n)&&n>>0===n}function j(n,t,r,e){var o=[],i=f(r,e);return n(t,function(n,t){v(n=i(n,t))||u(o,n)}),o}function m(n,t){return n.splice(t,1)[0]||null}function O(n,t){var r=n.indexOf(t);return-1<r?m(n,r):null}function _(n){return null!==n&&"object"==typeof n}function w(n,t,r){v(n)||i(n,t,r)}var E=Array.isArray;var x=Object.assign||t;function C(n){return"function"==typeof n}function N(n){return!v(n)&&A(n.length)&&!C(n)}function S(n,t,r){N(n)?l(n,t,r):A(n)?p(n,t,r):v(n)||i(n,t,r)}function F(n,t){return n?c(n,[],t||1):[]}var I="celia_uid_"+(1e9*Math.random()>>>0),k=0;function D(n){return n[I]||(++k,Object.defineProperty(n,I,{configurable:!0,value:k}),k)}var L=Object.prototype.hasOwnProperty;var P=/^([a-z][a-z\d+\-.]*:)?\/\//i;var T=Object.prototype.toString;function R(n){return T.call(n)}function U(n){return n instanceof Date}var $={false:!0,null:!0,undefined:!0,0:!0,NaN:!0,"":!0};var z=Number.isInteger||r;function B(n){return n instanceof RegExp}var M=Array.isArray;var q=Array.isArray;var H=Array.isArray;var V=Array.isArray;var W={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){W["[object "+n+"]"]=n.toLowerCase()}),n._append=u,n._assign=t,n._bindContext=f,n._flatten=c,n._forEach=l,n._forIn=s,n._forNumber=p,n._forOwn=i,n._forSlice=a,n._get=d,n._isInteger=r,n._loop=e,n._map=j,n._remove=O,n._removeAt=m,n._repeat=function(n,t,r){for(;n<t;n++)r(n,t)},n.afterCall=function(n,t,e){if(_(n)){var o=n[t];n[t]=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];var r=o.apply(this,n);return e.apply(this,n,r)}}},n.alias=function(r,n){_(r)&&w(n,function(n,t){t=r[t],E(n)?n.forEach(function(n){return r[n]=t}):r[n]=t})},n.aroundCall=function(n,t,r){if(_(n)){var e=n[t];n[t]=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return r.call(this,e,n)}}},n.assert=function(n,t){if(!n)throw new Error(t)},n.assign=x,n.assignDeep=function(n){if(v(n))throw new TypeError("Cannot convert undefined or null to object");var t=Object(n);return e(arguments,1,arguments.length,function(n){!function r(e,n){var o;v(n)||i(n,function(n,t){_(o=e[t])&&_(n)?r(o,n):e[t]=n})}(t,n)}),t},n.beforeCall=function(n,t,r){if(_(n)){var e=n[t];n[t]=function(){return r.apply(this,arguments),e.apply(this,arguments)}}},n.debounce=function(n,t){var r=null;function e(){null!==r&&(clearTimeout(r),r=null)}function o(){e(),r=setTimeout(n,t)}return o.cancel=e,o},n.each=S,n.flatten=F,n.flattenDeep=function(n){return F(n,Number.MAX_VALUE)},n.forIn=function(n,t,r){v(n)||s(n,t,r)},n.forOwn=w,n.get=function(n,t,r){var e=v(n)?void 0:d(n,t);return void 0===e?r:e},n.getEasyHash=function(n){return _(n)?"o"+D(n):(typeof n)[0]+n},n.getUid=D,n.hasOwn=function(n,t){return L.call(n,t)},n.isAbsoluteURL=function(n){return P.test(n)},n.isArrayLike=N,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===R(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=U,n.isFalsy=function(n){return!!$[n]},n.isFunction=C,n.isInteger=z,n.isNil=v,n.isNumber=A,n.isObject=_,n.isPlainObject=function(n){return!v(n)&&"[object Object]"===R(n)},n.isPromiseLike=function(n){return!!n&&C(n.then)&&C(n.catch)},n.isRegExp=B,n.isString=y,n.isUndefined=function(n){return void 0===n},n.isWindow=function(n){return!!n&&n===n.window},n.looseClone=function(n,t){return t?function r(n){var e=n;return M(n)?(e=[],n.forEach(function(n,t){e[t]=r(n)})):_(n)&&(e={},i(n,function(n,t){e[t]=r(n)})),e}(n):function(n){return _(n)?x({},n):n}(n)},n.looseEqual=function r(t,e){if(t===e)return!0;if(_(t)&&_(e)){if(q(t)&&q(e))return t.length===e.length&&t.every(function(n,t){return r(n,e[t])});if(U(t)&&U(e))return+t==+e;if(B(t)&&B(e))return t.toString()===e.toString();var n=Object.keys(t),o=Object.keys(e);return n.length===o.length&&n.every(function(n){return r(t[n],e[n])})}return!1},n.map=function(n,t,r){return j(S,n,t,r)},n.mapObject=function(n,t,r){var e={},o=f(t,r);return w(n,function(n,t){v(n=o(n,t))||(e[t]=n)}),e},n.noop=function(){},n.remove=function(n,t){return H(n)?O(n,t):null},n.removeAt=function(n,t){return V(n)?m(n,t):null},n.set=function(n,t,r){if(!v(n)){if(!y(t)||!h.test(t))return void(n[t]=r);var e,o,i=[],u=0;for(g.lastIndex=0;e=g.exec(t);){var f=e[0],c=e[1],a=e[2],l=e[3],s=void 0;a?v(s=n[o=l.replace(b,"$1")])&&(s=n[o]={}):c?v(s=n[o=c])&&(s=n[c]=[]):v(s=n[o=f])&&(s=n[f]={}),n=s,i[u++]=s}(n=i[u-2])[o]=r}},n.sleep=function(t){return new Promise(function(n){setTimeout(n,t)})},n.toString=R,n.transform=function(n,e,o){return S(n,function(n,t,r){return e(o,n,t,r)}),o},n.type=function(n){return v(n)?n+"":_(n)||C(n)?W[R(n)]||"object":typeof n}});
/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -58,2 +58,25 @@ * Released under the MIT License.

var isArray = Array.isArray;
function flatten(arr, result, depth) {
loop(arr, 0, arr.length, function (n) {
if (depth > 0) {
if (isArray(n)) {
flatten(n, result, --depth);
} else {
append(result, n);
}
} else {
if (isArray(n)) {
loop(n, 0, n.length, function (m) {
append(result, m);
});
} else {
append(result, n);
}
}
});
return result;
}
function forSlice (value, start, end, iterator, context) {

@@ -133,2 +156,14 @@ iterator = bindContext(iterator, context);

function removeAt (elems, index) {
return elems.splice(index, 1)[0] || null;
}
function remove (elems, value) {
var index = elems.indexOf(value);
if (index > -1) {
return removeAt(elems, index);
}
return null;
}
function _repeat (start, end, callback) {

@@ -162,3 +197,3 @@ for (; start < end; start++) {

var isArray = Array.isArray;
var isArray$1 = Array.isArray;

@@ -169,3 +204,3 @@ function alias (proto, mappings) {

key = proto[key];
isArray(mapping)
isArray$1(mapping)
? mapping.forEach(function (m) { return (proto[m] = key); })

@@ -266,2 +301,13 @@ : (proto[mapping] = key);

function flatten$1 (arr, depth) {
if (arr) {
return flatten(arr, [], depth || 1);
}
return [];
}
function flattenDeep (arr) {
return flatten$1(arr, Number.MAX_VALUE);
}
function forIn$1 (value, iterator, context) {

@@ -369,6 +415,6 @@ !isNil(value) && forIn(value, iterator, context);

var isArray$1 = Array.isArray;
var isArray$2 = Array.isArray;
function copyDeep(value) {
var target = value;
if (isArray$1(value)) {
if (isArray$2(value)) {
target = [];

@@ -391,3 +437,3 @@ value.forEach(function (val, i) {

var isArray$2 = Array.isArray;
var isArray$3 = Array.isArray;
function looseEqual(a, b) {

@@ -398,3 +444,3 @@ if (a === b) {

if (isObject(a) && isObject(b)) {
if (isArray$2(a) && isArray$2(b)) { // 判断是否是数组
if (isArray$3(a) && isArray$3(b)) { // 判断是否是数组
return a.length === b.length && a.every(function (e, i) {

@@ -434,2 +480,18 @@ return looseEqual(e, b[i]);

var isArray$4 = Array.isArray;
function remove$1 (elems, value) {
if (isArray$4(elems)) {
return remove(elems, value);
}
return null;
}
var isArray$5 = Array.isArray;
function removeAt$1 (elems, index) {
if (isArray$5(elems)) {
return removeAt(elems, index);
}
return null;
}
function set (object, path, value) {

@@ -508,2 +570,3 @@ if (!isNil(object)) {

exports._bindContext = bindContext;
exports._flatten = flatten;
exports._forEach = forEach;

@@ -518,2 +581,4 @@ exports._forIn = forIn;

exports._map = map;
exports._remove = remove;
exports._removeAt = removeAt;
exports._repeat = _repeat;

@@ -529,2 +594,4 @@ exports.afterCall = afterCall;

exports.each = each$1;
exports.flatten = flatten$1;
exports.flattenDeep = flattenDeep;
exports.forIn = forIn$1;

@@ -558,2 +625,4 @@ exports.forOwn = each;

exports.noop = noop;
exports.remove = remove$1;
exports.removeAt = removeAt$1;
exports.set = set;

@@ -560,0 +629,0 @@ exports.sleep = sleep;

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -56,2 +56,25 @@ * Released under the MIT License.

var isArray = Array.isArray;
function flatten(arr, result, depth) {
loop(arr, 0, arr.length, function (n) {
if (depth > 0) {
if (isArray(n)) {
flatten(n, result, --depth);
} else {
append(result, n);
}
} else {
if (isArray(n)) {
loop(n, 0, n.length, function (m) {
append(result, m);
});
} else {
append(result, n);
}
}
});
return result;
}
function forSlice (value, start, end, iterator, context) {

@@ -131,2 +154,14 @@ iterator = bindContext(iterator, context);

function removeAt (elems, index) {
return elems.splice(index, 1)[0] || null;
}
function remove (elems, value) {
var index = elems.indexOf(value);
if (index > -1) {
return removeAt(elems, index);
}
return null;
}
function _repeat (start, end, callback) {

@@ -160,3 +195,3 @@ for (; start < end; start++) {

var isArray = Array.isArray;
var isArray$1 = Array.isArray;

@@ -167,3 +202,3 @@ function alias (proto, mappings) {

key = proto[key];
isArray(mapping)
isArray$1(mapping)
? mapping.forEach(function (m) { return (proto[m] = key); })

@@ -264,2 +299,13 @@ : (proto[mapping] = key);

function flatten$1 (arr, depth) {
if (arr) {
return flatten(arr, [], depth || 1);
}
return [];
}
function flattenDeep (arr) {
return flatten$1(arr, Number.MAX_VALUE);
}
function forIn$1 (value, iterator, context) {

@@ -367,6 +413,6 @@ !isNil(value) && forIn(value, iterator, context);

var isArray$1 = Array.isArray;
var isArray$2 = Array.isArray;
function copyDeep(value) {
var target = value;
if (isArray$1(value)) {
if (isArray$2(value)) {
target = [];

@@ -389,3 +435,3 @@ value.forEach(function (val, i) {

var isArray$2 = Array.isArray;
var isArray$3 = Array.isArray;
function looseEqual(a, b) {

@@ -396,3 +442,3 @@ if (a === b) {

if (isObject(a) && isObject(b)) {
if (isArray$2(a) && isArray$2(b)) { // 判断是否是数组
if (isArray$3(a) && isArray$3(b)) { // 判断是否是数组
return a.length === b.length && a.every(function (e, i) {

@@ -432,2 +478,18 @@ return looseEqual(e, b[i]);

var isArray$4 = Array.isArray;
function remove$1 (elems, value) {
if (isArray$4(elems)) {
return remove(elems, value);
}
return null;
}
var isArray$5 = Array.isArray;
function removeAt$1 (elems, index) {
if (isArray$5(elems)) {
return removeAt(elems, index);
}
return null;
}
function set (object, path, value) {

@@ -503,2 +565,2 @@ if (!isNil(object)) {

export { append as _append, _assign, bindContext as _bindContext, forEach as _forEach, forIn as _forIn, forNumber as _forNumber, forOwn as _forOwn, forSlice as _forSlice, get as _get, _isInteger, loop as _loop, map as _map, _repeat, afterCall, alias, aroundCall, assert, assign, assignDeep, beforeCall, debounce, each$1 as each, forIn$1 as forIn, each as forOwn, get$1 as get, getEasyHash, getUid, hasOwn, isAbsoluteURL, isArrayLike, isAsyncFunction, isBoolean, isDate, isFalsy, isFunction, isInteger, isNil, isNumber, isObject, isPlainObject, isPromiseLike, isRegExp, isString, isUndefined, isWindow, looseClone, looseEqual, map$1 as map, mapObject, noop, set, sleep, toString$1 as toString, transform, type };
export { append as _append, _assign, bindContext as _bindContext, flatten as _flatten, forEach as _forEach, forIn as _forIn, forNumber as _forNumber, forOwn as _forOwn, forSlice as _forSlice, get as _get, _isInteger, loop as _loop, map as _map, remove as _remove, removeAt as _removeAt, _repeat, afterCall, alias, aroundCall, assert, assign, assignDeep, beforeCall, debounce, each$1 as each, flatten$1 as flatten, flattenDeep, forIn$1 as forIn, each as forOwn, get$1 as get, getEasyHash, getUid, hasOwn, isAbsoluteURL, isArrayLike, isAsyncFunction, isBoolean, isDate, isFalsy, isFunction, isInteger, isNil, isNumber, isObject, isPlainObject, isPromiseLike, isRegExp, isString, isUndefined, isWindow, looseClone, looseEqual, map$1 as map, mapObject, noop, remove$1 as remove, removeAt$1 as removeAt, set, sleep, toString$1 as toString, transform, type };
/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -8,3 +8,3 @@ * Released under the MIT License.

import isString from './isString.js';
import { I as IS_DEEP_PROP_REGEX, P as PROP_NAME_REGEX, E as ESCAPE_CHAR_REGEX } from './chunk-04fdb3fd.js';
import { I as IS_DEEP_PROP_REGEX, P as PROP_NAME_REGEX, E as ESCAPE_CHAR_REGEX } from './chunk-c964c689.js';

@@ -11,0 +11,0 @@ function get (object, path) {

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -8,3 +8,3 @@ * Released under the MIT License.

import './isString.js';
import './chunk-04fdb3fd.js';
import './chunk-c964c689.js';
import get$1 from './_get.js';

@@ -11,0 +11,0 @@

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -12,2 +12,3 @@ * Released under the MIT License.

export { default as _assign } from './_assign.js';
export { default as _flatten } from './_flatten.js';
export { default as _forSlice } from './_forSlice.js';

@@ -18,3 +19,3 @@ export { default as _forEach } from './_forEach.js';

export { default as isString } from './isString.js';
import './chunk-04fdb3fd.js';
import './chunk-c964c689.js';
export { default as _get } from './_get.js';

@@ -24,2 +25,4 @@ export { default as isNumber } from './isNumber.js';

export { default as _map } from './_map.js';
export { default as _removeAt } from './_removeAt.js';
export { default as _remove } from './_remove.js';
export { default as _repeat } from './_repeat.js';

@@ -39,2 +42,4 @@ export { default as isObject } from './isObject.js';

export { default as each } from './each.js';
export { default as flatten } from './flatten.js';
export { default as flattenDeep } from './flattenDeep.js';
export { default as forIn } from './forIn.js';

@@ -62,2 +67,4 @@ export { default as get } from './get.js';

export { default as noop } from './noop.js';
export { default as remove } from './remove.js';
export { default as removeAt } from './removeAt.js';
export { default as set } from './set.js';

@@ -64,0 +71,0 @@ export { default as sleep } from './sleep.js';

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -8,3 +8,3 @@ * Released under the MIT License.

import isString from './isString.js';
import { I as IS_DEEP_PROP_REGEX, P as PROP_NAME_REGEX, E as ESCAPE_CHAR_REGEX } from './chunk-04fdb3fd.js';
import { I as IS_DEEP_PROP_REGEX, P as PROP_NAME_REGEX, E as ESCAPE_CHAR_REGEX } from './chunk-c964c689.js';

@@ -11,0 +11,0 @@ function set (object, path, value) {

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -10,3 +10,3 @@ * Released under the MIT License.

require('./isString.js');
require('./chunk-b190761f.js');
require('./chunk-4633feec.js');
var _get = require('./_get.js');

@@ -13,0 +13,0 @@

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -59,2 +59,25 @@ * Released under the MIT License.

var isArray = Array.isArray;
function flatten(arr, result, depth) {
loop(arr, 0, arr.length, function (n) {
if (depth > 0) {
if (isArray(n)) {
flatten(n, result, --depth);
} else {
append(result, n);
}
} else {
if (isArray(n)) {
loop(n, 0, n.length, function (m) {
append(result, m);
});
} else {
append(result, n);
}
}
});
return result;
}
function forSlice (value, start, end, iterator, context) {

@@ -134,2 +157,14 @@ iterator = bindContext(iterator, context);

function removeAt (elems, index) {
return elems.splice(index, 1)[0] || null;
}
function remove (elems, value) {
var index = elems.indexOf(value);
if (index > -1) {
return removeAt(elems, index);
}
return null;
}
function _repeat (start, end, callback) {

@@ -163,3 +198,3 @@ for (; start < end; start++) {

var isArray = Array.isArray;
var isArray$1 = Array.isArray;

@@ -170,3 +205,3 @@ function alias (proto, mappings) {

key = proto[key];
isArray(mapping)
isArray$1(mapping)
? mapping.forEach(function (m) { return (proto[m] = key); })

@@ -267,2 +302,13 @@ : (proto[mapping] = key);

function flatten$1 (arr, depth) {
if (arr) {
return flatten(arr, [], depth || 1);
}
return [];
}
function flattenDeep (arr) {
return flatten$1(arr, Number.MAX_VALUE);
}
function forIn$1 (value, iterator, context) {

@@ -370,6 +416,6 @@ !isNil(value) && forIn(value, iterator, context);

var isArray$1 = Array.isArray;
var isArray$2 = Array.isArray;
function copyDeep(value) {
var target = value;
if (isArray$1(value)) {
if (isArray$2(value)) {
target = [];

@@ -392,3 +438,3 @@ value.forEach(function (val, i) {

var isArray$2 = Array.isArray;
var isArray$3 = Array.isArray;
function looseEqual(a, b) {

@@ -399,3 +445,3 @@ if (a === b) {

if (isObject(a) && isObject(b)) {
if (isArray$2(a) && isArray$2(b)) { // 判断是否是数组
if (isArray$3(a) && isArray$3(b)) { // 判断是否是数组
return a.length === b.length && a.every(function (e, i) {

@@ -435,2 +481,18 @@ return looseEqual(e, b[i]);

var isArray$4 = Array.isArray;
function remove$1 (elems, value) {
if (isArray$4(elems)) {
return remove(elems, value);
}
return null;
}
var isArray$5 = Array.isArray;
function removeAt$1 (elems, index) {
if (isArray$5(elems)) {
return removeAt(elems, index);
}
return null;
}
function set (object, path, value) {

@@ -509,2 +571,3 @@ if (!isNil(object)) {

exports._bindContext = bindContext;
exports._flatten = flatten;
exports._forEach = forEach;

@@ -519,2 +582,4 @@ exports._forIn = forIn;

exports._map = map;
exports._remove = remove;
exports._removeAt = removeAt;
exports._repeat = _repeat;

@@ -530,2 +595,4 @@ exports.afterCall = afterCall;

exports.each = each$1;
exports.flatten = flatten$1;
exports.flattenDeep = flattenDeep;
exports.forIn = forIn$1;

@@ -559,2 +626,4 @@ exports.forOwn = each;

exports.noop = noop;
exports.remove = remove$1;
exports.removeAt = removeAt$1;
exports.set = set;

@@ -561,0 +630,0 @@ exports.sleep = sleep;

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
!function(n){"use strict";function u(n,t){return n[n.length]=t,n}function v(n){return null==n}function e(n,t,r,e){for(;t<r;t++)e(n[t],t,n)}function c(n,t){return t?n.bind(t):n}function i(n,t,r){t=c(t,r);for(var e=Object.keys(n),o=e.length,i=0,u=void 0;i<o;i++)!1===t(n[u=e[i]],u,n)&&(i=o)}function t(n){if(v(n))throw new TypeError("Cannot convert undefined or null to object");var r=Object(n);return e(arguments,1,arguments.length,function(n){v(n)||i(n,function(n,t){r[t]=n})}),r}function o(n,t,r,e,o){e=c(e,o);for(var i=t;i<r;i++)!1===e(n[i],i,n)&&(i=r)}function f(n,t,r){o(n,0,n.length,t,r)}function a(n,t,r){for(var e in t=c(t,r),n)if(!1===t(n[e],e))break}function s(n,t,r){t=c(t,r);for(var e=0;e<n;e++)!1===t(e,e,n)&&(e=n)}function p(n){return"string"==typeof n}var y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,g=/\\(\\)?/g,b=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;function l(n,t){if(!p(t)||!b.test(t))return n[t];var r;for(y.lastIndex=0;!v(n)&&(r=y.exec(t));){var e=r[0],o=r[1],i=r[2],u=r[3];n=n[i?u.replace(g,"$1"):o||e]}return n}function h(n){return"number"==typeof n}function r(n){return h(n)&&isFinite(n)&&n>>0===n}function d(n,t,r,e){var o=[],i=c(r,e);return n(t,function(n,t){v(n=i(n,t))||u(o,n)}),o}function j(n){return null!==n&&"object"==typeof n}function O(n,t,r){v(n)||i(n,t,r)}var m=Array.isArray;var w=Object.assign||t;function _(n){return"function"==typeof n}function E(n){return!v(n)&&h(n.length)&&!_(n)}function A(n,t,r){E(n)?f(n,t,r):h(n)?s(n,t,r):v(n)||i(n,t,r)}var x="celia_uid_"+(1e9*Math.random()>>>0),C=0;function S(n){return n[x]||(++C,Object.defineProperty(n,x,{configurable:!0,value:C}),C)}var F=Object.prototype.hasOwnProperty;var I=/^([a-z][a-z\d+\-.]*:)?\/\//i;var N=Object.prototype.toString;function k(n){return N.call(n)}function P(n){return n instanceof Date}var T={false:!0,null:!0,undefined:!0,0:!0,NaN:!0,"":!0};var D=Number.isInteger||r;function L(n){return n instanceof RegExp}var R=Array.isArray;var U=Array.isArray;var $={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){$["[object "+n+"]"]=n.toLowerCase()}),n._append=u,n._assign=t,n._bindContext=c,n._forEach=f,n._forIn=a,n._forNumber=s,n._forOwn=i,n._forSlice=o,n._get=l,n._isInteger=r,n._loop=e,n._map=d,n._repeat=function(n,t,r){for(;n<t;n++)r(n,t)},n.afterCall=function(n,t,e){if(j(n)){var o=n[t];n[t]=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];var r=o.apply(this,n);return e.apply(this,n,r)}}},n.alias=function(r,n){j(r)&&O(n,function(n,t){t=r[t],m(n)?n.forEach(function(n){return r[n]=t}):r[n]=t})},n.aroundCall=function(n,t,r){if(j(n)){var e=n[t];n[t]=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return r.call(this,e,n)}}},n.assert=function(n,t){if(!n)throw new Error(t)},n.assign=w,n.assignDeep=function(n){if(v(n))throw new TypeError("Cannot convert undefined or null to object");var t=Object(n);return e(arguments,1,arguments.length,function(n){!function r(e,n){var o;v(n)||i(n,function(n,t){j(o=e[t])&&j(n)?r(o,n):e[t]=n})}(t,n)}),t},n.beforeCall=function(n,t,r){if(j(n)){var e=n[t];n[t]=function(){return r.apply(this,arguments),e.apply(this,arguments)}}},n.debounce=function(n,t){var r=null;function e(){null!==r&&(clearTimeout(r),r=null)}function o(){e(),r=setTimeout(n,t)}return o.cancel=e,o},n.each=A,n.forIn=function(n,t,r){v(n)||a(n,t,r)},n.forOwn=O,n.get=function(n,t,r){var e=v(n)?void 0:l(n,t);return void 0===e?r:e},n.getEasyHash=function(n){return j(n)?"o"+S(n):(typeof n)[0]+n},n.getUid=S,n.hasOwn=function(n,t){return F.call(n,t)},n.isAbsoluteURL=function(n){return I.test(n)},n.isArrayLike=E,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===k(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=P,n.isFalsy=function(n){return!!T[n]},n.isFunction=_,n.isInteger=D,n.isNil=v,n.isNumber=h,n.isObject=j,n.isPlainObject=function(n){return!v(n)&&"[object Object]"===k(n)},n.isPromiseLike=function(n){return!!n&&_(n.then)&&_(n.catch)},n.isRegExp=L,n.isString=p,n.isUndefined=function(n){return void 0===n},n.isWindow=function(n){return!!n&&n===n.window},n.looseClone=function(n,t){return t?function r(n){var e=n;return R(n)?(e=[],n.forEach(function(n,t){e[t]=r(n)})):j(n)&&(e={},i(n,function(n,t){e[t]=r(n)})),e}(n):function(n){return j(n)?w({},n):n}(n)},n.looseEqual=function r(t,e){if(t===e)return!0;if(j(t)&&j(e)){if(U(t)&&U(e))return t.length===e.length&&t.every(function(n,t){return r(n,e[t])});if(P(t)&&P(e))return+t==+e;if(L(t)&&L(e))return t.toString()===e.toString();var n=Object.keys(t),o=Object.keys(e);return n.length===o.length&&n.every(function(n){return r(t[n],e[n])})}return!1},n.map=function(n,t,r){return d(A,n,t,r)},n.mapObject=function(n,t,r){var e={},o=c(t,r);return O(n,function(n,t){v(n=o(n,t))||(e[t]=n)}),e},n.noop=function(){},n.set=function(n,t,r){if(!v(n)){if(!p(t)||!b.test(t))return void(n[t]=r);var e,o,i=[],u=0;for(y.lastIndex=0;e=y.exec(t);){var c=e[0],f=e[1],a=e[2],s=e[3],l=void 0;a?v(l=n[o=s.replace(g,"$1")])&&(l=n[o]={}):f?v(l=n[o=f])&&(l=n[f]=[]):v(l=n[o=c])&&(l=n[c]={}),n=l,i[u++]=l}(n=i[u-2])[o]=r}},n.sleep=function(t){return new Promise(function(n){setTimeout(n,t)})},n.toString=k,n.transform=function(n,e,o){return A(n,function(n,t,r){return e(o,n,t,r)}),o},n.type=function(n){return v(n)?n+"":j(n)||_(n)?$[k(n)]||"object":typeof n}}({});
!function(n){"use strict";function u(n,t){return n[n.length]=t,n}function v(n){return null==n}function e(n,t,r,e){for(;t<r;t++)e(n[t],t,n)}function f(n,t){return t?n.bind(t):n}function i(n,t,r){t=f(t,r);for(var e=Object.keys(n),o=e.length,i=0,u=void 0;i<o;i++)!1===t(n[u=e[i]],u,n)&&(i=o)}function t(n){if(v(n))throw new TypeError("Cannot convert undefined or null to object");var r=Object(n);return e(arguments,1,arguments.length,function(n){v(n)||i(n,function(n,t){r[t]=n})}),r}var o=Array.isArray;function c(n,t,r){return e(n,0,n.length,function(n){0<r?o(n)?c(n,t,--r):u(t,n):o(n)?e(n,0,n.length,function(n){u(t,n)}):u(t,n)}),t}function a(n,t,r,e,o){e=f(e,o);for(var i=t;i<r;i++)!1===e(n[i],i,n)&&(i=r)}function l(n,t,r){a(n,0,n.length,t,r)}function s(n,t,r){for(var e in t=f(t,r),n)if(!1===t(n[e],e))break}function y(n,t,r){t=f(t,r);for(var e=0;e<n;e++)!1===t(e,e,n)&&(e=n)}function p(n){return"string"==typeof n}var g=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,b=/\\(\\)?/g,h=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;function d(n,t){if(!p(t)||!h.test(t))return n[t];var r;for(g.lastIndex=0;!v(n)&&(r=g.exec(t));){var e=r[0],o=r[1],i=r[2],u=r[3];n=n[i?u.replace(b,"$1"):o||e]}return n}function A(n){return"number"==typeof n}function r(n){return A(n)&&isFinite(n)&&n>>0===n}function j(n,t,r,e){var o=[],i=f(r,e);return n(t,function(n,t){v(n=i(n,t))||u(o,n)}),o}function m(n,t){return n.splice(t,1)[0]||null}function O(n,t){var r=n.indexOf(t);return-1<r?m(n,r):null}function _(n){return null!==n&&"object"==typeof n}function w(n,t,r){v(n)||i(n,t,r)}var E=Array.isArray;var x=Object.assign||t;function C(n){return"function"==typeof n}function N(n){return!v(n)&&A(n.length)&&!C(n)}function S(n,t,r){N(n)?l(n,t,r):A(n)?y(n,t,r):v(n)||i(n,t,r)}function F(n,t){return n?c(n,[],t||1):[]}var I="celia_uid_"+(1e9*Math.random()>>>0),k=0;function D(n){return n[I]||(++k,Object.defineProperty(n,I,{configurable:!0,value:k}),k)}var L=Object.prototype.hasOwnProperty;var P=/^([a-z][a-z\d+\-.]*:)?\/\//i;var T=Object.prototype.toString;function R(n){return T.call(n)}function U(n){return n instanceof Date}var $={false:!0,null:!0,undefined:!0,0:!0,NaN:!0,"":!0};var z=Number.isInteger||r;function B(n){return n instanceof RegExp}var M=Array.isArray;var q=Array.isArray;var H=Array.isArray;var V=Array.isArray;var W={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){W["[object "+n+"]"]=n.toLowerCase()}),n._append=u,n._assign=t,n._bindContext=f,n._flatten=c,n._forEach=l,n._forIn=s,n._forNumber=y,n._forOwn=i,n._forSlice=a,n._get=d,n._isInteger=r,n._loop=e,n._map=j,n._remove=O,n._removeAt=m,n._repeat=function(n,t,r){for(;n<t;n++)r(n,t)},n.afterCall=function(n,t,e){if(_(n)){var o=n[t];n[t]=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];var r=o.apply(this,n);return e.apply(this,n,r)}}},n.alias=function(r,n){_(r)&&w(n,function(n,t){t=r[t],E(n)?n.forEach(function(n){return r[n]=t}):r[n]=t})},n.aroundCall=function(n,t,r){if(_(n)){var e=n[t];n[t]=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return r.call(this,e,n)}}},n.assert=function(n,t){if(!n)throw new Error(t)},n.assign=x,n.assignDeep=function(n){if(v(n))throw new TypeError("Cannot convert undefined or null to object");var t=Object(n);return e(arguments,1,arguments.length,function(n){!function r(e,n){var o;v(n)||i(n,function(n,t){_(o=e[t])&&_(n)?r(o,n):e[t]=n})}(t,n)}),t},n.beforeCall=function(n,t,r){if(_(n)){var e=n[t];n[t]=function(){return r.apply(this,arguments),e.apply(this,arguments)}}},n.debounce=function(n,t){var r=null;function e(){null!==r&&(clearTimeout(r),r=null)}function o(){e(),r=setTimeout(n,t)}return o.cancel=e,o},n.each=S,n.flatten=F,n.flattenDeep=function(n){return F(n,Number.MAX_VALUE)},n.forIn=function(n,t,r){v(n)||s(n,t,r)},n.forOwn=w,n.get=function(n,t,r){var e=v(n)?void 0:d(n,t);return void 0===e?r:e},n.getEasyHash=function(n){return _(n)?"o"+D(n):(typeof n)[0]+n},n.getUid=D,n.hasOwn=function(n,t){return L.call(n,t)},n.isAbsoluteURL=function(n){return P.test(n)},n.isArrayLike=N,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===R(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=U,n.isFalsy=function(n){return!!$[n]},n.isFunction=C,n.isInteger=z,n.isNil=v,n.isNumber=A,n.isObject=_,n.isPlainObject=function(n){return!v(n)&&"[object Object]"===R(n)},n.isPromiseLike=function(n){return!!n&&C(n.then)&&C(n.catch)},n.isRegExp=B,n.isString=p,n.isUndefined=function(n){return void 0===n},n.isWindow=function(n){return!!n&&n===n.window},n.looseClone=function(n,t){return t?function r(n){var e=n;return M(n)?(e=[],n.forEach(function(n,t){e[t]=r(n)})):_(n)&&(e={},i(n,function(n,t){e[t]=r(n)})),e}(n):function(n){return _(n)?x({},n):n}(n)},n.looseEqual=function r(t,e){if(t===e)return!0;if(_(t)&&_(e)){if(q(t)&&q(e))return t.length===e.length&&t.every(function(n,t){return r(n,e[t])});if(U(t)&&U(e))return+t==+e;if(B(t)&&B(e))return t.toString()===e.toString();var n=Object.keys(t),o=Object.keys(e);return n.length===o.length&&n.every(function(n){return r(t[n],e[n])})}return!1},n.map=function(n,t,r){return j(S,n,t,r)},n.mapObject=function(n,t,r){var e={},o=f(t,r);return w(n,function(n,t){v(n=o(n,t))||(e[t]=n)}),e},n.noop=function(){},n.remove=function(n,t){return H(n)?O(n,t):null},n.removeAt=function(n,t){return V(n)?m(n,t):null},n.set=function(n,t,r){if(!v(n)){if(!p(t)||!h.test(t))return void(n[t]=r);var e,o,i=[],u=0;for(g.lastIndex=0;e=g.exec(t);){var f=e[0],c=e[1],a=e[2],l=e[3],s=void 0;a?v(s=n[o=l.replace(b,"$1")])&&(s=n[o]={}):c?v(s=n[o=c])&&(s=n[c]=[]):v(s=n[o=f])&&(s=n[f]={}),n=s,i[u++]=s}(n=i[u-2])[o]=r}},n.sleep=function(t){return new Promise(function(n){setTimeout(n,t)})},n.toString=R,n.transform=function(n,e,o){return S(n,function(n,t,r){return e(o,n,t,r)}),o},n.type=function(n){return v(n)?n+"":_(n)||C(n)?W[R(n)]||"object":typeof n}}({});
/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -14,2 +14,3 @@ * Released under the MIT License.

var _assign = require('./_assign.js');
var _flatten = require('./_flatten.js');
var _forSlice = require('./_forSlice.js');

@@ -20,3 +21,3 @@ var _forEach = require('./_forEach.js');

var isString = require('./isString.js');
require('./chunk-b190761f.js');
require('./chunk-4633feec.js');
var _get = require('./_get.js');

@@ -26,2 +27,4 @@ var isNumber = require('./isNumber.js');

var _map = require('./_map.js');
var _removeAt = require('./_removeAt.js');
var _remove = require('./_remove.js');
var _repeat = require('./_repeat.js');

@@ -41,2 +44,4 @@ var isObject = require('./isObject.js');

var each = require('./each.js');
var flatten = require('./flatten.js');
var flattenDeep = require('./flattenDeep.js');
var forIn = require('./forIn.js');

@@ -64,2 +69,4 @@ var get = require('./get.js');

var noop = require('./noop.js');
var remove = require('./remove.js');
var removeAt = require('./removeAt.js');
var set = require('./set.js');

@@ -78,2 +85,3 @@ var sleep = require('./sleep.js');

exports._assign = _assign;
exports._flatten = _flatten;
exports._forSlice = _forSlice;

@@ -88,2 +96,4 @@ exports._forEach = _forEach;

exports._map = _map;
exports._removeAt = _removeAt;
exports._remove = _remove;
exports._repeat = _repeat;

@@ -103,2 +113,4 @@ exports.isObject = isObject;

exports.each = each;
exports.flatten = flatten;
exports.flattenDeep = flattenDeep;
exports.forIn = forIn;

@@ -126,2 +138,4 @@ exports.get = get;

exports.noop = noop;
exports.remove = remove;
exports.removeAt = removeAt;
exports.set = set;

@@ -128,0 +142,0 @@ exports.sleep = sleep;

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

{
"name": "celia",
"version": "6.1.0",
"version": "6.1.1",
"description": "A modern JavaScript utility library delivering modularity, performance, and extras.",

@@ -5,0 +5,0 @@ "main": "./index.js",

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -10,3 +10,3 @@ * Released under the MIT License.

var isString = require('./isString.js');
var __chunk_1 = require('./chunk-b190761f.js');
var __chunk_1 = require('./chunk-4633feec.js');

@@ -13,0 +13,0 @@ function set (object, path, value) {

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng

@@ -62,2 +62,25 @@ * Released under the MIT License.

var isArray = Array.isArray;
function flatten(arr, result, depth) {
loop(arr, 0, arr.length, function (n) {
if (depth > 0) {
if (isArray(n)) {
flatten(n, result, --depth);
} else {
append(result, n);
}
} else {
if (isArray(n)) {
loop(n, 0, n.length, function (m) {
append(result, m);
});
} else {
append(result, n);
}
}
});
return result;
}
function forSlice (value, start, end, iterator, context) {

@@ -137,2 +160,14 @@ iterator = bindContext(iterator, context);

function removeAt (elems, index) {
return elems.splice(index, 1)[0] || null;
}
function remove (elems, value) {
var index = elems.indexOf(value);
if (index > -1) {
return removeAt(elems, index);
}
return null;
}
function _repeat (start, end, callback) {

@@ -166,3 +201,3 @@ for (; start < end; start++) {

var isArray = Array.isArray;
var isArray$1 = Array.isArray;

@@ -173,3 +208,3 @@ function alias (proto, mappings) {

key = proto[key];
isArray(mapping)
isArray$1(mapping)
? mapping.forEach(function (m) { return (proto[m] = key); })

@@ -270,2 +305,13 @@ : (proto[mapping] = key);

function flatten$1 (arr, depth) {
if (arr) {
return flatten(arr, [], depth || 1);
}
return [];
}
function flattenDeep (arr) {
return flatten$1(arr, Number.MAX_VALUE);
}
function forIn$1 (value, iterator, context) {

@@ -373,6 +419,6 @@ !isNil(value) && forIn(value, iterator, context);

var isArray$1 = Array.isArray;
var isArray$2 = Array.isArray;
function copyDeep(value) {
var target = value;
if (isArray$1(value)) {
if (isArray$2(value)) {
target = [];

@@ -395,3 +441,3 @@ value.forEach(function (val, i) {

var isArray$2 = Array.isArray;
var isArray$3 = Array.isArray;
function looseEqual(a, b) {

@@ -402,3 +448,3 @@ if (a === b) {

if (isObject(a) && isObject(b)) {
if (isArray$2(a) && isArray$2(b)) { // 判断是否是数组
if (isArray$3(a) && isArray$3(b)) { // 判断是否是数组
return a.length === b.length && a.every(function (e, i) {

@@ -438,2 +484,18 @@ return looseEqual(e, b[i]);

var isArray$4 = Array.isArray;
function remove$1 (elems, value) {
if (isArray$4(elems)) {
return remove(elems, value);
}
return null;
}
var isArray$5 = Array.isArray;
function removeAt$1 (elems, index) {
if (isArray$5(elems)) {
return removeAt(elems, index);
}
return null;
}
function set (object, path, value) {

@@ -512,2 +574,3 @@ if (!isNil(object)) {

exports._bindContext = bindContext;
exports._flatten = flatten;
exports._forEach = forEach;

@@ -522,2 +585,4 @@ exports._forIn = forIn;

exports._map = map;
exports._remove = remove;
exports._removeAt = removeAt;
exports._repeat = _repeat;

@@ -533,2 +598,4 @@ exports.afterCall = afterCall;

exports.each = each$1;
exports.flatten = flatten$1;
exports.flattenDeep = flattenDeep;
exports.forIn = forIn$1;

@@ -562,2 +629,4 @@ exports.forOwn = each;

exports.noop = noop;
exports.remove = remove$1;
exports.removeAt = removeAt$1;
exports.set = set;

@@ -564,0 +633,0 @@ exports.sleep = sleep;

/*
* celia.js v6.1.0
* celia.js v6.1.1
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
var n,t;n=this,t=function(n){"use strict";function u(n,t){return n[n.length]=t,n}function v(n){return null==n}function e(n,t,r,e){for(;t<r;t++)e(n[t],t,n)}function f(n,t){return t?n.bind(t):n}function i(n,t,r){t=f(t,r);for(var e=Object.keys(n),o=e.length,i=0,u=void 0;i<o;i++)!1===t(n[u=e[i]],u,n)&&(i=o)}function t(n){if(v(n))throw new TypeError("Cannot convert undefined or null to object");var r=Object(n);return e(arguments,1,arguments.length,function(n){v(n)||i(n,function(n,t){r[t]=n})}),r}function o(n,t,r,e,o){e=f(e,o);for(var i=t;i<r;i++)!1===e(n[i],i,n)&&(i=r)}function c(n,t,r){o(n,0,n.length,t,r)}function a(n,t,r){for(var e in t=f(t,r),n)if(!1===t(n[e],e))break}function s(n,t,r){t=f(t,r);for(var e=0;e<n;e++)!1===t(e,e,n)&&(e=n)}function p(n){return"string"==typeof n}var y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,b=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;function l(n,t){if(!p(t)||!b.test(t))return n[t];var r;for(y.lastIndex=0;!v(n)&&(r=y.exec(t));){var e=r[0],o=r[1],i=r[2],u=r[3];n=n[i?u.replace(d,"$1"):o||e]}return n}function g(n){return"number"==typeof n}function r(n){return g(n)&&isFinite(n)&&n>>0===n}function h(n,t,r,e){var o=[],i=f(r,e);return n(t,function(n,t){v(n=i(n,t))||u(o,n)}),o}function j(n){return null!==n&&"object"==typeof n}function m(n,t,r){v(n)||i(n,t,r)}var O=Array.isArray;var w=Object.assign||t;function _(n){return"function"==typeof n}function E(n){return!v(n)&&g(n.length)&&!_(n)}function A(n,t,r){E(n)?c(n,t,r):g(n)?s(n,t,r):v(n)||i(n,t,r)}var x="celia_uid_"+(1e9*Math.random()>>>0),C=0;function S(n){return n[x]||(++C,Object.defineProperty(n,x,{configurable:!0,value:C}),C)}var F=Object.prototype.hasOwnProperty;var I=/^([a-z][a-z\d+\-.]*:)?\/\//i;var N=Object.prototype.toString;function k(n){return N.call(n)}function P(n){return n instanceof Date}var T={false:!0,null:!0,undefined:!0,0:!0,NaN:!0,"":!0};var D=Number.isInteger||r;function L(n){return n instanceof RegExp}var R=Array.isArray;var U=Array.isArray;var $={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){$["[object "+n+"]"]=n.toLowerCase()}),n._append=u,n._assign=t,n._bindContext=f,n._forEach=c,n._forIn=a,n._forNumber=s,n._forOwn=i,n._forSlice=o,n._get=l,n._isInteger=r,n._loop=e,n._map=h,n._repeat=function(n,t,r){for(;n<t;n++)r(n,t)},n.afterCall=function(n,t,e){if(j(n)){var o=n[t];n[t]=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];var r=o.apply(this,n);return e.apply(this,n,r)}}},n.alias=function(r,n){j(r)&&m(n,function(n,t){t=r[t],O(n)?n.forEach(function(n){return r[n]=t}):r[n]=t})},n.aroundCall=function(n,t,r){if(j(n)){var e=n[t];n[t]=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return r.call(this,e,n)}}},n.assert=function(n,t){if(!n)throw new Error(t)},n.assign=w,n.assignDeep=function(n){if(v(n))throw new TypeError("Cannot convert undefined or null to object");var t=Object(n);return e(arguments,1,arguments.length,function(n){!function r(e,n){var o;v(n)||i(n,function(n,t){j(o=e[t])&&j(n)?r(o,n):e[t]=n})}(t,n)}),t},n.beforeCall=function(n,t,r){if(j(n)){var e=n[t];n[t]=function(){return r.apply(this,arguments),e.apply(this,arguments)}}},n.debounce=function(n,t){var r=null;function e(){null!==r&&(clearTimeout(r),r=null)}function o(){e(),r=setTimeout(n,t)}return o.cancel=e,o},n.each=A,n.forIn=function(n,t,r){v(n)||a(n,t,r)},n.forOwn=m,n.get=function(n,t,r){var e=v(n)?void 0:l(n,t);return void 0===e?r:e},n.getEasyHash=function(n){return j(n)?"o"+S(n):(typeof n)[0]+n},n.getUid=S,n.hasOwn=function(n,t){return F.call(n,t)},n.isAbsoluteURL=function(n){return I.test(n)},n.isArrayLike=E,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===k(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=P,n.isFalsy=function(n){return!!T[n]},n.isFunction=_,n.isInteger=D,n.isNil=v,n.isNumber=g,n.isObject=j,n.isPlainObject=function(n){return!v(n)&&"[object Object]"===k(n)},n.isPromiseLike=function(n){return!!n&&_(n.then)&&_(n.catch)},n.isRegExp=L,n.isString=p,n.isUndefined=function(n){return void 0===n},n.isWindow=function(n){return!!n&&n===n.window},n.looseClone=function(n,t){return t?function r(n){var e=n;return R(n)?(e=[],n.forEach(function(n,t){e[t]=r(n)})):j(n)&&(e={},i(n,function(n,t){e[t]=r(n)})),e}(n):function(n){return j(n)?w({},n):n}(n)},n.looseEqual=function r(t,e){if(t===e)return!0;if(j(t)&&j(e)){if(U(t)&&U(e))return t.length===e.length&&t.every(function(n,t){return r(n,e[t])});if(P(t)&&P(e))return+t==+e;if(L(t)&&L(e))return t.toString()===e.toString();var n=Object.keys(t),o=Object.keys(e);return n.length===o.length&&n.every(function(n){return r(t[n],e[n])})}return!1},n.map=function(n,t,r){return h(A,n,t,r)},n.mapObject=function(n,t,r){var e={},o=f(t,r);return m(n,function(n,t){v(n=o(n,t))||(e[t]=n)}),e},n.noop=function(){},n.set=function(n,t,r){if(!v(n)){if(!p(t)||!b.test(t))return void(n[t]=r);var e,o,i=[],u=0;for(y.lastIndex=0;e=y.exec(t);){var f=e[0],c=e[1],a=e[2],s=e[3],l=void 0;a?v(l=n[o=s.replace(d,"$1")])&&(l=n[o]={}):c?v(l=n[o=c])&&(l=n[c]=[]):v(l=n[o=f])&&(l=n[f]={}),n=l,i[u++]=l}(n=i[u-2])[o]=r}},n.sleep=function(t){return new Promise(function(n){setTimeout(n,t)})},n.toString=k,n.transform=function(n,e,o){return A(n,function(n,t,r){return e(o,n,t,r)}),o},n.type=function(n){return v(n)?n+"":j(n)||_(n)?$[k(n)]||"object":typeof n}},"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n=n||self).celia={});
var n,t;n=this,t=function(n){"use strict";function u(n,t){return n[n.length]=t,n}function v(n){return null==n}function e(n,t,r,e){for(;t<r;t++)e(n[t],t,n)}function f(n,t){return t?n.bind(t):n}function i(n,t,r){t=f(t,r);for(var e=Object.keys(n),o=e.length,i=0,u=void 0;i<o;i++)!1===t(n[u=e[i]],u,n)&&(i=o)}function t(n){if(v(n))throw new TypeError("Cannot convert undefined or null to object");var r=Object(n);return e(arguments,1,arguments.length,function(n){v(n)||i(n,function(n,t){r[t]=n})}),r}var o=Array.isArray;function c(n,t,r){return e(n,0,n.length,function(n){0<r?o(n)?c(n,t,--r):u(t,n):o(n)?e(n,0,n.length,function(n){u(t,n)}):u(t,n)}),t}function a(n,t,r,e,o){e=f(e,o);for(var i=t;i<r;i++)!1===e(n[i],i,n)&&(i=r)}function l(n,t,r){a(n,0,n.length,t,r)}function s(n,t,r){for(var e in t=f(t,r),n)if(!1===t(n[e],e))break}function p(n,t,r){t=f(t,r);for(var e=0;e<n;e++)!1===t(e,e,n)&&(e=n)}function y(n){return"string"==typeof n}var d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,g=/\\(\\)?/g,b=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;function h(n,t){if(!y(t)||!b.test(t))return n[t];var r;for(d.lastIndex=0;!v(n)&&(r=d.exec(t));){var e=r[0],o=r[1],i=r[2],u=r[3];n=n[i?u.replace(g,"$1"):o||e]}return n}function m(n){return"number"==typeof n}function r(n){return m(n)&&isFinite(n)&&n>>0===n}function j(n,t,r,e){var o=[],i=f(r,e);return n(t,function(n,t){v(n=i(n,t))||u(o,n)}),o}function A(n,t){return n.splice(t,1)[0]||null}function O(n,t){var r=n.indexOf(t);return-1<r?A(n,r):null}function _(n){return null!==n&&"object"==typeof n}function w(n,t,r){v(n)||i(n,t,r)}var E=Array.isArray;var x=Object.assign||t;function C(n){return"function"==typeof n}function N(n){return!v(n)&&m(n.length)&&!C(n)}function S(n,t,r){N(n)?l(n,t,r):m(n)?p(n,t,r):v(n)||i(n,t,r)}function F(n,t){return n?c(n,[],t||1):[]}var I="celia_uid_"+(1e9*Math.random()>>>0),k=0;function D(n){return n[I]||(++k,Object.defineProperty(n,I,{configurable:!0,value:k}),k)}var L=Object.prototype.hasOwnProperty;var P=/^([a-z][a-z\d+\-.]*:)?\/\//i;var T=Object.prototype.toString;function R(n){return T.call(n)}function U(n){return n instanceof Date}var $={false:!0,null:!0,undefined:!0,0:!0,NaN:!0,"":!0};var z=Number.isInteger||r;function B(n){return n instanceof RegExp}var M=Array.isArray;var q=Array.isArray;var H=Array.isArray;var V=Array.isArray;var W={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){W["[object "+n+"]"]=n.toLowerCase()}),n._append=u,n._assign=t,n._bindContext=f,n._flatten=c,n._forEach=l,n._forIn=s,n._forNumber=p,n._forOwn=i,n._forSlice=a,n._get=h,n._isInteger=r,n._loop=e,n._map=j,n._remove=O,n._removeAt=A,n._repeat=function(n,t,r){for(;n<t;n++)r(n,t)},n.afterCall=function(n,t,e){if(_(n)){var o=n[t];n[t]=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];var r=o.apply(this,n);return e.apply(this,n,r)}}},n.alias=function(r,n){_(r)&&w(n,function(n,t){t=r[t],E(n)?n.forEach(function(n){return r[n]=t}):r[n]=t})},n.aroundCall=function(n,t,r){if(_(n)){var e=n[t];n[t]=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return r.call(this,e,n)}}},n.assert=function(n,t){if(!n)throw new Error(t)},n.assign=x,n.assignDeep=function(n){if(v(n))throw new TypeError("Cannot convert undefined or null to object");var t=Object(n);return e(arguments,1,arguments.length,function(n){!function r(e,n){var o;v(n)||i(n,function(n,t){_(o=e[t])&&_(n)?r(o,n):e[t]=n})}(t,n)}),t},n.beforeCall=function(n,t,r){if(_(n)){var e=n[t];n[t]=function(){return r.apply(this,arguments),e.apply(this,arguments)}}},n.debounce=function(n,t){var r=null;function e(){null!==r&&(clearTimeout(r),r=null)}function o(){e(),r=setTimeout(n,t)}return o.cancel=e,o},n.each=S,n.flatten=F,n.flattenDeep=function(n){return F(n,Number.MAX_VALUE)},n.forIn=function(n,t,r){v(n)||s(n,t,r)},n.forOwn=w,n.get=function(n,t,r){var e=v(n)?void 0:h(n,t);return void 0===e?r:e},n.getEasyHash=function(n){return _(n)?"o"+D(n):(typeof n)[0]+n},n.getUid=D,n.hasOwn=function(n,t){return L.call(n,t)},n.isAbsoluteURL=function(n){return P.test(n)},n.isArrayLike=N,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===R(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=U,n.isFalsy=function(n){return!!$[n]},n.isFunction=C,n.isInteger=z,n.isNil=v,n.isNumber=m,n.isObject=_,n.isPlainObject=function(n){return!v(n)&&"[object Object]"===R(n)},n.isPromiseLike=function(n){return!!n&&C(n.then)&&C(n.catch)},n.isRegExp=B,n.isString=y,n.isUndefined=function(n){return void 0===n},n.isWindow=function(n){return!!n&&n===n.window},n.looseClone=function(n,t){return t?function r(n){var e=n;return M(n)?(e=[],n.forEach(function(n,t){e[t]=r(n)})):_(n)&&(e={},i(n,function(n,t){e[t]=r(n)})),e}(n):function(n){return _(n)?x({},n):n}(n)},n.looseEqual=function r(t,e){if(t===e)return!0;if(_(t)&&_(e)){if(q(t)&&q(e))return t.length===e.length&&t.every(function(n,t){return r(n,e[t])});if(U(t)&&U(e))return+t==+e;if(B(t)&&B(e))return t.toString()===e.toString();var n=Object.keys(t),o=Object.keys(e);return n.length===o.length&&n.every(function(n){return r(t[n],e[n])})}return!1},n.map=function(n,t,r){return j(S,n,t,r)},n.mapObject=function(n,t,r){var e={},o=f(t,r);return w(n,function(n,t){v(n=o(n,t))||(e[t]=n)}),e},n.noop=function(){},n.remove=function(n,t){return H(n)?O(n,t):null},n.removeAt=function(n,t){return V(n)?A(n,t):null},n.set=function(n,t,r){if(!v(n)){if(!y(t)||!b.test(t))return void(n[t]=r);var e,o,i=[],u=0;for(d.lastIndex=0;e=d.exec(t);){var f=e[0],c=e[1],a=e[2],l=e[3],s=void 0;a?v(s=n[o=l.replace(g,"$1")])&&(s=n[o]={}):c?v(s=n[o=c])&&(s=n[c]=[]):v(s=n[o=f])&&(s=n[f]={}),n=s,i[u++]=s}(n=i[u-2])[o]=r}},n.sleep=function(t){return new Promise(function(n){setTimeout(n,t)})},n.toString=R,n.transform=function(n,e,o){return S(n,function(n,t,r){return e(o,n,t,r)}),o},n.type=function(n){return v(n)?n+"":_(n)||C(n)?W[R(n)]||"object":typeof n}},"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n=n||self).celia={});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc