Comparing version 1.8.0 to 1.8.1
@@ -54,31 +54,31 @@ (function(){function G(b){for(var d=-1,c=b.length,a=Array(c);++d<c;)a[d]=b[d];return a}function H(b,d){var c=-1,a=b.length-d;if(0>=a)return[];for(var e=Array(a);++c<a;)e[c]=b[c+d];return e}function S(b){for(var d=-1,c=b.length,a=[];++d<c;){var e=b[d];e&&(a[a.length]=e)}return a}function Wb(b){for(var d=-1,c=b.length,a=Array(c),e=c;++d<c;)a[--e]=b[d];return a}function Aa(b,d,c){var a=-1,e=b.length;if(3===d.length)for(;++a<e;)d(b[a],a,E(c));else for(;++a<e;)d(b[a],E(c))}function Ba(b,d,c,a){var e,f= | ||
drain:x,started:!1,paused:!1,push:function(a,b,d){c(a,b,d)},kill:function(){f.drain=x;f.tasks=[]},process:function(){function b(){a--;l.active=!1;c.callback&&c.callback.apply(c,G(arguments));"function"===typeof f.drain&&f.idle()&&f.drain();d?C.nextTick(f.process):f.process()}if(!(f.paused||a>=f.concurrency)&&f.length()){var c=f.tasks.shift();"function"!==typeof f.empty||f.length()||f.empty();a++;var d=!0,l={task:c,active:!0};e[e.length]=l;f._worker(c.data,E(b));d=!1}},length:function(){return f.tasks.length}, | ||
running:function(){return a},idle:function(){return 0===f.length()+a},pause:function(){f.paused=!0},resume:function(){!1!==f.paused&&(f.paused=!1,I(f.concurrency,function(){C.setImmediate(f.process)}))},_worker:b};return f}function pb(b,d){var c=0,a=[],e={tasks:[],workersList:function(){for(var b=-1,c=-1,d=a.length,e=[],l=[];++b<d;){var n=a[b];n.active&&(e[++c]=n,l[c]=n.task)}a=e;return l},payload:d,saturated:x,empty:x,drain:x,drained:!0,push:function(a,b){a=Array.isArray(a)?a:[a];b="function"=== | ||
typeof b?b:x;J(a,function(a){e.tasks.push({data:a,callback:b});e.drained=!1;"function"===typeof e.saturated&&e.length()===e.payload&&e.saturated()});C.nextTick(e.process)},process:function(){if(!c)if(e.length()){var f="number"===typeof e.payload?e.tasks.splice(0,d):e.tasks;e.length()||"function"!==typeof e.empty||e.empty();for(var g=-1,k=f.length,r=Array(k),l=Array(k);++g<k;){var n=f[g];r[g]=n.data;n={task:n,active:!0};l[g]=n;a[a.length]=n}c++;b(r,function(){c--;var a=G(arguments);J(l,function(b){b.active= | ||
!1;(b=b.task.callback)&&b.apply(null,a)});e.process()})}else"function"!==typeof e.drain||e.drained||e.drain(),e.drained=!0},length:function(){return e.tasks.length},running:function(){return c}};return e}function qb(b,d,c){function a(a){r.unshift(a)}function e(){g--;J(r.slice(0),function(a){a()})}"function"===typeof d&&(c=d,d=null);c=E(c||x);var f=Object.keys(b),g=f.length;if(!g)return c();d||(d=g);var k=0,r=[],l={};a(function(){g||c(void 0,l)});N(b,function(b,f){function g(a){w&&z();w=!0;k--;var b= | ||
H(arguments,1);1>=b.length&&(b=b[0]);if(a){var d=K(l);d[f]=b;c(a,d);c=x}else l[f]=b,C.nextTick(e)}function p(){return k<d&&!l.hasOwnProperty(f)&&Xb(t,function(a){return l.hasOwnProperty(a)})}function m(){if(p()){k++;var a;a:{a=-1;for(var b=r.length;++a<b;)if(r[a]===m)break a;a=void 0}0<=a&&r.splice(a,1);u(g,l)}}b=Array.isArray(b)?b:[b];var w=!1,s=b.length,t=b.slice(0,s-1),u=b[s-1];if(c!==x&&p())return k++,u(g,l);a(m)},f)}function rb(b,d,c){function a(a,f){c=a||c||x;var g,k;wa(b,function(a,c){d(function(d, | ||
e){g=d;k=e;if(!d)return c(!0);c(d&&a===b-1)},f)},function(){c(g,k)})}"function"===typeof b&&(c=d,d=b,b=5);b=parseInt(b,10)||5;return"function"===typeof c?a():a}function sb(b){function d(e){var f=function(){c&&b[a[e]||e].apply(null,G(arguments));return f.next()};f.next=function(){return e<c-1?d(e+1):null};return f}var c=0,a=[];Array.isArray(b)?c=b.length:(a=Object.keys(b),c=a.length);return d(0)}function tb(b){switch(arguments.length){case 0:case 1:return b;case 2:return b.bind(null,arguments[1]); | ||
case 3:return b.bind(null,arguments[1],arguments[2]);case 4:return b.bind(null,arguments[1],arguments[2],arguments[3]);case 5:return b.bind(null,arguments[1],arguments[2],arguments[3],arguments[4]);default:var d=arguments.length,c=0,a=Array(d);for(a[c]=null;++c<d;)a[c]=arguments[c];return b.bind.apply(b,a)}}function ub(b,d){function c(){var a=Error("Callback function time out.");a.code="ETIMEDOUT";g=null;f(a)}function a(){null!==g&&(e(f,G(arguments)),clearTimeout(g))}function e(a,b){switch(b.length){case 0:a(); | ||
break;case 1:a(b[0]);break;case 2:a(b[0],b[1]);break;default:a.apply(null,b)}}var f,g;return function(){g=setTimeout(c,d);var k=G(arguments),r=k.length-1;f=k[r];k[r]=a;e(b,k)}}function vb(b,d,c){function a(a){return function(d,k){null===a&&z();e[a]=k;a=null;d?(c(d),c=x):0===--b&&c(void 0,e)}}c=c||x;b=+b;if(isNaN(b)||1>b)return c(void 0,[]);var e=Array(b);I(b,function(b){d(b,a(b))})}function wa(b,d,c){function a(){d(k,e)}function e(d,e){f[k]=e;d?(c(d),c=z):++k>=b?(c(void 0,f),c=z):g?C.nextTick(a): | ||
(g=!0,a());g=!1}c=c||x;b=+b;if(isNaN(b)||1>b)return c(void 0,[]);var f=Array(b),g=!0,k=0;a();g=!1}function wb(b,d,c,a){function e(){var a=r++;a<b&&c(a,f(a))}function f(c){return function(d,f){null===c&&z();g[c]=f;c=null;d?(a(d),a=x):++l>=b?(a(void 0,g),a=z):k?C.nextTick(e):(k=!0,e());k=!1}}a=a||x;b=+b;if(isNaN(b)||1>b||isNaN(d)||1>d)return a(void 0,[]);var g=Array(b),k=!0,r=0,l=0;I(d>b?b:d,e);k=!1}function xb(b,d){d=d||function(a){return a};var c={},a={},e=function(){function e(){var b=G(arguments); | ||
c[r]=b;var d=a[r];delete a[r];for(var f=-1,g=d.length;++f<g;)d[f].apply(null,b)}var g=G(arguments),k=g.pop(),r=d.apply(null,g);if(c.hasOwnProperty(r))C.nextTick(function(){k.apply(null,c[r])});else{if(a.hasOwnProperty(r))return a[r].push(k);a[r]=[k];g.push(e);b.apply(null,g)}};e.memo=c;e.unmemoized=b;return e}function yb(b){return function(){return(b.unmemoized||b).apply(null,arguments)}}function zb(b){return function(){var d=!0,c=G(arguments),a=c.pop();c.push(function(){var b=arguments;d?C.safeNextTick(function(){a.apply(null, | ||
b)}):a.apply(null,b)});b.apply(this,c);d=!1}}function Ab(){var b=[null].concat(G(arguments));return function(d){d.apply(this,b)}}function ca(b){return function(){var d=G(arguments),c=d.pop(),a;try{a=b.apply(this,d)}catch(e){return c(e)}if("object"===typeof a&&"function"===typeof a.then)a.then(function(a){c(null,a)})["catch"](c);else c(null,a)}}function U(b){function d(c){if(da[typeof console])if(c)console.error&&console.error(c);else if(console[b]){var a=H(arguments,1);J(a,function(a){console[b](a)})}} | ||
return function(b){var a=H(arguments,1);a.push(d);b.apply(null,a)}}function Bb(){R.async=Zb;return C}function D(b,d){this._emitter=b||sa;this._limit=d||4;this._events={};this._runing={};this._queue={}}function Cb(b){b=b||x;if(b.ONCE===xa)return b;var d=function(c){if(b.length)return b(c);b();c()};d.func=b;return d}function Db(b){b=b||x;var d=function(c){if(b.length)return b(c);b();c()};d.func=b;d.ONCE=xa;return d}function Eb(b){b=b||{};var d=b.limit;return b.parallel&&!d?new D(ya):b.parallel||b.parallelLimit? | ||
new D($,d):new D(b.emitter)}var R=this,Zb=R&&R.async,x=function(){},z=function(){throw Error("Callback was already called.");},da={"function":!0,object:!0},y="function"===typeof Symbol&&Symbol.iterator,za,ea,W;(function(){var b=function(b){setTimeout(b,0)};W="function"===typeof setImmediate?setImmediate:b;za="object"===typeof process&&"function"===typeof process.nextTick?ea=/^v0.10/.test(process.version)?W:process.nextTick:ea=W})();var M=function(b,d,c){return function(a,e,f){function g(a,b){a?(f(a), | ||
f=x):++l===k?f():!1===b&&(f(),f=x)}f=f||x;var k,r,l=0;Array.isArray(a)?(k=a.length,b(a,e,g)):a&&(y&&a[y]?(k=a.size,c(a,e,g)):"object"===typeof a&&(r=Object.keys(a),k=r.length,d(a,e,g,r)));k||f()}}(Aa,Ba,Ca),Fb=Ja(Da,function(b,d,c,a){var e,f=-1,g=a.length;if(3===d.length)for(;++f<g;)e=a[f],d(b[e],e,c(f));else for(;++f<g;)d(b[a[f]],c(f))},function(b,d,c){var a=-1,e=b.size,f=b[y]();if(3===d.length)for(;++a<e;)b=f.next().value,d(b[1],b[0],c(a));else for(;++a<e;)d(f.next().value[1],c(a))},!0),Gb=Ja(Da, | ||
function(b,d,c,a){var e,f=-1,g=a.length;if(3===d.length)for(;++f<g;)e=a[f],d(b[e],e,c(e));else for(;++f<g;)e=a[f],d(b[e],c(e))},function(b,d,c){var a,e=b[y]();if(3===d.length)for(;!1===(b=e.next()).done;)a=b.value[0],d(b.value[1],a,c(a));else for(;!1===(b=e.next()).done;)d(b.value[1],c(b.value[0]))},!1),fa=Ka(X,Ea,Fa,!0),ga=La(!0),ha=Na(!0),Hb=Ka(X,Ea,Fa,!1),Ib=La(!1),Jb=Na(!1),pa=Sa(ja,ka,la,!0),qa=Ta(!0),ra=Ua(!0),ia=function(b,d,c){var a=Sa(b,d,c,!1);return function(b,c,d){function k(a){d(!a)} | ||
function r(a,b){d(a,!b)}d=d||x;a(b,c,2===d.length?r:k)}}(ja,ka,la),Kb=function(){var b=Ta(!1);return function(d,c,a){function e(b){a(!b)}function f(b,c){a(b,!c)}a=a||x;b(d,c,2===a.length?f:e)}}(),Lb=function(){var b=Ua(!1);return function(d,c,a,e){function f(a){e(!a)}function g(a,b){e(a,!b)}e=e||x;b(d,c,a,2===e.length?g:f)}}(),Mb=Va(X,Ga,Ha,!0),Nb=Wa(!0),Ob=Xa(!0),Pb=Va(X,Ga,Ha,!1),Qb=Wa(!1),Rb=Xa(!1),Sb=function(b,d,c){return function(a,e,f,g){function k(a,b){a?(f(a,Array.isArray(n)?O(n):K(n)),f= | ||
x):++q===r?f(void 0,n):!1===b&&(f(void 0,Array.isArray(n)?O(n):K(n)),f=x)}f=f||x;var r,l,n,q=0;Array.isArray(a)?(r=a.length,n=void 0!==g?g:[],b(a,n,e,k)):a&&(y&&a[y]?(r=a.size,n=void 0!==g?g:{},c(a,n,e,k)):"object"===typeof a&&(l=Object.keys(a),r=l.length,n=void 0!==g?g:{},d(a,n,e,k,l)));r||f(void 0,void 0!==g?g:n||{})}}(function(b,d,c,a){var e=-1,f=b.length;if(4===c.length)for(;++e<f;)c(d,b[e],e,E(a));else for(;++e<f;)c(d,b[e],E(a))},function(b,d,c,a,e){var f,g=-1,k=e.length;if(4===c.length)for(;++g< | ||
k;)f=e[g],c(d,b[f],f,E(a));else for(;++g<k;)c(d,b[e[g]],E(a))},function(b,d,c,a){var e=b[y]();if(4===c.length)for(;!1===(b=e.next()).done;)c(d,b.value[1],b.value[0],E(a));else for(;!1===(b=e.next()).done;)c(d,b.value[1],E(a))}),Tb=function(b,d,c){return function(a,e,f){function g(a){var b=!1;return function(c,d){b&&z();b=!0;r[l]={value:a,criteria:d};c?(f(c),f=x):++l===k&&(r.sort(oa),f(void 0,na(r,"value")),f=z)}}f=f||x;var k,r,l=0;if(Array.isArray(a))k=a.length,r=Array(k),b(a,e,g);else if(a)if(y&& | ||
a[y])k=a.size,r=Array(k),c(a,e,g);else if("object"===typeof a){var n=Object.keys(a);k=n.length;r=Array(k);d(a,e,g,n)}k||f(void 0,[])}}(ja,ka,la),Ub=function(b,d,c){return function(a,e,f){function g(a,b){b&&Array.prototype.push.apply(l,Array.isArray(b)?b:[b]);a?(f(a,O(l)),f=x):++r===k&&f(void 0,l)}f=f||x;var k,r=0,l=[];if(Array.isArray(a))k=a.length,b(a,e,g);else if(a)if(y&&a[y])k=a.size,c(a,e,g);else if("object"===typeof a){var n=Object.keys(a);k=n.length;d(a,e,g,n)}k||f(void 0,l)}}(Aa,Ba,Ca),ya= | ||
function(b,d){return function(c,a){function e(b){return function(c,d){null===b&&z();c?(a(c,k),a=x,b=null):(k[b]=2>=arguments.length?d:H(arguments,1),b=null,++r===f&&(a(void 0,k),a=z))}}a=a||x;var f,g,k,r=0;Array.isArray(c)?(f=c.length,k=Array(f),b(c,e)):c&&"object"===typeof c&&(g=Object.keys(c),f=g.length,k={},d(c,e,g));f||a(void 0,k)}}(function(b,d){for(var c=-1,a=b.length;++c<a;)b[c](d(c))},function(b,d,c){for(var a,e=-1,f=c.length;++e<f;)a=c[e],b[a](d(a))}),Vb=function(){function b(b){return function(c, | ||
a){null!==b&&(b(c,a),b=null)}}return function(d,c){c=b(c||x);var a,e,f=-1;if(Array.isArray(d))for(a=d.length;++f<a;)d[f](c);else if(d&&"object"===typeof d)for(e=Object.keys(d),a=e.length;++f<a;)d[e[f]](c);a||c()}}(),V={VERSION:"1.8.0",each:M,eachSeries:L,eachLimit:P,forEach:M,forEachSeries:L,forEachLimit:P,eachOf:M,eachOfSeries:L,eachOfLimit:P,forEachOf:M,forEachOfSeries:L,forEachOfLimit:P,map:Fb,mapSeries:Oa,mapLimit:Pa,mapValues:Gb,mapValuesSeries:Qa,mapValuesLimit:Ra,filter:fa,filterSeries:ga, | ||
filterLimit:ha,select:fa,selectSeries:ga,selectLimit:ha,reject:Hb,rejectSeries:Ib,rejectLimit:Jb,detect:pa,detectSeries:qa,detectLimit:ra,pick:Mb,pickSeries:Nb,pickLimit:Ob,omit:Pb,omitSeries:Qb,omitLimit:Rb,reduce:Q,inject:Q,foldl:Q,reduceRight:Y,foldr:Y,transform:Sb,transformSeries:Ya,transformLimit:Za,sortBy:Tb,sortBySeries:$a,sortByLimit:ab,some:Z,someSeries:bb,someLimit:cb,any:Z,every:ia,all:ia,everySeries:Kb,everyLimit:Lb,concat:Ub,concatSeries:db,concatLimit:eb,parallel:ya,series:sa,parallelLimit:$, | ||
waterfall:fb,angelFall:aa,angelfall:aa,whilst:gb,doWhilst:hb,until:ib,doUntil:jb,during:kb,doDuring:lb,forever:mb,compose:nb,seq:ua,applyEach:ba(M),applyEachSeries:ba(L),queue:ob,priorityQueue:va,cargo:pb,auto:qb,retry:rb,iterator:sb,apply:tb,nextTick:za,safeNextTick:ea,setImmediate:W,timeout:ub,times:vb,timesSeries:wa,timesLimit:wb,race:Vb,memoize:xb,unmemoize:yb,ensureAsync:zb,constant:Ab,asyncify:ca,wrapSync:ca,log:U("log"),dir:U("dir"),createLogger:U,noConflict:Bb,eventEmitter:Eb,EventEmitter:D, | ||
safe:void 0};V.safe=Ia();var C={VERSION:V.VERSION,"default":V,each:M,eachSeries:L,eachLimit:P,forEach:M,forEachSeries:L,forEachLimit:P,eachOf:M,eachOfSeries:L,eachOfLimit:P,forEachOf:M,forEachOfSeries:L,forEachOfLimit:P,map:Fb,mapSeries:Oa,mapLimit:Pa,mapValues:Gb,mapValuesSeries:Qa,mapValuesLimit:Ra,filter:fa,filterSeries:ga,filterLimit:ha,select:fa,selectSeries:ga,selectLimit:ha,reject:Hb,rejectSeries:Ib,rejectLimit:Jb,detect:pa,detectSeries:qa,detectLimit:ra,pick:Mb,pickSeries:Nb,pickLimit:Ob, | ||
omit:Pb,omitSeries:Qb,omitLimit:Rb,reduce:Q,inject:Q,foldl:Q,reduceRight:Y,foldr:Y,transform:Sb,transformSeries:Ya,transformLimit:Za,sortBy:Tb,sortBySeries:$a,sortByLimit:ab,some:Z,someSeries:bb,someLimit:cb,any:Z,every:ia,all:ia,everySeries:Kb,everyLimit:Lb,concat:Ub,concatSeries:db,concatLimit:eb,parallel:ya,series:sa,parallelLimit:$,waterfall:fb,angelFall:aa,angelfall:aa,whilst:gb,doWhilst:hb,until:ib,doUntil:jb,during:kb,doDuring:lb,forever:mb,compose:nb,seq:ua,applyEach:ba(M),applyEachSeries:ba(L), | ||
queue:ob,priorityQueue:va,cargo:pb,auto:qb,retry:rb,iterator:sb,apply:tb,nextTick:za,safeNextTick:ea,setImmediate:W,timeout:ub,times:vb,timesSeries:wa,timesLimit:wb,race:Vb,memoize:xb,unmemoize:yb,ensureAsync:zb,constant:Ab,asyncify:ca,wrapSync:ca,log:U("log"),dir:U("dir"),createLogger:U,noConflict:Bb,eventEmitter:Eb,EventEmitter:D,safe:V.safe};da[typeof define]&&define&&define.amd?define([],function(){return C}):da[typeof module]&&module&&module.exports?module.exports=C:R&&da[typeof R.async]?R.neo_async= | ||
C:R.async=C;var xa={__ONCE__:!0};D.prototype.getListeners=function(b){function d(a){a=a||[];var b=Array(a.length);J(a,function(a,c){b[c]=a.func});return b}var c=this._events;if(b)return d(c[b]);var a={};N(c,function(b,c){a[c]=d(b)});return a};D.prototype.addListener=function d(c,a){var e=this;if("object"===typeof c)return N(c,function(a,c){d.call(e,c,a)}),e;if(e.running(c))return e.queue(c,"addListener",a);e._events[c]=e._events[c]||[];Array.isArray(a)?J(a,function(a){e._events[c].push(Cb(a))}):e._events[c].push(Cb(a)); | ||
return e};D.prototype.addOnceListener=function c(a,e){var f=this;if("object"===typeof a)return N(a,function(a,e){c.call(f,e,a)}),f;Array.isArray(e)?J(e,function(a,c){e[c]=Db(a)}):e=Db(e);return f.addListener(a,e)};D.prototype.removeListener=function a(e,f){var g=this;if("object"===typeof e)return N(e,function(e,f){a.call(g,f,e)}),g;if(g.running(e))return g.queue(e,"removeListener",f);var k=g._events[e]||[];if(!k.length)return g;if(Array.isArray(f))return ma(f,function(f){a.call(g,f,e)}),g;ma(k,function(a, | ||
e){a.func===f&&k.splice(e,1)});return g};D.prototype.removeEvent=function e(f){var g=this;if(!f)return N(g._events,function(f,r){e.call(g,r)}),g;(g._events[f]||[]).length&&delete g._events[f];return g};D.prototype.running=function(e){return this._runing[e]};D.prototype.queue=function(e,f,g,k){this._queue[e]=this._queue[e]||[];this._queue[e].push([f,g,k]);return this};D.prototype.resolve=function(e){if(this._runing[e])return this;var f=this._queue[e]||[];if(!f.length)return this;f=f.shift();this[f[0]](e, | ||
f[1],f[2]);return this.resolve(e)};D.prototype.emit=function(e,f,g){function k(g,h){g?f(g):(ma(l,function(e,f){e.ONCE===xa&&l.splice(f,1)}),f(void 0,h));r._runing[e]=!1;r.resolve(e)}f=f||x;var r=this;if(r.running(e))return r.queue(e,"emit",f,g);var l=r._events[e]||[];if(!l.length)return f(),r;r._runing[e]=!0;var n=r._emitter,n=g?n.bind(g):n;n===$?n(l,r._limit,k):n(l,k);return r};D.prototype.on=D.prototype.addListener;D.prototype.once=D.prototype.addOnceListener;D.prototype.off=D.prototype.removeListener; | ||
D.prototype.removeAllListener=D.prototype.removeEvent;D.prototype.trigger=D.prototype.emit}).call(this); | ||
running:function(){return a},idle:function(){return 0===f.length()+a},pause:function(){f.paused=!0},resume:function(){!1!==f.paused&&(f.paused=!1,I(f.concurrency<f.tasks.length?f.concurrency:f.tasks.length,function(){C.nextTick(f.process)}))},_worker:b};return f}function pb(b,d){var c=0,a=[],e={tasks:[],workersList:function(){for(var b=-1,c=-1,d=a.length,e=[],l=[];++b<d;){var n=a[b];n.active&&(e[++c]=n,l[c]=n.task)}a=e;return l},payload:d,saturated:x,empty:x,drain:x,drained:!0,push:function(a,b){a= | ||
Array.isArray(a)?a:[a];b="function"===typeof b?b:x;J(a,function(a){e.tasks.push({data:a,callback:b});e.drained=!1;"function"===typeof e.saturated&&e.length()===e.payload&&e.saturated()});C.nextTick(e.process)},process:function(){if(!c)if(e.length()){var f="number"===typeof e.payload?e.tasks.splice(0,d):e.tasks;e.length()||"function"!==typeof e.empty||e.empty();for(var g=-1,k=f.length,r=Array(k),l=Array(k);++g<k;){var n=f[g];r[g]=n.data;n={task:n,active:!0};l[g]=n;a[a.length]=n}c++;b(r,function(){c--; | ||
var a=G(arguments);J(l,function(b){b.active=!1;(b=b.task.callback)&&b.apply(null,a)});e.process()})}else"function"!==typeof e.drain||e.drained||e.drain(),e.drained=!0},length:function(){return e.tasks.length},running:function(){return c}};return e}function qb(b,d,c){function a(a){r.unshift(a)}function e(){g--;J(r.slice(0),function(a){a()})}"function"===typeof d&&(c=d,d=null);c=E(c||x);var f=Object.keys(b),g=f.length;if(!g)return c();d||(d=g);var k=0,r=[],l={};a(function(){g||c(void 0,l)});N(b,function(b, | ||
f){function g(a){w&&z();w=!0;k--;var b=H(arguments,1);1>=b.length&&(b=b[0]);if(a){var d=K(l);d[f]=b;c(a,d);c=x}else l[f]=b,C.nextTick(e)}function p(){return k<d&&!l.hasOwnProperty(f)&&Xb(t,function(a){return l.hasOwnProperty(a)})}function m(){if(p()){k++;var a;a:{a=-1;for(var b=r.length;++a<b;)if(r[a]===m)break a;a=void 0}0<=a&&r.splice(a,1);u(g,l)}}b=Array.isArray(b)?b:[b];var w=!1,s=b.length,t=b.slice(0,s-1),u=b[s-1];if(c!==x&&p())return k++,u(g,l);a(m)},f)}function rb(b,d,c){function a(a,f){c= | ||
a||c||x;var g,k;wa(b,function(a,c){d(function(d,e){g=d;k=e;if(!d)return c(!0);c(d&&a===b-1)},f)},function(){c(g,k)})}"function"===typeof b&&(c=d,d=b,b=5);b=parseInt(b,10)||5;return"function"===typeof c?a():a}function sb(b){function d(e){var f=function(){c&&b[a[e]||e].apply(null,G(arguments));return f.next()};f.next=function(){return e<c-1?d(e+1):null};return f}var c=0,a=[];Array.isArray(b)?c=b.length:(a=Object.keys(b),c=a.length);return d(0)}function tb(b){switch(arguments.length){case 0:case 1:return b; | ||
case 2:return b.bind(null,arguments[1]);case 3:return b.bind(null,arguments[1],arguments[2]);case 4:return b.bind(null,arguments[1],arguments[2],arguments[3]);case 5:return b.bind(null,arguments[1],arguments[2],arguments[3],arguments[4]);default:var d=arguments.length,c=0,a=Array(d);for(a[c]=null;++c<d;)a[c]=arguments[c];return b.bind.apply(b,a)}}function ub(b,d){function c(){var a=Error("Callback function time out.");a.code="ETIMEDOUT";g=null;f(a)}function a(){null!==g&&(e(f,G(arguments)),clearTimeout(g))} | ||
function e(a,b){switch(b.length){case 0:a();break;case 1:a(b[0]);break;case 2:a(b[0],b[1]);break;default:a.apply(null,b)}}var f,g;return function(){g=setTimeout(c,d);var k=G(arguments),r=k.length-1;f=k[r];k[r]=a;e(b,k)}}function vb(b,d,c){function a(a){return function(d,k){null===a&&z();e[a]=k;a=null;d?(c(d),c=x):0===--b&&c(void 0,e)}}c=c||x;b=+b;if(isNaN(b)||1>b)return c(void 0,[]);var e=Array(b);I(b,function(b){d(b,a(b))})}function wa(b,d,c){function a(){d(k,e)}function e(d,e){f[k]=e;d?(c(d),c= | ||
z):++k>=b?(c(void 0,f),c=z):g?C.nextTick(a):(g=!0,a());g=!1}c=c||x;b=+b;if(isNaN(b)||1>b)return c(void 0,[]);var f=Array(b),g=!0,k=0;a();g=!1}function wb(b,d,c,a){function e(){var a=r++;a<b&&c(a,f(a))}function f(c){return function(d,f){null===c&&z();g[c]=f;c=null;d?(a(d),a=x):++l>=b?(a(void 0,g),a=z):k?C.nextTick(e):(k=!0,e());k=!1}}a=a||x;b=+b;if(isNaN(b)||1>b||isNaN(d)||1>d)return a(void 0,[]);var g=Array(b),k=!0,r=0,l=0;I(d>b?b:d,e);k=!1}function xb(b,d){d=d||function(a){return a};var c={},a={}, | ||
e=function(){function e(){var b=G(arguments);c[r]=b;var d=a[r];delete a[r];for(var f=-1,g=d.length;++f<g;)d[f].apply(null,b)}var g=G(arguments),k=g.pop(),r=d.apply(null,g);if(c.hasOwnProperty(r))C.nextTick(function(){k.apply(null,c[r])});else{if(a.hasOwnProperty(r))return a[r].push(k);a[r]=[k];g.push(e);b.apply(null,g)}};e.memo=c;e.unmemoized=b;return e}function yb(b){return function(){return(b.unmemoized||b).apply(null,arguments)}}function zb(b){return function(){var d=!0,c=G(arguments),a=c.pop(); | ||
c.push(function(){var b=arguments;d?C.safeNextTick(function(){a.apply(null,b)}):a.apply(null,b)});b.apply(this,c);d=!1}}function Ab(){var b=[null].concat(G(arguments));return function(d){d.apply(this,b)}}function ca(b){return function(){var d=G(arguments),c=d.pop(),a;try{a=b.apply(this,d)}catch(e){return c(e)}if("object"===typeof a&&"function"===typeof a.then)a.then(function(a){c(null,a)})["catch"](c);else c(null,a)}}function U(b){function d(c){if(da[typeof console])if(c)console.error&&console.error(c); | ||
else if(console[b]){var a=H(arguments,1);J(a,function(a){console[b](a)})}}return function(b){var a=H(arguments,1);a.push(d);b.apply(null,a)}}function Bb(){R.async=Zb;return C}function D(b,d){this._emitter=b||sa;this._limit=d||4;this._events={};this._runing={};this._queue={}}function Cb(b){b=b||x;if(b.ONCE===xa)return b;var d=function(c){if(b.length)return b(c);b();c()};d.func=b;return d}function Db(b){b=b||x;var d=function(c){if(b.length)return b(c);b();c()};d.func=b;d.ONCE=xa;return d}function Eb(b){b= | ||
b||{};var d=b.limit;return b.parallel&&!d?new D(ya):b.parallel||b.parallelLimit?new D($,d):new D(b.emitter)}var R=this,Zb=R&&R.async,x=function(){},z=function(){throw Error("Callback was already called.");},da={"function":!0,object:!0},y="function"===typeof Symbol&&Symbol.iterator,za,ea,W;(function(){var b=function(b){setTimeout(b,0)};W="function"===typeof setImmediate?setImmediate:b;za="object"===typeof process&&"function"===typeof process.nextTick?ea=/^v0.10/.test(process.version)?W:process.nextTick: | ||
ea=W})();var M=function(b,d,c){return function(a,e,f){function g(a,b){a?(f(a),f=x):++l===k?f():!1===b&&(f(),f=x)}f=f||x;var k,r,l=0;Array.isArray(a)?(k=a.length,b(a,e,g)):a&&(y&&a[y]?(k=a.size,c(a,e,g)):"object"===typeof a&&(r=Object.keys(a),k=r.length,d(a,e,g,r)));k||f()}}(Aa,Ba,Ca),Fb=Ja(Da,function(b,d,c,a){var e,f=-1,g=a.length;if(3===d.length)for(;++f<g;)e=a[f],d(b[e],e,c(f));else for(;++f<g;)d(b[a[f]],c(f))},function(b,d,c){var a=-1,e=b.size,f=b[y]();if(3===d.length)for(;++a<e;)b=f.next().value, | ||
d(b[1],b[0],c(a));else for(;++a<e;)d(f.next().value[1],c(a))},!0),Gb=Ja(Da,function(b,d,c,a){var e,f=-1,g=a.length;if(3===d.length)for(;++f<g;)e=a[f],d(b[e],e,c(e));else for(;++f<g;)e=a[f],d(b[e],c(e))},function(b,d,c){var a,e=b[y]();if(3===d.length)for(;!1===(b=e.next()).done;)a=b.value[0],d(b.value[1],a,c(a));else for(;!1===(b=e.next()).done;)d(b.value[1],c(b.value[0]))},!1),fa=Ka(X,Ea,Fa,!0),ga=La(!0),ha=Na(!0),Hb=Ka(X,Ea,Fa,!1),Ib=La(!1),Jb=Na(!1),pa=Sa(ja,ka,la,!0),qa=Ta(!0),ra=Ua(!0),ia=function(b, | ||
d,c){var a=Sa(b,d,c,!1);return function(b,c,d){function k(a){d(!a)}function r(a,b){d(a,!b)}d=d||x;a(b,c,2===d.length?r:k)}}(ja,ka,la),Kb=function(){var b=Ta(!1);return function(d,c,a){function e(b){a(!b)}function f(b,c){a(b,!c)}a=a||x;b(d,c,2===a.length?f:e)}}(),Lb=function(){var b=Ua(!1);return function(d,c,a,e){function f(a){e(!a)}function g(a,b){e(a,!b)}e=e||x;b(d,c,a,2===e.length?g:f)}}(),Mb=Va(X,Ga,Ha,!0),Nb=Wa(!0),Ob=Xa(!0),Pb=Va(X,Ga,Ha,!1),Qb=Wa(!1),Rb=Xa(!1),Sb=function(b,d,c){return function(a, | ||
e,f,g){function k(a,b){a?(f(a,Array.isArray(n)?O(n):K(n)),f=x):++q===r?f(void 0,n):!1===b&&(f(void 0,Array.isArray(n)?O(n):K(n)),f=x)}f=f||x;var r,l,n,q=0;Array.isArray(a)?(r=a.length,n=void 0!==g?g:[],b(a,n,e,k)):a&&(y&&a[y]?(r=a.size,n=void 0!==g?g:{},c(a,n,e,k)):"object"===typeof a&&(l=Object.keys(a),r=l.length,n=void 0!==g?g:{},d(a,n,e,k,l)));r||f(void 0,void 0!==g?g:n||{})}}(function(b,d,c,a){var e=-1,f=b.length;if(4===c.length)for(;++e<f;)c(d,b[e],e,E(a));else for(;++e<f;)c(d,b[e],E(a))},function(b, | ||
d,c,a,e){var f,g=-1,k=e.length;if(4===c.length)for(;++g<k;)f=e[g],c(d,b[f],f,E(a));else for(;++g<k;)c(d,b[e[g]],E(a))},function(b,d,c,a){var e=b[y]();if(4===c.length)for(;!1===(b=e.next()).done;)c(d,b.value[1],b.value[0],E(a));else for(;!1===(b=e.next()).done;)c(d,b.value[1],E(a))}),Tb=function(b,d,c){return function(a,e,f){function g(a){var b=!1;return function(c,d){b&&z();b=!0;r[l]={value:a,criteria:d};c?(f(c),f=x):++l===k&&(r.sort(oa),f(void 0,na(r,"value")),f=z)}}f=f||x;var k,r,l=0;if(Array.isArray(a))k= | ||
a.length,r=Array(k),b(a,e,g);else if(a)if(y&&a[y])k=a.size,r=Array(k),c(a,e,g);else if("object"===typeof a){var n=Object.keys(a);k=n.length;r=Array(k);d(a,e,g,n)}k||f(void 0,[])}}(ja,ka,la),Ub=function(b,d,c){return function(a,e,f){function g(a,b){b&&Array.prototype.push.apply(l,Array.isArray(b)?b:[b]);a?(f(a,O(l)),f=x):++r===k&&f(void 0,l)}f=f||x;var k,r=0,l=[];if(Array.isArray(a))k=a.length,b(a,e,g);else if(a)if(y&&a[y])k=a.size,c(a,e,g);else if("object"===typeof a){var n=Object.keys(a);k=n.length; | ||
d(a,e,g,n)}k||f(void 0,l)}}(Aa,Ba,Ca),ya=function(b,d){return function(c,a){function e(b){return function(c,d){null===b&&z();c?(a(c,k),a=x,b=null):(k[b]=2>=arguments.length?d:H(arguments,1),b=null,++r===f&&(a(void 0,k),a=z))}}a=a||x;var f,g,k,r=0;Array.isArray(c)?(f=c.length,k=Array(f),b(c,e)):c&&"object"===typeof c&&(g=Object.keys(c),f=g.length,k={},d(c,e,g));f||a(void 0,k)}}(function(b,d){for(var c=-1,a=b.length;++c<a;)b[c](d(c))},function(b,d,c){for(var a,e=-1,f=c.length;++e<f;)a=c[e],b[a](d(a))}), | ||
Vb=function(){function b(b){return function(c,a){null!==b&&(b(c,a),b=null)}}return function(d,c){c=b(c||x);var a,e,f=-1;if(Array.isArray(d))for(a=d.length;++f<a;)d[f](c);else if(d&&"object"===typeof d)for(e=Object.keys(d),a=e.length;++f<a;)d[e[f]](c);a||c()}}(),V={VERSION:"1.8.1",each:M,eachSeries:L,eachLimit:P,forEach:M,forEachSeries:L,forEachLimit:P,eachOf:M,eachOfSeries:L,eachOfLimit:P,forEachOf:M,forEachOfSeries:L,forEachOfLimit:P,map:Fb,mapSeries:Oa,mapLimit:Pa,mapValues:Gb,mapValuesSeries:Qa, | ||
mapValuesLimit:Ra,filter:fa,filterSeries:ga,filterLimit:ha,select:fa,selectSeries:ga,selectLimit:ha,reject:Hb,rejectSeries:Ib,rejectLimit:Jb,detect:pa,detectSeries:qa,detectLimit:ra,pick:Mb,pickSeries:Nb,pickLimit:Ob,omit:Pb,omitSeries:Qb,omitLimit:Rb,reduce:Q,inject:Q,foldl:Q,reduceRight:Y,foldr:Y,transform:Sb,transformSeries:Ya,transformLimit:Za,sortBy:Tb,sortBySeries:$a,sortByLimit:ab,some:Z,someSeries:bb,someLimit:cb,any:Z,every:ia,all:ia,everySeries:Kb,everyLimit:Lb,concat:Ub,concatSeries:db, | ||
concatLimit:eb,parallel:ya,series:sa,parallelLimit:$,waterfall:fb,angelFall:aa,angelfall:aa,whilst:gb,doWhilst:hb,until:ib,doUntil:jb,during:kb,doDuring:lb,forever:mb,compose:nb,seq:ua,applyEach:ba(M),applyEachSeries:ba(L),queue:ob,priorityQueue:va,cargo:pb,auto:qb,retry:rb,iterator:sb,apply:tb,nextTick:za,safeNextTick:ea,setImmediate:W,timeout:ub,times:vb,timesSeries:wa,timesLimit:wb,race:Vb,memoize:xb,unmemoize:yb,ensureAsync:zb,constant:Ab,asyncify:ca,wrapSync:ca,log:U("log"),dir:U("dir"),createLogger:U, | ||
noConflict:Bb,eventEmitter:Eb,EventEmitter:D,safe:void 0};V.safe=Ia();var C={VERSION:V.VERSION,"default":V,each:M,eachSeries:L,eachLimit:P,forEach:M,forEachSeries:L,forEachLimit:P,eachOf:M,eachOfSeries:L,eachOfLimit:P,forEachOf:M,forEachOfSeries:L,forEachOfLimit:P,map:Fb,mapSeries:Oa,mapLimit:Pa,mapValues:Gb,mapValuesSeries:Qa,mapValuesLimit:Ra,filter:fa,filterSeries:ga,filterLimit:ha,select:fa,selectSeries:ga,selectLimit:ha,reject:Hb,rejectSeries:Ib,rejectLimit:Jb,detect:pa,detectSeries:qa,detectLimit:ra, | ||
pick:Mb,pickSeries:Nb,pickLimit:Ob,omit:Pb,omitSeries:Qb,omitLimit:Rb,reduce:Q,inject:Q,foldl:Q,reduceRight:Y,foldr:Y,transform:Sb,transformSeries:Ya,transformLimit:Za,sortBy:Tb,sortBySeries:$a,sortByLimit:ab,some:Z,someSeries:bb,someLimit:cb,any:Z,every:ia,all:ia,everySeries:Kb,everyLimit:Lb,concat:Ub,concatSeries:db,concatLimit:eb,parallel:ya,series:sa,parallelLimit:$,waterfall:fb,angelFall:aa,angelfall:aa,whilst:gb,doWhilst:hb,until:ib,doUntil:jb,during:kb,doDuring:lb,forever:mb,compose:nb,seq:ua, | ||
applyEach:ba(M),applyEachSeries:ba(L),queue:ob,priorityQueue:va,cargo:pb,auto:qb,retry:rb,iterator:sb,apply:tb,nextTick:za,safeNextTick:ea,setImmediate:W,timeout:ub,times:vb,timesSeries:wa,timesLimit:wb,race:Vb,memoize:xb,unmemoize:yb,ensureAsync:zb,constant:Ab,asyncify:ca,wrapSync:ca,log:U("log"),dir:U("dir"),createLogger:U,noConflict:Bb,eventEmitter:Eb,EventEmitter:D,safe:V.safe};da[typeof define]&&define&&define.amd?define([],function(){return C}):da[typeof module]&&module&&module.exports?module.exports= | ||
C:R&&da[typeof R.async]?R.neo_async=C:R.async=C;var xa={__ONCE__:!0};D.prototype.getListeners=function(b){function d(a){a=a||[];var b=Array(a.length);J(a,function(a,c){b[c]=a.func});return b}var c=this._events;if(b)return d(c[b]);var a={};N(c,function(b,c){a[c]=d(b)});return a};D.prototype.addListener=function d(c,a){var e=this;if("object"===typeof c)return N(c,function(a,c){d.call(e,c,a)}),e;if(e.running(c))return e.queue(c,"addListener",a);e._events[c]=e._events[c]||[];Array.isArray(a)?J(a,function(a){e._events[c].push(Cb(a))}): | ||
e._events[c].push(Cb(a));return e};D.prototype.addOnceListener=function c(a,e){var f=this;if("object"===typeof a)return N(a,function(a,e){c.call(f,e,a)}),f;Array.isArray(e)?J(e,function(a,c){e[c]=Db(a)}):e=Db(e);return f.addListener(a,e)};D.prototype.removeListener=function a(e,f){var g=this;if("object"===typeof e)return N(e,function(e,f){a.call(g,f,e)}),g;if(g.running(e))return g.queue(e,"removeListener",f);var k=g._events[e]||[];if(!k.length)return g;if(Array.isArray(f))return ma(f,function(f){a.call(g, | ||
f,e)}),g;ma(k,function(a,e){a.func===f&&k.splice(e,1)});return g};D.prototype.removeEvent=function e(f){var g=this;if(!f)return N(g._events,function(f,r){e.call(g,r)}),g;(g._events[f]||[]).length&&delete g._events[f];return g};D.prototype.running=function(e){return this._runing[e]};D.prototype.queue=function(e,f,g,k){this._queue[e]=this._queue[e]||[];this._queue[e].push([f,g,k]);return this};D.prototype.resolve=function(e){if(this._runing[e])return this;var f=this._queue[e]||[];if(!f.length)return this; | ||
f=f.shift();this[f[0]](e,f[1],f[2]);return this.resolve(e)};D.prototype.emit=function(e,f,g){function k(g,h){g?f(g):(ma(l,function(e,f){e.ONCE===xa&&l.splice(f,1)}),f(void 0,h));r._runing[e]=!1;r.resolve(e)}f=f||x;var r=this;if(r.running(e))return r.queue(e,"emit",f,g);var l=r._events[e]||[];if(!l.length)return f(),r;r._runing[e]=!0;var n=r._emitter,n=g?n.bind(g):n;n===$?n(l,r._limit,k):n(l,k);return r};D.prototype.on=D.prototype.addListener;D.prototype.once=D.prototype.addOnceListener;D.prototype.off= | ||
D.prototype.removeListener;D.prototype.removeAllListener=D.prototype.removeEvent;D.prototype.trigger=D.prototype.emit}).call(this); |
@@ -54,31 +54,31 @@ (function(){function G(b){for(var d=-1,c=b.length,a=Array(c);++d<c;)a[d]=b[d];return a}function H(b,d){var c=-1,a=b.length-d;if(0>=a)return[];for(var e=Array(a);++c<a;)e[c]=b[c+d];return e}function S(b){for(var d=-1,c=b.length,a=[];++d<c;){var e=b[d];e&&(a[a.length]=e)}return a}function Wb(b){for(var d=-1,c=b.length,a=Array(c),e=c;++d<c;)a[--e]=b[d];return a}function Aa(b,d,c){var a=-1,e=b.length;if(3===d.length)for(;++a<e;)d(b[a],a,E(c));else for(;++a<e;)d(b[a],E(c))}function Ba(b,d,c,a){var e,f= | ||
drain:x,started:!1,paused:!1,push:function(a,b,d){c(a,b,d)},kill:function(){f.drain=x;f.tasks=[]},process:function(){function b(){a--;l.active=!1;c.callback&&c.callback.apply(c,G(arguments));"function"===typeof f.drain&&f.idle()&&f.drain();d?C.nextTick(f.process):f.process()}if(!(f.paused||a>=f.concurrency)&&f.length()){var c=f.tasks.shift();"function"!==typeof f.empty||f.length()||f.empty();a++;var d=!0,l={task:c,active:!0};e[e.length]=l;f._worker(c.data,E(b));d=!1}},length:function(){return f.tasks.length}, | ||
running:function(){return a},idle:function(){return 0===f.length()+a},pause:function(){f.paused=!0},resume:function(){!1!==f.paused&&(f.paused=!1,I(f.concurrency,function(){C.setImmediate(f.process)}))},_worker:b};return f}function pb(b,d){var c=0,a=[],e={tasks:[],workersList:function(){for(var b=-1,c=-1,d=a.length,e=[],l=[];++b<d;){var n=a[b];n.active&&(e[++c]=n,l[c]=n.task)}a=e;return l},payload:d,saturated:x,empty:x,drain:x,drained:!0,push:function(a,b){a=Array.isArray(a)?a:[a];b="function"=== | ||
typeof b?b:x;J(a,function(a){e.tasks.push({data:a,callback:b});e.drained=!1;"function"===typeof e.saturated&&e.length()===e.payload&&e.saturated()});C.nextTick(e.process)},process:function(){if(!c)if(e.length()){var f="number"===typeof e.payload?e.tasks.splice(0,d):e.tasks;e.length()||"function"!==typeof e.empty||e.empty();for(var g=-1,k=f.length,r=Array(k),l=Array(k);++g<k;){var n=f[g];r[g]=n.data;n={task:n,active:!0};l[g]=n;a[a.length]=n}c++;b(r,function(){c--;var a=G(arguments);J(l,function(b){b.active= | ||
!1;(b=b.task.callback)&&b.apply(null,a)});e.process()})}else"function"!==typeof e.drain||e.drained||e.drain(),e.drained=!0},length:function(){return e.tasks.length},running:function(){return c}};return e}function qb(b,d,c){function a(a){r.unshift(a)}function e(){g--;J(r.slice(0),function(a){a()})}"function"===typeof d&&(c=d,d=null);c=E(c||x);var f=Object.keys(b),g=f.length;if(!g)return c();d||(d=g);var k=0,r=[],l={};a(function(){g||c(void 0,l)});N(b,function(b,f){function g(a){w&&z();w=!0;k--;var b= | ||
H(arguments,1);1>=b.length&&(b=b[0]);if(a){var d=K(l);d[f]=b;c(a,d);c=x}else l[f]=b,C.nextTick(e)}function p(){return k<d&&!l.hasOwnProperty(f)&&Xb(t,function(a){return l.hasOwnProperty(a)})}function m(){if(p()){k++;var a;a:{a=-1;for(var b=r.length;++a<b;)if(r[a]===m)break a;a=void 0}0<=a&&r.splice(a,1);u(g,l)}}b=Array.isArray(b)?b:[b];var w=!1,s=b.length,t=b.slice(0,s-1),u=b[s-1];if(c!==x&&p())return k++,u(g,l);a(m)},f)}function rb(b,d,c){function a(a,f){c=a||c||x;var g,k;wa(b,function(a,c){d(function(d, | ||
e){g=d;k=e;if(!d)return c(!0);c(d&&a===b-1)},f)},function(){c(g,k)})}"function"===typeof b&&(c=d,d=b,b=5);b=parseInt(b,10)||5;return"function"===typeof c?a():a}function sb(b){function d(e){var f=function(){c&&b[a[e]||e].apply(null,G(arguments));return f.next()};f.next=function(){return e<c-1?d(e+1):null};return f}var c=0,a=[];Array.isArray(b)?c=b.length:(a=Object.keys(b),c=a.length);return d(0)}function tb(b){switch(arguments.length){case 0:case 1:return b;case 2:return b.bind(null,arguments[1]); | ||
case 3:return b.bind(null,arguments[1],arguments[2]);case 4:return b.bind(null,arguments[1],arguments[2],arguments[3]);case 5:return b.bind(null,arguments[1],arguments[2],arguments[3],arguments[4]);default:var d=arguments.length,c=0,a=Array(d);for(a[c]=null;++c<d;)a[c]=arguments[c];return b.bind.apply(b,a)}}function ub(b,d){function c(){var a=Error("Callback function time out.");a.code="ETIMEDOUT";g=null;f(a)}function a(){null!==g&&(e(f,G(arguments)),clearTimeout(g))}function e(a,b){switch(b.length){case 0:a(); | ||
break;case 1:a(b[0]);break;case 2:a(b[0],b[1]);break;default:a.apply(null,b)}}var f,g;return function(){g=setTimeout(c,d);var k=G(arguments),r=k.length-1;f=k[r];k[r]=a;e(b,k)}}function vb(b,d,c){function a(a){return function(d,k){null===a&&z();e[a]=k;a=null;d?(c(d),c=x):0===--b&&c(void 0,e)}}c=c||x;b=+b;if(isNaN(b)||1>b)return c(void 0,[]);var e=Array(b);I(b,function(b){d(b,a(b))})}function wa(b,d,c){function a(){d(k,e)}function e(d,e){f[k]=e;d?(c(d),c=z):++k>=b?(c(void 0,f),c=z):g?C.nextTick(a): | ||
(g=!0,a());g=!1}c=c||x;b=+b;if(isNaN(b)||1>b)return c(void 0,[]);var f=Array(b),g=!0,k=0;a();g=!1}function wb(b,d,c,a){function e(){var a=r++;a<b&&c(a,f(a))}function f(c){return function(d,f){null===c&&z();g[c]=f;c=null;d?(a(d),a=x):++l>=b?(a(void 0,g),a=z):k?C.nextTick(e):(k=!0,e());k=!1}}a=a||x;b=+b;if(isNaN(b)||1>b||isNaN(d)||1>d)return a(void 0,[]);var g=Array(b),k=!0,r=0,l=0;I(d>b?b:d,e);k=!1}function xb(b,d){d=d||function(a){return a};var c={},a={},e=function(){function e(){var b=G(arguments); | ||
c[r]=b;var d=a[r];delete a[r];for(var f=-1,g=d.length;++f<g;)d[f].apply(null,b)}var g=G(arguments),k=g.pop(),r=d.apply(null,g);if(c.hasOwnProperty(r))C.nextTick(function(){k.apply(null,c[r])});else{if(a.hasOwnProperty(r))return a[r].push(k);a[r]=[k];g.push(e);b.apply(null,g)}};e.memo=c;e.unmemoized=b;return e}function yb(b){return function(){return(b.unmemoized||b).apply(null,arguments)}}function zb(b){return function(){var d=!0,c=G(arguments),a=c.pop();c.push(function(){var b=arguments;d?C.safeNextTick(function(){a.apply(null, | ||
b)}):a.apply(null,b)});b.apply(this,c);d=!1}}function Ab(){var b=[null].concat(G(arguments));return function(d){d.apply(this,b)}}function ca(b){return function(){var d=G(arguments),c=d.pop(),a;try{a=b.apply(this,d)}catch(e){return c(e)}if("object"===typeof a&&"function"===typeof a.then)a.then(function(a){c(null,a)})["catch"](c);else c(null,a)}}function U(b){function d(c){if(da[typeof console])if(c)console.error&&console.error(c);else if(console[b]){var a=H(arguments,1);J(a,function(a){console[b](a)})}} | ||
return function(b){var a=H(arguments,1);a.push(d);b.apply(null,a)}}function Bb(){R.async=Zb;return C}function D(b,d){this._emitter=b||sa;this._limit=d||4;this._events={};this._runing={};this._queue={}}function Cb(b){b=b||x;if(b.ONCE===xa)return b;var d=function(c){if(b.length)return b(c);b();c()};d.func=b;return d}function Db(b){b=b||x;var d=function(c){if(b.length)return b(c);b();c()};d.func=b;d.ONCE=xa;return d}function Eb(b){b=b||{};var d=b.limit;return b.parallel&&!d?new D(ya):b.parallel||b.parallelLimit? | ||
new D($,d):new D(b.emitter)}var R=this,Zb=R&&R.async,x=function(){},z=function(){throw Error("Callback was already called.");},da={"function":!0,object:!0},y="function"===typeof Symbol&&Symbol.iterator,za,ea,W;(function(){var b=function(b){setTimeout(b,0)};W="function"===typeof setImmediate?setImmediate:b;za="object"===typeof process&&"function"===typeof process.nextTick?ea=/^v0.10/.test(process.version)?W:process.nextTick:ea=W})();var M=function(b,d,c){return function(a,e,f){function g(a,b){a?(f(a), | ||
f=x):++l===k?f():!1===b&&(f(),f=x)}f=f||x;var k,r,l=0;Array.isArray(a)?(k=a.length,b(a,e,g)):a&&(y&&a[y]?(k=a.size,c(a,e,g)):"object"===typeof a&&(r=Object.keys(a),k=r.length,d(a,e,g,r)));k||f()}}(Aa,Ba,Ca),Fb=Ja(Da,function(b,d,c,a){var e,f=-1,g=a.length;if(3===d.length)for(;++f<g;)e=a[f],d(b[e],e,c(f));else for(;++f<g;)d(b[a[f]],c(f))},function(b,d,c){var a=-1,e=b.size,f=b[y]();if(3===d.length)for(;++a<e;)b=f.next().value,d(b[1],b[0],c(a));else for(;++a<e;)d(f.next().value[1],c(a))},!0),Gb=Ja(Da, | ||
function(b,d,c,a){var e,f=-1,g=a.length;if(3===d.length)for(;++f<g;)e=a[f],d(b[e],e,c(e));else for(;++f<g;)e=a[f],d(b[e],c(e))},function(b,d,c){var a,e=b[y]();if(3===d.length)for(;!1===(b=e.next()).done;)a=b.value[0],d(b.value[1],a,c(a));else for(;!1===(b=e.next()).done;)d(b.value[1],c(b.value[0]))},!1),fa=Ka(X,Ea,Fa,!0),ga=La(!0),ha=Na(!0),Hb=Ka(X,Ea,Fa,!1),Ib=La(!1),Jb=Na(!1),pa=Sa(ja,ka,la,!0),qa=Ta(!0),ra=Ua(!0),ia=function(b,d,c){var a=Sa(b,d,c,!1);return function(b,c,d){function k(a){d(!a)} | ||
function r(a,b){d(a,!b)}d=d||x;a(b,c,2===d.length?r:k)}}(ja,ka,la),Kb=function(){var b=Ta(!1);return function(d,c,a){function e(b){a(!b)}function f(b,c){a(b,!c)}a=a||x;b(d,c,2===a.length?f:e)}}(),Lb=function(){var b=Ua(!1);return function(d,c,a,e){function f(a){e(!a)}function g(a,b){e(a,!b)}e=e||x;b(d,c,a,2===e.length?g:f)}}(),Mb=Va(X,Ga,Ha,!0),Nb=Wa(!0),Ob=Xa(!0),Pb=Va(X,Ga,Ha,!1),Qb=Wa(!1),Rb=Xa(!1),Sb=function(b,d,c){return function(a,e,f,g){function k(a,b){a?(f(a,Array.isArray(n)?O(n):K(n)),f= | ||
x):++q===r?f(void 0,n):!1===b&&(f(void 0,Array.isArray(n)?O(n):K(n)),f=x)}f=f||x;var r,l,n,q=0;Array.isArray(a)?(r=a.length,n=void 0!==g?g:[],b(a,n,e,k)):a&&(y&&a[y]?(r=a.size,n=void 0!==g?g:{},c(a,n,e,k)):"object"===typeof a&&(l=Object.keys(a),r=l.length,n=void 0!==g?g:{},d(a,n,e,k,l)));r||f(void 0,void 0!==g?g:n||{})}}(function(b,d,c,a){var e=-1,f=b.length;if(4===c.length)for(;++e<f;)c(d,b[e],e,E(a));else for(;++e<f;)c(d,b[e],E(a))},function(b,d,c,a,e){var f,g=-1,k=e.length;if(4===c.length)for(;++g< | ||
k;)f=e[g],c(d,b[f],f,E(a));else for(;++g<k;)c(d,b[e[g]],E(a))},function(b,d,c,a){var e=b[y]();if(4===c.length)for(;!1===(b=e.next()).done;)c(d,b.value[1],b.value[0],E(a));else for(;!1===(b=e.next()).done;)c(d,b.value[1],E(a))}),Tb=function(b,d,c){return function(a,e,f){function g(a){var b=!1;return function(c,d){b&&z();b=!0;r[l]={value:a,criteria:d};c?(f(c),f=x):++l===k&&(r.sort(oa),f(void 0,na(r,"value")),f=z)}}f=f||x;var k,r,l=0;if(Array.isArray(a))k=a.length,r=Array(k),b(a,e,g);else if(a)if(y&& | ||
a[y])k=a.size,r=Array(k),c(a,e,g);else if("object"===typeof a){var n=Object.keys(a);k=n.length;r=Array(k);d(a,e,g,n)}k||f(void 0,[])}}(ja,ka,la),Ub=function(b,d,c){return function(a,e,f){function g(a,b){b&&Array.prototype.push.apply(l,Array.isArray(b)?b:[b]);a?(f(a,O(l)),f=x):++r===k&&f(void 0,l)}f=f||x;var k,r=0,l=[];if(Array.isArray(a))k=a.length,b(a,e,g);else if(a)if(y&&a[y])k=a.size,c(a,e,g);else if("object"===typeof a){var n=Object.keys(a);k=n.length;d(a,e,g,n)}k||f(void 0,l)}}(Aa,Ba,Ca),ya= | ||
function(b,d){return function(c,a){function e(b){return function(c,d){null===b&&z();c?(a(c,k),a=x,b=null):(k[b]=2>=arguments.length?d:H(arguments,1),b=null,++r===f&&(a(void 0,k),a=z))}}a=a||x;var f,g,k,r=0;Array.isArray(c)?(f=c.length,k=Array(f),b(c,e)):c&&"object"===typeof c&&(g=Object.keys(c),f=g.length,k={},d(c,e,g));f||a(void 0,k)}}(function(b,d){for(var c=-1,a=b.length;++c<a;)b[c](d(c))},function(b,d,c){for(var a,e=-1,f=c.length;++e<f;)a=c[e],b[a](d(a))}),Vb=function(){function b(b){return function(c, | ||
a){null!==b&&(b(c,a),b=null)}}return function(d,c){c=b(c||x);var a,e,f=-1;if(Array.isArray(d))for(a=d.length;++f<a;)d[f](c);else if(d&&"object"===typeof d)for(e=Object.keys(d),a=e.length;++f<a;)d[e[f]](c);a||c()}}(),V={VERSION:"1.8.0",each:M,eachSeries:L,eachLimit:P,forEach:M,forEachSeries:L,forEachLimit:P,eachOf:M,eachOfSeries:L,eachOfLimit:P,forEachOf:M,forEachOfSeries:L,forEachOfLimit:P,map:Fb,mapSeries:Oa,mapLimit:Pa,mapValues:Gb,mapValuesSeries:Qa,mapValuesLimit:Ra,filter:fa,filterSeries:ga, | ||
filterLimit:ha,select:fa,selectSeries:ga,selectLimit:ha,reject:Hb,rejectSeries:Ib,rejectLimit:Jb,detect:pa,detectSeries:qa,detectLimit:ra,pick:Mb,pickSeries:Nb,pickLimit:Ob,omit:Pb,omitSeries:Qb,omitLimit:Rb,reduce:Q,inject:Q,foldl:Q,reduceRight:Y,foldr:Y,transform:Sb,transformSeries:Ya,transformLimit:Za,sortBy:Tb,sortBySeries:$a,sortByLimit:ab,some:Z,someSeries:bb,someLimit:cb,any:Z,every:ia,all:ia,everySeries:Kb,everyLimit:Lb,concat:Ub,concatSeries:db,concatLimit:eb,parallel:ya,series:sa,parallelLimit:$, | ||
waterfall:fb,angelFall:aa,angelfall:aa,whilst:gb,doWhilst:hb,until:ib,doUntil:jb,during:kb,doDuring:lb,forever:mb,compose:nb,seq:ua,applyEach:ba(M),applyEachSeries:ba(L),queue:ob,priorityQueue:va,cargo:pb,auto:qb,retry:rb,iterator:sb,apply:tb,nextTick:za,safeNextTick:ea,setImmediate:W,timeout:ub,times:vb,timesSeries:wa,timesLimit:wb,race:Vb,memoize:xb,unmemoize:yb,ensureAsync:zb,constant:Ab,asyncify:ca,wrapSync:ca,log:U("log"),dir:U("dir"),createLogger:U,noConflict:Bb,eventEmitter:Eb,EventEmitter:D, | ||
safe:void 0};V.safe=Ia();var C={VERSION:V.VERSION,"default":V,each:M,eachSeries:L,eachLimit:P,forEach:M,forEachSeries:L,forEachLimit:P,eachOf:M,eachOfSeries:L,eachOfLimit:P,forEachOf:M,forEachOfSeries:L,forEachOfLimit:P,map:Fb,mapSeries:Oa,mapLimit:Pa,mapValues:Gb,mapValuesSeries:Qa,mapValuesLimit:Ra,filter:fa,filterSeries:ga,filterLimit:ha,select:fa,selectSeries:ga,selectLimit:ha,reject:Hb,rejectSeries:Ib,rejectLimit:Jb,detect:pa,detectSeries:qa,detectLimit:ra,pick:Mb,pickSeries:Nb,pickLimit:Ob, | ||
omit:Pb,omitSeries:Qb,omitLimit:Rb,reduce:Q,inject:Q,foldl:Q,reduceRight:Y,foldr:Y,transform:Sb,transformSeries:Ya,transformLimit:Za,sortBy:Tb,sortBySeries:$a,sortByLimit:ab,some:Z,someSeries:bb,someLimit:cb,any:Z,every:ia,all:ia,everySeries:Kb,everyLimit:Lb,concat:Ub,concatSeries:db,concatLimit:eb,parallel:ya,series:sa,parallelLimit:$,waterfall:fb,angelFall:aa,angelfall:aa,whilst:gb,doWhilst:hb,until:ib,doUntil:jb,during:kb,doDuring:lb,forever:mb,compose:nb,seq:ua,applyEach:ba(M),applyEachSeries:ba(L), | ||
queue:ob,priorityQueue:va,cargo:pb,auto:qb,retry:rb,iterator:sb,apply:tb,nextTick:za,safeNextTick:ea,setImmediate:W,timeout:ub,times:vb,timesSeries:wa,timesLimit:wb,race:Vb,memoize:xb,unmemoize:yb,ensureAsync:zb,constant:Ab,asyncify:ca,wrapSync:ca,log:U("log"),dir:U("dir"),createLogger:U,noConflict:Bb,eventEmitter:Eb,EventEmitter:D,safe:V.safe};da[typeof define]&&define&&define.amd?define([],function(){return C}):da[typeof module]&&module&&module.exports?module.exports=C:R&&da[typeof R.async]?R.neo_async= | ||
C:R.async=C;var xa={__ONCE__:!0};D.prototype.getListeners=function(b){function d(a){a=a||[];var b=Array(a.length);J(a,function(a,c){b[c]=a.func});return b}var c=this._events;if(b)return d(c[b]);var a={};N(c,function(b,c){a[c]=d(b)});return a};D.prototype.addListener=function d(c,a){var e=this;if("object"===typeof c)return N(c,function(a,c){d.call(e,c,a)}),e;if(e.running(c))return e.queue(c,"addListener",a);e._events[c]=e._events[c]||[];Array.isArray(a)?J(a,function(a){e._events[c].push(Cb(a))}):e._events[c].push(Cb(a)); | ||
return e};D.prototype.addOnceListener=function c(a,e){var f=this;if("object"===typeof a)return N(a,function(a,e){c.call(f,e,a)}),f;Array.isArray(e)?J(e,function(a,c){e[c]=Db(a)}):e=Db(e);return f.addListener(a,e)};D.prototype.removeListener=function a(e,f){var g=this;if("object"===typeof e)return N(e,function(e,f){a.call(g,f,e)}),g;if(g.running(e))return g.queue(e,"removeListener",f);var k=g._events[e]||[];if(!k.length)return g;if(Array.isArray(f))return ma(f,function(f){a.call(g,f,e)}),g;ma(k,function(a, | ||
e){a.func===f&&k.splice(e,1)});return g};D.prototype.removeEvent=function e(f){var g=this;if(!f)return N(g._events,function(f,r){e.call(g,r)}),g;(g._events[f]||[]).length&&delete g._events[f];return g};D.prototype.running=function(e){return this._runing[e]};D.prototype.queue=function(e,f,g,k){this._queue[e]=this._queue[e]||[];this._queue[e].push([f,g,k]);return this};D.prototype.resolve=function(e){if(this._runing[e])return this;var f=this._queue[e]||[];if(!f.length)return this;f=f.shift();this[f[0]](e, | ||
f[1],f[2]);return this.resolve(e)};D.prototype.emit=function(e,f,g){function k(g,h){g?f(g):(ma(l,function(e,f){e.ONCE===xa&&l.splice(f,1)}),f(void 0,h));r._runing[e]=!1;r.resolve(e)}f=f||x;var r=this;if(r.running(e))return r.queue(e,"emit",f,g);var l=r._events[e]||[];if(!l.length)return f(),r;r._runing[e]=!0;var n=r._emitter,n=g?n.bind(g):n;n===$?n(l,r._limit,k):n(l,k);return r};D.prototype.on=D.prototype.addListener;D.prototype.once=D.prototype.addOnceListener;D.prototype.off=D.prototype.removeListener; | ||
D.prototype.removeAllListener=D.prototype.removeEvent;D.prototype.trigger=D.prototype.emit}).call(this); | ||
running:function(){return a},idle:function(){return 0===f.length()+a},pause:function(){f.paused=!0},resume:function(){!1!==f.paused&&(f.paused=!1,I(f.concurrency<f.tasks.length?f.concurrency:f.tasks.length,function(){C.nextTick(f.process)}))},_worker:b};return f}function pb(b,d){var c=0,a=[],e={tasks:[],workersList:function(){for(var b=-1,c=-1,d=a.length,e=[],l=[];++b<d;){var n=a[b];n.active&&(e[++c]=n,l[c]=n.task)}a=e;return l},payload:d,saturated:x,empty:x,drain:x,drained:!0,push:function(a,b){a= | ||
Array.isArray(a)?a:[a];b="function"===typeof b?b:x;J(a,function(a){e.tasks.push({data:a,callback:b});e.drained=!1;"function"===typeof e.saturated&&e.length()===e.payload&&e.saturated()});C.nextTick(e.process)},process:function(){if(!c)if(e.length()){var f="number"===typeof e.payload?e.tasks.splice(0,d):e.tasks;e.length()||"function"!==typeof e.empty||e.empty();for(var g=-1,k=f.length,r=Array(k),l=Array(k);++g<k;){var n=f[g];r[g]=n.data;n={task:n,active:!0};l[g]=n;a[a.length]=n}c++;b(r,function(){c--; | ||
var a=G(arguments);J(l,function(b){b.active=!1;(b=b.task.callback)&&b.apply(null,a)});e.process()})}else"function"!==typeof e.drain||e.drained||e.drain(),e.drained=!0},length:function(){return e.tasks.length},running:function(){return c}};return e}function qb(b,d,c){function a(a){r.unshift(a)}function e(){g--;J(r.slice(0),function(a){a()})}"function"===typeof d&&(c=d,d=null);c=E(c||x);var f=Object.keys(b),g=f.length;if(!g)return c();d||(d=g);var k=0,r=[],l={};a(function(){g||c(void 0,l)});N(b,function(b, | ||
f){function g(a){w&&z();w=!0;k--;var b=H(arguments,1);1>=b.length&&(b=b[0]);if(a){var d=K(l);d[f]=b;c(a,d);c=x}else l[f]=b,C.nextTick(e)}function p(){return k<d&&!l.hasOwnProperty(f)&&Xb(t,function(a){return l.hasOwnProperty(a)})}function m(){if(p()){k++;var a;a:{a=-1;for(var b=r.length;++a<b;)if(r[a]===m)break a;a=void 0}0<=a&&r.splice(a,1);u(g,l)}}b=Array.isArray(b)?b:[b];var w=!1,s=b.length,t=b.slice(0,s-1),u=b[s-1];if(c!==x&&p())return k++,u(g,l);a(m)},f)}function rb(b,d,c){function a(a,f){c= | ||
a||c||x;var g,k;wa(b,function(a,c){d(function(d,e){g=d;k=e;if(!d)return c(!0);c(d&&a===b-1)},f)},function(){c(g,k)})}"function"===typeof b&&(c=d,d=b,b=5);b=parseInt(b,10)||5;return"function"===typeof c?a():a}function sb(b){function d(e){var f=function(){c&&b[a[e]||e].apply(null,G(arguments));return f.next()};f.next=function(){return e<c-1?d(e+1):null};return f}var c=0,a=[];Array.isArray(b)?c=b.length:(a=Object.keys(b),c=a.length);return d(0)}function tb(b){switch(arguments.length){case 0:case 1:return b; | ||
case 2:return b.bind(null,arguments[1]);case 3:return b.bind(null,arguments[1],arguments[2]);case 4:return b.bind(null,arguments[1],arguments[2],arguments[3]);case 5:return b.bind(null,arguments[1],arguments[2],arguments[3],arguments[4]);default:var d=arguments.length,c=0,a=Array(d);for(a[c]=null;++c<d;)a[c]=arguments[c];return b.bind.apply(b,a)}}function ub(b,d){function c(){var a=Error("Callback function time out.");a.code="ETIMEDOUT";g=null;f(a)}function a(){null!==g&&(e(f,G(arguments)),clearTimeout(g))} | ||
function e(a,b){switch(b.length){case 0:a();break;case 1:a(b[0]);break;case 2:a(b[0],b[1]);break;default:a.apply(null,b)}}var f,g;return function(){g=setTimeout(c,d);var k=G(arguments),r=k.length-1;f=k[r];k[r]=a;e(b,k)}}function vb(b,d,c){function a(a){return function(d,k){null===a&&z();e[a]=k;a=null;d?(c(d),c=x):0===--b&&c(void 0,e)}}c=c||x;b=+b;if(isNaN(b)||1>b)return c(void 0,[]);var e=Array(b);I(b,function(b){d(b,a(b))})}function wa(b,d,c){function a(){d(k,e)}function e(d,e){f[k]=e;d?(c(d),c= | ||
z):++k>=b?(c(void 0,f),c=z):g?C.nextTick(a):(g=!0,a());g=!1}c=c||x;b=+b;if(isNaN(b)||1>b)return c(void 0,[]);var f=Array(b),g=!0,k=0;a();g=!1}function wb(b,d,c,a){function e(){var a=r++;a<b&&c(a,f(a))}function f(c){return function(d,f){null===c&&z();g[c]=f;c=null;d?(a(d),a=x):++l>=b?(a(void 0,g),a=z):k?C.nextTick(e):(k=!0,e());k=!1}}a=a||x;b=+b;if(isNaN(b)||1>b||isNaN(d)||1>d)return a(void 0,[]);var g=Array(b),k=!0,r=0,l=0;I(d>b?b:d,e);k=!1}function xb(b,d){d=d||function(a){return a};var c={},a={}, | ||
e=function(){function e(){var b=G(arguments);c[r]=b;var d=a[r];delete a[r];for(var f=-1,g=d.length;++f<g;)d[f].apply(null,b)}var g=G(arguments),k=g.pop(),r=d.apply(null,g);if(c.hasOwnProperty(r))C.nextTick(function(){k.apply(null,c[r])});else{if(a.hasOwnProperty(r))return a[r].push(k);a[r]=[k];g.push(e);b.apply(null,g)}};e.memo=c;e.unmemoized=b;return e}function yb(b){return function(){return(b.unmemoized||b).apply(null,arguments)}}function zb(b){return function(){var d=!0,c=G(arguments),a=c.pop(); | ||
c.push(function(){var b=arguments;d?C.safeNextTick(function(){a.apply(null,b)}):a.apply(null,b)});b.apply(this,c);d=!1}}function Ab(){var b=[null].concat(G(arguments));return function(d){d.apply(this,b)}}function ca(b){return function(){var d=G(arguments),c=d.pop(),a;try{a=b.apply(this,d)}catch(e){return c(e)}if("object"===typeof a&&"function"===typeof a.then)a.then(function(a){c(null,a)})["catch"](c);else c(null,a)}}function U(b){function d(c){if(da[typeof console])if(c)console.error&&console.error(c); | ||
else if(console[b]){var a=H(arguments,1);J(a,function(a){console[b](a)})}}return function(b){var a=H(arguments,1);a.push(d);b.apply(null,a)}}function Bb(){R.async=Zb;return C}function D(b,d){this._emitter=b||sa;this._limit=d||4;this._events={};this._runing={};this._queue={}}function Cb(b){b=b||x;if(b.ONCE===xa)return b;var d=function(c){if(b.length)return b(c);b();c()};d.func=b;return d}function Db(b){b=b||x;var d=function(c){if(b.length)return b(c);b();c()};d.func=b;d.ONCE=xa;return d}function Eb(b){b= | ||
b||{};var d=b.limit;return b.parallel&&!d?new D(ya):b.parallel||b.parallelLimit?new D($,d):new D(b.emitter)}var R=this,Zb=R&&R.async,x=function(){},z=function(){throw Error("Callback was already called.");},da={"function":!0,object:!0},y="function"===typeof Symbol&&Symbol.iterator,za,ea,W;(function(){var b=function(b){setTimeout(b,0)};W="function"===typeof setImmediate?setImmediate:b;za="object"===typeof process&&"function"===typeof process.nextTick?ea=/^v0.10/.test(process.version)?W:process.nextTick: | ||
ea=W})();var M=function(b,d,c){return function(a,e,f){function g(a,b){a?(f(a),f=x):++l===k?f():!1===b&&(f(),f=x)}f=f||x;var k,r,l=0;Array.isArray(a)?(k=a.length,b(a,e,g)):a&&(y&&a[y]?(k=a.size,c(a,e,g)):"object"===typeof a&&(r=Object.keys(a),k=r.length,d(a,e,g,r)));k||f()}}(Aa,Ba,Ca),Fb=Ja(Da,function(b,d,c,a){var e,f=-1,g=a.length;if(3===d.length)for(;++f<g;)e=a[f],d(b[e],e,c(f));else for(;++f<g;)d(b[a[f]],c(f))},function(b,d,c){var a=-1,e=b.size,f=b[y]();if(3===d.length)for(;++a<e;)b=f.next().value, | ||
d(b[1],b[0],c(a));else for(;++a<e;)d(f.next().value[1],c(a))},!0),Gb=Ja(Da,function(b,d,c,a){var e,f=-1,g=a.length;if(3===d.length)for(;++f<g;)e=a[f],d(b[e],e,c(e));else for(;++f<g;)e=a[f],d(b[e],c(e))},function(b,d,c){var a,e=b[y]();if(3===d.length)for(;!1===(b=e.next()).done;)a=b.value[0],d(b.value[1],a,c(a));else for(;!1===(b=e.next()).done;)d(b.value[1],c(b.value[0]))},!1),fa=Ka(X,Ea,Fa,!0),ga=La(!0),ha=Na(!0),Hb=Ka(X,Ea,Fa,!1),Ib=La(!1),Jb=Na(!1),pa=Sa(ja,ka,la,!0),qa=Ta(!0),ra=Ua(!0),ia=function(b, | ||
d,c){var a=Sa(b,d,c,!1);return function(b,c,d){function k(a){d(!a)}function r(a,b){d(a,!b)}d=d||x;a(b,c,2===d.length?r:k)}}(ja,ka,la),Kb=function(){var b=Ta(!1);return function(d,c,a){function e(b){a(!b)}function f(b,c){a(b,!c)}a=a||x;b(d,c,2===a.length?f:e)}}(),Lb=function(){var b=Ua(!1);return function(d,c,a,e){function f(a){e(!a)}function g(a,b){e(a,!b)}e=e||x;b(d,c,a,2===e.length?g:f)}}(),Mb=Va(X,Ga,Ha,!0),Nb=Wa(!0),Ob=Xa(!0),Pb=Va(X,Ga,Ha,!1),Qb=Wa(!1),Rb=Xa(!1),Sb=function(b,d,c){return function(a, | ||
e,f,g){function k(a,b){a?(f(a,Array.isArray(n)?O(n):K(n)),f=x):++q===r?f(void 0,n):!1===b&&(f(void 0,Array.isArray(n)?O(n):K(n)),f=x)}f=f||x;var r,l,n,q=0;Array.isArray(a)?(r=a.length,n=void 0!==g?g:[],b(a,n,e,k)):a&&(y&&a[y]?(r=a.size,n=void 0!==g?g:{},c(a,n,e,k)):"object"===typeof a&&(l=Object.keys(a),r=l.length,n=void 0!==g?g:{},d(a,n,e,k,l)));r||f(void 0,void 0!==g?g:n||{})}}(function(b,d,c,a){var e=-1,f=b.length;if(4===c.length)for(;++e<f;)c(d,b[e],e,E(a));else for(;++e<f;)c(d,b[e],E(a))},function(b, | ||
d,c,a,e){var f,g=-1,k=e.length;if(4===c.length)for(;++g<k;)f=e[g],c(d,b[f],f,E(a));else for(;++g<k;)c(d,b[e[g]],E(a))},function(b,d,c,a){var e=b[y]();if(4===c.length)for(;!1===(b=e.next()).done;)c(d,b.value[1],b.value[0],E(a));else for(;!1===(b=e.next()).done;)c(d,b.value[1],E(a))}),Tb=function(b,d,c){return function(a,e,f){function g(a){var b=!1;return function(c,d){b&&z();b=!0;r[l]={value:a,criteria:d};c?(f(c),f=x):++l===k&&(r.sort(oa),f(void 0,na(r,"value")),f=z)}}f=f||x;var k,r,l=0;if(Array.isArray(a))k= | ||
a.length,r=Array(k),b(a,e,g);else if(a)if(y&&a[y])k=a.size,r=Array(k),c(a,e,g);else if("object"===typeof a){var n=Object.keys(a);k=n.length;r=Array(k);d(a,e,g,n)}k||f(void 0,[])}}(ja,ka,la),Ub=function(b,d,c){return function(a,e,f){function g(a,b){b&&Array.prototype.push.apply(l,Array.isArray(b)?b:[b]);a?(f(a,O(l)),f=x):++r===k&&f(void 0,l)}f=f||x;var k,r=0,l=[];if(Array.isArray(a))k=a.length,b(a,e,g);else if(a)if(y&&a[y])k=a.size,c(a,e,g);else if("object"===typeof a){var n=Object.keys(a);k=n.length; | ||
d(a,e,g,n)}k||f(void 0,l)}}(Aa,Ba,Ca),ya=function(b,d){return function(c,a){function e(b){return function(c,d){null===b&&z();c?(a(c,k),a=x,b=null):(k[b]=2>=arguments.length?d:H(arguments,1),b=null,++r===f&&(a(void 0,k),a=z))}}a=a||x;var f,g,k,r=0;Array.isArray(c)?(f=c.length,k=Array(f),b(c,e)):c&&"object"===typeof c&&(g=Object.keys(c),f=g.length,k={},d(c,e,g));f||a(void 0,k)}}(function(b,d){for(var c=-1,a=b.length;++c<a;)b[c](d(c))},function(b,d,c){for(var a,e=-1,f=c.length;++e<f;)a=c[e],b[a](d(a))}), | ||
Vb=function(){function b(b){return function(c,a){null!==b&&(b(c,a),b=null)}}return function(d,c){c=b(c||x);var a,e,f=-1;if(Array.isArray(d))for(a=d.length;++f<a;)d[f](c);else if(d&&"object"===typeof d)for(e=Object.keys(d),a=e.length;++f<a;)d[e[f]](c);a||c()}}(),V={VERSION:"1.8.1",each:M,eachSeries:L,eachLimit:P,forEach:M,forEachSeries:L,forEachLimit:P,eachOf:M,eachOfSeries:L,eachOfLimit:P,forEachOf:M,forEachOfSeries:L,forEachOfLimit:P,map:Fb,mapSeries:Oa,mapLimit:Pa,mapValues:Gb,mapValuesSeries:Qa, | ||
mapValuesLimit:Ra,filter:fa,filterSeries:ga,filterLimit:ha,select:fa,selectSeries:ga,selectLimit:ha,reject:Hb,rejectSeries:Ib,rejectLimit:Jb,detect:pa,detectSeries:qa,detectLimit:ra,pick:Mb,pickSeries:Nb,pickLimit:Ob,omit:Pb,omitSeries:Qb,omitLimit:Rb,reduce:Q,inject:Q,foldl:Q,reduceRight:Y,foldr:Y,transform:Sb,transformSeries:Ya,transformLimit:Za,sortBy:Tb,sortBySeries:$a,sortByLimit:ab,some:Z,someSeries:bb,someLimit:cb,any:Z,every:ia,all:ia,everySeries:Kb,everyLimit:Lb,concat:Ub,concatSeries:db, | ||
concatLimit:eb,parallel:ya,series:sa,parallelLimit:$,waterfall:fb,angelFall:aa,angelfall:aa,whilst:gb,doWhilst:hb,until:ib,doUntil:jb,during:kb,doDuring:lb,forever:mb,compose:nb,seq:ua,applyEach:ba(M),applyEachSeries:ba(L),queue:ob,priorityQueue:va,cargo:pb,auto:qb,retry:rb,iterator:sb,apply:tb,nextTick:za,safeNextTick:ea,setImmediate:W,timeout:ub,times:vb,timesSeries:wa,timesLimit:wb,race:Vb,memoize:xb,unmemoize:yb,ensureAsync:zb,constant:Ab,asyncify:ca,wrapSync:ca,log:U("log"),dir:U("dir"),createLogger:U, | ||
noConflict:Bb,eventEmitter:Eb,EventEmitter:D,safe:void 0};V.safe=Ia();var C={VERSION:V.VERSION,"default":V,each:M,eachSeries:L,eachLimit:P,forEach:M,forEachSeries:L,forEachLimit:P,eachOf:M,eachOfSeries:L,eachOfLimit:P,forEachOf:M,forEachOfSeries:L,forEachOfLimit:P,map:Fb,mapSeries:Oa,mapLimit:Pa,mapValues:Gb,mapValuesSeries:Qa,mapValuesLimit:Ra,filter:fa,filterSeries:ga,filterLimit:ha,select:fa,selectSeries:ga,selectLimit:ha,reject:Hb,rejectSeries:Ib,rejectLimit:Jb,detect:pa,detectSeries:qa,detectLimit:ra, | ||
pick:Mb,pickSeries:Nb,pickLimit:Ob,omit:Pb,omitSeries:Qb,omitLimit:Rb,reduce:Q,inject:Q,foldl:Q,reduceRight:Y,foldr:Y,transform:Sb,transformSeries:Ya,transformLimit:Za,sortBy:Tb,sortBySeries:$a,sortByLimit:ab,some:Z,someSeries:bb,someLimit:cb,any:Z,every:ia,all:ia,everySeries:Kb,everyLimit:Lb,concat:Ub,concatSeries:db,concatLimit:eb,parallel:ya,series:sa,parallelLimit:$,waterfall:fb,angelFall:aa,angelfall:aa,whilst:gb,doWhilst:hb,until:ib,doUntil:jb,during:kb,doDuring:lb,forever:mb,compose:nb,seq:ua, | ||
applyEach:ba(M),applyEachSeries:ba(L),queue:ob,priorityQueue:va,cargo:pb,auto:qb,retry:rb,iterator:sb,apply:tb,nextTick:za,safeNextTick:ea,setImmediate:W,timeout:ub,times:vb,timesSeries:wa,timesLimit:wb,race:Vb,memoize:xb,unmemoize:yb,ensureAsync:zb,constant:Ab,asyncify:ca,wrapSync:ca,log:U("log"),dir:U("dir"),createLogger:U,noConflict:Bb,eventEmitter:Eb,EventEmitter:D,safe:V.safe};da[typeof define]&&define&&define.amd?define([],function(){return C}):da[typeof module]&&module&&module.exports?module.exports= | ||
C:R&&da[typeof R.async]?R.neo_async=C:R.async=C;var xa={__ONCE__:!0};D.prototype.getListeners=function(b){function d(a){a=a||[];var b=Array(a.length);J(a,function(a,c){b[c]=a.func});return b}var c=this._events;if(b)return d(c[b]);var a={};N(c,function(b,c){a[c]=d(b)});return a};D.prototype.addListener=function d(c,a){var e=this;if("object"===typeof c)return N(c,function(a,c){d.call(e,c,a)}),e;if(e.running(c))return e.queue(c,"addListener",a);e._events[c]=e._events[c]||[];Array.isArray(a)?J(a,function(a){e._events[c].push(Cb(a))}): | ||
e._events[c].push(Cb(a));return e};D.prototype.addOnceListener=function c(a,e){var f=this;if("object"===typeof a)return N(a,function(a,e){c.call(f,e,a)}),f;Array.isArray(e)?J(e,function(a,c){e[c]=Db(a)}):e=Db(e);return f.addListener(a,e)};D.prototype.removeListener=function a(e,f){var g=this;if("object"===typeof e)return N(e,function(e,f){a.call(g,f,e)}),g;if(g.running(e))return g.queue(e,"removeListener",f);var k=g._events[e]||[];if(!k.length)return g;if(Array.isArray(f))return ma(f,function(f){a.call(g, | ||
f,e)}),g;ma(k,function(a,e){a.func===f&&k.splice(e,1)});return g};D.prototype.removeEvent=function e(f){var g=this;if(!f)return N(g._events,function(f,r){e.call(g,r)}),g;(g._events[f]||[]).length&&delete g._events[f];return g};D.prototype.running=function(e){return this._runing[e]};D.prototype.queue=function(e,f,g,k){this._queue[e]=this._queue[e]||[];this._queue[e].push([f,g,k]);return this};D.prototype.resolve=function(e){if(this._runing[e])return this;var f=this._queue[e]||[];if(!f.length)return this; | ||
f=f.shift();this[f[0]](e,f[1],f[2]);return this.resolve(e)};D.prototype.emit=function(e,f,g){function k(g,h){g?f(g):(ma(l,function(e,f){e.ONCE===xa&&l.splice(f,1)}),f(void 0,h));r._runing[e]=!1;r.resolve(e)}f=f||x;var r=this;if(r.running(e))return r.queue(e,"emit",f,g);var l=r._events[e]||[];if(!l.length)return f(),r;r._runing[e]=!0;var n=r._emitter,n=g?n.bind(g):n;n===$?n(l,r._limit,k):n(l,k);return r};D.prototype.on=D.prototype.addListener;D.prototype.once=D.prototype.addOnceListener;D.prototype.off= | ||
D.prototype.removeListener;D.prototype.removeAllListener=D.prototype.removeEvent;D.prototype.trigger=D.prototype.emit}).call(this); |
{ | ||
"name": "neo-async", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "Neo-Async is thought to be used as a drop-in replacement for Async, it almost fully covers its functionality and runs faster ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
# Neo-Async v1.8.0 | ||
# Neo-Async v1.8.1 | ||
@@ -3,0 +3,0 @@ [![npm](https://img.shields.io/npm/v/neo-async.svg)](https://www.npmjs.com/package/neo-async) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
687551
19654