From 7f01c7963e0ed0221cee2b6b796595f774e46c30 Mon Sep 17 00:00:00 2001 From: Suguru Motegi Date: Sun, 27 Aug 2017 16:49:16 -0700 Subject: [PATCH] 1.8.1 --- dist/aigle-es5.js | 3 ++- dist/aigle-es5.min.js | 2 +- dist/aigle.js | 3 ++- dist/aigle.min.js | 2 +- package.json | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/dist/aigle-es5.js b/dist/aigle-es5.js index 7c0e5979..999a4613 100644 --- a/dist/aigle-es5.js +++ b/dist/aigle-es5.js @@ -12007,9 +12007,10 @@ process.umask = function() { return 0; }; },{"_process":79}],81:[function(require,module,exports){ module.exports={ "name": "aigle", - "version": "1.8.0", + "version": "1.8.1", "description": "Aigle is an ideal Promise library, faster and more functional than other Promise libraries", "main": "index.js", + "private": true, "browser": "browser.js", "scripts": { "bench": "node --expose_gc ./benchmark -d", diff --git a/dist/aigle-es5.min.js b/dist/aigle-es5.min.js index 10f7f2a4..34b660cb 100644 --- a/dist/aigle-es5.min.js +++ b/dist/aigle-es5.min.js @@ -1 +1 @@ -!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Promise=t()}}(function(){return function t(e,i,r){function s(n,c){if(!i[n]){if(!e[n]){var l="function"==typeof require&&require;if(!c&&l)return l(n,!0);if(o)return o(n,!0);var u=new Error("Cannot find module '"+n+"'");throw u.code="MODULE_NOT_FOUND",u}var a=i[n]={exports:{}};e[n][0].call(a.exports,function(t){var i=e[n][1][t];return s(i||t)},a,a.exports,t,e,i,r)}return i[n].exports}for(var o="function"==typeof require&&require,n=0;n1){var r=arguments.length;if("function"==typeof(t=arguments[--r])){for(var s=Array(r);r--;)s[r]=i[r];t=c(s,t)}}return u(this,new e(L),void 0,t)},e.prototype.finally=function(t){return t="function"!=typeof t?t:l(this,t),u(this,new e(L),t,t)},e.prototype.toString=function(){return"[object Promise]"},e.prototype.isPending=function(){return 0===this._resolved},e.prototype.isFulfilled=function(){return 1===this._resolved},e.prototype.isRejected=function(){return 2===this._resolved},e.prototype.isCancelled=function(){return this._value instanceof or},e.prototype.cancel=function(){if(this._execute!==o){var t=this._onCancelQueue;if(t){var e=-1,i=t.array;for(this._onCancelQueue=void 0;++e0&&this._iterate()},e}(o);e.exports={concatLimit:s,ConcatLimit:l}},{"./eachLimit":13,"./internal/collection":35,"./internal/util":38}],7:[function(t,e,i){"use strict";function r(t,e){return new s(t,e)._execute()}var s=function(t){function e(e,i){t.call(this,e,i),this._result=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){Array.isArray(t)?(e=this._result).push.apply(e,t):void 0!==t&&this._result.push(t),0==--this._rest?this._promise._resolve(this._result):this._iterate();var e},e}(t("./eachSeries").EachSeries);e.exports={concatSeries:r,ConcatSeries:s}},{"./eachSeries":14}],8:[function(t,e,i){"use strict";function r(t,e){var i=(new Error).stack;t._stacks=t._stacks||[],e&&e._stacks&&(s=t._stacks).push.apply(s,e._stacks);var r=i.split("\n").slice(4);t._stacks.push(r.join("\n"));var s}function s(t){var e=t._value,i=t._stacks;if(e instanceof Error!=!1&&i&&!e._reconstructed){for(var r=e.stack.split("\n"),s=i.length;s--;)r.push("From previous event:"),r.push(i[s]);e.stack=r.join("\n"),e._reconstructed=!0}}e.exports={resolveStack:r,reconstructStack:s}},{}],9:[function(t,e,i){"use strict";function r(t,e){return new n(t)._resolve(e)}var s=t("./aigle"),o=t("./internal/util").INTERNAL,n=function(t){function e(e){t.call(this,o),this._ms=e,this._timer=void 0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._resolve=function(e){var i=this;return this._timer=setTimeout(function(){return t.prototype._resolve.call(i,e)},this._ms),this},e.prototype._reject=function(e){clearTimeout(this._timer),t.prototype._reject.call(this,e)},e}(s);e.exports={delay:r,Delay:n}},{"./aigle":2,"./internal/util":38}],10:[function(t,e,i){"use strict";function r(t,e,i){return"function"!=typeof i&&(i=e,e=t,t=void 0),new s(new o(i),e)._iterate(t)}var s=t("./doWhilst").DoWhilst,o=t("./until").UntilTester;e.exports=r},{"./doWhilst":11,"./until":75}],11:[function(t,e,i){"use strict";function r(t,e,i){return"function"!=typeof i&&(i=e,e=t,t=void 0),new c(new n(i),e)._iterate(t)}var s=t("./whilst"),o=s.AigleWhilst,n=s.WhilstTester,c=function(t){function e(e,i){t.call(this,e,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._iterate=function(t){return this._next(t),this._promise},e}(o);e.exports={doWhilst:r,DoWhilst:c}},{"./whilst":77}],12:[function(t,e,i){"use strict";function r(t,e){return new h(t,e)._execute()}var s=t("aigle-core").AigleProxy,o=t("./aigle"),n=t("./internal/util"),c=n.INTERNAL,l=n.PENDING,u=t("./internal/collection"),a=u.execute,_=u.setParallel,h=function(t){function e(e,i,r){void 0===r&&(r=_),t.call(this),this._iterator=i,this._promise=new o(c),this._coll=void 0,this._size=void 0,this._rest=void 0,this._keys=void 0,this._result=void 0,this._iterate=void 0,e===l?(this._set=r,this._iterate=this._callResolve,this._callResolve=a):r.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._execute=function(){return 0===this._rest?this._promise._resolve(this._result):this._iterate(),this._promise},e.prototype._callResolve=function(t){0!=--this._rest&&!1!==t||this._promise._resolve()},e.prototype._callReject=function(t){this._promise._reject(t)},e}(s);e.exports={each:r,Each:h}},{"./aigle":2,"./internal/collection":35,"./internal/util":38,"aigle-core":78}],13:[function(t,e,i){"use strict";function r(t,e,i){return new p(t,e,i)._execute()}var s=t("aigle-core").AigleProxy,o=t("./aigle"),n=t("./internal/util"),c=n.DEFAULT_LIMIT,l=n.INTERNAL,u=n.PENDING,a=t("./internal/collection"),_=a.execute,h=a.setLimit,p=function(t){function e(e,i,r,s){void 0===s&&(s=h),t.call(this),"function"==typeof i&&(r=i,i=c),this._iterator=r,this._promise=new o(l),this._index=0,this._limit=i,this._coll=void 0,this._rest=void 0,this._size=void 0,this._keys=void 0,this._result=void 0,this._iterate=void 0,this._callRest=void 0,e===u?(this._set=s,this._iterate=this._callResolve,this._callResolve=_):s.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._execute=function(){var t=this;if(0===this._rest)this._promise._resolve(this._result);else for(;this._limit--;)t._iterate();return this._promise},e.prototype._callResolve=function(t){!1===t?(this._callRest=0,this._promise._resolve()):0==--this._rest?this._promise._resolve():this._callRest-- >0&&this._iterate()},e.prototype._callReject=function(t){this._callRest=0,this._promise._reject(t)},e}(s);e.exports={eachLimit:r,EachLimit:p}},{"./aigle":2,"./internal/collection":35,"./internal/util":38,"aigle-core":78}],14:[function(t,e,i){"use strict";function r(t,e){return new h(t,e)._execute()}var s=t("aigle-core").AigleProxy,o=t("./aigle"),n=t("./internal/util"),c=n.INTERNAL,l=n.PENDING,u=t("./internal/collection"),a=u.execute,_=u.setSeries,h=function(t){function e(e,i,r){void 0===r&&(r=_),t.call(this),this._iterator=i,this._promise=new o(c),this._index=0,this._coll=void 0,this._rest=void 0,this._size=void 0,this._keys=void 0,this._result=void 0,this._iterate=void 0,e===l?(this._set=r,this._iterate=this._callResolve,this._callResolve=a):r.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._execute=function(){return 0===this._rest?this._promise._resolve(this._result):this._iterate(),this._promise},e.prototype._callResolve=function(t){0==--this._rest||!1===t?this._promise._resolve():this._iterate()},e.prototype._callReject=function(t){this._promise._reject(t)},e}(s);e.exports={eachSeries:r,EachSeries:h}},{"./aigle":2,"./internal/collection":35,"./internal/util":38,"aigle-core":78}],15:[function(t,e,i){"use strict";for(var r=["CancellationError","TimeoutError"],s=r.length;s--;)i[r[s]]=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error)},{}],16:[function(t,e,i){"use strict";function r(t,e){return new c(t,e)._execute()}var s=t("./each").Each,o=t("./internal/util").PENDING,n=t("./internal/collection").setShorthand,c=function(t){function e(e,i){t.call(this,e,i),this._result=!0,e===o?this._set=n:n.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){t?0==--this._rest&&this._promise._resolve(!0):this._promise._resolve(!1)},e}(s);e.exports={every:r,Every:c}},{"./each":12,"./internal/collection":35,"./internal/util":38}],17:[function(t,e,i){"use strict";function r(t,e,i){return new s(t,e,i)._execute()}var s=function(t){function e(e,i,r){t.call(this,e,i,r),this._result=!0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){t?0==--this._rest?this._promise._resolve(!0):this._callRest-- >0&&this._iterate():this._promise._resolve(!1)},e}(t("./eachLimit").EachLimit);e.exports={everyLimit:r,EveryLimit:s}},{"./eachLimit":13}],18:[function(t,e,i){"use strict";function r(t,e){return new s(t,e)._execute()}var s=function(t){function e(e,i){t.call(this,e,i),this._result=!0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){t?0==--this._rest?this._promise._resolve(!0):this._iterate():this._promise._resolve(!1)},e}(t("./eachSeries.js").EachSeries);e.exports={everySeries:r,EverySeries:s}},{"./eachSeries.js":14}],19:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._result=Array(this._rest),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]=t?this._coll[e]:a,0==--this._rest&&this._promise._resolve(_(this._result))}function o(t,e){this._result[e]=t?this._coll[this._keys[e]]:a,0==--this._rest&&this._promise._resolve(_(this._result))}function n(t,e){return new h(t,e)._execute()}var c=t("./each").Each,l=t("./internal/collection").setShorthand,u=t("./internal/util"),a=u.INTERNAL,_=u.compactArray,h=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);h.prototype._set=r,e.exports={filter:n,Filter:h}},{"./each":12,"./internal/collection":35,"./internal/util":38}],20:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._result=Array(this._rest),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]=t?this._coll[e]:a,0==--this._rest?this._promise._resolve(_(this._result)):this._callRest-- >0&&this._iterate()}function o(t,e){this._result[e]=t?this._coll[this._keys[e]]:a,0==--this._rest?this._promise._resolve(_(this._result)):this._callRest-- >0&&this._iterate()}function n(t,e,i){return new h(t,e,i)._execute()}var c=t("./eachLimit").EachLimit,l=t("./internal/collection").setLimit,u=t("./internal/util"),a=u.INTERNAL,_=u.compactArray,h=function(t){function e(e,i,s){t.call(this,e,i,s,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={filterLimit:n,FilterLimit:h}},{"./eachLimit":13,"./internal/collection":35,"./internal/util":38}],21:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._result=Array(this._rest),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]=t?this._coll[e]:a,0==--this._rest?this._promise._resolve(_(this._result)):this._iterate()}function o(t,e){this._result[e]=t?this._coll[this._keys[e]]:a,0==--this._rest?this._promise._resolve(_(this._result)):this._iterate()}function n(t,e){return new h(t,e)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/collection").setSeries,u=t("./internal/util"),a=u.INTERNAL,_=u.compactArray,h=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={filterSeries:n,FilterSeries:h}},{"./eachSeries":14,"./internal/collection":35,"./internal/util":38}],22:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t?(this._size=0,this._promise._resolve(this._coll[e])):0==--this._rest&&this._promise._resolve()}function o(t,e){t?(this._size=0,this._promise._resolve(this._coll[this._keys[e]])):0==--this._rest&&this._promise._resolve()}function n(t,e){return new u(t,e)._execute()}var c=t("./each").Each,l=t("./internal/collection").setShorthand,u=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={find:n,Find:u}},{"./each":12,"./internal/collection":35}],23:[function(t,e,i){"use strict";function r(t){return n.call(this,t),void 0!==this._keys&&(this._rest=0),this}function s(t,e){return new c(t,e)._execute()}var o=t("./each").Each,n=t("./internal/collection").setShorthand,c=function(t){function e(e,i){t.call(this,e,i,r),this._result=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t,e){t?(this._size=0,this._promise._resolve(e)):0==--this._rest&&this._promise._resolve(-1)},e}(o);e.exports={findIndex:s,FindIndex:c}},{"./each":12,"./internal/collection":35}],24:[function(t,e,i){"use strict";function r(t){return n.call(this,t),void 0!==this._keys&&(this._rest=0),this}function s(t,e,i){return new c(t,e,i)._execute()}var o=t("./eachLimit").EachLimit,n=t("./internal/collection").setLimit,c=function(t){function e(e,i,s){t.call(this,e,i,s,r),this._result=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t,e){t?(this._callRest=0,this._promise._resolve(e)):0==--this._rest?this._promise._resolve(-1):this._callRest-- >0&&this._iterate()},e}(o);e.exports={findIndexLimit:s,FindIndexLimit:c}},{"./eachLimit":13,"./internal/collection":35}],25:[function(t,e,i){"use strict";function r(t){return n.call(this,t),void 0!==this._keys&&(this._rest=0),this}function s(t,e){return new c(t,e)._execute()}var o=t("./eachSeries").EachSeries,n=t("./internal/collection").setSeries,c=function(t){function e(e,i){t.call(this,e,i,r),this._result=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t,e){t?this._promise._resolve(e):0==--this._rest?this._promise._resolve(-1):this._iterate()},e}(o);e.exports={findIndexSeries:s,FindIndexSeries:c}},{"./eachSeries":14,"./internal/collection":35}],26:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t?(this._size=0,this._promise._resolve(""+e)):0==--this._rest&&this._promise._resolve()}function o(t,e){t?(this._size=0,this._promise._resolve(this._keys[e])):0==--this._rest&&this._promise._resolve()}function n(t,e){return new u(t,e)._execute()}var c=t("./each").Each,l=t("./internal/collection").setShorthand,u=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={findKey:n,FindKey:u}},{"./each":12,"./internal/collection":35}],27:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t?(this._callRest=0,this._promise._resolve(""+e)):0==--this._rest?this._promise._resolve():this._callRest-- >0&&this._iterate()}function o(t,e){t?(this._callRest=0,this._promise._resolve(this._keys[e])):0==--this._rest?this._promise._resolve():this._callRest-- >0&&this._iterate()}function n(t,e,i){return new u(t,e,i)._execute()}var c=t("./eachLimit").EachLimit,l=t("./internal/collection").setLimit,u=function(t){function e(e,i,s){t.call(this,e,i,s,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={findKeyLimit:n,FindKeyLimit:u}},{"./eachLimit":13,"./internal/collection":35}],28:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t?this._promise._resolve(""+e):0==--this._rest?this._promise._resolve():this._iterate()}function o(t,e){t?this._promise._resolve(this._keys[e]):0==--this._rest?this._promise._resolve():this._iterate()}function n(t,e){return new u(t,e)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/collection").setSeries,u=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={findKeySeries:n,FindKeySeries:u}},{"./eachSeries":14,"./internal/collection":35}],29:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t?(this._callRest=0,this._promise._resolve(this._coll[e])):0==--this._rest?this._promise._resolve():this._callRest-- >0&&this._iterate()}function o(t,e){t?(this._callRest=0,this._promise._resolve(this._coll[this._keys[e]])):0==--this._rest?this._promise._resolve():this._callRest-- >0&&this._iterate()}function n(t,e,i){return new u(t,e,i)._execute()}var c=t("./eachLimit").EachLimit,l=t("./internal/collection").setLimit,u=function(t){function e(e,i,s){t.call(this,e,i,s,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={findLimit:n,FindLimit:u}},{"./eachLimit":13,"./internal/collection":35}],30:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t?this._promise._resolve(this._coll[e]):0==--this._rest?this._promise._resolve():this._iterate()}function o(t,e){t?this._promise._resolve(this._coll[this._keys[e]]):0==--this._rest?this._promise._resolve():this._iterate()}function n(t,e){return new u(t,e)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/collection").setSeries,u=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={findSeries:n,FindSeries:u}},{"./eachSeries":14,"./internal/collection":35}],31:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[t]?this._result[t].push(this._coll[e]):this._result[t]=[this._coll[e]],0==--this._rest&&this._promise._resolve(this._result)}function o(t,e){this._result[t]?this._result[t].push(this._coll[this._keys[e]]):this._result[t]=[this._coll[this._keys[e]]],0==--this._rest&&this._promise._resolve(this._result)}function n(t,e){return new u(t,e)._execute()}var c=t("./each").Each,l=t("./internal/collection").setShorthand,u=function(t){function e(e,i){t.call(this,e,i,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={groupBy:n,GroupBy:u}},{"./each":12,"./internal/collection":35}],32:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[t]?this._result[t].push(this._coll[e]):this._result[t]=[this._coll[e]],0==--this._rest?this._promise._resolve(this._result):this._callRest-- >0&&this._iterate()}function o(t,e){this._result[t]?this._result[t].push(this._coll[this._keys[e]]):this._result[t]=[this._coll[this._keys[e]]],0==--this._rest?this._promise._resolve(this._result):this._callRest-- >0&&this._iterate()}function n(t,e,i){return new u(t,e,i)._execute()}var c=t("./eachLimit").EachLimit,l=t("./internal/collection").setLimit,u=function(t){function e(e,i,s){t.call(this,e,i,s,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={groupByLimit:n,GroupByLimit:u}},{"./eachLimit":13,"./internal/collection":35}],33:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[t]?this._result[t].push(this._coll[e]):this._result[t]=[this._coll[e]],0==--this._rest?this._promise._resolve(this._result):this._iterate()}function o(t,e){this._result[t]?this._result[t].push(this._coll[this._keys[e]]):this._result[t]=[this._coll[this._keys[e]]],0==--this._rest?this._promise._resolve(this._result):this._iterate()}function n(t,e){return new u(t,e)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/collection").setSeries,u=function(t){function e(e,i){t.call(this,e,i,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={groupBySeries:n,GroupBySeries:u}},{"./eachSeries":14,"./internal/collection":35}],34:[function(t,e,i){"use strict";function r(){for(var t=-1;++t0&&this._iterate()},e}(o);e.exports={mapLimit:s,MapLimit:c}},{"./eachLimit":13,"./internal/collection":35}],42:[function(t,e,i){"use strict";function r(t){return n.call(this,t),this._result=Array(this._rest),this}function s(t,e){return new c(t,e)._execute()}var o=t("./eachSeries").EachSeries,n=t("./internal/collection").setSeries,c=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t,e){this._result[e]=t,0==--this._rest?this._promise._resolve(this._result):this._iterate()},e}(o);e.exports={mapSeries:s,MapSeries:c}},{"./eachSeries":14,"./internal/collection":35}],43:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]=t,0==--this._rest&&this._promise._resolve(this._result)}function o(t,e){this._result[this._keys[e]]=t,0==--this._rest&&this._promise._resolve(this._result)}function n(t,e){return new u(t,e)._execute()}var c=t("./each").Each,l=t("./internal/collection").setShorthand,u=function(t){function e(e,i){t.call(this,e,i,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={mapValues:n,MapValues:u}},{"./each":12,"./internal/collection":35}],44:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]=t,0==--this._rest?this._promise._resolve(this._result):this._callRest-- >0&&this._iterate()}function o(t,e){this._result[this._keys[e]]=t,0==--this._rest?this._promise._resolve(this._result):this._callRest-- >0&&this._iterate()}function n(t,e,i){return new u(t,e,i)._execute()}var c=t("./eachLimit").EachLimit,l=t("./internal/collection").setLimit,u=function(t){function e(e,i,s){t.call(this,e,i,s,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={mapValuesLimit:n,MapValuesLimit:u}},{"./eachLimit":13,"./internal/collection":35}],45:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]=t,0==--this._rest?this._promise._resolve(this._result):this._iterate()}function o(t,e){this._result[this._keys[e]]=t,0==--this._rest?this._promise._resolve(this._result):this._iterate()}function n(t,e){return new u(t,e)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/collection").setSeries,u=function(t){function e(e,i){t.call(this,e,i,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={mapValuesSeries:n,MapValuesSeries:u}},{"./eachSeries":14,"./internal/collection":35}],46:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t||(this._result[e]=this._coll[e]),0==--this._rest&&this._promise._resolve(this._result)}function o(t,e){if(!t){var i=this._keys[e];this._result[i]=this._coll[i]}0==--this._rest&&this._promise._resolve(this._result)}function n(t,e){return new u(t,e)._execute()}var c=t("./each").Each,l=t("./internal/collection").setShorthand,u=function(t){function e(e,i){t.call(this,e,i,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={omit:n,Omit:u}},{"./each":12,"./internal/collection":35}],47:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t||(this._result[e]=this._coll[e]),0==--this._rest?this._promise._resolve(this._result):this._callRest-- >0&&this._iterate()}function o(t,e){if(!t){var i=this._keys[e];this._result[i]=this._coll[i]}0==--this._rest?this._promise._resolve(this._result):this._callRest-- >0&&this._iterate()}function n(t,e,i){return new u(t,e,i)._execute()}var c=t("./eachLimit").EachLimit,l=t("./internal/collection").setLimit,u=function(t){function e(e,i,s){t.call(this,e,i,s,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={omitLimit:n,OmitLimit:u}},{"./eachLimit":13,"./internal/collection":35}],48:[function(t,e,i){"use strict";function r(t){return u.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t||(this._result[e]=this._coll[e]),0==--this._rest?this._promise._resolve(this._result):this._iterate()}function o(t,e){if(!t){var i=this._keys[e];this._result[i]=this._coll[i]}0==--this._rest?this._promise._resolve(this._result):this._iterate()}function n(t,e){return new a(t,e)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/util").PENDING,u=t("./internal/collection").setSeries,a=function(t){function e(e,i){t.call(this,e,i),this._result={},e===l?this._set=r:this._callResolve=void 0===this._keys?s:o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={omitSeries:n,OmitSeries:a}},{"./eachSeries":14,"./internal/collection":35,"./internal/util":38}],49:[function(t,e,i){"use strict";function r(t){this._callResolve=this._result,s.call(this,t),this._execute()}function s(t){if(Array.isArray(t)){var e=t.length;this._rest=e,this._coll=t,this._result=Array(e),this._iterate=_}else if(t&&"object"==typeof t){var i=Object.keys(t);this._rest=i.length,this._coll=t,this._keys=i,this._result={},this._iterate=h}else this._rest=0,this._result={};return this}function o(t){return new p(t)._execute()}var n=t("aigle-core").AigleProxy,c=t("./aigle"),l=t("./internal/util"),u=l.INTERNAL,a=l.PENDING,_=l.promiseArrayEach,h=l.promiseObjectEach,p=function(t){function e(e){t.call(this),this._promise=new c(u),this._rest=void 0,this._coll=void 0,this._keys=void 0,this._result=void 0,e===a?(this._result=this._callResolve,this._callResolve=r):s.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._execute=function(){return 0===this._rest?this._promise._resolve(this._result):void 0===this._keys?_(this):h(this),this._promise},e.prototype._callResolve=function(t,e){this._result[e]=t,0==--this._rest&&this._promise._resolve(this._result)},e.prototype._callReject=function(t){this._promise._reject(t)},e}(n);e.exports={parallel:o,Parallel:p}},{"./aigle":2,"./internal/util":38,"aigle-core":78}],50:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t&&(this._result[e]=this._coll[e]),0==--this._rest&&this._promise._resolve(this._result)}function o(t,e){if(t){var i=this._keys[e];this._result[i]=this._coll[i]}0==--this._rest&&this._promise._resolve(this._result)}function n(t,e){return new u(t,e)._execute()}var c=t("./each").Each,l=t("./internal/collection").setShorthand,u=function(t){function e(e,i){t.call(this,e,i,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={pick:n,Pick:u}},{"./each":12,"./internal/collection":35}],51:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t&&(this._result[e]=this._coll[e]),0==--this._rest?this._promise._resolve(this._result):this._callRest-- >0&&this._iterate()}function o(t,e){if(t){var i=this._keys[e];this._result[i]=this._coll[i]}0==--this._rest?this._promise._resolve(this._result):this._callRest-- >0&&this._iterate()}function n(t,e,i){return new u(t,e,i)._execute()}var c=t("./eachLimit").EachLimit,l=t("./internal/collection").setLimit,u=function(t){function e(e,i,s){t.call(this,e,i,s,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={pickLimit:n,PickLimit:u}},{"./eachLimit":13,"./internal/collection":35}],52:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t&&(this._result[e]=this._coll[e]),0==--this._rest?this._promise._resolve(this._result):this._iterate()}function o(t,e){if(t){var i=this._keys[e];this._result[i]=this._coll[i]}0==--this._rest?this._promise._resolve(this._result):this._iterate()}function n(t,e){return new u(t,e)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/collection").setSeries,u=function(t){function e(e,i){t.call(this,e,i,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={pickSeries:n,PickSeries:u}},{"./eachSeries":14,"./internal/collection":35}],53:[function(t,e,i){"use strict";function r(t,e){switch(typeof t){case"object":switch(typeof e){case"string":case"number":return t[e].__isPromisified__?t[e]:o(t,e);default:throw new TypeError("Second argument is invalid")}case"function":return t.__isPromisified__?t:n(t,e&&void 0!==e.context?e.context:void 0);default:throw new TypeError("Type of first argument is not function")}}function s(t){return function(e,i){e?t._reject(e):t._resolve(i)}}function o(t,e){function i(i){var r=arguments,o=new c(l),n=s(o),u=arguments.length;switch(u){case 0:t[e](n);break;case 1:t[e](i,n);break;default:for(var a=Array(u);u--;)a[u]=r[u];a[a.length]=n,t[e].apply(t,a)}return o}return i.__isPromisified__=!0,i}function n(t,e){function i(i){var r=arguments,o=new c(l),n=s(o),u=arguments.length;switch(u){case 0:t.call(e||this,n);break;case 1:t.call(e||this,i,n);break;default:for(var a=Array(u);u--;)a[u]=r[u];a[a.length]=n,t.apply(e||this,a)}return o}return i.__isPromisified__=!0,i}var c=t("./aigle"),l=t("./internal/util").INTERNAL;e.exports=r},{"./aigle":2,"./internal/util":38}],54:[function(t,e,i){"use strict";function r(t,e){var i=e||{},r=i.suffix;void 0===r&&(r="Async");var n=i.filter;void 0===n&&(n=s);var c=i.depth;return void 0===c&&(c=2),o(r,n,t,void 0,void 0,c),t}function s(t){return/^_/.test(t)}function o(t,e,i,r,s,o){var l={};switch(typeof i){case"function":if(s){var u=""+r+t;if(s[u]){if(!s[u].__isPromisified__)throw new TypeError("Cannot promisify an API that has normal methods with '"+t+"'-suffix")}else s[u]=c(i)}n(t,e,i,i,o,l),n(t,e,i.prototype,i.prototype,o,l);break;case"object":n(t,e,i,i,o,l),n(t,e,Object.getPrototypeOf(i),i,o,l)}}function n(t,e,i,r,s,n){if(0!=s--&&i&&u!==i&&a!==i&&_!==i&&!Object.isFrozen(i))for(var c=Object.getOwnPropertyNames(i),h=c.length;h--;){var p=c[h];if(!0!==l[p]&&!0!==n[p]&&!e(p)){var f=Object.getOwnPropertyDescriptor(i,p);!f||f.set||f.get||(n[p]=!0,o(t,e,i[p],p,r,s))}}}var c=t("./promisify"),l={constructor:!0,arity:!0,length:!0,name:!0,arguments:!0,caller:!0,callee:!0,prototype:!0,__isPromisified__:!0};e.exports=r;var u=Function.prototype,a=Object.prototype,_=Array.prototype},{"./promisify":53}],55:[function(t,e,i){"use strict";function r(t){var e=Object.keys(t);return this._rest=e.length,this._coll=t,this._keys=e,this._callResolve=this._execute,s.call(this),this}function s(){return 0===this._rest?this._promise._resolve(this._result):_(this),this._promise}function o(t){return new h(t)._execute()}var n=t("aigle-core").AigleProxy,c=t("./aigle"),l=t("./internal/util"),u=l.INTERNAL,a=l.PENDING,_=l.promiseObjectEach,h=function(t){function e(e){if(t.call(this),this._promise=new c(u),this._result={},e===a)this._rest=void 0,this._coll=void 0,this._keys=void 0,this._execute=this._callResolve,this._callResolve=r;else{var i=Object.keys(e);this._rest=i.length,this._coll=e,this._keys=i,this._execute=s}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t,e){this._result[e]=t,0==--this._rest&&this._promise._resolve(this._result)},e.prototype._callReject=function(t){this._promise._reject(t)},e}(n);e.exports={props:o,Props:h},e.exports={props:o,Props:h}},{"./aigle":2,"./internal/util":38,"aigle-core":78}],56:[function(t,e,i){"use strict";function r(t){return new s(t)._execute()}var s=function(t){function e(e){t.call(this,e),this._result=void 0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){this._promise._resolve(t)},e}(t("./parallel").Parallel);e.exports={race:r,Race:s}},{"./parallel":49}],57:[function(t,e,i){"use strict";function r(t){return p.call(this,t),void 0===this._keys?(this._iterate=s,this._execute=n):(this._iterate=o,this._execute=c),this}function s(t,e){d(m(this._iterator,e,this._coll[t],t),this,t)}function o(t,e){var i=this._keys[t];d(m(this._iterator,e,this._coll[i],i),this,t)}function n(){return 0===this._rest?this._promise._resolve(this._result):void 0===this._result?this._callResolve(this._coll[0],0):this._iterate(0,this._result),this._promise}function c(){return 0===this._rest?this._promise._resolve(this._result):void 0===this._result?this._callResolve(this._coll[this._keys[0]],0):this._iterate(0,this._result),this._promise}function l(t,e,i){return new R(t,e,i)._execute()}var u=t("aigle-core").AigleProxy,a=t("./aigle"),_=t("./internal/collection"),h=_.execute,p=_.setSeries,f=t("./internal/util"),v=f.INTERNAL,y=f.PENDING,m=f.call3,d=f.callProxyReciever,R=function(t){function e(e,i,s){t.call(this),this._result=s,this._iterator=i,this._promise=new a(v),this._coll=void 0,this._rest=void 0,this._size=void 0,this._keys=void 0,this._iterate=void 0,e===y?(this._set=r,this._iterate=this._callResolve,this._callResolve=h):r.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t,e){0==--this._rest?this._promise._resolve(t):this._iterate(++e,t)},e.prototype._callReject=function(t){this._promise._reject(t)},e}(u);e.exports={reduce:l,Reduce:R}},{"./aigle":2,"./internal/collection":35,"./internal/util":38,"aigle-core":78}],58:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._result=Array(this._rest),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]=t?a:this._coll[e],0==--this._rest&&this._promise._resolve(_(this._result))}function o(t,e){this._result[e]=t?a:this._coll[this._keys[e]],0==--this._rest&&this._promise._resolve(_(this._result))}function n(t,e){return new h(t,e)._execute()}var c=t("./each").Each,l=t("./internal/collection").setShorthand,u=t("./internal/util"),a=u.INTERNAL,_=u.compactArray,h=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={reject:n,Reject:h}},{"./each":12,"./internal/collection":35,"./internal/util":38}],59:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._result=Array(this._rest),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]=t?a:this._coll[e],0==--this._rest?this._promise._resolve(_(this._result)):this._callRest-- >0&&this._iterate()}function o(t,e){this._result[e]=t?a:this._coll[this._keys[e]],0==--this._rest?this._promise._resolve(_(this._result)):this._callRest-- >0&&this._iterate()}function n(t,e,i){return new h(t,e,i)._execute()}var c=t("./eachLimit").EachLimit,l=t("./internal/collection").setLimit,u=t("./internal/util"),a=u.INTERNAL,_=u.compactArray,h=function(t){function e(e,i,s){t.call(this,e,i,s,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={rejectLimit:n,RejectLimit:h}},{"./eachLimit":13,"./internal/collection":35,"./internal/util":38}],60:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._result=Array(this._rest),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]=t?a:this._coll[e],0==--this._rest?this._promise._resolve(_(this._result)):this._iterate()}function o(t,e){this._result[e]=t?a:this._coll[this._keys[e]],0==--this._rest?this._promise._resolve(_(this._result)):this._iterate()}function n(t,e){return new h(t,e)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/collection").setSeries,u=t("./internal/util"),a=u.INTERNAL,_=u.compactArray,h=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={rejectSeries:n,RejectSeries:h}},{"./eachSeries":14,"./internal/collection":35,"./internal/util":38}],61:[function(t,e,i){"use strict";function r(t,e){return"function"==typeof t&&(e=t,t=a),new _(e,t)._promise}var s=t("aigle-core").AigleProxy,o=t("./aigle"),n=t("./internal/util"),c=n.INTERNAL,l=n.call0,u=n.callProxyReciever,a=5,_=function(t){function e(e,i){t.call(this),this._promise=new o(c),this._rest=i,this._handler=e,this._iterate()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._iterate=function(){u(l(this._handler),this,void 0)},e.prototype._callResolve=function(t){this._promise._resolve(t)},e.prototype._callReject=function(t){0==--this._rest?this._promise._reject(t):this._iterate()},e}(s);e.exports=r},{"./aigle":2,"./internal/util":38,"aigle-core":78}],62:[function(t,e,i){"use strict";function r(t,e){return new n(t,e)._execute()}var s=t("./each").Each,o=t("./internal/collection").setShorthand,n=function(t){function e(e,i){t.call(this,e,i,o),this._result=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){t?this._promise._resolve(!0):0==--this._rest&&this._promise._resolve(!1)},e}(s);e.exports={some:r,Some:n}},{"./each":12,"./internal/collection":35}],63:[function(t,e,i){"use strict";function r(t,e,i){return new s(t,e,i)._execute()}var s=function(t){function e(e,i,r){t.call(this,e,i,r),this._result=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){t?this._promise._resolve(!0):0==--this._rest?this._promise._resolve(!1):this._callRest-- >0&&this._iterate()},e}(t("./eachLimit").EachLimit);e.exports={someLimit:r,SomeLimit:s}},{"./eachLimit":13}],64:[function(t,e,i){"use strict";function r(t,e){return new s(t,e)._execute()}var s=function(t){function e(e,i){t.call(this,e,i),this._result=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){t?this._promise._resolve(!0):0==--this._rest?this._promise._resolve(!1):this._iterate()},e}(t("./eachSeries.js").EachSeries);e.exports={someSeries:r,SomeSeries:s}},{"./eachSeries.js":14}],65:[function(t,e,i){"use strict";function r(t){return u.call(this,t),this._result=Array(this._rest),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]={criteria:t,value:this._coll[e]},0==--this._rest&&this._promise._resolve(l(this._result))}function o(t,e){this._result[e]={criteria:t,value:this._coll[this._keys[e]]},0==--this._rest&&this._promise._resolve(l(this._result))}function n(t,e){return new a(t,e)._execute()}var c=t("./each").Each,l=t("./internal/util").sort,u=t("./internal/collection").setShorthand,a=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={sortBy:n,SortBy:a}},{"./each":12,"./internal/collection":35,"./internal/util":38}],66:[function(t,e,i){"use strict";function r(t){return u.call(this,t),this._result=Array(this._rest),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]={criteria:t,value:this._coll[e]},0==--this._rest?this._promise._resolve(l(this._result)):this._callRest-- >0&&this._iterate()}function o(t,e){this._result[e]={criteria:t,value:this._coll[this._keys[e]]},0==--this._rest?this._promise._resolve(l(this._result)):this._callRest-- >0&&this._iterate()}function n(t,e,i){return new a(t,e,i)._execute()}var c=t("./eachLimit").EachLimit,l=t("./internal/util").sort,u=t("./internal/collection").setLimit,a=function(t){function e(e,i,s){t.call(this,e,i,s,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={sortByLimit:n,SortByLimit:a}},{"./eachLimit":13,"./internal/collection":35,"./internal/util":38}],67:[function(t,e,i){"use strict";function r(t){return u.call(this,t),this._result=Array(this._rest),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]={criteria:t,value:this._coll[e]},0==--this._rest?this._promise._resolve(l(this._result)):this._iterate()}function o(t,e){this._result[e]={criteria:t,value:this._coll[this._keys[e]]},0==--this._rest?this._promise._resolve(l(this._result)):this._iterate()}function n(t,e){return new a(t,e)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/util").sort,u=t("./internal/collection").setSeries,a=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={sortBySeries:n,SortBySeries:a}},{"./eachSeries":14,"./internal/collection":35,"./internal/util":38}],68:[function(t,e,i){"use strict";var r=t("aigle-core").AigleProxy,s=t("./aigle"),o=t("./error").TimeoutError,n=t("./internal/util").INTERNAL,c=function(t){function e(e,i){var r=this;t.call(this),this._promise=new s(n),this._message=i,this._timer=setTimeout(function(){i?r._callReject(i):r._callReject(new o("operation timed out"))},e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){clearTimeout(this._timer),this._promise._resolve(t)},e.prototype._callReject=function(t){clearTimeout(this._timer),this._promise._reject(t)},e}(r);e.exports=c},{"./aigle":2,"./error":15,"./internal/util":38,"aigle-core":78}],69:[function(t,e,i){"use strict";function r(t){(t=0|+t)>=1?(this._rest=t,this._result=Array(t)):(this._rest=0,this._result=[])}function s(t){this._callResolve=this._rest,r.call(this,t),this._execute()}function o(t,e){return new f(t,e)._execute()}var n=t("aigle-core").AigleProxy,c=t("./aigle"),l=t("./internal/util"),u=l.INTERNAL,a=l.PENDING,_=l.defaultIterator,h=l.call1,p=l.callProxyReciever,f=function(t){function e(e,i){t.call(this),this._promise=new c(u),this._iterator="function"==typeof i?i:_,this._rest=void 0,this._result=void 0,e===a?(this._rest=this._callResolve,this._callResolve=s):r.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._execute=function(){if(this._rest>=1)for(var t=this,e=t._rest,i=t._iterator,r=-1;++r=1){this._rest=t,this._result=Array(t);var e=this._limit;this._limit=e0&&this._iterate()},e.prototype._callReject=function(t){this._callRest=0,this._promise._reject(t)},e}(n);e.exports={timesLimit:o,TimesLimit:v}},{"./aigle":2,"./internal/util":38,"aigle-core":78}],71:[function(t,e,i){"use strict";function r(t,e){return new v(t,e)._execute()}var s=t("aigle-core").AigleProxy,o=t("./aigle"),n=t("./times"),c=n.set,l=n.execute,u=t("./internal/util"),a=u.INTERNAL,_=u.PENDING,h=u.defaultIterator,p=u.call1,f=u.callProxyReciever,v=function(t){function e(e,i){t.call(this),this._promise=new o(a),this._iterator="function"==typeof i?i:h,this._index=0,this._rest=void 0,this._result=void 0,e===_?(this._rest=this._callResolve,this._callResolve=l):c.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._execute=function(){return this._rest>=1?this._iterate():this._promise._resolve(this._result),this._promise},e.prototype._iterate=function(){var t=this._index++;f(p(this._iterator,t),this,t)},e.prototype._callResolve=function(t,e){this._result[e]=t,0==--this._rest?this._promise._resolve(this._result):this._iterate()},e.prototype._callReject=function(t){this._promise._reject(t)},e}(s);e.exports={timesSeries:r,TimesSeries:v}},{"./aigle":2,"./internal/util":38,"./times":69,"aigle-core":78}],72:[function(t,e,i){"use strict";function r(t){return l.call(this,t),void 0!==this._keys||void 0===this._coll?(void 0===this._result&&(this._result={}),this._iterate=o):(void 0===this._result&&(this._result=[]),this._iterate=s),this}function s(){for(var t=this,e=t._rest,i=t._result,r=t._iterator,s=t._coll,o=-1;++o0&&this._iterate()},e}(c);e.exports={transformLimit:n,TransformLimit:f}},{"./eachLimit":13,"./internal/collection":35,"./internal/util":38}],74:[function(t,e,i){"use strict";function r(t){return l.call(this,t),void 0!==this._keys||void 0===this._coll?(void 0===this._result&&(this._result={}),this._iterate=o):(void 0===this._result&&(this._result=[]),this._iterate=s),this}function s(){var t=this._index++;_(a(this._iterator,this._result,this._coll[t],t),this,t)}function o(){var t=this._index++,e=this._keys[t];_(a(this._iterator,this._result,this._coll[e],e),this,t)}function n(t,e,i){return new p(t,e,i)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/collection").setSeries,u=t("./internal/util"),a=u.call3,_=u.callProxyReciever,h=u.clone,p=function(t){function e(e,i,s){t.call(this,e,i,r),void 0!==s&&(this._result=s)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){!1===t?this._promise._resolve(h(this._result)):0==--this._rest?this._promise._resolve(this._result):this._iterate()},e}(c);e.exports={transformSeries:n,TransformSeries:p}},{"./eachSeries":14,"./internal/collection":35,"./internal/util":38}],75:[function(t,e,i){"use strict";function r(t,e,i){return"function"!=typeof i&&(i=e,e=t,t=void 0),new o(new n(e),i)._iterate(t)}var s=t("./whilst"),o=s.AigleWhilst,n=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){t?this._proxy._promise._resolve(this._value):this._proxy._next(this._value)},e}(s.WhilstTester);e.exports={until:r,UntilTester:n}},{"./whilst":77}],76:[function(t,e,i){"use strict";function r(){for(var t=arguments,e=arguments.length,i=arguments[--e],r=Array(e);e--;)r[e]=t[e];return new p(r,i)._promise}var s=t("aigle-core").AigleProxy,o=t("./aigle"),n=t("./internal/util"),c=n.INTERNAL,l=n.apply,u=n.call1,a=n.callProxyReciever,_={},h=function(t,e){this._promise=t,this._handler=e};h.prototype._dispose=function(){var t=this,e=this._promise;switch(e._resolved){case 0:return e.then(function(){return t._dispose()});case 1:return u(this._handler,this._promise._value)}};var p=function(t){function e(e,i){var r=this;t.call(this);var s=e.length;this._promise=new o(c),this._rest=s,this._disposed=s,this._array=e,this._error=void 0,this._result=Array(s),this._handler=i;for(var n=-1;++n1)for(var r=1;r1){var r=arguments.length;if("function"==typeof(t=arguments[--r])){for(var s=Array(r);r--;)s[r]=i[r];t=c(s,t)}}return u(this,new e(L),void 0,t)},e.prototype.finally=function(t){return t="function"!=typeof t?t:l(this,t),u(this,new e(L),t,t)},e.prototype.toString=function(){return"[object Promise]"},e.prototype.isPending=function(){return 0===this._resolved},e.prototype.isFulfilled=function(){return 1===this._resolved},e.prototype.isRejected=function(){return 2===this._resolved},e.prototype.isCancelled=function(){return this._value instanceof or},e.prototype.cancel=function(){if(this._execute!==o){var t=this._onCancelQueue;if(t){var e=-1,i=t.array;for(this._onCancelQueue=void 0;++e0&&this._iterate()},e}(o);e.exports={concatLimit:s,ConcatLimit:l}},{"./eachLimit":13,"./internal/collection":35,"./internal/util":38}],7:[function(t,e,i){"use strict";function r(t,e){return new s(t,e)._execute()}var s=function(t){function e(e,i){t.call(this,e,i),this._result=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){Array.isArray(t)?(e=this._result).push.apply(e,t):void 0!==t&&this._result.push(t),0==--this._rest?this._promise._resolve(this._result):this._iterate();var e},e}(t("./eachSeries").EachSeries);e.exports={concatSeries:r,ConcatSeries:s}},{"./eachSeries":14}],8:[function(t,e,i){"use strict";function r(t,e){var i=(new Error).stack;t._stacks=t._stacks||[],e&&e._stacks&&(s=t._stacks).push.apply(s,e._stacks);var r=i.split("\n").slice(4);t._stacks.push(r.join("\n"));var s}function s(t){var e=t._value,i=t._stacks;if(e instanceof Error!=!1&&i&&!e._reconstructed){for(var r=e.stack.split("\n"),s=i.length;s--;)r.push("From previous event:"),r.push(i[s]);e.stack=r.join("\n"),e._reconstructed=!0}}e.exports={resolveStack:r,reconstructStack:s}},{}],9:[function(t,e,i){"use strict";function r(t,e){return new n(t)._resolve(e)}var s=t("./aigle"),o=t("./internal/util").INTERNAL,n=function(t){function e(e){t.call(this,o),this._ms=e,this._timer=void 0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._resolve=function(e){var i=this;return this._timer=setTimeout(function(){return t.prototype._resolve.call(i,e)},this._ms),this},e.prototype._reject=function(e){clearTimeout(this._timer),t.prototype._reject.call(this,e)},e}(s);e.exports={delay:r,Delay:n}},{"./aigle":2,"./internal/util":38}],10:[function(t,e,i){"use strict";function r(t,e,i){return"function"!=typeof i&&(i=e,e=t,t=void 0),new s(new o(i),e)._iterate(t)}var s=t("./doWhilst").DoWhilst,o=t("./until").UntilTester;e.exports=r},{"./doWhilst":11,"./until":75}],11:[function(t,e,i){"use strict";function r(t,e,i){return"function"!=typeof i&&(i=e,e=t,t=void 0),new c(new n(i),e)._iterate(t)}var s=t("./whilst"),o=s.AigleWhilst,n=s.WhilstTester,c=function(t){function e(e,i){t.call(this,e,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._iterate=function(t){return this._next(t),this._promise},e}(o);e.exports={doWhilst:r,DoWhilst:c}},{"./whilst":77}],12:[function(t,e,i){"use strict";function r(t,e){return new h(t,e)._execute()}var s=t("aigle-core").AigleProxy,o=t("./aigle"),n=t("./internal/util"),c=n.INTERNAL,l=n.PENDING,u=t("./internal/collection"),a=u.execute,_=u.setParallel,h=function(t){function e(e,i,r){void 0===r&&(r=_),t.call(this),this._iterator=i,this._promise=new o(c),this._coll=void 0,this._size=void 0,this._rest=void 0,this._keys=void 0,this._result=void 0,this._iterate=void 0,e===l?(this._set=r,this._iterate=this._callResolve,this._callResolve=a):r.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._execute=function(){return 0===this._rest?this._promise._resolve(this._result):this._iterate(),this._promise},e.prototype._callResolve=function(t){0!=--this._rest&&!1!==t||this._promise._resolve()},e.prototype._callReject=function(t){this._promise._reject(t)},e}(s);e.exports={each:r,Each:h}},{"./aigle":2,"./internal/collection":35,"./internal/util":38,"aigle-core":78}],13:[function(t,e,i){"use strict";function r(t,e,i){return new p(t,e,i)._execute()}var s=t("aigle-core").AigleProxy,o=t("./aigle"),n=t("./internal/util"),c=n.DEFAULT_LIMIT,l=n.INTERNAL,u=n.PENDING,a=t("./internal/collection"),_=a.execute,h=a.setLimit,p=function(t){function e(e,i,r,s){void 0===s&&(s=h),t.call(this),"function"==typeof i&&(r=i,i=c),this._iterator=r,this._promise=new o(l),this._index=0,this._limit=i,this._coll=void 0,this._rest=void 0,this._size=void 0,this._keys=void 0,this._result=void 0,this._iterate=void 0,this._callRest=void 0,e===u?(this._set=s,this._iterate=this._callResolve,this._callResolve=_):s.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._execute=function(){var t=this;if(0===this._rest)this._promise._resolve(this._result);else for(;this._limit--;)t._iterate();return this._promise},e.prototype._callResolve=function(t){!1===t?(this._callRest=0,this._promise._resolve()):0==--this._rest?this._promise._resolve():this._callRest-- >0&&this._iterate()},e.prototype._callReject=function(t){this._callRest=0,this._promise._reject(t)},e}(s);e.exports={eachLimit:r,EachLimit:p}},{"./aigle":2,"./internal/collection":35,"./internal/util":38,"aigle-core":78}],14:[function(t,e,i){"use strict";function r(t,e){return new h(t,e)._execute()}var s=t("aigle-core").AigleProxy,o=t("./aigle"),n=t("./internal/util"),c=n.INTERNAL,l=n.PENDING,u=t("./internal/collection"),a=u.execute,_=u.setSeries,h=function(t){function e(e,i,r){void 0===r&&(r=_),t.call(this),this._iterator=i,this._promise=new o(c),this._index=0,this._coll=void 0,this._rest=void 0,this._size=void 0,this._keys=void 0,this._result=void 0,this._iterate=void 0,e===l?(this._set=r,this._iterate=this._callResolve,this._callResolve=a):r.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._execute=function(){return 0===this._rest?this._promise._resolve(this._result):this._iterate(),this._promise},e.prototype._callResolve=function(t){0==--this._rest||!1===t?this._promise._resolve():this._iterate()},e.prototype._callReject=function(t){this._promise._reject(t)},e}(s);e.exports={eachSeries:r,EachSeries:h}},{"./aigle":2,"./internal/collection":35,"./internal/util":38,"aigle-core":78}],15:[function(t,e,i){"use strict";for(var r=["CancellationError","TimeoutError"],s=r.length;s--;)i[r[s]]=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error)},{}],16:[function(t,e,i){"use strict";function r(t,e){return new c(t,e)._execute()}var s=t("./each").Each,o=t("./internal/util").PENDING,n=t("./internal/collection").setShorthand,c=function(t){function e(e,i){t.call(this,e,i),this._result=!0,e===o?this._set=n:n.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){t?0==--this._rest&&this._promise._resolve(!0):this._promise._resolve(!1)},e}(s);e.exports={every:r,Every:c}},{"./each":12,"./internal/collection":35,"./internal/util":38}],17:[function(t,e,i){"use strict";function r(t,e,i){return new s(t,e,i)._execute()}var s=function(t){function e(e,i,r){t.call(this,e,i,r),this._result=!0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){t?0==--this._rest?this._promise._resolve(!0):this._callRest-- >0&&this._iterate():this._promise._resolve(!1)},e}(t("./eachLimit").EachLimit);e.exports={everyLimit:r,EveryLimit:s}},{"./eachLimit":13}],18:[function(t,e,i){"use strict";function r(t,e){return new s(t,e)._execute()}var s=function(t){function e(e,i){t.call(this,e,i),this._result=!0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){t?0==--this._rest?this._promise._resolve(!0):this._iterate():this._promise._resolve(!1)},e}(t("./eachSeries.js").EachSeries);e.exports={everySeries:r,EverySeries:s}},{"./eachSeries.js":14}],19:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._result=Array(this._rest),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]=t?this._coll[e]:a,0==--this._rest&&this._promise._resolve(_(this._result))}function o(t,e){this._result[e]=t?this._coll[this._keys[e]]:a,0==--this._rest&&this._promise._resolve(_(this._result))}function n(t,e){return new h(t,e)._execute()}var c=t("./each").Each,l=t("./internal/collection").setShorthand,u=t("./internal/util"),a=u.INTERNAL,_=u.compactArray,h=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);h.prototype._set=r,e.exports={filter:n,Filter:h}},{"./each":12,"./internal/collection":35,"./internal/util":38}],20:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._result=Array(this._rest),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]=t?this._coll[e]:a,0==--this._rest?this._promise._resolve(_(this._result)):this._callRest-- >0&&this._iterate()}function o(t,e){this._result[e]=t?this._coll[this._keys[e]]:a,0==--this._rest?this._promise._resolve(_(this._result)):this._callRest-- >0&&this._iterate()}function n(t,e,i){return new h(t,e,i)._execute()}var c=t("./eachLimit").EachLimit,l=t("./internal/collection").setLimit,u=t("./internal/util"),a=u.INTERNAL,_=u.compactArray,h=function(t){function e(e,i,s){t.call(this,e,i,s,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={filterLimit:n,FilterLimit:h}},{"./eachLimit":13,"./internal/collection":35,"./internal/util":38}],21:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._result=Array(this._rest),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]=t?this._coll[e]:a,0==--this._rest?this._promise._resolve(_(this._result)):this._iterate()}function o(t,e){this._result[e]=t?this._coll[this._keys[e]]:a,0==--this._rest?this._promise._resolve(_(this._result)):this._iterate()}function n(t,e){return new h(t,e)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/collection").setSeries,u=t("./internal/util"),a=u.INTERNAL,_=u.compactArray,h=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={filterSeries:n,FilterSeries:h}},{"./eachSeries":14,"./internal/collection":35,"./internal/util":38}],22:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t?(this._size=0,this._promise._resolve(this._coll[e])):0==--this._rest&&this._promise._resolve()}function o(t,e){t?(this._size=0,this._promise._resolve(this._coll[this._keys[e]])):0==--this._rest&&this._promise._resolve()}function n(t,e){return new u(t,e)._execute()}var c=t("./each").Each,l=t("./internal/collection").setShorthand,u=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={find:n,Find:u}},{"./each":12,"./internal/collection":35}],23:[function(t,e,i){"use strict";function r(t){return n.call(this,t),void 0!==this._keys&&(this._rest=0),this}function s(t,e){return new c(t,e)._execute()}var o=t("./each").Each,n=t("./internal/collection").setShorthand,c=function(t){function e(e,i){t.call(this,e,i,r),this._result=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t,e){t?(this._size=0,this._promise._resolve(e)):0==--this._rest&&this._promise._resolve(-1)},e}(o);e.exports={findIndex:s,FindIndex:c}},{"./each":12,"./internal/collection":35}],24:[function(t,e,i){"use strict";function r(t){return n.call(this,t),void 0!==this._keys&&(this._rest=0),this}function s(t,e,i){return new c(t,e,i)._execute()}var o=t("./eachLimit").EachLimit,n=t("./internal/collection").setLimit,c=function(t){function e(e,i,s){t.call(this,e,i,s,r),this._result=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t,e){t?(this._callRest=0,this._promise._resolve(e)):0==--this._rest?this._promise._resolve(-1):this._callRest-- >0&&this._iterate()},e}(o);e.exports={findIndexLimit:s,FindIndexLimit:c}},{"./eachLimit":13,"./internal/collection":35}],25:[function(t,e,i){"use strict";function r(t){return n.call(this,t),void 0!==this._keys&&(this._rest=0),this}function s(t,e){return new c(t,e)._execute()}var o=t("./eachSeries").EachSeries,n=t("./internal/collection").setSeries,c=function(t){function e(e,i){t.call(this,e,i,r),this._result=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t,e){t?this._promise._resolve(e):0==--this._rest?this._promise._resolve(-1):this._iterate()},e}(o);e.exports={findIndexSeries:s,FindIndexSeries:c}},{"./eachSeries":14,"./internal/collection":35}],26:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t?(this._size=0,this._promise._resolve(""+e)):0==--this._rest&&this._promise._resolve()}function o(t,e){t?(this._size=0,this._promise._resolve(this._keys[e])):0==--this._rest&&this._promise._resolve()}function n(t,e){return new u(t,e)._execute()}var c=t("./each").Each,l=t("./internal/collection").setShorthand,u=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={findKey:n,FindKey:u}},{"./each":12,"./internal/collection":35}],27:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t?(this._callRest=0,this._promise._resolve(""+e)):0==--this._rest?this._promise._resolve():this._callRest-- >0&&this._iterate()}function o(t,e){t?(this._callRest=0,this._promise._resolve(this._keys[e])):0==--this._rest?this._promise._resolve():this._callRest-- >0&&this._iterate()}function n(t,e,i){return new u(t,e,i)._execute()}var c=t("./eachLimit").EachLimit,l=t("./internal/collection").setLimit,u=function(t){function e(e,i,s){t.call(this,e,i,s,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={findKeyLimit:n,FindKeyLimit:u}},{"./eachLimit":13,"./internal/collection":35}],28:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t?this._promise._resolve(""+e):0==--this._rest?this._promise._resolve():this._iterate()}function o(t,e){t?this._promise._resolve(this._keys[e]):0==--this._rest?this._promise._resolve():this._iterate()}function n(t,e){return new u(t,e)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/collection").setSeries,u=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={findKeySeries:n,FindKeySeries:u}},{"./eachSeries":14,"./internal/collection":35}],29:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t?(this._callRest=0,this._promise._resolve(this._coll[e])):0==--this._rest?this._promise._resolve():this._callRest-- >0&&this._iterate()}function o(t,e){t?(this._callRest=0,this._promise._resolve(this._coll[this._keys[e]])):0==--this._rest?this._promise._resolve():this._callRest-- >0&&this._iterate()}function n(t,e,i){return new u(t,e,i)._execute()}var c=t("./eachLimit").EachLimit,l=t("./internal/collection").setLimit,u=function(t){function e(e,i,s){t.call(this,e,i,s,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={findLimit:n,FindLimit:u}},{"./eachLimit":13,"./internal/collection":35}],30:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t?this._promise._resolve(this._coll[e]):0==--this._rest?this._promise._resolve():this._iterate()}function o(t,e){t?this._promise._resolve(this._coll[this._keys[e]]):0==--this._rest?this._promise._resolve():this._iterate()}function n(t,e){return new u(t,e)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/collection").setSeries,u=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={findSeries:n,FindSeries:u}},{"./eachSeries":14,"./internal/collection":35}],31:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[t]?this._result[t].push(this._coll[e]):this._result[t]=[this._coll[e]],0==--this._rest&&this._promise._resolve(this._result)}function o(t,e){this._result[t]?this._result[t].push(this._coll[this._keys[e]]):this._result[t]=[this._coll[this._keys[e]]],0==--this._rest&&this._promise._resolve(this._result)}function n(t,e){return new u(t,e)._execute()}var c=t("./each").Each,l=t("./internal/collection").setShorthand,u=function(t){function e(e,i){t.call(this,e,i,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={groupBy:n,GroupBy:u}},{"./each":12,"./internal/collection":35}],32:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[t]?this._result[t].push(this._coll[e]):this._result[t]=[this._coll[e]],0==--this._rest?this._promise._resolve(this._result):this._callRest-- >0&&this._iterate()}function o(t,e){this._result[t]?this._result[t].push(this._coll[this._keys[e]]):this._result[t]=[this._coll[this._keys[e]]],0==--this._rest?this._promise._resolve(this._result):this._callRest-- >0&&this._iterate()}function n(t,e,i){return new u(t,e,i)._execute()}var c=t("./eachLimit").EachLimit,l=t("./internal/collection").setLimit,u=function(t){function e(e,i,s){t.call(this,e,i,s,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={groupByLimit:n,GroupByLimit:u}},{"./eachLimit":13,"./internal/collection":35}],33:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[t]?this._result[t].push(this._coll[e]):this._result[t]=[this._coll[e]],0==--this._rest?this._promise._resolve(this._result):this._iterate()}function o(t,e){this._result[t]?this._result[t].push(this._coll[this._keys[e]]):this._result[t]=[this._coll[this._keys[e]]],0==--this._rest?this._promise._resolve(this._result):this._iterate()}function n(t,e){return new u(t,e)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/collection").setSeries,u=function(t){function e(e,i){t.call(this,e,i,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={groupBySeries:n,GroupBySeries:u}},{"./eachSeries":14,"./internal/collection":35}],34:[function(t,e,i){"use strict";function r(){for(var t=-1;++t0&&this._iterate()},e}(o);e.exports={mapLimit:s,MapLimit:c}},{"./eachLimit":13,"./internal/collection":35}],42:[function(t,e,i){"use strict";function r(t){return n.call(this,t),this._result=Array(this._rest),this}function s(t,e){return new c(t,e)._execute()}var o=t("./eachSeries").EachSeries,n=t("./internal/collection").setSeries,c=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t,e){this._result[e]=t,0==--this._rest?this._promise._resolve(this._result):this._iterate()},e}(o);e.exports={mapSeries:s,MapSeries:c}},{"./eachSeries":14,"./internal/collection":35}],43:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]=t,0==--this._rest&&this._promise._resolve(this._result)}function o(t,e){this._result[this._keys[e]]=t,0==--this._rest&&this._promise._resolve(this._result)}function n(t,e){return new u(t,e)._execute()}var c=t("./each").Each,l=t("./internal/collection").setShorthand,u=function(t){function e(e,i){t.call(this,e,i,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={mapValues:n,MapValues:u}},{"./each":12,"./internal/collection":35}],44:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]=t,0==--this._rest?this._promise._resolve(this._result):this._callRest-- >0&&this._iterate()}function o(t,e){this._result[this._keys[e]]=t,0==--this._rest?this._promise._resolve(this._result):this._callRest-- >0&&this._iterate()}function n(t,e,i){return new u(t,e,i)._execute()}var c=t("./eachLimit").EachLimit,l=t("./internal/collection").setLimit,u=function(t){function e(e,i,s){t.call(this,e,i,s,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={mapValuesLimit:n,MapValuesLimit:u}},{"./eachLimit":13,"./internal/collection":35}],45:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]=t,0==--this._rest?this._promise._resolve(this._result):this._iterate()}function o(t,e){this._result[this._keys[e]]=t,0==--this._rest?this._promise._resolve(this._result):this._iterate()}function n(t,e){return new u(t,e)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/collection").setSeries,u=function(t){function e(e,i){t.call(this,e,i,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={mapValuesSeries:n,MapValuesSeries:u}},{"./eachSeries":14,"./internal/collection":35}],46:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t||(this._result[e]=this._coll[e]),0==--this._rest&&this._promise._resolve(this._result)}function o(t,e){if(!t){var i=this._keys[e];this._result[i]=this._coll[i]}0==--this._rest&&this._promise._resolve(this._result)}function n(t,e){return new u(t,e)._execute()}var c=t("./each").Each,l=t("./internal/collection").setShorthand,u=function(t){function e(e,i){t.call(this,e,i,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={omit:n,Omit:u}},{"./each":12,"./internal/collection":35}],47:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t||(this._result[e]=this._coll[e]),0==--this._rest?this._promise._resolve(this._result):this._callRest-- >0&&this._iterate()}function o(t,e){if(!t){var i=this._keys[e];this._result[i]=this._coll[i]}0==--this._rest?this._promise._resolve(this._result):this._callRest-- >0&&this._iterate()}function n(t,e,i){return new u(t,e,i)._execute()}var c=t("./eachLimit").EachLimit,l=t("./internal/collection").setLimit,u=function(t){function e(e,i,s){t.call(this,e,i,s,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={omitLimit:n,OmitLimit:u}},{"./eachLimit":13,"./internal/collection":35}],48:[function(t,e,i){"use strict";function r(t){return u.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t||(this._result[e]=this._coll[e]),0==--this._rest?this._promise._resolve(this._result):this._iterate()}function o(t,e){if(!t){var i=this._keys[e];this._result[i]=this._coll[i]}0==--this._rest?this._promise._resolve(this._result):this._iterate()}function n(t,e){return new a(t,e)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/util").PENDING,u=t("./internal/collection").setSeries,a=function(t){function e(e,i){t.call(this,e,i),this._result={},e===l?this._set=r:this._callResolve=void 0===this._keys?s:o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={omitSeries:n,OmitSeries:a}},{"./eachSeries":14,"./internal/collection":35,"./internal/util":38}],49:[function(t,e,i){"use strict";function r(t){this._callResolve=this._result,s.call(this,t),this._execute()}function s(t){if(Array.isArray(t)){var e=t.length;this._rest=e,this._coll=t,this._result=Array(e),this._iterate=_}else if(t&&"object"==typeof t){var i=Object.keys(t);this._rest=i.length,this._coll=t,this._keys=i,this._result={},this._iterate=h}else this._rest=0,this._result={};return this}function o(t){return new p(t)._execute()}var n=t("aigle-core").AigleProxy,c=t("./aigle"),l=t("./internal/util"),u=l.INTERNAL,a=l.PENDING,_=l.promiseArrayEach,h=l.promiseObjectEach,p=function(t){function e(e){t.call(this),this._promise=new c(u),this._rest=void 0,this._coll=void 0,this._keys=void 0,this._result=void 0,e===a?(this._result=this._callResolve,this._callResolve=r):s.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._execute=function(){return 0===this._rest?this._promise._resolve(this._result):void 0===this._keys?_(this):h(this),this._promise},e.prototype._callResolve=function(t,e){this._result[e]=t,0==--this._rest&&this._promise._resolve(this._result)},e.prototype._callReject=function(t){this._promise._reject(t)},e}(n);e.exports={parallel:o,Parallel:p}},{"./aigle":2,"./internal/util":38,"aigle-core":78}],50:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t&&(this._result[e]=this._coll[e]),0==--this._rest&&this._promise._resolve(this._result)}function o(t,e){if(t){var i=this._keys[e];this._result[i]=this._coll[i]}0==--this._rest&&this._promise._resolve(this._result)}function n(t,e){return new u(t,e)._execute()}var c=t("./each").Each,l=t("./internal/collection").setShorthand,u=function(t){function e(e,i){t.call(this,e,i,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={pick:n,Pick:u}},{"./each":12,"./internal/collection":35}],51:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t&&(this._result[e]=this._coll[e]),0==--this._rest?this._promise._resolve(this._result):this._callRest-- >0&&this._iterate()}function o(t,e){if(t){var i=this._keys[e];this._result[i]=this._coll[i]}0==--this._rest?this._promise._resolve(this._result):this._callRest-- >0&&this._iterate()}function n(t,e,i){return new u(t,e,i)._execute()}var c=t("./eachLimit").EachLimit,l=t("./internal/collection").setLimit,u=function(t){function e(e,i,s){t.call(this,e,i,s,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={pickLimit:n,PickLimit:u}},{"./eachLimit":13,"./internal/collection":35}],52:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){t&&(this._result[e]=this._coll[e]),0==--this._rest?this._promise._resolve(this._result):this._iterate()}function o(t,e){if(t){var i=this._keys[e];this._result[i]=this._coll[i]}0==--this._rest?this._promise._resolve(this._result):this._iterate()}function n(t,e){return new u(t,e)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/collection").setSeries,u=function(t){function e(e,i){t.call(this,e,i,r),this._result={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={pickSeries:n,PickSeries:u}},{"./eachSeries":14,"./internal/collection":35}],53:[function(t,e,i){"use strict";function r(t,e){switch(typeof t){case"object":switch(typeof e){case"string":case"number":return t[e].__isPromisified__?t[e]:o(t,e);default:throw new TypeError("Second argument is invalid")}case"function":return t.__isPromisified__?t:n(t,e&&void 0!==e.context?e.context:void 0);default:throw new TypeError("Type of first argument is not function")}}function s(t){return function(e,i){e?t._reject(e):t._resolve(i)}}function o(t,e){function i(i){var r=arguments,o=new c(l),n=s(o),u=arguments.length;switch(u){case 0:t[e](n);break;case 1:t[e](i,n);break;default:for(var a=Array(u);u--;)a[u]=r[u];a[a.length]=n,t[e].apply(t,a)}return o}return i.__isPromisified__=!0,i}function n(t,e){function i(i){var r=arguments,o=new c(l),n=s(o),u=arguments.length;switch(u){case 0:t.call(e||this,n);break;case 1:t.call(e||this,i,n);break;default:for(var a=Array(u);u--;)a[u]=r[u];a[a.length]=n,t.apply(e||this,a)}return o}return i.__isPromisified__=!0,i}var c=t("./aigle"),l=t("./internal/util").INTERNAL;e.exports=r},{"./aigle":2,"./internal/util":38}],54:[function(t,e,i){"use strict";function r(t,e){var i=e||{},r=i.suffix;void 0===r&&(r="Async");var n=i.filter;void 0===n&&(n=s);var c=i.depth;return void 0===c&&(c=2),o(r,n,t,void 0,void 0,c),t}function s(t){return/^_/.test(t)}function o(t,e,i,r,s,o){var l={};switch(typeof i){case"function":if(s){var u=""+r+t;if(s[u]){if(!s[u].__isPromisified__)throw new TypeError("Cannot promisify an API that has normal methods with '"+t+"'-suffix")}else s[u]=c(i)}n(t,e,i,i,o,l),n(t,e,i.prototype,i.prototype,o,l);break;case"object":n(t,e,i,i,o,l),n(t,e,Object.getPrototypeOf(i),i,o,l)}}function n(t,e,i,r,s,n){if(0!=s--&&i&&u!==i&&a!==i&&_!==i&&!Object.isFrozen(i))for(var c=Object.getOwnPropertyNames(i),h=c.length;h--;){var p=c[h];if(!0!==l[p]&&!0!==n[p]&&!e(p)){var f=Object.getOwnPropertyDescriptor(i,p);!f||f.set||f.get||(n[p]=!0,o(t,e,i[p],p,r,s))}}}var c=t("./promisify"),l={constructor:!0,arity:!0,length:!0,name:!0,arguments:!0,caller:!0,callee:!0,prototype:!0,__isPromisified__:!0};e.exports=r;var u=Function.prototype,a=Object.prototype,_=Array.prototype},{"./promisify":53}],55:[function(t,e,i){"use strict";function r(t){var e=Object.keys(t);return this._rest=e.length,this._coll=t,this._keys=e,this._callResolve=this._execute,s.call(this),this}function s(){return 0===this._rest?this._promise._resolve(this._result):_(this),this._promise}function o(t){return new h(t)._execute()}var n=t("aigle-core").AigleProxy,c=t("./aigle"),l=t("./internal/util"),u=l.INTERNAL,a=l.PENDING,_=l.promiseObjectEach,h=function(t){function e(e){if(t.call(this),this._promise=new c(u),this._result={},e===a)this._rest=void 0,this._coll=void 0,this._keys=void 0,this._execute=this._callResolve,this._callResolve=r;else{var i=Object.keys(e);this._rest=i.length,this._coll=e,this._keys=i,this._execute=s}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t,e){this._result[e]=t,0==--this._rest&&this._promise._resolve(this._result)},e.prototype._callReject=function(t){this._promise._reject(t)},e}(n);e.exports={props:o,Props:h},e.exports={props:o,Props:h}},{"./aigle":2,"./internal/util":38,"aigle-core":78}],56:[function(t,e,i){"use strict";function r(t){return new s(t)._execute()}var s=function(t){function e(e){t.call(this,e),this._result=void 0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){this._promise._resolve(t)},e}(t("./parallel").Parallel);e.exports={race:r,Race:s}},{"./parallel":49}],57:[function(t,e,i){"use strict";function r(t){return p.call(this,t),void 0===this._keys?(this._iterate=s,this._execute=n):(this._iterate=o,this._execute=c),this}function s(t,e){d(m(this._iterator,e,this._coll[t],t),this,t)}function o(t,e){var i=this._keys[t];d(m(this._iterator,e,this._coll[i],i),this,t)}function n(){return 0===this._rest?this._promise._resolve(this._result):void 0===this._result?this._callResolve(this._coll[0],0):this._iterate(0,this._result),this._promise}function c(){return 0===this._rest?this._promise._resolve(this._result):void 0===this._result?this._callResolve(this._coll[this._keys[0]],0):this._iterate(0,this._result),this._promise}function l(t,e,i){return new R(t,e,i)._execute()}var u=t("aigle-core").AigleProxy,a=t("./aigle"),_=t("./internal/collection"),h=_.execute,p=_.setSeries,f=t("./internal/util"),v=f.INTERNAL,y=f.PENDING,m=f.call3,d=f.callProxyReciever,R=function(t){function e(e,i,s){t.call(this),this._result=s,this._iterator=i,this._promise=new a(v),this._coll=void 0,this._rest=void 0,this._size=void 0,this._keys=void 0,this._iterate=void 0,e===y?(this._set=r,this._iterate=this._callResolve,this._callResolve=h):r.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t,e){0==--this._rest?this._promise._resolve(t):this._iterate(++e,t)},e.prototype._callReject=function(t){this._promise._reject(t)},e}(u);e.exports={reduce:l,Reduce:R}},{"./aigle":2,"./internal/collection":35,"./internal/util":38,"aigle-core":78}],58:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._result=Array(this._rest),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]=t?a:this._coll[e],0==--this._rest&&this._promise._resolve(_(this._result))}function o(t,e){this._result[e]=t?a:this._coll[this._keys[e]],0==--this._rest&&this._promise._resolve(_(this._result))}function n(t,e){return new h(t,e)._execute()}var c=t("./each").Each,l=t("./internal/collection").setShorthand,u=t("./internal/util"),a=u.INTERNAL,_=u.compactArray,h=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={reject:n,Reject:h}},{"./each":12,"./internal/collection":35,"./internal/util":38}],59:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._result=Array(this._rest),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]=t?a:this._coll[e],0==--this._rest?this._promise._resolve(_(this._result)):this._callRest-- >0&&this._iterate()}function o(t,e){this._result[e]=t?a:this._coll[this._keys[e]],0==--this._rest?this._promise._resolve(_(this._result)):this._callRest-- >0&&this._iterate()}function n(t,e,i){return new h(t,e,i)._execute()}var c=t("./eachLimit").EachLimit,l=t("./internal/collection").setLimit,u=t("./internal/util"),a=u.INTERNAL,_=u.compactArray,h=function(t){function e(e,i,s){t.call(this,e,i,s,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={rejectLimit:n,RejectLimit:h}},{"./eachLimit":13,"./internal/collection":35,"./internal/util":38}],60:[function(t,e,i){"use strict";function r(t){return l.call(this,t),this._result=Array(this._rest),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]=t?a:this._coll[e],0==--this._rest?this._promise._resolve(_(this._result)):this._iterate()}function o(t,e){this._result[e]=t?a:this._coll[this._keys[e]],0==--this._rest?this._promise._resolve(_(this._result)):this._iterate()}function n(t,e){return new h(t,e)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/collection").setSeries,u=t("./internal/util"),a=u.INTERNAL,_=u.compactArray,h=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={rejectSeries:n,RejectSeries:h}},{"./eachSeries":14,"./internal/collection":35,"./internal/util":38}],61:[function(t,e,i){"use strict";function r(t,e){return"function"==typeof t&&(e=t,t=a),new _(e,t)._promise}var s=t("aigle-core").AigleProxy,o=t("./aigle"),n=t("./internal/util"),c=n.INTERNAL,l=n.call0,u=n.callProxyReciever,a=5,_=function(t){function e(e,i){t.call(this),this._promise=new o(c),this._rest=i,this._handler=e,this._iterate()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._iterate=function(){u(l(this._handler),this,void 0)},e.prototype._callResolve=function(t){this._promise._resolve(t)},e.prototype._callReject=function(t){0==--this._rest?this._promise._reject(t):this._iterate()},e}(s);e.exports=r},{"./aigle":2,"./internal/util":38,"aigle-core":78}],62:[function(t,e,i){"use strict";function r(t,e){return new n(t,e)._execute()}var s=t("./each").Each,o=t("./internal/collection").setShorthand,n=function(t){function e(e,i){t.call(this,e,i,o),this._result=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){t?this._promise._resolve(!0):0==--this._rest&&this._promise._resolve(!1)},e}(s);e.exports={some:r,Some:n}},{"./each":12,"./internal/collection":35}],63:[function(t,e,i){"use strict";function r(t,e,i){return new s(t,e,i)._execute()}var s=function(t){function e(e,i,r){t.call(this,e,i,r),this._result=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){t?this._promise._resolve(!0):0==--this._rest?this._promise._resolve(!1):this._callRest-- >0&&this._iterate()},e}(t("./eachLimit").EachLimit);e.exports={someLimit:r,SomeLimit:s}},{"./eachLimit":13}],64:[function(t,e,i){"use strict";function r(t,e){return new s(t,e)._execute()}var s=function(t){function e(e,i){t.call(this,e,i),this._result=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){t?this._promise._resolve(!0):0==--this._rest?this._promise._resolve(!1):this._iterate()},e}(t("./eachSeries.js").EachSeries);e.exports={someSeries:r,SomeSeries:s}},{"./eachSeries.js":14}],65:[function(t,e,i){"use strict";function r(t){return u.call(this,t),this._result=Array(this._rest),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]={criteria:t,value:this._coll[e]},0==--this._rest&&this._promise._resolve(l(this._result))}function o(t,e){this._result[e]={criteria:t,value:this._coll[this._keys[e]]},0==--this._rest&&this._promise._resolve(l(this._result))}function n(t,e){return new a(t,e)._execute()}var c=t("./each").Each,l=t("./internal/util").sort,u=t("./internal/collection").setShorthand,a=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={sortBy:n,SortBy:a}},{"./each":12,"./internal/collection":35,"./internal/util":38}],66:[function(t,e,i){"use strict";function r(t){return u.call(this,t),this._result=Array(this._rest),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]={criteria:t,value:this._coll[e]},0==--this._rest?this._promise._resolve(l(this._result)):this._callRest-- >0&&this._iterate()}function o(t,e){this._result[e]={criteria:t,value:this._coll[this._keys[e]]},0==--this._rest?this._promise._resolve(l(this._result)):this._callRest-- >0&&this._iterate()}function n(t,e,i){return new a(t,e,i)._execute()}var c=t("./eachLimit").EachLimit,l=t("./internal/util").sort,u=t("./internal/collection").setLimit,a=function(t){function e(e,i,s){t.call(this,e,i,s,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={sortByLimit:n,SortByLimit:a}},{"./eachLimit":13,"./internal/collection":35,"./internal/util":38}],67:[function(t,e,i){"use strict";function r(t){return u.call(this,t),this._result=Array(this._rest),this._callResolve=void 0===this._keys?s:o,this}function s(t,e){this._result[e]={criteria:t,value:this._coll[e]},0==--this._rest?this._promise._resolve(l(this._result)):this._iterate()}function o(t,e){this._result[e]={criteria:t,value:this._coll[this._keys[e]]},0==--this._rest?this._promise._resolve(l(this._result)):this._iterate()}function n(t,e){return new a(t,e)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/util").sort,u=t("./internal/collection").setSeries,a=function(t){function e(e,i){t.call(this,e,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);e.exports={sortBySeries:n,SortBySeries:a}},{"./eachSeries":14,"./internal/collection":35,"./internal/util":38}],68:[function(t,e,i){"use strict";var r=t("aigle-core").AigleProxy,s=t("./aigle"),o=t("./error").TimeoutError,n=t("./internal/util").INTERNAL,c=function(t){function e(e,i){var r=this;t.call(this),this._promise=new s(n),this._message=i,this._timer=setTimeout(function(){i?r._callReject(i):r._callReject(new o("operation timed out"))},e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){clearTimeout(this._timer),this._promise._resolve(t)},e.prototype._callReject=function(t){clearTimeout(this._timer),this._promise._reject(t)},e}(r);e.exports=c},{"./aigle":2,"./error":15,"./internal/util":38,"aigle-core":78}],69:[function(t,e,i){"use strict";function r(t){(t=0|+t)>=1?(this._rest=t,this._result=Array(t)):(this._rest=0,this._result=[])}function s(t){this._callResolve=this._rest,r.call(this,t),this._execute()}function o(t,e){return new f(t,e)._execute()}var n=t("aigle-core").AigleProxy,c=t("./aigle"),l=t("./internal/util"),u=l.INTERNAL,a=l.PENDING,_=l.defaultIterator,h=l.call1,p=l.callProxyReciever,f=function(t){function e(e,i){t.call(this),this._promise=new c(u),this._iterator="function"==typeof i?i:_,this._rest=void 0,this._result=void 0,e===a?(this._rest=this._callResolve,this._callResolve=s):r.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._execute=function(){if(this._rest>=1)for(var t=this,e=t._rest,i=t._iterator,r=-1;++r=1){this._rest=t,this._result=Array(t);var e=this._limit;this._limit=e0&&this._iterate()},e.prototype._callReject=function(t){this._callRest=0,this._promise._reject(t)},e}(n);e.exports={timesLimit:o,TimesLimit:v}},{"./aigle":2,"./internal/util":38,"aigle-core":78}],71:[function(t,e,i){"use strict";function r(t,e){return new v(t,e)._execute()}var s=t("aigle-core").AigleProxy,o=t("./aigle"),n=t("./times"),c=n.set,l=n.execute,u=t("./internal/util"),a=u.INTERNAL,_=u.PENDING,h=u.defaultIterator,p=u.call1,f=u.callProxyReciever,v=function(t){function e(e,i){t.call(this),this._promise=new o(a),this._iterator="function"==typeof i?i:h,this._index=0,this._rest=void 0,this._result=void 0,e===_?(this._rest=this._callResolve,this._callResolve=l):c.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._execute=function(){return this._rest>=1?this._iterate():this._promise._resolve(this._result),this._promise},e.prototype._iterate=function(){var t=this._index++;f(p(this._iterator,t),this,t)},e.prototype._callResolve=function(t,e){this._result[e]=t,0==--this._rest?this._promise._resolve(this._result):this._iterate()},e.prototype._callReject=function(t){this._promise._reject(t)},e}(s);e.exports={timesSeries:r,TimesSeries:v}},{"./aigle":2,"./internal/util":38,"./times":69,"aigle-core":78}],72:[function(t,e,i){"use strict";function r(t){return l.call(this,t),void 0!==this._keys||void 0===this._coll?(void 0===this._result&&(this._result={}),this._iterate=o):(void 0===this._result&&(this._result=[]),this._iterate=s),this}function s(){for(var t=this,e=t._rest,i=t._result,r=t._iterator,s=t._coll,o=-1;++o0&&this._iterate()},e}(c);e.exports={transformLimit:n,TransformLimit:f}},{"./eachLimit":13,"./internal/collection":35,"./internal/util":38}],74:[function(t,e,i){"use strict";function r(t){return l.call(this,t),void 0!==this._keys||void 0===this._coll?(void 0===this._result&&(this._result={}),this._iterate=o):(void 0===this._result&&(this._result=[]),this._iterate=s),this}function s(){var t=this._index++;_(a(this._iterator,this._result,this._coll[t],t),this,t)}function o(){var t=this._index++,e=this._keys[t];_(a(this._iterator,this._result,this._coll[e],e),this,t)}function n(t,e,i){return new p(t,e,i)._execute()}var c=t("./eachSeries").EachSeries,l=t("./internal/collection").setSeries,u=t("./internal/util"),a=u.call3,_=u.callProxyReciever,h=u.clone,p=function(t){function e(e,i,s){t.call(this,e,i,r),void 0!==s&&(this._result=s)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){!1===t?this._promise._resolve(h(this._result)):0==--this._rest?this._promise._resolve(this._result):this._iterate()},e}(c);e.exports={transformSeries:n,TransformSeries:p}},{"./eachSeries":14,"./internal/collection":35,"./internal/util":38}],75:[function(t,e,i){"use strict";function r(t,e,i){return"function"!=typeof i&&(i=e,e=t,t=void 0),new o(new n(e),i)._iterate(t)}var s=t("./whilst"),o=s.AigleWhilst,n=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._callResolve=function(t){t?this._proxy._promise._resolve(this._value):this._proxy._next(this._value)},e}(s.WhilstTester);e.exports={until:r,UntilTester:n}},{"./whilst":77}],76:[function(t,e,i){"use strict";function r(){for(var t=arguments,e=arguments.length,i=arguments[--e],r=Array(e);e--;)r[e]=t[e];return new p(r,i)._promise}var s=t("aigle-core").AigleProxy,o=t("./aigle"),n=t("./internal/util"),c=n.INTERNAL,l=n.apply,u=n.call1,a=n.callProxyReciever,_={},h=function(t,e){this._promise=t,this._handler=e};h.prototype._dispose=function(){var t=this,e=this._promise;switch(e._resolved){case 0:return e.then(function(){return t._dispose()});case 1:return u(this._handler,this._promise._value)}};var p=function(t){function e(e,i){var r=this;t.call(this);var s=e.length;this._promise=new o(c),this._rest=s,this._disposed=s,this._array=e,this._error=void 0,this._result=Array(s),this._handler=i;for(var n=-1;++n1)for(var r=1;r{void 0===r||(r=void 0,k(this,e))},(e)=>{void 0===r||(r=void 0,this._reject(e))})}catch(t){if(r===void 0)return;r=void 0,this._reject(t)}}function s(r){f&&wr(this);try{r((e)=>{void 0===r||(r=void 0,k(this,e))},(e)=>{void 0===r||(r=void 0,this._reject(e))},(e)=>{if("function"!=typeof e)throw new TypeError("onCancel must be function");void 0===r||(void 0===this._onCancelQueue&&(this._onCancelQueue=new p),this._onCancelQueue.push(e))})}catch(t){if(r===void 0)return;r=void 0,this._reject(t)}}function _(e,r){return(t)=>{for(let i=e.length;i--;)if(t instanceof e[i])return r(t);return g.e=t,g}}function o(e,r){return()=>{const{_resolved:t,_value:l}=e,i=L(r);if(i===g)return i;if(i instanceof u)switch(i._resolved){case 1:return i._value=l,i;case 2:return i;}const s=new E(y);return i&&i.then?1===t?i.then(()=>s._resolve(l),(e)=>s._reject(e)):i.then(()=>s._reject(l),(e)=>s._reject(e)):(s._resolved=t,s._value=l),s}}function a(e,r,t,l){return f&&wr(r,e),void 0===e._receiver||e._receiver===y?(0!==e._resolved&&d(e),e._receiver=r,e._onFulfilled=t,e._onRejected=l):e._receiver===h?(e._receiver=r,e._onFulfilled=t,e._onRejected=l):(!e._receivers&&(e._receivers=new p),e._receivers.push({receiver:r,onFulfilled:t,onRejected:l})),r}function c(e,r){return f&&wr(r,e),0!==e._resolved&&d(e),e._receiver=r,r._promise}function n(e,r,t,l,i){if(f){f=!1;const s=n(e,r,t,l,i);return f=!0,wr(s,e),s}switch(e._resolved){case 0:const s=new r(x,t,l,i);return void 0===e._receiver?e._receiver=s:(!e._receivers&&(e._receivers=new p),e._receivers.push({receiver:s})),s._promise;case 1:return new r(e._value,t,l,i)._execute();case 2:return E.reject(e._value);}}const{AigleCore:u,AigleProxy:m}=e("aigle-core"),p=e("./internal/queue"),d=e("./internal/async"),{VERSION:v,INTERNAL:y,PENDING:x,UNHANDLED:h,errorObj:g,call0:L,callResolve:S,callReject:R,callReceiver:k}=e("./internal/util");let f=!1;class E extends u{constructor(e){super(),this._resolved=0,this._value=void 0,this._key=void 0,this._receiver=void 0,this._onFulfilled=void 0,this._onRejected=void 0,this._receivers=void 0;e===y||this._execute(e)}then(e,r){return a(this,new E(y),e,r)}catch(e){if(1Pr(t,e,r))}doWhilst(e,r){return this.then((t)=>Tr(t,e,r))}until(e,r){return this.then((t)=>br(t,e,r))}doUntil(e,r){return this.then((t)=>Br(t,e,r))}times(e){return n(this,Vr,e)}timesSeries(e){return n(this,Or,e)}timesLimit(e,r){return n(this,Cr,e,r)}disposer(e){return new Gr(this,e)}_resolve(e){0===this._resolved&&(this._resolved=1,this._value=e,void 0===this._receiver||this._callResolve())}_callResolve(){const{_receiver:e}=this;if(this._receiver=void 0,e instanceof m?e._callResolve(this._value,this._key):this._key===y?e._resolve(this._value):S(e,this._onFulfilled,this._value),!!this._receivers){const{_value:e,_key:r,_receivers:t}=this;this._receivers=void 0;let l=-1;const{array:i}=t;for(;++l{const s=e[r];if("function"!=typeof s||E[r]&&!t)return;if("chain"===r){const e=s();if(e&&e.__chain__)return E.chain=l,void(E.prototype.value=function(){return this})}const _=Wr(s,i);E[r]=function(e,r,t,l){return new _(e,r,t,l)._execute()},E.prototype[r]=function(e,r,t){return n(this,_,e,r,t)}}),E},E.config=function(e){e=e||{},e.longStackTraces!==void 0&&(f=!!e.longStackTraces),e.cancellation!==void 0&&(E.prototype._execute=e.cancellation?s:i)},E.longStackTraces=function(){f=!0};const{CancellationError:qr,TimeoutError:Qr}=e("./error");E.CancellationError=qr,E.TimeoutError=Qr}).call(this,e("_process"))},{"./all":3,"./attempt":4,"./concat":5,"./concatLimit":6,"./concatSeries":7,"./debug":8,"./delay":9,"./doUntil":10,"./doWhilst":11,"./each":12,"./eachLimit":13,"./eachSeries":14,"./error":15,"./every":16,"./everyLimit":17,"./everySeries":18,"./filter":19,"./filterLimit":20,"./filterSeries":21,"./find":22,"./findIndex":23,"./findIndexLimit":24,"./findIndexSeries":25,"./findKey":26,"./findKeyLimit":27,"./findKeySeries":28,"./findLimit":29,"./findSeries":30,"./groupBy":31,"./groupByLimit":32,"./groupBySeries":33,"./internal/async":34,"./internal/mixin":36,"./internal/queue":37,"./internal/util":38,"./join":39,"./map":40,"./mapLimit":41,"./mapSeries":42,"./mapValues":43,"./mapValuesLimit":44,"./mapValuesSeries":45,"./omit":46,"./omitLimit":47,"./omitSeries":48,"./parallel":49,"./pick":50,"./pickLimit":51,"./pickSeries":52,"./promisify":53,"./promisifyAll":54,"./props":55,"./race":56,"./reduce":57,"./reject":58,"./rejectLimit":59,"./rejectSeries":60,"./retry":61,"./some":62,"./someLimit":63,"./someSeries":64,"./sortBy":65,"./sortByLimit":66,"./sortBySeries":67,"./timeout":68,"./times":69,"./timesLimit":70,"./timesSeries":71,"./transform":72,"./transformLimit":73,"./transformSeries":74,"./until":75,"./using":76,"./whilst":77,_process:79,"aigle-core":78}],3:[function(e,r){"use strict";function t(e){const r=e.length;return this._rest=r,this._coll=e,this._result=Array(r),this._callResolve=this._execute,l.call(this),this}function l(){return 0===this._rest?this._promise._resolve(this._result):a(this),this._promise}const{AigleProxy:i}=e("aigle-core"),s=e("./aigle"),{INTERNAL:_,PENDING:o,promiseArrayEach:a}=e("./internal/util");class c extends i{constructor(e){if(super(),this._promise=new s(_),e===o)this._rest=void 0,this._coll=void 0,this._result=void 0,this._execute=this._callResolve,this._callResolve=t;else{const r=e.length;this._rest=r,this._coll=e,this._result=Array(r),this._execute=l}}_callResolve(e,r){this._result[r]=e,0==--this._rest&&this._promise._resolve(this._result)}_callReject(e){this._promise._reject(e)}}r.exports={all:function(e){return new c(e)._execute()},All:c}},{"./aigle":2,"./internal/util":38,"aigle-core":78}],4:[function(e,r){"use strict";const t=e("./aigle"),{INTERNAL:l,callResolve:i}=e("./internal/util");r.exports=function(e){const r=new t(l);return i(r,e),r}},{"./aigle":2,"./internal/util":38}],5:[function(e,r){"use strict";function t(e){return s.call(this,e),this._result=Array(this._rest),this}const{Each:l}=e("./each"),{concatArray:i}=e("./internal/util"),{setParallel:s}=e("./internal/collection");class _ extends l{constructor(e,r){super(e,r,t)}_callResolve(e,r){this._result[r]=e,0==--this._rest&&this._promise._resolve(i(this._result))}}r.exports={concat:function(e,r){return new _(e,r)._execute()},Concat:_}},{"./each":12,"./internal/collection":35,"./internal/util":38}],6:[function(e,r){"use strict";function t(e){return s.call(this,e),this._result=Array(this._rest),this}const{EachLimit:l}=e("./eachLimit"),{concatArray:i}=e("./internal/util"),{setLimit:s}=e("./internal/collection");class _ extends l{constructor(e,r,l){super(e,r,l,t)}_callResolve(e,r){this._result[r]=e,0==--this._rest?this._promise._resolve(i(this._result)):0t.prototype._resolve.call(this,e),this._ms),this}_reject(e){clearTimeout(this._timer),t.prototype._reject.call(this,e)}}r.exports={delay:function(e,r){return new i(e)._resolve(r)},Delay:i}},{"./aigle":2,"./internal/util":38}],10:[function(e,r){"use strict";const{DoWhilst:t}=e("./doWhilst"),{UntilTester:l}=e("./until");r.exports=function(e,r,i){return"function"!=typeof i&&(i=r,r=e,e=void 0),new t(new l(i),r)._iterate(e)}},{"./doWhilst":11,"./until":75}],11:[function(e,r){"use strict";const{AigleWhilst:t,WhilstTester:l}=e("./whilst");class i extends t{constructor(e,r){super(e,r)}_iterate(e){return this._next(e),this._promise}}r.exports={doWhilst:function(e,r,t){return"function"!=typeof t&&(t=r,r=e,e=void 0),new i(new l(t),r)._iterate(e)},DoWhilst:i}},{"./whilst":77}],12:[function(e,r){"use strict";const{AigleProxy:t}=e("aigle-core"),l=e("./aigle"),{INTERNAL:i,PENDING:s}=e("./internal/util"),{execute:_,setParallel:o}=e("./internal/collection");class a extends t{constructor(e,r,t=o){super(),this._iterator=r,this._promise=new l(i),this._coll=void 0,this._size=void 0,this._rest=void 0,this._keys=void 0,this._result=void 0,this._iterate=void 0,e===s?(this._set=t,this._iterate=this._callResolve,this._callResolve=_):t.call(this,e)}_execute(){return 0===this._rest?this._promise._resolve(this._result):this._iterate(),this._promise}_callResolve(e){(0==--this._rest||!1===e)&&this._promise._resolve()}_callReject(e){this._promise._reject(e)}}r.exports={each:function(e,r){return new a(e,r)._execute()},Each:a}},{"./aigle":2,"./internal/collection":35,"./internal/util":38,"aigle-core":78}],13:[function(e,r){"use strict";const{AigleProxy:t}=e("aigle-core"),l=e("./aigle"),{DEFAULT_LIMIT:i,INTERNAL:s,PENDING:_}=e("./internal/util"),{execute:o,setLimit:a}=e("./internal/collection");class c extends t{constructor(e,r,t,c=a){super(),"function"==typeof r&&(t=r,r=i),this._iterator=t,this._promise=new l(s),this._index=0,this._limit=r,this._coll=void 0,this._rest=void 0,this._size=void 0,this._keys=void 0,this._result=void 0,this._iterate=void 0,this._callRest=void 0,e===_?(this._set=c,this._iterate=this._callResolve,this._callResolve=o):c.call(this,e)}_execute(){if(0===this._rest)this._promise._resolve(this._result);else for(;this._limit--;)this._iterate();return this._promise}_callResolve(e){!1===e?(this._callRest=0,this._promise._resolve()):0==--this._rest?this._promise._resolve():0{let t=0;r[1]=()=>e[t++],m(u(this._func,r),this)}):l&&e&&"object"==typeof e?i(this,a,(e)=>{let t=0;const l=Object.keys(e);r[1]=()=>e[l[t++]],m(u(this._func,r),this)}):m(u(this._func,r),this),this._promise}function i(e,r,t){const[l,i]=e._args,s=r(l,(e,r)=>i(e,r,l));return 1===s._resolved?t(s._value):s.then(t,(r)=>e._callReject(r))}const{AigleProxy:s}=e("aigle-core"),_=e("../aigle"),{map:o}=e("../map"),{mapValues:a}=e("../mapValues"),{INTERNAL:c,PENDING:n,apply:u,callProxyReciever:m}=e("./util");r.exports={createProxy:function(e,r){const i=r?l:t;return class extends p{constructor(...r){super(e,i,r)}}}};class p extends s{constructor(e,r,t){super(),this._promise=new _(c),this._func=e,this._args=t,this._execute=r,t[0]===n&&(this._set=this._callResolve,this._callResolve=r)}_callResolve(e){this._promise._resolve(e)}_callReject(e){this._promise._reject(e)}}},{"../aigle":2,"../map":40,"../mapValues":43,"./util":38,"aigle-core":78}],37:[function(e,r){"use strict";r.exports=class{constructor(e=8){this.array=Array(e),this.length=0}push(e){this.array[this.length++]=e}}},{}],38:[function(e,r){"use strict";function t(){}function l(e,r){try{return e(r)}catch(r){return m.e=r,m}}function i(e,r){if(!r||!r.then)return void e._resolve(r);if(r instanceof n)switch(r._resolved){case 0:return void r._addReceiver(e,t);case 1:return void e._resolve(r._value);case 2:return r.suppressUnhandledRejections(),void e._reject(r._value);}s(r,e)}function s(e,r){e.then(function(e){r._resolve(e)},function(e){r._reject(e)})}function _(e,r,t){e.then(function(e){r._callResolve(e,t)},function(e){r._callReject(e)})}function o(e){let r=e.length;const t=Array(r);for(;r--;)t[r]=e[r];return t}function a(e){const r=Object.keys(e);let t=r.length;const l={};for(;t--;){const i=r[t];l[i]=e[i]}return l}function c(e,r){return e.criteria-r.criteria}const{AigleCore:n}=e("aigle-core"),{version:u}=e("../../package.json"),m={e:void 0};r.exports={VERSION:u,DEFAULT_LIMIT:8,INTERNAL:t,PENDING:function(){},UNHANDLED:function(){},defaultIterator:function(e){return e},errorObj:m,call0:function(e){try{return e()}catch(r){return m.e=r,m}},call1:l,call3:function(e,r,t,l){try{return e(r,t,l)}catch(r){return m.e=r,m}},apply:function(e,r){try{switch(r.length){case 0:return e();case 1:return e(r[0]);case 2:return e(r[0],r[1]);case 3:return e(r[0],r[1],r[2]);default:return e.apply(null,r);}}catch(r){return m.e=r,m}},callResolve:function(e,r,t){if("function"!=typeof r)return void e._resolve(t);const s=l(r,t);return s===m?void e._reject(m.e):void i(e,s)},callReject:function(e,r,t){if("function"!=typeof r)return void e._reject(t);const s=l(r,t);return s===m?void e._reject(m.e):void i(e,s)},callReceiver:i,callThen:s,callProxyReciever:function(e,r,t){if(e instanceof n)switch(e._resolved){case 0:return e._addReceiver(r,t),!0;case 1:return r._callResolve(e._value,t),!0;case 2:return e.suppressUnhandledRejections(),r._callReject(e._value),!1;}return e===m?(r._callReject(m.e),!1):(e&&e.then?_(e,r,t):r._callResolve(e,t),!0)},promiseArrayEach:function(e){const{_rest:r,_coll:t}=e;for(let l=-1;++l{r?e._reject(r):e._resolve(t)}}function l(e,r){function l(i){const o=new s(_),a=t(o);let c=arguments.length;switch(c){case 0:e[r](a);break;case 1:e[r](i,a);break;default:const t=Array(c);for(;c--;)t[c]=arguments[c];t[t.length]=a,e[r].apply(e,t);}return o}return l.__isPromisified__=!0,l}function i(e,r){function l(i){const o=new s(_),a=t(o);let c=arguments.length;switch(c){case 0:e.call(r||this,a);break;case 1:e.call(r||this,i,a);break;default:const t=Array(c);for(;c--;)t[c]=arguments[c];t[t.length]=a,e.apply(r||this,t);}return o}return l.__isPromisified__=!0,l}const s=e("./aigle"),{INTERNAL:_}=e("./internal/util");r.exports=function(e,r){switch(typeof e){case"object":switch(typeof r){case"string":case"number":return e[r].__isPromisified__?e[r]:l(e,r);default:throw new TypeError("Second argument is invalid");}case"function":if(e.__isPromisified__)return e;const t=r&&r.context!==void 0?r.context:void 0;return i(e,t);default:throw new TypeError("Type of first argument is not function");}}},{"./aigle":2,"./internal/util":38}],54:[function(e,r){"use strict";function t(e){return /^_/.test(e)}function i(e,r,t,i,_,o){const a={};switch(typeof t){case"function":if(_){const r=`${i}${e}`;if(!_[r])_[r]=s(t);else if(!_[r].__isPromisified__)throw new TypeError(`Cannot promisify an API that has normal methods with '${e}'-suffix`)}l(e,r,t,t,o,a),l(e,r,t.prototype,t.prototype,o,a);break;case"object":l(e,r,t,t,o,a),l(e,r,Object.getPrototypeOf(t),t,o,a);}}function l(e,r,t,s,n,u){if(0!=n--&&t&&o!==t&&a!==t&&c!==t&&!Object.isFrozen(t)){const o=Object.getOwnPropertyNames(t);for(let a=o.length;a--;){const l=o[a];if(!0===_[l]||!0===u[l]||r(l))continue;const c=Object.getOwnPropertyDescriptor(t,l);!c||c.set||c.get||(u[l]=!0,i(e,r,t[l],l,s,n))}}}const s=e("./promisify"),_={constructor:!0,arity:!0,length:!0,name:!0,arguments:!0,caller:!0,callee:!0,prototype:!0,__isPromisified__:!0};r.exports=function(e,r){const{suffix:l="Async",filter:s=t,depth:_=2}=r||{};return i(l,s,e,void 0,void 0,_),e};const o=Function.prototype,a=Object.prototype,c=Array.prototype},{"./promisify":53}],55:[function(e,r){"use strict";function t(e){const r=Object.keys(e);return this._rest=r.length,this._coll=e,this._keys=r,this._callResolve=this._execute,l.call(this),this}function l(){return 0===this._rest?this._promise._resolve(this._result):c(this),this._promise}function i(e){return new n(e)._execute()}const{AigleProxy:s}=e("aigle-core"),_=e("./aigle"),{INTERNAL:o,PENDING:a,promiseObjectEach:c}=e("./internal/util");class n extends s{constructor(e){if(super(),this._promise=new _(o),this._result={},e===a)this._rest=void 0,this._coll=void 0,this._keys=void 0,this._execute=this._callResolve,this._callResolve=t;else{const r=Object.keys(e);this._rest=r.length,this._coll=e,this._keys=r,this._execute=l}}_callResolve(e,r){this._result[r]=e,0==--this._rest&&this._promise._resolve(this._result)}_callReject(e){this._promise._reject(e)}}r.exports={props:i,Props:n},r.exports={props:i,Props:n}},{"./aigle":2,"./internal/util":38,"aigle-core":78}],56:[function(e,r){"use strict";const{Parallel:t}=e("./parallel");class l extends t{constructor(e){super(e),this._result=void 0}_callResolve(e){this._promise._resolve(e)}}r.exports={race:function(e){return new l(e)._execute()},Race:l}},{"./parallel":49}],57:[function(e,r){"use strict";function t(e){return n.call(this,e),void 0===this._keys?(this._iterate=l,this._execute=s):(this._iterate=i,this._execute=_),this}function l(e,r){d(p(this._iterator,r,this._coll[e],e),this,e)}function i(e,r){const t=this._keys[e];d(p(this._iterator,r,this._coll[t],t),this,e)}function s(){return 0===this._rest?this._promise._resolve(this._result):void 0===this._result?this._callResolve(this._coll[0],0):this._iterate(0,this._result),this._promise}function _(){return 0===this._rest?this._promise._resolve(this._result):void 0===this._result?this._callResolve(this._coll[this._keys[0]],0):this._iterate(0,this._result),this._promise}const{AigleProxy:o}=e("aigle-core"),a=e("./aigle"),{execute:c,setSeries:n}=e("./internal/collection"),{INTERNAL:u,PENDING:m,call3:p,callProxyReciever:d}=e("./internal/util");class v extends o{constructor(e,r,l){super(),this._result=l,this._iterator=r,this._promise=new a(u),this._coll=void 0,this._rest=void 0,this._size=void 0,this._keys=void 0,this._iterate=void 0,e===m?(this._set=t,this._iterate=this._callResolve,this._callResolve=c):t.call(this,e)}_callResolve(e,r){0==--this._rest?this._promise._resolve(e):this._iterate(++r,e)}_callReject(e){this._promise._reject(e)}}r.exports={reduce:function(e,r,t){return new v(e,r,t)._execute()},Reduce:v}},{"./aigle":2,"./internal/collection":35,"./internal/util":38,"aigle-core":78}],58:[function(e,r){"use strict";function t(e){return _.call(this,e),this._result=Array(this._rest),this._callResolve=void 0===this._keys?l:i,this}function l(e,r){this._result[r]=e?o:this._coll[r],0==--this._rest&&this._promise._resolve(a(this._result))}function i(e,r){this._result[r]=e?o:this._coll[this._keys[r]],0==--this._rest&&this._promise._resolve(a(this._result))}const{Each:s}=e("./each"),{setShorthand:_}=e("./internal/collection"),{INTERNAL:o,compactArray:a}=e("./internal/util");class c extends s{constructor(e,r){super(e,r,t)}}r.exports={reject:function(e,r){return new c(e,r)._execute()},Reject:c}},{"./each":12,"./internal/collection":35,"./internal/util":38}],59:[function(e,r){"use strict";function t(e){return _.call(this,e),this._result=Array(this._rest),this._callResolve=void 0===this._keys?l:i,this}function l(e,r){this._result[r]=e?o:this._coll[r],0==--this._rest?this._promise._resolve(a(this._result)):0{r?this._callReject(r):this._callReject(new i("operation timed out"))},e)}_callResolve(e){clearTimeout(this._timer),this._promise._resolve(e)}_callReject(e){clearTimeout(this._timer),this._promise._reject(e)}}},{"./aigle":2,"./error":15,"./internal/util":38,"aigle-core":78}],69:[function(e,r){"use strict";function t(e){e=0|+e,1<=e?(this._rest=e,this._result=Array(e)):(this._rest=0,this._result=[])}function l(e){this._callResolve=this._rest,t.call(this,e),this._execute()}const{AigleProxy:i}=e("aigle-core"),s=e("./aigle"),{INTERNAL:_,PENDING:o,defaultIterator:a,call1:c,callProxyReciever:n}=e("./internal/util");class u extends i{constructor(e,r){super(),this._promise=new s(_),this._iterator="function"==typeof r?r:a,this._rest=void 0,this._result=void 0,e===o?(this._rest=this._callResolve,this._callResolve=l):t.call(this,e)}_execute(){if(1<=this._rest){const{_rest:e,_iterator:r}=this;for(let t=-1;++tthis._dispose());case 1:return _(this._handler,this._promise._value);}}}class n extends t{constructor(e,r){super();const t=e.length;this._promise=new l(i),this._rest=t,this._disposed=t,this._array=e,this._error=void 0,this._result=Array(t),this._handler=r;for(let r=-1;++r{void 0===r||(r=void 0,k(this,e))},(e)=>{void 0===r||(r=void 0,this._reject(e))})}catch(t){if(r===void 0)return;r=void 0,this._reject(t)}}function s(r){f&&wr(this);try{r((e)=>{void 0===r||(r=void 0,k(this,e))},(e)=>{void 0===r||(r=void 0,this._reject(e))},(e)=>{if("function"!=typeof e)throw new TypeError("onCancel must be function");void 0===r||(void 0===this._onCancelQueue&&(this._onCancelQueue=new p),this._onCancelQueue.push(e))})}catch(t){if(r===void 0)return;r=void 0,this._reject(t)}}function _(e,r){return(t)=>{for(let i=e.length;i--;)if(t instanceof e[i])return r(t);return g.e=t,g}}function o(e,r){return()=>{const{_resolved:t,_value:l}=e,i=L(r);if(i===g)return i;if(i instanceof u)switch(i._resolved){case 1:return i._value=l,i;case 2:return i;}const s=new E(y);return i&&i.then?1===t?i.then(()=>s._resolve(l),(e)=>s._reject(e)):i.then(()=>s._reject(l),(e)=>s._reject(e)):(s._resolved=t,s._value=l),s}}function a(e,r,t,l){return f&&wr(r,e),void 0===e._receiver||e._receiver===y?(0!==e._resolved&&d(e),e._receiver=r,e._onFulfilled=t,e._onRejected=l):e._receiver===h?(e._receiver=r,e._onFulfilled=t,e._onRejected=l):(!e._receivers&&(e._receivers=new p),e._receivers.push({receiver:r,onFulfilled:t,onRejected:l})),r}function c(e,r){return f&&wr(r,e),0!==e._resolved&&d(e),e._receiver=r,r._promise}function n(e,r,t,l,i){if(f){f=!1;const s=n(e,r,t,l,i);return f=!0,wr(s,e),s}switch(e._resolved){case 0:const s=new r(x,t,l,i);return void 0===e._receiver?e._receiver=s:(!e._receivers&&(e._receivers=new p),e._receivers.push({receiver:s})),s._promise;case 1:return new r(e._value,t,l,i)._execute();case 2:return E.reject(e._value);}}const{AigleCore:u,AigleProxy:m}=e("aigle-core"),p=e("./internal/queue"),d=e("./internal/async"),{VERSION:v,INTERNAL:y,PENDING:x,UNHANDLED:h,errorObj:g,call0:L,callResolve:S,callReject:R,callReceiver:k}=e("./internal/util");let f=!1;class E extends u{constructor(e){super(),this._resolved=0,this._value=void 0,this._key=void 0,this._receiver=void 0,this._onFulfilled=void 0,this._onRejected=void 0,this._receivers=void 0;e===y||this._execute(e)}then(e,r){return a(this,new E(y),e,r)}catch(e){if(1Pr(t,e,r))}doWhilst(e,r){return this.then((t)=>Tr(t,e,r))}until(e,r){return this.then((t)=>br(t,e,r))}doUntil(e,r){return this.then((t)=>Br(t,e,r))}times(e){return n(this,Vr,e)}timesSeries(e){return n(this,Or,e)}timesLimit(e,r){return n(this,Cr,e,r)}disposer(e){return new Gr(this,e)}_resolve(e){0===this._resolved&&(this._resolved=1,this._value=e,void 0===this._receiver||this._callResolve())}_callResolve(){const{_receiver:e}=this;if(this._receiver=void 0,e instanceof m?e._callResolve(this._value,this._key):this._key===y?e._resolve(this._value):S(e,this._onFulfilled,this._value),!!this._receivers){const{_value:e,_key:r,_receivers:t}=this;this._receivers=void 0;let l=-1;const{array:i}=t;for(;++l{const s=e[r];if("function"!=typeof s||E[r]&&!t)return;if("chain"===r){const e=s();if(e&&e.__chain__)return E.chain=l,void(E.prototype.value=function(){return this})}const _=Wr(s,i);E[r]=function(e,r,t,l){return new _(e,r,t,l)._execute()},E.prototype[r]=function(e,r,t){return n(this,_,e,r,t)}}),E},E.config=function(e){e=e||{},e.longStackTraces!==void 0&&(f=!!e.longStackTraces),e.cancellation!==void 0&&(E.prototype._execute=e.cancellation?s:i)},E.longStackTraces=function(){f=!0};const{CancellationError:qr,TimeoutError:Qr}=e("./error");E.CancellationError=qr,E.TimeoutError=Qr}).call(this,e("_process"))},{"./all":3,"./attempt":4,"./concat":5,"./concatLimit":6,"./concatSeries":7,"./debug":8,"./delay":9,"./doUntil":10,"./doWhilst":11,"./each":12,"./eachLimit":13,"./eachSeries":14,"./error":15,"./every":16,"./everyLimit":17,"./everySeries":18,"./filter":19,"./filterLimit":20,"./filterSeries":21,"./find":22,"./findIndex":23,"./findIndexLimit":24,"./findIndexSeries":25,"./findKey":26,"./findKeyLimit":27,"./findKeySeries":28,"./findLimit":29,"./findSeries":30,"./groupBy":31,"./groupByLimit":32,"./groupBySeries":33,"./internal/async":34,"./internal/mixin":36,"./internal/queue":37,"./internal/util":38,"./join":39,"./map":40,"./mapLimit":41,"./mapSeries":42,"./mapValues":43,"./mapValuesLimit":44,"./mapValuesSeries":45,"./omit":46,"./omitLimit":47,"./omitSeries":48,"./parallel":49,"./pick":50,"./pickLimit":51,"./pickSeries":52,"./promisify":53,"./promisifyAll":54,"./props":55,"./race":56,"./reduce":57,"./reject":58,"./rejectLimit":59,"./rejectSeries":60,"./retry":61,"./some":62,"./someLimit":63,"./someSeries":64,"./sortBy":65,"./sortByLimit":66,"./sortBySeries":67,"./timeout":68,"./times":69,"./timesLimit":70,"./timesSeries":71,"./transform":72,"./transformLimit":73,"./transformSeries":74,"./until":75,"./using":76,"./whilst":77,_process:79,"aigle-core":78}],3:[function(e,r){"use strict";function t(e){const r=e.length;return this._rest=r,this._coll=e,this._result=Array(r),this._callResolve=this._execute,l.call(this),this}function l(){return 0===this._rest?this._promise._resolve(this._result):a(this),this._promise}const{AigleProxy:i}=e("aigle-core"),s=e("./aigle"),{INTERNAL:_,PENDING:o,promiseArrayEach:a}=e("./internal/util");class c extends i{constructor(e){if(super(),this._promise=new s(_),e===o)this._rest=void 0,this._coll=void 0,this._result=void 0,this._execute=this._callResolve,this._callResolve=t;else{const r=e.length;this._rest=r,this._coll=e,this._result=Array(r),this._execute=l}}_callResolve(e,r){this._result[r]=e,0==--this._rest&&this._promise._resolve(this._result)}_callReject(e){this._promise._reject(e)}}r.exports={all:function(e){return new c(e)._execute()},All:c}},{"./aigle":2,"./internal/util":38,"aigle-core":78}],4:[function(e,r){"use strict";const t=e("./aigle"),{INTERNAL:l,callResolve:i}=e("./internal/util");r.exports=function(e){const r=new t(l);return i(r,e),r}},{"./aigle":2,"./internal/util":38}],5:[function(e,r){"use strict";function t(e){return s.call(this,e),this._result=Array(this._rest),this}const{Each:l}=e("./each"),{concatArray:i}=e("./internal/util"),{setParallel:s}=e("./internal/collection");class _ extends l{constructor(e,r){super(e,r,t)}_callResolve(e,r){this._result[r]=e,0==--this._rest&&this._promise._resolve(i(this._result))}}r.exports={concat:function(e,r){return new _(e,r)._execute()},Concat:_}},{"./each":12,"./internal/collection":35,"./internal/util":38}],6:[function(e,r){"use strict";function t(e){return s.call(this,e),this._result=Array(this._rest),this}const{EachLimit:l}=e("./eachLimit"),{concatArray:i}=e("./internal/util"),{setLimit:s}=e("./internal/collection");class _ extends l{constructor(e,r,l){super(e,r,l,t)}_callResolve(e,r){this._result[r]=e,0==--this._rest?this._promise._resolve(i(this._result)):0t.prototype._resolve.call(this,e),this._ms),this}_reject(e){clearTimeout(this._timer),t.prototype._reject.call(this,e)}}r.exports={delay:function(e,r){return new i(e)._resolve(r)},Delay:i}},{"./aigle":2,"./internal/util":38}],10:[function(e,r){"use strict";const{DoWhilst:t}=e("./doWhilst"),{UntilTester:l}=e("./until");r.exports=function(e,r,i){return"function"!=typeof i&&(i=r,r=e,e=void 0),new t(new l(i),r)._iterate(e)}},{"./doWhilst":11,"./until":75}],11:[function(e,r){"use strict";const{AigleWhilst:t,WhilstTester:l}=e("./whilst");class i extends t{constructor(e,r){super(e,r)}_iterate(e){return this._next(e),this._promise}}r.exports={doWhilst:function(e,r,t){return"function"!=typeof t&&(t=r,r=e,e=void 0),new i(new l(t),r)._iterate(e)},DoWhilst:i}},{"./whilst":77}],12:[function(e,r){"use strict";const{AigleProxy:t}=e("aigle-core"),l=e("./aigle"),{INTERNAL:i,PENDING:s}=e("./internal/util"),{execute:_,setParallel:o}=e("./internal/collection");class a extends t{constructor(e,r,t=o){super(),this._iterator=r,this._promise=new l(i),this._coll=void 0,this._size=void 0,this._rest=void 0,this._keys=void 0,this._result=void 0,this._iterate=void 0,e===s?(this._set=t,this._iterate=this._callResolve,this._callResolve=_):t.call(this,e)}_execute(){return 0===this._rest?this._promise._resolve(this._result):this._iterate(),this._promise}_callResolve(e){(0==--this._rest||!1===e)&&this._promise._resolve()}_callReject(e){this._promise._reject(e)}}r.exports={each:function(e,r){return new a(e,r)._execute()},Each:a}},{"./aigle":2,"./internal/collection":35,"./internal/util":38,"aigle-core":78}],13:[function(e,r){"use strict";const{AigleProxy:t}=e("aigle-core"),l=e("./aigle"),{DEFAULT_LIMIT:i,INTERNAL:s,PENDING:_}=e("./internal/util"),{execute:o,setLimit:a}=e("./internal/collection");class c extends t{constructor(e,r,t,c=a){super(),"function"==typeof r&&(t=r,r=i),this._iterator=t,this._promise=new l(s),this._index=0,this._limit=r,this._coll=void 0,this._rest=void 0,this._size=void 0,this._keys=void 0,this._result=void 0,this._iterate=void 0,this._callRest=void 0,e===_?(this._set=c,this._iterate=this._callResolve,this._callResolve=o):c.call(this,e)}_execute(){if(0===this._rest)this._promise._resolve(this._result);else for(;this._limit--;)this._iterate();return this._promise}_callResolve(e){!1===e?(this._callRest=0,this._promise._resolve()):0==--this._rest?this._promise._resolve():0{let t=0;r[1]=()=>e[t++],m(u(this._func,r),this)}):l&&e&&"object"==typeof e?i(this,a,(e)=>{let t=0;const l=Object.keys(e);r[1]=()=>e[l[t++]],m(u(this._func,r),this)}):m(u(this._func,r),this),this._promise}function i(e,r,t){const[l,i]=e._args,s=r(l,(e,r)=>i(e,r,l));return 1===s._resolved?t(s._value):s.then(t,(r)=>e._callReject(r))}const{AigleProxy:s}=e("aigle-core"),_=e("../aigle"),{map:o}=e("../map"),{mapValues:a}=e("../mapValues"),{INTERNAL:c,PENDING:n,apply:u,callProxyReciever:m}=e("./util");r.exports={createProxy:function(e,r){const i=r?l:t;return class extends p{constructor(...r){super(e,i,r)}}}};class p extends s{constructor(e,r,t){super(),this._promise=new _(c),this._func=e,this._args=t,this._execute=r,t[0]===n&&(this._set=this._callResolve,this._callResolve=r)}_callResolve(e){this._promise._resolve(e)}_callReject(e){this._promise._reject(e)}}},{"../aigle":2,"../map":40,"../mapValues":43,"./util":38,"aigle-core":78}],37:[function(e,r){"use strict";r.exports=class{constructor(e=8){this.array=Array(e),this.length=0}push(e){this.array[this.length++]=e}}},{}],38:[function(e,r){"use strict";function t(){}function l(e,r){try{return e(r)}catch(r){return m.e=r,m}}function i(e,r){if(!r||!r.then)return void e._resolve(r);if(r instanceof n)switch(r._resolved){case 0:return void r._addReceiver(e,t);case 1:return void e._resolve(r._value);case 2:return r.suppressUnhandledRejections(),void e._reject(r._value);}s(r,e)}function s(e,r){e.then(function(e){r._resolve(e)},function(e){r._reject(e)})}function _(e,r,t){e.then(function(e){r._callResolve(e,t)},function(e){r._callReject(e)})}function o(e){let r=e.length;const t=Array(r);for(;r--;)t[r]=e[r];return t}function a(e){const r=Object.keys(e);let t=r.length;const l={};for(;t--;){const i=r[t];l[i]=e[i]}return l}function c(e,r){return e.criteria-r.criteria}const{AigleCore:n}=e("aigle-core"),{version:u}=e("../../package.json"),m={e:void 0};r.exports={VERSION:u,DEFAULT_LIMIT:8,INTERNAL:t,PENDING:function(){},UNHANDLED:function(){},defaultIterator:function(e){return e},errorObj:m,call0:function(e){try{return e()}catch(r){return m.e=r,m}},call1:l,call3:function(e,r,t,l){try{return e(r,t,l)}catch(r){return m.e=r,m}},apply:function(e,r){try{switch(r.length){case 0:return e();case 1:return e(r[0]);case 2:return e(r[0],r[1]);case 3:return e(r[0],r[1],r[2]);default:return e.apply(null,r);}}catch(r){return m.e=r,m}},callResolve:function(e,r,t){if("function"!=typeof r)return void e._resolve(t);const s=l(r,t);return s===m?void e._reject(m.e):void i(e,s)},callReject:function(e,r,t){if("function"!=typeof r)return void e._reject(t);const s=l(r,t);return s===m?void e._reject(m.e):void i(e,s)},callReceiver:i,callThen:s,callProxyReciever:function(e,r,t){if(e instanceof n)switch(e._resolved){case 0:return e._addReceiver(r,t),!0;case 1:return r._callResolve(e._value,t),!0;case 2:return e.suppressUnhandledRejections(),r._callReject(e._value),!1;}return e===m?(r._callReject(m.e),!1):(e&&e.then?_(e,r,t):r._callResolve(e,t),!0)},promiseArrayEach:function(e){const{_rest:r,_coll:t}=e;for(let l=-1;++l{r?e._reject(r):e._resolve(t)}}function l(e,r){function l(i){const o=new s(_),a=t(o);let c=arguments.length;switch(c){case 0:e[r](a);break;case 1:e[r](i,a);break;default:const t=Array(c);for(;c--;)t[c]=arguments[c];t[t.length]=a,e[r].apply(e,t);}return o}return l.__isPromisified__=!0,l}function i(e,r){function l(i){const o=new s(_),a=t(o);let c=arguments.length;switch(c){case 0:e.call(r||this,a);break;case 1:e.call(r||this,i,a);break;default:const t=Array(c);for(;c--;)t[c]=arguments[c];t[t.length]=a,e.apply(r||this,t);}return o}return l.__isPromisified__=!0,l}const s=e("./aigle"),{INTERNAL:_}=e("./internal/util");r.exports=function(e,r){switch(typeof e){case"object":switch(typeof r){case"string":case"number":return e[r].__isPromisified__?e[r]:l(e,r);default:throw new TypeError("Second argument is invalid");}case"function":if(e.__isPromisified__)return e;const t=r&&r.context!==void 0?r.context:void 0;return i(e,t);default:throw new TypeError("Type of first argument is not function");}}},{"./aigle":2,"./internal/util":38}],54:[function(e,r){"use strict";function t(e){return /^_/.test(e)}function i(e,r,t,i,_,o){const a={};switch(typeof t){case"function":if(_){const r=`${i}${e}`;if(!_[r])_[r]=s(t);else if(!_[r].__isPromisified__)throw new TypeError(`Cannot promisify an API that has normal methods with '${e}'-suffix`)}l(e,r,t,t,o,a),l(e,r,t.prototype,t.prototype,o,a);break;case"object":l(e,r,t,t,o,a),l(e,r,Object.getPrototypeOf(t),t,o,a);}}function l(e,r,t,s,n,u){if(0!=n--&&t&&o!==t&&a!==t&&c!==t&&!Object.isFrozen(t)){const o=Object.getOwnPropertyNames(t);for(let a=o.length;a--;){const l=o[a];if(!0===_[l]||!0===u[l]||r(l))continue;const c=Object.getOwnPropertyDescriptor(t,l);!c||c.set||c.get||(u[l]=!0,i(e,r,t[l],l,s,n))}}}const s=e("./promisify"),_={constructor:!0,arity:!0,length:!0,name:!0,arguments:!0,caller:!0,callee:!0,prototype:!0,__isPromisified__:!0};r.exports=function(e,r){const{suffix:l="Async",filter:s=t,depth:_=2}=r||{};return i(l,s,e,void 0,void 0,_),e};const o=Function.prototype,a=Object.prototype,c=Array.prototype},{"./promisify":53}],55:[function(e,r){"use strict";function t(e){const r=Object.keys(e);return this._rest=r.length,this._coll=e,this._keys=r,this._callResolve=this._execute,l.call(this),this}function l(){return 0===this._rest?this._promise._resolve(this._result):c(this),this._promise}function i(e){return new n(e)._execute()}const{AigleProxy:s}=e("aigle-core"),_=e("./aigle"),{INTERNAL:o,PENDING:a,promiseObjectEach:c}=e("./internal/util");class n extends s{constructor(e){if(super(),this._promise=new _(o),this._result={},e===a)this._rest=void 0,this._coll=void 0,this._keys=void 0,this._execute=this._callResolve,this._callResolve=t;else{const r=Object.keys(e);this._rest=r.length,this._coll=e,this._keys=r,this._execute=l}}_callResolve(e,r){this._result[r]=e,0==--this._rest&&this._promise._resolve(this._result)}_callReject(e){this._promise._reject(e)}}r.exports={props:i,Props:n},r.exports={props:i,Props:n}},{"./aigle":2,"./internal/util":38,"aigle-core":78}],56:[function(e,r){"use strict";const{Parallel:t}=e("./parallel");class l extends t{constructor(e){super(e),this._result=void 0}_callResolve(e){this._promise._resolve(e)}}r.exports={race:function(e){return new l(e)._execute()},Race:l}},{"./parallel":49}],57:[function(e,r){"use strict";function t(e){return n.call(this,e),void 0===this._keys?(this._iterate=l,this._execute=s):(this._iterate=i,this._execute=_),this}function l(e,r){d(p(this._iterator,r,this._coll[e],e),this,e)}function i(e,r){const t=this._keys[e];d(p(this._iterator,r,this._coll[t],t),this,e)}function s(){return 0===this._rest?this._promise._resolve(this._result):void 0===this._result?this._callResolve(this._coll[0],0):this._iterate(0,this._result),this._promise}function _(){return 0===this._rest?this._promise._resolve(this._result):void 0===this._result?this._callResolve(this._coll[this._keys[0]],0):this._iterate(0,this._result),this._promise}const{AigleProxy:o}=e("aigle-core"),a=e("./aigle"),{execute:c,setSeries:n}=e("./internal/collection"),{INTERNAL:u,PENDING:m,call3:p,callProxyReciever:d}=e("./internal/util");class v extends o{constructor(e,r,l){super(),this._result=l,this._iterator=r,this._promise=new a(u),this._coll=void 0,this._rest=void 0,this._size=void 0,this._keys=void 0,this._iterate=void 0,e===m?(this._set=t,this._iterate=this._callResolve,this._callResolve=c):t.call(this,e)}_callResolve(e,r){0==--this._rest?this._promise._resolve(e):this._iterate(++r,e)}_callReject(e){this._promise._reject(e)}}r.exports={reduce:function(e,r,t){return new v(e,r,t)._execute()},Reduce:v}},{"./aigle":2,"./internal/collection":35,"./internal/util":38,"aigle-core":78}],58:[function(e,r){"use strict";function t(e){return _.call(this,e),this._result=Array(this._rest),this._callResolve=void 0===this._keys?l:i,this}function l(e,r){this._result[r]=e?o:this._coll[r],0==--this._rest&&this._promise._resolve(a(this._result))}function i(e,r){this._result[r]=e?o:this._coll[this._keys[r]],0==--this._rest&&this._promise._resolve(a(this._result))}const{Each:s}=e("./each"),{setShorthand:_}=e("./internal/collection"),{INTERNAL:o,compactArray:a}=e("./internal/util");class c extends s{constructor(e,r){super(e,r,t)}}r.exports={reject:function(e,r){return new c(e,r)._execute()},Reject:c}},{"./each":12,"./internal/collection":35,"./internal/util":38}],59:[function(e,r){"use strict";function t(e){return _.call(this,e),this._result=Array(this._rest),this._callResolve=void 0===this._keys?l:i,this}function l(e,r){this._result[r]=e?o:this._coll[r],0==--this._rest?this._promise._resolve(a(this._result)):0{r?this._callReject(r):this._callReject(new i("operation timed out"))},e)}_callResolve(e){clearTimeout(this._timer),this._promise._resolve(e)}_callReject(e){clearTimeout(this._timer),this._promise._reject(e)}}},{"./aigle":2,"./error":15,"./internal/util":38,"aigle-core":78}],69:[function(e,r){"use strict";function t(e){e=0|+e,1<=e?(this._rest=e,this._result=Array(e)):(this._rest=0,this._result=[])}function l(e){this._callResolve=this._rest,t.call(this,e),this._execute()}const{AigleProxy:i}=e("aigle-core"),s=e("./aigle"),{INTERNAL:_,PENDING:o,defaultIterator:a,call1:c,callProxyReciever:n}=e("./internal/util");class u extends i{constructor(e,r){super(),this._promise=new s(_),this._iterator="function"==typeof r?r:a,this._rest=void 0,this._result=void 0,e===o?(this._rest=this._callResolve,this._callResolve=l):t.call(this,e)}_execute(){if(1<=this._rest){const{_rest:e,_iterator:r}=this;for(let t=-1;++tthis._dispose());case 1:return _(this._handler,this._promise._value);}}}class n extends t{constructor(e,r){super();const t=e.length;this._promise=new l(i),this._rest=t,this._disposed=t,this._array=e,this._error=void 0,this._result=Array(t),this._handler=r;for(let r=-1;++r