2023-04-13 13:57:14 +00:00
|
|
|
(()=>{var e={118:(e,a,i)=>{e.exports={parallel:i(162),serial:i(357),serialOrdered:i(87)}},651:e=>{function a(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}e.exports=function(e){Object.keys(e.jobs).forEach(a.bind(e)),e.jobs={}}},912:(e,a,i)=>{var n=i(265);e.exports=function(e){var a=!1;return n((function(){a=!0})),function(i,s){a?e(i,s):n((function(){e(i,s)}))}}},265:e=>{e.exports=function(e){var a="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;a?a(e):setTimeout(e,0)}},594:(e,a,i)=>{var n=i(912),s=i(651);e.exports=function(e,a,i,o){var t=i.keyedList?i.keyedList[i.index]:i.index;i.jobs[t]=function(e,a,i,s){return 2==e.length?e(i,n(s)):e(i,a,n(s))}(a,t,e[t],(function(e,a){t in i.jobs&&(delete i.jobs[t],e?s(i):i.results[t]=a,o(e,i.results))}))}},528:e=>{e.exports=function(e,a){var i=!Array.isArray(e),n={index:0,keyedList:i||a?Object.keys(e):null,jobs:{},results:i?{}:[],size:i?Object.keys(e).length:e.length};return a&&n.keyedList.sort(i?a:function(i,n){return a(e[i],e[n])}),n}},353:(e,a,i)=>{var n=i(651),s=i(912);e.exports=function(e){Object.keys(this.jobs).length&&(this.index=this.size,n(this),s(e)(null,this.results))}},162:(e,a,i)=>{var n=i(594),s=i(528),o=i(353);e.exports=function(e,a,i){for(var t=s(e);t.index<(t.keyedList||e).length;)n(e,a,t,(function(e,a){e?i(e,a):0!==Object.keys(t.jobs).length||i(null,t.results)})),t.index++;return o.bind(t,i)}},357:(e,a,i)=>{var n=i(87);e.exports=function(e,a,i){return n(e,a,null,i)}},87:(e,a,i)=>{var n=i(594),s=i(528),o=i(353);function t(e,a){return e<a?-1:e>a?1:0}e.exports=function(e,a,i,t){var r=s(e,i);return n(e,a,r,(function i(s,o){s?t(s,o):(r.index++,r.index<(r.keyedList||e).length?n(e,a,r,i):t(null,r.results))})),o.bind(r,t)},e.exports.ascending=t,e.exports.descending=function(e,a){return-1*t(e,a)}},779:(e,a,i)=>{var n=i(837),s=i(781).Stream,o=i(463);function t(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}e.exports=t,n.inherits(t,s),t.create=function(e){var a=new this;for(var i in e=e||{})a[i]=e[i];return a},t.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},t.prototype.append=function(e){if(t.isStreamLike(e)){if(!(e instanceof o)){var a=o.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=a}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},t.prototype.pipe=function(e,a){return s.prototype.pipe.call(this,e,a),this.resume(),e},t.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},t.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){t.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},t.prototype._pipeNext=function(e){if(this._currentStream=e,t.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var a=e;this.write(a),this._getNext()},t.prototype._handleErrors=function(e){var a=this;e.on("error",(function(e){a._emitError(e)}))},t.prototype.write=function(e){this.emit("data",e)},t.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},t.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},t.prototype.end=function(){this._reset(),this.emit("end")},t.prototype.destroy=function(){this._reset(),this.emit("close")},t.protot
|