isomorphic-git
Version:
A pure JavaScript implementation of git for node and browsers!
8 lines • 325 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.git=e():t.git=e()}(window,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=171)}([function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}var n=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(t){return n.exec(t).slice(1)};function o(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}e.resolve=function(){for(var e="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var a=i>=0?arguments[i]:t.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,n="/"===a.charAt(0))}return e=r(o(e.split("/"),function(t){return!!t}),!n).join("/"),(n?"/":"")+e||"."},e.normalize=function(t){var n=e.isAbsolute(t),i="/"===a(t,-1);return(t=r(o(t.split("/"),function(t){return!!t}),!n).join("/"))||n||(t="."),t&&i&&(t+="/"),(n?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(o(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;r>=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var i=n(t.split("/")),o=n(r.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u<a;u++)if(i[u]!==o[u]){s=u;break}var f=[];for(u=s;u<i.length;u++)f.push("..");return(f=f.concat(o.slice(s))).join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){var e=i(t),r=e[0],n=e[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},e.basename=function(t,e){var r=i(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){return i(t)[3]};var a="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r(5))},function(t,e,r){"use strict";r.d(e,"a",function(){return c});var n=r(0),i=r.n(n),o=r(9),a=r.n(o),s=r(90);function u(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,r){return function n(i,o){try{var a=e[i](o),s=a.value}catch(t){return void r(t)}if(!a.done)return Promise.resolve(s).then(function(t){n("next",t)},function(t){n("throw",t)});t(s)}("next")})}}const f=new Map;class c{constructor(t){if(void 0!==t._readFile)return t;this._readFile=a()(t.readFile.bind(t)),this._writeFile=a()(t.writeFile.bind(t)),this._mkdir=a()(t.mkdir.bind(t)),this._rmdir=a()(t.rmdir.bind(t)),this._unlink=a()(t.unlink.bind(t)),this._stat=a()(t.stat.bind(t)),this._lstat=a()(t.lstat.bind(t)),this._readdir=a()(t.readdir.bind(t))}exists(t,e={}){var r=this;return u(function*(){try{return yield r._stat(t),!0}catch(t){if("ENOENT"===t.code||"ENOTDIR"===t.code)return!1;throw console.log('Unhandled error in "FileSystem.exists()" function',t),t}})()}read(t,e={}){var r=this;return u(function*(){try{return yield r._readFile(t,e)}catch(t){return null}})()}write(t,e,r={}){var n=this;return u(function*(){try{return void(yield n._writeFile(t,e,r))}catch(o){yield n.mkdir(i.a.dirname(t)),yield n._writeFile(t,e,r)}})()}mkdir(t){var e=this;return u(function*(){try{return void(yield e._mkdir(t))}catch(r){if(null===r)return;if("EEXIST"===r.code)return;if("ENOENT"===r.code){let n=i.a.dirname(t);if("."===n||"/"===n||n===t)throw r;yield e.mkdir(n),yield e._mkdir(t)}}})()}rm(t){var e=this;return u(function*(){try{yield e._unlink(t)}catch(t){if("ENOENT"!==t.code)throw t}})()}readdir(t){var e=this;return u(function*(){try{return yield e._readdir(t)}catch(t){return[]}})()}readdirDeep(t){var e=this;return u(function*(){const r=yield e._readdir(t);var n;return(yield Promise.all(r.map((n=u(function*(r){const n=t+"/"+r;return(yield e._stat(n)).isDirectory()?e.readdirDeep(n):n}),function(t){return n.apply(this,arguments)})))).reduce(function(t,e){return t.concat(e)},[])})()}lock(t,e=3){var r=this;return u(function*(){if(f.has(t))return clearTimeout(f.get(t)),void f.delete(t);if(0===e)throw new Error(`Unable to acquire lockfile '${t}'. Exhausted tries.`);try{yield r._mkdir(`${t}.lock`)}catch(n){"EEXIST"===n.code&&(yield Object(s.a)(100),yield r.lock(t,e-1))}})()}unlock(t,e=50){var r=this;return u(function*(){if(f.has(t))throw new Error("Cannot double-release lockfile");f.set(t,setTimeout(u(function*(){f.delete(t),yield r._rmdir(`${t}.lock`)}),e))})()}}},function(t,e,r){"use strict";(function(t){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
var n=r(162),i=r(161),o=r(41);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}return f(this,t,e,r)}function f(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=h(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(e,r),i=(t=s(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(u.isBuffer(e)){var r=0|d(e.length);return 0===(t=s(t,r)).length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?s(t,0):h(t,e);if("Buffer"===e.type&&o(e.data))return h(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,e){if(c(e),t=s(t,e<0?0:0|d(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function h(t,e){var r=e.length<0?0:0|d(e.length);t=s(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function d(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(t).length;default:if(n)return F(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,i){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function f(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=r;o<s;o++)if(f(t,o)===f(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var l=!0,h=0;h<u;h++)if(f(t,o+h)!==f(e,h)){l=!1;break}if(l)return o}return-1}function v(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function b(t,e,r,n){return N(F(e,t.length-r),t,r,n)}function _(t,e,r,n){return N(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function w(t,e,r,n){return _(t,e,r,n)}function E(t,e,r,n){return N(z(e),t,r,n)}function x(t,e,r,n){return N(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function k(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function S(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,u,f=t[i],c=null,l=f>239?4:f>223?3:f>191?2:1;if(i+l<=r)switch(l){case 1:f<128&&(c=f);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&f)<<6|63&o)>127&&(c=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&f)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&f)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,l=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=l}return function(t){var e=t.length;if(e<=j)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=j));return r}(n)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return f(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return function(t,e,r,n){return c(e),e<=0?s(t,e):void 0!==r?"string"==typeof n?s(t,e).fill(r,n):s(t,e).fill(r):s(t,e)}(null,t,e,r)},u.allocUnsafe=function(t){return l(null,t)},u.allocUnsafeSlow=function(t){return l(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?S(this,0,t):function(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return C(this,e,r);case"utf8":case"utf-8":return S(this,e,r);case"ascii":return A(this,e,r);case"latin1":case"binary":return O(this,e,r);case"base64":return k(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,n,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,a=r-e,s=Math.min(o,a),f=this.slice(n,i),c=t.slice(e,r),l=0;l<s;++l)if(f[l]!==c[l]){o=f[l],a=c[l];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return b(this,t,e,r);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return w(this,t,e,r);case"base64":return E(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function A(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function O(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function C(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=D(t[o]);return i}function B(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function R(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function T(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function I(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function P(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function U(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(t,e,r,n,o){return o||U(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function $(t,e,r,n,o){return o||U(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||R(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||R(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||R(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||R(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||R(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||R(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||R(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||R(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||R(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||R(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||R(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||R(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||R(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||T(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||T(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):P(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);T(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);T(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):P(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return M(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return M(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return $(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return $(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},u.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=u.isBuffer(t)?t:F(new u(t,n).toString()),s=a.length;for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function D(t){return t<16?"0"+t.toString(16):t.toString(16)}function F(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function z(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(L,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function N(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(6))},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n,i,o="undefined"!=typeof performance&&performance,a=o&&o.now?function(){return o.now()}:function(){return Date.now()};function s(t){if(!t)throw new Error("name must be non-empty")}if(o&&o.mark)n=function(t){s(t),o.mark("start "+t)},i=function(t){s(t),o.mark("end "+t),o.measure(t,"start "+t,"end "+t);var e=o.getEntriesByName(t);return e[e.length-1]},function(){return o.getEntriesByType("measure")},function(){o.clearMarks(),o.clearMeasures()};else{var u={},f=[];n=function(t){s(t);var e=a();u["$"+t]=e},i=function(t){s(t);var e=a(),r=u["$"+t];if(!r)throw new Error("no known mark: "+t);var n={startTime:r,name:t,duration:e-r,entryType:"measure"};return function(t,e){for(var r,n=0,i=t.length;n<i;)t[r=n+i>>>1].startTime<e.startTime?n=r+1:i=r;t.splice(n,0,e)}(f,n),n},function(){return f},function(){f=[]}}},function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u,f=[],c=!1,l=-1;function h(){c&&u&&(c=!1,u.length?f=u.concat(f):l=-1,f.length&&d())}function d(){if(!c){var t=s(h);c=!0;for(var e=f.length;e;){for(u=f,f=[];++l<e;)u&&u[l].run();l=-1,e=f.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];f.push(new p(t,e)),1!==f.length||c||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";r.d(e,"a",function(){return c});var n=r(0),i=r.n(n),o=r(1),a=r(77),s=r(33);function u(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,r){return function n(i,o){try{var a=e[i](o),s=a.value}catch(t){return void r(t)}if(!a.done)return Promise.resolve(s).then(function(t){n("next",t)},function(t){n("throw",t)});t(s)}("next")})}}const f=t=>[`${t}`,`refs/${t}`,`refs/tags/${t}`,`refs/heads/${t}`,`refs/remotes/${t}`,`refs/remotes/${t}/HEAD`];class c{static updateRemoteRefs({fs:t,gitdir:e,remote:r,refs:n,symrefs:f,tags:c,refspecs:l}){return u(function*(){const u=new o.a(t);for(let t of n.values())if(!t.match(/[0-9a-f]{40}/))throw new Error(`Unexpected ref contents: '${t}'`);const h=yield s.a.get({fs:u,gitdir:e});if(!l&&0===(l=yield h.getall(`remote.${r}.fetch`)).length)throw new Error(`Could not find a fetch refspec fot remote '${r}'.\nMake sure the config file has an entry like the following:\n[remote "${r}"]\nfetch = +refs/heads/*:refs/remotes/origin/*`);const d=a.b.from(l);let p=new Map;if(c)for(const t of n.keys())if(t.startsWith("refs/tags")&&!t.endsWith("^{}")){const r=i.a.join(e,t);if(!(yield u.exists(r))){const e=n.get(t+"^{}")||n.get(t);p.set(t,e)}}let g=d.translate([...n.keys()]);for(let[t,e]of g){let r=n.get(t);p.set(e,r)}let m=d.translate([...f.keys()]);for(let[t,e]of m){let r=f.get(t),n=d.translateOne(r);n&&p.set(e,`ref: ${n}`)}for(let[t,r]of p)yield u.write(i.a.join(e,t),(r=r,r.trim()+"\n"),"utf8");var y})()}static writeRef({fs:t,gitdir:e,ref:r,value:n}){return u(function*(){const a=new o.a(t);if(!n.match(/[0-9a-f]{40}/))throw new Error(`Unexpected ref contents: '${n}'`);yield a.write(i.a.join(e,r),function(t){return t.trim()+"\n"}(n),"utf8")})()}static resolve({fs:t,gitdir:e,ref:r,depth:n}){return u(function*(){const i=new o.a(t);if(void 0!==n&&-1===--n)return r;let a;if(r.startsWith("ref: "))return r=r.slice("ref: ".length),c.resolve({fs:i,gitdir:e,ref:r,depth:n});if(40===r.length&&/[0-9a-f]{40}/.test(r))return r;let s=yield c.packedRefs({fs:i,gitdir:e});const u=f(r);for(let t of u)if(a=(yield i.read(`${e}/${t}`,{encoding:"utf8"}))||s.get(t))return c.resolve({fs:i,gitdir:e,ref:a.trim(),depth:n});throw new Error(`Could not resolve reference ${r}`)})()}static expand({fs:t,gitdir:e,ref:r}){return u(function*(){const n=new o.a(t);if(40===r.length&&/[0-9a-f]{40}/.test(r))return r;let i=yield c.packedRefs({fs:n,gitdir:e});const a=f(r);for(let t of a){if(yield n.exists(`${e}/${t}`))return t;if(i.has(t))return t}throw new Error(`Could not expand ref ${r}`)})()}static resolveAgainstMap({ref:t,depth:e,map:r}){if(void 0!==e&&-1===--e)return t;if(t.startsWith("ref: "))return t=t.slice("ref: ".length),c.resolveAgainstMap({ref:t,depth:e,map:r});if(40===t.length&&/[0-9a-f]{40}/.test(t))return t;const n=f(t);for(let t of n){let n=r.get(t);if(n)return c.resolveAgainstMap({ref:n.trim(),depth:e,map:r})}throw new Error(`Could not resolve reference ${t}`)}static packedRefs({fs:t,gitdir:e}){return u(function*(){const r=new Map,n=yield new o.a(t).read(`${e}/packed-refs`,{encoding:"utf8"});if(!n)return r;const i=n.trim().split("\n").filter(function(t){return!/^\s*#/.test(t)});let a=null;for(let t of i){const e=t.indexOf(" ");if(t.startsWith("^")){const n=t.slice(1,e);r.set(a+"^{}",n)}else{const n=t.slice(0,e);a=t.slice(e+1),r.set(a,n)}}return r})()}static listRefs({fs:t,gitdir:e,filepath:r}){return u(function*(){const n=new o.a(t);let i=c.packedRefs({fs:n,gitdir:e}),a=null;try{a=(a=yield n.readdirDeep(`${e}/${r}`)).map(function(t){return t.replace(`${e}/${r}/`,"")})}catch(t){a=[]}for(let t of(yield i).keys())t.startsWith(r)&&(t=t.replace(r+"/",""),a.includes(t)||a.push(t));return a})()}static listBranches({fs:t,gitdir:e,remote:r}){return u(function*(){const n=new o.a(t);return r?c.listRefs({fs:n,gitdir:e,filepath:`refs/remotes/${r}`}):c.listRefs({fs:n,gitdir:e,filepath:"refs/heads"})})()}static listTags({fs:t,gitdir:e}){return u(function*(){const r=new o.a(t);let n=yield c.listRefs({fs:r,gitdir:e,filepath:"refs/tags"});return n=n.filter(function(t){return!t.endsWith("^{}")})})()}}},function(t,e,r){"use strict";r.d(e,"a",function(){return i});var n=r(79);const i=r.n(n)()("isomorphic-git");i.log=console.log.bind(console)},function(t,e,r){"use strict";const n=(t,e)=>(function(){const r=e.promiseModule,n=new Array(arguments.length);for(let t=0;t<arguments.length;t++)n[t]=arguments[t];return new r((r,i)=>{e.errorFirst?n.push(function(t,n){if(e.multiArgs){const e=new Array(arguments.length-1);for(let t=1;t<arguments.length;t++)e[t-1]=arguments[t];t?(e.unshift(t),i(e)):r(e)}else t?i(t):r(n)}):n.push(function(t){if(e.multiArgs){const t=new Array(arguments.length-1);for(let e=0;e<arguments.length;e++)t[e]=arguments[e];r(t)}else r(t)}),t.apply(this,n)})});t.exports=((t,e)=>{e=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);const r=t=>{const r=e=>"string"==typeof e?t===e:e.test(t);return e.include?e.include.some(r):!e.exclude.some(r)};let i;i="function"==typeof t?function(){return e.excludeMain?t.apply(this,arguments):n(t,e).apply(this,arguments)}:Object.create(Object.getPrototypeOf(t));for(const o in t){const a=t[o];i[o]="function"==typeof a&&r(o)?n(a,e):a}return i})},function(t,e,r){var n=r(2),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){"use strict";(function(t){r.d(e,"a",function(){return p});var n=r(22),i=r.n(n),o=r(0),a=r.n(o),s=r(12),u=r.n(s),f=r(1),c=r(46),l=r(35);function h(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,r){return function n(i,o){try{var a=e[i](o),s=a.value}catch(t){return void r(t)}if(!a.done)return Promise.resolve(s).then(function(t){n("next",t)},function(t){n("throw",t)});t(s)}("next")})}}const d=new Map;class p{static read({fs:e,gitdir:r,oid:n,format:o="content"}){return h(function*(){const s=new f.a(e);let u=yield s.read(`${r}/objects/${n.slice(0,2)}/${n.slice(2)}`),h=`./objects/${n.slice(0,2)}/${n.slice(2)}`;if(!u){const t=function(t){return p.read({fs:e,gitdir:r,oid:t})};let i=yield s.readdir(a.a.join(r,"/objects/pack"));i=i.filter(function(t){return t.endsWith(".pack")});for(let e of i){let i=d.get(e);if(!i){const n=e.replace(/pack$/,"idx");if(yield s.exists(`${r}/objects/pack/${n}`)){const e=yield s.read(`${r}/objects/pack/${n}`);i=yield c.a.fromIdx({idx:e,getExternalRefDelta:t})}else{const o=yield s.read(`${r}/objects/pack/${e}`);i=yield c.a.fromPack({pack:o,getExternalRefDelta:t}),yield s.write(`${r}/objects/pack/${n}`,i.toBuffer())}d.set(e,i)}if(i.hashes.includes(n)){if(!i.pack){const t=yield s.read(`${r}/objects/pack/${e}`);yield i.load({pack:t})}let o=yield i.read({oid:n,getExternalRefDelta:t});return o.source=`./objects/pack/${e}`,o}}}if(!u){let t=yield s.read(`${r}/shallow`,{encoding:"utf8"});if(null!==t&&t.includes(n))throw new Error(`Failed to read git object with oid ${n} because it is a shallow commit`)}if(!u)throw new Error(`Failed to read git object with oid ${n}`);if("deflated"===o)return{format:"deflated",object:u,source:h};let g=t.from(i.a.inflate(u));if("wrapped"===o)return{format:"wrapped",object:g,source:h};let{type:m,object:y}=l.a.unwrap({oid:n,buffer:g});return"content"===o?{type:m,format:"content",object:y,source:h}:void 0})()}static hash({gitdir:e,type:r,object:n}){return h(function*(){let e=t.concat([t.from(r+" "),t.from(n.byteLength.toString()),t.from([0]),t.from(n)]);return u()(e)})()}static write({fs:e,gitdir:r,type:n,object:o}){return h(function*(){const a=new f.a(e);let{buffer:s,oid:u}=l.a.wrap({type:n,object:o}),c=t.from(i.a.deflate(s)),h=`${r}/objects/${u.slice(0,2)}/${u.slice(2)}`;return(yield a.exists(h))||(yield a.write(h,c)),u})()}}}).call(this,r(2).Buffer)},function(t,e,r){var n=r(42),i=r(2).Buffer,o=r(148);t.exports=function(t,e,r){return t="string"==typeof t?t:i.isBuffer(t)?t:o(t),n(e||"sha1").update(t,i.isBuffer(t)?null:"utf8").digest(r||"hex")}},function(t,e,r){var n=r(25),i=r(142),o=t.exports=function(t,e){if(!(this instanceof o))return new o(t,e);this._pos=0,this._noAssert=e,void 0===this._noAssert&&(this._noAssert=!0),this.buffer=t,this.length=t.length},a=o.BufferCursorOverflow=function(t,e,r){this.kind="BufferCursorOverflow",this.length=t,this.position=e,this.size=r,i.call(this,"BufferCursorOverflow: length %d, position %d, size %d",t,e,r)};n.inherits(a,i),o.prototype._move=function(t){this._checkWrite(t),this._pos+=t},o.prototype._checkWrite=function(t){var e=!1,r=this.length,n=this._pos;if(t>r&&(e=!0),r-n<t&&(e=!0),e)throw new a(r,n,t)},o.prototype.seek=function(t){if(t<0)throw new i(new RangeError("Cannot seek before start of buffer"),"Negative seek values not allowed: %d",t);if(t>this.length)throw new i(new RangeError("Trying to seek beyond buffer"),"Requested %d position is beyond length %d",t,this.length);return this._pos=t,this},o.prototype.eof=function(){return this._pos==this.length},o.prototype.toByteArray=function(t){var e,r,n=[];for(t||(t="readUInt8",r=1),t.indexOf("16")>0?r=2:t.indexOf("32")>0&&(r=4),this.length/r,e=0;e<this.buffer.length;e+=r)n.push(this.buffer[t](e));return n},o.prototype.tell=function(){return this._pos},o.prototype.slice=function(t){var e,r;return e=void 0===t?this.length:this._pos+t,r=new o(this.buffer.slice(this._pos,e)),this.seek(e),r},o.prototype.toString=function(t,e){var r,n;return r=void 0===e?this.length:this._pos+e,t||(t="utf8"),n=this.buffer.toString(t,this._pos,r),this.seek(r),n},o.prototype.write=function(t,e,r){var n;return n=this.buffer.write(t,this._pos,e,r),this._move(n),this},o.prototype.fill=function(t,e){var r;return r=void 0===e?this.length:this._pos+e,this._checkWrite(r-this._pos),this.buffer.fill(t,this._pos,r),this.seek(r),this},o.prototype.copy=function(t,e,r){var n=t instanceof o;isNaN(r)&&(r=t.length),isNaN(e)&&(e=n?t._pos:0);var i=r-e;return this._checkWrite(i),(n?t.buffer:t).copy(this.buffer,this._pos,e,r),this._move(i),this},o.prototype.readUInt8=function(){var t=this.buffer.readUInt8(this._pos,this._noAssert);return this._move(1),t},o.prototype.readInt8=function(){var t=this.buffer.readInt8(this._pos,this._noAssert);return this._move(1),t},o.prototype.readInt16BE=function(){var t=this.buffer.readInt16BE(this._pos,this._noAssert);return this._move(2),t},o.prototype.readInt16LE=function(){var t=this.buffer.readInt16LE(this._pos,this._noAssert);return this._move(2),t},o.prototype.readUInt16BE=function(){var t=this.buffer.readUInt16BE(this._pos,this._noAssert);return this._move(2),t},o.prototype.readUInt16LE=function(){var t=this.buffer.readUInt16LE(this._pos,this._noAssert);return this._move(2),t},o.prototype.readUInt32LE=function(){var t=this.buffer.readUInt32LE(this._pos,this._noAssert);return this._move(4),t},o.prototype.readUInt32BE=function(){var t=this.buffer.readUInt32BE(this._pos,this._noAssert);return this._move(4),t},o.prototype.readInt32LE=function(){var t=this.buffer.readInt32LE(this._pos,this._noAssert);return this._move(4),t},o.prototype.readInt32BE=function(){var t=this.buffer.readInt32BE(this._pos,this._noAssert);return this._move(4),t},o.prototype.readFloatBE=function(){var t=this.buffer.readFloatBE(this._pos,this._noAssert);return this._move(4),t},o.prototype.readFloatLE=function(){var t=this.buffer.readFloatLE(this._pos,this._noAssert);return this._move(4),t},o.prototype.readDoubleBE=function(){var t=this.buffer.readDoubleBE(this._pos,this._noAssert);return this._move(8),t},o.prototype.readDoubleLE=function(){var t=this.buffer.readDoubleLE(this._pos,this._noAssert);return this._move(8),t},o.prototype.writeUInt8=function(t){return this._checkWrite(1),this.buffer.writeUInt8(t,this._pos,this._noAssert),this._move(1),this},o.prototype.writeInt8=function(t){return this._checkWrite(1),this.buffer.writeInt8(t,this._pos,this._noAssert),this._move(1),this},o.prototype.writeUInt16BE=function(t){return this._checkWrite(2),this.buffer.writeUInt16BE(t,this._pos,this._noAssert),this._move(2),this},o.prototype.writeUInt16LE=function(t){return this._checkWrite(2),this.buffer.writeUInt16LE(t,this._pos,this._noAssert),this._move(2),this},o.prototype.writeInt16BE=function(t){return this._checkWrite(2),this.buffer.writeInt16BE(t,this._pos,this._noAssert),this._move(2),this},o.prototype.writeInt16LE=function(t){return this._checkWrite(2),this.buffer.writeInt16LE(t,this._pos,this._noAssert),this._move(2),this},o.prototype.writeUInt32BE=function(t){return this._checkWrite(4),this.buffer.writeUInt32BE(t,this._pos,this._noAssert),this._move(4),this},o.prototype.writeUInt32LE=function(t){return this._checkWrite(4),this.buffer.writeUInt32LE(t,this._pos,this._noAssert),this._move(4),this},o.prototype.writeInt32BE=function(t){return this._checkWrite(4),this.buffer.writeInt32BE(t,this._pos,this._noAssert),this._move(4),this},o.prototype.writeInt32LE=function(t){return this._checkWrite(4),this.buffer.writeInt32LE(t,this._pos,this._noAssert),this._move(4),this},o.prototype.writeFloatBE=function(t){return this._checkWrite(4),this.buffer.writeFloatBE(t,this._pos,this._noAssert),this._move(4),this},o.prototype.writeFloatLE=function(t){return this._checkWrite(4),this.buffer.writeFloatLE(t,this._pos,this._noAssert),this._move(4),this},o.prototype.writeDoubleBE=function(t){return this._checkWrite(8),this.buffer.writeDoubleBE(t,this._pos,this._noAssert),this._move(8),this},o.prototype.writeDoubleLE=function(t){return this._checkWrite(8),this.buffer.writeDoubleLE(t,this._pos,this._noAssert),this._move(8),this}},function(t,e,r){(function(t){function r(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===r(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===r(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===r(t)},e.isError=function(t){return"[object Error]"===r(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=t.isBuffer}).call(this,r(2).Buffer)},function(t,e,r){t.exports=i;var n=r(28).EventEmitter;function i(){n.call(this)}r(3)(i,n),i.Readable=r(39),i.Writable=r(135),i.Duplex=r(134),i.Transform=r(86),i.PassThrough=r(133),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,t.end())}function u(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function f(t){if(c(),0===n.listenerCount(this,"error"))throw t}function c(){r.removeListener("data",i),t.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",f),t.removeListener("error",f),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return r.on("error",f),t.on("error",f),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t}},function(t,e,r){"use strict";(function(t){function n(t){return 0===t?t:-t}function i(t){let e=(r=n(t),Math.sign(r)||(Object.is(r,-0)?-1:1));var r;t=Math.abs(t);let i=Math.floor(t/60);t-=60*i;let o=String(i),a=String(t);return o.length<2&&(o="0"+o),a.length<2&&(a="0"+a),(-1===e?"-":"+")+o+a}function o(t){let[,e,r,i,o]=t.match(/^(.*) <(.*)> (.*) (.*)$/);return{name:e,email:r,timestamp:Number(i),timezoneOffset:function(t){let[,e,r,i]=t.match(/(\+|-)(\d\d)(\d\d)/);return n(i=("+"===e?1:-1)*(60*Number(r)+Number(i)))}(o)}}function a(t){return t=(t=(t=t.replace(/\r/g,"")).replace(/^\n+/,"")).replace(/\n+$/,"")+"\n"}function s(t){return t.trim().split("\n").map(t=>" "+t).join("\n")+"\n"}r.d(e,"a",function(){return u});class u{constructor(e){if("string"==typeof e)this._commit=e;else if(t.isBuffer(e))this._commit=e.toString("utf8");else{if("object"!=typeof e)throw new Error("invalid type passed to GitCommit constructor");this._commit=u.render(e)}}static fromPayloadSignature({payload:t,signature:e}){let r=u.justHeaders(t),n=u.justMessage(t),i=a(r+"\ngpgsig"+s(e)+"\n"+n);return new u(i)}static from(t){return new u(t)}toObject(){return t.from(this._commit,"utf8")}headers(){return this.parseHeaders()}message(){return u.justMessage(this._commit)}parse(){return Object.assign({message:this.message()},this.headers())}static justMessage(t){return a(t.slice(t.indexOf("\n\n")+2))}static justHeaders(t){return t.slice(0,t.indexOf("\n\n"))}parseHeaders(){let t=u.justHeaders(this._commit).split("\n"),e=[];for(let r of t)" "===r[0]?e[e.length-1]+="\n"+r.slice(1):e.push(r);let r={};for(let t of e){let e=t.slice(0,t.indexOf(" ")),n=t.slice(t.indexOf(" ")+1);r[e]=n}return r.parent=r.parent?r.parent.split(" "):[],r.author&&(r.author=o(r.author)),r.committer&&(r.committer=o(r.committer)),r}static renderHeaders(t){let e="";if(t.tree?e+=`tree ${t.tree}\n`:e+="tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904\n",t.parent&&t.parent.length){e+="parent";for(let r of t.parent)e+=" "+r;e+="\n"}let r=t.author;e+=`author ${r.name} <${r.email}> ${r.timestamp} ${i(r.timezoneOffset)}\n`;let n=t.committer||t.author;return e+=`committer ${n.name} <${n.email}> ${n.timestamp} ${i(n.timezoneOffset)}\n`,t.gpgsig&&(e+="gpgsig"+s(t.gpgsig)),e}static render(t){return u.renderHeaders(t)+"\n"+a(t.message)}render(){return this._commit}withoutSignature(){let t=a(this._commit);return-1===t.indexOf("\ngpgsig")?t:a(t.slice(0,t.indexOf("\ngpgsig"))+"\n"+t.slice(t.indexOf("-----END PGP SIGNATURE-----\n")+"-----END PGP SIGNATURE-----\n".length))}isolateSignature(){let t=this._commit.slice(this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),this._commit.indexOf("-----END PGP SIGNATURE-----")+"-----END PGP SIGNATURE-----".length);return t.split("\n").map(t=>t.replace(/^ /,"")).join("\n")}}}).call(this,r(2).Buffer)},function(t,e,r){"use strict";(function(t){r.d(e,"a",function(){return c});var n=r(13),i=r.n(n),o=r(29),a=r.n(o),s=r(76),u=r.n(s);function f(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,r){return function n(i,o){try{var a=e[i](o),s=a.value}catch(t){return void r(t)}if(!a.done)return Promise.resolve(s).then(function(t){n("next",t)},function(t){n("throw",t)});t(s)}("next")})}}class c{static flush(){return t.from("0000","utf8")}static encode(e){"string"==typeof e&&(e=t.from(e));let r=e.length+4,n=a()(4,r.toString(16),"0");return t.concat([t.from(n,"utf8"),e])}static reader(t){let e=new i.a(t);return(()=>{var t=f(function*(){if(e.eof())return!0;let t=parseInt(e.slice(4).toString("utf8"),16);return 0===t?null:e.slice(t-4).buffer});return function(){return t.apply(this,arguments)}})()}static streamReader(t){const e=u()(t);return(()=>{var t=f(function*(){try{let t=yield e.slice(4);if(null===t)return!0;if(0===(t=parseInt(t.toString("utf8"),16)))return null;let r=yield e.slice(t-4);return null===r||r}catch(t){return console.log("error",t),!0}});return function(){return t.apply(this,arguments)}})()}}}).call(this,r(2).Buffer)},function(t,e,r){"use strict";(function(e){!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,r,n,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,r)});case 3:return e.nextTick(function(){t.call(null,r,n)});case 4:return e.nextTick(function(){t.call(null,r,n,i)});default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return e.nextTick(function(){t.apply(null,o)})}}}:t.exports=e}).call(this,r(5))},function(t,e,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)i(r,n)&&(t[n]=r[n])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,a;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(a=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)o=t[e],a.set(o,i),i+=o.length;return a}},a={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(n)},function(t,e,r){"use strict";r.d(e,"a",function(){return n});const n={name:"isomorphic-git",version:"0.17.1"}},function(t,e,r){"use strict";var n=r(18),i=Object