vbapm 0.6.15 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -0
- package/addins/build/vbapm.xlam +0 -0
- package/lib/actions/add-source.d.ts +11 -0
- package/lib/actions/export-project.d.ts +2 -0
- package/lib/actions/update-project.d.ts +7 -0
- package/lib/add-source-BOumGmx7.js +17 -0
- package/lib/addin.d.ts +1 -0
- package/lib/bin/vbapm-add.d.ts +2 -0
- package/lib/bin/vbapm-update.d.ts +2 -0
- package/lib/build-project-De7NPBpt.js +3 -0
- package/lib/build-target-ooHNsSLD.js +9 -0
- package/lib/{create-project-CPIRr0DV.js → create-project-BYc3XMZw.js} +1 -1
- package/lib/debug.js +1 -1
- package/lib/errors.d.ts +6 -0
- package/lib/export-project-CgFMyE-g.js +4 -0
- package/lib/export-target-C0RYJqUX.js +4 -0
- package/lib/{get-target-CH6IpAa1.js → get-target-LUoY1UWJ.js} +1 -1
- package/lib/index-C61lSPb5.js +1 -0
- package/lib/index-CBGUBgfk.js +13 -0
- package/lib/index-ClUEyMCY.js +6 -0
- package/lib/{index-Dg07BXJE.js → index-Cp8MNK26.js} +1 -1
- package/lib/{index-D-khpcjL.js → index-Dv6JxqGo.js} +9 -9
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/init-project-9RKSVG_H.js +15 -0
- package/lib/installer-DPj-zT7L.js +9 -0
- package/lib/{load-from-project-Bpb6Ne_i.js → load-from-project-ClF4qaC0.js} +1 -1
- package/lib/messages.d.ts +2 -0
- package/lib/one_ini_bg.wasm +0 -0
- package/lib/project-BPmPCkUS.js +20 -0
- package/lib/run-macro-C1-aJWu5.js +1 -0
- package/lib/sat-solver-B6RXdyQs.js +1 -0
- package/lib/targets/build-target.d.ts +1 -0
- package/lib/targets/export-target.d.ts +3 -1
- package/lib/targets/transforms/format-xml.d.ts +2 -0
- package/lib/test-project-DXBFZH3o.js +1 -0
- package/lib/toml-patch-r8oqFm0h.js +3 -0
- package/lib/transform-build-graph-DgRrocSn.js +1 -0
- package/lib/transform-target-CYhuozxP.js +2 -0
- package/lib/utils/encoding.d.ts +30 -0
- package/lib/utils/run.d.ts +4 -1
- package/lib/utils/xml.d.ts +14 -0
- package/lib/vbapm-add-CASFjXAL.js +16 -0
- package/lib/vbapm-build-Bhm_pqQW.js +9 -0
- package/lib/vbapm-export-8KDCdFOz.js +9 -0
- package/lib/{vbapm-init-csKsZ87H.js → vbapm-init-Ba2xCez2.js} +1 -1
- package/lib/{vbapm-new-Dt0tX1xQ.js → vbapm-new-YQRNQ4Iq.js} +1 -1
- package/lib/{vbapm-run-Ccciwg2y.js → vbapm-run-J-R--noZ.js} +2 -2
- package/lib/{vbapm-test-u7AWC-AV.js → vbapm-test-C4KWMPLz.js} +1 -1
- package/lib/vbapm-update-DnbmW8tc.js +13 -0
- package/lib/vbapm-version-CRicT8YA.js +8 -0
- package/lib/vbapm.js +3 -1
- package/package.json +127 -137
- package/run-scripts/run.applescript +18 -7
- package/run-scripts/run.ps1 +42 -10
- package/lib/build-project-BczswKQl.js +0 -3
- package/lib/build-target-D6L5nsgt.js +0 -9
- package/lib/export-project-DQ3bfvbV.js +0 -4
- package/lib/export-target-CN6RA_mA.js +0 -4
- package/lib/index-DXFu_Z-o.js +0 -6
- package/lib/init-project-dRuDA4YO.js +0 -15
- package/lib/installer-CJlDenLg.js +0 -9
- package/lib/project-C3bWzV0O.js +0 -29
- package/lib/run-macro-D_9-BO3U.js +0 -1
- package/lib/sat-solver-5AniWyxz.js +0 -1
- package/lib/test-project-BTkTNZXs.js +0 -1
- package/lib/toml-patch.es-CxrbsPnB.js +0 -3
- package/lib/transform-target-Doak2S1q.js +0 -2
- package/lib/vbapm-build-B1OOy6VL.js +0 -9
- package/lib/vbapm-export-vvUDCDqi.js +0 -7
- package/lib/vbapm-version-Bsb-cWCD.js +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e,t,r=require("./_commonjsHelpers-Bjf42z7h.js"),n=require("path"),i=require("./installer-CJlDenLg.js"),o=require("util"),a=require("stream"),s=require("./string_decoder-CW-j4E6X.js"),f=require("events"),u=require("buffer"),l=require("./index-CEojr58e.js"),c=require("./index-BlteXxjY.js"),d=require("fs"),p=require("constants"),h=require("./once-fkpTAKD3.js"),m=require("string_decoder"),y=require("zlib");function g(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})}),Object.freeze(e)}function b(){return t?e:(t=1,e=e=>{const t=new Uint8Array(e);if(!(t&&t.length>1))return null;const r=(e,r)=>{r=Object.assign({offset:0},r);for(let n=0;n<e.length;n++)if(e[n]!==t[n+r.offset])return!1;return!0};if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(r([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((r([73,73,42,0])||r([77,77,0,42]))&&r([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r([73,73,42,0])||r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r([80,75,3,4])&&r([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(r([80,75,3,4])&&r([77,69,84,65,45,73,78,70,47,109,111,122,105,108,108,97,46,114,115,97],{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(r([80,75])&&(3===t[2]||5===t[2]||7===t[2])&&(4===t[3]||6===t[3]||8===t[3]))return{ext:"zip",mime:"application/zip"};if(r([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(r([82,97,114,33,26,7])&&(0===t[6]||1===t[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([0,0,0])&&(24===t[3]||32===t[3])&&r([102,116,121,112],{offset:4})||r([51,103,112,53])||r([0,0,0,28,102,116,121,112,109,112,52,50])&&r([109,112,52,49,109,112,52,50,105,115,111,109],{offset:16})||r([0,0,0,28,102,116,121,112,105,115,111,109])||r([0,0,0,28,102,116,121,112,109,112,52,50,0,0,0,0]))return{ext:"mp4",mime:"video/mp4"};if(r([0,0,0,28,102,116,121,112,77,52,86]))return{ext:"m4v",mime:"video/x-m4v"};if(r([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(r([26,69,223,163])){const e=t.subarray(4,4100),r=e.findIndex((e,t,r)=>66===r[t]&&130===r[t+1]);if(r>=0){const t=r+3,n=r=>Array.from(r).every((r,n)=>e[t+n]===r.charCodeAt(0));if(n("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(n("webm"))return{ext:"webm",mime:"video/webm"}}}return r([0,0,0,20,102,116,121,112,113,116,32,32])||r([102,114,101,101],{offset:4})||r([102,116,121,112,113,116,32,32],{offset:4})||r([109,100,97,116],{offset:4})||r([119,105,100,101],{offset:4})?{ext:"mov",mime:"video/quicktime"}:r([82,73,70,70])&&r([65,86,73],{offset:8})?{ext:"avi",mime:"video/x-msvideo"}:r([48,38,178,117,142,102,207,17,166,217])?{ext:"wmv",mime:"video/x-ms-wmv"}:r([0,0,1,186])?{ext:"mpg",mime:"video/mpeg"}:r([73,68,51])||r([255,251])?{ext:"mp3",mime:"audio/mpeg"}:r([102,116,121,112,77,52,65],{offset:4})||r([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:r([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:r([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:r([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:r([82,73,70,70])&&r([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:r([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:r([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:r([77,90])?{ext:"exe",mime:"application/x-msdownload"}:67!==t[0]&&70!==t[0]||!r([87,83],{offset:1})?r([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:r([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:r([119,79,70,70])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:r([119,79,70,50])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:r([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:r([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:r([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:r([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:r([37,33])?{ext:"ps",mime:"application/postscript"}:r([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:r([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:r([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:r([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:r([77,83,67,70])||r([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:r([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:r([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:r([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:r([31,160])||r([31,157])?{ext:"Z",mime:"application/x-compress"}:r([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:r([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:r([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:r([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:r([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}})}var w,v={exports:{}};function x(){if(w)return v.exports;w=1;var e=v.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe};return e.writable=function(t){return e(t)&&!1!==t.writable&&"function"==typeof t._write&&"object"==typeof t._writableState},e.readable=function(t){return e(t)&&!1!==t.readable&&"function"==typeof t._read&&"object"==typeof t._readableState},e.duplex=function(t){return e.writable(t)&&e.readable(t)},e.transform=function(t){return e.duplex(t)&&"function"==typeof t._transform&&"object"==typeof t._transformState},v.exports}var _,E,S={},k={exports:{}};function B(){return E?_:(E=1,_=a)}var z,C={exports:{}};function R(){return z||(z=1,function(e,t){var r=u,n=r.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=o),i(n,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}}(C,C.exports)),C.exports}var O,T,j,L,A,I,P,M,U,q,F,D,N,W,H,Z,G,X,Y,K,V={exports:{}};function $(){return O||(O=1,function(e){var t=R().Buffer,r=o;function n(e,t,r){e.copy(t,r)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return t.alloc(0);if(1===this.length)return this.head.data;for(var r=t.allocUnsafe(e>>>0),i=this.head,o=0;i;)n(i.data,r,o),o+=i.data.length,i=i.next;return r},e}(),r&&r.inspect&&r.inspect.custom&&(e.exports.prototype[r.inspect.custom]=function(){var e=r.inspect({length:this.length});return this.constructor.name+" "+e})}(V)),V.exports}function J(){if(j)return T;j=1;var e=s.requireProcessNextickArgs();function t(e,t){e.emit("error",t)}return T={destroy:function(r,n){var i=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(n?n(r):!r||this._writableState&&this._writableState.errorEmitted||e.nextTick(t,this,r),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(r){!n&&r?(e.nextTick(t,i,r),i._writableState&&(i._writableState.errorEmitted=!0)):n&&n(r)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}}function Q(){if(A)return L;A=1;var e=s.requireProcessNextickArgs();function t(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}L=y;var n,i=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:e.nextTick;y.WritableState=m;var o=Object.create(s.requireUtil());o.inherits=l.requireInherits();var a={deprecate:s.requireNode()},f=B(),u=R().Buffer,c=r.commonjsGlobal.Uint8Array||function(){};var d,p=J();function h(){}function m(r,o){n=n||ee(),r=r||{};var a=o instanceof n;this.objectMode=!!r.objectMode,a&&(this.objectMode=this.objectMode||!!r.writableObjectMode);var s=r.highWaterMark,f=r.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:a&&(f||0===f)?f:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===r.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,r){var n=t._writableState,o=n.sync,a=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),r)!function(t,r,n,i,o){--r.pendingcb,n?(e.nextTick(o,i),e.nextTick(_,t,r),t._writableState.errorEmitted=!0,t.emit("error",i)):(o(i),t._writableState.errorEmitted=!0,t.emit("error",i),_(t,r))}(t,n,o,r,a);else{var s=v(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||w(t,n),o?i(b,t,n,s,a):b(t,n,s,a)}}(o,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function y(e){if(n=n||ee(),!(d.call(y,this)||this instanceof n))return new y(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function g(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function b(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),_(e,t)}function w(e,r){r.bufferProcessing=!0;var n=r.bufferedRequest;if(e._writev&&n&&n.next){var i=r.bufferedRequestCount,o=new Array(i),a=r.corkedRequestsFree;a.entry=n;for(var s=0,f=!0;n;)o[s]=n,n.isBuf||(f=!1),n=n.next,s+=1;o.allBuffers=f,g(e,r,!0,r.length,o,"",a.finish),r.pendingcb++,r.lastBufferedRequest=null,a.next?(r.corkedRequestsFree=a.next,a.next=null):r.corkedRequestsFree=new t(r),r.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,c=n.callback;if(g(e,r,!1,r.objectMode?1:u.length,u,l,c),n=n.next,r.bufferedRequestCount--,r.writing)break}null===n&&(r.lastBufferedRequest=null)}r.bufferedRequest=n,r.bufferProcessing=!1}function v(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),_(e,t)})}function _(t,r){var n=v(r);return n&&(!function(t,r){r.prefinished||r.finalCalled||("function"==typeof t._final?(r.pendingcb++,r.finalCalled=!0,e.nextTick(x,t,r)):(r.prefinished=!0,t.emit("prefinish")))}(t,r),0===r.pendingcb&&(r.finished=!0,t.emit("finish"))),n}return o.inherits(y,f),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===y&&(e&&e._writableState instanceof m)}})):d=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(t,r,n){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=t,u.isBuffer(i)||i instanceof c);return s&&!u.isBuffer(t)&&(t=function(e){return u.from(e)}(t)),"function"==typeof r&&(n=r,r=null),s?r="buffer":r||(r=o.defaultEncoding),"function"!=typeof n&&(n=h),o.ended?function(t,r){var n=new Error("write after end");t.emit("error",n),e.nextTick(r,n)}(this,n):(s||function(t,r,n,i){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||r.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),e.nextTick(i,a),o=!1),o}(this,o,t,n))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var f=t.length<t.highWaterMark;f||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else g(e,t,!1,s,n,i,o);return f}(this,o,s,t,r,n)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,r,n){var i=this._writableState;"function"==typeof t?(n=t,t=null,r=null):"function"==typeof r&&(n=r,r=null),null!=t&&this.write(t,r),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(t,r,n){r.ending=!0,_(t,r),n&&(r.finished?e.nextTick(n):t.once("finish",n));r.ended=!0,t.writable=!1}(this,i,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=p.destroy,y.prototype._undestroy=p.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)},L}function ee(){if(P)return I;P=1;var e=s.requireProcessNextickArgs(),t=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};I=u;var r=Object.create(s.requireUtil());r.inherits=l.requireInherits();var n=te(),i=Q();r.inherits(u,n);for(var o=t(i.prototype),a=0;a<o.length;a++){var f=o[a];u.prototype[f]||(u.prototype[f]=i.prototype[f])}function u(e){if(!(this instanceof u))return new u(e);n.call(this,e),i.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||e.nextTick(d,this)}function d(e){e.end()}return Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),u.prototype._destroy=function(t,r){this.push(null),this.end(),e.nextTick(r,t)},I}function te(){if(U)return M;U=1;var e=s.requireProcessNextickArgs();M=v;var t,n=s.requireIsarray();v.ReadableState=w,f.EventEmitter;var i=function(e,t){return e.listeners(t).length},a=B(),u=R().Buffer,c=r.commonjsGlobal.Uint8Array||function(){};var d=Object.create(s.requireUtil());d.inherits=l.requireInherits();var p=o,h=void 0;h=p&&p.debuglog?p.debuglog("stream"):function(){};var m,y=$(),g=J();d.inherits(v,a);var b=["error","close","destroy","pause","resume"];function w(e,r){e=e||{};var n=r instanceof(t=t||ee());this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,o=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(o||0===o)?o:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(m||(m=s.requireString_decoder().StringDecoder),this.decoder=new m(e.encoding),this.encoding=e.encoding)}function v(e){if(t=t||ee(),!(this instanceof v))return new v(e);this._readableState=new w(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function x(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,k(e)}(e,a)):(i||(o=function(e,t){var r;n=t,u.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):C(e,a)):_(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function _(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&k(e)),C(e,t)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=g.destroy,v.prototype._undestroy=g.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),x(this,e,t,!1,r)},v.prototype.unshift=function(e){return x(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(e){return m||(m=s.requireString_decoder().StringDecoder),this._readableState.decoder=new m(e),this._readableState.encoding=e,this};var E=8388608;function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=E?e=E:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(t){var r=t._readableState;r.needReadable=!1,r.emittedReadable||(h("emitReadable",r.flowing),r.emittedReadable=!0,r.sync?e.nextTick(z,t):z(t))}function z(e){h("emit readable"),e.emit("readable"),L(e)}function C(t,r){r.readingMore||(r.readingMore=!0,e.nextTick(O,t,r))}function O(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function T(e){h("readable nexttick read 0"),e.read(0)}function j(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function A(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=u.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function I(t){var r=t._readableState;if(r.length>0)throw new Error('"endReadable()" called on non-empty stream');r.endEmitted||(r.ended=!0,e.nextTick(P,r,t))}function P(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function q(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}return v.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):k(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&I(this),null;var n,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(r,t))),null===(n=e>0?A(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&I(this)),null!==n&&this.emit("data",n),n},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(t,r){var o=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=t;break;case 1:a.pipes=[a.pipes,t];break;default:a.pipes.push(t)}a.pipesCount+=1,h("pipe count=%d opts=%j",a.pipesCount,r);var s=(!r||!1!==r.end)&&t!==process.stdout&&t!==process.stderr?u:b;function f(e,r){h("onunpipe"),e===o&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),t.removeListener("close",y),t.removeListener("finish",g),t.removeListener("drain",l),t.removeListener("error",m),t.removeListener("unpipe",f),o.removeListener("end",u),o.removeListener("end",b),o.removeListener("data",p),c=!0,!a.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}function u(){h("onend"),t.end()}a.endEmitted?e.nextTick(s):o.once("end",s),t.on("unpipe",f);var l=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,L(e))}}(o);t.on("drain",l);var c=!1;var d=!1;function p(e){h("ondata"),d=!1,!1!==t.write(e)||d||((1===a.pipesCount&&a.pipes===t||a.pipesCount>1&&-1!==q(a.pipes,t))&&!c&&(h("false write response, pause",o._readableState.awaitDrain),o._readableState.awaitDrain++,d=!0),o.pause())}function m(e){h("onerror",e),b(),t.removeListener("error",m),0===i(t,"error")&&t.emit("error",e)}function y(){t.removeListener("finish",g),b()}function g(){h("onfinish"),t.removeListener("close",y),b()}function b(){h("unpipe"),o.unpipe(t)}return o.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(t,"error",m),t.once("close",y),t.once("finish",g),t.emit("pipe",o),a.flowing||(h("pipe resume"),o.resume()),t},v.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=q(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},v.prototype.on=function(t,r){var n=a.prototype.on.call(this,t,r);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&k(this):e.nextTick(T,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var t=this._readableState;return t.flowing||(h("resume"),t.flowing=!0,function(t,r){r.resumeScheduled||(r.resumeScheduled=!0,e.nextTick(j,t,r))}(this,t)),this},v.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(h("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){(h("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<b.length;o++)e.on(b[o],this.emit.bind(this,b[o]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=A,M}function re(){if(F)return q;F=1,q=n;var e=ee(),t=Object.create(s.requireUtil());function r(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function n(t){if(!(this instanceof n))return new n(t);e.call(this,t),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",i)}function i(){var e=this;"function"==typeof this._flush?this._flush(function(t,r){o(e,t,r)}):o(this,null,null)}function o(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}return t.inherits=l.requireInherits(),t.inherits(n,e),n.prototype.push=function(t,r){return this._transformState.needTransform=!1,e.prototype.push.call(this,t,r)},n.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},n.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},n.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},n.prototype._destroy=function(t,r){var n=this;e.prototype._destroy.call(this,t,function(e){r(e),n.emit("close")})},q}function ne(){return W||(W=1,e=k,t=k.exports,(r=a)?(e.exports=r,(t=e.exports=r.Readable).Readable=r.Readable,t.Writable=r.Writable,t.Duplex=r.Duplex,t.Transform=r.Transform,t.PassThrough=r.PassThrough,t.Stream=r):((t=e.exports=te()).Stream=r||t,t.Readable=t,t.Writable=Q(),t.Duplex=ee(),t.Transform=re(),t.PassThrough=function(){if(N)return D;N=1,D=r;var e=re(),t=Object.create(s.requireUtil());function r(t){if(!(this instanceof r))return new r(t);e.call(this,t)}return t.inherits=l.requireInherits(),t.inherits(r,e),r.prototype._transform=function(e,t,r){r(null,e)},D}())),k.exports;var e,t,r}function ie(){if(X)return G;X=1;var e=Z?H:(Z=1,H=ne().Duplex),t=o,r=l.requireSafeBuffer().Buffer;function n(t){if(!(this instanceof n))return new n(t);if(this._bufs=[],this.length=0,"function"==typeof t){this._callback=t;var r=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",function(e){e.on("error",r)}),this.on("unpipe",function(e){e.removeListener("error",r)})}else this.append(t);e.call(this)}return t.inherits(n,e),n.prototype._offset=function(e){var t,r=0,n=0;if(0===e)return[0,0];for(;n<this._bufs.length;n++){if(e<(t=r+this._bufs[n].length)||n==this._bufs.length-1)return[n,e-r];r=t}},n.prototype.append=function(e){var t=0;if(r.isBuffer(e))this._appendBuffer(e);else if(Array.isArray(e))for(;t<e.length;t++)this.append(e[t]);else if(e instanceof n)for(;t<e._bufs.length;t++)this.append(e._bufs[t]);else null!=e&&("number"==typeof e&&(e=e.toString()),this._appendBuffer(r.from(e)));return this},n.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length},n.prototype._write=function(e,t,r){this._appendBuffer(e),"function"==typeof r&&r()},n.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},n.prototype.end=function(t){e.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)},n.prototype.get=function(e){return this.slice(e,e+1)[0]},n.prototype.slice=function(e,t){return"number"==typeof e&&e<0&&(e+=this.length),"number"==typeof t&&t<0&&(t+=this.length),this.copy(null,0,e,t)},n.prototype.copy=function(e,t,n,i){if(("number"!=typeof n||n<0)&&(n=0),("number"!=typeof i||i>this.length)&&(i=this.length),n>=this.length)return e||r.alloc(0);if(i<=0)return e||r.alloc(0);var o,a,s=!!e,f=this._offset(n),u=i-n,l=u,c=s&&t||0,d=f[1];if(0===n&&i==this.length){if(!s)return 1===this._bufs.length?this._bufs[0]:r.concat(this._bufs,this.length);for(a=0;a<this._bufs.length;a++)this._bufs[a].copy(e,c),c+=this._bufs[a].length;return e}if(l<=this._bufs[f[0]].length-d)return s?this._bufs[f[0]].copy(e,t,d,d+l):this._bufs[f[0]].slice(d,d+l);for(s||(e=r.allocUnsafe(u)),a=f[0];a<this._bufs.length;a++){if(!(l>(o=this._bufs[a].length-d))){this._bufs[a].copy(e,c,d,d+l),c+=o;break}this._bufs[a].copy(e,c,d),c+=o,l-=o,d&&(d=0)}return e.length>c?e.slice(0,c):e},n.prototype.shallowSlice=function(e,t){e=e||0,t=t||this.length,e<0&&(e+=this.length),t<0&&(t+=this.length);var r=this._offset(e),i=this._offset(t),o=this._bufs.slice(r[0],i[0]+1);return 0==i[1]?o.pop():o[o.length-1]=o[o.length-1].slice(0,i[1]),0!=r[1]&&(o[0]=o[0].slice(r[1])),new n(o)},n.prototype.toString=function(e,t,r){return this.slice(t,r).toString(e)},n.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;){if(!(e>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},n.prototype.duplicate=function(){for(var e=0,t=new n;e<this._bufs.length;e++)t.append(this._bufs[e]);return t},n.prototype.destroy=function(){this._bufs.length=0,this.length=0,this.push(null)},function(){var e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1};for(var t in e)(function(t){n.prototype[t]=function(r){return this.slice(r,r+e[t])[t](0)}})(t)}(),G=n}var oe,ae,se,fe,ue,le,ce,de,pe,he,me,ye,ge,be,we,ve,xe,_e,Ee,Se,ke,Be,ze,Ce,Re,Oe,Te={};function je(){if(ae)return oe;ae=1;var e=function(){try{if(!Buffer.isEncoding("latin1"))return!1;var e=Buffer.alloc?Buffer.alloc(4):new Buffer(4);return e.fill("ab","ucs2"),"61006200"===e.toString("hex")}catch(e){return!1}}();function t(e,t,r,n){if(r<0||n>e.length)throw new RangeError("Out of range index");return r>>>=0,(n=void 0===n?e.length:n>>>0)>r&&e.fill(t,r,n),e}return oe=function(r,n,i,o,a){if(e)return r.fill(n,i,o,a);if("number"==typeof n)return t(r,n,i,o);if("string"==typeof n){if("string"==typeof i?(a=i,i=0,o=r.length):"string"==typeof o&&(a=o,o=r.length),void 0!==a&&"string"!=typeof a)throw new TypeError("encoding must be a string");if("latin1"===a&&(a="binary"),"string"==typeof a&&!Buffer.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(""===n)return t(r,0,i,o);if(function(e){return 1===e.length&&e.charCodeAt(0)<256}(n))return t(r,n.charCodeAt(0),i,o);n=new Buffer(n,a)}return Buffer.isBuffer(n)?function(e,t,r,n){if(r<0||n>e.length)throw new RangeError("Out of range index");if(n<=r)return e;r>>>=0,n=void 0===n?e.length:n>>>0;for(var i=r,o=t.length;i<=n-o;)t.copy(e,i),i+=o;return i!==n&&t.copy(e,i,0,n-i),e}(r,n,i,o):t(r,0,i,o)}}function Le(){if(le)return ue;le=1;var e=je(),t=fe?se:(fe=1,se=function(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative');return Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e)});return ue=function(r,n,i){if("number"!=typeof r)throw new TypeError('"size" argument must be a number');if(r<0)throw new RangeError('"size" argument must not be negative');if(Buffer.alloc)return Buffer.alloc(r,n,i);var o=t(r);return 0===r?o:void 0===n?e(o,0):("string"!=typeof i&&(i=void 0),e(o,n,i))}}function Ae(){if(ce)return Te;ce=1;var e=c.requireToBuffer(),t=Le(),r="0".charCodeAt(0),n=parseInt("7777",8),i=function(e,t,r,n){for(;r<n;r++)if(e[r]===t)return r;return n},o=function(e){for(var t=256,r=0;r<148;r++)t+=e[r];for(var n=156;n<512;n++)t+=e[n];return t},a=function(e,t){return(e=e.toString(8)).length>t?"7777777777777777777".slice(0,t)+" ":"0000000000000000000".slice(0,t-e.length)+e+" "};var s=function(e,t,r){if(128&(e=e.slice(t,t+r))[t=0])return function(e){var t;if(128===e[0])t=!0;else{if(255!==e[0])return null;t=!1}for(var r=[],n=e.length-1;n>0;n--){var i=e[n];t?r.push(i):r.push(255-i)}var o=0,a=r.length;for(n=0;n<a;n++)o+=r[n]*Math.pow(256,n);return t?o:-1*o}(e);for(;t<e.length&&32===e[t];)t++;for(var n=function(e,t,r){return"number"!=typeof e?r:(e=~~e)>=t?t:e>=0||(e+=t)>=0?e:0}(i(e,32,t,e.length),e.length,e.length);t<n&&0===e[t];)t++;return n===t?0:parseInt(e.slice(t,n).toString(),8)},f=function(e,t,r,n){return e.slice(t,i(e,0,t,t+r)).toString(n)},u=function(e){var t=Buffer.byteLength(e),r=Math.floor(Math.log(t)/Math.log(10))+1;return t+r>=Math.pow(10,r)&&r++,t+r+e};return Te.decodeLongPath=function(e,t){return f(e,0,e.length,t)},Te.encodePax=function(t){var r="";t.name&&(r+=u(" path="+t.name+"\n")),t.linkname&&(r+=u(" linkpath="+t.linkname+"\n"));var n=t.pax;if(n)for(var i in n)r+=u(" "+i+"="+n[i]+"\n");return e(r)},Te.decodePax=function(e){for(var t={};e.length;){for(var r=0;r<e.length&&32!==e[r];)r++;var n=parseInt(e.slice(0,r).toString(),10);if(!n)return t;var i=e.slice(r+1,n-1).toString(),o=i.indexOf("=");if(-1===o)return t;t[i.slice(0,o)]=i.slice(o+1),e=e.slice(n)}return t},Te.encode=function(e){var i=t(512),s=e.name,f="";if(5===e.typeflag&&"/"!==s[s.length-1]&&(s+="/"),Buffer.byteLength(s)!==s.length)return null;for(;Buffer.byteLength(s)>100;){var u=s.indexOf("/");if(-1===u)return null;f+=f?"/"+s.slice(0,u):s.slice(0,u),s=s.slice(u+1)}return Buffer.byteLength(s)>100||Buffer.byteLength(f)>155||e.linkname&&Buffer.byteLength(e.linkname)>100?null:(i.write(s),i.write(a(e.mode&n,6),100),i.write(a(e.uid,6),108),i.write(a(e.gid,6),116),i.write(a(e.size,11),124),i.write(a(e.mtime.getTime()/1e3|0,11),136),i[156]=r+function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(e.type),e.linkname&&i.write(e.linkname,157),i.write("ustar\x0000",257),e.uname&&i.write(e.uname,265),e.gname&&i.write(e.gname,297),i.write(a(e.devmajor||0,6),329),i.write(a(e.devminor||0,6),337),f&&i.write(f,345),i.write(a(o(i),6),148),i)},Te.decode=function(e,t){var n=0===e[156]?0:e[156]-r,i=f(e,0,100,t),a=s(e,100,8),u=s(e,108,8),l=s(e,116,8),c=s(e,124,12),d=s(e,136,12),p=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}(n),h=0===e[157]?null:f(e,157,100,t),m=f(e,265,32),y=f(e,297,32),g=s(e,329,8),b=s(e,337,8);e[345]&&(i=f(e,345,155,t)+"/"+i),0===n&&i&&"/"===i[i.length-1]&&(n=5);var w=o(e);if(256===w)return null;if(w!==s(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");return{name:i,mode:a,uid:u,gid:l,size:c,mtime:new Date(1e3*d),type:p,linkname:h,uname:m,gname:y,devmajor:g,devminor:b}},Te}function Ie(){if(pe)return de;pe=1;var e=o,t=ie(),r=function(){if(K)return Y;K=1,Y=function(){for(var t={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)e.call(n,i)&&(t[i]=n[i])}return t};var e=Object.prototype.hasOwnProperty;return Y}(),n=Ae(),i=ne().Writable,a=ne().PassThrough,s=function(){},f=function(e){return(e&=511)&&512-e},u=function(e,t){this._parent=e,this.offset=t,a.call(this)};e.inherits(u,a),u.prototype.destroy=function(e){this._parent.destroy(e)};var l=function(e){if(!(this instanceof l))return new l(e);i.call(this,e),e=e||{},this._offset=0,this._buffer=t(),this._missing=0,this._partial=!1,this._onparse=s,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var o=this,a=o._buffer,c=function(){o._continue()},d=function(e){if(o._locked=!1,e)return o.destroy(e);o._stream||c()},p=function(){o._stream=null;var e=f(o._header.size);e?o._parse(e,h):o._parse(512,w),o._locked||c()},h=function(){o._buffer.consume(f(o._header.size)),o._parse(512,w),c()},m=function(){var e=o._header.size;o._paxGlobal=n.decodePax(a.slice(0,e)),a.consume(e),p()},y=function(){var e=o._header.size;o._pax=n.decodePax(a.slice(0,e)),o._paxGlobal&&(o._pax=r(o._paxGlobal,o._pax)),a.consume(e),p()},g=function(){var t=o._header.size;this._gnuLongPath=n.decodeLongPath(a.slice(0,t),e.filenameEncoding),a.consume(t),p()},b=function(){var t=o._header.size;this._gnuLongLinkPath=n.decodeLongPath(a.slice(0,t),e.filenameEncoding),a.consume(t),p()},w=function(){var t,r=o._offset;try{t=o._header=n.decode(a.slice(0,512),e.filenameEncoding)}catch(e){o.emit("error",e)}return a.consume(512),t?"gnu-long-path"===t.type?(o._parse(t.size,g),void c()):"gnu-long-link-path"===t.type?(o._parse(t.size,b),void c()):"pax-global-header"===t.type?(o._parse(t.size,m),void c()):"pax-header"===t.type?(o._parse(t.size,y),void c()):(o._gnuLongPath&&(t.name=o._gnuLongPath,o._gnuLongPath=null),o._gnuLongLinkPath&&(t.linkname=o._gnuLongLinkPath,o._gnuLongLinkPath=null),o._pax&&(o._header=t=function(e,t){return t.path&&(e.name=t.path),t.linkpath&&(e.linkname=t.linkpath),t.size&&(e.size=parseInt(t.size,10)),e.pax=t,e}(t,o._pax),o._pax=null),o._locked=!0,t.size&&"directory"!==t.type?(o._stream=new u(o,r),o.emit("entry",t,o._stream,d),o._parse(t.size,p),void c()):(o._parse(512,w),void o.emit("entry",t,function(e,t){var r=new u(e,t);return r.end(),r}(o,r),d))):(o._parse(512,w),void c())};this._onheader=w,this._parse(512,w)};return e.inherits(l,i),l.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.emit("close"))},l.prototype._parse=function(e,t){this._destroyed||(this._offset+=e,this._missing=e,t===this._onheader&&(this._partial=!1),this._onparse=t)},l.prototype._continue=function(){if(!this._destroyed){var e=this._cb;this._cb=s,this._overflow?this._write(this._overflow,void 0,e):e()}},l.prototype._write=function(e,t,r){if(!this._destroyed){var n=this._stream,i=this._buffer,o=this._missing;if(e.length&&(this._partial=!0),e.length<o)return this._missing-=e.length,this._overflow=null,n?n.write(e,r):(i.append(e),r());this._cb=r,this._missing=0;var a=null;e.length>o&&(a=e.slice(o),e=e.slice(0,o)),n?n.end(e):i.append(e),this._overflow=a,this._onparse()}},l.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()},de=l}function Pe(){if(ge)return ye;ge=1;var e=h.requireOnce(),t=function(){},r=function(n,i,o){if("function"==typeof i)return r(n,null,i);i||(i={}),o=e(o||t);var a=n._writableState,s=n._readableState,f=i.readable||!1!==i.readable&&n.readable,u=i.writable||!1!==i.writable&&n.writable,l=!1,c=function(){n.writable||d()},d=function(){u=!1,f||o.call(n)},p=function(){f=!1,u||o.call(n)},h=function(e){o.call(n,e?new Error("exited with error code: "+e):null)},m=function(e){o.call(n,e)},y=function(){process.nextTick(g)},g=function(){if(!l)return(!f||s&&s.ended&&!s.destroyed)&&(!u||a&&a.ended&&!a.destroyed)?void 0:o.call(n,new Error("premature close"))},b=function(){n.req.on("finish",d)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(n)?u&&!a&&(n.on("end",c),n.on("close",c)):(n.on("complete",d),n.on("abort",y),n.req?b():n.on("request",b)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(n)&&n.on("exit",h),n.on("end",p),n.on("finish",d),!1!==i.error&&n.on("error",m),n.on("close",y),function(){l=!0,n.removeListener("complete",d),n.removeListener("abort",y),n.removeListener("request",b),n.req&&n.req.removeListener("finish",d),n.removeListener("end",c),n.removeListener("close",c),n.removeListener("finish",d),n.removeListener("exit",h),n.removeListener("end",p),n.removeListener("error",m),n.removeListener("close",y)}};return ye=r}function Me(){if(we)return be;we=1;var e=me?he:(me=1,he=d.constants||p),t=Pe(),r=o,n=Le(),i=c.requireToBuffer(),a=ne().Readable,s=ne().Writable,f=m.StringDecoder,u=Ae(),l=parseInt("755",8),h=parseInt("644",8),y=n(1024),g=function(){},b=function(e,t){(t&=511)&&e.push(y.slice(0,512-t))};var w=function(e){s.call(this),this.written=0,this._to=e,this._destroyed=!1};r.inherits(w,s),w.prototype._write=function(e,t,r){if(this.written+=e.length,this._to.push(e))return r();this._to._drain=r},w.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var v=function(){s.call(this),this.linkname="",this._decoder=new f("utf-8"),this._destroyed=!1};r.inherits(v,s),v.prototype._write=function(e,t,r){this.linkname+=this._decoder.write(e),r()},v.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var x=function(){s.call(this),this._destroyed=!1};r.inherits(x,s),x.prototype._write=function(e,t,r){r(new Error("No body allowed for this entry"))},x.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var _=function(e){if(!(this instanceof _))return new _(e);a.call(this,e),this._drain=g,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};return r.inherits(_,a),_.prototype.entry=function(r,n,o){if(this._stream)throw new Error("already piping an entry");if(!this._finalized&&!this._destroyed){"function"==typeof n&&(o=n,n=null),o||(o=g);var a=this;if(r.size&&"symlink"!==r.type||(r.size=0),r.type||(r.type=function(t){switch(t&e.S_IFMT){case e.S_IFBLK:return"block-device";case e.S_IFCHR:return"character-device";case e.S_IFDIR:return"directory";case e.S_IFIFO:return"fifo";case e.S_IFLNK:return"symlink"}return"file"}(r.mode)),r.mode||(r.mode="directory"===r.type?l:h),r.uid||(r.uid=0),r.gid||(r.gid=0),r.mtime||(r.mtime=new Date),"string"==typeof n&&(n=i(n)),Buffer.isBuffer(n))return r.size=n.length,this._encode(r),this.push(n),b(a,r.size),process.nextTick(o),new x;if("symlink"===r.type&&!r.linkname){var s=new v;return t(s,function(e){if(e)return a.destroy(),o(e);r.linkname=s.linkname,a._encode(r),o()}),s}if(this._encode(r),"file"!==r.type&&"contiguous-file"!==r.type)return process.nextTick(o),new x;var f=new w(this);return this._stream=f,t(f,function(e){return a._stream=null,e?(a.destroy(),o(e)):f.written!==r.size?(a.destroy(),o(new Error("size mismatch"))):(b(a,r.size),a._finalizing&&a.finalize(),void o())}),f}},_.prototype.finalize=function(){this._stream?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(y),this.push(null))},_.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())},_.prototype._encode=function(e){if(!e.pax){var t=u.encode(e);if(t)return void this.push(t)}this._encodePax(e)},_.prototype._encodePax=function(e){var t=u.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(u.encode(r)),this.push(t),b(this,t.length),r.size=e.size,r.type=e.type,this.push(u.encode(r))},_.prototype._read=function(e){var t=this._drain;this._drain=g,t()},be=_}function Ue(){return ve||(ve=1,S.extract=Ie(),S.pack=Me()),S}function qe(){if(_e)return xe;_e=1;const e=b(),t=x(),r=Ue();return xe=()=>n=>{if(!Buffer.isBuffer(n)&&!t(n))return Promise.reject(new TypeError("Expected a Buffer or Stream, got "+typeof n));if(Buffer.isBuffer(n)&&(!e(n)||"tar"!==e(n).ext))return Promise.resolve([]);const i=r.extract(),o=[];i.on("entry",(e,t,r)=>{const n=[];t.on("data",e=>n.push(e)),t.on("end",()=>{const t={data:Buffer.concat(n),mode:e.mode,mtime:e.mtime,path:e.name,type:e.type};"symlink"!==e.type&&"link"!==e.type||(t.linkname=e.linkname),o.push(t),r()})});const a=new Promise((e,t)=>{Buffer.isBuffer(n)||n.on("error",t),i.on("finish",()=>e(o)),i.on("error",t)});return i.then=a.then.bind(a),i.catch=a.catch.bind(a),Buffer.isBuffer(n)?i.end(n):n.pipe(i),i},xe}var Fe,De,Ne={version:"1.0.6",license:"MIT"};function We(){if(De)return Fe;De=1;var e,t=function(){if(Be)return ke;Be=1;var e=[0,1,3,7,15,31,63,127,255],t=function(e){this.stream=e,this.bitOffset=0,this.curByte=0,this.hasByte=!1};return t.prototype._ensureByte=function(){this.hasByte||(this.curByte=this.stream.readByte(),this.hasByte=!0)},t.prototype.read=function(t){for(var r=0;t>0;){this._ensureByte();var n=8-this.bitOffset;if(t>=n)r<<=n,r|=e[n]&this.curByte,this.hasByte=!1,this.bitOffset=0,t-=n;else{r<<=t;var i=n-t;r|=(this.curByte&e[t]<<i)>>i,this.bitOffset+=t,t=0}}return r},t.prototype.seek=function(e){var t=e%8,r=(e-t)/8;this.bitOffset=t,this.stream.seek(r),this.hasByte=!1},t.prototype.pi=function(){var e,t=new Buffer(6);for(e=0;e<t.length;e++)t[e]=this.read(8);return t.toString("hex")},ke=t}(),r=function(){if(Ce)return ze;Ce=1;var e=function(){};return e.prototype.readByte=function(){throw new Error("abstract method readByte() not implemented")},e.prototype.read=function(e,t,r){for(var n=0;n<r;){var i=this.readByte();if(i<0)return 0===n?-1:n;e[t++]=i,n++}return n},e.prototype.seek=function(e){throw new Error("abstract method seek() not implemented")},e.prototype.writeByte=function(e){throw new Error("abstract method readByte() not implemented")},e.prototype.write=function(e,t,r){var n;for(n=0;n<r;n++)this.writeByte(e[t++]);return r},e.prototype.flush=function(){},ze=e}(),n=Oe?Re:(Oe=1,e=new Uint32Array([0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188]),Re=function(){var t=4294967295;this.getCRC=function(){return~t>>>0},this.updateCRC=function(r){t=t<<8^e[255&(t>>>24^r)]},this.updateCRCRun=function(r,n){for(;n-- >0;)t=t<<8^e[255&(t>>>24^r)]}}),i=Ne,o=function(e,t){var r,n=e[t];for(r=t;r>0;r--)e[r]=e[r-1];return e[0]=n,n},a={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8},s={};s[a.LAST_BLOCK]="Bad file checksum",s[a.NOT_BZIP_DATA]="Not bzip data",s[a.UNEXPECTED_INPUT_EOF]="Unexpected input EOF",s[a.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF",s[a.DATA_ERROR]="Data error",s[a.OUT_OF_MEMORY]="Out of memory",s[a.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var f=function(e,t){var r=s[e]||"unknown error";t&&(r+=": "+t);var n=new TypeError(r);throw n.errorCode=e,n},u=function(e,t){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(e,t)};u.prototype._init_block=function(){return this._get_next_block()?(this.blockCRC=new n,!0):(this.writeCount=-1,!1)},u.prototype._start_bunzip=function(e,r){var n=new Buffer(4);4===e.read(n,0,4)&&"BZh"===String.fromCharCode(n[0],n[1],n[2])||f(a.NOT_BZIP_DATA,"bad magic");var i=n[3]-48;(i<1||i>9)&&f(a.NOT_BZIP_DATA,"level out of range"),this.reader=new t(e),this.dbufSize=1e5*i,this.nextoutput=0,this.outputStream=r,this.streamCRC=0},u.prototype._get_next_block=function(){var e,t,r,n=this.reader,i=n.pi();if("177245385090"===i)return!1;"314159265359"!==i&&f(a.NOT_BZIP_DATA),this.targetBlockCRC=n.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,n.read(1)&&f(a.OBSOLETE_INPUT);var s=n.read(24);s>this.dbufSize&&f(a.DATA_ERROR,"initial position out of bounds");var u=n.read(16),l=new Buffer(256),c=0;for(e=0;e<16;e++)if(u&1<<15-e){var d=16*e;for(r=n.read(16),t=0;t<16;t++)r&1<<15-t&&(l[c++]=d+t)}var p=n.read(3);(p<2||p>6)&&f(a.DATA_ERROR);var h=n.read(15);0===h&&f(a.DATA_ERROR);var m=new Buffer(256);for(e=0;e<p;e++)m[e]=e;var y=new Buffer(h);for(e=0;e<h;e++){for(t=0;n.read(1);t++)t>=p&&f(a.DATA_ERROR);y[e]=o(m,t)}var g,b=c+2,w=[];for(t=0;t<p;t++){var v,x,_=new Buffer(b),E=new Uint16Array(21);for(u=n.read(5),e=0;e<b;e++){for(;(u<1||u>20)&&f(a.DATA_ERROR),n.read(1);)n.read(1)?u--:u++;_[e]=u}for(v=x=_[0],e=1;e<b;e++)_[e]>x?x=_[e]:_[e]<v&&(v=_[e]);g={},w.push(g),g.permute=new Uint16Array(258),g.limit=new Uint32Array(22),g.base=new Uint32Array(21),g.minLen=v,g.maxLen=x;var S=0;for(e=v;e<=x;e++)for(E[e]=g.limit[e]=0,u=0;u<b;u++)_[u]===e&&(g.permute[S++]=u);for(e=0;e<b;e++)E[_[e]]++;for(S=u=0,e=v;e<x;e++)S+=E[e],g.limit[e]=S-1,S<<=1,u+=E[e],g.base[e+1]=S-u;g.limit[x+1]=Number.MAX_VALUE,g.limit[x]=S+E[x]-1,g.base[v]=0}var k=new Uint32Array(256);for(e=0;e<256;e++)m[e]=e;var B,z=0,C=0,R=0,O=this.dbuf=new Uint32Array(this.dbufSize);for(b=0;;){for(b--||(b=49,R>=h&&f(a.DATA_ERROR),g=w[y[R++]]),e=g.minLen,t=n.read(e);e>g.maxLen&&f(a.DATA_ERROR),!(t<=g.limit[e]);e++)t=t<<1|n.read(1);((t-=g.base[e])<0||t>=258)&&f(a.DATA_ERROR);var T=g.permute[t];if(0!==T&&1!==T){if(z)for(z=0,C+u>this.dbufSize&&f(a.DATA_ERROR),k[B=l[m[0]]]+=u;u--;)O[C++]=B;if(T>c)break;C>=this.dbufSize&&f(a.DATA_ERROR),k[B=l[B=o(m,e=T-1)]]++,O[C++]=B}else z||(z=1,u=0),u+=0===T?z:2*z,z<<=1}for((s<0||s>=C)&&f(a.DATA_ERROR),t=0,e=0;e<256;e++)r=t+k[e],k[e]=t,t=r;for(e=0;e<C;e++)O[k[B=255&O[e]]]|=e<<8,k[B]++;var j=0,L=0,A=0;return C&&(L=255&(j=O[s]),j>>=8,A=-1),this.writePos=j,this.writeCurrent=L,this.writeCount=C,this.writeRun=A,!0},u.prototype._read_bunzip=function(e,t){var r,n,i;if(this.writeCount<0)return 0;var o=this.dbuf,s=this.writePos,u=this.writeCurrent,l=this.writeCount;this.outputsize;for(var c=this.writeRun;l;){for(l--,n=u,u=255&(s=o[s]),s>>=8,3===c++?(r=u,i=n,u=-1):(r=1,i=u),this.blockCRC.updateCRCRun(i,r);r--;)this.outputStream.writeByte(i),this.nextoutput++;u!=n&&(c=0)}return this.writeCount=l,this.blockCRC.getCRC()!==this.targetBlockCRC&&f(a.DATA_ERROR,"Bad block CRC (got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")"),this.nextoutput};var l=function(e){if("readByte"in e)return e;var t=new r;return t.pos=0,t.readByte=function(){return e[this.pos++]},t.seek=function(e){this.pos=e},t.eof=function(){return this.pos>=e.length},t},c=function(e){var t=new r,n=!0;if(e)if("number"==typeof e)t.buffer=new Buffer(e),n=!1;else{if("writeByte"in e)return e;t.buffer=e,n=!1}else t.buffer=new Buffer(16384);return t.pos=0,t.writeByte=function(e){if(n&&this.pos>=this.buffer.length){var t=new Buffer(2*this.buffer.length);this.buffer.copy(t),this.buffer=t}this.buffer[this.pos++]=e},t.getBuffer=function(){if(this.pos!==this.buffer.length){if(!n)throw new TypeError("outputsize does not match decoded input");var e=new Buffer(this.pos);this.buffer.copy(e,0,0,this.pos),this.buffer=e}return this.buffer},t._coerced=!0,t};return u.Err=a,u.decode=function(e,t,r){for(var n=l(e),i=c(t),o=new u(n,i);!("eof"in n)||!n.eof();)if(o._init_block())o._read_bunzip();else{var s=o.reader.read(32)>>>0;if(s!==o.streamCRC&&f(a.DATA_ERROR,"Bad stream CRC (got "+o.streamCRC.toString(16)+" expected "+s.toString(16)+")"),!r||!("eof"in n)||n.eof())break;o._start_bunzip(n,i)}if("getBuffer"in i)return i.getBuffer()},u.decodeBlock=function(e,t,r){var i=l(e),o=c(r),a=new u(i,o);if(a.reader.seek(t),a._get_next_block()&&(a.blockCRC=new n,a.writeCopies=0,a._read_bunzip()),"getBuffer"in o)return o.getBuffer()},u.table=function(e,t,n){var i=new r;i.delegate=l(e),i.pos=0,i.readByte=function(){return this.pos++,this.delegate.readByte()},i.delegate.eof&&(i.eof=i.delegate.eof.bind(i.delegate));var o=new r;o.pos=0,o.writeByte=function(){this.pos++};for(var a=new u(i,o),s=a.dbufSize;!("eof"in i)||!i.eof();){var f=8*i.pos+a.reader.bitOffset;if(a.reader.hasByte&&(f-=8),a._init_block()){var c=o.pos;a._read_bunzip(),t(f,o.pos-c)}else{if(a.reader.read(32),!n||!("eof"in i)||i.eof())break;a._start_bunzip(i,o),console.assert(a.dbufSize===s,"shouldn't change block size within multistream file")}}},u.Stream=r,u.version=i.version,u.license=i.license,Fe=u}var He,Ze,Ge,Xe,Ye,Ke,Ve,$e,Je,Qe,et,tt,rt,nt={exports:{}};function it(){return He||(He=1,function(e){var t=a;function r(e,r,n){e=e||function(e){this.queue(e)},r=r||function(){this.queue(null)};var i=!1,o=!1,a=[],s=!1,f=new t;function u(){for(;a.length&&!f.paused;){var e=a.shift();if(null===e)return f.emit("end");f.emit("data",e)}}return f.readable=f.writable=!0,f.paused=!1,f.autoDestroy=!(n&&!1===n.autoDestroy),f.write=function(t){return e.call(this,t),!f.paused},f.queue=f.push=function(e){return s||(null===e&&(s=!0),a.push(e),u()),f},f.on("end",function(){f.readable=!1,!f.writable&&f.autoDestroy&&process.nextTick(function(){f.destroy()})}),f.end=function(e){if(!i)return i=!0,arguments.length&&f.write(e),f.writable=!1,r.call(f),!f.readable&&f.autoDestroy&&f.destroy(),f},f.destroy=function(){if(!o)return o=!0,i=!0,a.length=0,f.writable=f.readable=!1,f.emit("close"),f},f.pause=function(){if(!f.paused)return f.paused=!0,f},f.resume=function(){return f.paused&&(f.paused=!1,f.emit("resume")),u(),f.paused||f.emit("drain"),f},f}e.exports=r,r.through=r}(nt)),nt.exports}function ot(){if(Ve)return Ke;Ve=1;var e=it(),t=function(){if(Ge)return Ze;function e(e){this.name="Bzip2Error",this.message=e,this.stack=(new Error).stack}Ge=1,e.prototype=new Error;var t=function(t){throw new e(t)},r={};return r.Bzip2Error=e,r.crcTable=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188],r.array=function(e){var t=0,r=0,n=[0,1,3,7,15,31,63,127,255];return function(i){for(var o=0;i>0;){var a=8-t;i>=a?(o<<=a,o|=n[a]&e[r++],t=0,i-=a):(o<<=i,o|=(e[r]&n[i]<<8-i-t)>>8-i-t,t+=i,i=0)}return o}},r.simple=function(e,t){var n=r.array(e),i=!1,o=1e5*r.header(n),a=new Int32Array(o);do{i=r.decompress(n,t,a,o)}while(!i)},r.header=function(e){this.byteCount=new Int32Array(256),this.symToByte=new Uint8Array(256),this.mtfSymbol=new Int32Array(256),this.selectors=new Uint8Array(32768),4348520!=e(24)&&t("No magic number found");var r=e(8)-48;return(r<1||r>9)&&t("Not a BZIP archive"),r},r.decompress=function(e,r,n,i,o){for(var a=-1,s="",f=0;f<6;f++)s+=e(8).toString(16);if("177245385090"==s)return(0|e(32))!==o&&t("Error in bzip2: crc32 do not match"),e(null),null;"314159265359"!=s&&t("eek not valid bzip data");var u=0|e(32);e(1)&&t("unsupported obsolete version");var l=e(24);l>i&&t("Initial position larger than buffer size");var c=e(16),d=0;for(f=0;f<16;f++)if(c&1<<15-f){var p=e(16);for(y=0;y<16;y++)p&1<<15-y&&(this.symToByte[d++]=16*f+y)}var h=e(3);(h<2||h>6)&&t("another error");var m=e(15);for(0==m&&t("meh"),f=0;f<h;f++)this.mtfSymbol[f]=f;for(f=0;f<m;f++){for(var y=0;e(1);y++)y>=h&&t("whoops another error");var g=this.mtfSymbol[y];for(p=y-1;p>=0;p--)this.mtfSymbol[p+1]=this.mtfSymbol[p];this.mtfSymbol[0]=g,this.selectors[f]=g}var b,w,v,x,_=d+2,E=[],S=new Uint8Array(258),k=new Uint16Array(21);for(y=0;y<h;y++){for(c=e(5),f=0;f<_;f++){for(;(c<1||c>20)&&t("I gave up a while ago on writing error messages"),e(1);)e(1)?c--:c++;S[f]=c}var B,z;for(B=z=S[0],f=1;f<_;f++)S[f]>z?z=S[f]:S[f]<B&&(B=S[f]);(b=E[y]={}).permute=new Int32Array(258),b.limit=new Int32Array(21),b.base=new Int32Array(21),b.minLen=B,b.maxLen=z;var C=b.base,R=b.limit,O=0;for(f=B;f<=z;f++)for(c=0;c<_;c++)S[c]==f&&(b.permute[O++]=c);for(f=B;f<=z;f++)k[f]=R[f]=0;for(f=0;f<_;f++)k[S[f]]++;for(O=c=0,f=B;f<z;f++)O+=k[f],R[f]=O-1,O<<=1,C[f+1]=O-(c+=k[f]);R[z]=O+k[z]-1,C[B]=0}for(f=0;f<256;f++)this.mtfSymbol[f]=f,this.byteCount[f]=0;for(w=v=_=x=0;;){for(_--||(_=49,x>=m&&t("meow i'm a kitty, that's an error"),C=(b=E[this.selectors[x++]]).base,R=b.limit),y=e(f=b.minLen);f>b.maxLen&&t("rawr i'm a dinosaur"),!(y<=R[f]);)f++,y=y<<1|e(1);((y-=C[f])<0||y>=258)&&t("moo i'm a cow");var T=b.permute[y];if(0!=T&&1!=T){if(w)for(w=0,v+c>i&&t("Boom."),g=this.symToByte[this.mtfSymbol[0]],this.byteCount[g]+=c;c--;)n[v++]=g;if(T>d)break;for(v>=i&&t("I can't think of anything. Error"),f=T-1,g=this.mtfSymbol[f],p=f-1;p>=0;p--)this.mtfSymbol[p+1]=this.mtfSymbol[p];this.mtfSymbol[0]=g,g=this.symToByte[g],this.byteCount[g]++,n[v++]=g}else w||(w=1,c=0),c+=0==T?w:2*w,w<<=1}for((l<0||l>=v)&&t("I'm a monkey and I'm throwing something at someone, namely you"),y=0,f=0;f<256;f++)p=y+this.byteCount[f],this.byteCount[f]=y,y=p;for(f=0;f<v;f++)g=255&n[f],n[this.byteCount[g]]|=f<<8,this.byteCount[g]++;var j,L,A,I=0,P=0,M=0;for(v&&(P=255&(I=n[l]),I>>=8,M=-1);v;){for(v--,L=P,P=255&(I=n[I]),I>>=8,3==M++?(j=P,A=L,P=-1):(j=1,A=P);j--;)a=4294967295&(a<<8^this.crcTable[255&(a>>24^A)]),r(A);P!=L&&(M=0)}return(0|(a=(-1^a)>>>0))!=(0|u)&&t("Error in bzip2: crc32 do not match"),4294967295&(a^(o<<1|o>>>31))},Ze=r}(),r=function(){if(Ye)return Xe;Ye=1;var e=[0,1,3,7,15,31,63,127,255];return Xe=function(t){var r=0,n=0,i=t(),o=function(a){if(null===a&&0!=r)return r=0,void n++;for(var s=0;a>0;){n>=i.length&&(n=0,i=t());var f=8-r;0===r&&a>0&&o.bytesRead++,a>=f?(s<<=f,s|=e[f]&i[n++],r=0,a-=f):(s<<=a,s|=(i[n]&e[a]<<8-a-r)>>8-a-r,r+=a,a=0)}return s};return o.bytesRead=0,o}}();return Ke=function(){var n=[],i=0,o=0,a=!1,s=null,f=null;function u(e){if(!a)try{return function(e){if(o){var r=1e5*o,n=new Int32Array(r),i=[];return null===(f=t.decompress(s,function(e){i.push(e)},n,r,f))?(o=0,!1):(e(Buffer.from(i)),!0)}return o=t.header(s),f=0,!0}(function(t){e.queue(t),null!==t&&t.length})}catch(t){return e.emit("error",t),a=!0,!1}}return e(function(e){for(n.push(e),i+=e.length,null===s&&(s=r(function(){return n.shift()}));!a&&i-s.bytesRead+1>=(25e3+1e5*o||4);)u(this)},function(e){for(;!a&&s&&i>s.bytesRead;)u(this);a||(null!==f&&this.emit("error",new Error("input stream ended prematurely")),this.queue(null))})},Ke}function at(){if(Je)return $e;Je=1;const e=qe(),t=function(){if(Se)return Ee;Se=1;const e=e=>Array.from(e).map(e=>e.charCodeAt(0)),t=e("META-INF/mozilla.rsa"),r=e("[Content_Types].xml"),n=e("_rels/.rels");return Ee=i=>{const o=new Uint8Array(i);if(!(o&&o.length>1))return null;const a=(e,t)=>{t=Object.assign({offset:0},t);for(let r=0;r<e.length;r++)if(t.mask){if(e[r]!==(t.mask[r]&o[r+t.offset]))return!1}else if(e[r]!==o[r+t.offset])return!1;return!0};if(a([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(a([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(a([71,73,70]))return{ext:"gif",mime:"image/gif"};if(a([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(a([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((a([73,73,42,0])||a([77,77,0,42]))&&a([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(a([73,73,42,0])||a([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(a([66,77]))return{ext:"bmp",mime:"image/bmp"};if(a([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(a([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(a([80,75,3,4])){if(a([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(a(t,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(a(r,{offset:30})||a(n,{offset:30})){const t=e=>e.findIndex((e,t,r)=>80===r[t]&&75===r[t+1]&&3===r[t+2]&&4===r[t+3]),r=t(o.subarray(4,2004));if(-1!==r){const n=t(o.subarray(r+8,r+8+1e3));if(-1!==n){const t=8+r+n+30;if(a(e("word/"),{offset:t}))return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};if(a(e("ppt/"),{offset:t}))return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};if(a(e("xl/"),{offset:t}))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}}}if(a([80,75])&&(3===o[2]||5===o[2]||7===o[2])&&(4===o[3]||6===o[3]||8===o[3]))return{ext:"zip",mime:"application/zip"};if(a([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(a([82,97,114,33,26,7])&&(0===o[6]||1===o[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(a([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(a([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(a([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(a([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(a([51,103,112,53])||a([0,0,0])&&a([102,116,121,112],{offset:4})&&(a([109,112,52,49],{offset:8})||a([109,112,52,50],{offset:8})||a([105,115,111,109],{offset:8})||a([105,115,111,50],{offset:8})||a([109,109,112,52],{offset:8})||a([77,52,86],{offset:8})||a([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(a([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(a([26,69,223,163])){const e=o.subarray(4,4100),t=e.findIndex((e,t,r)=>66===r[t]&&130===r[t+1]);if(-1!==t){const r=t+3,n=t=>Array.from(t).every((t,n)=>e[r+n]===t.charCodeAt(0));if(n("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(n("webm"))return{ext:"webm",mime:"video/webm"}}}if(a([0,0,0,20,102,116,121,112,113,116,32,32])||a([102,114,101,101],{offset:4})||a([102,116,121,112,113,116,32,32],{offset:4})||a([109,100,97,116],{offset:4})||a([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(a([82,73,70,70])&&a([65,86,73],{offset:8}))return{ext:"avi",mime:"video/x-msvideo"};if(a([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(a([0,0,1,186]))return{ext:"mpg",mime:"video/mpeg"};for(let e=0;e<2&&e<o.length-16;e++)if(a([73,68,51],{offset:e})||a([255,226],{offset:e,mask:[255,226]}))return{ext:"mp3",mime:"audio/mpeg"};return a([102,116,121,112,77,52,65],{offset:4})||a([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:a([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:a([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:a([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:a([82,73,70,70])&&a([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:a([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:a([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:a([77,90])?{ext:"exe",mime:"application/x-msdownload"}:67!==o[0]&&70!==o[0]||!a([87,83],{offset:1})?a([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:a([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:a([119,79,70,70])&&(a([0,1,0,0],{offset:4})||a([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:a([119,79,70,50])&&(a([0,1,0,0],{offset:4})||a([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:a([76,80],{offset:34})&&(a([0,0,1],{offset:8})||a([1,0,2],{offset:8})||a([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:a([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:a([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:a([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:a([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:a([37,33])?{ext:"ps",mime:"application/postscript"}:a([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:a([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:a([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:a([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:a([77,83,67,70])||a([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:a([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:a([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:a([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:a([31,160])||a([31,157])?{ext:"Z",mime:"application/x-compress"}:a([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:a([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:a([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:a([71],{offset:4})&&(a([71],{offset:192})||a([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:a([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:a([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}}}(),r=x(),n=We(),i=ot();return $e=()=>o=>Buffer.isBuffer(o)||r(o)?!Buffer.isBuffer(o)||t(o)&&"bz2"===t(o).ext?Buffer.isBuffer(o)?e()(n.decode(o)):e()(o.pipe(i())):Promise.resolve([]):Promise.reject(new TypeError("Expected a Buffer or Stream, got "+typeof o))}function st(){if(et)return Qe;et=1;const e=y,t=qe(),r=b(),n=x();return Qe=()=>i=>{if(!Buffer.isBuffer(i)&&!n(i))return Promise.reject(new TypeError("Expected a Buffer or Stream, got "+typeof i));if(Buffer.isBuffer(i)&&(!r(i)||"gz"!==r(i).ext))return Promise.resolve([]);const o=e.createGunzip(),a=t()(o);return Buffer.isBuffer(i)?o.end(i):i.pipe(o),a}}function ft(){return rt?tt:(rt=1,tt=function(e){return e&&e.length>1?255===e[0]&&216===e[1]&&255===e[2]?{ext:"jpg",mime:"image/jpeg"}:137===e[0]&&80===e[1]&&78===e[2]&&71===e[3]?{ext:"png",mime:"image/png"}:71===e[0]&&73===e[1]&&70===e[2]?{ext:"gif",mime:"image/gif"}:87===e[8]&&69===e[9]&&66===e[10]&&80===e[11]?{ext:"webp",mime:"image/webp"}:70===e[0]&&76===e[1]&&73===e[2]&&70===e[3]?{ext:"flif",mime:"image/flif"}:(73===e[0]&&73===e[1]&&42===e[2]&&0===e[3]||77===e[0]&&77===e[1]&&0===e[2]&&42===e[3])&&67===e[8]&&82===e[9]?{ext:"cr2",mime:"image/x-canon-cr2"}:73===e[0]&&73===e[1]&&42===e[2]&&0===e[3]||77===e[0]&&77===e[1]&&0===e[2]&&42===e[3]?{ext:"tif",mime:"image/tiff"}:66===e[0]&&77===e[1]?{ext:"bmp",mime:"image/bmp"}:73===e[0]&&73===e[1]&&188===e[2]?{ext:"jxr",mime:"image/vnd.ms-photo"}:56===e[0]&&66===e[1]&&80===e[2]&&83===e[3]?{ext:"psd",mime:"image/vnd.adobe.photoshop"}:80===e[0]&&75===e[1]&&3===e[2]&&4===e[3]&&109===e[30]&&105===e[31]&&109===e[32]&&101===e[33]&&116===e[34]&&121===e[35]&&112===e[36]&&101===e[37]&&97===e[38]&&112===e[39]&&112===e[40]&&108===e[41]&&105===e[42]&&99===e[43]&&97===e[44]&&116===e[45]&&105===e[46]&&111===e[47]&&110===e[48]&&47===e[49]&&101===e[50]&&112===e[51]&&117===e[52]&&98===e[53]&&43===e[54]&&122===e[55]&&105===e[56]&&112===e[57]?{ext:"epub",mime:"application/epub+zip"}:80===e[0]&&75===e[1]&&3===e[2]&&4===e[3]&&77===e[30]&&69===e[31]&&84===e[32]&&65===e[33]&&45===e[34]&&73===e[35]&&78===e[36]&&70===e[37]&&47===e[38]&&109===e[39]&&111===e[40]&&122===e[41]&&105===e[42]&&108===e[43]&&108===e[44]&&97===e[45]&&46===e[46]&&114===e[47]&&115===e[48]&&97===e[49]?{ext:"xpi",mime:"application/x-xpinstall"}:80!==e[0]||75!==e[1]||3!==e[2]&&5!==e[2]&&7!==e[2]||4!==e[3]&&6!==e[3]&&8!==e[3]?117===e[257]&&115===e[258]&&116===e[259]&&97===e[260]&&114===e[261]?{ext:"tar",mime:"application/x-tar"}:82!==e[0]||97!==e[1]||114!==e[2]||33!==e[3]||26!==e[4]||7!==e[5]||0!==e[6]&&1!==e[6]?31===e[0]&&139===e[1]&&8===e[2]?{ext:"gz",mime:"application/gzip"}:66===e[0]&&90===e[1]&&104===e[2]?{ext:"bz2",mime:"application/x-bzip2"}:55===e[0]&&122===e[1]&&188===e[2]&&175===e[3]&&39===e[4]&&28===e[5]?{ext:"7z",mime:"application/x-7z-compressed"}:120===e[0]&&1===e[1]?{ext:"dmg",mime:"application/x-apple-diskimage"}:0===e[0]&&0===e[1]&&0===e[2]&&(24===e[3]||32===e[3])&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]||51===e[0]&&103===e[1]&&112===e[2]&&53===e[3]||0===e[0]&&0===e[1]&&0===e[2]&&28===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&109===e[8]&&112===e[9]&&52===e[10]&&50===e[11]&&109===e[16]&&112===e[17]&&52===e[18]&&49===e[19]&&109===e[20]&&112===e[21]&&52===e[22]&&50===e[23]&&105===e[24]&&115===e[25]&&111===e[26]&&109===e[27]||0===e[0]&&0===e[1]&&0===e[2]&&28===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&105===e[8]&&115===e[9]&&111===e[10]&&109===e[11]||0===e[0]&&0===e[1]&&0===e[2]&&28===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&109===e[8]&&112===e[9]&&52===e[10]&&50===e[11]&&0===e[12]&&0===e[13]&&0===e[14]&&0===e[15]?{ext:"mp4",mime:"video/mp4"}:0===e[0]&&0===e[1]&&0===e[2]&&28===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&77===e[8]&&52===e[9]&&86===e[10]?{ext:"m4v",mime:"video/x-m4v"}:77===e[0]&&84===e[1]&&104===e[2]&&100===e[3]?{ext:"mid",mime:"audio/midi"}:109===e[31]&&97===e[32]&&116===e[33]&&114===e[34]&&111===e[35]&&115===e[36]&&107===e[37]&&97===e[38]?{ext:"mkv",mime:"video/x-matroska"}:26===e[0]&&69===e[1]&&223===e[2]&&163===e[3]?{ext:"webm",mime:"video/webm"}:0===e[0]&&0===e[1]&&0===e[2]&&20===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]?{ext:"mov",mime:"video/quicktime"}:82===e[0]&&73===e[1]&&70===e[2]&&70===e[3]&&65===e[8]&&86===e[9]&&73===e[10]?{ext:"avi",mime:"video/x-msvideo"}:48===e[0]&&38===e[1]&&178===e[2]&&117===e[3]&&142===e[4]&&102===e[5]&&207===e[6]&&17===e[7]&&166===e[8]&&217===e[9]?{ext:"wmv",mime:"video/x-ms-wmv"}:0===e[0]&&0===e[1]&&1===e[2]&&"b"===e[3].toString(16)[0]?{ext:"mpg",mime:"video/mpeg"}:73===e[0]&&68===e[1]&&51===e[2]||255===e[0]&&251===e[1]?{ext:"mp3",mime:"audio/mpeg"}:102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&77===e[8]&&52===e[9]&&65===e[10]||77===e[0]&&52===e[1]&&65===e[2]&&32===e[3]?{ext:"m4a",mime:"audio/m4a"}:79===e[28]&&112===e[29]&&117===e[30]&&115===e[31]&&72===e[32]&&101===e[33]&&97===e[34]&&100===e[35]?{ext:"opus",mime:"audio/opus"}:79===e[0]&&103===e[1]&&103===e[2]&&83===e[3]?{ext:"ogg",mime:"audio/ogg"}:102===e[0]&&76===e[1]&&97===e[2]&&67===e[3]?{ext:"flac",mime:"audio/x-flac"}:82===e[0]&&73===e[1]&&70===e[2]&&70===e[3]&&87===e[8]&&65===e[9]&&86===e[10]&&69===e[11]?{ext:"wav",mime:"audio/x-wav"}:35===e[0]&&33===e[1]&&65===e[2]&&77===e[3]&&82===e[4]&&10===e[5]?{ext:"amr",mime:"audio/amr"}:37===e[0]&&80===e[1]&&68===e[2]&&70===e[3]?{ext:"pdf",mime:"application/pdf"}:77===e[0]&&90===e[1]?{ext:"exe",mime:"application/x-msdownload"}:67!==e[0]&&70!==e[0]||87!==e[1]||83!==e[2]?123===e[0]&&92===e[1]&&114===e[2]&&116===e[3]&&102===e[4]?{ext:"rtf",mime:"application/rtf"}:119===e[0]&&79===e[1]&&70===e[2]&&70===e[3]&&(0===e[4]&&1===e[5]&&0===e[6]&&0===e[7]||79===e[4]&&84===e[5]&&84===e[6]&&79===e[7])?{ext:"woff",mime:"application/font-woff"}:119===e[0]&&79===e[1]&&70===e[2]&&50===e[3]&&(0===e[4]&&1===e[5]&&0===e[6]&&0===e[7]||79===e[4]&&84===e[5]&&84===e[6]&&79===e[7])?{ext:"woff2",mime:"application/font-woff"}:76===e[34]&&80===e[35]&&(0===e[8]&&0===e[9]&&1===e[10]||1===e[8]&&0===e[9]&&2===e[10]||2===e[8]&&0===e[9]&&2===e[10])?{ext:"eot",mime:"application/octet-stream"}:0===e[0]&&1===e[1]&&0===e[2]&&0===e[3]&&0===e[4]?{ext:"ttf",mime:"application/font-sfnt"}:79===e[0]&&84===e[1]&&84===e[2]&&79===e[3]&&0===e[4]?{ext:"otf",mime:"application/font-sfnt"}:0===e[0]&&0===e[1]&&1===e[2]&&0===e[3]?{ext:"ico",mime:"image/x-icon"}:70===e[0]&&76===e[1]&&86===e[2]&&1===e[3]?{ext:"flv",mime:"video/x-flv"}:37===e[0]&&33===e[1]?{ext:"ps",mime:"application/postscript"}:253===e[0]&&55===e[1]&&122===e[2]&&88===e[3]&&90===e[4]&&0===e[5]?{ext:"xz",mime:"application/x-xz"}:83===e[0]&&81===e[1]&&76===e[2]&&105===e[3]?{ext:"sqlite",mime:"application/x-sqlite3"}:78===e[0]&&69===e[1]&&83===e[2]&&26===e[3]?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:67===e[0]&&114===e[1]&&50===e[2]&&52===e[3]?{ext:"crx",mime:"application/x-google-chrome-extension"}:77===e[0]&&83===e[1]&&67===e[2]&&70===e[3]||73===e[0]&&83===e[1]&&99===e[2]&&40===e[3]?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:33===e[0]&&60===e[1]&&97===e[2]&&114===e[3]&&99===e[4]&&104===e[5]&&62===e[6]&&10===e[7]&&100===e[8]&&101===e[9]&&98===e[10]&&105===e[11]&&97===e[12]&&110===e[13]&&45===e[14]&&98===e[15]&&105===e[16]&&110===e[17]&&97===e[18]&&114===e[19]&&121===e[20]?{ext:"deb",mime:"application/x-deb"}:33===e[0]&&60===e[1]&&97===e[2]&&114===e[3]&&99===e[4]&&104===e[5]&&62===e[6]?{ext:"ar",mime:"application/x-unix-archive"}:237===e[0]&&171===e[1]&&238===e[2]&&219===e[3]?{ext:"rpm",mime:"application/x-rpm"}:31===e[0]&&160===e[1]||31===e[0]&&157===e[1]?{ext:"Z",mime:"application/x-compress"}:76===e[0]&&90===e[1]&&73===e[2]&&80===e[3]?{ext:"lz",mime:"application/x-lzip"}:208===e[0]&&207===e[1]&&17===e[2]&&224===e[3]&&161===e[4]&&177===e[5]&&26===e[6]&&225===e[7]?{ext:"msi",mime:"application/x-msi"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}:{ext:"rar",mime:"application/x-rar-compressed"}:{ext:"zip",mime:"application/zip"}:null})}var ut,lt,ct,dt,pt,ht,mt,yt,gt,bt={exports:{}};function wt(){if(lt)return ut;lt=1;var e,t="pending",n="settled",i="fulfilled",o="rejected",a=function(){},s=void 0!==r.commonjsGlobal&&void 0!==r.commonjsGlobal.process&&"function"==typeof r.commonjsGlobal.process.emit,f="undefined"==typeof setImmediate?setTimeout:setImmediate,u=[];function l(){for(var t=0;t<u.length;t++)u[t][0](u[t][1]);u=[],e=!1}function c(t,r){u.push([t,r]),e||(e=!0,f(l,0))}function d(e){var t=e.owner,r=t._state,n=t._data,a=e[r],s=e.then;if("function"==typeof a){r=i;try{n=a(n)}catch(e){y(s,e)}}p(s,n)||(r===i&&h(s,n),r===o&&y(s,n))}function p(e,t){var r;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"==typeof t)){var n=t.then;if("function"==typeof n)return n.call(t,function(n){r||(r=!0,t===n?m(e,n):h(e,n))},function(t){r||(r=!0,y(e,t))}),!0}}catch(t){return r||y(e,t),!0}return!1}function h(e,t){e!==t&&p(e,t)||m(e,t)}function m(e,r){e._state===t&&(e._state=n,e._data=r,c(b,e))}function y(e,r){e._state===t&&(e._state=n,e._data=r,c(w,e))}function g(e){e._then=e._then.forEach(d)}function b(e){e._state=i,g(e)}function w(e){e._state=o,g(e),!e._handled&&s&&r.commonjsGlobal.process.emit("unhandledRejection",e._data,e)}function v(e){r.commonjsGlobal.process.emit("rejectionHandled",e)}function x(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof x==!1)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(e,t){function r(e){y(t,e)}try{e(function(e){h(t,e)},r)}catch(e){r(e)}}(e,this)}return x.prototype={constructor:x,_state:t,_then:null,_data:void 0,_handled:!1,then:function(e,t){var r={owner:this,then:new this.constructor(a),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,this._state===o&&s&&c(v,this)),this._state===i||this._state===o?c(d,r):this._then.push(r),r.then},catch:function(e){return this.then(null,e)}},x.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new x(function(t,r){var n=[],i=0;function o(e){return i++,function(r){n[e]=r,--i||t(n)}}for(var a,s=0;s<e.length;s++)(a=e[s])&&"function"==typeof a.then?a.then(o(s),r):n[s]=a;i||t(n)})},x.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new x(function(t,r){for(var n,i=0;i<e.length;i++)(n=e[i])&&"function"==typeof n.then?n.then(t,r):t(n)})},x.resolve=function(e){return e&&"object"==typeof e&&e.constructor===x?e:new x(function(t){t(e)})},x.reject=function(e){return new x(function(t,r){r(e)})},ut=x}function vt(){return dt?ct:(dt=1,ct="function"==typeof Promise?Promise:wt())}
|
|
1
|
+
"use strict";var e,t,r=require("./_commonjsHelpers-Bjf42z7h.js"),n=require("path"),i=require("./installer-DPj-zT7L.js"),o=require("util"),a=require("stream"),s=require("./string_decoder-CW-j4E6X.js"),f=require("events"),u=require("buffer"),l=require("./index-CEojr58e.js"),c=require("./index-BlteXxjY.js"),d=require("fs"),p=require("constants"),h=require("./once-fkpTAKD3.js"),m=require("string_decoder"),y=require("zlib");function g(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})}),Object.freeze(e)}function b(){return t?e:(t=1,e=e=>{const t=new Uint8Array(e);if(!(t&&t.length>1))return null;const r=(e,r)=>{r=Object.assign({offset:0},r);for(let n=0;n<e.length;n++)if(e[n]!==t[n+r.offset])return!1;return!0};if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(r([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((r([73,73,42,0])||r([77,77,0,42]))&&r([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r([73,73,42,0])||r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r([80,75,3,4])&&r([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(r([80,75,3,4])&&r([77,69,84,65,45,73,78,70,47,109,111,122,105,108,108,97,46,114,115,97],{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(r([80,75])&&(3===t[2]||5===t[2]||7===t[2])&&(4===t[3]||6===t[3]||8===t[3]))return{ext:"zip",mime:"application/zip"};if(r([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(r([82,97,114,33,26,7])&&(0===t[6]||1===t[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([0,0,0])&&(24===t[3]||32===t[3])&&r([102,116,121,112],{offset:4})||r([51,103,112,53])||r([0,0,0,28,102,116,121,112,109,112,52,50])&&r([109,112,52,49,109,112,52,50,105,115,111,109],{offset:16})||r([0,0,0,28,102,116,121,112,105,115,111,109])||r([0,0,0,28,102,116,121,112,109,112,52,50,0,0,0,0]))return{ext:"mp4",mime:"video/mp4"};if(r([0,0,0,28,102,116,121,112,77,52,86]))return{ext:"m4v",mime:"video/x-m4v"};if(r([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(r([26,69,223,163])){const e=t.subarray(4,4100),r=e.findIndex((e,t,r)=>66===r[t]&&130===r[t+1]);if(r>=0){const t=r+3,n=r=>Array.from(r).every((r,n)=>e[t+n]===r.charCodeAt(0));if(n("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(n("webm"))return{ext:"webm",mime:"video/webm"}}}return r([0,0,0,20,102,116,121,112,113,116,32,32])||r([102,114,101,101],{offset:4})||r([102,116,121,112,113,116,32,32],{offset:4})||r([109,100,97,116],{offset:4})||r([119,105,100,101],{offset:4})?{ext:"mov",mime:"video/quicktime"}:r([82,73,70,70])&&r([65,86,73],{offset:8})?{ext:"avi",mime:"video/x-msvideo"}:r([48,38,178,117,142,102,207,17,166,217])?{ext:"wmv",mime:"video/x-ms-wmv"}:r([0,0,1,186])?{ext:"mpg",mime:"video/mpeg"}:r([73,68,51])||r([255,251])?{ext:"mp3",mime:"audio/mpeg"}:r([102,116,121,112,77,52,65],{offset:4})||r([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:r([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:r([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:r([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:r([82,73,70,70])&&r([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:r([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:r([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:r([77,90])?{ext:"exe",mime:"application/x-msdownload"}:67!==t[0]&&70!==t[0]||!r([87,83],{offset:1})?r([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:r([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:r([119,79,70,70])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:r([119,79,70,50])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:r([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:r([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:r([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:r([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:r([37,33])?{ext:"ps",mime:"application/postscript"}:r([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:r([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:r([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:r([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:r([77,83,67,70])||r([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:r([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:r([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:r([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:r([31,160])||r([31,157])?{ext:"Z",mime:"application/x-compress"}:r([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:r([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:r([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:r([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:r([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}})}var w,v={exports:{}};function x(){if(w)return v.exports;w=1;var e=v.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe};return e.writable=function(t){return e(t)&&!1!==t.writable&&"function"==typeof t._write&&"object"==typeof t._writableState},e.readable=function(t){return e(t)&&!1!==t.readable&&"function"==typeof t._read&&"object"==typeof t._readableState},e.duplex=function(t){return e.writable(t)&&e.readable(t)},e.transform=function(t){return e.duplex(t)&&"function"==typeof t._transform&&"object"==typeof t._transformState},v.exports}var _,E,S={},k={exports:{}};function B(){return E?_:(E=1,_=a)}var z,C={exports:{}};function R(){return z||(z=1,function(e,t){var r=u,n=r.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=o),i(n,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}}(C,C.exports)),C.exports}var O,T,j,L,A,I,P,M,U,q,F,D,N,W,H,Z,G,X,Y,K,V={exports:{}};function $(){return O||(O=1,function(e){var t=R().Buffer,r=o;function n(e,t,r){e.copy(t,r)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return t.alloc(0);if(1===this.length)return this.head.data;for(var r=t.allocUnsafe(e>>>0),i=this.head,o=0;i;)n(i.data,r,o),o+=i.data.length,i=i.next;return r},e}(),r&&r.inspect&&r.inspect.custom&&(e.exports.prototype[r.inspect.custom]=function(){var e=r.inspect({length:this.length});return this.constructor.name+" "+e})}(V)),V.exports}function J(){if(j)return T;j=1;var e=s.requireProcessNextickArgs();function t(e,t){e.emit("error",t)}return T={destroy:function(r,n){var i=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(n?n(r):!r||this._writableState&&this._writableState.errorEmitted||e.nextTick(t,this,r),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(r){!n&&r?(e.nextTick(t,i,r),i._writableState&&(i._writableState.errorEmitted=!0)):n&&n(r)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}}function Q(){if(A)return L;A=1;var e=s.requireProcessNextickArgs();function t(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}L=y;var n,i=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:e.nextTick;y.WritableState=m;var o=Object.create(s.requireUtil());o.inherits=l.requireInherits();var a={deprecate:s.requireNode()},f=B(),u=R().Buffer,c=r.commonjsGlobal.Uint8Array||function(){};var d,p=J();function h(){}function m(r,o){n=n||ee(),r=r||{};var a=o instanceof n;this.objectMode=!!r.objectMode,a&&(this.objectMode=this.objectMode||!!r.writableObjectMode);var s=r.highWaterMark,f=r.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:a&&(f||0===f)?f:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===r.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,r){var n=t._writableState,o=n.sync,a=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),r)!function(t,r,n,i,o){--r.pendingcb,n?(e.nextTick(o,i),e.nextTick(_,t,r),t._writableState.errorEmitted=!0,t.emit("error",i)):(o(i),t._writableState.errorEmitted=!0,t.emit("error",i),_(t,r))}(t,n,o,r,a);else{var s=v(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||w(t,n),o?i(b,t,n,s,a):b(t,n,s,a)}}(o,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function y(e){if(n=n||ee(),!(d.call(y,this)||this instanceof n))return new y(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function g(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function b(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),_(e,t)}function w(e,r){r.bufferProcessing=!0;var n=r.bufferedRequest;if(e._writev&&n&&n.next){var i=r.bufferedRequestCount,o=new Array(i),a=r.corkedRequestsFree;a.entry=n;for(var s=0,f=!0;n;)o[s]=n,n.isBuf||(f=!1),n=n.next,s+=1;o.allBuffers=f,g(e,r,!0,r.length,o,"",a.finish),r.pendingcb++,r.lastBufferedRequest=null,a.next?(r.corkedRequestsFree=a.next,a.next=null):r.corkedRequestsFree=new t(r),r.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,c=n.callback;if(g(e,r,!1,r.objectMode?1:u.length,u,l,c),n=n.next,r.bufferedRequestCount--,r.writing)break}null===n&&(r.lastBufferedRequest=null)}r.bufferedRequest=n,r.bufferProcessing=!1}function v(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),_(e,t)})}function _(t,r){var n=v(r);return n&&(!function(t,r){r.prefinished||r.finalCalled||("function"==typeof t._final?(r.pendingcb++,r.finalCalled=!0,e.nextTick(x,t,r)):(r.prefinished=!0,t.emit("prefinish")))}(t,r),0===r.pendingcb&&(r.finished=!0,t.emit("finish"))),n}return o.inherits(y,f),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===y&&(e&&e._writableState instanceof m)}})):d=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(t,r,n){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=t,u.isBuffer(i)||i instanceof c);return s&&!u.isBuffer(t)&&(t=function(e){return u.from(e)}(t)),"function"==typeof r&&(n=r,r=null),s?r="buffer":r||(r=o.defaultEncoding),"function"!=typeof n&&(n=h),o.ended?function(t,r){var n=new Error("write after end");t.emit("error",n),e.nextTick(r,n)}(this,n):(s||function(t,r,n,i){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||r.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),e.nextTick(i,a),o=!1),o}(this,o,t,n))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var f=t.length<t.highWaterMark;f||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else g(e,t,!1,s,n,i,o);return f}(this,o,s,t,r,n)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,r,n){var i=this._writableState;"function"==typeof t?(n=t,t=null,r=null):"function"==typeof r&&(n=r,r=null),null!=t&&this.write(t,r),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(t,r,n){r.ending=!0,_(t,r),n&&(r.finished?e.nextTick(n):t.once("finish",n));r.ended=!0,t.writable=!1}(this,i,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=p.destroy,y.prototype._undestroy=p.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)},L}function ee(){if(P)return I;P=1;var e=s.requireProcessNextickArgs(),t=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};I=u;var r=Object.create(s.requireUtil());r.inherits=l.requireInherits();var n=te(),i=Q();r.inherits(u,n);for(var o=t(i.prototype),a=0;a<o.length;a++){var f=o[a];u.prototype[f]||(u.prototype[f]=i.prototype[f])}function u(e){if(!(this instanceof u))return new u(e);n.call(this,e),i.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||e.nextTick(d,this)}function d(e){e.end()}return Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),u.prototype._destroy=function(t,r){this.push(null),this.end(),e.nextTick(r,t)},I}function te(){if(U)return M;U=1;var e=s.requireProcessNextickArgs();M=v;var t,n=s.requireIsarray();v.ReadableState=w,f.EventEmitter;var i=function(e,t){return e.listeners(t).length},a=B(),u=R().Buffer,c=r.commonjsGlobal.Uint8Array||function(){};var d=Object.create(s.requireUtil());d.inherits=l.requireInherits();var p=o,h=void 0;h=p&&p.debuglog?p.debuglog("stream"):function(){};var m,y=$(),g=J();d.inherits(v,a);var b=["error","close","destroy","pause","resume"];function w(e,r){e=e||{};var n=r instanceof(t=t||ee());this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,o=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(o||0===o)?o:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(m||(m=s.requireString_decoder().StringDecoder),this.decoder=new m(e.encoding),this.encoding=e.encoding)}function v(e){if(t=t||ee(),!(this instanceof v))return new v(e);this._readableState=new w(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function x(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,k(e)}(e,a)):(i||(o=function(e,t){var r;n=t,u.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):C(e,a)):_(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function _(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&k(e)),C(e,t)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=g.destroy,v.prototype._undestroy=g.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),x(this,e,t,!1,r)},v.prototype.unshift=function(e){return x(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(e){return m||(m=s.requireString_decoder().StringDecoder),this._readableState.decoder=new m(e),this._readableState.encoding=e,this};var E=8388608;function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=E?e=E:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(t){var r=t._readableState;r.needReadable=!1,r.emittedReadable||(h("emitReadable",r.flowing),r.emittedReadable=!0,r.sync?e.nextTick(z,t):z(t))}function z(e){h("emit readable"),e.emit("readable"),L(e)}function C(t,r){r.readingMore||(r.readingMore=!0,e.nextTick(O,t,r))}function O(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function T(e){h("readable nexttick read 0"),e.read(0)}function j(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function A(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=u.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function I(t){var r=t._readableState;if(r.length>0)throw new Error('"endReadable()" called on non-empty stream');r.endEmitted||(r.ended=!0,e.nextTick(P,r,t))}function P(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function q(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}return v.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):k(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&I(this),null;var n,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(r,t))),null===(n=e>0?A(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&I(this)),null!==n&&this.emit("data",n),n},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(t,r){var o=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=t;break;case 1:a.pipes=[a.pipes,t];break;default:a.pipes.push(t)}a.pipesCount+=1,h("pipe count=%d opts=%j",a.pipesCount,r);var s=(!r||!1!==r.end)&&t!==process.stdout&&t!==process.stderr?u:b;function f(e,r){h("onunpipe"),e===o&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),t.removeListener("close",y),t.removeListener("finish",g),t.removeListener("drain",l),t.removeListener("error",m),t.removeListener("unpipe",f),o.removeListener("end",u),o.removeListener("end",b),o.removeListener("data",p),c=!0,!a.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}function u(){h("onend"),t.end()}a.endEmitted?e.nextTick(s):o.once("end",s),t.on("unpipe",f);var l=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,L(e))}}(o);t.on("drain",l);var c=!1;var d=!1;function p(e){h("ondata"),d=!1,!1!==t.write(e)||d||((1===a.pipesCount&&a.pipes===t||a.pipesCount>1&&-1!==q(a.pipes,t))&&!c&&(h("false write response, pause",o._readableState.awaitDrain),o._readableState.awaitDrain++,d=!0),o.pause())}function m(e){h("onerror",e),b(),t.removeListener("error",m),0===i(t,"error")&&t.emit("error",e)}function y(){t.removeListener("finish",g),b()}function g(){h("onfinish"),t.removeListener("close",y),b()}function b(){h("unpipe"),o.unpipe(t)}return o.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(t,"error",m),t.once("close",y),t.once("finish",g),t.emit("pipe",o),a.flowing||(h("pipe resume"),o.resume()),t},v.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=q(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},v.prototype.on=function(t,r){var n=a.prototype.on.call(this,t,r);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&k(this):e.nextTick(T,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var t=this._readableState;return t.flowing||(h("resume"),t.flowing=!0,function(t,r){r.resumeScheduled||(r.resumeScheduled=!0,e.nextTick(j,t,r))}(this,t)),this},v.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(h("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){(h("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<b.length;o++)e.on(b[o],this.emit.bind(this,b[o]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=A,M}function re(){if(F)return q;F=1,q=n;var e=ee(),t=Object.create(s.requireUtil());function r(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function n(t){if(!(this instanceof n))return new n(t);e.call(this,t),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",i)}function i(){var e=this;"function"==typeof this._flush?this._flush(function(t,r){o(e,t,r)}):o(this,null,null)}function o(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}return t.inherits=l.requireInherits(),t.inherits(n,e),n.prototype.push=function(t,r){return this._transformState.needTransform=!1,e.prototype.push.call(this,t,r)},n.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},n.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},n.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},n.prototype._destroy=function(t,r){var n=this;e.prototype._destroy.call(this,t,function(e){r(e),n.emit("close")})},q}function ne(){return W||(W=1,e=k,t=k.exports,(r=a)?(e.exports=r,(t=e.exports=r.Readable).Readable=r.Readable,t.Writable=r.Writable,t.Duplex=r.Duplex,t.Transform=r.Transform,t.PassThrough=r.PassThrough,t.Stream=r):((t=e.exports=te()).Stream=r||t,t.Readable=t,t.Writable=Q(),t.Duplex=ee(),t.Transform=re(),t.PassThrough=function(){if(N)return D;N=1,D=r;var e=re(),t=Object.create(s.requireUtil());function r(t){if(!(this instanceof r))return new r(t);e.call(this,t)}return t.inherits=l.requireInherits(),t.inherits(r,e),r.prototype._transform=function(e,t,r){r(null,e)},D}())),k.exports;var e,t,r}function ie(){if(X)return G;X=1;var e=Z?H:(Z=1,H=ne().Duplex),t=o,r=l.requireSafeBuffer().Buffer;function n(t){if(!(this instanceof n))return new n(t);if(this._bufs=[],this.length=0,"function"==typeof t){this._callback=t;var r=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",function(e){e.on("error",r)}),this.on("unpipe",function(e){e.removeListener("error",r)})}else this.append(t);e.call(this)}return t.inherits(n,e),n.prototype._offset=function(e){var t,r=0,n=0;if(0===e)return[0,0];for(;n<this._bufs.length;n++){if(e<(t=r+this._bufs[n].length)||n==this._bufs.length-1)return[n,e-r];r=t}},n.prototype.append=function(e){var t=0;if(r.isBuffer(e))this._appendBuffer(e);else if(Array.isArray(e))for(;t<e.length;t++)this.append(e[t]);else if(e instanceof n)for(;t<e._bufs.length;t++)this.append(e._bufs[t]);else null!=e&&("number"==typeof e&&(e=e.toString()),this._appendBuffer(r.from(e)));return this},n.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length},n.prototype._write=function(e,t,r){this._appendBuffer(e),"function"==typeof r&&r()},n.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},n.prototype.end=function(t){e.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)},n.prototype.get=function(e){return this.slice(e,e+1)[0]},n.prototype.slice=function(e,t){return"number"==typeof e&&e<0&&(e+=this.length),"number"==typeof t&&t<0&&(t+=this.length),this.copy(null,0,e,t)},n.prototype.copy=function(e,t,n,i){if(("number"!=typeof n||n<0)&&(n=0),("number"!=typeof i||i>this.length)&&(i=this.length),n>=this.length)return e||r.alloc(0);if(i<=0)return e||r.alloc(0);var o,a,s=!!e,f=this._offset(n),u=i-n,l=u,c=s&&t||0,d=f[1];if(0===n&&i==this.length){if(!s)return 1===this._bufs.length?this._bufs[0]:r.concat(this._bufs,this.length);for(a=0;a<this._bufs.length;a++)this._bufs[a].copy(e,c),c+=this._bufs[a].length;return e}if(l<=this._bufs[f[0]].length-d)return s?this._bufs[f[0]].copy(e,t,d,d+l):this._bufs[f[0]].slice(d,d+l);for(s||(e=r.allocUnsafe(u)),a=f[0];a<this._bufs.length;a++){if(!(l>(o=this._bufs[a].length-d))){this._bufs[a].copy(e,c,d,d+l),c+=o;break}this._bufs[a].copy(e,c,d),c+=o,l-=o,d&&(d=0)}return e.length>c?e.slice(0,c):e},n.prototype.shallowSlice=function(e,t){e=e||0,t=t||this.length,e<0&&(e+=this.length),t<0&&(t+=this.length);var r=this._offset(e),i=this._offset(t),o=this._bufs.slice(r[0],i[0]+1);return 0==i[1]?o.pop():o[o.length-1]=o[o.length-1].slice(0,i[1]),0!=r[1]&&(o[0]=o[0].slice(r[1])),new n(o)},n.prototype.toString=function(e,t,r){return this.slice(t,r).toString(e)},n.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;){if(!(e>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},n.prototype.duplicate=function(){for(var e=0,t=new n;e<this._bufs.length;e++)t.append(this._bufs[e]);return t},n.prototype.destroy=function(){this._bufs.length=0,this.length=0,this.push(null)},function(){var e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1};for(var t in e)(function(t){n.prototype[t]=function(r){return this.slice(r,r+e[t])[t](0)}})(t)}(),G=n}var oe,ae,se,fe,ue,le,ce,de,pe,he,me,ye,ge,be,we,ve,xe,_e,Ee,Se,ke,Be,ze,Ce,Re,Oe,Te={};function je(){if(ae)return oe;ae=1;var e=function(){try{if(!Buffer.isEncoding("latin1"))return!1;var e=Buffer.alloc?Buffer.alloc(4):new Buffer(4);return e.fill("ab","ucs2"),"61006200"===e.toString("hex")}catch(e){return!1}}();function t(e,t,r,n){if(r<0||n>e.length)throw new RangeError("Out of range index");return r>>>=0,(n=void 0===n?e.length:n>>>0)>r&&e.fill(t,r,n),e}return oe=function(r,n,i,o,a){if(e)return r.fill(n,i,o,a);if("number"==typeof n)return t(r,n,i,o);if("string"==typeof n){if("string"==typeof i?(a=i,i=0,o=r.length):"string"==typeof o&&(a=o,o=r.length),void 0!==a&&"string"!=typeof a)throw new TypeError("encoding must be a string");if("latin1"===a&&(a="binary"),"string"==typeof a&&!Buffer.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(""===n)return t(r,0,i,o);if(function(e){return 1===e.length&&e.charCodeAt(0)<256}(n))return t(r,n.charCodeAt(0),i,o);n=new Buffer(n,a)}return Buffer.isBuffer(n)?function(e,t,r,n){if(r<0||n>e.length)throw new RangeError("Out of range index");if(n<=r)return e;r>>>=0,n=void 0===n?e.length:n>>>0;for(var i=r,o=t.length;i<=n-o;)t.copy(e,i),i+=o;return i!==n&&t.copy(e,i,0,n-i),e}(r,n,i,o):t(r,0,i,o)}}function Le(){if(le)return ue;le=1;var e=je(),t=fe?se:(fe=1,se=function(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative');return Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e)});return ue=function(r,n,i){if("number"!=typeof r)throw new TypeError('"size" argument must be a number');if(r<0)throw new RangeError('"size" argument must not be negative');if(Buffer.alloc)return Buffer.alloc(r,n,i);var o=t(r);return 0===r?o:void 0===n?e(o,0):("string"!=typeof i&&(i=void 0),e(o,n,i))}}function Ae(){if(ce)return Te;ce=1;var e=c.requireToBuffer(),t=Le(),r="0".charCodeAt(0),n=parseInt("7777",8),i=function(e,t,r,n){for(;r<n;r++)if(e[r]===t)return r;return n},o=function(e){for(var t=256,r=0;r<148;r++)t+=e[r];for(var n=156;n<512;n++)t+=e[n];return t},a=function(e,t){return(e=e.toString(8)).length>t?"7777777777777777777".slice(0,t)+" ":"0000000000000000000".slice(0,t-e.length)+e+" "};var s=function(e,t,r){if(128&(e=e.slice(t,t+r))[t=0])return function(e){var t;if(128===e[0])t=!0;else{if(255!==e[0])return null;t=!1}for(var r=[],n=e.length-1;n>0;n--){var i=e[n];t?r.push(i):r.push(255-i)}var o=0,a=r.length;for(n=0;n<a;n++)o+=r[n]*Math.pow(256,n);return t?o:-1*o}(e);for(;t<e.length&&32===e[t];)t++;for(var n=function(e,t,r){return"number"!=typeof e?r:(e=~~e)>=t?t:e>=0||(e+=t)>=0?e:0}(i(e,32,t,e.length),e.length,e.length);t<n&&0===e[t];)t++;return n===t?0:parseInt(e.slice(t,n).toString(),8)},f=function(e,t,r,n){return e.slice(t,i(e,0,t,t+r)).toString(n)},u=function(e){var t=Buffer.byteLength(e),r=Math.floor(Math.log(t)/Math.log(10))+1;return t+r>=Math.pow(10,r)&&r++,t+r+e};return Te.decodeLongPath=function(e,t){return f(e,0,e.length,t)},Te.encodePax=function(t){var r="";t.name&&(r+=u(" path="+t.name+"\n")),t.linkname&&(r+=u(" linkpath="+t.linkname+"\n"));var n=t.pax;if(n)for(var i in n)r+=u(" "+i+"="+n[i]+"\n");return e(r)},Te.decodePax=function(e){for(var t={};e.length;){for(var r=0;r<e.length&&32!==e[r];)r++;var n=parseInt(e.slice(0,r).toString(),10);if(!n)return t;var i=e.slice(r+1,n-1).toString(),o=i.indexOf("=");if(-1===o)return t;t[i.slice(0,o)]=i.slice(o+1),e=e.slice(n)}return t},Te.encode=function(e){var i=t(512),s=e.name,f="";if(5===e.typeflag&&"/"!==s[s.length-1]&&(s+="/"),Buffer.byteLength(s)!==s.length)return null;for(;Buffer.byteLength(s)>100;){var u=s.indexOf("/");if(-1===u)return null;f+=f?"/"+s.slice(0,u):s.slice(0,u),s=s.slice(u+1)}return Buffer.byteLength(s)>100||Buffer.byteLength(f)>155||e.linkname&&Buffer.byteLength(e.linkname)>100?null:(i.write(s),i.write(a(e.mode&n,6),100),i.write(a(e.uid,6),108),i.write(a(e.gid,6),116),i.write(a(e.size,11),124),i.write(a(e.mtime.getTime()/1e3|0,11),136),i[156]=r+function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(e.type),e.linkname&&i.write(e.linkname,157),i.write("ustar\x0000",257),e.uname&&i.write(e.uname,265),e.gname&&i.write(e.gname,297),i.write(a(e.devmajor||0,6),329),i.write(a(e.devminor||0,6),337),f&&i.write(f,345),i.write(a(o(i),6),148),i)},Te.decode=function(e,t){var n=0===e[156]?0:e[156]-r,i=f(e,0,100,t),a=s(e,100,8),u=s(e,108,8),l=s(e,116,8),c=s(e,124,12),d=s(e,136,12),p=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}(n),h=0===e[157]?null:f(e,157,100,t),m=f(e,265,32),y=f(e,297,32),g=s(e,329,8),b=s(e,337,8);e[345]&&(i=f(e,345,155,t)+"/"+i),0===n&&i&&"/"===i[i.length-1]&&(n=5);var w=o(e);if(256===w)return null;if(w!==s(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");return{name:i,mode:a,uid:u,gid:l,size:c,mtime:new Date(1e3*d),type:p,linkname:h,uname:m,gname:y,devmajor:g,devminor:b}},Te}function Ie(){if(pe)return de;pe=1;var e=o,t=ie(),r=function(){if(K)return Y;K=1,Y=function(){for(var t={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)e.call(n,i)&&(t[i]=n[i])}return t};var e=Object.prototype.hasOwnProperty;return Y}(),n=Ae(),i=ne().Writable,a=ne().PassThrough,s=function(){},f=function(e){return(e&=511)&&512-e},u=function(e,t){this._parent=e,this.offset=t,a.call(this)};e.inherits(u,a),u.prototype.destroy=function(e){this._parent.destroy(e)};var l=function(e){if(!(this instanceof l))return new l(e);i.call(this,e),e=e||{},this._offset=0,this._buffer=t(),this._missing=0,this._partial=!1,this._onparse=s,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var o=this,a=o._buffer,c=function(){o._continue()},d=function(e){if(o._locked=!1,e)return o.destroy(e);o._stream||c()},p=function(){o._stream=null;var e=f(o._header.size);e?o._parse(e,h):o._parse(512,w),o._locked||c()},h=function(){o._buffer.consume(f(o._header.size)),o._parse(512,w),c()},m=function(){var e=o._header.size;o._paxGlobal=n.decodePax(a.slice(0,e)),a.consume(e),p()},y=function(){var e=o._header.size;o._pax=n.decodePax(a.slice(0,e)),o._paxGlobal&&(o._pax=r(o._paxGlobal,o._pax)),a.consume(e),p()},g=function(){var t=o._header.size;this._gnuLongPath=n.decodeLongPath(a.slice(0,t),e.filenameEncoding),a.consume(t),p()},b=function(){var t=o._header.size;this._gnuLongLinkPath=n.decodeLongPath(a.slice(0,t),e.filenameEncoding),a.consume(t),p()},w=function(){var t,r=o._offset;try{t=o._header=n.decode(a.slice(0,512),e.filenameEncoding)}catch(e){o.emit("error",e)}return a.consume(512),t?"gnu-long-path"===t.type?(o._parse(t.size,g),void c()):"gnu-long-link-path"===t.type?(o._parse(t.size,b),void c()):"pax-global-header"===t.type?(o._parse(t.size,m),void c()):"pax-header"===t.type?(o._parse(t.size,y),void c()):(o._gnuLongPath&&(t.name=o._gnuLongPath,o._gnuLongPath=null),o._gnuLongLinkPath&&(t.linkname=o._gnuLongLinkPath,o._gnuLongLinkPath=null),o._pax&&(o._header=t=function(e,t){return t.path&&(e.name=t.path),t.linkpath&&(e.linkname=t.linkpath),t.size&&(e.size=parseInt(t.size,10)),e.pax=t,e}(t,o._pax),o._pax=null),o._locked=!0,t.size&&"directory"!==t.type?(o._stream=new u(o,r),o.emit("entry",t,o._stream,d),o._parse(t.size,p),void c()):(o._parse(512,w),void o.emit("entry",t,function(e,t){var r=new u(e,t);return r.end(),r}(o,r),d))):(o._parse(512,w),void c())};this._onheader=w,this._parse(512,w)};return e.inherits(l,i),l.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.emit("close"))},l.prototype._parse=function(e,t){this._destroyed||(this._offset+=e,this._missing=e,t===this._onheader&&(this._partial=!1),this._onparse=t)},l.prototype._continue=function(){if(!this._destroyed){var e=this._cb;this._cb=s,this._overflow?this._write(this._overflow,void 0,e):e()}},l.prototype._write=function(e,t,r){if(!this._destroyed){var n=this._stream,i=this._buffer,o=this._missing;if(e.length&&(this._partial=!0),e.length<o)return this._missing-=e.length,this._overflow=null,n?n.write(e,r):(i.append(e),r());this._cb=r,this._missing=0;var a=null;e.length>o&&(a=e.slice(o),e=e.slice(0,o)),n?n.end(e):i.append(e),this._overflow=a,this._onparse()}},l.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()},de=l}function Pe(){if(ge)return ye;ge=1;var e=h.requireOnce(),t=function(){},r=function(n,i,o){if("function"==typeof i)return r(n,null,i);i||(i={}),o=e(o||t);var a=n._writableState,s=n._readableState,f=i.readable||!1!==i.readable&&n.readable,u=i.writable||!1!==i.writable&&n.writable,l=!1,c=function(){n.writable||d()},d=function(){u=!1,f||o.call(n)},p=function(){f=!1,u||o.call(n)},h=function(e){o.call(n,e?new Error("exited with error code: "+e):null)},m=function(e){o.call(n,e)},y=function(){process.nextTick(g)},g=function(){if(!l)return(!f||s&&s.ended&&!s.destroyed)&&(!u||a&&a.ended&&!a.destroyed)?void 0:o.call(n,new Error("premature close"))},b=function(){n.req.on("finish",d)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(n)?u&&!a&&(n.on("end",c),n.on("close",c)):(n.on("complete",d),n.on("abort",y),n.req?b():n.on("request",b)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(n)&&n.on("exit",h),n.on("end",p),n.on("finish",d),!1!==i.error&&n.on("error",m),n.on("close",y),function(){l=!0,n.removeListener("complete",d),n.removeListener("abort",y),n.removeListener("request",b),n.req&&n.req.removeListener("finish",d),n.removeListener("end",c),n.removeListener("close",c),n.removeListener("finish",d),n.removeListener("exit",h),n.removeListener("end",p),n.removeListener("error",m),n.removeListener("close",y)}};return ye=r}function Me(){if(we)return be;we=1;var e=me?he:(me=1,he=d.constants||p),t=Pe(),r=o,n=Le(),i=c.requireToBuffer(),a=ne().Readable,s=ne().Writable,f=m.StringDecoder,u=Ae(),l=parseInt("755",8),h=parseInt("644",8),y=n(1024),g=function(){},b=function(e,t){(t&=511)&&e.push(y.slice(0,512-t))};var w=function(e){s.call(this),this.written=0,this._to=e,this._destroyed=!1};r.inherits(w,s),w.prototype._write=function(e,t,r){if(this.written+=e.length,this._to.push(e))return r();this._to._drain=r},w.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var v=function(){s.call(this),this.linkname="",this._decoder=new f("utf-8"),this._destroyed=!1};r.inherits(v,s),v.prototype._write=function(e,t,r){this.linkname+=this._decoder.write(e),r()},v.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var x=function(){s.call(this),this._destroyed=!1};r.inherits(x,s),x.prototype._write=function(e,t,r){r(new Error("No body allowed for this entry"))},x.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var _=function(e){if(!(this instanceof _))return new _(e);a.call(this,e),this._drain=g,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};return r.inherits(_,a),_.prototype.entry=function(r,n,o){if(this._stream)throw new Error("already piping an entry");if(!this._finalized&&!this._destroyed){"function"==typeof n&&(o=n,n=null),o||(o=g);var a=this;if(r.size&&"symlink"!==r.type||(r.size=0),r.type||(r.type=function(t){switch(t&e.S_IFMT){case e.S_IFBLK:return"block-device";case e.S_IFCHR:return"character-device";case e.S_IFDIR:return"directory";case e.S_IFIFO:return"fifo";case e.S_IFLNK:return"symlink"}return"file"}(r.mode)),r.mode||(r.mode="directory"===r.type?l:h),r.uid||(r.uid=0),r.gid||(r.gid=0),r.mtime||(r.mtime=new Date),"string"==typeof n&&(n=i(n)),Buffer.isBuffer(n))return r.size=n.length,this._encode(r),this.push(n),b(a,r.size),process.nextTick(o),new x;if("symlink"===r.type&&!r.linkname){var s=new v;return t(s,function(e){if(e)return a.destroy(),o(e);r.linkname=s.linkname,a._encode(r),o()}),s}if(this._encode(r),"file"!==r.type&&"contiguous-file"!==r.type)return process.nextTick(o),new x;var f=new w(this);return this._stream=f,t(f,function(e){return a._stream=null,e?(a.destroy(),o(e)):f.written!==r.size?(a.destroy(),o(new Error("size mismatch"))):(b(a,r.size),a._finalizing&&a.finalize(),void o())}),f}},_.prototype.finalize=function(){this._stream?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(y),this.push(null))},_.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())},_.prototype._encode=function(e){if(!e.pax){var t=u.encode(e);if(t)return void this.push(t)}this._encodePax(e)},_.prototype._encodePax=function(e){var t=u.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(u.encode(r)),this.push(t),b(this,t.length),r.size=e.size,r.type=e.type,this.push(u.encode(r))},_.prototype._read=function(e){var t=this._drain;this._drain=g,t()},be=_}function Ue(){return ve||(ve=1,S.extract=Ie(),S.pack=Me()),S}function qe(){if(_e)return xe;_e=1;const e=b(),t=x(),r=Ue();return xe=()=>n=>{if(!Buffer.isBuffer(n)&&!t(n))return Promise.reject(new TypeError("Expected a Buffer or Stream, got "+typeof n));if(Buffer.isBuffer(n)&&(!e(n)||"tar"!==e(n).ext))return Promise.resolve([]);const i=r.extract(),o=[];i.on("entry",(e,t,r)=>{const n=[];t.on("data",e=>n.push(e)),t.on("end",()=>{const t={data:Buffer.concat(n),mode:e.mode,mtime:e.mtime,path:e.name,type:e.type};"symlink"!==e.type&&"link"!==e.type||(t.linkname=e.linkname),o.push(t),r()})});const a=new Promise((e,t)=>{Buffer.isBuffer(n)||n.on("error",t),i.on("finish",()=>e(o)),i.on("error",t)});return i.then=a.then.bind(a),i.catch=a.catch.bind(a),Buffer.isBuffer(n)?i.end(n):n.pipe(i),i},xe}var Fe,De,Ne={version:"1.0.6",license:"MIT"};function We(){if(De)return Fe;De=1;var e,t=function(){if(Be)return ke;Be=1;var e=[0,1,3,7,15,31,63,127,255],t=function(e){this.stream=e,this.bitOffset=0,this.curByte=0,this.hasByte=!1};return t.prototype._ensureByte=function(){this.hasByte||(this.curByte=this.stream.readByte(),this.hasByte=!0)},t.prototype.read=function(t){for(var r=0;t>0;){this._ensureByte();var n=8-this.bitOffset;if(t>=n)r<<=n,r|=e[n]&this.curByte,this.hasByte=!1,this.bitOffset=0,t-=n;else{r<<=t;var i=n-t;r|=(this.curByte&e[t]<<i)>>i,this.bitOffset+=t,t=0}}return r},t.prototype.seek=function(e){var t=e%8,r=(e-t)/8;this.bitOffset=t,this.stream.seek(r),this.hasByte=!1},t.prototype.pi=function(){var e,t=new Buffer(6);for(e=0;e<t.length;e++)t[e]=this.read(8);return t.toString("hex")},ke=t}(),r=function(){if(Ce)return ze;Ce=1;var e=function(){};return e.prototype.readByte=function(){throw new Error("abstract method readByte() not implemented")},e.prototype.read=function(e,t,r){for(var n=0;n<r;){var i=this.readByte();if(i<0)return 0===n?-1:n;e[t++]=i,n++}return n},e.prototype.seek=function(e){throw new Error("abstract method seek() not implemented")},e.prototype.writeByte=function(e){throw new Error("abstract method readByte() not implemented")},e.prototype.write=function(e,t,r){var n;for(n=0;n<r;n++)this.writeByte(e[t++]);return r},e.prototype.flush=function(){},ze=e}(),n=Oe?Re:(Oe=1,e=new Uint32Array([0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188]),Re=function(){var t=4294967295;this.getCRC=function(){return~t>>>0},this.updateCRC=function(r){t=t<<8^e[255&(t>>>24^r)]},this.updateCRCRun=function(r,n){for(;n-- >0;)t=t<<8^e[255&(t>>>24^r)]}}),i=Ne,o=function(e,t){var r,n=e[t];for(r=t;r>0;r--)e[r]=e[r-1];return e[0]=n,n},a={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8},s={};s[a.LAST_BLOCK]="Bad file checksum",s[a.NOT_BZIP_DATA]="Not bzip data",s[a.UNEXPECTED_INPUT_EOF]="Unexpected input EOF",s[a.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF",s[a.DATA_ERROR]="Data error",s[a.OUT_OF_MEMORY]="Out of memory",s[a.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var f=function(e,t){var r=s[e]||"unknown error";t&&(r+=": "+t);var n=new TypeError(r);throw n.errorCode=e,n},u=function(e,t){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(e,t)};u.prototype._init_block=function(){return this._get_next_block()?(this.blockCRC=new n,!0):(this.writeCount=-1,!1)},u.prototype._start_bunzip=function(e,r){var n=new Buffer(4);4===e.read(n,0,4)&&"BZh"===String.fromCharCode(n[0],n[1],n[2])||f(a.NOT_BZIP_DATA,"bad magic");var i=n[3]-48;(i<1||i>9)&&f(a.NOT_BZIP_DATA,"level out of range"),this.reader=new t(e),this.dbufSize=1e5*i,this.nextoutput=0,this.outputStream=r,this.streamCRC=0},u.prototype._get_next_block=function(){var e,t,r,n=this.reader,i=n.pi();if("177245385090"===i)return!1;"314159265359"!==i&&f(a.NOT_BZIP_DATA),this.targetBlockCRC=n.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,n.read(1)&&f(a.OBSOLETE_INPUT);var s=n.read(24);s>this.dbufSize&&f(a.DATA_ERROR,"initial position out of bounds");var u=n.read(16),l=new Buffer(256),c=0;for(e=0;e<16;e++)if(u&1<<15-e){var d=16*e;for(r=n.read(16),t=0;t<16;t++)r&1<<15-t&&(l[c++]=d+t)}var p=n.read(3);(p<2||p>6)&&f(a.DATA_ERROR);var h=n.read(15);0===h&&f(a.DATA_ERROR);var m=new Buffer(256);for(e=0;e<p;e++)m[e]=e;var y=new Buffer(h);for(e=0;e<h;e++){for(t=0;n.read(1);t++)t>=p&&f(a.DATA_ERROR);y[e]=o(m,t)}var g,b=c+2,w=[];for(t=0;t<p;t++){var v,x,_=new Buffer(b),E=new Uint16Array(21);for(u=n.read(5),e=0;e<b;e++){for(;(u<1||u>20)&&f(a.DATA_ERROR),n.read(1);)n.read(1)?u--:u++;_[e]=u}for(v=x=_[0],e=1;e<b;e++)_[e]>x?x=_[e]:_[e]<v&&(v=_[e]);g={},w.push(g),g.permute=new Uint16Array(258),g.limit=new Uint32Array(22),g.base=new Uint32Array(21),g.minLen=v,g.maxLen=x;var S=0;for(e=v;e<=x;e++)for(E[e]=g.limit[e]=0,u=0;u<b;u++)_[u]===e&&(g.permute[S++]=u);for(e=0;e<b;e++)E[_[e]]++;for(S=u=0,e=v;e<x;e++)S+=E[e],g.limit[e]=S-1,S<<=1,u+=E[e],g.base[e+1]=S-u;g.limit[x+1]=Number.MAX_VALUE,g.limit[x]=S+E[x]-1,g.base[v]=0}var k=new Uint32Array(256);for(e=0;e<256;e++)m[e]=e;var B,z=0,C=0,R=0,O=this.dbuf=new Uint32Array(this.dbufSize);for(b=0;;){for(b--||(b=49,R>=h&&f(a.DATA_ERROR),g=w[y[R++]]),e=g.minLen,t=n.read(e);e>g.maxLen&&f(a.DATA_ERROR),!(t<=g.limit[e]);e++)t=t<<1|n.read(1);((t-=g.base[e])<0||t>=258)&&f(a.DATA_ERROR);var T=g.permute[t];if(0!==T&&1!==T){if(z)for(z=0,C+u>this.dbufSize&&f(a.DATA_ERROR),k[B=l[m[0]]]+=u;u--;)O[C++]=B;if(T>c)break;C>=this.dbufSize&&f(a.DATA_ERROR),k[B=l[B=o(m,e=T-1)]]++,O[C++]=B}else z||(z=1,u=0),u+=0===T?z:2*z,z<<=1}for((s<0||s>=C)&&f(a.DATA_ERROR),t=0,e=0;e<256;e++)r=t+k[e],k[e]=t,t=r;for(e=0;e<C;e++)O[k[B=255&O[e]]]|=e<<8,k[B]++;var j=0,L=0,A=0;return C&&(L=255&(j=O[s]),j>>=8,A=-1),this.writePos=j,this.writeCurrent=L,this.writeCount=C,this.writeRun=A,!0},u.prototype._read_bunzip=function(e,t){var r,n,i;if(this.writeCount<0)return 0;var o=this.dbuf,s=this.writePos,u=this.writeCurrent,l=this.writeCount;this.outputsize;for(var c=this.writeRun;l;){for(l--,n=u,u=255&(s=o[s]),s>>=8,3===c++?(r=u,i=n,u=-1):(r=1,i=u),this.blockCRC.updateCRCRun(i,r);r--;)this.outputStream.writeByte(i),this.nextoutput++;u!=n&&(c=0)}return this.writeCount=l,this.blockCRC.getCRC()!==this.targetBlockCRC&&f(a.DATA_ERROR,"Bad block CRC (got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")"),this.nextoutput};var l=function(e){if("readByte"in e)return e;var t=new r;return t.pos=0,t.readByte=function(){return e[this.pos++]},t.seek=function(e){this.pos=e},t.eof=function(){return this.pos>=e.length},t},c=function(e){var t=new r,n=!0;if(e)if("number"==typeof e)t.buffer=new Buffer(e),n=!1;else{if("writeByte"in e)return e;t.buffer=e,n=!1}else t.buffer=new Buffer(16384);return t.pos=0,t.writeByte=function(e){if(n&&this.pos>=this.buffer.length){var t=new Buffer(2*this.buffer.length);this.buffer.copy(t),this.buffer=t}this.buffer[this.pos++]=e},t.getBuffer=function(){if(this.pos!==this.buffer.length){if(!n)throw new TypeError("outputsize does not match decoded input");var e=new Buffer(this.pos);this.buffer.copy(e,0,0,this.pos),this.buffer=e}return this.buffer},t._coerced=!0,t};return u.Err=a,u.decode=function(e,t,r){for(var n=l(e),i=c(t),o=new u(n,i);!("eof"in n)||!n.eof();)if(o._init_block())o._read_bunzip();else{var s=o.reader.read(32)>>>0;if(s!==o.streamCRC&&f(a.DATA_ERROR,"Bad stream CRC (got "+o.streamCRC.toString(16)+" expected "+s.toString(16)+")"),!r||!("eof"in n)||n.eof())break;o._start_bunzip(n,i)}if("getBuffer"in i)return i.getBuffer()},u.decodeBlock=function(e,t,r){var i=l(e),o=c(r),a=new u(i,o);if(a.reader.seek(t),a._get_next_block()&&(a.blockCRC=new n,a.writeCopies=0,a._read_bunzip()),"getBuffer"in o)return o.getBuffer()},u.table=function(e,t,n){var i=new r;i.delegate=l(e),i.pos=0,i.readByte=function(){return this.pos++,this.delegate.readByte()},i.delegate.eof&&(i.eof=i.delegate.eof.bind(i.delegate));var o=new r;o.pos=0,o.writeByte=function(){this.pos++};for(var a=new u(i,o),s=a.dbufSize;!("eof"in i)||!i.eof();){var f=8*i.pos+a.reader.bitOffset;if(a.reader.hasByte&&(f-=8),a._init_block()){var c=o.pos;a._read_bunzip(),t(f,o.pos-c)}else{if(a.reader.read(32),!n||!("eof"in i)||i.eof())break;a._start_bunzip(i,o),console.assert(a.dbufSize===s,"shouldn't change block size within multistream file")}}},u.Stream=r,u.version=i.version,u.license=i.license,Fe=u}var He,Ze,Ge,Xe,Ye,Ke,Ve,$e,Je,Qe,et,tt,rt,nt={exports:{}};function it(){return He||(He=1,function(e){var t=a;function r(e,r,n){e=e||function(e){this.queue(e)},r=r||function(){this.queue(null)};var i=!1,o=!1,a=[],s=!1,f=new t;function u(){for(;a.length&&!f.paused;){var e=a.shift();if(null===e)return f.emit("end");f.emit("data",e)}}return f.readable=f.writable=!0,f.paused=!1,f.autoDestroy=!(n&&!1===n.autoDestroy),f.write=function(t){return e.call(this,t),!f.paused},f.queue=f.push=function(e){return s||(null===e&&(s=!0),a.push(e),u()),f},f.on("end",function(){f.readable=!1,!f.writable&&f.autoDestroy&&process.nextTick(function(){f.destroy()})}),f.end=function(e){if(!i)return i=!0,arguments.length&&f.write(e),f.writable=!1,r.call(f),!f.readable&&f.autoDestroy&&f.destroy(),f},f.destroy=function(){if(!o)return o=!0,i=!0,a.length=0,f.writable=f.readable=!1,f.emit("close"),f},f.pause=function(){if(!f.paused)return f.paused=!0,f},f.resume=function(){return f.paused&&(f.paused=!1,f.emit("resume")),u(),f.paused||f.emit("drain"),f},f}e.exports=r,r.through=r}(nt)),nt.exports}function ot(){if(Ve)return Ke;Ve=1;var e=it(),t=function(){if(Ge)return Ze;function e(e){this.name="Bzip2Error",this.message=e,this.stack=(new Error).stack}Ge=1,e.prototype=new Error;var t=function(t){throw new e(t)},r={};return r.Bzip2Error=e,r.crcTable=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188],r.array=function(e){var t=0,r=0,n=[0,1,3,7,15,31,63,127,255];return function(i){for(var o=0;i>0;){var a=8-t;i>=a?(o<<=a,o|=n[a]&e[r++],t=0,i-=a):(o<<=i,o|=(e[r]&n[i]<<8-i-t)>>8-i-t,t+=i,i=0)}return o}},r.simple=function(e,t){var n=r.array(e),i=!1,o=1e5*r.header(n),a=new Int32Array(o);do{i=r.decompress(n,t,a,o)}while(!i)},r.header=function(e){this.byteCount=new Int32Array(256),this.symToByte=new Uint8Array(256),this.mtfSymbol=new Int32Array(256),this.selectors=new Uint8Array(32768),4348520!=e(24)&&t("No magic number found");var r=e(8)-48;return(r<1||r>9)&&t("Not a BZIP archive"),r},r.decompress=function(e,r,n,i,o){for(var a=-1,s="",f=0;f<6;f++)s+=e(8).toString(16);if("177245385090"==s)return(0|e(32))!==o&&t("Error in bzip2: crc32 do not match"),e(null),null;"314159265359"!=s&&t("eek not valid bzip data");var u=0|e(32);e(1)&&t("unsupported obsolete version");var l=e(24);l>i&&t("Initial position larger than buffer size");var c=e(16),d=0;for(f=0;f<16;f++)if(c&1<<15-f){var p=e(16);for(y=0;y<16;y++)p&1<<15-y&&(this.symToByte[d++]=16*f+y)}var h=e(3);(h<2||h>6)&&t("another error");var m=e(15);for(0==m&&t("meh"),f=0;f<h;f++)this.mtfSymbol[f]=f;for(f=0;f<m;f++){for(var y=0;e(1);y++)y>=h&&t("whoops another error");var g=this.mtfSymbol[y];for(p=y-1;p>=0;p--)this.mtfSymbol[p+1]=this.mtfSymbol[p];this.mtfSymbol[0]=g,this.selectors[f]=g}var b,w,v,x,_=d+2,E=[],S=new Uint8Array(258),k=new Uint16Array(21);for(y=0;y<h;y++){for(c=e(5),f=0;f<_;f++){for(;(c<1||c>20)&&t("I gave up a while ago on writing error messages"),e(1);)e(1)?c--:c++;S[f]=c}var B,z;for(B=z=S[0],f=1;f<_;f++)S[f]>z?z=S[f]:S[f]<B&&(B=S[f]);(b=E[y]={}).permute=new Int32Array(258),b.limit=new Int32Array(21),b.base=new Int32Array(21),b.minLen=B,b.maxLen=z;var C=b.base,R=b.limit,O=0;for(f=B;f<=z;f++)for(c=0;c<_;c++)S[c]==f&&(b.permute[O++]=c);for(f=B;f<=z;f++)k[f]=R[f]=0;for(f=0;f<_;f++)k[S[f]]++;for(O=c=0,f=B;f<z;f++)O+=k[f],R[f]=O-1,O<<=1,C[f+1]=O-(c+=k[f]);R[z]=O+k[z]-1,C[B]=0}for(f=0;f<256;f++)this.mtfSymbol[f]=f,this.byteCount[f]=0;for(w=v=_=x=0;;){for(_--||(_=49,x>=m&&t("meow i'm a kitty, that's an error"),C=(b=E[this.selectors[x++]]).base,R=b.limit),y=e(f=b.minLen);f>b.maxLen&&t("rawr i'm a dinosaur"),!(y<=R[f]);)f++,y=y<<1|e(1);((y-=C[f])<0||y>=258)&&t("moo i'm a cow");var T=b.permute[y];if(0!=T&&1!=T){if(w)for(w=0,v+c>i&&t("Boom."),g=this.symToByte[this.mtfSymbol[0]],this.byteCount[g]+=c;c--;)n[v++]=g;if(T>d)break;for(v>=i&&t("I can't think of anything. Error"),f=T-1,g=this.mtfSymbol[f],p=f-1;p>=0;p--)this.mtfSymbol[p+1]=this.mtfSymbol[p];this.mtfSymbol[0]=g,g=this.symToByte[g],this.byteCount[g]++,n[v++]=g}else w||(w=1,c=0),c+=0==T?w:2*w,w<<=1}for((l<0||l>=v)&&t("I'm a monkey and I'm throwing something at someone, namely you"),y=0,f=0;f<256;f++)p=y+this.byteCount[f],this.byteCount[f]=y,y=p;for(f=0;f<v;f++)g=255&n[f],n[this.byteCount[g]]|=f<<8,this.byteCount[g]++;var j,L,A,I=0,P=0,M=0;for(v&&(P=255&(I=n[l]),I>>=8,M=-1);v;){for(v--,L=P,P=255&(I=n[I]),I>>=8,3==M++?(j=P,A=L,P=-1):(j=1,A=P);j--;)a=4294967295&(a<<8^this.crcTable[255&(a>>24^A)]),r(A);P!=L&&(M=0)}return(0|(a=(-1^a)>>>0))!=(0|u)&&t("Error in bzip2: crc32 do not match"),4294967295&(a^(o<<1|o>>>31))},Ze=r}(),r=function(){if(Ye)return Xe;Ye=1;var e=[0,1,3,7,15,31,63,127,255];return Xe=function(t){var r=0,n=0,i=t(),o=function(a){if(null===a&&0!=r)return r=0,void n++;for(var s=0;a>0;){n>=i.length&&(n=0,i=t());var f=8-r;0===r&&a>0&&o.bytesRead++,a>=f?(s<<=f,s|=e[f]&i[n++],r=0,a-=f):(s<<=a,s|=(i[n]&e[a]<<8-a-r)>>8-a-r,r+=a,a=0)}return s};return o.bytesRead=0,o}}();return Ke=function(){var n=[],i=0,o=0,a=!1,s=null,f=null;function u(e){if(!a)try{return function(e){if(o){var r=1e5*o,n=new Int32Array(r),i=[];return null===(f=t.decompress(s,function(e){i.push(e)},n,r,f))?(o=0,!1):(e(Buffer.from(i)),!0)}return o=t.header(s),f=0,!0}(function(t){e.queue(t),null!==t&&t.length})}catch(t){return e.emit("error",t),a=!0,!1}}return e(function(e){for(n.push(e),i+=e.length,null===s&&(s=r(function(){return n.shift()}));!a&&i-s.bytesRead+1>=(25e3+1e5*o||4);)u(this)},function(e){for(;!a&&s&&i>s.bytesRead;)u(this);a||(null!==f&&this.emit("error",new Error("input stream ended prematurely")),this.queue(null))})},Ke}function at(){if(Je)return $e;Je=1;const e=qe(),t=function(){if(Se)return Ee;Se=1;const e=e=>Array.from(e).map(e=>e.charCodeAt(0)),t=e("META-INF/mozilla.rsa"),r=e("[Content_Types].xml"),n=e("_rels/.rels");return Ee=i=>{const o=new Uint8Array(i);if(!(o&&o.length>1))return null;const a=(e,t)=>{t=Object.assign({offset:0},t);for(let r=0;r<e.length;r++)if(t.mask){if(e[r]!==(t.mask[r]&o[r+t.offset]))return!1}else if(e[r]!==o[r+t.offset])return!1;return!0};if(a([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(a([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(a([71,73,70]))return{ext:"gif",mime:"image/gif"};if(a([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(a([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((a([73,73,42,0])||a([77,77,0,42]))&&a([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(a([73,73,42,0])||a([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(a([66,77]))return{ext:"bmp",mime:"image/bmp"};if(a([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(a([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(a([80,75,3,4])){if(a([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(a(t,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(a(r,{offset:30})||a(n,{offset:30})){const t=e=>e.findIndex((e,t,r)=>80===r[t]&&75===r[t+1]&&3===r[t+2]&&4===r[t+3]),r=t(o.subarray(4,2004));if(-1!==r){const n=t(o.subarray(r+8,r+8+1e3));if(-1!==n){const t=8+r+n+30;if(a(e("word/"),{offset:t}))return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};if(a(e("ppt/"),{offset:t}))return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};if(a(e("xl/"),{offset:t}))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}}}if(a([80,75])&&(3===o[2]||5===o[2]||7===o[2])&&(4===o[3]||6===o[3]||8===o[3]))return{ext:"zip",mime:"application/zip"};if(a([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(a([82,97,114,33,26,7])&&(0===o[6]||1===o[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(a([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(a([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(a([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(a([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(a([51,103,112,53])||a([0,0,0])&&a([102,116,121,112],{offset:4})&&(a([109,112,52,49],{offset:8})||a([109,112,52,50],{offset:8})||a([105,115,111,109],{offset:8})||a([105,115,111,50],{offset:8})||a([109,109,112,52],{offset:8})||a([77,52,86],{offset:8})||a([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(a([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(a([26,69,223,163])){const e=o.subarray(4,4100),t=e.findIndex((e,t,r)=>66===r[t]&&130===r[t+1]);if(-1!==t){const r=t+3,n=t=>Array.from(t).every((t,n)=>e[r+n]===t.charCodeAt(0));if(n("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(n("webm"))return{ext:"webm",mime:"video/webm"}}}if(a([0,0,0,20,102,116,121,112,113,116,32,32])||a([102,114,101,101],{offset:4})||a([102,116,121,112,113,116,32,32],{offset:4})||a([109,100,97,116],{offset:4})||a([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(a([82,73,70,70])&&a([65,86,73],{offset:8}))return{ext:"avi",mime:"video/x-msvideo"};if(a([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(a([0,0,1,186]))return{ext:"mpg",mime:"video/mpeg"};for(let e=0;e<2&&e<o.length-16;e++)if(a([73,68,51],{offset:e})||a([255,226],{offset:e,mask:[255,226]}))return{ext:"mp3",mime:"audio/mpeg"};return a([102,116,121,112,77,52,65],{offset:4})||a([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:a([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:a([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:a([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:a([82,73,70,70])&&a([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:a([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:a([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:a([77,90])?{ext:"exe",mime:"application/x-msdownload"}:67!==o[0]&&70!==o[0]||!a([87,83],{offset:1})?a([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:a([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:a([119,79,70,70])&&(a([0,1,0,0],{offset:4})||a([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:a([119,79,70,50])&&(a([0,1,0,0],{offset:4})||a([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:a([76,80],{offset:34})&&(a([0,0,1],{offset:8})||a([1,0,2],{offset:8})||a([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:a([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:a([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:a([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:a([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:a([37,33])?{ext:"ps",mime:"application/postscript"}:a([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:a([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:a([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:a([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:a([77,83,67,70])||a([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:a([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:a([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:a([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:a([31,160])||a([31,157])?{ext:"Z",mime:"application/x-compress"}:a([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:a([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:a([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:a([71],{offset:4})&&(a([71],{offset:192})||a([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:a([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:a([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}}}(),r=x(),n=We(),i=ot();return $e=()=>o=>Buffer.isBuffer(o)||r(o)?!Buffer.isBuffer(o)||t(o)&&"bz2"===t(o).ext?Buffer.isBuffer(o)?e()(n.decode(o)):e()(o.pipe(i())):Promise.resolve([]):Promise.reject(new TypeError("Expected a Buffer or Stream, got "+typeof o))}function st(){if(et)return Qe;et=1;const e=y,t=qe(),r=b(),n=x();return Qe=()=>i=>{if(!Buffer.isBuffer(i)&&!n(i))return Promise.reject(new TypeError("Expected a Buffer or Stream, got "+typeof i));if(Buffer.isBuffer(i)&&(!r(i)||"gz"!==r(i).ext))return Promise.resolve([]);const o=e.createGunzip(),a=t()(o);return Buffer.isBuffer(i)?o.end(i):i.pipe(o),a}}function ft(){return rt?tt:(rt=1,tt=function(e){return e&&e.length>1?255===e[0]&&216===e[1]&&255===e[2]?{ext:"jpg",mime:"image/jpeg"}:137===e[0]&&80===e[1]&&78===e[2]&&71===e[3]?{ext:"png",mime:"image/png"}:71===e[0]&&73===e[1]&&70===e[2]?{ext:"gif",mime:"image/gif"}:87===e[8]&&69===e[9]&&66===e[10]&&80===e[11]?{ext:"webp",mime:"image/webp"}:70===e[0]&&76===e[1]&&73===e[2]&&70===e[3]?{ext:"flif",mime:"image/flif"}:(73===e[0]&&73===e[1]&&42===e[2]&&0===e[3]||77===e[0]&&77===e[1]&&0===e[2]&&42===e[3])&&67===e[8]&&82===e[9]?{ext:"cr2",mime:"image/x-canon-cr2"}:73===e[0]&&73===e[1]&&42===e[2]&&0===e[3]||77===e[0]&&77===e[1]&&0===e[2]&&42===e[3]?{ext:"tif",mime:"image/tiff"}:66===e[0]&&77===e[1]?{ext:"bmp",mime:"image/bmp"}:73===e[0]&&73===e[1]&&188===e[2]?{ext:"jxr",mime:"image/vnd.ms-photo"}:56===e[0]&&66===e[1]&&80===e[2]&&83===e[3]?{ext:"psd",mime:"image/vnd.adobe.photoshop"}:80===e[0]&&75===e[1]&&3===e[2]&&4===e[3]&&109===e[30]&&105===e[31]&&109===e[32]&&101===e[33]&&116===e[34]&&121===e[35]&&112===e[36]&&101===e[37]&&97===e[38]&&112===e[39]&&112===e[40]&&108===e[41]&&105===e[42]&&99===e[43]&&97===e[44]&&116===e[45]&&105===e[46]&&111===e[47]&&110===e[48]&&47===e[49]&&101===e[50]&&112===e[51]&&117===e[52]&&98===e[53]&&43===e[54]&&122===e[55]&&105===e[56]&&112===e[57]?{ext:"epub",mime:"application/epub+zip"}:80===e[0]&&75===e[1]&&3===e[2]&&4===e[3]&&77===e[30]&&69===e[31]&&84===e[32]&&65===e[33]&&45===e[34]&&73===e[35]&&78===e[36]&&70===e[37]&&47===e[38]&&109===e[39]&&111===e[40]&&122===e[41]&&105===e[42]&&108===e[43]&&108===e[44]&&97===e[45]&&46===e[46]&&114===e[47]&&115===e[48]&&97===e[49]?{ext:"xpi",mime:"application/x-xpinstall"}:80!==e[0]||75!==e[1]||3!==e[2]&&5!==e[2]&&7!==e[2]||4!==e[3]&&6!==e[3]&&8!==e[3]?117===e[257]&&115===e[258]&&116===e[259]&&97===e[260]&&114===e[261]?{ext:"tar",mime:"application/x-tar"}:82!==e[0]||97!==e[1]||114!==e[2]||33!==e[3]||26!==e[4]||7!==e[5]||0!==e[6]&&1!==e[6]?31===e[0]&&139===e[1]&&8===e[2]?{ext:"gz",mime:"application/gzip"}:66===e[0]&&90===e[1]&&104===e[2]?{ext:"bz2",mime:"application/x-bzip2"}:55===e[0]&&122===e[1]&&188===e[2]&&175===e[3]&&39===e[4]&&28===e[5]?{ext:"7z",mime:"application/x-7z-compressed"}:120===e[0]&&1===e[1]?{ext:"dmg",mime:"application/x-apple-diskimage"}:0===e[0]&&0===e[1]&&0===e[2]&&(24===e[3]||32===e[3])&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]||51===e[0]&&103===e[1]&&112===e[2]&&53===e[3]||0===e[0]&&0===e[1]&&0===e[2]&&28===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&109===e[8]&&112===e[9]&&52===e[10]&&50===e[11]&&109===e[16]&&112===e[17]&&52===e[18]&&49===e[19]&&109===e[20]&&112===e[21]&&52===e[22]&&50===e[23]&&105===e[24]&&115===e[25]&&111===e[26]&&109===e[27]||0===e[0]&&0===e[1]&&0===e[2]&&28===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&105===e[8]&&115===e[9]&&111===e[10]&&109===e[11]||0===e[0]&&0===e[1]&&0===e[2]&&28===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&109===e[8]&&112===e[9]&&52===e[10]&&50===e[11]&&0===e[12]&&0===e[13]&&0===e[14]&&0===e[15]?{ext:"mp4",mime:"video/mp4"}:0===e[0]&&0===e[1]&&0===e[2]&&28===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&77===e[8]&&52===e[9]&&86===e[10]?{ext:"m4v",mime:"video/x-m4v"}:77===e[0]&&84===e[1]&&104===e[2]&&100===e[3]?{ext:"mid",mime:"audio/midi"}:109===e[31]&&97===e[32]&&116===e[33]&&114===e[34]&&111===e[35]&&115===e[36]&&107===e[37]&&97===e[38]?{ext:"mkv",mime:"video/x-matroska"}:26===e[0]&&69===e[1]&&223===e[2]&&163===e[3]?{ext:"webm",mime:"video/webm"}:0===e[0]&&0===e[1]&&0===e[2]&&20===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]?{ext:"mov",mime:"video/quicktime"}:82===e[0]&&73===e[1]&&70===e[2]&&70===e[3]&&65===e[8]&&86===e[9]&&73===e[10]?{ext:"avi",mime:"video/x-msvideo"}:48===e[0]&&38===e[1]&&178===e[2]&&117===e[3]&&142===e[4]&&102===e[5]&&207===e[6]&&17===e[7]&&166===e[8]&&217===e[9]?{ext:"wmv",mime:"video/x-ms-wmv"}:0===e[0]&&0===e[1]&&1===e[2]&&"b"===e[3].toString(16)[0]?{ext:"mpg",mime:"video/mpeg"}:73===e[0]&&68===e[1]&&51===e[2]||255===e[0]&&251===e[1]?{ext:"mp3",mime:"audio/mpeg"}:102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&77===e[8]&&52===e[9]&&65===e[10]||77===e[0]&&52===e[1]&&65===e[2]&&32===e[3]?{ext:"m4a",mime:"audio/m4a"}:79===e[28]&&112===e[29]&&117===e[30]&&115===e[31]&&72===e[32]&&101===e[33]&&97===e[34]&&100===e[35]?{ext:"opus",mime:"audio/opus"}:79===e[0]&&103===e[1]&&103===e[2]&&83===e[3]?{ext:"ogg",mime:"audio/ogg"}:102===e[0]&&76===e[1]&&97===e[2]&&67===e[3]?{ext:"flac",mime:"audio/x-flac"}:82===e[0]&&73===e[1]&&70===e[2]&&70===e[3]&&87===e[8]&&65===e[9]&&86===e[10]&&69===e[11]?{ext:"wav",mime:"audio/x-wav"}:35===e[0]&&33===e[1]&&65===e[2]&&77===e[3]&&82===e[4]&&10===e[5]?{ext:"amr",mime:"audio/amr"}:37===e[0]&&80===e[1]&&68===e[2]&&70===e[3]?{ext:"pdf",mime:"application/pdf"}:77===e[0]&&90===e[1]?{ext:"exe",mime:"application/x-msdownload"}:67!==e[0]&&70!==e[0]||87!==e[1]||83!==e[2]?123===e[0]&&92===e[1]&&114===e[2]&&116===e[3]&&102===e[4]?{ext:"rtf",mime:"application/rtf"}:119===e[0]&&79===e[1]&&70===e[2]&&70===e[3]&&(0===e[4]&&1===e[5]&&0===e[6]&&0===e[7]||79===e[4]&&84===e[5]&&84===e[6]&&79===e[7])?{ext:"woff",mime:"application/font-woff"}:119===e[0]&&79===e[1]&&70===e[2]&&50===e[3]&&(0===e[4]&&1===e[5]&&0===e[6]&&0===e[7]||79===e[4]&&84===e[5]&&84===e[6]&&79===e[7])?{ext:"woff2",mime:"application/font-woff"}:76===e[34]&&80===e[35]&&(0===e[8]&&0===e[9]&&1===e[10]||1===e[8]&&0===e[9]&&2===e[10]||2===e[8]&&0===e[9]&&2===e[10])?{ext:"eot",mime:"application/octet-stream"}:0===e[0]&&1===e[1]&&0===e[2]&&0===e[3]&&0===e[4]?{ext:"ttf",mime:"application/font-sfnt"}:79===e[0]&&84===e[1]&&84===e[2]&&79===e[3]&&0===e[4]?{ext:"otf",mime:"application/font-sfnt"}:0===e[0]&&0===e[1]&&1===e[2]&&0===e[3]?{ext:"ico",mime:"image/x-icon"}:70===e[0]&&76===e[1]&&86===e[2]&&1===e[3]?{ext:"flv",mime:"video/x-flv"}:37===e[0]&&33===e[1]?{ext:"ps",mime:"application/postscript"}:253===e[0]&&55===e[1]&&122===e[2]&&88===e[3]&&90===e[4]&&0===e[5]?{ext:"xz",mime:"application/x-xz"}:83===e[0]&&81===e[1]&&76===e[2]&&105===e[3]?{ext:"sqlite",mime:"application/x-sqlite3"}:78===e[0]&&69===e[1]&&83===e[2]&&26===e[3]?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:67===e[0]&&114===e[1]&&50===e[2]&&52===e[3]?{ext:"crx",mime:"application/x-google-chrome-extension"}:77===e[0]&&83===e[1]&&67===e[2]&&70===e[3]||73===e[0]&&83===e[1]&&99===e[2]&&40===e[3]?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:33===e[0]&&60===e[1]&&97===e[2]&&114===e[3]&&99===e[4]&&104===e[5]&&62===e[6]&&10===e[7]&&100===e[8]&&101===e[9]&&98===e[10]&&105===e[11]&&97===e[12]&&110===e[13]&&45===e[14]&&98===e[15]&&105===e[16]&&110===e[17]&&97===e[18]&&114===e[19]&&121===e[20]?{ext:"deb",mime:"application/x-deb"}:33===e[0]&&60===e[1]&&97===e[2]&&114===e[3]&&99===e[4]&&104===e[5]&&62===e[6]?{ext:"ar",mime:"application/x-unix-archive"}:237===e[0]&&171===e[1]&&238===e[2]&&219===e[3]?{ext:"rpm",mime:"application/x-rpm"}:31===e[0]&&160===e[1]||31===e[0]&&157===e[1]?{ext:"Z",mime:"application/x-compress"}:76===e[0]&&90===e[1]&&73===e[2]&&80===e[3]?{ext:"lz",mime:"application/x-lzip"}:208===e[0]&&207===e[1]&&17===e[2]&&224===e[3]&&161===e[4]&&177===e[5]&&26===e[6]&&225===e[7]?{ext:"msi",mime:"application/x-msi"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}:{ext:"rar",mime:"application/x-rar-compressed"}:{ext:"zip",mime:"application/zip"}:null})}var ut,lt,ct,dt,pt,ht,mt,yt,gt,bt={exports:{}};function wt(){if(lt)return ut;lt=1;var e,t="pending",n="settled",i="fulfilled",o="rejected",a=function(){},s=void 0!==r.commonjsGlobal&&void 0!==r.commonjsGlobal.process&&"function"==typeof r.commonjsGlobal.process.emit,f="undefined"==typeof setImmediate?setTimeout:setImmediate,u=[];function l(){for(var t=0;t<u.length;t++)u[t][0](u[t][1]);u=[],e=!1}function c(t,r){u.push([t,r]),e||(e=!0,f(l,0))}function d(e){var t=e.owner,r=t._state,n=t._data,a=e[r],s=e.then;if("function"==typeof a){r=i;try{n=a(n)}catch(e){y(s,e)}}p(s,n)||(r===i&&h(s,n),r===o&&y(s,n))}function p(e,t){var r;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"==typeof t)){var n=t.then;if("function"==typeof n)return n.call(t,function(n){r||(r=!0,t===n?m(e,n):h(e,n))},function(t){r||(r=!0,y(e,t))}),!0}}catch(t){return r||y(e,t),!0}return!1}function h(e,t){e!==t&&p(e,t)||m(e,t)}function m(e,r){e._state===t&&(e._state=n,e._data=r,c(b,e))}function y(e,r){e._state===t&&(e._state=n,e._data=r,c(w,e))}function g(e){e._then=e._then.forEach(d)}function b(e){e._state=i,g(e)}function w(e){e._state=o,g(e),!e._handled&&s&&r.commonjsGlobal.process.emit("unhandledRejection",e._data,e)}function v(e){r.commonjsGlobal.process.emit("rejectionHandled",e)}function x(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof x==!1)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(e,t){function r(e){y(t,e)}try{e(function(e){h(t,e)},r)}catch(e){r(e)}}(e,this)}return x.prototype={constructor:x,_state:t,_then:null,_data:void 0,_handled:!1,then:function(e,t){var r={owner:this,then:new this.constructor(a),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,this._state===o&&s&&c(v,this)),this._state===i||this._state===o?c(d,r):this._then.push(r),r.then},catch:function(e){return this.then(null,e)}},x.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new x(function(t,r){var n=[],i=0;function o(e){return i++,function(r){n[e]=r,--i||t(n)}}for(var a,s=0;s<e.length;s++)(a=e[s])&&"function"==typeof a.then?a.then(o(s),r):n[s]=a;i||t(n)})},x.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new x(function(t,r){for(var n,i=0;i<e.length;i++)(n=e[i])&&"function"==typeof n.then?n.then(t,r):t(n)})},x.resolve=function(e){return e&&"object"==typeof e&&e.constructor===x?e:new x(function(t){t(e)})},x.reject=function(e){return new x(function(t,r){r(e)})},ut=x}function vt(){return dt?ct:(dt=1,ct="function"==typeof Promise?Promise:wt())}
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|