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-beta.1 to 6.1.0

chunk-b190761f.js

2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

var isString = require('./isString.js');
var __chunk_1 = require('./chunk-7d075939.js');
var __chunk_1 = require('./chunk-b190761f.js');

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

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

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

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

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

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

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

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

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

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

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

obj[methodName] = function () {
old.apply(this, arguments);
return after.apply(this, arguments);
var args = [], len = arguments.length;
while ( len-- ) args[ len ] = arguments[ len ];
var ret = old.apply(this, args);
return after.apply(this, args, ret);
};

@@ -19,0 +22,0 @@ }

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

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

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

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

obj[methodName] = function () {
old.apply(this, arguments);
return after.apply(this, arguments);
var args = [], len = arguments.length;
while ( len-- ) args[ len ] = arguments[ len ];
var ret = old.apply(this, args);
return after.apply(this, args, ret);
};

@@ -223,29 +226,2 @@ }

function copy(value) {
return isObject(value)
? assign({}, value)
: value;
}
var isArray$1 = Array.isArray;
function copyDeep(value) {
var target = value;
if (isArray$1(value)) {
target = [];
value.forEach(function (val, i) {
target[i] = copyDeep(val);
});
} else if (isObject(value)) {
target = {};
forOwn(value, function (val, key) {
target[key] = copyDeep(val);
});
}
return target;
}
function copy$1 (value, deep) {
return deep ? copyDeep(value) : copy(value);
}
function debounce (fn, wait) {

@@ -307,6 +283,6 @@ var timeout = null;

function getEasyHash (key) {
return isObject(key)
? 'o' + getUid(key)
: (typeof key)[0] + key;
function getEasyHash (value) {
return isObject(value)
? 'o' + getUid(value)
: (typeof value)[0] + value;
}

@@ -382,5 +358,32 @@

function isWindow (elem) {
return elem && elem === elem.window;
return !!elem && elem === elem.window;
}
function copy(value) {
return isObject(value)
? assign({}, value)
: value;
}
var isArray$1 = Array.isArray;
function copyDeep(value) {
var target = value;
if (isArray$1(value)) {
target = [];
value.forEach(function (val, i) {
target[i] = copyDeep(val);
});
} else if (isObject(value)) {
target = {};
forOwn(value, function (val, key) {
target[key] = copyDeep(val);
});
}
return target;
}
function looseClone (value, deep) {
return deep ? copyDeep(value) : copy(value);
}
var isArray$2 = Array.isArray;

@@ -478,2 +481,9 @@ function looseEqual(a, b) {

function transform(value, iterater, accumulator) {
each$1(value, function (val, index, object) {
return iterater(accumulator, val, index, object);
});
return accumulator;
}
var RAW_DATA_TYPES = {};

@@ -511,3 +521,2 @@ 'Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol'.split(',').forEach(function (name) {

exports.beforeCall = beforeCall;
exports.copy = copy$1;
exports.debounce = debounce;

@@ -538,2 +547,3 @@ exports.each = each$1;

exports.isWindow = isWindow;
exports.looseClone = looseClone;
exports.looseEqual = looseEqual;

@@ -546,4 +556,5 @@ exports.map = map$1;

exports.toString = toString$1;
exports.transform = transform;
exports.type = type;
});
/*
* celia.js v6.1.0-beta.1
* celia.js v6.1.0
* (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,b=/\\(\\)?/g,g=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;function l(n,t){if(!p(t)||!g.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(b,"$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;var _=Array.isArray;function E(n){return"function"==typeof n}function A(n){return!v(n)&&d(n.length)&&!E(n)}function x(n,t,r){A(n)?f(n,t,r):d(n)?s(n,t,r):v(n)||i(n,t,r)}var S="celia_uid_"+(1e9*Math.random()>>>0),C=0;function F(n){return n[S]||(++C,Object.defineProperty(n,S,{configurable:!0,value:C}),C)}var I=Object.prototype.hasOwnProperty;var N=/^([a-z][a-z\d+\-.]*:)?\/\//i;var k=Object.prototype.toString;function P(n){return k.call(n)}function T(n){return n instanceof Date}var D={false:!0,null:!0,undefined:!0,0:!0,NaN:!0,"":!0};var L=Number.isInteger||r;function R(n){return n instanceof RegExp}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,r){if(j(n)){var e=n[t];n[t]=function(){return e.apply(this,arguments),r.apply(this,arguments)}}},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.copy=function(n,t){return t?function r(n){var e=n;return _(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.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=x,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"+F(n):(typeof n)[0]+n},n.getUid=F,n.hasOwn=function(n,t){return I.call(n,t)},n.isAbsoluteURL=function(n){return N.test(n)},n.isArrayLike=A,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===P(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=T,n.isFalsy=function(n){return!!D[n]},n.isFunction=E,n.isInteger=L,n.isNil=v,n.isNumber=d,n.isObject=j,n.isPlainObject=function(n){return!v(n)&&"[object Object]"===P(n)},n.isPromiseLike=function(n){return!!n&&E(n.then)&&E(n.catch)},n.isRegExp=R,n.isString=p,n.isUndefined=function(n){return void 0===n},n.isWindow=function(n){return n&&n===n.window},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(T(t)&&T(e))return+t==+e;if(R(t)&&R(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(x,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)||!g.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(b,"$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=P,n.type=function(n){return v(n)?n+"":j(n)||E(n)?$[P(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 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}});
/*
* celia.js v6.1.0-beta.1
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng

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

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

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

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

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

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

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

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

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

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

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

obj[methodName] = function () {
old.apply(this, arguments);
return after.apply(this, arguments);
var args = [], len = arguments.length;
while ( len-- ) args[ len ] = arguments[ len ];
var ret = old.apply(this, args);
return after.apply(this, args, ret);
};

@@ -223,29 +226,2 @@ }

function copy(value) {
return isObject(value)
? assign({}, value)
: value;
}
var isArray$1 = Array.isArray;
function copyDeep(value) {
var target = value;
if (isArray$1(value)) {
target = [];
value.forEach(function (val, i) {
target[i] = copyDeep(val);
});
} else if (isObject(value)) {
target = {};
forOwn(value, function (val, key) {
target[key] = copyDeep(val);
});
}
return target;
}
function copy$1 (value, deep) {
return deep ? copyDeep(value) : copy(value);
}
function debounce (fn, wait) {

@@ -307,6 +283,6 @@ var timeout = null;

function getEasyHash (key) {
return isObject(key)
? 'o' + getUid(key)
: (typeof key)[0] + key;
function getEasyHash (value) {
return isObject(value)
? 'o' + getUid(value)
: (typeof value)[0] + value;
}

@@ -382,5 +358,32 @@

function isWindow (elem) {
return elem && elem === elem.window;
return !!elem && elem === elem.window;
}
function copy(value) {
return isObject(value)
? assign({}, value)
: value;
}
var isArray$1 = Array.isArray;
function copyDeep(value) {
var target = value;
if (isArray$1(value)) {
target = [];
value.forEach(function (val, i) {
target[i] = copyDeep(val);
});
} else if (isObject(value)) {
target = {};
forOwn(value, function (val, key) {
target[key] = copyDeep(val);
});
}
return target;
}
function looseClone (value, deep) {
return deep ? copyDeep(value) : copy(value);
}
var isArray$2 = Array.isArray;

@@ -478,2 +481,9 @@ function looseEqual(a, b) {

function transform(value, iterater, accumulator) {
each$1(value, function (val, index, object) {
return iterater(accumulator, val, index, object);
});
return accumulator;
}
var RAW_DATA_TYPES = {};

@@ -511,3 +521,2 @@ 'Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol'.split(',').forEach(function (name) {

exports.beforeCall = beforeCall;
exports.copy = copy$1;
exports.debounce = debounce;

@@ -538,2 +547,3 @@ exports.each = each$1;

exports.isWindow = isWindow;
exports.looseClone = looseClone;
exports.looseEqual = looseEqual;

@@ -546,2 +556,3 @@ exports.map = map$1;

exports.toString = toString$1;
exports.transform = transform;
exports.type = type;
/*
* celia.js v6.1.0-beta.1
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng

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

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

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

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

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

obj[methodName] = function () {
old.apply(this, arguments);
return after.apply(this, arguments);
var args = [], len = arguments.length;
while ( len-- ) args[ len ] = arguments[ len ];
var ret = old.apply(this, args);
return after.apply(this, args, ret);
};

@@ -221,29 +224,2 @@ }

function copy(value) {
return isObject(value)
? assign({}, value)
: value;
}
var isArray$1 = Array.isArray;
function copyDeep(value) {
var target = value;
if (isArray$1(value)) {
target = [];
value.forEach(function (val, i) {
target[i] = copyDeep(val);
});
} else if (isObject(value)) {
target = {};
forOwn(value, function (val, key) {
target[key] = copyDeep(val);
});
}
return target;
}
function copy$1 (value, deep) {
return deep ? copyDeep(value) : copy(value);
}
function debounce (fn, wait) {

@@ -305,6 +281,6 @@ var timeout = null;

function getEasyHash (key) {
return isObject(key)
? 'o' + getUid(key)
: (typeof key)[0] + key;
function getEasyHash (value) {
return isObject(value)
? 'o' + getUid(value)
: (typeof value)[0] + value;
}

@@ -380,5 +356,32 @@

function isWindow (elem) {
return elem && elem === elem.window;
return !!elem && elem === elem.window;
}
function copy(value) {
return isObject(value)
? assign({}, value)
: value;
}
var isArray$1 = Array.isArray;
function copyDeep(value) {
var target = value;
if (isArray$1(value)) {
target = [];
value.forEach(function (val, i) {
target[i] = copyDeep(val);
});
} else if (isObject(value)) {
target = {};
forOwn(value, function (val, key) {
target[key] = copyDeep(val);
});
}
return target;
}
function looseClone (value, deep) {
return deep ? copyDeep(value) : copy(value);
}
var isArray$2 = Array.isArray;

@@ -476,2 +479,9 @@ function looseEqual(a, b) {

function transform(value, iterater, accumulator) {
each$1(value, function (val, index, object) {
return iterater(accumulator, val, index, object);
});
return accumulator;
}
var RAW_DATA_TYPES = {};

@@ -489,2 +499,2 @@ 'Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol'.split(',').forEach(function (name) {

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, copy$1 as copy, 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, looseEqual, map$1 as map, mapObject, noop, set, sleep, toString$1 as toString, type };
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 };

@@ -1,4 +0,11 @@

export default function (arr, obj) {
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
function append (arr, obj) {
arr[arr.length] = obj;
return arr;
}
export default append;

@@ -0,13 +1,18 @@

/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import isNil from './isNil.js';
import loop from './_loop.js';
import './_bindContext.js';
import forOwn from './_forOwn.js';
import isNil from './isNil';
import loop from './_loop';
import forOwn from './_forOwn';
export default function (target) {
function _assign (target) {
if (isNil(target)) {
throw new TypeError('Cannot convert undefined or null to object');
}
const to = Object(target);
loop(arguments, 1, arguments.length, (nextSource) => {
!isNil(nextSource) && forOwn(nextSource, (nextVal, nextKey) => {
var to = Object(target);
loop(arguments, 1, arguments.length, function (nextSource) {
!isNil(nextSource) && forOwn(nextSource, function (nextVal, nextKey) {
to[nextKey] = nextVal;

@@ -17,2 +22,4 @@ });

return to;
};
}
export default _assign;

@@ -1,3 +0,10 @@

export default function (iterator, context) {
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
function bindContext (iterator, context) {
return context ? iterator.bind(context) : iterator;
}
export default bindContext;

@@ -1,5 +0,13 @@

import forSlice from './_forSlice';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import './_bindContext.js';
import forSlice from './_forSlice.js';
export default function (value, iterator, context) {
function forEach (value, iterator, context) {
forSlice(value, 0, value.length, iterator, context);
};
}
export default forEach;

@@ -1,10 +0,16 @@

import bindContext from './_bindContext';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import bindContext from './_bindContext.js';
export default function (value, iterator, context) {
function forIn (value, iterator, context) {
iterator = bindContext(iterator, context);
for (let key in value) {
for (var key in value) {
if (iterator(value[key], key) === false) {
break;
};
}
};
} }
}
export default forIn;

@@ -1,8 +0,15 @@

import bindContext from './_bindContext';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import bindContext from './_bindContext.js';
export default function (value, iterator, context) {
function forNumber (value, iterator, context) {
iterator = bindContext(iterator, context);
for (let i = 0; i < value; i++) {
for (var i = 0; i < value; i++) {
iterator(i, i, value) === false && (i = value);
}
};
}
export default forNumber;

@@ -1,9 +0,15 @@

import bindContext from './_bindContext';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import bindContext from './_bindContext.js';
// import hasOwn from './hasOwn';
export default function (value, iterator, context) {
function forOwn (value, iterator, context) {
iterator = bindContext(iterator, context);
const keys = Object.keys(value);
const len = keys.length;
for (let i = 0, key; i < len; i++) {
var keys = Object.keys(value);
var len = keys.length;
for (var i = 0, key = (void 0); i < len; i++) {
key = keys[i];

@@ -17,2 +23,4 @@ iterator(value[key], key, value) === false && (i = len);

// }
};
}
export default forOwn;

@@ -1,8 +0,15 @@

import bindContext from './_bindContext';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import bindContext from './_bindContext.js';
export default function (value, start, end, iterator, context) {
function forSlice (value, start, end, iterator, context) {
iterator = bindContext(iterator, context);
for (let i = start; i < end; i++) {
for (var i = start; i < end; i++) {
iterator(value[i], i, value) === false && (i = end);
}
};
}
export default forSlice;

@@ -1,6 +0,11 @@

import isNil from './isNil';
import isString from './isString';
import { PROP_NAME_REGEX, ESCAPE_CHAR_REGEX, IS_DEEP_PROP_REGEX } from './_internal/regexp';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import isNil from './isNil.js';
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';
export default function (object, path) {
function get (object, path) {
if (!isString(path) || !IS_DEEP_PROP_REGEX.test(path)) {

@@ -10,7 +15,10 @@ return object[path];

let part;
var part;
PROP_NAME_REGEX.lastIndex = 0;
while (!isNil(object) && (part = PROP_NAME_REGEX.exec(path))) {
const [match, number, quote, subString] = part;
const prop = quote ? subString.replace(ESCAPE_CHAR_REGEX, '$1') : (number || match);
var match = part[0];
var number = part[1];
var quote = part[2];
var subString = part[3];
var prop = quote ? subString.replace(ESCAPE_CHAR_REGEX, '$1') : (number || match);
object = object[prop];

@@ -20,1 +28,3 @@ }

}
export default get;

@@ -1,4 +0,9 @@

import isNumber from './isNumber';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import isNumber from './isNumber.js';
export default function (value) {
function _isInteger (value) {
return isNumber(value) &&

@@ -8,1 +13,3 @@ isFinite(value) &&

}
export default _isInteger;

@@ -1,2 +0,7 @@

export default function (arr, start, end, callback) {
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
function loop (arr, start, end, callback) {
for (; start < end; start++) {

@@ -6,1 +11,3 @@ callback(arr[start], start, arr);

}
export default loop;

@@ -1,9 +0,14 @@

import isNil from './isNil';
import bindContext from './_bindContext';
import append from './_append';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import append from './_append.js';
import isNil from './isNil.js';
import bindContext from './_bindContext.js';
export default function (method, elems, callback, context) {
const ret = [];
const cb = bindContext(callback, context);
method(elems, (elem, key) => {
function map (method, elems, callback, context) {
var ret = [];
var cb = bindContext(callback, context);
method(elems, function (elem, key) {
elem = cb(elem, key);

@@ -16,1 +21,3 @@ if (!isNil(elem)) {

}
export default map;

@@ -1,2 +0,7 @@

export default function (start, end, callback) {
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
function _repeat (start, end, callback) {
for (; start < end; start++) {

@@ -6,1 +11,3 @@ callback(start, end);

}
export default _repeat;

@@ -1,12 +0,22 @@

import isObject from './isObject';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import isObject from './isObject.js';
export default function (obj, methodName, after) {
function afterCall (obj, methodName, after) {
if (isObject(obj)) {
const old = obj[methodName];
var old = obj[methodName];
obj[methodName] = function () {
old.apply(this, arguments);
return after.apply(this, arguments);
var args = [], len = arguments.length;
while ( len-- ) args[ len ] = arguments[ len ];
var ret = old.apply(this, args);
return after.apply(this, args, ret);
};
}
}
export default afterCall;

@@ -1,15 +0,25 @@

import isObject from './isObject';
import forOwn from './forOwn';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import './isNil.js';
import './_bindContext.js';
import './_forOwn.js';
import isObject from './isObject.js';
import each from './forOwn.js';
const { isArray } = Array;
var isArray = Array.isArray;
export default function (proto, mappings) {
function alias (proto, mappings) {
if (isObject(proto)) {
forOwn(mappings, (mapping, key) => {
each(mappings, function (mapping, key) {
key = proto[key];
isArray(mapping)
? mapping.forEach(m => (proto[m] = key))
? mapping.forEach(function (m) { return (proto[m] = key); })
: (proto[mapping] = key);
});
}
};
}
export default alias;

@@ -1,8 +0,16 @@

import isObject from './isObject';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import isObject from './isObject.js';
export default function (obj, method, around) {
function aroundCall (obj, method, around) {
if (isObject(obj)) {
const old = obj[method];
var old = obj[method];
obj[method] = function (...args) {
obj[method] = function () {
var args = [], len = arguments.length;
while ( len-- ) args[ len ] = arguments[ len ];
return around.call(this, old, args);

@@ -12,1 +20,3 @@ };

}
export default aroundCall;

@@ -1,2 +0,7 @@

export default function (condition, msg) {
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
function assert (condition, msg) {
if (!condition) {

@@ -6,1 +11,3 @@ throw new Error(msg);

}
export default assert;

@@ -1,3 +0,14 @@

import _assign from './_assign';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import './isNil.js';
import './_loop.js';
import './_bindContext.js';
import './_forOwn.js';
import _assign from './_assign.js';
export default Object.assign || _assign;
var assign = Object.assign || _assign;
export default assign;

@@ -0,10 +1,15 @@

/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import isNil from './isNil.js';
import loop from './_loop.js';
import './_bindContext.js';
import forOwn from './_forOwn.js';
import isObject from './isObject.js';
import isNil from './isNil';
import isObject from './isObject';
import loop from './_loop';
import forOwn from './_forOwn';
function assign(target, nextSource) {
let copy;
!isNil(nextSource) && forOwn(nextSource, (nextVal, nextKey) => {
var copy;
!isNil(nextSource) && forOwn(nextSource, function (nextVal, nextKey) {
copy = target[nextKey];

@@ -15,13 +20,14 @@ isObject(copy) && isObject(nextVal)

});
};
export default function (target) {
}
function assignDeep (target) {
if (isNil(target)) {
throw new TypeError('Cannot convert undefined or null to object');
}
const to = Object(target);
loop(arguments, 1, arguments.length, (nextSource) => {
var to = Object(target);
loop(arguments, 1, arguments.length, function (nextSource) {
assign(to, nextSource);
});
return to;
};
}
export default assignDeep;

@@ -1,6 +0,11 @@

import isObject from './isObject';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import isObject from './isObject.js';
export default function (obj, methodName, before) {
function beforeCall (obj, methodName, before) {
if (isObject(obj)) {
const old = obj[methodName];
var old = obj[methodName];

@@ -13,1 +18,3 @@ obj[methodName] = function () {

}
export default beforeCall;

@@ -1,3 +0,8 @@

export default function (fn, wait) {
let timeout = null;
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
function debounce (fn, wait) {
var timeout = null;

@@ -19,1 +24,3 @@ function cancel() {

}
export default debounce;

@@ -1,9 +0,17 @@

import isArrayLike from './isArrayLike';
import isNumber from './isNumber';
import forEach from './_forEach';
import forOwn from './_forOwn';
import forNumber from './_forNumber';
import isNil from './isNil';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import isNil from './isNil.js';
import './_bindContext.js';
import forOwn from './_forOwn.js';
import './_forSlice.js';
import forEach from './_forEach.js';
import forNumber from './_forNumber.js';
import isNumber from './isNumber.js';
import './isFunction.js';
import isArrayLike from './isArrayLike.js';
export default function (value, cb, context) {
function each (value, cb, context) {
if (isArrayLike(value)) {

@@ -16,2 +24,4 @@ forEach(value, cb, context);

}
};
}
export default each;

@@ -1,6 +0,14 @@

import forIn from './_forIn';
import isNil from './isNil';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import isNil from './isNil.js';
import './_bindContext.js';
import forIn$1 from './_forIn.js';
export default function (value, iterator, context) {
!isNil(value) && forIn(value, iterator, context);
};
function forIn (value, iterator, context) {
!isNil(value) && forIn$1(value, iterator, context);
}
export default forIn;

@@ -1,6 +0,14 @@

import isNil from './isNil';
import forOwn from './_forOwn';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import isNil from './isNil.js';
import './_bindContext.js';
import forOwn from './_forOwn.js';
export default function (value, iterator, context) {
function each (value, iterator, context) {
!isNil(value) && forOwn(value, iterator, context);
};
}
export default each;

@@ -1,7 +0,16 @@

import isNil from './isNil';
import get from './_get';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import isNil from './isNil.js';
import './isString.js';
import './chunk-04fdb3fd.js';
import get$1 from './_get.js';
export default function (object, path, defaultValue) {
const result = isNil(object) ? undefined : get(object, path);
function get (object, path, defaultValue) {
var result = isNil(object) ? undefined : get$1(object, path);
return result === undefined ? defaultValue : result;
}
export default get;

@@ -1,8 +0,15 @@

import isObject from './isObject';
import getUid from './getUid';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import isObject from './isObject.js';
import getUid from './getUid.js';
export default function (key) {
return isObject(key)
? 'o' + getUid(key)
: (typeof key)[0] + key;
function getEasyHash (value) {
return isObject(value)
? 'o' + getUid(value)
: (typeof value)[0] + value;
}
export default getEasyHash;

@@ -1,5 +0,10 @@

const UID_PROPERTY = 'celia_uid_' + ((Math.random() * 1e9) >>> 0);
let uidCounter = 0;
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
var UID_PROPERTY = 'celia_uid_' + ((Math.random() * 1e9) >>> 0);
var uidCounter = 0;
export default function (obj) {
function getUid (obj) {
return obj[UID_PROPERTY] || (++uidCounter, Object.defineProperty(obj, UID_PROPERTY, {

@@ -9,2 +14,4 @@ configurable: true,

}), uidCounter);
};
}
export default getUid;

@@ -1,4 +0,11 @@

const hasOwnProperty = Object.prototype.hasOwnProperty;
export default function (obj, key) {
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
var hasOwnProperty = Object.prototype.hasOwnProperty;
function hasOwn (obj, key) {
return hasOwnProperty.call(obj, key);
}
export default hasOwn;

@@ -1,5 +0,12 @@

const PROTOCOL = /^([a-z][a-z\d+\-.]*:)?\/\//i;
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
var PROTOCOL = /^([a-z][a-z\d+\-.]*:)?\/\//i;
export default function (url) {
function isAbsoluteURL (url) {
return PROTOCOL.test(url);
}
export default isAbsoluteURL;

@@ -1,7 +0,14 @@

import isNil from './isNil';
import isFunction from './isFunction';
import isNumber from './isNumber';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import isNil from './isNil.js';
import isNumber from './isNumber.js';
import isFunction from './isFunction.js';
export default function (value) {
function isArrayLike (value) {
return !isNil(value) && isNumber(value.length) && !isFunction(value);
};
}
export default isArrayLike;

@@ -1,5 +0,12 @@

import toString from './toString';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import toString from './toString.js';
export default function (value) {
function isAsyncFunction (value) {
return toString(value) === '[object AsyncFunction]';
}
export default isAsyncFunction;

@@ -1,3 +0,10 @@

export default function (value) {
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
function isBoolean (value) {
return typeof value === 'boolean';
};
}
export default isBoolean;

@@ -0,6 +1,13 @@

/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
// import toString from './_internal/_toString';
export default function (value) {
function isDate (value) {
// return toString(value) === '[object Date]';
return value instanceof Date;
};
}
export default isDate;

@@ -1,2 +0,7 @@

const falseLike = {
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
var falseLike = {
false: true,

@@ -9,4 +14,6 @@ null: true,

};
export default function (bool) {
function isFalsy (bool) {
return !!falseLike[bool];
}
export default isFalsy;

@@ -1,3 +0,10 @@

export default function (value) {
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
function isFunction (value) {
return typeof value === 'function';
};
}
export default isFunction;

@@ -1,3 +0,11 @@

import _isInteger from './_isInteger';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import './isNumber.js';
import _isInteger from './_isInteger.js';
export default Number.isInteger || _isInteger;
var isInteger = Number.isInteger || _isInteger;
export default isInteger;

@@ -1,4 +0,11 @@

export default function (value) {
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
function isNil (value) {
/* eslint eqeqeq: 0 */
return value == null;
};
}
export default isNil;

@@ -1,3 +0,10 @@

export default function (value) {
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
function isNumber (value) {
return typeof value === 'number';
};
}
export default isNumber;

@@ -1,3 +0,10 @@

export default function (value) {
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
function isObject (value) {
return value !== null && typeof value === 'object';
};
}
export default isObject;

@@ -1,6 +0,13 @@

import toString from './toString';
import isNil from './isNil';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import isNil from './isNil.js';
import toString from './toString.js';
export default function (value) {
function isPlainObject (value) {
return !isNil(value) && toString(value) === '[object Object]';
}
export default isPlainObject;

@@ -1,4 +0,9 @@

import isFunction from './isFunction';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import isFunction from './isFunction.js';
export default function (value) {
function isPromiseLike (value) {
return !!value &&

@@ -8,1 +13,3 @@ isFunction(value.then) &&

}
export default isPromiseLike;

@@ -0,6 +1,13 @@

/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
// import toString from './_internal/_toString';
export default function (value) {
function isRegExp (value) {
// return toString(value) === '[object RegExp]';
return value instanceof RegExp;
};
}
export default isRegExp;

@@ -1,3 +0,10 @@

export default function (value) {
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
function isString (value) {
return typeof value === 'string';
};
}
export default isString;

@@ -1,3 +0,10 @@

export default function (value) {
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
function isUndefined (value) {
return typeof value === 'undefined';
};
}
export default isUndefined;

@@ -1,3 +0,10 @@

export default function (elem) {
return elem && elem === elem.window;
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
function isWindow (elem) {
return !!elem && elem === elem.window;
}
export default isWindow;

@@ -1,7 +0,12 @@

import isObject from './isObject';
import isDate from './isDate';
import isRegExp from './isRegExp';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import isObject from './isObject.js';
import isDate from './isDate.js';
import isRegExp from './isRegExp.js';
const { isArray } = Array;
export default function looseEqual(a, b) {
var isArray = Array.isArray;
function looseEqual(a, b) {
if (a === b) {

@@ -12,3 +17,3 @@ return true;

if (isArray(a) && isArray(b)) { // 判断是否是数组
return a.length === b.length && a.every((e, i) => {
return a.length === b.length && a.every(function (e, i) {
return looseEqual(e, b[i]);

@@ -21,5 +26,5 @@ });

} else { // 对象
const keysA = Object.keys(a);
const keysB = Object.keys(b);
return keysA.length === keysB.length && keysA.every((key) => {
var keysA = Object.keys(a);
var keysB = Object.keys(b);
return keysA.length === keysB.length && keysA.every(function (key) {
return looseEqual(a[key], b[key]);

@@ -31,1 +36,3 @@ });

}
export default looseEqual;

@@ -1,6 +0,23 @@

import each from './each';
import map from './_map';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import './_append.js';
import './isNil.js';
import './_bindContext.js';
import './_forOwn.js';
import './_forSlice.js';
import './_forEach.js';
import './_forNumber.js';
import './isNumber.js';
import map$1 from './_map.js';
import './isFunction.js';
import './isArrayLike.js';
import each from './each.js';
export default function (elems, callback, context) {
return map(each, elems, callback, context);
function map (elems, callback, context) {
return map$1(each, elems, callback, context);
}
export default map;

@@ -1,9 +0,15 @@

import each from './forOwn';
import isNil from './isNil';
import bindContext from './_bindContext';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import isNil from './isNil.js';
import bindContext from './_bindContext.js';
import './_forOwn.js';
import each from './forOwn.js';
export default function (elems, callback, context) {
const ret = {};
const cb = bindContext(callback, context);
each(elems, (elem, key) => {
function mapObject (elems, callback, context) {
var ret = {};
var cb = bindContext(callback, context);
each(elems, function (elem, key) {
elem = cb(elem, key);

@@ -14,1 +20,3 @@ !isNil(elem) && (ret[key] = elem);

}
export default mapObject;

@@ -1,1 +0,8 @@

export default function noop() { }
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
function noop() { }
export default noop;

@@ -1,6 +0,11 @@

import isNil from './isNil';
import isString from './isString';
import { PROP_NAME_REGEX, ESCAPE_CHAR_REGEX, IS_DEEP_PROP_REGEX } from './_internal/regexp';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import isNil from './isNil.js';
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';
export default function (object, path, value) {
function set (object, path, value) {
if (!isNil(object)) {

@@ -12,11 +17,14 @@ if (!isString(path) || !IS_DEEP_PROP_REGEX.test(path)) {

let part;
let queue = [];
let i = 0;
let key;
var part;
var queue = [];
var i = 0;
var key;
PROP_NAME_REGEX.lastIndex = 0;
while ((part = PROP_NAME_REGEX.exec(path))) {
const [match, number, quote, subString] = part;
let obj;
var match = part[0];
var number = part[1];
var quote = part[2];
var subString = part[3];
var obj = (void 0);
if (quote) {

@@ -47,1 +55,3 @@ key = subString.replace(ESCAPE_CHAR_REGEX, '$1');

}
export default set;

@@ -1,5 +0,12 @@

export default function (ms) {
return new Promise((resolve) => {
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
function sleep (ms) {
return new Promise(function (resolve) {
setTimeout(resolve, ms);
});
}
export default sleep;

@@ -1,5 +0,12 @@

const toString = Object.prototype.toString;
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
var toString = Object.prototype.toString;
export default function (value) {
function toString$1 (value) {
return toString.call(value);
}
export default toString$1;

@@ -1,12 +0,17 @@

import toString from './/toString';
import isNil from './isNil';
import isObject from './isObject';
import isFunction from './isFunction';
/*
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
import isNil from './isNil.js';
import isObject from './isObject.js';
import isFunction from './isFunction.js';
import toString from './toString.js';
const RAW_DATA_TYPES = {};
'Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol'.split(',').forEach((name) => {
RAW_DATA_TYPES[`[object ${name}]`] = name.toLowerCase();
var RAW_DATA_TYPES = {};
'Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol'.split(',').forEach(function (name) {
RAW_DATA_TYPES[("[object " + name + "]")] = name.toLowerCase();
});
export default function (value) {
function type (value) {
if (isNil(value)) {

@@ -16,2 +21,4 @@ return value + '';

return (isObject(value) || isFunction(value)) ? (RAW_DATA_TYPES[toString(value)] || 'object') : typeof value;
};
}
export default type;
/*
* celia.js v6.1.0-beta.1
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng

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

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

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

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

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

require('./isString.js');
require('./chunk-7d075939.js');
require('./chunk-b190761f.js');
var _get = require('./_get.js');

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

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

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

function getEasyHash (key) {
return isObject(key)
? 'o' + getUid(key)
: (typeof key)[0] + key;
function getEasyHash (value) {
return isObject(value)
? 'o' + getUid(value)
: (typeof value)[0] + value;
}
module.exports = getEasyHash;
/*
* celia.js v6.1.0-beta.1
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng

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

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

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

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

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

obj[methodName] = function () {
old.apply(this, arguments);
return after.apply(this, arguments);
var args = [], len = arguments.length;
while ( len-- ) args[ len ] = arguments[ len ];
var ret = old.apply(this, args);
return after.apply(this, args, ret);
};

@@ -224,29 +227,2 @@ }

function copy(value) {
return isObject(value)
? assign({}, value)
: value;
}
var isArray$1 = Array.isArray;
function copyDeep(value) {
var target = value;
if (isArray$1(value)) {
target = [];
value.forEach(function (val, i) {
target[i] = copyDeep(val);
});
} else if (isObject(value)) {
target = {};
forOwn(value, function (val, key) {
target[key] = copyDeep(val);
});
}
return target;
}
function copy$1 (value, deep) {
return deep ? copyDeep(value) : copy(value);
}
function debounce (fn, wait) {

@@ -308,6 +284,6 @@ var timeout = null;

function getEasyHash (key) {
return isObject(key)
? 'o' + getUid(key)
: (typeof key)[0] + key;
function getEasyHash (value) {
return isObject(value)
? 'o' + getUid(value)
: (typeof value)[0] + value;
}

@@ -383,5 +359,32 @@

function isWindow (elem) {
return elem && elem === elem.window;
return !!elem && elem === elem.window;
}
function copy(value) {
return isObject(value)
? assign({}, value)
: value;
}
var isArray$1 = Array.isArray;
function copyDeep(value) {
var target = value;
if (isArray$1(value)) {
target = [];
value.forEach(function (val, i) {
target[i] = copyDeep(val);
});
} else if (isObject(value)) {
target = {};
forOwn(value, function (val, key) {
target[key] = copyDeep(val);
});
}
return target;
}
function looseClone (value, deep) {
return deep ? copyDeep(value) : copy(value);
}
var isArray$2 = Array.isArray;

@@ -479,2 +482,9 @@ function looseEqual(a, b) {

function transform(value, iterater, accumulator) {
each$1(value, function (val, index, object) {
return iterater(accumulator, val, index, object);
});
return accumulator;
}
var RAW_DATA_TYPES = {};

@@ -512,3 +522,2 @@ 'Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol'.split(',').forEach(function (name) {

exports.beforeCall = beforeCall;
exports.copy = copy$1;
exports.debounce = debounce;

@@ -539,2 +548,3 @@ exports.each = each$1;

exports.isWindow = isWindow;
exports.looseClone = looseClone;
exports.looseEqual = looseEqual;

@@ -547,2 +557,3 @@ exports.map = map$1;

exports.toString = toString$1;
exports.transform = transform;
exports.type = type;

@@ -549,0 +560,0 @@

/*
* celia.js v6.1.0-beta.1
* celia.js v6.1.0
* (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,b=/\\(\\)?/g,g=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;function l(n,t){if(!p(t)||!g.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(b,"$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;var _=Array.isArray;function E(n){return"function"==typeof n}function A(n){return!v(n)&&d(n.length)&&!E(n)}function x(n,t,r){A(n)?f(n,t,r):d(n)?s(n,t,r):v(n)||i(n,t,r)}var S="celia_uid_"+(1e9*Math.random()>>>0),C=0;function F(n){return n[S]||(++C,Object.defineProperty(n,S,{configurable:!0,value:C}),C)}var I=Object.prototype.hasOwnProperty;var N=/^([a-z][a-z\d+\-.]*:)?\/\//i;var k=Object.prototype.toString;function P(n){return k.call(n)}function T(n){return n instanceof Date}var D={false:!0,null:!0,undefined:!0,0:!0,NaN:!0,"":!0};var L=Number.isInteger||r;function R(n){return n instanceof RegExp}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,r){if(j(n)){var e=n[t];n[t]=function(){return e.apply(this,arguments),r.apply(this,arguments)}}},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.copy=function(n,t){return t?function r(n){var e=n;return _(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.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=x,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"+F(n):(typeof n)[0]+n},n.getUid=F,n.hasOwn=function(n,t){return I.call(n,t)},n.isAbsoluteURL=function(n){return N.test(n)},n.isArrayLike=A,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===P(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=T,n.isFalsy=function(n){return!!D[n]},n.isFunction=E,n.isInteger=L,n.isNil=v,n.isNumber=d,n.isObject=j,n.isPlainObject=function(n){return!v(n)&&"[object Object]"===P(n)},n.isPromiseLike=function(n){return!!n&&E(n.then)&&E(n.catch)},n.isRegExp=R,n.isString=p,n.isUndefined=function(n){return void 0===n},n.isWindow=function(n){return n&&n===n.window},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(T(t)&&T(e))return+t==+e;if(R(t)&&R(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(x,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)||!g.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(b,"$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=P,n.type=function(n){return v(n)?n+"":j(n)||E(n)?$[P(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 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}}({});
/*
* celia.js v6.1.0-beta.1
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng

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

var isString = require('./isString.js');
require('./chunk-7d075939.js');
require('./chunk-b190761f.js');
var _get = require('./_get.js');

@@ -35,3 +35,2 @@ var isNumber = require('./isNumber.js');

var beforeCall = require('./beforeCall.js');
var copy = require('./copy.js');
var debounce = require('./debounce.js');

@@ -58,2 +57,3 @@ var isFunction = require('./isFunction.js');

var isWindow = require('./isWindow.js');
var looseClone = require('./looseClone.js');
var looseEqual = require('./looseEqual.js');

@@ -65,2 +65,3 @@ var map = require('./map.js');

var sleep = require('./sleep.js');
var transform = require('./transform.js');
var type = require('./type.js');

@@ -95,3 +96,2 @@

exports.beforeCall = beforeCall;
exports.copy = copy;
exports.debounce = debounce;

@@ -118,2 +118,3 @@ exports.isFunction = isFunction;

exports.isWindow = isWindow;
exports.looseClone = looseClone;
exports.looseEqual = looseEqual;

@@ -125,2 +126,3 @@ exports.map = map;

exports.sleep = sleep;
exports.transform = transform;
exports.type = type;
/*
* celia.js v6.1.0-beta.1
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -9,5 +9,5 @@ * Released under the MIT License.

function isWindow (elem) {
return elem && elem === elem.window;
return !!elem && elem === elem.window;
}
module.exports = isWindow;
/*
* celia.js v6.1.0-beta.1
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng

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

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

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

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

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

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

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

{
"name": "celia",
"version": "6.1.0-beta.1",
"version": "6.1.0",
"description": "A modern JavaScript utility library delivering modularity, performance, and extras.",
"main": "./index.js",
"module": "./es.js",
"module": "./es/index.js",
"unpkg": "./umd.js",

@@ -11,3 +11,5 @@ "jsdelivr": "./umd.js",

"build": "node ./scripts/build.js",
"test": "jest --detectOpenHandles --config jest.config.js"
"test": "jest --detectOpenHandles --config jest.config.js",
"docs": "./scripts/docs.sh",
"gh-pages": "git subtree push --prefix=gh-pages origin gh-pages"
},

@@ -14,0 +16,0 @@ "repository": {

@@ -11,28 +11,9 @@ # celia

---
## [Full Documentation](https://fengxinming.github.io/celia/index.html)
## Table of contents
- [Manipulation](#Manipulation)
- [Installation](#Installation)
- [API](#API)
- [Example](#Example)
---
## Manipulation
- [Manipulate Object](https://github.com/fengxinming/object-utils)
- [Manipulate Array](https://github.com/fengxinming/array-utils)
- [Manipulate String](https://github.com/fengxinming/string-utils)
- [Manipulate Function](https://github.com/fengxinming/func-utils)
- [Manipulate Query String](https://github.com/fengxinming/qs)
- [Manipulate Properties Files](https://github.com/fengxinming/properties-like)
- [Browser Stuff](https://github.com/fengxinming/browser-stuff)
---
## Installation
### Load `celia` via classical `<script>` tag
### In a browser

@@ -53,5 +34,6 @@ ```html

</script>
```
### CommonJS style with npm
### Using npm

@@ -68,9 +50,9 @@ ```bash

// modularity
import each from 'celia/es/each';
import isArrayLike from 'celia/es/isArrayLike';
import isAsyncFunction from 'celia/es/isAsyncFunction';
import isDate from 'celia/es/isDate';
import isFalsy from 'celia/es/isFalsy';
import looseEqual from 'celia/es/looseEqual';
import sleep from 'celia/es/sleep';
import each from 'celia/each';
import isArrayLike from 'celia/isArrayLike';
import isAsyncFunction from 'celia/isAsyncFunction';
import isDate from 'celia/isDate';
import isFalsy from 'celia/isFalsy';
import looseEqual from 'celia/looseEqual';
import sleep from 'celia/sleep';
// ...

@@ -94,39 +76,4 @@ // ...

---
## API
- assign
- each
- getEasyHash
- getUid
- hasOwn
- isAbsoluteURL
- isArrayLike
- isAsyncFunction
- isBoolean
- isDate
- isFalsy
- isFunction
- isInteger
- isNil
- isNumber
- isObject
- isPlainObject
- isPromiseLike
- isRegExp
- isString
- isUndefined
- isWindow
- looseEqual
- map
- noop
- sleep
- toString
- type
---
## Example
- [Jest](test)
/*
* celia.js v6.1.0-beta.1
* celia.js v6.1.0
* (c) 2018-2019 Jesse Feng

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

var isString = require('./isString.js');
var __chunk_1 = require('./chunk-7d075939.js');
var __chunk_1 = require('./chunk-b190761f.js');

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

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

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

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

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

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

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

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

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

obj[methodName] = function () {
old.apply(this, arguments);
return after.apply(this, arguments);
var args = [], len = arguments.length;
while ( len-- ) args[ len ] = arguments[ len ];
var ret = old.apply(this, args);
return after.apply(this, args, ret);
};

@@ -227,29 +230,2 @@ }

function copy(value) {
return isObject(value)
? assign({}, value)
: value;
}
var isArray$1 = Array.isArray;
function copyDeep(value) {
var target = value;
if (isArray$1(value)) {
target = [];
value.forEach(function (val, i) {
target[i] = copyDeep(val);
});
} else if (isObject(value)) {
target = {};
forOwn(value, function (val, key) {
target[key] = copyDeep(val);
});
}
return target;
}
function copy$1 (value, deep) {
return deep ? copyDeep(value) : copy(value);
}
function debounce (fn, wait) {

@@ -311,6 +287,6 @@ var timeout = null;

function getEasyHash (key) {
return isObject(key)
? 'o' + getUid(key)
: (typeof key)[0] + key;
function getEasyHash (value) {
return isObject(value)
? 'o' + getUid(value)
: (typeof value)[0] + value;
}

@@ -386,5 +362,32 @@

function isWindow (elem) {
return elem && elem === elem.window;
return !!elem && elem === elem.window;
}
function copy(value) {
return isObject(value)
? assign({}, value)
: value;
}
var isArray$1 = Array.isArray;
function copyDeep(value) {
var target = value;
if (isArray$1(value)) {
target = [];
value.forEach(function (val, i) {
target[i] = copyDeep(val);
});
} else if (isObject(value)) {
target = {};
forOwn(value, function (val, key) {
target[key] = copyDeep(val);
});
}
return target;
}
function looseClone (value, deep) {
return deep ? copyDeep(value) : copy(value);
}
var isArray$2 = Array.isArray;

@@ -482,2 +485,9 @@ function looseEqual(a, b) {

function transform(value, iterater, accumulator) {
each$1(value, function (val, index, object) {
return iterater(accumulator, val, index, object);
});
return accumulator;
}
var RAW_DATA_TYPES = {};

@@ -515,3 +525,2 @@ 'Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol'.split(',').forEach(function (name) {

exports.beforeCall = beforeCall;
exports.copy = copy$1;
exports.debounce = debounce;

@@ -542,2 +551,3 @@ exports.each = each$1;

exports.isWindow = isWindow;
exports.looseClone = looseClone;
exports.looseEqual = looseEqual;

@@ -550,4 +560,5 @@ exports.map = map$1;

exports.toString = toString$1;
exports.transform = transform;
exports.type = type;
}));
/*
* celia.js v6.1.0-beta.1
* celia.js v6.1.0
* (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 p(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(p(n))throw new TypeError("Cannot convert undefined or null to object");var r=Object(n);return e(arguments,1,arguments.length,function(n){p(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 v(n){return"string"==typeof n}var y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,b=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;function l(n,t){if(!v(t)||!b.test(t))return n[t];var r;for(y.lastIndex=0;!p(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){p(n=i(n,t))||u(o,n)}),o}function j(n){return null!==n&&"object"==typeof n}function O(n,t,r){p(n)||i(n,t,r)}var m=Array.isArray;var w=Object.assign||t;var _=Array.isArray;function E(n){return"function"==typeof n}function A(n){return!p(n)&&g(n.length)&&!E(n)}function x(n,t,r){A(n)?c(n,t,r):g(n)?s(n,t,r):p(n)||i(n,t,r)}var S="celia_uid_"+(1e9*Math.random()>>>0),C=0;function F(n){return n[S]||(++C,Object.defineProperty(n,S,{configurable:!0,value:C}),C)}var I=Object.prototype.hasOwnProperty;var N=/^([a-z][a-z\d+\-.]*:)?\/\//i;var k=Object.prototype.toString;function P(n){return k.call(n)}function T(n){return n instanceof Date}var D={false:!0,null:!0,undefined:!0,0:!0,NaN:!0,"":!0};var L=Number.isInteger||r;function R(n){return n instanceof RegExp}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,r){if(j(n)){var e=n[t];n[t]=function(){return e.apply(this,arguments),r.apply(this,arguments)}}},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(p(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;p(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.copy=function(n,t){return t?function r(n){var e=n;return _(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.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=x,n.forIn=function(n,t,r){p(n)||a(n,t,r)},n.forOwn=O,n.get=function(n,t,r){var e=p(n)?void 0:l(n,t);return void 0===e?r:e},n.getEasyHash=function(n){return j(n)?"o"+F(n):(typeof n)[0]+n},n.getUid=F,n.hasOwn=function(n,t){return I.call(n,t)},n.isAbsoluteURL=function(n){return N.test(n)},n.isArrayLike=A,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===P(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=T,n.isFalsy=function(n){return!!D[n]},n.isFunction=E,n.isInteger=L,n.isNil=p,n.isNumber=g,n.isObject=j,n.isPlainObject=function(n){return!p(n)&&"[object Object]"===P(n)},n.isPromiseLike=function(n){return!!n&&E(n.then)&&E(n.catch)},n.isRegExp=R,n.isString=v,n.isUndefined=function(n){return void 0===n},n.isWindow=function(n){return n&&n===n.window},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(T(t)&&T(e))return+t==+e;if(R(t)&&R(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(x,n,t,r)},n.mapObject=function(n,t,r){var e={},o=f(t,r);return O(n,function(n,t){p(n=o(n,t))||(e[t]=n)}),e},n.noop=function(){},n.set=function(n,t,r){if(!p(n)){if(!v(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?p(l=n[o=s.replace(d,"$1")])&&(l=n[o]={}):c?p(l=n[o=c])&&(l=n[c]=[]):p(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=P,n.type=function(n){return p(n)?n+"":j(n)||E(n)?$[P(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}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={});
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