-
Notifications
You must be signed in to change notification settings - Fork 0
/
electron-compiled.js
6 lines (6 loc) · 85.2 KB
/
electron-compiled.js
1
2
3
4
5
6
!function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=29)}([function(e,t){e.exports=require("util")},function(e,t,r){"use strict";var n=r(4);"disable"===process.env.READABLE_STREAM&&n?(e.exports=n,t=e.exports=n.Readable,t.Readable=n.Readable,t.Writable=n.Writable,t.Duplex=n.Duplex,t.Transform=n.Transform,t.PassThrough=n.PassThrough,t.Stream=n):(t=e.exports=r(19),t.Stream=n||t,t.Readable=t,t.Writable=r(22),t.Duplex=r(6),t.Transform=r(24),t.PassThrough=r(59))},function(e,t,r){"use strict";try{var n=r(0);if("function"!=typeof n.inherits)throw"";e.exports=n.inherits}catch(t){e.exports=r(56)}},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("stream")},function(e,t,r){"use strict";function n(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return s(e,t,r)}var o=r(46),s=o.Buffer;s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?e.exports=o:(n(o,t),t.Buffer=i),n(s,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return s(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=s(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return s(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},function(e,t,r){"use strict";function n(e){if(!(this instanceof n))return new n(e);c.call(this,e),f.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",i)}function i(){this.allowHalfOpen||this._writableState.ended||s.nextTick(o,this)}function o(e){e.end()}var s=r(10),a=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=n;var u=r(7);u.inherits=r(2);var c=r(19),f=r(22);u.inherits(n,c);for(var l=a(f.prototype),d=0;d<l.length;d++){var h=l[d];n.prototype[h]||(n.prototype[h]=f.prototype[h])}Object.defineProperty(n.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(n.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)}}),n.prototype._destroy=function(e,t){this.push(null),this.end(),s.nextTick(t,e)}},function(e,t,r){"use strict";function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===m(e)}function i(e){return"boolean"==typeof e}function o(e){return null===e}function s(e){return null==e}function a(e){return"number"==typeof e}function u(e){return"string"==typeof e}function c(e){return"symbol"===(void 0===e?"undefined":g(e))}function f(e){return void 0===e}function l(e){return"[object RegExp]"===m(e)}function d(e){return"object"===(void 0===e?"undefined":g(e))&&null!==e}function h(e){return"[object Date]"===m(e)}function p(e){return"[object Error]"===m(e)||e instanceof Error}function y(e){return"function"==typeof e}function b(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===(void 0===e?"undefined":g(e))||void 0===e}function m(e){return Object.prototype.toString.call(e)}var g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isArray=n,t.isBoolean=i,t.isNull=o,t.isNullOrUndefined=s,t.isNumber=a,t.isString=u,t.isSymbol=c,t.isUndefined=f,t.isRegExp=l,t.isObject=d,t.isDate=h,t.isError=p,t.isFunction=y,t.isPrimitive=b,t.isBuffer=Buffer.isBuffer},function(e,t){e.exports=require("path")},function(e,t,r){"use strict";var n=r(14),i=function(){},o=function(e){return e.setHeader&&"function"==typeof e.abort},s=function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length},a=function e(t,r,a){if("function"==typeof r)return e(t,null,r);r||(r={}),a=n(a||i);var u=t._writableState,c=t._readableState,f=r.readable||!1!==r.readable&&t.readable,l=r.writable||!1!==r.writable&&t.writable,d=function(){t.writable||h()},h=function(){l=!1,f||a.call(t)},p=function(){f=!1,l||a.call(t)},y=function(e){a.call(t,e?new Error("exited with error code: "+e):null)},b=function(e){a.call(t,e)},m=function(){return(!f||c&&c.ended)&&(!l||u&&u.ended)?void 0:a.call(t,new Error("premature close"))},g=function(){t.req.on("finish",h)};return o(t)?(t.on("complete",h),t.on("abort",m),t.req?g():t.on("request",g)):l&&!u&&(t.on("end",d),t.on("close",d)),s(t)&&t.on("exit",y),t.on("end",p),t.on("finish",h),!1!==r.error&&t.on("error",b),t.on("close",m),function(){t.removeListener("complete",h),t.removeListener("abort",m),t.removeListener("request",g),t.req&&t.req.removeListener("finish",h),t.removeListener("end",d),t.removeListener("close",d),t.removeListener("finish",h),t.removeListener("exit",y),t.removeListener("end",p),t.removeListener("error",b),t.removeListener("close",m)}};e.exports=a},function(e,t,r){"use strict";function n(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,s=arguments.length;switch(s){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,r)});case 4:return process.nextTick(function(){e.call(null,t,r,n)});default:for(i=new Array(s-1),o=0;o<i.length;)i[o++]=arguments[o];return process.nextTick(function(){e.apply(null,i)})}}!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?e.exports={nextTick:n}:e.exports=process},function(e,t){e.exports=require("electron")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("https")},function(e,t,r){"use strict";function n(e){var t=function t(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function i(e){var t=function t(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)};return t.onceError=(e.name||"Function wrapped with `once`")+" shouldn't be called more than once",t.called=!1,t}var o=r(48);e.exports=o(n),e.exports.strict=o(i),n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})})},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("zlib")},function(e,t,r){"use strict";var n=r(14),i=r(9),o=r(3),s=function(){},a=function(e){return"function"==typeof e},u=function(e){return!!o&&((e instanceof(o.ReadStream||s)||e instanceof(o.WriteStream||s))&&a(e.close))},c=function(e){return e.setHeader&&a(e.abort)},f=function(e,t,r,o){o=n(o);var f=!1;e.on("close",function(){f=!0}),i(e,{readable:t,writable:r},function(e){if(e)return o(e);f=!0,o()});var l=!1;return function(t){if(!f&&!l)return l=!0,u(e)?e.close(s):c(e)?e.abort():a(e.destroy)?e.destroy():void o(t||new Error("stream was destroyed"))}},l=function(e){e()},d=function(e,t){return e.pipe(t)},h=function(){var e=Array.prototype.slice.call(arguments),t=a(e[e.length-1]||s)&&e.pop()||s;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r,n=e.map(function(i,o){var s=o<e.length-1;return f(i,s,o>0,function(e){r||(r=e),e&&n.forEach(l),s||(n.forEach(l),t(r))})});return e.reduce(d)};e.exports=h},function(e,t,r){"use strict";function n(e){return A.from(e)}function i(e){return A.isBuffer(e)||e instanceof I}function o(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?B(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function s(e,t){M=M||r(6),e=e||{};var n=t instanceof M;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new z,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&&(W||(W=r(23).StringDecoder),this.decoder=new W(e.encoding),this.encoding=e.encoding)}function a(e){if(M=M||r(6),!(this instanceof a))return new a(e);this._readableState=new s(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),P.call(this)}function u(e,t,r,i,o){var s=e._readableState;if(null===t)s.reading=!1,p(e,s);else{var a;o||(a=f(s,t)),a?e.emit("error",a):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===A.prototype||(t=n(t)),i?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):c(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?c(e,s,t,!1):m(e,s)):c(e,s,t,!1))):i||(s.reading=!1)}return l(s)}function c(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&&y(e)),m(e,t)}function f(e,t){var r;return i(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function l(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}function d(e){return e>=G?e=G:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function h(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=d(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function p(e,t){if(!t.ended){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,y(e)}}function y(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(q("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?L.nextTick(b,e):b(e))}function b(e){q("emit readable"),e.emit("readable"),E(e)}function m(e,t){t.readingMore||(t.readingMore=!0,L.nextTick(g,e,t))}function g(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(q("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function _(e){return function(){var t=e._readableState;q("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&N(e,"data")&&(t.flowing=!0,E(e))}}function v(e){q("readable nexttick read 0"),e.read(0)}function w(e,t){t.resumeScheduled||(t.resumeScheduled=!0,L.nextTick(S,e,t))}function S(e,t){t.reading||(q("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),E(e),t.flowing&&!t.reading&&e.read(0)}function E(e){var t=e._readableState;for(q("flow",t.flowing);t.flowing&&null!==e.read(););}function x(e,t){if(0===t.length)return null;var r;return 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=k(e,t.buffer,t.decoder),r}function k(e,t,r){var n;return 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?T(e,t):j(e,t),n}function T(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++n}return t.length-=n,i}function j(e,t){var r=A.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,s),0===(e-=s)){s===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++i}return t.length-=i,r}function R(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,L.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}var L=r(10);e.exports=a;var M,B=r(55);a.ReadableState=s;var N=(r(15).EventEmitter,function(e,t){return e.listeners(t).length}),P=r(20),A=r(5).Buffer,I=global.Uint8Array||function(){},D=r(7);D.inherits=r(2);var U=r(0),q=void 0;q=U&&U.debuglog?U.debuglog("stream"):function(){};var W,z=r(57),F=r(21);D.inherits(a,P);var H=["error","close","destroy","pause","resume"];Object.defineProperty(a.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),a.prototype.destroy=F.destroy,a.prototype._undestroy=F.undestroy,a.prototype._destroy=function(e,t){this.push(null),t(e)},a.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&(t=t||n.defaultEncoding,t!==n.encoding&&(e=A.from(e,t),t=""),r=!0),u(this,e,t,!1,r)},a.prototype.unshift=function(e){return u(this,e,null,!0,!1)},a.prototype.isPaused=function(){return!1===this._readableState.flowing},a.prototype.setEncoding=function(e){return W||(W=r(23).StringDecoder),this._readableState.decoder=new W(e),this._readableState.encoding=e,this};var G=8388608;a.prototype.read=function(e){q("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 q("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):y(this),null;if(0===(e=h(e,t))&&t.ended)return 0===t.length&&R(this),null;var n=t.needReadable;q("need readable",n),(0===t.length||t.length-e<t.highWaterMark)&&(n=!0,q("length less than watermark",n)),t.ended||t.reading?(n=!1,q("reading or ended",n)):n&&(q("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=h(r,t)));var i;return i=e>0?x(e,t):null,null===i?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&R(this)),null!==i&&this.emit("data",i),i},a.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},a.prototype.pipe=function(e,t){function r(e,t){q("onunpipe"),e===l&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,i())}function n(){q("onend"),e.end()}function i(){q("cleanup"),e.removeListener("close",u),e.removeListener("finish",c),e.removeListener("drain",y),e.removeListener("error",a),e.removeListener("unpipe",r),l.removeListener("end",n),l.removeListener("end",f),l.removeListener("data",s),b=!0,!d.awaitDrain||e._writableState&&!e._writableState.needDrain||y()}function s(t){q("ondata"),m=!1,!1!==e.write(t)||m||((1===d.pipesCount&&d.pipes===e||d.pipesCount>1&&-1!==C(d.pipes,e))&&!b&&(q("false write response, pause",l._readableState.awaitDrain),l._readableState.awaitDrain++,m=!0),l.pause())}function a(t){q("onerror",t),f(),e.removeListener("error",a),0===N(e,"error")&&e.emit("error",t)}function u(){e.removeListener("finish",c),f()}function c(){q("onfinish"),e.removeListener("close",u),f()}function f(){q("unpipe"),l.unpipe(e)}var l=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=e;break;case 1:d.pipes=[d.pipes,e];break;default:d.pipes.push(e)}d.pipesCount+=1,q("pipe count=%d opts=%j",d.pipesCount,t);var h=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr,p=h?n:f;d.endEmitted?L.nextTick(p):l.once("end",p),e.on("unpipe",r);var y=_(l);e.on("drain",y);var b=!1,m=!1;return l.on("data",s),o(e,"error",a),e.once("close",u),e.once("finish",c),e.emit("pipe",l),d.flowing||(q("pipe resume"),l.resume()),e},a.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?this:(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 s=C(t.pipes,e);return-1===s?this:(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)},a.prototype.on=function(e,t){var r=P.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&y(this):L.nextTick(v,this))}return r},a.prototype.addListener=a.prototype.on,a.prototype.resume=function(){var e=this._readableState;return e.flowing||(q("resume"),e.flowing=!0,w(this,e)),this},a.prototype.pause=function(){return q("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(q("pause"),this._readableState.flowing=!1,this.emit("pause")),this},a.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(q("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){if(q("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!==i&&void 0!==i)&&(r.objectMode||i&&i.length)){t.push(i)||(n=!0,e.pause())}});for(var i in 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<H.length;o++)e.on(H[o],this.emit.bind(this,H[o]));return this._read=function(t){q("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(a.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),a._fromList=x},function(e,t,r){"use strict";e.exports=r(4)},function(e,t,r){"use strict";function n(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||s.nextTick(o,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(s.nextTick(o,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)}),this)}function i(){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 o(e,t){e.emit("error",t)}var s=r(10);e.exports={destroy:n,undestroy:i}},function(e,t,r){"use strict";function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){k(t,e)}}function i(e){return M.from(e)}function o(e){return M.isBuffer(e)||e instanceof B}function s(){}function a(e,t){j=j||r(6),e=e||{};var i=t instanceof j;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,s=e.writableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:i&&(s||0===s)?s:a,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 u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){b(t,e)},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 n(this)}function u(e){if(j=j||r(6),!(P.call(u,this)||this instanceof j))return new u(e);this._writableState=new a(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)),L.call(this)}function c(e,t){var r=new Error("write after end");e.emit("error",r),T.nextTick(t,r)}function f(e,t,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),T.nextTick(n,o),i=!1),i}function l(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=M.from(t,r)),t}function d(e,t,r,n,i,o){if(!r){var s=l(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else h(e,t,!1,a,n,i,o);return u}function h(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function p(e,t,r,n,i){--t.pendingcb,r?(T.nextTick(i,n),T.nextTick(E,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),E(e,t))}function y(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function b(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(y(r),t)p(e,r,n,t,i);else{var o=v(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?R(m,e,r,o,i):m(e,r,o,i)}}function m(e,t,r,n){r||g(e,t),t.pendingcb--,n(),E(e,t)}function g(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,o=new Array(i),s=t.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,h(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(h(e,t,!1,t.objectMode?1:c.length,c,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function v(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function w(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),E(e,t)})}function S(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,T.nextTick(w,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function E(e,t){var r=v(t);return r&&(S(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}function x(e,t,r){t.ending=!0,E(e,t),r&&(t.finished?T.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function k(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}var T=r(10);e.exports=u;var j,R=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:T.nextTick;u.WritableState=a;var O=r(7);O.inherits=r(2);var C={deprecate:r(58)},L=r(20),M=r(5).Buffer,B=global.Uint8Array||function(){},N=r(21);O.inherits(u,L),a.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(a.prototype,"buffer",{get:C.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}();var P;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(P=Function.prototype[Symbol.hasInstance],Object.defineProperty(u,Symbol.hasInstance,{value:function(e){return!!P.call(this,e)||this===u&&(e&&e._writableState instanceof a)}})):P=function(e){return e instanceof this},u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},u.prototype.write=function(e,t,r){var n=this._writableState,a=!1,u=!n.objectMode&&o(e);return u&&!M.isBuffer(e)&&(e=i(e)),"function"==typeof t&&(r=t,t=null),u?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=s),n.ended?c(this,r):(u||f(this,n,e,r))&&(n.pendingcb++,a=d(this,n,u,e,t,r)),a},u.prototype.cork=function(){this._writableState.corked++},u.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_(this,e))},u.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(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),u.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},u.prototype._writev=null,u.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||x(this,n,r)},Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),u.prototype.destroy=N.destroy,u.prototype._undestroy=N.undestroy,u.prototype._destroy=function(e,t){this.end(),t(e)}},function(e,t,r){"use strict";function n(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function i(e){var t=n(e);if("string"!=typeof t&&(g.isEncoding===_||!_(e)))throw new Error("Unknown encoding: "+e);return t||e}function o(e){this.encoding=i(e);var t;switch(this.encoding){case"utf16le":this.text=d,this.end=h,t=4;break;case"utf8":this.fillLast=c,t=4;break;case"base64":this.text=p,this.end=y,t=3;break;default:return this.write=b,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=g.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e,t,r){var n=t.length-1;if(n<r)return 0;var i=s(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=s(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=s(t[n]),i>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0)}function u(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}function c(e){var t=this.lastTotal-this.lastNeed,r=u(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function f(e,t){var r=a(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function d(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function h(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function p(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function m(e){return e&&e.length?this.write(e):""}var g=r(5).Buffer,_=g.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=l,o.prototype.text=f,o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){"use strict";function n(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 i(e){if(!(this instanceof i))return new i(e);a.call(this,e),this._transformState={afterTransform:n.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",o)}function o(){var e=this;"function"==typeof this._flush?this._flush(function(t,r){s(e,t,r)}):s(this,null,null)}function s(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)}e.exports=i;var a=r(6),u=r(7);u.inherits=r(2),u.inherits(i,a),i.prototype.push=function(e,t){return this._transformState.needTransform=!1,a.prototype.push.call(this,e,t)},i.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},i.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)}},i.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},i.prototype._destroy=function(e,t){var r=this;a.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},function(e,t,r){"use strict";function n(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)i.call(r,n)&&(e[n]=r[n])}return e}e.exports=n;var i=Object.prototype.hasOwnProperty},function(e,t,r){"use strict";function n(e){var t;if(128===e[0])t=!0;else{if(255!==e[0])return null;t=!1}for(var r=!1,n=[],i=e.length-1;i>0;i--){var o=e[i];t?n.push(o):r&&0===o?n.push(0):r?(r=!1,n.push(256-o)):n.push(255-o)}var s=0,a=n.length;for(i=0;i<a;i++)s+=n[i]*Math.pow(256,i);return t?s:-1*s}var i="0000000000000000000",o="7777777777777777777",s="0".charCodeAt(0),a=parseInt("7777",8),u=function(e,t,r){return"number"!=typeof e?r:(e=~~e)>=t?t:e>=0?e:(e+=t,e>=0?e:0)},c=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},f=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},l=function(e){var t=new Buffer(e);return t.fill(0),t},d=function(e,t,r,n){for(;r<n;r++)if(e[r]===t)return r;return n},h=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},p=function(e,t){return e=e.toString(8),e.length>t?o.slice(0,t)+" ":i.slice(0,t-e.length)+e+" "},y=function(e,t,r){if(e=e.slice(t,t+r),t=0,128&e[t])return n(e);for(;t<e.length&&32===e[t];)t++;for(var i=u(d(e,32,t,e.length),e.length,e.length);t<i&&0===e[t];)t++;return i===t?0:parseInt(e.slice(t,i).toString(),8)},b=function(e,t,r){return e.slice(t,d(e,0,t,t+r)).toString()},m=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};t.decodeLongPath=function(e){return b(e,0,e.length)},t.encodePax=function(e){var t="";e.name&&(t+=m(" path="+e.name+"\n")),e.linkname&&(t+=m(" linkpath="+e.linkname+"\n"));var r=e.pax;if(r)for(var n in r)t+=m(" "+n+"="+r[n]+"\n");return new Buffer(t)},t.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},t.encode=function(e){var t=l(512),r=e.name,n="";if(5===e.typeflag&&"/"!==r[r.length-1]&&(r+="/"),Buffer.byteLength(r)!==r.length)return null;for(;Buffer.byteLength(r)>100;){var i=r.indexOf("/");if(-1===i)return null;n+=n?"/"+r.slice(0,i):r.slice(0,i),r=r.slice(i+1)}return Buffer.byteLength(r)>100||Buffer.byteLength(n)>155?null:e.linkname&&Buffer.byteLength(e.linkname)>100?null:(t.write(r),t.write(p(e.mode&a,6),100),t.write(p(e.uid,6),108),t.write(p(e.gid,6),116),t.write(p(e.size,11),124),t.write(p(e.mtime.getTime()/1e3|0,11),136),t[156]=s+f(e.type),e.linkname&&t.write(e.linkname,157),t.write("ustar\x0000",257),e.uname&&t.write(e.uname,265),e.gname&&t.write(e.gname,297),t.write(p(e.devmajor||0,6),329),t.write(p(e.devminor||0,6),337),n&&t.write(n,345),t.write(p(h(t),6),148),t)},t.decode=function(e){var t=0===e[156]?0:e[156]-s,r=b(e,0,100),n=y(e,100,8),i=y(e,108,8),o=y(e,116,8),a=y(e,124,12),u=y(e,136,12),f=c(t),l=0===e[157]?null:b(e,157,100),d=b(e,265,32),p=b(e,297,32),m=y(e,329,8),g=y(e,337,8);e[345]&&(r=b(e,345,155)+"/"+r),0===t&&r&&"/"===r[r.length-1]&&(t=5);var _=h(e);if(256===_)return null;if(_!==y(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");return{name:r,mode:n,uid:i,gid:o,size:a,mtime:new Date(1e3*u),type:f,linkname:l,uname:d,gname:p,devmajor:m,devminor:g}}},function(e,t,r){"use strict";var n=r(1),i=r(9),o=r(2),s=r(67),a=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]),u=function(e,t){e._corked?e.once("uncork",t):t()},c=function(e,t){return function(r){r?e._destroyInterval(r):t&&!e._ended&&e.end()}},f=function(e,t){return e?e._writableState&&e._writableState.finished?t():e._writableState?e.end(t):(e.end(),void t()):t()},l=function(e){return new n.Readable({objectMode:!0,highWaterMark:16}).wrap(e)},d=function e(t,r,i){if(!(this instanceof e))return new e(t,r,i);n.Duplex.call(this,i),this._writable=null,this._readable=null,this._readable2=null,this._forwardDestroy=!i||!1!==i.destroy,this._forwardEnd=!i||!1!==i.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this._error=null,this._preferError=!1,this.destroyed=!1,t&&this.setWritable(t),r&&this.setReadable(r)};o(d,n.Duplex),d.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new d(e,t,r)},d.prototype.cork=function(){1==++this._corked&&this.emit("cork")},d.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork")},d.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed)return void(e&&e.destroy&&e.destroy());if(null===e||!1===e)return void this.end();var t=this,r=i(e,{writable:!0,readable:!1},c(this,this._forwardEnd)),n=function(){var e=t._ondrain;t._ondrain=null,e&&e()},o=function(){t._writable.removeListener("drain",n),r()};this._unwrite&&process.nextTick(n),this._writable=e,this._writable.on("drain",n),this._unwrite=o,this.uncork()},d.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed)return void(e&&e.destroy&&e.destroy());if(null===e||!1===e)return this.push(null),void this.resume();var t=this,r=i(e,{writable:!1,readable:!0},c(this)),n=function(){t._forward()},o=function(){t.push(null)},s=function(){t._readable2.removeListener("readable",n),t._readable2.removeListener("end",o),r()};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:l(e),this._readable2.on("readable",n),this._readable2.on("end",o),this._unread=s,this._forward()},d.prototype._read=function(){this._drained=!0,this._forward()},d.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){this._forwarding=!0;for(var e;this._drained&&null!==(e=s(this._readable2));)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},d.prototype.destroy=function(e){if(this._preferError&&!this._error&&e&&(this._error=e),!this.destroyed){this.destroyed=!0;var t=this;process.nextTick(function(){t._destroy(t._preferError?t._error:e)})}},d.prototype._destroyInterval=function(e){if(!this.destroyed){if("premature close"!==e.message)return this.destroy(e);this._preferError=!0,this.destroy(null)}},d.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},d.prototype._write=function(e,t,r){return this.destroyed?r():this._corked?u(this,this._write.bind(this,e,t,r)):e===a?this._finish(r):this._writable?void(!1===this._writable.write(e)?this._ondrain=r:r()):r()},d.prototype._finish=function(e){var t=this;this.emit("preend"),u(this,function(){f(t._forwardEnd&&t._writable,function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),u(t,e)})})},d.prototype.end=function(e,t,r){return"function"==typeof e?this.end(null,null,e):"function"==typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this.write(a),n.Writable.prototype.end.call(this,r))},e.exports=d},function(e,t,r){"use strict";function n(e){s.call(this,e),this._destroyed=!1}function i(e,t,r){r(null,e)}function o(e){return function(t,r,n){return"function"==typeof t&&(n=r,r=t,t={}),"function"!=typeof r&&(r=i),"function"!=typeof n&&(n=null),e(t,r,n)}}var s=r(68),a=r(0).inherits,u=r(25);a(n,s),n.prototype.destroy=function(e){if(!this._destroyed){this._destroyed=!0;var t=this;process.nextTick(function(){e&&t.emit("error",e),t.emit("close")})}},e.exports=o(function(e,t,r){var i=new n(e);return i._transform=t,r&&(i._flush=r),i}),e.exports.ctor=o(function(e,t,r){function i(t){if(!(this instanceof i))return new i(t);this.options=u(e,t),n.call(this,this.options)}return a(i,n),i.prototype._transform=t,r&&(i.prototype._flush=r),i}),e.exports.obj=o(function(e,t,r){var i=new n(u({objectMode:!0,highWaterMark:16},e));return i._transform=t,r&&(i._flush=r),i})},function(e,t,r){"use strict";function n(e){null===E&&(E=new f({title:"NTA Help",webPreferences:{devTools:!1,nodeIntegration:!1}}),E.on("closed",function(){E=null}),E.on("page-title-updated",function(e){e.preventDefault()}),E.setMenu(null)),E.loadURL(e),E.isMinimized()&&E.restore(),E.focus()}function i(e){var t=new f({title:"Paper Editor",webPreferences:{nodeIntegrationInWorker:!0}});t.ntarc_base_path=x;var r=t.id;S[r]=t,t.ntarc_filename=e,t.loadURL(k),t.webContents.on("will-navigate",function(e,t){if(t.startsWith("http://")||t.startsWith("https://")){if(!0===global.DEBUG&&t.startsWith(process.env.ELECTRON_START_URL))return;e.preventDefault(),n(t)}}),t.on("closed",function(){delete S[r],0==Object.keys(S).length&&null!==E&&(E.destroy(),E=null,c.quit())})}function o(e,t){for(var r=b.openSync(e,"r"),n=b.openSync(t,"w"),i=1,o=0,s=Buffer.alloc(4096);i>0;)i=b.readSync(r,s,0,4096,o),b.writeSync(n,s,0,i),o+=i;b.closeSync(r),b.closeSync(n)}function s(e,t){0==d.showMessageBox({type:"info",title:"Update available",message:"There is a newer specification available. Update?",buttons:["Yes","No"],defaultId:0,cancelId:1})&&m({url:v+_+"/tarball/"+t,dir:x,extractOpts:{ignore:function(e,t){return!w.has(t.name)},map:function(e){return e.name=e.name.split("/").slice(1).join("/"),e}}}).then(function(){b.writeFileSync(p.join(x,"commit.json"),JSON.stringify({sha:e,tag:t})),d.showMessageBox({type:"info",title:"Update downloaded",message:"Update successfully downloaded. To use the new specification, reopen all windows.",buttons:["Ok"]}),console.log("update ok!")}).catch(function(e){d.showMessageBox({type:"error",title:"Error during download",message:e.toString(),buttons:["Ok"]})})}function a(){var e=y.parse(v+_+"/tags");e.headers={"User-Agent":"CN-TU/nta-meta-analysis-editor updater"};var t=h.request(e);t.on("response",function(e){if(200==e.statusCode){var t="";e.on("data",function(e){t+=e}),e.on("end",function(){t=JSON.parse(t),t=new Map(t.map(function(e){return[e.name,e.commit.sha]}));var e=Array.from(t.keys()).filter(function(e){return"a"!=e[e.length-1]}).sort(),r=e[e.length-1],n=JSON.parse(b.readFileSync(p.join(x,"commit.json"),"utf8")),i=n.sha;r>n.tag?s(t.get(r),r):i!=t.get(r)?s(t.get(r),r):console.log("no update needed")})}}),t.end()}var u=r(11),c=u.app,f=u.BrowserWindow,l=u.ipcMain,d=u.dialog,h=u.net;u.webContents;"linux"===process.platform&&c.disableHardwareAcceleration();var p=r(8),y=r(12),b=(r(13),r(3)),m=r(30),g=r(78),_=g.PROJECT,v=g.API_URL,w=g.needed,S={},E=null,x=p.join(c.getPath("appData"),"ntarc"),k=y.format({pathname:p.join(__dirname,"build/index.html"),protocol:"file:",slashes:!0});!0===global.DEBUG&&void 0!==process.env.ELECTRON_START_URL&&(k=process.env.ELECTRON_START_URL),c.on("ready",function(){var e=!1,t=!0,n=!1,s=void 0;try{for(var u,c=w[Symbol.iterator]();!(t=(u=c.next()).done);t=!0){var f=u.value;if(!b.existsSync(p.join(x,f))){e=!0;break}}}catch(e){n=!0,s=e}finally{try{!t&&c.return&&c.return()}finally{if(n)throw s}}if(0==e&&(b.existsSync(p.join(x,"commit.json"))||(e=!0)),e){b.mkdirSync(x);var l=!0,d=!1,h=void 0;try{for(var y,m=w[Symbol.iterator]();!(l=(y=m.next()).done);l=!0){var g=y.value;o(p.join(__dirname,"spec",g),p.join(x,g))}}catch(e){d=!0,h=e}finally{try{!l&&m.return&&m.return()}finally{if(d)throw h}}o(p.join(__dirname,"spec","commit.json"),p.join(x,"commit.json"))}i(),r(79),a()}),l.on("fileNew",function(){i()}),l.on("fileOpen",function(e,t){i(t)}),c.on("window-all-closed",function(){"darwin"!==process.platform&&c.quit()}),c.on("activate",function(){0===Object.keys(S).length&&i()})},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var i=r(31),o=n(i),s=r(18),a=n(s),u=r(49),c=r(65),f=n(c),l=r(74),d=n(l),h=r(76),p=n(h),y=r(77),b=n(y),m=(0,d.default)({keepAlive:!0,maxSockets:20});e.exports=(0,b.default)(function(e,t){var r=e.url,n=e.gotOpts,i=e.extractOpts,s=e.dir;(0,a.default)(o.default.stream(r,(0,p.default)({agent:m(r)},n)),(0,f.default)(),(0,u.extract)(s,i),t)})},function(e,t,r){"use strict";function n(e){e=e||{};var t=new f,r=e.href||p.resolve(p.format(e),e.path),n=0,i=0,o=void 0;return function e(s){var u="https:"===s.protocol?d:l,c=u.request(s,function(i){var u=i.statusCode;if(S(u)&&s.followRedirect&&"location"in i.headers&&("GET"===s.method||"HEAD"===s.method)){if(i.resume(),++n>10)return void t.emit("error",new a.MaxRedirectsError(u,s),null,i);var f=T.from(i.headers.location,"binary").toString();o=p.resolve(p.format(s),f);var l=Object.assign({},s,p.parse(o));return t.emit("redirect",i,l),void e(l)}setImmediate(function(){var e="function"==typeof E&&"HEAD"!==c.method?E(i):i;e.url=o||r,e.requestUrl=r,t.emit("response",e)})});c.once("error",function(r){var n=s.retries(++i,r);if(n)return void setTimeout(e,n,s);t.emit("error",new a.RequestError(r,s))}),s.gotTimeout&&_(c,s.gotTimeout),setImmediate(function(){t.emit("request",c)})}(e),t}function i(e){return new Promise(function(t,r){var i=n(e);i.on("request",function(t){if(m(e.body))return e.body.pipe(t),void(e.body=void 0);t.end(e.body)}),i.on("response",function(n){(null===e.encoding?g.buffer(n):g(n,e)).catch(function(t){return r(new a.ReadError(t,e))}).then(function(r){var i=n.statusCode,o=e.followRedirect?299:399;if(n.body=r,e.json&&n.body)try{n.body=JSON.parse(n.body)}catch(t){throw new a.ParseError(t,i,e,r)}if(i<200||i>o)throw new a.HTTPError(i,e);t(n)}).catch(function(e){Object.defineProperty(e,"response",{value:n}),r(e)})}),i.on("error",r)})}function o(e){var t=new h,r=new h,i=b(t,r);if(e.json)throw new Error("got can not be used as stream when options.json is used");e.body&&(i.write=function(){throw new Error("got's stream is not writable when options.body is used")});var o=n(e);return o.on("request",function(r){return i.emit("request",r),m(e.body)?void e.body.pipe(r):e.body?void r.end(e.body):"POST"===e.method||"PUT"===e.method||"PATCH"===e.method?void t.pipe(r):void r.end()}),o.on("response",function(t){var n=t.statusCode;if(t.pipe(r),n<200||n>299)return void i.emit("error",new a.HTTPError(n,e),null,t);i.emit("response",t)}),o.on("redirect",i.emit.bind(i,"redirect")),o.on("error",i.emit.bind(i,"error")),i}function s(e,t){if("string"!=typeof e&&"object"!==(void 0===e?"undefined":c(e)))throw new Error("Parameter `url` must be a string or object, not "+(void 0===e?"undefined":c(e)));if("string"==typeof e&&(e=e.replace(/^unix:/,"http://$&"),e=v(e),e.auth))throw new Error("Basic authentication must be done with auth option");t=Object.assign({protocol:"http:",path:"",retries:5},e,t),t.headers=Object.assign({"user-agent":j.name+"/"+j.version+" (https://github.com/sindresorhus/got)","accept-encoding":"gzip,deflate"},w(t.headers));var r=t.query;r&&("string"!=typeof r&&(t.query=y.stringify(r)),t.path=t.path.split("?")[0]+"?"+t.query,delete t.query),t.json&&void 0===t.headers.accept&&(t.headers.accept="application/json");var n=t.body;if(n){if("string"!=typeof n&&(null===n||"object"!==(void 0===n?"undefined":c(n))))throw new Error("options.body must be a ReadableStream, string, Buffer or plain Object");if(t.method=t.method||"POST",m(n)&&"function"==typeof n.getBoundary?t.headers["content-type"]=t.headers["content-type"]||"multipart/form-data; boundary="+n.getBoundary():null===n||"object"!==(void 0===n?"undefined":c(n))||T.isBuffer(n)||m(n)||(t.headers["content-type"]=t.headers["content-type"]||"application/x-www-form-urlencoded",n=t.body=y.stringify(n)),void 0===t.headers["content-length"]&&void 0===t.headers["transfer-encoding"]&&!m(n)){var i="string"==typeof n?T.byteLength(n):n.length;t.headers["content-length"]=i}}if(t.method=(t.method||"GET").toUpperCase(),"unix"===t.hostname){var o=/(.+):(.+)/.exec(t.path);o&&(t.socketPath=o[1],t.path=o[2],t.host=null)}if("function"!=typeof t.retries){var s=t.retries;t.retries=function(e,t){return e>s||!k(t)?0:1e3*(1<<e)+100*Math.random()}}return void 0===t.followRedirect&&(t.followRedirect=!0),t.timeout&&(t.gotTimeout=t.timeout,delete t.timeout),t}function a(e,t){try{return i(s(e,t))}catch(e){return Promise.reject(e)}}function u(e,t){void 0!==e.code&&(this.code=e.code),Object.assign(this,{message:e.message,host:t.host,hostname:t.hostname,method:t.method,path:t.path})}var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=r(15),l=r(16),d=r(13),h=r(4).PassThrough,p=r(12),y=r(32),b=r(33),m=r(34),g=r(35),_=r(37),v=r(38),w=r(40),S=r(41),E=r(42),x=r(43),k=r(45),T=r(5).Buffer,j=r(47),R=["get","post","put","patch","head","delete"];R.forEach(function(e){a[e]=function(t,r){return a(t,Object.assign({},r,{method:e}))}}),a.stream=function(e,t){return o(s(e,t))};var O=!0,C=!1,L=void 0;try{for(var M,B=R[Symbol.iterator]();!(O=(M=B.next()).done);O=!0){var N=M.value;!function(e){a.stream[e]=function(t,r){return a.stream(t,Object.assign({},r,{method:e}))}}(N)}}catch(e){C=!0,L=e}finally{try{!O&&B.return&&B.return()}finally{if(C)throw L}}a.RequestError=x("RequestError",u),a.ReadError=x("ReadError",u),a.ParseError=x("ParseError",function(e,t,r,n){u.call(this,e,r),this.statusCode=t,this.statusMessage=l.STATUS_CODES[this.statusCode],this.message=e.message+' in "'+p.format(r)+'": \n'+n.slice(0,77)+"..."}),a.HTTPError=x("HTTPError",function(e,t){u.call(this,{},t),this.statusCode=e,this.statusMessage=l.STATUS_CODES[this.statusCode],this.message="Response code "+this.statusCode+" ("+this.statusMessage+")"}),a.MaxRedirectsError=x("MaxRedirectsError",function(e,t){u.call(this,{},t),this.statusCode=e,this.statusMessage=l.STATUS_CODES[this.statusCode],this.message="Redirected 10 times. Aborting."}),e.exports=a},function(e,t){e.exports=require("querystring")},function(e,t,r){"use strict";function n(e,t,r){void 0===r&&(r=t,t=e,e=null),i.Duplex.call(this,e),"function"!=typeof r.read&&(r=new i.Readable(e).wrap(r)),this._writable=t,this._readable=r,this._waiting=!1;var n=this;t.once("finish",function(){n.end()}),this.once("finish",function(){t.end()}),r.on("readable",function(){n._waiting&&(n._waiting=!1,n._read())}),r.once("end",function(){n.push(null)}),e&&void 0!==e.bubbleErrors&&!e.bubbleErrors||(t.on("error",function(e){n.emit("error",e)}),r.on("error",function(e){n.emit("error",e)}))}var i=r(4);n.prototype=Object.create(i.Duplex.prototype,{constructor:{value:n}}),n.prototype._write=function(e,t,r){this._writable.write(e,t,r)},n.prototype._read=function(){for(var e,t=0;null!==(e=this._readable.read());)this.push(e),t++;0===t&&(this._waiting=!0)},e.exports=function(e,t,r){return new n(e,t,r)},e.exports.DuplexWrapper=n},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=e.exports=function(e){return null!==e&&"object"===(void 0===e?"undefined":n(e))&&"function"==typeof e.pipe};i.writable=function(e){return i(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"===n(e._writableState)},i.readable=function(e){return i(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"===n(e._readableState)},i.duplex=function(e){return i.writable(e)&&i.readable(e)},i.transform=function(e){return i.duplex(e)&&"function"==typeof e._transform&&"object"===n(e._transformState)}},function(e,t,r){"use strict";function n(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t=Object.assign({maxBuffer:1/0},t);var r=t.maxBuffer,n=void 0,o=void 0,s=new Promise(function(s,a){var u=function(e){e&&(e.bufferedData=n.getBufferedValue()),a(e)};n=i(t),e.once("error",u),e.pipe(n),n.on("data",function(){n.getBufferedLength()>r&&a(new Error("maxBuffer exceeded"))}),n.once("error",u),n.on("end",s),o=function(){e.unpipe&&e.unpipe(n)}});return s.then(o,o),s.then(function(){return n.getBufferedValue()})}var i=r(36);e.exports=n,e.exports.buffer=function(e,t){return n(e,Object.assign({},t,{encoding:"buffer"}))},e.exports.array=function(e,t){return n(e,Object.assign({},t,{array:!0}))}},function(e,t,r){"use strict";var n=r(4).PassThrough;e.exports=function(e){e=Object.assign({},e);var t=e.array,r=e.encoding,i="buffer"===r,o=!1;t?o=!(r||i):r=r||"utf8",i&&(r=null);var s=0,a=[],u=new n({objectMode:o});return r&&u.setEncoding(r),u.on("data",function(e){a.push(e),o?s=a.length:s+=e.length}),u.getBufferedValue=function(){return t?a:i?Buffer.concat(a,s):a.join("")},u.getBufferedLength=function(){return s},u}},function(e,t,r){"use strict";e.exports=function(e,t){function r(){e.timeoutTimer&&(clearTimeout(e.timeoutTimer),e.timeoutTimer=null)}function n(){r(),void 0!==i.socket&&e.setTimeout(i.socket,function(){e.abort();var t=new Error("Socket timed out on request"+o);t.code="ESOCKETTIMEDOUT",e.emit("error",t)})}if(e.timeoutTimer)return e;var i=isNaN(t)?t:{socket:t,connect:t},o=e._headers?" to "+e._headers.host:"";return void 0!==i.connect&&(e.timeoutTimer=setTimeout(function(){e.abort();var t=new Error("Connection timed out on request"+o);t.code="ETIMEDOUT",e.emit("error",t)},i.connect)),e.on("socket",function(e){if(!e.connecting&&!e._connecting)return void n();e.once("connect",n)}),e.on("error",r)}},function(e,t,r){"use strict";var n=r(12),i=r(39);e.exports=function(e){var t=i(e),r=n.parse(t);return t!==e&&(r.protocol=null),r}},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string, got "+(void 0===e?"undefined":n(e)));return e=e.trim(),/^\.*\/|^(?!localhost)\w+:/.test(e)?e:e.replace(/^(?!(?:\w+:)?\/\/)/,"http://")}},function(e,t,r){"use strict";e.exports=function(e){for(var t={},r=Object.keys(Object(e)),n=0;n<r.length;n++)t[r[n].toLowerCase()]=e[r[n]];return t}},function(e,t,r){"use strict";e.exports=function(e){if("number"!=typeof e)throw new TypeError("Expected a number");return 300===e||301===e||302===e||303===e||305===e||307===e||308===e}},function(e,t,r){"use strict";var n=r(4).PassThrough,i=r(17);e.exports=function(e){if(-1===["gzip","deflate"].indexOf(e.headers["content-encoding"]))return e;var t=i.createUnzip(),r=new n;return r.httpVersion=e.httpVersion,r.headers=e.headers,r.rawHeaders=e.rawHeaders,r.trailers=e.trailers,r.rawTrailers=e.rawTrailers,r.setTimeout=e.setTimeout.bind(e),r.statusCode=e.statusCode,r.statusMessage=e.statusMessage,r.socket=e.socket,t.on("error",function(e){if("Z_BUF_ERROR"===e.code)return void r.end();r.emit("error",e)}),e.pipe(t).pipe(r),r}},function(e,t,r){"use strict";function n(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}var i=r(44);e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("Expected className to be a string");if(/[^0-9a-zA-Z_$]/.test(e))throw new Error("className contains invalid characters");t=t||function(e){this.message=e};var r=function(){Object.defineProperty(this,"name",{configurable:!0,value:e,writable:!0}),i(this,this.constructor),t.apply(this,arguments)};return n(r,Error),r}},function(e,t,r){"use strict";e.exports=Error.captureStackTrace||function(e){var t=new Error;Object.defineProperty(e,"stack",{configurable:!0,get:function(){var e=t.stack;return Object.defineProperty(this,"stack",{value:e}),e}})}},function(e,t,r){"use strict";var n=["ETIMEDOUT","ECONNRESET","EADDRINUSE","ESOCKETTIMEDOUT","ECONNREFUSED","EPIPE"],i=["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED"];e.exports=function(e){return!e||!e.code||(-1!==n.indexOf(e.code)||-1===i.indexOf(e.code))}},function(e,t){e.exports=require("buffer")},function(e,t){e.exports={_from:"got@^6.3.0",_id:"got@6.7.1",_inBundle:!1,_integrity:"sha1-JAzQV4WpoY5WHcG0S0HHY+8ejbA=",_location:"/got",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"got@^6.3.0",name:"got",escapedName:"got",rawSpec:"^6.3.0",saveSpec:null,fetchSpec:"^6.3.0"},_requiredBy:["/download-tarball","/package-json"],_resolved:"https://registry.npmjs.org/got/-/got-6.7.1.tgz",_shasum:"240cd05785a9a18e561dc1b44b41c763ef1e8db0",_spec:"got@^6.3.0",_where:"/home/notti/repo/nta-meta-analysis-editor/node_modules/download-tarball",ava:{concurrency:4},browser:{"unzip-response":!1},bugs:{url:"https://github.com/sindresorhus/got/issues"},bundleDependencies:!1,dependencies:{"create-error-class":"^3.0.0",duplexer3:"^0.1.4","get-stream":"^3.0.0","is-redirect":"^1.0.0","is-retry-allowed":"^1.0.0","is-stream":"^1.0.0","lowercase-keys":"^1.0.0","safe-buffer":"^5.0.1","timed-out":"^4.0.0","unzip-response":"^2.0.1","url-parse-lax":"^1.0.0"},deprecated:!1,description:"Simplified HTTP requests",devDependencies:{ava:"^0.17.0",coveralls:"^2.11.4","form-data":"^2.1.1","get-port":"^2.0.0","into-stream":"^3.0.0",nyc:"^10.0.0",pem:"^1.4.4",pify:"^2.3.0",tempfile:"^1.1.1",xo:"*"},engines:{node:">=4"},files:["index.js"],homepage:"https://github.com/sindresorhus/got#readme",keywords:["http","https","get","got","url","uri","request","util","utility","simple","curl","wget","fetch"],license:"MIT",maintainers:[{name:"Sindre Sorhus",email:"sindresorhus@gmail.com",url:"sindresorhus.com"},{name:"Vsevolod Strukchinsky",email:"floatdrop@gmail.com",url:"github.com/floatdrop"}],name:"got",repository:{type:"git",url:"git+https://github.com/sindresorhus/got.git"},scripts:{coveralls:"nyc report --reporter=text-lcov | coveralls",test:"xo && nyc ava"},version:"6.7.1",xo:{esnext:!0}}},function(e,t,r){"use strict";function n(e,t){function r(){for(var t=new Array(arguments.length),r=0;r<t.length;r++)t[r]=arguments[r];var n=e.apply(this,t),i=t[t.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach(function(e){n[e]=i[e]}),n}if(e&&t)return n(e)(t);if("function"!=typeof e)throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(t){r[t]=e[t]}),r}e.exports=n},function(e,t,r){"use strict";function n(e,t,r){a(e,{fs:t.xfs},function(e,n){!e&&n&&t.own?i(n,t.uid,t.gid,r):r(e)})}var i=r(50),o=r(51),s=r(18),a=r(63),u=r(3),c=r(8),f=r(64),l="win32"===f.platform(),d=function(){},h=function(e){return e},p=l?function(e){return e.replace(/\\/g,"/").replace(/[:?<>|]/g,"_")}:h,y=function(e,t,r,n,i,o){var s=i||["."];return function(i){if(!s.length)return i();var a=s.shift(),u=c.join(r,a);t(u,function(t,f){return t?i(t):f.isDirectory()?void e.readdir(u,function(e,t){if(e)return i(e);o&&t.sort();for(var u=0;u<t.length;u++)n(c.join(r,a,t[u]))||s.push(c.join(a,t[u]));i(null,a,f)}):i(null,a,f)})}},b=function(e,t){return function(r){r.name=r.name.split("/").slice(t).join("/");var n=r.linkname;return n&&("link"===r.type||c.isAbsolute(n))&&(r.linkname=n.split("/").slice(t).join("/")),e(r)}};t.pack=function(e,t){e||(e="."),t||(t={});var r=t.fs||u,n=t.ignore||t.filter||d,i=t.map||d,a=t.mapStream||h,f=y(r,t.dereference?r.stat:r.lstat,e,n,t.entries,t.sort),l=!1!==t.strict,m="number"==typeof t.umask?~t.umask:~_(),g="number"==typeof t.dmode?t.dmode:0,v="number"==typeof t.fmode?t.fmode:0,w=t.pack||o.pack(),S=t.finish||d;t.strip&&(i=b(i,t.strip)),t.readable&&(g|=parseInt(555,8),v|=parseInt(444,8)),t.writable&&(g|=parseInt(333,8),v|=parseInt(222,8));var E=function(t,n){r.readlink(c.join(e,t),function(e,t){if(e)return w.destroy(e);n.linkname=p(t),w.entry(n,k)})},x=function(n,o,u){if(n)return w.destroy(n);if(!o)return!1!==t.finalize&&w.finalize(),S(w);if(u.isSocket())return k();var f={name:p(o),mode:(u.mode|(u.isDirectory()?g:v))&m,mtime:u.mtime,size:u.size,type:"file",uid:u.uid,gid:u.gid};if(u.isDirectory())return f.size=0,f.type="directory",f=i(f)||f,w.entry(f,k);if(u.isSymbolicLink())return f.size=0,f.type="symlink",f=i(f)||f,E(o,f);if(f=i(f)||f,!u.isFile())return l?w.destroy(new Error("unsupported type for "+o)):k();var d=w.entry(f,k);if(d){var h=a(r.createReadStream(c.join(e,o)),f);h.on("error",function(e){d.destroy(e)}),s(h,d)}},k=function(e){if(e)return w.destroy(e);f(x)};return k(),w};var m=function(e){return e.length?e[e.length-1]:null},g=function(){return process.getuid?process.getuid():-1},_=function(){return process.umask?process.umask():0};t.extract=function(e,t){e||(e="."),t||(t={});var r=t.fs||u,i=t.ignore||t.filter||d,a=t.map||d,f=t.mapStream||h,y=!1!==t.chown&&!l&&0===g(),v=t.extract||o.extract(),w=[],S=new Date,E="number"==typeof t.umask?~t.umask:~_(),x="number"==typeof t.dmode?t.dmode:0,k="number"==typeof t.fmode?t.fmode:0,T=!1!==t.strict;t.strip&&(a=b(a,t.strip)),t.readable&&(x|=parseInt(555,8),k|=parseInt(444,8)),t.writable&&(x|=parseInt(333,8),k|=parseInt(222,8));var j=function(e,t){for(var n;(n=m(w))&&e.slice(0,n[0].length)!==n[0];)w.pop();if(!n)return t();r.utimes(n[0],S,n[1],t)},R=function(e,n,i){return!1===t.utimes?i():"directory"===n.type?r.utimes(e,S,n.mtime,i):"symlink"===n.type?j(e,i):void r.utimes(e,S,n.mtime,function(t){if(t)return i(t);j(e,i)})},O=function(e,t,n){var i="symlink"===t.type,o=i?r.lchmod:r.chmod,s=i?r.lchown:r.chown;if(!o)return n();var a=(t.mode|("directory"===t.type?x:k))&E;o(e,a,function(r){return r?n(r):y&&s?void s(e,t.uid,t.gid,n):n()})};return v.on("entry",function(o,u,d){o=a(o)||o,o.name=p(o.name);var h=c.join(e,c.join("/",o.name));if(i(h,o))return u.resume(),d();var b=function(e){if(e)return d(e);R(h,o,function(e){return e?d(e):l?d():void O(h,o,d)})},m=function(){if(l)return d();r.unlink(h,function(){r.symlink(o.linkname,h,b)})},g=function(){if(l)return d();r.unlink(h,function(){var n=c.resolve(e,o.linkname);r.link(n,h,function(e){if(e&&"EPERM"===e.code&&t.hardlinkAsFilesFallback)return u=r.createReadStream(n),_();b(e)})})},_=function(){var e=r.createWriteStream(h),t=f(u,o);e.on("error",function(e){t.destroy(e)}),s(t,e,function(t){if(t)return d(t);e.on("close",b)})};if("directory"===o.type)return w.push([h,o.mtime]),n(h,{fs:r,own:y,uid:o.uid,gid:o.gid},b);n(c.dirname(h),{fs:r,own:y,uid:o.uid,gid:o.gid},function(e){if(e)return d(e);switch(o.type){case"file":return _();case"link":return g();case"symlink":return m()}if(T)return d(new Error("unsupported type for "+h+" ("+o.type+")"));u.resume(),d()})}),t.finish&&v.on("finish",t.finish),v}},function(e,t,r){"use strict";function n(e,t,r,i){o.readdir(e,function(a,u){function c(n){if(!l)return n?i(l=n):0==--f?o.chown(e,t,r,i):void 0}if(a&&"ENOTDIR"!==a.code)return i(a);if(a||!u.length)return o.chown(e,t,r,i);var f=u.length,l=null;u.forEach(function(a){var u=s.resolve(e,a);o.lstat(u,function(e,o){if(e)return i(e);o.isSymbolicLink()?c():n(u,t,r,c)})})})}function i(e,t,r){var n;try{n=o.readdirSync(e)}catch(n){if(n&&"ENOTDIR"===n.code)return o.chownSync(e,t,r);throw n}return n.length?(n.forEach(function(n){var a=s.resolve(e,n);o.lstatSync(a).isSymbolicLink()||i(a,t,r)}),o.chownSync(e,t,r)):o.chownSync(e,t,r)}e.exports=n,n.sync=i;var o=r(3),s=r(8)},function(e,t,r){"use strict";t.extract=r(52),t.pack=r(60)},function(e,t,r){"use strict";var n=r(0),i=r(53),o=r(25),s=r(26),a=r(1).Writable,u=r(1).PassThrough,c=function(){},f=function(e){return(e&=511)&&512-e},l=function(e,t){var r=new h(e,t);return r.end(),r},d=function(e,t){return t.path&&(e.name=t.path),t.linkpath&&(e.linkname=t.linkpath),e.pax=t,e},h=function(e,t){this._parent=e,this.offset=t,u.call(this)};n.inherits(h,u),h.prototype.destroy=function(e){this._parent.destroy(e)};var p=function e(t){if(!(this instanceof e))return new e(t);a.call(this,t),this._offset=0,this._buffer=i(),this._missing=0,this._onparse=c,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 r=this,n=r._buffer,u=function(){r._continue()},p=function(e){if(r._locked=!1,e)return r.destroy(e);r._stream||u()},y=function(){r._stream=null;var e=f(r._header.size);e?r._parse(e,b):r._parse(512,w),r._locked||u()},b=function(){r._buffer.consume(f(r._header.size)),r._parse(512,w),u()},m=function(){var e=r._header.size;r._paxGlobal=s.decodePax(n.slice(0,e)),n.consume(e),y()},g=function(){var e=r._header.size;r._pax=s.decodePax(n.slice(0,e)),r._paxGlobal&&(r._pax=o(r._paxGlobal,r._pax)),n.consume(e),y()},_=function(){var e=r._header.size;this._gnuLongPath=s.decodeLongPath(n.slice(0,e)),n.consume(e),y()},v=function(){var e=r._header.size;this._gnuLongLinkPath=s.decodeLongPath(n.slice(0,e)),n.consume(e),y()},w=function e(){var t,i=r._offset;try{t=r._header=s.decode(n.slice(0,512))}catch(e){r.emit("error",e)}return n.consume(512),t?"gnu-long-path"===t.type?(r._parse(t.size,_),void u()):"gnu-long-link-path"===t.type?(r._parse(t.size,v),void u()):"pax-global-header"===t.type?(r._parse(t.size,m),void u()):"pax-header"===t.type?(r._parse(t.size,g),void u()):(r._gnuLongPath&&(t.name=r._gnuLongPath,r._gnuLongPath=null),r._gnuLongLinkPath&&(t.linkname=r._gnuLongLinkPath,r._gnuLongLinkPath=null),r._pax&&(r._header=t=d(t,r._pax),r._pax=null),r._locked=!0,t.size&&"directory"!==t.type?(r._stream=new h(r,i),r.emit("entry",t,r._stream,p),r._parse(t.size,y),void u()):(r._parse(512,e),void r.emit("entry",t,l(r,i),p))):(r._parse(512,e),void u())};this._parse(512,w)};n.inherits(p,a),p.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.emit("close"))},p.prototype._parse=function(e,t){this._destroyed||(this._offset+=e,this._missing=e,this._onparse=t)},p.prototype._continue=function(){if(!this._destroyed){var e=this._cb;this._cb=c,this._overflow?this._write(this._overflow,void 0,e):e()}},p.prototype._write=function(e,t,r){if(!this._destroyed){var n=this._stream,i=this._buffer,o=this._missing;if(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 s=null;e.length>o&&(s=e.slice(o),e=e.slice(0,o)),n?n.end(e):i.append(e),this._overflow=s,this._onparse()}},e.exports=p},function(e,t,r){"use strict";function n(e){if(!(this instanceof n))return new n(e);if(this._bufs=[],this.length=0,"function"==typeof e){this._callback=e;var t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",function(e){e.on("error",t)}),this.on("unpipe",function(e){e.removeListener("error",t)})}else this.append(e);i.call(this)}var i=r(54),o=r(0),s=r(5).Buffer;o.inherits(n,i),n.prototype._offset=function(e){var t,r=0,n=0;if(0===e)return[0,0];for(;n<this._bufs.length;n++){if(t=r+this._bufs[n].length,e<t||n==this._bufs.length-1)return[n,e-r];r=t}},n.prototype.append=function(e){var t=0;if(s.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(s.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(e){i.prototype.end.call(this,e),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,r,n){if(("number"!=typeof r||r<0)&&(r=0),("number"!=typeof n||n>this.length)&&(n=this.length),r>=this.length)return e||s.alloc(0);if(n<=0)return e||s.alloc(0);var i,o,a=!!e,u=this._offset(r),c=n-r,f=c,l=a&&t||0,d=u[1];if(0===r&&n==this.length){if(!a)return 1===this._bufs.length?this._bufs[0]:s.concat(this._bufs,this.length);for(o=0;o<this._bufs.length;o++)this._bufs[o].copy(e,l),l+=this._bufs[o].length;return e}if(f<=this._bufs[u[0]].length-d)return a?this._bufs[u[0]].copy(e,t,d,d+f):this._bufs[u[0]].slice(d,d+f);for(a||(e=s.allocUnsafe(c)),o=u[0];o<this._bufs.length;o++){if(i=this._bufs[o].length-d,!(f>i)){this._bufs[o].copy(e,l,d,d+f);break}this._bufs[o].copy(e,l,d),l+=i,f-=i,d&&(d=0)}return 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){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)}(),e.exports=n},function(e,t,r){"use strict";e.exports=r(1).Duplex},function(e,t,r){"use strict";var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,r){"use strict";"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,r){e.copy(t,r)}var o=r(5).Buffer,s=r(0);e.exports=function(){function e(){n(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 o.alloc(0);if(1===this.length)return this.head.data;for(var t=o.allocUnsafe(e>>>0),r=this.head,n=0;r;)i(r.data,t,n),n+=r.data.length,r=r.next;return t},e}(),s&&s.inspect&&s.inspect.custom&&(e.exports.prototype[s.inspect.custom]=function(){var e=s.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t,r){"use strict";e.exports=r(0).deprecate},function(e,t,r){"use strict";function n(e){if(!(this instanceof n))return new n(e);i.call(this,e)}e.exports=n;var i=r(24),o=r(7);o.inherits=r(2),o.inherits(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict";function n(e){switch(e&i.S_IFMT){case i.S_IFBLK:return"block-device";case i.S_IFCHR:return"character-device";case i.S_IFDIR:return"directory";case i.S_IFIFO:return"fifo";case i.S_IFLNK:return"symlink"}return"file"}var i=r(61),o=r(9),s=r(0),a=r(1).Readable,u=r(1).Writable,c=r(62).StringDecoder,f=r(26),l=parseInt("755",8),d=parseInt("644",8),h=new Buffer(1024);h.fill(0);var p=function(){},y=function(e,t){(t&=511)&&e.push(h.slice(0,512-t))},b=function(e){u.call(this),this.written=0,this._to=e,this._destroyed=!1};s.inherits(b,u),b.prototype._write=function(e,t,r){if(this.written+=e.length,this._to.push(e))return r();this._to._drain=r},b.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var m=function(){u.call(this),this.linkname="",this._decoder=new c("utf-8"),this._destroyed=!1};s.inherits(m,u),m.prototype._write=function(e,t,r){this.linkname+=this._decoder.write(e),r()},m.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var g=function(){u.call(this),this._destroyed=!1};s.inherits(g,u),g.prototype._write=function(e,t,r){r(new Error("No body allowed for this entry"))},g.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var _=function e(t){if(!(this instanceof e))return new e(t);a.call(this,t),this._drain=p,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};s.inherits(_,a),_.prototype.entry=function(e,t,r){if(this._stream)throw new Error("already piping an entry");if(!this._finalized&&!this._destroyed){"function"==typeof t&&(r=t,t=null),r||(r=p);var i=this;if(e.size&&"symlink"!==e.type||(e.size=0),e.type||(e.type=n(e.mode)),e.mode||(e.mode="directory"===e.type?l:d),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),"string"==typeof t&&(t=new Buffer(t)),Buffer.isBuffer(t))return e.size=t.length,this._encode(e),this.push(t),y(i,e.size),process.nextTick(r),new g;if("symlink"===e.type&&!e.linkname){var s=new m;return o(s,function(t){if(t)return i.destroy(),r(t);e.linkname=s.linkname,i._encode(e),r()}),s}if(this._encode(e),"file"!==e.type&&"contiguous-file"!==e.type)return process.nextTick(r),new g;var a=new b(this);return this._stream=a,o(a,function(t){return i._stream=null,t?(i.destroy(),r(t)):a.written!==e.size?(i.destroy(),r(new Error("size mismatch"))):(y(i,e.size),i._finalizing&&i.finalize(),void r())}),a}},_.prototype.finalize=function(){if(this._stream)return void(this._finalizing=!0);this._finalized||(this._finalized=!0,this.push(h),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=f.encode(e);if(t)return void this.push(t)}this._encodePax(e)},_.prototype._encodePax=function(e){var t=f.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(f.encode(r)),this.push(t),y(this,t.length),r.size=e.size,r.type=e.type,this.push(f.encode(r))},_.prototype._read=function(e){var t=this._drain;this._drain=p,t()},e.exports=_},function(e,t){e.exports=require("constants")},function(e,t){e.exports=require("string_decoder")},function(e,t,r){"use strict";function n(e,t,r,u){"function"==typeof t?(r=t,t={}):t&&"object"===(void 0===t?"undefined":i(t))||(t={mode:t});var c=t.mode,f=t.fs||s;void 0===c&&(c=a&~process.umask()),u||(u=null);var l=r||function(){};e=o.resolve(e),f.mkdir(e,c,function(r){if(!r)return u=u||e,l(null,u);switch(r.code){case"ENOENT":n(o.dirname(e),t,function(r,i){r?l(r,i):n(e,t,l,i)});break;default:f.stat(e,function(e,t){e||!t.isDirectory()?l(r,u):l(null,u)})}})}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=r(8),s=r(3),a=parseInt("0777",8);e.exports=n.mkdirp=n.mkdirP=n,n.sync=function e(t,r,n){r&&"object"===(void 0===r?"undefined":i(r))||(r={mode:r});var u=r.mode,c=r.fs||s;void 0===u&&(u=a&~process.umask()),n||(n=null),t=o.resolve(t);try{c.mkdirSync(t,u),n=n||t}catch(i){switch(i.code){case"ENOENT":n=e(o.dirname(t),r,n),e(t,r,n);break;default:var f;try{f=c.statSync(t)}catch(e){throw i}if(!f.isDirectory())throw i}}return n}},function(e,t){e.exports=require("os")},function(e,t,r){"use strict";var n=r(17),i=r(66),o=r(28),s=r(70),a=r(72),u=r(73),c=function(e){return a(e)?1:u(e)?2:0},f=function e(t){return t>=0||(t=3),i({newline:!1,maxBuffer:10},function(r,i){if(t<0)return i(new Error("Maximum recursion reached"));switch(c(r)){case 1:i(null,s(n.createGunzip(),e(t-1)));break;case 2:i(null,s(n.createInflate(),e(t-1)));break;default:i(null,o())}})};e.exports=f},function(e,t,r){"use strict";var n=r(27),i=r(28),o=r(69),s=function(e){return!Buffer.isBuffer(e)&&"string"!=typeof e},a=function e(t,r){if("number"==typeof t&&(t={maxBuffer:t}),"function"==typeof t)return e(null,t);t||(t={});var a="number"==typeof t.maxBuffer?t.maxBuffer:65535,u=t.strict,c=!1!==t.newline,f=[],l=0,d=n.obj(),h=i.obj({highWaterMark:1},function(e,t,r){if(s(e))return y(e,null,r);if(Buffer.isBuffer(e)||(e=o(e)),c){var n=Array.prototype.indexOf.call(e,10);if(n>0&&13===e[n-1]&&n--,n>-1)return f.push(e.slice(0,n)),y(Buffer.concat(f),e.slice(n),r)}return f.push(e),(l+=e.length)<a?r():u?r(new Error("No newline found")):void y(Buffer.concat(f),null,r)}),p=function(){if(u)return d.destroy(new Error("No newline found"));d.cork(),y(Buffer.concat(f),null,function(e){if(e)return d.destroy(e);d.uncork()})},y=function(e,t,n){d.removeListener("preend",p),r(e,function(r,i){if(r)return n(r);d.setWritable(i),d.setReadable(i),e&&i.write(e),t&&i.write(t),t=f=h=null,n()})};return d.on("preend",p),d.setWritable(h),d};e.exports=a},function(e,t,r){"use strict";function n(e){var t=e._readableState;return t?t.objectMode?e.read():e.read(i(t)):null}function i(e){return e.buffer.length?e.buffer.head?e.buffer.head.data.length:e.buffer[0].length:e.length}e.exports=n},function(e,t,r){"use strict";e.exports=r(1).Transform},function(e,t,r){"use strict";function n(e){return"ArrayBuffer"===a.call(e).slice(8,-1)}function i(e,t,r){t>>>=0;var n=e.byteLength-t;if(n<0)throw new RangeError("'offset' is out of bounds");if(void 0===r)r=n;else if((r>>>=0)>n)throw new RangeError("'length' is out of bounds");return u?Buffer.from(e.slice(t,t+r)):new Buffer(new Uint8Array(e.slice(t,t+r)))}function o(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return u?Buffer.from(e,t):new Buffer(e,t)}function s(e,t,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return n(e)?i(e,t,r):"string"==typeof e?o(e,t):u?Buffer.from(e):new Buffer(e)}var a=Object.prototype.toString,u="function"==typeof Buffer.alloc&&"function"==typeof Buffer.allocUnsafe&&"function"==typeof Buffer.from;e.exports=s},function(e,t,r){"use strict";var n=r(71),i=r(2),o=r(27),s=function(e){return e.length?Array.isArray(e[0])?e[0]:Array.prototype.slice.call(e):[]},a=function(e){var t=function t(){var r=s(arguments);if(!(this instanceof t))return new t(r);o.call(this,null,null,e),r.length&&this.setPipeline(r)};return i(t,o),t.prototype.setPipeline=function(){var e=s(arguments),t=this,r=!1,i=e[0],o=e[e.length-1];o=o.readable?o:null,i=i.writable?i:null;var a=function(){e[0].emit("error",new Error("stream was destroyed"))};if(this.on("close",a),this.on("prefinish",function(){r||t.cork()}),n(e,function(e){if(t.removeListener("close",a),e)return t.destroy(e);r=!0,t.uncork()}),this.destroyed)return a();this.setWritable(i),this.setReadable(o)},t};e.exports=a({destroy:!1}),e.exports.obj=a({destroy:!1,objectMode:!0,highWaterMark:16}),e.exports.ctor=a},function(e,t,r){"use strict";var n=r(14),i=r(9),o=r(3),s=function(){},a=/^v?\.0/.test(process.version),u=function(e){return"function"==typeof e},c=function(e){return!!a&&(!!o&&((e instanceof(o.ReadStream||s)||e instanceof(o.WriteStream||s))&&u(e.close)))},f=function(e){return e.setHeader&&u(e.abort)},l=function(e,t,r,o){o=n(o);var a=!1;e.on("close",function(){a=!0}),i(e,{readable:t,writable:r},function(e){if(e)return o(e);a=!0,o()});var l=!1;return function(t){if(!a&&!l)return l=!0,c(e)?e.close(s):f(e)?e.abort():u(e.destroy)?e.destroy():void o(t||new Error("stream was destroyed"))}},d=function(e){e()},h=function(e,t){return e.pipe(t)},p=function(){var e=Array.prototype.slice.call(arguments),t=u(e[e.length-1]||s)&&e.pop()||s;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r,n=e.map(function(i,o){var s=o<e.length-1;return l(i,s,o>0,function(e){r||(r=e),e&&n.forEach(d),s||(n.forEach(d),t(r))})});e.reduce(h)};e.exports=p},function(e,t,r){"use strict";e.exports=function(e){return!(!e||e.length<3)&&(31===e[0]&&139===e[1]&&8===e[2])}},function(e,t,r){"use strict";e.exports=function(e){return!(!e||e.length<2)&&(120===e[0]&&(1===e[1]||156===e[1]||218===e[1]))}},function(e,t,r){"use strict";var n=r(16),i=r(13),o=r(75),s=function(e){return e&&e.__esModule?e:{default:e}}(o);e.exports=function(e){var t=new n.Agent(e),r=new i.Agent(e);return function(e){return(0,s.default)(e,"https")?r:t}}},function(e,t,r){"use strict";function n(e,t,r){return e===e&&(void 0!==r&&(e=e<=r?e:r),void 0!==t&&(e=e>=t?e:t)),e}function i(e){if("string"==typeof e)return e;if(a(e))return C?C.call(e):"";var t=e+"";return"0"==t&&1/e==-p?"-0":t}function o(e){var t=void 0===e?"undefined":h(e);return!!e&&("object"==t||"function"==t)}function s(e){return!!e&&"object"==(void 0===e?"undefined":h(e))}function a(e){return"symbol"==(void 0===e?"undefined":h(e))||s(e)&&j.call(e)==m}function u(e){if(!e)return 0===e?e:0;if((e=f(e))===p||e===-p){return(e<0?-1:1)*y}return e===e?e:0}function c(e){var t=u(e),r=t%1;return t===t?r?t-r:t:0}function f(e){if("number"==typeof e)return e;if(a(e))return b;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(g,"");var r=v.test(e);return r||w.test(e)?S(e.slice(2),r?2:8):_.test(e)?b:+e}function l(e){return null==e?"":i(e)}function d(e,t,r){return e=l(e),r=n(c(r),0,e.length),t=i(t),e.slice(r,r+t.length)==t}var h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=1/0,y=1.7976931348623157e308,b=NaN,m="[object Symbol]",g=/^\s+|\s+$/g,_=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,w=/^0o[0-7]+$/i,S=parseInt,E="object"==("undefined"==typeof global?"undefined":h(global))&&global&&global.Object===Object&&global,x="object"==("undefined"==typeof self?"undefined":h(self))&&self&&self.Object===Object&&self,k=E||x||Function("return this")(),T=Object.prototype,j=T.toString,R=k.Symbol,O=R?R.prototype:void 0,C=O?O.toString:void 0;e.exports=d},function(e,t,r){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,a,u=n(e),c=1;c<arguments.length;c++){r=Object(arguments[c]);for(var f in r)o.call(r,f)&&(u[f]=r[f]);if(i){a=i(r);for(var l=0;l<a.length;l++)s.call(r,a[l])&&(u[a[l]]=r[a[l]])}}return u}},function(e,t,r){"use strict";function n(e){if("function"!=typeof e)throw new Error("fn parameter must be a function");return function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new Promise(function(t,n){function i(e){if(e)n(e);else{for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var s=i.length<=1?i[0]:i;t(s)}}e.apply(void 0,[].concat(r,[i]))})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,r){"use strict";e.exports={PROJECT:"CN-TU/nta-meta-analysis-specification",API_URL:"https://api.github.com/repos/",needed:new Set(["feature_aliases.json","iana_ies.csv","own_ies.csv","schema_v2.json","specification.txt"])}},function(e,t,r){"use strict";var n=r(11),i=n.Menu,o=r(11),s=o.app,a=[{label:"File",submenu:[{label:"New",accelerator:"CommandOrControl+N",click:function(e,t){t&&t.webContents.send("new")}},{label:"Open",accelerator:"CommandOrControl+O",click:function(e,t){t&&t.webContents.send("open")}},{label:"Save",accelerator:"CommandOrControl+S",click:function(e,t){t&&t.webContents.send("save")}},{label:"Save as..",accelerator:"CommandOrControl+Shift+S",click:function(e,t){t&&t.webContents.send("save-as")}},{type:"separator"},{label:"Quit",accelerator:"CommandOrControl+Q",click:function(e,t){s.quit()}}]},{label:"Edit",submenu:[{role:"undo"},{role:"redo"},{type:"separator"},{role:"cut"},{role:"copy"},{role:"paste"},{role:"pasteandmatchstyle"},{role:"delete"},{role:"selectall"}]},{label:"View",submenu:[{label:"Toggle Developer Tools",accelerator:"darwin"===process.platform?"Alt+Command+I":"Ctrl+Shift+I",click:function(e,t){t&&t.webContents.toggleDevTools()}},{type:"separator"},{role:"togglefullscreen"}]},{role:"window",submenu:[{role:"minimize"},{role:"close"}]}];if("darwin"===process.platform){var u=s.getName();a.unshift({label:u,submenu:[{role:"about"},{type:"separator"},{role:"services",submenu:[]},{type:"separator"},{role:"hide"},{role:"hideothers"},{role:"unhide"},{type:"separator"},{role:"quit"}]}),a[1].submenu.push({type:"separator"},{label:"Speech",submenu:[{role:"startspeaking"},{role:"stopspeaking"}]}),a[3].submenu=[{label:"Close",accelerator:"CmdOrCtrl+W",role:"close"},{label:"Minimize",accelerator:"CmdOrCtrl+M",role:"minimize"},{label:"Zoom",role:"zoom"},{type:"separator"},{label:"Bring All to Front",role:"front"}]}var c=i.buildFromTemplate(a);i.setApplicationMenu(c)}]);