!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?t(exports):"function"==typeofdefine&&define.amd?define(["exports"],t):t(e.async=e.async||{})}(this,function(exports){"use strict";functionapply(e,t,r){switch(r.length){case0:returne.call(t);case1:returne.call(t,r[0]);case2:returne.call(t,r[0],r[1]);case3:returne.call(t,r[0],r[1],r[2])}returne.apply(t,r)}functionoverRest$1(e,t,r){returnt=nativeMax(void0===t?e.length-1:t,0),function(){for(varn=arguments,o=-1,i=nativeMax(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(vars=Array(t+1);++o<t;)s[o]=n[o];returns[t]=r(a),apply(e,this,s)}}functionidentity(e){returne}functionrest(e,t){returnoverRest$1(e,t,identity)}functionisObject(e){vart=typeofe;returnnull!=e&&("object"==t||"function"==t)}functionasyncify(e){returninitialParams(function(t,r){varn;try{n=e.apply(this,t)}catch(e){returnr(e)}isObject(n)&&"function"==typeofn.then?n.then(function(e){r(null,e)},function(e){r(e.message?e:newError(e))}):r(null,n)})}functionsupportsAsync(){varsupported;try{supported=isAsync(eval("(async function () {})"))}catch(e){supported=!1}returnsupported}functionisAsync(e){returnsupportsSymbol&&"AsyncFunction"===e[Symbol.toStringTag]}functionwrapAsync(e){returnisAsync(e)?asyncify(e):e}functionapplyEach$1(e){returnrest(function(t,r){varn=initialParams(function(r,n){varo=this;returne(t,function(e,t){wrapAsync$1(e).apply(o,r.concat(t))},n)});returnr.length?n.apply(this,r):n})}functiongetRawTag(e){vart=hasOwnProperty.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void0;varn=!0}catch(e){}varo=nativeObjectToString.call(e);returnn&&(t?e[symToStringTag$1]=r:deletee[symToStringTag$1]),o}functionobjectToString(e){returnnativeObjectToString$1.call(e)}functionbaseGetTag(e){returnnull==e?void0===e?undefinedTag:nullTag:(e=Object(e),symToStringTag&&symToStringTagine?getRawTag(e):objectToString(e))}functionisFunction(e){if(!isObject(e))return!1;vart=baseGetTag(e);returnt==funcTag||t==genTag||t==asyncTag||t==proxyTag}functionisLength(e){return"number"==typeofe&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER}functionisArrayLike(e){returnnull!=e&&isLength(e.length)&&!isFunction(e)}functionnoop(){}functiononce(e){returnfunction(){if(null!==e){vart=e;e=null,t.apply(this,arguments)}}}functionbaseTimes(e,t){for(varr=-1,n=Array(e);++r<e;)n[r]=t(r);returnn}functionisObjectLike(e){returnnull!=e&&"object"==typeofe}functionbaseIsArguments(e){returnisObjectLike(e)&&baseGetTag(e)==argsTag}functionstubFalse(){return!1}functionisIndex(e,t){returnt=null==t?MAX_SAFE_INTEGER$1:t,!!t&&("number"==typeofe||reIsUint.test(e))&&e>-1&&e%1==0&&e<t}functionbaseIsTypedArray(e){returnisObjectLike(e)&&isLength(e.length)&&!!typedArrayTags[baseGetTag(e)]}functionbaseUnary(e){returnfunction(t){returne(t)}}functionarrayLikeKeys(e,t){varr=isArray(e),n=!r&&isArguments(e),o=!r&&!n&&isBuffer(e),i=!r&&!n&&!o&&isTypedArray(e),a=r||n||o||i,s=a?baseTimes(e.length,String):[],c=s.length;for(varuine)!t&&!hasOwnProperty$1.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||isIndex(u,c))||s.push(u);returns}functionisPrototype(e){vart=e&&e.constructor,r="function"==typeoft&&t.prototype||objectProto$5;returne===r}functionoverArg(e,t){returnfunction(r){returne(t(r))}}functionbaseKeys(e){if(!isPrototype(e))returnnativeKeys(e);vart=[];for(varrinObject(e))hasOwnProperty$3.call(e,r)&&"constructor"!=r&&t.push(r);returnt}functionkeys(e){returnisArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}functioncreateArrayIterator(e){vart=-1,r=e.length;returnfunction(){return++t<r?{value:e[t],key:t}:null}}functioncreateES2015Iterator(e){vart=-1;returnfunction(){varr=e.next();returnr.done?null:(t++,{value:r.value,key:t})}}functioncreateObjectIterator(e){vart=keys(e),r=-1,n=t.length;returnfunction(){varo=t[++r];returnr<n?{value:e[o],key:o}:null}}functioniterator(e){if(isArrayLike(e))returncreateArrayIterator(e);vart=getIterator(e);returnt?createES2015Iterator(t):createObjectIte