summaryrefslogtreecommitdiff
path: root/dist/async.min.js
blob: 6af39a68366a2a639bafbfc5ca8d7b5f57296d63 (plain)
1
2
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.async=n.async||{})}(this,function(n){"use strict";function t(n,t,e){var r=e.length;switch(r){case 0:return n.call(t);case 1:return n.call(t,e[0]);case 2:return n.call(t,e[0],e[1]);case 3:return n.call(t,e[0],e[1],e[2])}return n.apply(t,e)}function e(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function r(n){var t=e(n)?rt.call(n):"";return t==nt||t==tt}function u(n){return!!n&&"object"==typeof n}function i(n){return"symbol"==typeof n||u(n)&&ot.call(n)==ut}function o(n){if("number"==typeof n)return n;if(i(n))return ct;if(e(n)){var t=r(n.valueOf)?n.valueOf():n;n=e(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=n.replace(ft,"");var u=lt.test(n);return u||st.test(n)?pt(n.slice(2),u?2:8):at.test(n)?ct:+n}function c(n){if(!n)return 0===n?n:0;if(n=o(n),n===ht||n===-ht){var t=0>n?-1:1;return t*yt}return n===n?n:0}function f(n){var t=c(n),e=t%1;return t===t?e?t-e:t:0}function a(n,e){if("function"!=typeof n)throw new TypeError(vt);return e=mt(void 0===e?n.length-1:f(e),0),function(){for(var r=arguments,u=-1,i=mt(r.length-e,0),o=Array(i);++u<i;)o[u]=r[e+u];switch(e){case 0:return n.call(this,o);case 1:return n.call(this,r[0],o);case 2:return n.call(this,r[0],r[1],o)}var c=Array(e+1);for(u=-1;++u<e;)c[u]=r[u];return c[e]=o,t(n,this,c)}}function l(n){return a(function(t){var e=t.pop();n.call(this,t,e)})}function s(n){return a(function(t,e){var r=l(function(e,r){var u=this;return n(t,function(n,t){n.apply(u,e.concat([t]))},r)});return e.length?r.apply(this,e):r})}function p(){}function h(n){return function(){if(null!==n){var t=n;n=null,t.apply(this,arguments)}}}function y(n){return function(t){return null==t?void 0:t[n]}}function v(n){return"number"==typeof n&&n>-1&&n%1==0&&gt>=n}function m(n){return null!=n&&v(dt(n))&&!r(n)}function d(n){return bt&&n[bt]&&n[bt]()}function g(n){return St(Object(n))}function b(n,t){return null!=n&&(kt.call(n,t)||"object"==typeof n&&t in n&&null===g(n))}function S(n){return wt(Object(n))}function j(n,t){for(var e=-1,r=Array(n);++e<n;)r[e]=t(e);return r}function k(n){return u(n)&&m(n)}function w(n){return k(n)&&Lt.call(n,"callee")&&(!At.call(n,"callee")||Ot.call(n)==xt)}function x(n){return"string"==typeof n||!It(n)&&u(n)&&Ft.call(n)==_t}function E(n){var t=n?n.length:void 0;return v(t)&&(It(n)||x(n)||w(n))?j(t,String):null}function L(n,t){return t=null==t?$t:t,!!t&&("number"==typeof n||zt.test(n))&&n>-1&&n%1==0&&t>n}function O(n){var t=n&&n.constructor,e="function"==typeof t&&t.prototype||Bt;return n===e}function A(n){var t=O(n);if(!t&&!m(n))return S(n);var e=E(n),r=!!e,u=e||[],i=u.length;for(var o in n)!b(n,o)||r&&("length"==o||L(o,i))||t&&"constructor"==o||u.push(o);return u}function I(n){var t,e=-1;if(m(n))return t=n.length,function(){return e++,t>e?{value:n[e],key:e}:null};var r=d(n);if(r)return function(){var n=r.next();return n.done?null:(e++,{value:n.value,key:e})};var u=A(n);return t=u.length,function(){e++;var r=u[e];return t>e?{value:n[r],key:r}:null}}function _(n){return function(){if(null===n)throw new Error("Callback was already called.");var t=n;n=null,t.apply(this,arguments)}}function T(n){return function(t,e,r){r=h(r||p),t=t||[];var u=I(t);if(0>=n)return r(null);var i=!1,o=0,c=!1;!function f(){if(i&&0>=o)return r(null);for(;n>o&&!c;){var t=u();if(null===t)return i=!0,void(0>=o&&r(null));o+=1,e(t.value,t.key,_(function(n){o-=1,n?(r(n),c=!0):f()}))}}()}}function F(n){return function(t,e,r,u){return n(T(e),t,r,u)}}function $(n,t,e,r){r=h(r||p),t=t||[];var u=[],i=0;n(t,function(n,t,r){var o=i++;e(n,function(n,t){u[o]=t,r(n)})},function(n){r(n,u)})}function z(n,t){return function(e,r,u){return n(e,t,r,u)}}function B(n){return l(function(t,r){var u;try{u=n.apply(this,t)}catch(i){return r(i)}e(u)&&"function"==typeof u.then?u.then(function(n){r(null,n)},function(n){r(n.message?n:new Error(n))}):r(null,u)})}function M(n,t){for(var e=-1,r=n?n.length:0;++e<r&&t(n[e],e,n)!==!1;);return n}function V(n){return function(t,e,r){for(var u=-1,i=Object(t),o=r(t),c=o.length;c--;){var f=o[n?c:++u];if(e(i[f],f,i)===!1)break}return t}}function q(n,t){return n&&Rt(n,t,A)}function C(n,t,e){for(var r=n.length,u=t+(e?1:-1);e?u--:++u<r;){var i=n[u];if(i!==i)return u}return-1}function D(n,t,e){if(t!==t)return C(n,e);for(var r=e-1,u=n.length;++r<u;)if(n[r]===t)return r;return-1}function P(n,t,e){function r(n,t){b.push(function(){c(n,t)})}function u(){if(0===b.length&&0===m)return e(null,v);for(;b.length&&t>m;){var n=b.shift();n()}}function i(n,t){var e=g[n];e||(e=g[n]=[]),e.push(t)}function o(n){var t=g[n]||[];M(t,function(n){n()}),u()}function c(n,t){if(!d){var r=_(a(function(t,r){if(m--,r.length<=1&&(r=r[0]),t){var u={};q(v,function(n,t){u[t]=n}),u[n]=r,d=!0,g=[],e(t,u)}else v[n]=r,o(n)}));m++;var u=t[t.length-1];t.length>1?u(v,r):u(r)}}function f(){for(var n,t=0;S.length;)n=S.pop(),t++,M(l(n),function(n){--j[n]||S.push(n)});if(t!==y)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function l(t){var e=[];return q(n,function(n,r){It(n)&&D(n,t,0)>=0&&e.push(r)}),e}"function"==typeof t&&(e=t,t=null),e=h(e||p);var s=A(n),y=s.length;if(!y)return e(null);t||(t=y);var v={},m=0,d=!1,g={},b=[],S=[],j={};q(n,function(t,e){if(!It(t))return r(e,[t]),void S.push(e);var u=t.slice(0,t.length-1),o=u.length;return 0===o?(r(e,t),void S.push(e)):(j[e]=o,void M(u,function(c){if(!n[c])throw new Error("async.auto task `"+e+"` has a non-existent dependency in "+u.join(", "));i(c,function(){o--,0===o&&r(e,t)})}))}),f(),u()}function R(n,t){for(var e=-1,r=n?n.length:0,u=Array(r);++e<r;)u[e]=t(n[e],e,n);return u}function U(n,t){var e=-1,r=n.length;for(t||(t=Array(r));++e<r;)t[e]=n[e];return t}function N(n){return n&&n.Object===Object?n:null}function Q(n){if("string"==typeof n)return n;if(i(n))return Kt?Kt.call(n):"";var t=n+"";return"0"==t&&1/n==-Ht?"-0":t}function W(n,t,e){var r=-1,u=n.length;0>t&&(t=-t>u?0:u+t),e=e>u?u:e,0>e&&(e+=u),u=t>e?0:e-t>>>0,t>>>=0;for(var i=Array(u);++r<u;)i[r]=n[r+t];return i}function G(n,t,e){var r=n.length;return e=void 0===e?r:e,!t&&e>=r?n:W(n,t,e)}function H(n,t){for(var e=n.length;e--&&D(t,n[e],0)>-1;);return e}function J(n,t){for(var e=-1,r=n.length;++e<r&&D(t,n[e],0)>-1;);return e}function K(n){return n.match(ye)}function X(n){return null==n?"":Q(n)}function Y(n,t,e){if(n=X(n),n&&(e||void 0===t))return n.replace(ve,"");if(!n||!(t=Q(t)))return n;var r=K(n),u=K(t),i=J(r,u),o=H(r,u)+1;return G(r,i,o).join("")}function Z(n){return n=n.toString().replace(be,""),n=n.match(me)[2].replace(" ",""),n=n?n.split(de):[],n=n.map(function(n){return Y(n.replace(ge,""))})}function nn(n,t){var e={};q(n,function(n,t){function r(t,e){var r=R(u,function(n){return t[n]});r.push(e),n.apply(null,r)}var u;if(It(n))u=U(n),n=u.pop(),e[t]=u.concat(u.length>0?r:n);else if(1===n.length)e[t]=n;else{if(u=Z(n),0===n.length&&0===u.length)throw new Error("autoInject task functions require explicit parameters.");u.pop(),e[t]=u.concat(r)}}),P(e,t)}function tn(n){setTimeout(n,0)}function en(n){return a(function(t,e){n(function(){t.apply(null,e)})})}function rn(){this.head=this.tail=null,this.length=0}function un(n,t){n.length=1,n.head=n.tail=t}function on(n,t,e){function r(n,t,e){if(null!=e&&"function"!=typeof e)throw new Error("task callback must be a function");return c.started=!0,It(n)||(n=[n]),0===n.length&&c.idle()?ke(function(){c.drain()}):(M(n,function(n){var r={data:n,callback:e||p};t?c._tasks.unshift(r):c._tasks.push(r)}),void ke(c.process))}function u(n){return a(function(t){i-=1,M(n,function(n){M(o,function(t,e){return t===n?(o.splice(e,1),!1):void 0}),n.callback.apply(n,t),null!=t[0]&&c.error(t[0],n.data)}),i<=c.concurrency-c.buffer&&c.unsaturated(),c.idle()&&c.drain(),c.process()})}if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var i=0,o=[],c={_tasks:new rn,concurrency:t,payload:e,saturated:p,unsaturated:p,buffer:t/4,empty:p,drain:p,error:p,started:!1,paused:!1,push:function(n,t){r(n,!1,t)},kill:function(){c.drain=p,c._tasks.empty()},unshift:function(n,t){r(n,!0,t)},process:function(){for(;!c.paused&&i<c.concurrency&&c._tasks.length;){var t=[],e=[],r=c._tasks.length;c.payload&&(r=Math.min(r,c.payload));for(var f=0;r>f;f++){var a=c._tasks.shift();t.push(a),e.push(a.data)}0===c._tasks.length&&c.empty(),i+=1,o.push(t[0]),i===c.concurrency&&c.saturated();var l=_(u(t));n(e,l)}},length:function(){return c._tasks.length},running:function(){return i},workersList:function(){return o},idle:function(){return c._tasks.length+i===0},pause:function(){c.paused=!0},resume:function(){if(c.paused!==!1){c.paused=!1;for(var n=Math.min(c.concurrency,c._tasks.length),t=1;n>=t;t++)ke(c.process)}}};return c}function cn(n,t){return on(n,1,t)}function fn(n,t,e,r){T(t)(n,e,r)}function an(n,t,e,r){xe(n,function(n,r,u){e(t,n,function(n,e){t=e,u(n)})},function(n){r(n,t)})}function ln(n,t,e,r){var u=[];n(t,function(n,t,r){e(n,function(n,t){u=u.concat(t||[]),r(n)})},function(n){r(n,u)})}function sn(n){return function(t,e,r){return n(Oe,t,e,r)}}function pn(n){return function(t,e,r){return n(xe,t,e,r)}}function hn(n){return n}function yn(n,t,e){return function(r,u,i,o){function c(n){o&&(n?o(n):o(null,e(!1)))}function f(n,r,u){return o?void i(n,function(r,c){o&&(r?(o(r),o=i=!1):t(c)&&(o(null,e(!0,n)),o=i=!1)),u()}):u()}arguments.length>3?(o=o||p,n(r,u,f,c)):(o=i,o=o||p,i=u,n(r,f,c))}}function vn(n,t){return t}function mn(n){return a(function(t,e){t.apply(null,e.concat([a(function(t,e){"object"==typeof console&&(t?console.error&&console.error(t):console[n]&&M(e,function(t){console[n](t)}))})]))})}function dn(n,t,e){e=e||p;var r=a(function(t,r){t?e(t):(r.push(u),n.apply(this,r))}),u=function(n,u){return n?e(n):u?void t(r):e(null)};n(u)}function gn(n,t,e){var r=0;dn(function(n){return r++<1?n(null,!0):void t.apply(this,arguments)},n,e)}function bn(n,t,e){if(e=e||p,!n())return e(null);var r=a(function(u,i){return u?e(u):n.apply(this,i)?t(r):void e.apply(null,[null].concat(i))});t(r)}function Sn(n,t,e){var r=0;bn(function(){return++r<=1||t.apply(this,arguments)},n,e)}function jn(n,t,e){Sn(n,function(){return!t.apply(this,arguments)},e)}function kn(n){return function(t,e,r){return n(t,r)}}function wn(n,t,e,r){T(t)(n,kn(e),r)}function xn(n){return l(function(t,e){var r=!0;t.push(function(){var n=arguments;r?ke(function(){e.apply(null,n)}):e.apply(null,n)}),n.apply(this,t),r=!1})}function En(n){return!n}function Ln(n,t,e,r){var u=[];n(t,function(n,t,r){e(n,function(e,i){e?r(e):(i&&u.push({index:t,value:n}),r())})},function(n){n?r(n):r(null,R(u.sort(function(n,t){return n.index-t.index}),y("value")))})}function On(n,t){function e(n){return n?r(n):void u(e)}var r=_(t||p),u=xn(n);e()}function An(n){function t(e){function r(){return n.length&&n[e].apply(null,arguments),r.next()}return r.next=function(){return e<n.length-1?t(e+1):null},r}return t(0)}function In(n,t,e,r){var u={};fn(n,t,function(n,t,r){e(n,t,function(n,e){return n?r(n):(u[t]=e,void r())})},function(n){r(n,u)})}function _n(n,t){return t in n}function Tn(n,t){var e=Object.create(null),r=Object.create(null);t=t||hn;var u=l(function(u,i){var o=t.apply(null,u);_n(e,o)?ke(function(){i.apply(null,e[o])}):_n(r,o)?r[o].push(i):(r[o]=[i],n.apply(null,u.concat([a(function(n){e[o]=n;var t=r[o];delete r[o];for(var u=0,i=t.length;i>u;u++)t[u].apply(null,n)})])))});return u.memo=e,u.unmemoized=n,u}function Fn(n,t,e){e=e||p;var r=m(t)?[]:{};n(t,function(n,t,e){n(a(function(n,u){u.length<=1&&(u=u[0]),r[t]=u,e(n)}))},function(n){e(n,r)})}function $n(n,t,e){Fn(T(t),n,e)}function zn(n,t){return on(function(t,e){n(t[0],e)},t,1)}function Bn(n,t){var e=zn(n,t);return e.push=function(n,t,r){if(null==r&&(r=p),"function"!=typeof r)throw new Error("task callback must be a function");if(e.started=!0,It(n)||(n=[n]),0===n.length)return ke(function(){e.drain()});for(var u=e._tasks.head;u&&t>=u.priority;)u=u.next;M(n,function(n){var i={data:n,priority:t,callback:r};u?e._tasks.insertBefore(u,i):e._tasks.push(i)}),ke(e.process)},delete e.unshift,e}function Mn(n,t){return t=h(t||p),It(n)?n.length?void M(n,function(n){n(t)}):t():t(new TypeError("First argument to race must be an array of functions"))}function Vn(n,t,e,r){var u=He.call(n).reverse();an(u,t,e,r)}function qn(n){return l(function(t,e){return t.push(a(function(n,t){if(n)e(null,{error:n});else{var r=null;1===t.length?r=t[0]:t.length>1&&(r=t),e(null,{value:r})}})),n.apply(this,t)})}function Cn(n,t,e,r){Ln(n,t,function(n,t){e(n,function(n,e){n?t(n):t(null,!e)})},r)}function Dn(n){var t;return It(n)?t=R(n,qn):(t={},q(n,function(n,e){t[e]=qn.call(this,n)})),t}function Pn(n,t){Fn(xe,n,t)}function Rn(n){return function(){return n}}function Un(n,t,e){function r(n,t){if("object"==typeof t)n.times=+t.times||o,n.intervalFunc="function"==typeof t.interval?t.interval:Rn(+t.interval||c);else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");n.times=+t||o}}function u(n){return function(e){t(function(t,r){e(!t||n,{err:t,result:r})})}}function i(n){return function(t){setTimeout(function(){t(null)},n)}}var o=5,c=0,f={times:o,intervalFunc:Rn(c)};if(arguments.length<3&&"function"==typeof n?(e=t||p,t=n):(r(f,n),e=e||p),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");for(var a=[],l=1;l<f.times+1;l++){var s=l==f.times;a.push(u(s));var h=f.intervalFunc(l);!s&&h>0&&a.push(i(h))}Pn(a,function(n,t){t=t[t.length-1],e(t.err,t.result)})}function Nn(n,t){return t||(t=n,n=null),l(function(e,r){function u(n){t.apply(null,e.concat([n]))}n?Un(n,u,r):Un(u,r)})}function Qn(n,t,e){function r(n,t){var e=n.criteria,r=t.criteria;return r>e?-1:e>r?1:0}Vt(n,function(n,e){t(n,function(t,r){return t?e(t):void e(null,{value:n,criteria:r})})},function(n,t){return n?e(n):void e(null,R(t.sort(r),y("value")))})}function Wn(n,t,e){function r(){c||(i.apply(null,arguments),clearTimeout(o))}function u(){var t=n.name||"anonymous",r=new Error('Callback function "'+t+'" timed out.');r.code="ETIMEDOUT",e&&(r.info=e),c=!0,i(r)}var i,o,c=!1;return l(function(e,c){i=c,o=setTimeout(u,t),n.apply(null,e.concat(r))})}function Gn(n,t,e,r){for(var u=-1,i=er(tr((t-n)/(e||1)),0),o=Array(i);i--;)o[r?i:++u]=n,n+=e;return o}function Hn(n,t,e,r){Mt(Gn(0,n,1),t,e,r)}function Jn(n,t,e,r){3===arguments.length&&(r=e,e=t,t=It(n)?[]:{}),Oe(n,function(n,r,u){e(t,n,r,u)},function(n){r(n,t)})}function Kn(n){return function(){return(n.unmemoized||n).apply(null,arguments)}}function Xn(n,t,e){bn(function(){return!n.apply(this,arguments)},t,e)}function Yn(n,t){function e(u){if(r===n.length)return t.apply(null,[null].concat(u));var i=_(a(function(n,r){return n?t.apply(null,[n].concat(r)):void e(r)}));u.push(i);var o=n[r++];o.apply(null,u)}if(t=h(t||p),!It(n))return t(new Error("First argument to waterfall must be an array of functions"));if(!n.length)return t();var r=0;e([])}var Zn,nt="[object Function]",tt="[object GeneratorFunction]",et=Object.prototype,rt=et.toString,ut="[object Symbol]",it=Object.prototype,ot=it.toString,ct=NaN,ft=/^\s+|\s+$/g,at=/^[-+]0x[0-9a-f]+$/i,lt=/^0b[01]+$/i,st=/^0o[0-7]+$/i,pt=parseInt,ht=1/0,yt=1.7976931348623157e308,vt="Expected a function",mt=Math.max,dt=y("length"),gt=9007199254740991,bt="function"==typeof Symbol&&Symbol.iterator,St=Object.getPrototypeOf,jt=Object.prototype,kt=jt.hasOwnProperty,wt=Object.keys,xt="[object Arguments]",Et=Object.prototype,Lt=Et.hasOwnProperty,Ot=Et.toString,At=Et.propertyIsEnumerable,It=Array.isArray,_t="[object String]",Tt=Object.prototype,Ft=Tt.toString,$t=9007199254740991,zt=/^(?:0|[1-9]\d*)$/,Bt=Object.prototype,Mt=F($),Vt=z(Mt,1/0),qt=s(Vt),Ct=z(Mt,1),Dt=s(Ct),Pt=a(function(n,t){return a(function(e){return n.apply(null,t.concat(e))})}),Rt=V(),Ut=N("object"==typeof global&&global),Nt=N("object"==typeof self&&self),Qt=N("object"==typeof this&&this),Wt=Ut||Nt||Qt||Function("return this")(),Gt=Wt.Symbol,Ht=1/0,Jt=Gt?Gt.prototype:void 0,Kt=Jt?Jt.toString:void 0,Xt="\\ud800-\\udfff",Yt="\\u0300-\\u036f\\ufe20-\\ufe23",Zt="\\u20d0-\\u20f0",ne="\\ufe0e\\ufe0f",te="["+Xt+"]",ee="["+Yt+Zt+"]",re="\\ud83c[\\udffb-\\udfff]",ue="(?:"+ee+"|"+re+")",ie="[^"+Xt+"]",oe="(?:\\ud83c[\\udde6-\\uddff]){2}",ce="[\\ud800-\\udbff][\\udc00-\\udfff]",fe="\\u200d",ae=ue+"?",le="["+ne+"]?",se="(?:"+fe+"(?:"+[ie,oe,ce].join("|")+")"+le+ae+")*",pe=le+ae+se,he="(?:"+[ie+ee+"?",ee,oe,ce,te].join("|")+")",ye=RegExp(re+"(?="+re+")|"+he+pe,"g"),ve=/^\s+|\s+$/g,me=/^(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,de=/,/,ge=/(=.+)?(\s*)$/,be=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Se="function"==typeof setImmediate&&setImmediate,je="object"==typeof process&&"function"==typeof process.nextTick;Zn=Se?setImmediate:je?process.nextTick:tn;var ke=en(Zn);rn.prototype.removeLink=function(n){return n.prev?n.prev.next=n.next:this.head=n.next,n.next?n.next.prev=n.prev:this.tail=n.prev,n.prev=n.next=null,this.length-=1,n},rn.prototype.empty=rn,rn.prototype.insertAfter=function(n,t){t.prev=n,t.next=n.next,n.next?n.next.prev=t:this.tail=t,n.next=t,this.length+=1},rn.prototype.insertBefore=function(n,t){t.prev=n.prev,t.next=n,n.prev?n.prev.next=t:this.head=t,n.prev=t,this.length+=1},rn.prototype.unshift=function(n){this.head?this.insertBefore(this.head,n):un(this,n)},rn.prototype.push=function(n){this.tail?this.insertAfter(this.tail,n):un(this,n)},rn.prototype.shift=function(){return this.head&&this.removeLink(this.head)},rn.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)};var we,xe=z(fn,1),Ee=a(function(n){return a(function(t){var e=this,r=t[t.length-1];"function"==typeof r?t.pop():r=p,an(n,t,function(n,t,r){t.apply(e,n.concat([a(function(n,t){r(n,t)})]))},function(n,t){r.apply(e,[n].concat(t))})})}),Le=a(function(n){return Ee.apply(null,n.reverse())}),Oe=z(fn,1/0),Ae=sn(ln),Ie=pn(ln),_e=a(function(n){var t=[null].concat(n);return l(function(n,e){return e.apply(this,t)})}),Te=yn(Oe,hn,vn),Fe=yn(fn,hn,vn),$e=yn(xe,hn,vn),ze=mn("dir"),Be=z(wn,1/0),Me=z(wn,1),Ve=yn(fn,En,En),qe=z(Ve,1/0),Ce=z(Ve,1),De=F(Ln),Pe=z(De,1/0),Re=z(De,1),Ue=mn("log"),Ne=z(In,1/0),Qe=z(In,1);we=je?process.nextTick:Se?setImmediate:tn;var We=en(we),Ge=z($n,1/0),He=Array.prototype.slice,Je=F(Cn),Ke=z(Je,1/0),Xe=z(Je,1),Ye=yn(fn,Boolean,hn),Ze=z(Ye,1/0),nr=z(Ye,1),tr=Math.ceil,er=Math.max,rr=z(Hn,1/0),ur=z(Hn,1),ir={applyEach:qt,applyEachSeries:Dt,apply:Pt,asyncify:B,auto:P,autoInject:nn,cargo:cn,compose:Le,concat:Ae,concatSeries:Ie,constant:_e,detect:Te,detectLimit:Fe,detectSeries:$e,dir:ze,doDuring:gn,doUntil:jn,doWhilst:Sn,during:dn,each:Be,eachLimit:wn,eachOf:Oe,eachOfLimit:fn,eachOfSeries:xe,eachSeries:Me,ensureAsync:xn,every:qe,everyLimit:Ve,everySeries:Ce,filter:Pe,filterLimit:De,filterSeries:Re,forever:On,iterator:An,log:Ue,map:Vt,mapLimit:Mt,mapSeries:Ct,mapValues:Ne,mapValuesLimit:In,mapValuesSeries:Qe,memoize:Tn,nextTick:We,parallel:Ge,parallelLimit:$n,priorityQueue:Bn,queue:zn,race:Mn,reduce:an,reduceRight:Vn,reflect:qn,reflectAll:Dn,reject:Ke,rejectLimit:Je,rejectSeries:Xe,retry:Un,retryable:Nn,seq:Ee,series:Pn,setImmediate:ke,some:Ze,someLimit:Ye,someSeries:nr,sortBy:Qn,timeout:Wn,times:rr,timesLimit:Hn,timesSeries:ur,transform:Jn,unmemoize:Kn,until:Xn,waterfall:Yn,whilst:bn,all:qe,any:Ze,forEach:Be,forEachSeries:Me,forEachLimit:wn,forEachOf:Oe,forEachOfSeries:xe,forEachOfLimit:fn,inject:an,foldl:an,foldr:Vn,select:Pe,selectLimit:De,selectSeries:Re,wrapSync:B};n["default"]=ir,n.applyEach=qt,n.applyEachSeries=Dt,n.apply=Pt,n.asyncify=B,n.auto=P,n.autoInject=nn,n.cargo=cn,n.compose=Le,n.concat=Ae,n.concatSeries=Ie,n.constant=_e,n.detect=Te,n.detectLimit=Fe,n.detectSeries=$e,n.dir=ze,n.doDuring=gn,n.doUntil=jn,n.doWhilst=Sn,n.during=dn,n.each=Be,n.eachLimit=wn,n.eachOf=Oe,n.eachOfLimit=fn,n.eachOfSeries=xe,n.eachSeries=Me,n.ensureAsync=xn,n.every=qe,n.everyLimit=Ve,n.everySeries=Ce,n.filter=Pe,n.filterLimit=De,n.filterSeries=Re,n.forever=On,n.iterator=An,n.log=Ue,n.map=Vt,n.mapLimit=Mt,n.mapSeries=Ct,n.mapValues=Ne,n.mapValuesLimit=In,n.mapValuesSeries=Qe,n.memoize=Tn,n.nextTick=We,n.parallel=Ge,n.parallelLimit=$n,n.priorityQueue=Bn,n.queue=zn,n.race=Mn,n.reduce=an,n.reduceRight=Vn,n.reflect=qn,n.reflectAll=Dn,n.reject=Ke,n.rejectLimit=Je,n.rejectSeries=Xe,n.retry=Un,n.retryable=Nn,n.seq=Ee,n.series=Pn,n.setImmediate=ke,n.some=Ze,n.someLimit=Ye,n.someSeries=nr,n.sortBy=Qn,n.timeout=Wn,n.times=rr,n.timesLimit=Hn,n.timesSeries=ur,n.transform=Jn,n.unmemoize=Kn,n.until=Xn,n.waterfall=Yn,n.whilst=bn,n.all=qe,n.allLimit=Ve,n.allSeries=Ce,n.any=Ze,n.anyLimit=Ye,n.anySeries=nr,n.find=Te,n.findLimit=Fe,n.findSeries=$e,n.forEach=Be,n.forEachSeries=Me,n.forEachLimit=wn,n.forEachOf=Oe,n.forEachOfSeries=xe,n.forEachOfLimit=fn,n.inject=an,n.foldl=an,n.foldr=Vn,n.select=Pe,n.selectLimit=De,n.selectSeries=Re,n.wrapSync=B});
//# sourceMappingURL=async.min.map