From f96e764d2e03500a502ea14d8ffa28fc4838bb53 Mon Sep 17 00:00:00 2001
From: caryyu <cary.yu@wework.com>
Date: Fri, 22 Jan 2021 21:24:11 +0800
Subject: [PATCH 1/2] can't pass through cloudflare-backed sites

---
 src/source/index.js  | 12 ++++++++----
 src/source/yts_mx.js |  2 +-
 test/all.test.js     | 36 ++++++++++++++++++------------------
 3 files changed, 27 insertions(+), 23 deletions(-)

diff --git a/src/source/index.js b/src/source/index.js
index 1cf8da6..cc0c521 100644
--- a/src/source/index.js
+++ b/src/source/index.js
@@ -1,12 +1,16 @@
-const btdb_eu = require('./btdb_eu')
-const kat_rip = require('./kat_rip')
+// Note:
+// the ones being disabled are backed by Cloudflare which can't be passed through
+// @date 2021-01-22
+
+//const btdb_eu = require('./btdb_eu')
+//const kat_rip = require('./kat_rip')
 const thepiratebay_org = require('./thepiratebay_org')
 const _1337x_to = require('./1337x_to')
 const yts_mx = require('./yts_mx')
 
 module.exports = [
-  new btdb_eu(),
-  new kat_rip(),
+  //new btdb_eu(),
+  //new kat_rip(),
   new thepiratebay_org(),
   new _1337x_to(),
   new yts_mx()
diff --git a/src/source/yts_mx.js b/src/source/yts_mx.js
index db071fd..bb62752 100644
--- a/src/source/yts_mx.js
+++ b/src/source/yts_mx.js
@@ -76,7 +76,7 @@ class Source {
 
     return Promise.all(torrents.map((i, val) => {
       var link = $(val).attr('href')
-      console.log(link)
+
       return new Promise(function (resolve, reject) {
         GM_xmlhttpRequest({
           method: 'GET',
diff --git a/test/all.test.js b/test/all.test.js
index 41136a4..78b9bbf 100644
--- a/test/all.test.js
+++ b/test/all.test.js
@@ -1,7 +1,7 @@
 const mocks = require('./mocks')
 const thepiratebay_org = require('../src/source/thepiratebay_org')
-const btdb_eu = require('../src/source/btdb_eu')
-const kat_rip = require('../src/source/kat_rip')
+//const btdb_eu = require('../src/source/btdb_eu')
+//const kat_rip = require('../src/source/kat_rip')
 const _1337x_to = require('../src/source/1337x_to')
 const yts_mx = require('../src/source/yts_mx')
 const expect = require('chai').expect
@@ -15,23 +15,23 @@ describe('Do thepiratebay.org testing', function() {
   })
 })
 
-describe('Do btdb.eu testing', function() {
-  it('the result size should be greater than 0', async function() {
-    this.timeout(30000)
-    var keyword = 'mulan'
-    var result = await new btdb_eu().execute(keyword)
-    expect(result.length).to.be.greaterThan(0)
-  })
-})
+//describe('Do btdb.eu testing', function() {
+  //it('the result size should be greater than 0', async function() {
+    //this.timeout(30000)
+    //var keyword = 'mulan'
+    //var result = await new btdb_eu().execute(keyword)
+    //expect(result.length).to.be.greaterThan(0)
+  //})
+//})
 
-describe('Do kat.rip testing', function() {
-  it('the result size should be greater than 0', async function() {
-    this.timeout(30000)
-    var keyword = 'mulan'
-    var result = await new kat_rip().execute(keyword)
-    expect(result.length).to.be.greaterThan(0)
-  })
-})
+//describe('Do kat.rip testing', function() {
+  //it('the result size should be greater than 0', async function() {
+    //this.timeout(30000)
+    //var keyword = 'mulan'
+    //var result = await new kat_rip().execute(keyword)
+    //expect(result.length).to.be.greaterThan(0)
+  //})
+//})
 
 describe('Do 1337x.to testing', function() {
   it('the result size should be greater than 0', async function() {

From fc58f8abc92fdcfcdf083de68d6cf14887e0e427 Mon Sep 17 00:00:00 2001
From: "caryyu.tg@gmail.com" <caryyu.tg@gmail.com>
Date: Wed, 27 Jan 2021 21:34:12 +0800
Subject: [PATCH 2/2] bump to 0.0.6

---
 dist/bundle-all.js            | 2 +-
 dist/script.user.js           | 6 ++----
 dist/tampermonkey-metadata.js | 4 +---
 3 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/dist/bundle-all.js b/dist/bundle-all.js
index 06a11fa..3cdde40 100644
--- a/dist/bundle-all.js
+++ b/dist/bundle-all.js
@@ -1 +1 @@
-!function(){var e=function(e){var t;return function(r){return t||e(t={exports:{},parent:r},t.exports),t.exports}},t=e((function(e,t){(function(t,o){(function(){"use strict";var s;e.exports=R,R.ReadableState=x,xe.EventEmitter;var f,c=function(e,t){return e.listeners(t).length},l=u({}).Buffer,h=o.Uint8Array||function(){};f=we&&we.debuglog?we.debuglog("stream"):function(){};var d,p,y,g=ht.getHighWaterMark,v=st.codes,b=v.ERR_INVALID_ARG_TYPE,m=v.ERR_STREAM_PUSH_AFTER_EOF,w=v.ERR_METHOD_NOT_IMPLEMENTED,_=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;Ee(R,Ue);var E=at.errorOrDestroy,S=["error","close","destroy","pause","resume"];function x(e,t,r){s=s||a({}),e=e||{},"boolean"!=typeof r&&(r=t instanceof s),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",r),this.buffer=new ze,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.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=i({}).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function R(e){if(s=s||a({}),!(this instanceof R))return new R(e);var t=this instanceof s;this._readableState=new x(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),Ue.call(this)}function A(e,t,r,n,o){f("readableAddChunk",t);var i,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(f("onEofChunk"),!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,t.sync?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(e)))}}(e,a);else if(o||(i=function(e,t){var r,n;return n=t,l.isBuffer(n)||n instanceof h||"string"==typeof t||void 0===t||e.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],t)),r}(a,t)),i)E(e,i);else if(a.objectMode||t&&t.length>0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n)a.endEmitted?E(e,new _):k(e,a,t,!0);else if(a.ended)E(e,new m);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?k(e,a,t,!1):O(e,a)):k(e,a,t,!1)}else n||(a.reading=!1,O(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function k(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&L(e)),O(e,t)}Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),R.prototype.destroy=at.destroy,R.prototype._undestroy=at.undestroy,R.prototype._destroy=function(e,t){t(e)},R.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=l.from(e,t),t=""),r=!0),A(this,e,t,!1,r)},R.prototype.unshift=function(e){return A(this,e,null,!0,!1)},R.prototype.isPaused=function(){return!1===this._readableState.flowing},R.prototype.setEncoding=function(e){d||(d=i({}).StringDecoder);var t=new d(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";null!==r;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function L(e){var r=e._readableState;f("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(f("emitReadable",r.flowing),r.emittedReadable=!0,t.nextTick(C,e))}function C(e){var t=e._readableState;f("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,P(e)}function O(e,r){r.readingMore||(r.readingMore=!0,t.nextTick(M,e,r))}function M(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(f("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function j(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function B(e){f("readable nexttick read 0"),e.read(0)}function I(e,t){f("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function N(e){var r=e._readableState;f("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,t.nextTick(q,r,e))}function q(e,t){if(f("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function D(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}R.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?N(this):L(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&N(this),null;var n,o=t.needReadable;return f("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",o=!0),t.ended||t.reading?f("reading or ended",o=!1):o&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=T(r,t))),null===(n=e>0?U(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&N(this)),null!==n&&this.emit("data",n),n},R.prototype._read=function(e){E(this,new w("_read()"))},R.prototype.pipe=function(e,r){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,r);var i=r&&!1===r.end||e===t.stdout||e===t.stderr?y:a;function a(){f("onend"),e.end()}o.endEmitted?t.nextTick(i):n.once("end",i),e.on("unpipe",(function t(r,i){f("onunpipe"),r===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,f("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",h),e.removeListener("unpipe",t),n.removeListener("end",a),n.removeListener("end",y),n.removeListener("data",l),u=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||s())}));var s=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,P(e))}}(n);e.on("drain",s);var u=!1;function l(t){f("ondata");var r=e.write(t);f("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==D(o.pipes,e))&&!u&&(f("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function h(t){f("onerror",t),y(),e.removeListener("error",h),0===c(e,"error")&&E(e,t)}function d(){e.removeListener("finish",p),y()}function p(){f("onfinish"),e.removeListener("close",d),y()}function y(){f("unpipe"),n.unpipe(e)}return n.on("data",l),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener("error",r);e._events&&e._events.error?Array.isArray(e._events.error)?e._events.error.unshift(r):e._events.error=[r,e._events.error]:e.on("error",r)}(e,0,h),e.once("close",d),e.once("finish",p),e.emit("pipe",n),o.flowing||(f("pipe resume"),n.resume()),e},R.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var a=D(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},R.prototype.on=function(e,r){var n=Ue.prototype.on.call(this,e,r),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,f("on readable",o.length,o.reading),o.length?L(this):o.reading||t.nextTick(B,this))),n},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function(e,r){var n=Ue.prototype.removeListener.call(this,e,r);return"readable"===e&&t.nextTick(j,this),n},R.prototype.removeAllListeners=function(e){var r=Ue.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||t.nextTick(j,this),r},R.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!e.readableListening,function(e,r){r.resumeScheduled||(r.resumeScheduled=!0,t.nextTick(I,e,r))}(this,e)),e.paused=!1,this},R.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},R.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",(function(){if(f("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){f("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<S.length;i++)e.on(S[i],this.emit.bind(this,S[i]));return this._read=function(t){f("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(R.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=n({})),p(this)}),Object.defineProperty(R.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(R.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(R.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),R._fromList=U,Object.defineProperty(R.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(R.from=function(e,t){return void 0===y&&(y=r({})),y(R,e,t)})}).call(this)}).call(this,Ke,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})})),r=e((function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}})),n=e((function(e,t){(function(t){(function(){"use strict";var r;function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=o({}),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),f=Symbol("ended"),c=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function d(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var r=e[h].read();null!==r&&(e[c]=null,e[a]=null,e[s]=null,t(d(r,!1)))}}var y=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((n(r={get stream(){return this[h]},next:function(){var e=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[f])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise((function(r,n){t.nextTick((function(){e[u]?n(e[u]):r(d(void 0,!0))}))}));var n,o=this[c];if(o)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[f]?r(d(void 0,!0)):t[l](r,n)}),n)}}(o,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(d(i,!1));n=new Promise(this[l])}return this[c]=n,n}},Symbol.asyncIterator,(function(){return this})),n(r,"return",(function(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(d(void 0,!0))}))}))})),r),y);e.exports=function(e){var r,o=Object.create(g,(n(r={},h,{value:e,writable:!0}),n(r,a,{value:null,writable:!0}),n(r,s,{value:null,writable:!0}),n(r,u,{value:null,writable:!0}),n(r,f,{value:e._readableState.endEmitted,writable:!0}),n(r,l,{value:function(e,t){var r=o[h].read();r?(o[c]=null,o[a]=null,o[s]=null,e(d(r,!1))):(o[a]=e,o[s]=t)},writable:!0}),r));return o[c]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=o[s];return null!==t&&(o[c]=null,o[a]=null,o[s]=null,t(e)),void(o[u]=e)}var r=o[a];null!==r&&(o[c]=null,o[a]=null,o[s]=null,r(d(void 0,!0))),o[f]=!0})),e.on("readable",function(e){t.nextTick(p,e)}.bind(null,o)),o}}).call(this)}).call(this,Ke)})),o=e((function(e,t){"use strict";var r=st.codes.ERR_STREAM_PREMATURE_CLOSE;function n(){}e.exports=function e(t,o,i){if("function"==typeof o)return e(t,null,o);o||(o={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n)}}}(i||n);var a=o.readable||!1!==o.readable&&t.readable,s=o.writable||!1!==o.writable&&t.writable,u=function(){t.writable||c()},f=t._writableState&&t._writableState.finished,c=function(){s=!1,f=!0,a||i.call(t)},l=t._readableState&&t._readableState.endEmitted,h=function(){a=!1,l=!0,s||i.call(t)},d=function(e){i.call(t,e)},p=function(){var e;return a&&!l?(t._readableState&&t._readableState.ended||(e=new r),i.call(t,e)):s&&!f?(t._writableState&&t._writableState.ended||(e=new r),i.call(t,e)):void 0},y=function(){t.req.on("finish",c)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",c),t.on("abort",p),t.req?y():t.on("request",y)):s&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",h),t.on("finish",c),!1!==o.error&&t.on("error",d),t.on("close",p),function(){t.removeListener("complete",c),t.removeListener("abort",p),t.removeListener("request",y),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("end",h),t.removeListener("error",d),t.removeListener("close",p)}}})),i=e((function(e,t){"use strict";var r=ee.Buffer,n=r.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}};function o(e){var t;switch(this.encoding=function(e){var t=function(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}}(e);if("string"!=typeof t&&(r.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=f,this.end=c,t=3;break;default:return this.write=l,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function i(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){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);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 s(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 u(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 f(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 c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}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=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\ufffd":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var o=i(t[n]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--n<r||-2===o?0:(o=i(t[n]))>=0?(o>0&&(e.lastNeed=o-2),o):--n<r||-2===o?0:(o=i(t[n]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(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)},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}})),a=e((function(e,r){(function(r){(function(){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var o=t({}),i=s({});Ee(c,o);for(var a=n(i.prototype),u=0;u<a.length;u++){var f=a[u];c.prototype[f]||(c.prototype[f]=i.prototype[f])}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,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)}})}).call(this)}).call(this,Ke)})),s=e((function(e,t){(function(t,r){(function(){"use strict";function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var o=n.callback;t.pendingcb--,o(void 0),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var o;e.exports=x,x.WritableState=S;var i,s={deprecate:dt},f=u({}).Buffer,c=r.Uint8Array||function(){},l=ht.getHighWaterMark,h=st.codes,d=h.ERR_INVALID_ARG_TYPE,p=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,v=h.ERR_STREAM_DESTROYED,b=h.ERR_STREAM_NULL_VALUES,m=h.ERR_STREAM_WRITE_AFTER_END,w=h.ERR_UNKNOWN_ENCODING,_=at.errorOrDestroy;function E(){}function S(e,r,i){o=o||a({}),e=e||{},"boolean"!=typeof i&&(i=r instanceof o),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=l(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,r){var n=e._writableState,o=n.sync,i=n.writecb;if("function"!=typeof i)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),r)!function(e,r,n,o,i){--r.pendingcb,n?(t.nextTick(i,o),t.nextTick(C,e,r),e._writableState.errorEmitted=!0,_(e,o)):(i(o),e._writableState.errorEmitted=!0,_(e,o),C(e,r))}(e,n,o,r,i);else{var a=T(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||k(e,n),o?t.nextTick(A,e,n,a,i):A(e,n,a,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function x(e){var t=this instanceof(o=o||a({}));if(!t&&!i.call(x,this))return new x(e);this._writableState=new S(e,this,t),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)),Ue.call(this)}function R(e,t,r,n,o,i,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function A(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),C(e,t)}function k(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var o=t.bufferedRequestCount,i=new Array(o),a=t.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,R(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,c=r.encoding,l=r.callback;if(R(e,t,!1,t.objectMode?1:f.length,f,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function L(e,t){e._final((function(r){t.pendingcb--,r&&_(e,r),t.prefinished=!0,e.emit("prefinish"),C(e,t)}))}function C(e,r){var n=T(r);if(n&&(function(e,r){r.prefinished||r.finalCalled||("function"!=typeof e._final||r.destroyed?(r.prefinished=!0,e.emit("prefinish")):(r.pendingcb++,r.finalCalled=!0,t.nextTick(L,e,r)))}(e,r),0===r.pendingcb&&(r.finished=!0,e.emit("finish"),r.autoDestroy))){var o=e._readableState;(!o||o.autoDestroy&&o.endEmitted)&&e.destroy()}return n}Ee(x,Ue),S.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(S.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===x&&e&&e._writableState instanceof S}})):i=function(e){return e instanceof this},x.prototype.pipe=function(){_(this,new g)},x.prototype.write=function(e,r,n){var o,i=this._writableState,a=!1,s=!i.objectMode&&(o=e,f.isBuffer(o)||o instanceof c);return s&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof r&&(n=r,r=null),s?r="buffer":r||(r=i.defaultEncoding),"function"!=typeof n&&(n=E),i.ending?function(e,r){var n=new m;_(e,n),t.nextTick(r,n)}(this,n):(s||function(e,r,n,o){var i;return null===n?i=new b:"string"==typeof n||r.objectMode||(i=new d("chunk",["string","Buffer"],n)),!i||(_(e,i),t.nextTick(o,i),!1)}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,r,n,o,i){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,r)),t}(t,n,o);n!==a&&(r=!0,o="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else R(e,t,!1,s,n,o,i);return u}(this,i,s,e,r,n)),a},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||k(this,e))},x.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 w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new p("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,r,n){var o=this._writableState;return"function"==typeof e?(n=e,e=null,r=null):"function"==typeof r&&(n=r,r=null),null!=e&&this.write(e,r),o.corked&&(o.corked=1,this.uncork()),o.ending||function(e,r,n){r.ending=!0,C(e,r),n&&(r.finished?t.nextTick(n):e.once("finish",n)),r.ended=!0,e.writable=!1}(this,o,n),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=at.destroy,x.prototype._undestroy=at.undestroy,x.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,Ke,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})})),u=e((function(e,t){(function(e){(function(){"use strict";t.Buffer=r,t.SlowBuffer=function(e){return+e!=e&&(e=0),r.alloc(+e)},t.INSPECT_MAX_BYTES=50;function e(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=r.prototype,t}function r(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return i(e)}return n(e,t,r)}function n(t,n,o){if("string"==typeof t)return function(t,n){if("string"==typeof n&&""!==n||(n="utf8"),!r.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var o=0|u(t,n),i=e(o),a=i.write(t,n);return a!==o&&(i=i.slice(0,a)),i}(t,n);if(ArrayBuffer.isView(t))return a(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(B(t,ArrayBuffer)||t&&B(t.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var o;return(o=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n)).__proto__=r.prototype,o}(t,n,o);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(null!=i&&i!==t)return r.from(i,n,o);var f=function(t){if(r.isBuffer(t)){var n=0|s(t.length),o=e(n);return 0===o.length||t.copy(o,0,0,n),o}return void 0!==t.length?"number"!=typeof t.length||I(t.length)?e(0):a(t):"Buffer"===t.type&&Array.isArray(t.data)?a(t.data):void 0}(t);if(f)return f;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return r.from(t[Symbol.toPrimitive]("string"),n,o);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function o(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function i(t){return o(t),e(t<0?0:0|s(t))}function a(t){for(var r=t.length<0?0:0|s(t.length),n=e(r),o=0;o<r;o+=1)n[o]=255&t[o];return n}function s(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function u(e,t){if(r.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return M(e).length;default:if(i)return o?-1:O(e).length;t=(""+t).toLowerCase(),i=!0}}function f(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function c(e,t,n,o,i){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),I(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=r.from(t,o)),r.isBuffer(t))return 0===t.length?-1:l(e,t,n,o,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):l(e,[t],n,o,i);throw new TypeError("val must be string, number or Buffer")}function l(e,t,r,n,o){var i,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function f(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=r;i<s;i++)if(f(e,i)===f(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===u)return c*a}else-1!==c&&(i-=i-c),c=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var l=!0,h=0;h<u;h++)if(f(e,i+h)!==f(t,h)){l=!1;break}if(l)return i}return-1}function h(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function d(e,t,r,n){return j(O(t,e.length-r),e,r,n)}function p(e,t,r,n){return j(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function y(e,t,r,n){return p(e,t,r,n)}function g(e,t,r,n){return j(M(t),e,r,n)}function v(e,t,r,n){return j(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function b(e,t,r){return 0===t&&r===e.length?W.fromByteArray(e):W.fromByteArray(e.slice(t,r))}function m(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,u,f=e[o],c=null,l=f>239?4:f>223?3:f>191?2:1;if(o+l<=r)switch(l){case 1:f<128&&(c=f);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&f)<<6|63&i)>127&&(c=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&f)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&f)<<18|(63&i)<<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),o+=l}return function(e){var t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=w));return r}(n)}t.kMaxLength=2147483647,r.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}(),r.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.buffer}}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),r.poolSize=8192,r.from=function(e,t,r){return n(e,t,r)},r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,r.alloc=function(t,r,n){return function(t,r,n){return o(t),t<=0?e(t):void 0!==r?"string"==typeof n?e(t).fill(r,n):e(t).fill(r):e(t)}(t,r,n)},r.allocUnsafe=function(e){return i(e)},r.allocUnsafeSlow=function(e){return i(e)},r.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==r.prototype},r.compare=function(e,t){if(B(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),B(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),!r.isBuffer(e)||!r.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,o=t.length,i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==t[i]){n=e[i],o=t[i];break}return n<o?-1:o<n?1:0},r.isEncoding=function(e){switch(String(e).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}},r.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return r.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var o=r.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(B(a,Uint8Array)&&(a=r.from(a)),!r.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(o,i),i+=a.length}return o},r.byteLength=u,r.prototype._isBuffer=!0,r.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},r.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},r.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},r.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?m(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,r);case"utf8":case"utf-8":return m(this,t,r);case"ascii":return _(this,t,r);case"latin1":case"binary":return E(this,t,r);case"base64":return b(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=function(e){if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===r.compare(this,e)},r.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},r.prototype.compare=function(e,t,n,o,i){if(B(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),!r.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(o>>>=0),s=(n>>>=0)-(t>>>=0),u=Math.min(a,s),f=this.slice(o,i),c=e.slice(t,n),l=0;l<u;++l)if(f[l]!==c[l]){a=f[l],s=c[l];break}return a<s?-1:s<a?1:0},r.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},r.prototype.indexOf=function(e,t,r){return c(this,e,t,r,!0)},r.prototype.lastIndexOf=function(e,t,r){return c(this,e,t,r,!1)},r.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return h(this,e,t,r);case"utf8":case"utf-8":return d(this,e,t,r);case"ascii":return p(this,e,t,r);case"latin1":case"binary":return y(this,e,t,r);case"base64":return g(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function _(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function E(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function S(e,t,r){var n,o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",a=t;a<r;++a)i+=(n=e[a])<16?"0"+n.toString(16):n.toString(16);return i}function x(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function R(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,n,o,i,a){if(!r.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function k(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function T(e,t,r,n,o){return t=+t,r>>>=0,o||k(e,0,r,4),Q.write(e,t,r,n,23,4),r+4}function L(e,t,r,n,o){return t=+t,r>>>=0,o||k(e,0,r,8),Q.write(e,t,r,n,52,8),r+8}r.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var o=this.subarray(e,t);return o.__proto__=r.prototype,o},r.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},r.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},r.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},r.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},r.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},r.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},r.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},r.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},r.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},r.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},r.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},r.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},r.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),Q.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),Q.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),Q.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),Q.read(this,e,!1,52,8)},r.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||A(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},r.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||A(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},r.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,1,255,0),this[t]=255&e,t+1},r.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},r.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},r.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},r.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},r.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);A(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},r.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);A(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},r.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},r.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},r.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},r.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},r.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},r.prototype.writeFloatLE=function(e,t,r){return T(this,e,t,!0,r)},r.prototype.writeFloatBE=function(e,t,r){return T(this,e,t,!1,r)},r.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},r.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},r.prototype.copy=function(e,t,n,o){if(!r.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);var i=o-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,o);else if(this===e&&n<t&&t<o)for(var a=i-1;a>=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,o),t);return i},r.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!r.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===e.length){var i=e.charCodeAt(0);("utf8"===o&&i<128||"latin1"===o)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var s=r.isBuffer(e)?e:r.from(e,o),u=s.length;if(0===u)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=s[a%u]}return this};var C=/[^+/0-9A-Za-z-_]/g;function O(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function M(e){return W.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function B(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}}).call(this)}).call(this,u({}).Buffer)})),f=function(e){return e&&e.__esModule?e:{default:e}},c={exports:{}},l=function(e){"use strict";var t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(C){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(e,t,r){var n=c;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===c)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=f(e,t,r);if("normal"===u.type){if(n=r.done?d:l,u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var c="suspendedStart",l="suspendedYield",h="executing",d="completed",p={};function y(){}function g(){}function v(){}var b={};b[o]=function(){return this};var m=Object.getPrototypeOf,w=m&&m(m(T([])));w&&w!==t&&r.call(w,o)&&(b=w);var _=v.prototype=y.prototype=Object.create(b);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){var n;this._invoke=function(o,i){function a(){return new t((function(n,a){!function n(o,i,a,s){var u=f(e[o],e,i);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(l).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function x(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function R(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return g.prototype=_.constructor=v,v.constructor=g,g.displayName=s(v,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,a,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),S.prototype[i]=function(){return this},e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,a,"Generator"),_[o]=function(){return this},_.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=T,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}(c.exports);try{regeneratorRuntime=l}catch(zr){Function("r","regeneratorRuntime = r")(l)}var h=c=c.exports;function d(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(f){return void r(f)}s.done?t(u):Promise.resolve(u).then(n,o)}var p=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){d(i,n,o,a,s,"next",e)}function s(e){d(i,n,o,a,s,"throw",e)}a(void 0)}))}},y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}for(var v=function(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e},b=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},m=f(h),w=f(p),_=f(y),E=f(v),S=f(b),x=function(){function e(){(0,_.default)(this,e),(0,S.default)(this,"weight",300),(0,S.default)(this,"enabled",!0),(0,S.default)(this,"site","btdb.eu"),(0,S.default)(this,"src","https://btdb.eu/search/__keyword__/0/")}return(0,E.default)(e,[{key:"execute",value:(t=(0,w.default)(m.default.mark((function e(t){var r,n,o,i,a=this;return m.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length<=0)){e.next=2;break}return e.abrupt("return",[]);case 2:return r=this.src.replace("__keyword__",t),r=encodeURI(r),e.next=6,this._doRequest(r);case 6:return n=e.sent,o=$.parseHTML(n.responseText),i=$(o).find(".media"),e.abrupt("return",i.map((function(e){return a._fieldRef(i[e])})).get());case 10:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"filterKeyword",value:function(e){var t=e;return t.replace(/Season\s/,"S")}},{key:"_doRequest",value:function(e){return new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:e,timeout:1e4,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(e){200===e.status?t(e):r(e)}})}))}},{key:"_fieldRef",value:function(e){var t=$(e).find(".media-body .item-title a").text(),r=$(e).find(".media-body .item-meta-info small"),n=$(e).find(".media-right a:first").attr("href"),o=/Size\s:\s(.+)/g.exec($(r[0]).text())[1];return{title:t,link:n,sd:/Seeders\s:\s(\d*)/g.exec($(r[2]).text())[1],lc:/Leechers\s:\s(\d*)/g.exec($(r[3]).text())[1],size:o}}}]),e;var t}(),R=f(h),A=f(p),k=f(y),T=f(v),L=f(b),C=function(){function e(){(0,k.default)(this,e),(0,L.default)(this,"weight",200),(0,L.default)(this,"enabled",!0),(0,L.default)(this,"site","kat.rip"),(0,L.default)(this,"src","https://kat.rip/usearch/__keyword__/")}return(0,T.default)(e,[{key:"execute",value:(t=(0,A.default)(R.default.mark((function e(t){var r,n,o,i,a=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length<=0)){e.next=2;break}return e.abrupt("return",[]);case 2:return r=this.src.replace("__keyword__",t),r=encodeURI(r),e.next=6,this._doRequest(r);case 6:return n=e.sent,o=$.parseHTML(n.responseText),i=$(o).find(".mainpart .data .even, .odd"),e.abrupt("return",i.map((function(e){return a._fieldRef(i[e])})).get());case 10:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"filterKeyword",value:function(e){var t=e;return t.replace(/Season\s/,"S")}},{key:"_doRequest",value:function(e){return new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:e,timeout:15e3,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(e){200===e.status?t(e):r(e)}})}))}},{key:"_fieldRef",value:function(e){var t=$(e).find("td"),r=t.find(".torrentname .cellMainLink").text(),n=t.find(".floatright a:last").attr("href"),o=$(t[1]).text();return{title:r,link:n,sd:$(t[4]).text(),lc:$(t[5]).text(),size:o}}}]),e;var t}(),O=f(h),M=f(p),j=f(y),B=f(v),I=f(b),P=function(){function e(){(0,j.default)(this,e),(0,I.default)(this,"weight",100),(0,I.default)(this,"enabled",!0),(0,I.default)(this,"site","herokuapp.com"),(0,I.default)(this,"src","https://stark-savannah-51602.herokuapp.com/search/__keyword__")}return(0,B.default)(e,[{key:"execute",value:(t=(0,M.default)(O.default.mark((function e(t){var r,n,o,i=this;return O.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length<=0)){e.next=2;break}return e.abrupt("return",[]);case 2:return r=this.src.replace("__keyword__",t),r=encodeURI(r),e.next=6,this._doRequest(r);case 6:return n=e.sent,o=JSON.parse(n.responseText),e.abrupt("return",o.map((function(e){return i._fieldRef(e)})));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"filterKeyword",value:function(e){var t=e;return(t=t.replace(/^[^a-zA-Z]*/,"")).replace(/Season\s/,"S")}},{key:"_doRequest",value:function(e){return new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:e,timeout:3e4,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(e){200===e.status?t(e):r(e)}})}))}},{key:"_sizePretty",value:function(e){return(e=e/1024/1024)<1024?Math.ceil(e)+"M":e/1024+"G"}},{key:"_fieldRef",value:function(e){var t=e.title,r=e.magnet,n=this._sizePretty(e.size);return{title:t,link:r,sd:e.seeds,lc:e.leeches,size:n}}}]),e;var t}(),U=f(h),N=f(p),q=f(y),D=f(v),H=f(b),F=function(){function e(){(0,q.default)(this,e),(0,H.default)(this,"weight",101),(0,H.default)(this,"enabled",!0),(0,H.default)(this,"site","1337x.to"),(0,H.default)(this,"src","https://1337x.to/search/__keyword__/1/")}return(0,D.default)(e,[{key:"execute",value:(r=(0,N.default)(U.default.mark((function e(t){var r,n,o,i,a=this;return U.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length<=0)){e.next=2;break}return e.abrupt("return",[]);case 2:return r=this.src.replace("__keyword__",t),r=encodeURI(r),e.next=6,this._doRequest(r);case 6:return n=e.sent,o=$.parseHTML(n.responseText),i=$(o).find(".box-info-detail table tbody tr"),e.abrupt("return",Promise.all(i.map((function(e){return a._fieldRef(i[e])})).get()));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"filterKeyword",value:function(e){var t=e;return t.replace(/Season\s/,"S")}},{key:"_doRequest",value:function(e){return new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:e,timeout:1e4,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(e){200===e.status?t(e):r(e)}})}))}},{key:"_getMagnetLink",value:function(e){var t="https://".concat(this.site).concat(e),r=this._doRequest;return new Promise((function(e,n){r(t).then((function(t){var r=t.responseText,n=$(r).find(".box-info .no-top-radius div:first ul:first li:first a").attr("href");e(n)})).catch((function(e){return n(e)}))}))}},{key:"_fieldRef",value:(t=(0,N.default)(U.default.mark((function e(t){var r,n,o,i,a;return U.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=$(t).find(".coll-1,.name").text(),n=$(t).find(".coll-1 a:last").attr("href"),o=$(t).find(".coll-4").children().remove().end().text(),i=$(t).find(".coll-2").text(),a=$(t).find(".coll-3,.leeches").text(),e.next=7,this._getMagnetLink(n);case 7:return n=e.sent,e.abrupt("return",{title:r,link:n,sd:i,lc:a,size:o});case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e;var t,r}(),W={toByteArray:function(e){var t,r,n=J(e),o=n[0],i=n[1],a=new K(function(e,t,r){return 3*(t+r)/4-r}(0,o,i)),s=0,u=i>0?o-4:o;for(r=0;r<u;r+=4)t=z[e.charCodeAt(r)]<<18|z[e.charCodeAt(r+1)]<<12|z[e.charCodeAt(r+2)]<<6|z[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;return 2===i&&(t=z[e.charCodeAt(r)]<<2|z[e.charCodeAt(r+1)]>>4,a[s++]=255&t),1===i&&(t=z[e.charCodeAt(r)]<<10|z[e.charCodeAt(r+1)]<<4|z[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t),a},fromByteArray:function(e){for(var t,r=e.length,n=r%3,o=[],i=0,a=r-n;i<a;i+=16383)o.push(Z(e,i,i+16383>a?a:i+16383));return 1===n?(t=e[r-1],o.push(G[t>>2]+G[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],o.push(G[t>>10]+G[t>>4&63]+G[t<<2&63]+"=")),o.join("")}},G=[],z=[],K="undefined"!=typeof Uint8Array?Uint8Array:Array,V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y=0,X=V.length;Y<X;++Y)G[Y]=V[Y],z[V.charCodeAt(Y)]=Y;function J(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function Z(e,t,r){for(var n,o,i=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(G[(o=n)>>18&63]+G[o>>12&63]+G[o>>6&63]+G[63&o]);return i.join("")}z["-".charCodeAt(0)]=62,z["_".charCodeAt(0)]=63;var Q={read:function(e,t,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,f=u>>1,c=-7,l=r?o-1:0,h=r?-1:1,d=e[t+l];for(l+=h,i=d&(1<<-c)-1,d>>=-c,c+=s;c>0;i=256*i+e[t+l],l+=h,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+e[t+l],l+=h,c-=8);if(0===i)i=1-f;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=f}return(d?-1:1)*a*Math.pow(2,i-n)},write:function(e,t,r,n,o,i){var a,s,u,f=8*i-o-1,c=(1<<f)-1,l=c>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,p=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=c?(s=0,a=c):a+l>=1?(s=(t*u-1)*Math.pow(2,o),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;e[r+d]=255&s,d+=p,s/=256,o-=8);for(a=a<<o|s,f+=o;f>0;e[r+d]=255&a,d+=p,a/=256,f-=8);e[r+d-p]|=128*y}},ee={},te=u({}),re=te.Buffer;function ne(e,t){for(var r in e)t[r]=e[r]}function oe(e,t,r){return re(e,t,r)}re.from&&re.alloc&&re.allocUnsafe&&re.allocUnsafeSlow?ee=te:(ne(te,ee),ee.Buffer=oe),oe.prototype=Object.create(re.prototype),ne(re,oe),oe.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return re(e,t,r)},oe.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=re(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},oe.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return re(e)},oe.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return te.SlowBuffer(e)};var ie,ae=ee.Buffer;function se(e,t,r){var n=[],o=null;return se._encode(n,e),o=ae.concat(n),se.bytes=o.length,ae.isBuffer(t)?(o.copy(t,r),t):o}se.bytes=-1,se._floatConversionDetected=!1,se.getType=function(e){return ae.isBuffer(e)?"buffer":Array.isArray(e)?"array":ArrayBuffer.isView(e)?"arraybufferview":e instanceof Number?"number":e instanceof Boolean?"boolean":e instanceof ArrayBuffer?"arraybuffer":typeof e},se._encode=function(e,t){if(null!=t)switch(se.getType(t)){case"buffer":se.buffer(e,t);break;case"object":se.dict(e,t);break;case"array":se.list(e,t);break;case"string":se.string(e,t);break;case"number":case"boolean":se.number(e,t);break;case"arraybufferview":se.buffer(e,ae.from(t.buffer,t.byteOffset,t.byteLength));break;case"arraybuffer":se.buffer(e,ae.from(t))}};var ue=ae.from("e"),fe=ae.from("d"),ce=ae.from("l");se.buffer=function(e,t){e.push(ae.from(t.length+":"),t)},se.string=function(e,t){e.push(ae.from(ae.byteLength(t)+":"+t))},se.number=function(e,t){var r=2147483648*(t/2147483648<<0)+(t%2147483648<<0);e.push(ae.from("i"+r+"e")),r===t||se._floatConversionDetected||(se._floatConversionDetected=!0,console.warn('WARNING: Possible data corruption detected with value "'+t+'":','Bencoding only defines support for integers, value was converted to "'+r+'"'),console.trace())},se.dict=function(e,t){e.push(fe);for(var r,n=0,o=Object.keys(t).sort(),i=o.length;n<i;n++)null!=t[r=o[n]]&&(se.string(e,r),se._encode(e,t[r]));e.push(ue)},se.list=function(e,t){var r=0,n=t.length;for(e.push(ce);r<n;r++)null!=t[r]&&se._encode(e,t[r]);e.push(ue)},ie=se;var le,he=ee.Buffer;function de(e,t,r){for(var n=0,o=1,i=t;i<r;i++){var a=e[i];if(a<58&&a>=48)n=10*n+(a-48);else if(i!==t||43!==a){if(i!==t||45!==a){if(46===a)break;throw new Error("not a number: buffer["+i+"] = "+a)}o=-1}}return n*o}function pe(e,t,r,n){return null==e||0===e.length?null:("number"!=typeof t&&null==n&&(n=t,t=void 0),"number"!=typeof r&&null==n&&(n=r,r=void 0),pe.position=0,pe.encoding=n||null,pe.data=he.isBuffer(e)?e.slice(t,r):he.from(e),pe.bytes=pe.data.length,pe.next())}pe.bytes=0,pe.position=0,pe.data=null,pe.encoding=null,pe.next=function(){switch(pe.data[pe.position]){case 100:return pe.dictionary();case 108:return pe.list();case 105:return pe.integer();default:return pe.buffer()}},pe.find=function(e){for(var t=pe.position,r=pe.data.length,n=pe.data;t<r;){if(n[t]===e)return t;t++}throw new Error('Invalid data: Missing delimiter "'+String.fromCharCode(e)+'" [0x'+e.toString(16)+"]")},pe.dictionary=function(){pe.position++;for(var e={};101!==pe.data[pe.position];)e[pe.buffer()]=pe.next();return pe.position++,e},pe.list=function(){pe.position++;for(var e=[];101!==pe.data[pe.position];)e.push(pe.next());return pe.position++,e},pe.integer=function(){var e=pe.find(101),t=de(pe.data,pe.position+1,e);return pe.position+=e+1-pe.position,t},pe.buffer=function(){var e=pe.find(58),t=de(pe.data,pe.position,e),r=++e+t;return pe.position=r,pe.encoding?pe.data.toString(pe.encoding,e,r):pe.data.slice(e,r)},le=pe;var ye={},ge=ye;ge.encode=ie,ge.decode=le,ge.byteLength=ge.encodingLength=function(e){return ge.encode(e).length};var ve={};(function(e){(function(){ve=function(t,r){if("undefined"==typeof Blob||!(t instanceof Blob))throw new Error("first argument must be a Blob");if("function"!=typeof r)throw new Error("second argument must be a function");const n=new FileReader;n.addEventListener("loadend",(function t(o){n.removeEventListener("loadend",t,!1),o.error?r(o.error):r(null,e.from(n.result))}),!1),n.readAsArrayBuffer(t)}}).call(this)}).call(this,u({}).Buffer);var be={},me={};(function(e){(function(){me=function(t,r){var n=[];t.on("data",(function(e){n.push(e)})),t.once("end",(function(){r&&r(null,e.concat(n)),r=null})),t.once("error",(function(e){r&&r(e),r=null}))}}).call(this)}).call(this,u({}).Buffer);var we={},_e={};(function(e){(function(){var t;function r(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(r){t=null}}else t=null;return t}function n(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(n){}return!1}function o(e){return"function"==typeof e}_e.fetch=o(e.fetch)&&o(e.ReadableStream),_e.writableStream=o(e.WritableStream),_e.abortController=o(e.AbortController),_e.arraybuffer=_e.fetch||n("arraybuffer"),_e.msstream=!_e.fetch&&n("ms-stream"),_e.mozchunkedarraybuffer=!_e.fetch&&n("moz-chunked-arraybuffer"),_e.overrideMimeType=_e.fetch||!!r()&&o(r().overrideMimeType),t=null}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var Ee={};Ee="function"==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}};var Se,xe={},Re="object"==typeof Reflect?Reflect:null,Ae=Re&&"function"==typeof Re.apply?Re.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};Se=Re&&"function"==typeof Re.ownKeys?Re.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var ke=Number.isNaN||function(e){return e!=e};function Te(){Te.init.call(this)}(xe=Te).once=function(e,t){return new Promise((function(r,n){function o(){void 0!==i&&e.removeListener("error",i),r([].slice.call(arguments))}var i;"error"!==t&&(i=function(r){e.removeListener(t,o),n(r)},e.once("error",i)),e.once(t,o)}))},Te.EventEmitter=Te,Te.prototype._events=void 0,Te.prototype._eventsCount=0,Te.prototype._maxListeners=void 0;var Le=10;function Ce(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function Oe(e){return void 0===e._maxListeners?Te.defaultMaxListeners:e._maxListeners}function Me(e,t,r,n){var o,i,a,s;if(Ce(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=Oe(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function je(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(n);return o.listener=r,n.wrapFn=o,o}function Be(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):Pe(o,o.length)}function Ie(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function Pe(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}Object.defineProperty(Te,"defaultMaxListeners",{enumerable:!0,get:function(){return Le},set:function(e){if("number"!=typeof e||e<0||ke(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Le=e}}),Te.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Te.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||ke(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},Te.prototype.getMaxListeners=function(){return Oe(this)},Te.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)Ae(s,this,t);else{var u=s.length,f=Pe(s,u);for(r=0;r<u;++r)Ae(f[r],this,t)}return!0},Te.prototype.addListener=function(e,t){return Me(this,e,t,!1)},Te.prototype.on=Te.prototype.addListener,Te.prototype.prependListener=function(e,t){return Me(this,e,t,!0)},Te.prototype.once=function(e,t){return Ce(t),this.on(e,je(this,e,t)),this},Te.prototype.prependOnceListener=function(e,t){return Ce(t),this.prependListener(e,je(this,e,t)),this},Te.prototype.removeListener=function(e,t){var r,n,o,i,a;if(Ce(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},Te.prototype.off=Te.prototype.removeListener,Te.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},Te.prototype.listeners=function(e){return Be(this,e,!0)},Te.prototype.rawListeners=function(e){return Be(this,e,!1)},Te.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Ie.call(e,t)},Te.prototype.listenerCount=Ie,Te.prototype.eventNames=function(){return this._eventsCount>0?Se(this._events):[]};var Ue=xe.EventEmitter;function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function De(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var He,Fe,We=u({}).Buffer,Ge=we.inspect,$e=Ge&&Ge.custom||"inspect",ze=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value: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}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return We.alloc(0);for(var t,r,n,o=We.allocUnsafe(e>>>0),i=this.head,a=0;i;)t=i.data,r=o,n=a,We.prototype.copy.call(t,r,n),a+=i.data.length,i=i.next;return o}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var o=t.data,i=e>o.length?o.length:e;if(i===o.length?n+=o:n+=o.slice(0,e),0==(e-=i)){i===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=We.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,i=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,i),0==(e-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(i));break}++n}return this.length-=n,t}},{key:$e,value:function(e,t){return Ge(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach((function(t){qe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&De(t.prototype,r),e}(),Ke={},Ve=Ke={};function Ye(){throw new Error("setTimeout has not been defined")}function Xe(){throw new Error("clearTimeout has not been defined")}function Je(e){if(He===setTimeout)return setTimeout(e,0);if((He===Ye||!He)&&setTimeout)return He=setTimeout,setTimeout(e,0);try{return He(e,0)}catch(t){try{return He.call(null,e,0)}catch(t){return He.call(this,e,0)}}}!function(){try{He="function"==typeof setTimeout?setTimeout:Ye}catch(e){He=Ye}try{Fe="function"==typeof clearTimeout?clearTimeout:Xe}catch(e){Fe=Xe}}();var Ze,Qe=[],et=!1,tt=-1;function rt(){et&&Ze&&(et=!1,Ze.length?Qe=Ze.concat(Qe):tt=-1,Qe.length&&nt())}function nt(){if(!et){var e=Je(rt);et=!0;for(var t=Qe.length;t;){for(Ze=Qe,Qe=[];++tt<t;)Ze&&Ze[tt].run();tt=-1,t=Qe.length}Ze=null,et=!1,function(e){if(Fe===clearTimeout)return clearTimeout(e);if((Fe===Xe||!Fe)&&clearTimeout)return Fe=clearTimeout,clearTimeout(e);try{Fe(e)}catch(t){try{return Fe.call(null,e)}catch(t){return Fe.call(this,e)}}}(e)}}function ot(e,t){this.fun=e,this.array=t}function it(){}Ve.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Qe.push(new ot(e,t)),1!==Qe.length||et||Je(nt)},ot.prototype.run=function(){this.fun.apply(null,this.array)},Ve.title="browser",Ve.browser=!0,Ve.env={},Ve.argv=[],Ve.version="",Ve.versions={},Ve.on=it,Ve.addListener=it,Ve.once=it,Ve.off=it,Ve.removeListener=it,Ve.removeAllListeners=it,Ve.emit=it,Ve.prependListener=it,Ve.prependOnceListener=it,Ve.listeners=function(e){return[]},Ve.binding=function(e){throw new Error("process.binding is not supported")},Ve.cwd=function(){return"/"},Ve.chdir=function(e){throw new Error("process.chdir is not supported")},Ve.umask=function(){return 0};var at={};(function(e){(function(){"use strict";function t(e,t){n(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}at={destroy:function(o,i){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(i?i(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(n,this,o)):e.nextTick(n,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,(function(n){!i&&n?a._writableState?a._writableState.errorEmitted?e.nextTick(r,a):(a._writableState.errorEmitted=!0,e.nextTick(t,a,n)):e.nextTick(t,a,n):i?(e.nextTick(r,a),i(n)):e.nextTick(r,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,Ke);var st={},ut={};function ft(e,t,r){r||(r=Error);var n=function(e){var r,n;function o(r,n,o){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,o))||this}return n=e,(r=o).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,o}(r);n.prototype.name=r.name,n.prototype.code=e,ut[e]=n}function ct(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}ft("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),ft("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,o,i,a;if("string"==typeof t&&("not ","not "===t.substr(0,"not ".length))?(n="must not be",t=t.replace(/^not /,"")):n="must be",i=e,(void 0===a||a>i.length)&&(a=i.length)," argument"===i.substring(a-" argument".length,a))o="The ".concat(e," ").concat(n," ").concat(ct(t,"type"));else{var s=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+".".length>e.length)&&-1!==e.indexOf(".",r)}(e)?"property":"argument";o='The "'.concat(e,'" ').concat(s," ").concat(n," ").concat(ct(t,"type"))}return o+". Received type ".concat(typeof r)}),TypeError),ft("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ft("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),ft("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ft("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),ft("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ft("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ft("ERR_STREAM_WRITE_AFTER_END","write after end"),ft("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ft("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),ft("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),st.codes=ut;var lt=st.codes.ERR_INVALID_OPT_VALUE,ht={getHighWaterMark:function(e,t,r,n){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,n,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new lt(n?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}},dt={};(function(e){(function(){function t(t){try{if(!e.localStorage)return!1}catch(n){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}dt=function(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw new Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var pt=Et,yt=st.codes,gt=yt.ERR_METHOD_NOT_IMPLEMENTED,vt=yt.ERR_MULTIPLE_CALLBACK,bt=yt.ERR_TRANSFORM_ALREADY_TRANSFORMING,mt=yt.ERR_TRANSFORM_WITH_LENGTH_0,wt=a({});function _t(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new vt);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function Et(e){if(!(this instanceof Et))return new Et(e);wt.call(this,e),this._transformState={afterTransform:_t.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",St)}function St(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?xt(this,null,null):this._flush((function(t,r){xt(e,t,r)}))}function xt(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new mt;if(e._transformState.transforming)throw new bt;return e.push(null)}Ee(Et,wt),Et.prototype.push=function(e,t){return this._transformState.needTransform=!1,wt.prototype.push.call(this,e,t)},Et.prototype._transform=function(e,t,r){r(new gt("_transform()"))},Et.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},Et.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},Et.prototype._destroy=function(e,t){wt.prototype._destroy.call(this,e,(function(e){t(e)}))};var Rt,At=kt;function kt(e){if(!(this instanceof kt))return new kt(e);pt.call(this,e)}Ee(kt,pt),kt.prototype._transform=function(e,t,r){r(null,e)};var Tt=st.codes,Lt=Tt.ERR_MISSING_ARGS,Ct=Tt.ERR_STREAM_DESTROYED;function Ot(e){if(e)throw e}function Mt(e){e()}function jt(e,t){return e.pipe(t)}var Bt={};(Bt=Bt=t({})).Stream=Bt,Bt.Readable=Bt,Bt.Writable=s({}),Bt.Duplex=a({}),Bt.Transform=pt,Bt.PassThrough=At,Bt.finished=o({}),Bt.pipeline=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=function(e){return e.length?"function"!=typeof e[e.length-1]?Ot:e.pop():Ot}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Lt("streams");var a=t.map((function(e,r){var s=r<t.length-1;return function(e,t,r,n){n=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(n);var i=!1;e.on("close",(function(){i=!0})),void 0===Rt&&(Rt=o({})),Rt(e,{readable:t,writable:r},(function(e){if(e)return n(e);i=!0,n()}));var a=!1;return function(t){if(!i&&!a)return a=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void n(t||new Ct("pipe"))}}(e,s,r>0,(function(e){n||(n=e),e&&a.forEach(Mt),s||(a.forEach(Mt),i(n))}))}));return t.reduce(jt)};var It={};(function(e,t,r){(function(){var n=It.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o=It.IncomingMessage=function(n,o,i,a){var s=this;if(Bt.Readable.call(s),s._mode=i,s.headers={},s.rawHeaders=[],s.trailers={},s.rawTrailers=[],s.on("end",(function(){e.nextTick((function(){s.emit("close")}))})),"fetch"===i){if(s._fetchResponse=o,s.url=o.url,s.statusCode=o.status,s.statusMessage=o.statusText,o.headers.forEach((function(e,t){s.headers[t.toLowerCase()]=e,s.rawHeaders.push(t,e)})),_e.writableStream){var u=new WritableStream({write:function(e){return new Promise((function(t,n){s._destroyed?n():s.push(r.from(e))?t():s._resumeFetch=t}))},close:function(){t.clearTimeout(a),s._destroyed||s.push(null)},abort:function(e){s._destroyed||s.emit("error",e)}});try{return void o.body.pipeTo(u).catch((function(e){t.clearTimeout(a),s._destroyed||s.emit("error",e)}))}catch(h){}}var f=o.body.getReader();!function e(){f.read().then((function(n){if(!s._destroyed){if(n.done)return t.clearTimeout(a),void s.push(null);s.push(r.from(n.value)),e()}})).catch((function(e){t.clearTimeout(a),s._destroyed||s.emit("error",e)}))}()}else if(s._xhr=n,s._pos=0,s.url=n.responseURL,s.statusCode=n.status,s.statusMessage=n.statusText,n.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===s.headers[r]&&(s.headers[r]=[]),s.headers[r].push(t[2])):void 0!==s.headers[r]?s.headers[r]+=", "+t[2]:s.headers[r]=t[2],s.rawHeaders.push(t[1],t[2])}})),s._charset="x-user-defined",!_e.overrideMimeType){var c=s.rawHeaders["mime-type"];if(c){var l=c.match(/;\s*charset=([^;])(;|$)/);l&&(s._charset=l[1].toLowerCase())}s._charset||(s._charset="utf-8")}};Ee(o,Bt.Readable),o.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},o.prototype._onXHRProgress=function(){var e=this,o=e._xhr,i=null;switch(e._mode){case"text":if((i=o.responseText).length>e._pos){var a=i.substr(e._pos);if("x-user-defined"===e._charset){for(var s=r.alloc(a.length),u=0;u<a.length;u++)s[u]=255&a.charCodeAt(u);e.push(s)}else e.push(a,e._charset);e._pos=i.length}break;case"arraybuffer":if(o.readyState!==n.DONE||!o.response)break;i=o.response,e.push(r.from(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=o.response,o.readyState!==n.LOADING||!i)break;e.push(r.from(new Uint8Array(i)));break;case"ms-stream":if(i=o.response,o.readyState!==n.LOADING)break;var f=new t.MSStreamReader;f.onprogress=function(){f.result.byteLength>e._pos&&(e.push(r.from(new Uint8Array(f.result.slice(e._pos)))),e._pos=f.result.byteLength)},f.onload=function(){e.push(null)},f.readAsArrayBuffer(i)}e._xhr.readyState===n.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this)}).call(this,Ke,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},u({}).Buffer);var Pt={};(function(e,t,r){(function(){var n=It.IncomingMessage,o=It.readyStates,i=Pt=function(e){var t,n=this;Bt.Writable.call(n),n._opts=e,n._body=[],n._headers={},e.auth&&n.setHeader("Authorization","Basic "+r.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){n.setHeader(t,e.headers[t])}));var o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!_e.abortController)o=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!_e.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}n._mode=function(e,t){return _e.fetch&&t?"fetch":_e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":_e.msstream?"ms-stream":_e.arraybuffer&&e?"arraybuffer":"text"}(t,o),n._fetchTimer=null,n.on("finish",(function(){n._onFinish()}))};Ee(i,Bt.Writable),i.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===a.indexOf(r)&&(this._headers[r]={name:e,value:t})},i.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},i.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},i.prototype._onFinish=function(){var r=this;if(!r._destroyed){var n=r._opts,i=r._headers,a=null;"GET"!==n.method&&"HEAD"!==n.method&&(a=new Blob(r._body,{type:(i["content-type"]||{}).value||""}));var s=[];if(Object.keys(i).forEach((function(e){var t=i[e].name,r=i[e].value;Array.isArray(r)?r.forEach((function(e){s.push([t,e])})):s.push([t,r])})),"fetch"===r._mode){var u=null;if(_e.abortController){var f=new AbortController;u=f.signal,r._fetchAbortController=f,"requestTimeout"in n&&0!==n.requestTimeout&&(r._fetchTimer=t.setTimeout((function(){r.emit("requestTimeout"),r._fetchAbortController&&r._fetchAbortController.abort()}),n.requestTimeout))}t.fetch(r._opts.url,{method:r._opts.method,headers:s,body:a||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:u}).then((function(e){r._fetchResponse=e,r._connect()}),(function(e){t.clearTimeout(r._fetchTimer),r._destroyed||r.emit("error",e)}))}else{var c=r._xhr=new t.XMLHttpRequest;try{c.open(r._opts.method,r._opts.url,!0)}catch(l){return void e.nextTick((function(){r.emit("error",l)}))}"responseType"in c&&(c.responseType=r._mode),"withCredentials"in c&&(c.withCredentials=!!n.withCredentials),"text"===r._mode&&"overrideMimeType"in c&&c.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(c.timeout=n.requestTimeout,c.ontimeout=function(){r.emit("requestTimeout")}),s.forEach((function(e){c.setRequestHeader(e[0],e[1])})),r._response=null,c.onreadystatechange=function(){switch(c.readyState){case o.LOADING:case o.DONE:r._onXHRProgress()}},"moz-chunked-arraybuffer"===r._mode&&(c.onprogress=function(){r._onXHRProgress()}),c.onerror=function(){r._destroyed||r.emit("error",new Error("XHR error"))};try{c.send(a)}catch(l){return void e.nextTick((function(){r.emit("error",l)}))}}}},i.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(r){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},i.prototype._connect=function(){var e=this;e._destroyed||(e._response=new n(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},i.prototype._write=function(e,t,r){this._body.push(e),r()},i.prototype.abort=i.prototype.destroy=function(){this._destroyed=!0,t.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},i.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),Bt.Writable.prototype.end.call(this,e,t,r)},i.prototype.flushHeaders=function(){},i.prototype.setTimeout=function(){},i.prototype.setNoDelay=function(){},i.prototype.setSocketKeepAlive=function(){};var a=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this)}).call(this,Ke,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},u({}).Buffer);var Ut=Object.prototype.hasOwnProperty,Nt={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},qt={exports:{}};(function(e){(function(){!function(t){var r="object"==typeof qt.exports&&qt.exports&&!qt.exports.nodeType&&qt.exports,n=qt&&!qt.nodeType&&qt,o="object"==typeof e&&e;o.global!==o&&o.window!==o&&o.self!==o||(t=o);var i,a,s=2147483647,u=/^xn--/,f=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,d=String.fromCharCode;function p(e){throw new RangeError(l[e])}function y(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function g(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+y((e=e.replace(c,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function b(e){return y(e,(function(e){var t="";return e>65535&&(t+=d((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+d(e)})).join("")}function m(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,r){var n=0;for(e=r?h(e/700):e>>1,e+=h(e/t);e>455;n+=36)e=h(e/35);return h(n+36*e/(e+38))}function _(e){var t,r,n,o,i,a,u,f,c,l,d,y=[],g=e.length,v=0,m=128,_=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&p("not-basic"),y.push(e.charCodeAt(n));for(o=r>0?r+1:0;o<g;){for(i=v,a=1,u=36;o>=g&&p("invalid-input"),((f=(d=e.charCodeAt(o++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36)>=36||f>h((s-v)/a))&&p("overflow"),v+=f*a,!(f<(c=u<=_?1:u>=_+26?26:u-_));u+=36)a>h(s/(l=36-c))&&p("overflow"),a*=l;_=w(v-i,t=y.length+1,0==i),h(v/t)>s-m&&p("overflow"),m+=h(v/t),v%=t,y.splice(v++,0,m)}return b(y)}function E(e){var t,r,n,o,i,a,u,f,c,l,y,g,b,_,E,S=[];for(g=(e=v(e)).length,t=128,r=0,i=72,a=0;a<g;++a)(y=e[a])<128&&S.push(d(y));for(n=o=S.length,o&&S.push("-");n<g;){for(u=s,a=0;a<g;++a)(y=e[a])>=t&&y<u&&(u=y);for(u-t>h((s-r)/(b=n+1))&&p("overflow"),r+=(u-t)*b,t=u,a=0;a<g;++a)if((y=e[a])<t&&++r>s&&p("overflow"),y==t){for(f=r,c=36;!(f<(l=c<=i?1:c>=i+26?26:c-i));c+=36)E=f-l,_=36-l,S.push(d(m(l+E%_,0))),f=h(E/_);S.push(d(m(f,0))),i=w(r,b,n==o),r=0,++n}++r,++t}return S.join("")}if(i={version:"1.4.1",ucs2:{decode:v,encode:b},decode:_,encode:E,toASCII:function(e){return g(e,(function(e){return f.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return g(e,(function(e){return u.test(e)?_(e.slice(4).toLowerCase()):e}))}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",(function(){return i}));else if(r&&n)if(qt.exports==r)n.exports=i;else for(a in i)i.hasOwnProperty(a)&&(r[a]=i[a]);else t.punycode=i}(this)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),qt=qt.exports;var Dt=function(e){return"string"==typeof e},Ht=function(e){return"object"==typeof e&&null!==e},Ft=function(e){return null===e},Wt=function(e){return null==e};function Gt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var $t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},zt=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},Kt=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Vt(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var Yt=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},Xt={parse:function(e,t,r,n){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(t);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var u=0;u<s;++u){var f,c,l,h,d=e[u].replace(i,"%20"),p=d.indexOf(r);p>=0?(f=d.substr(0,p),c=d.substr(p+1)):(f=d,c=""),l=decodeURIComponent(f),h=decodeURIComponent(c),Gt(o,l)?$t(o[l])?o[l].push(h):o[l]=[o[l],h]:o[l]=h}return o},stringify:function(e,t,r,n){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Vt(Yt(e),(function(n){var o=encodeURIComponent(zt(n))+r;return Kt(e[n])?Vt(e[n],(function(e){return o+encodeURIComponent(zt(e))})).join(t):o+encodeURIComponent(zt(e[n]))})).join(t):n?encodeURIComponent(zt(n))+r+encodeURIComponent(zt(e)):""}},Jt={};function Zt(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}Jt.parse=lr;var Qt=/^([a-z0-9.+-]+:)/i,er=/:[0-9]*$/,tr=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,rr=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),nr=["'"].concat(rr),or=["%","/","?",";","#"].concat(nr),ir=["/","?","#"],ar=/^[+a-z0-9A-Z_-]{0,63}$/,sr=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ur={javascript:!0,"javascript:":!0},fr={javascript:!0,"javascript:":!0},cr={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function lr(e,t,r){if(e&&Ht(e)&&e instanceof Zt)return e;var n=new Zt;return n.parse(e,t,r),n}Zt.prototype.parse=function(e,t,r){if(!Dt(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),o=-1!==n&&n<e.indexOf("#")?"?":"#",i=e.split(o);i[0]=i[0].replace(/\\/g,"/");var a=e=i.join(o);if(a=a.trim(),!r&&1===e.split("#").length){var s=tr.exec(a);if(s)return this.path=a,this.href=a,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?Xt.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=Qt.exec(a);if(u){var f=(u=u[0]).toLowerCase();this.protocol=f,a=a.substr(u.length)}if(r||u||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var c="//"===a.substr(0,2);!c||u&&fr[u]||(a=a.substr(2),this.slashes=!0)}if(!fr[u]&&(c||u&&!cr[u])){for(var l,h,d=-1,p=0;p<ir.length;p++)-1!==(y=a.indexOf(ir[p]))&&(-1===d||y<d)&&(d=y);for(-1!==(h=-1===d?a.lastIndexOf("@"):a.lastIndexOf("@",d))&&(l=a.slice(0,h),a=a.slice(h+1),this.auth=decodeURIComponent(l)),d=-1,p=0;p<or.length;p++){var y;-1!==(y=a.indexOf(or[p]))&&(-1===d||y<d)&&(d=y)}-1===d&&(d=a.length),this.host=a.slice(0,d),a=a.slice(d),this.parseHost(),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g)for(var v=this.hostname.split(/\./),b=(p=0,v.length);p<b;p++){var m=v[p];if(m&&!m.match(ar)){for(var w="",_=0,E=m.length;_<E;_++)m.charCodeAt(_)>127?w+="x":w+=m[_];if(!w.match(ar)){var S=v.slice(0,p),x=v.slice(p+1),R=m.match(sr);R&&(S.push(R[1]),x.unshift(R[2])),x.length&&(a="/"+x.join(".")+a),this.hostname=S.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),g||(this.hostname=qt.toASCII(this.hostname));var A=this.port?":"+this.port:"",k=this.hostname||"";this.host=k+A,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!ur[f])for(p=0,b=nr.length;p<b;p++){var T=nr[p];if(-1!==a.indexOf(T)){var L=encodeURIComponent(T);L===T&&(L=escape(T)),a=a.split(T).join(L)}}var C=a.indexOf("#");-1!==C&&(this.hash=a.substr(C),a=a.slice(0,C));var O=a.indexOf("?");if(-1!==O?(this.search=a.substr(O),this.query=a.substr(O+1),t&&(this.query=Xt.parse(this.query)),a=a.slice(0,O)):t&&(this.search="",this.query={}),a&&(this.pathname=a),cr[f]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){A=this.pathname||"";var M=this.search||"";this.path=A+M}return this.href=this.format(),this},Zt.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&Ht(this.query)&&Object.keys(this.query).length&&(i=Xt.stringify(this.query));var a=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||cr[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+o+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+n},Zt.prototype.resolve=function(e){return this.resolveObject(lr(e,!1,!0)).format()},Zt.prototype.resolveObject=function(e){if(Dt(e)){var t=new Zt;t.parse(e,!1,!0),e=t}for(var r=new Zt,n=Object.keys(this),o=0;o<n.length;o++){var i=n[o];r[i]=this[i]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var u=a[s];"protocol"!==u&&(r[u]=e[u])}return cr[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!cr[e.protocol]){for(var f=Object.keys(e),c=0;c<f.length;c++){var l=f[c];r[l]=e[l]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||fr[e.protocol])r.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",p=r.search||"";r.path=d+p}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var y=r.pathname&&"/"===r.pathname.charAt(0),g=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=g||y||r.host&&e.pathname,b=v,m=r.pathname&&r.pathname.split("/")||[],w=(h=e.pathname&&e.pathname.split("/")||[],r.protocol&&!cr[r.protocol]);if(w&&(r.hostname="",r.port=null,r.host&&(""===m[0]?m[0]=r.host:m.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),v=v&&(""===h[0]||""===m[0])),g)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,m=h;else if(h.length)m||(m=[]),m.pop(),m=m.concat(h),r.search=e.search,r.query=e.query;else if(!Wt(e.search))return w&&(r.hostname=r.host=m.shift(),(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),r.search=e.search,r.query=e.query,Ft(r.pathname)&&Ft(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!m.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var _=m.slice(-1)[0],E=(r.host||e.host||m.length>1)&&("."===_||".."===_)||""===_,S=0,x=m.length;x>=0;x--)"."===(_=m[x])?m.splice(x,1):".."===_?(m.splice(x,1),S++):S&&(m.splice(x,1),S--);if(!v&&!b)for(;S--;S)m.unshift("..");!v||""===m[0]||m[0]&&"/"===m[0].charAt(0)||m.unshift(""),E&&"/"!==m.join("/").substr(-1)&&m.push("");var R,A=""===m[0]||m[0]&&"/"===m[0].charAt(0);return w&&(r.hostname=r.host=A?"":m.length?m.shift():"",(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),(v=v||r.host&&m.length)&&!A&&m.unshift(""),m.length?r.pathname=m.join("/"):(r.pathname=null,r.path=null),Ft(r.pathname)&&Ft(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},Zt.prototype.parseHost=function(){var e=this.host,t=er.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var hr={};(function(e){(function(){var t=hr;t.request=function(t,r){t="string"==typeof t?Jt.parse(t):function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)Ut.call(r,n)&&(e[n]=r[n])}return e}(t);var n=-1===e.location.protocol.search(/^https?:$/)?"http:":"",o=t.protocol||n,i=t.hostname||t.host,a=t.port,s=t.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),t.url=(i?o+"//"+i:"")+(a?":"+a:"")+s,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var u=new Pt(t);return r&&u.on("response",r),u},t.get=function(e,r){var n=t.request(e,r);return n.end(),n},t.ClientRequest=Pt,t.IncomingMessage=It.IncomingMessage,t.Agent=function(){},t.Agent.defaultMaxSockets=4,t.globalAgent=new t.Agent,t.STATUS_CODES=Nt,t.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var dr={},pr=dr;for(var yr in hr)hr.hasOwnProperty(yr)&&(pr[yr]=hr[yr]);function gr(e){if("string"==typeof e&&(e=Jt.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}pr.request=function(e,t){return e=gr(e),hr.request.call(this,e,t)},pr.get=function(e,t){return e=gr(e),hr.get.call(this,e,t)};var vr=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),o=e[e.length-1];return"function"==typeof n&&n!==o&&Object.keys(o).forEach((function(e){n[e]=o[e]})),n}},br={};function mr(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function wr(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}(br=vr(mr)).strict=vr(wr),mr.proto=mr((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return mr(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return wr(this)},configurable:!0})}));var _r={};(function(e){(function(){_r=r;const t=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;function r(n,o){if(n=Object.assign({maxRedirects:10},"string"==typeof n?{url:n}:n),o=br(o),n.url){const{hostname:e,port:t,protocol:r,auth:o,path:i}=Jt.parse(n.url);delete n.url,e||t||r||o?Object.assign(n,{hostname:e,port:t,protocol:r,auth:o,path:i}):n.path=i}const i={"accept-encoding":"gzip, deflate"};let a;n.headers&&Object.keys(n.headers).forEach(e=>i[e.toLowerCase()]=n.headers[e]),n.headers=i,n.body?a=n.json&&!t(n.body)?JSON.stringify(n.body):n.body:n.form&&(a="string"==typeof n.form?n.form:Xt.stringify(n.form),n.headers["content-type"]="application/x-www-form-urlencoded"),a&&(n.method||(n.method="POST"),t(a)||(n.headers["content-length"]=e.byteLength(a)),n.json&&!n.form&&(n.headers["content-type"]="application/json")),delete n.body,delete n.form,n.json&&(n.headers.accept="application/json"),n.method&&(n.method=n.method.toUpperCase());const s=("https:"===n.protocol?dr:hr).request(n,e=>{if(!1!==n.followRedirects&&e.statusCode>=300&&e.statusCode<400&&e.headers.location)return n.url=e.headers.location,delete n.headers.host,e.resume(),"POST"===n.method&&[301,302].includes(e.statusCode)&&(n.method="GET",delete n.headers["content-length"],delete n.headers["content-type"]),0==n.maxRedirects--?o(new Error("too many redirects")):r(n,o);const t="function"==typeof we&&"HEAD"!==n.method;o(null,t?we(e):e)});return s.on("timeout",()=>{s.abort(),o(new Error("Request timed out"))}),s.on("error",o),t(a)?a.on("error",o).pipe(s):s.end(a),s}r.concat=(e,t)=>r(e,(r,n)=>{if(r)return t(r);me(n,(r,o)=>{if(r)return t(r);if(e.json)try{o=JSON.parse(o.toString())}catch(r){return t(r,n,o)}t(null,n,o)})}),["get","post","put","patch","head","delete"].forEach(e=>{r[e]=(t,n)=>("string"==typeof t&&(t={url:t}),r(Object.assign({method:e.toUpperCase()},t),n))})}).call(this)}).call(this,u({}).Buffer);var Er={};(function(e){(function(){"use strict";var t=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];Er.decode=function(r){var n,o=0,i=0,a=0;e.isBuffer(r)||(r=new e(r));for(var s=new e(Math.ceil(5*r.length/8)),u=0;u<r.length&&61!==r[u];u++){var f=r[u]-48;if(!(f<t.length))throw new Error("Invalid input - it is not base32 encoded string");i=t[f],o<=3?0==(o=(o+5)%8)?(n|=i,s[a]=n,a++,n=0):n|=255&i<<8-o:(n|=255&i>>>(o=(o+5)%8),s[a]=n,a++,n=255&i<<8-o)}return s.slice(0,a)}}).call(this)}).call(this,u({}).Buffer);var Sr={};Er.encode,Sr.decode=Er.decode;var xr={};function Rr(e){return e.reduce((e,t,r,n)=>{const o=t.split("-").map(e=>parseInt(e));return e.concat(((e,t=e)=>Array.from({length:t-e+1},(t,r)=>r+e))(...o))},[])}(xr=Rr).parse=Rr,xr.compose=function(e){return e.reduce((e,t,r,n)=>(0!==r&&t===n[r-1]+1||e.push([]),e[e.length-1].push(t),e),[]).map(e=>e.length>1?`${e[0]}-${e[e.length-1]}`:""+e[0])};var Ar={};(function(e){(function(){function t(t){const r={},n=t.split("magnet:?")[1];let o;return(n&&n.length>=0?n.split("&"):[]).forEach(e=>{const t=e.split("=");if(2!==t.length)return;const n=t[0];let o=t[1];"dn"===n&&(o=decodeURIComponent(o).replace(/\+/g," ")),"tr"!==n&&"xs"!==n&&"as"!==n&&"ws"!==n||(o=decodeURIComponent(o)),"kt"===n&&(o=decodeURIComponent(o).split("+")),"ix"===n&&(o=Number(o)),"so"===n&&(o=xr.parse(decodeURIComponent(o).split(","))),r[n]?(Array.isArray(r[n])||(r[n]=[r[n]]),r[n].push(o)):r[n]=o}),r.xt&&(Array.isArray(r.xt)?r.xt:[r.xt]).forEach(t=>{if(o=t.match(/^urn:btih:(.{40})/))r.infoHash=o[1].toLowerCase();else if(o=t.match(/^urn:btih:(.{32})/)){const t=Sr.decode(o[1]);r.infoHash=e.from(t,"binary").toString("hex")}}),r.xs&&(Array.isArray(r.xs)?r.xs:[r.xs]).forEach(e=>{(o=e.match(/^urn:btpk:(.{64})/))&&(r.publicKey=o[1].toLowerCase())}),r.infoHash&&(r.infoHashBuffer=e.from(r.infoHash,"hex")),r.publicKey&&(r.publicKeyBuffer=e.from(r.publicKey,"hex")),r.dn&&(r.name=r.dn),r.kt&&(r.keywords=r.kt),r.announce=[],("string"==typeof r.tr||Array.isArray(r.tr))&&(r.announce=r.announce.concat(r.tr)),r.urlList=[],("string"==typeof r.as||Array.isArray(r.as))&&(r.urlList=r.urlList.concat(r.as)),("string"==typeof r.ws||Array.isArray(r.ws))&&(r.urlList=r.urlList.concat(r.ws)),r.peerAddresses=[],("string"==typeof r["x.pe"]||Array.isArray(r["x.pe"]))&&(r.peerAddresses=r.peerAddresses.concat(r["x.pe"])),r.announce=Array.from(new Set(r.announce)),r.urlList=Array.from(new Set(r.urlList)),r.peerAddresses=Array.from(new Set(r.peerAddresses)),r}(Ar=t).decode=t,Ar.encode=function(e){(e=Object.assign({},e)).infoHashBuffer&&(e.xt="urn:btih:"+e.infoHashBuffer.toString("hex")),e.infoHash&&(e.xt="urn:btih:"+e.infoHash),e.publicKeyBuffer&&(e.xs="urn:btpk:"+e.publicKeyBuffer.toString("hex")),e.publicKey&&(e.xs="urn:btpk:"+e.publicKey),e.name&&(e.dn=e.name),e.keywords&&(e.kt=e.keywords),e.announce&&(e.tr=e.announce),e.urlList&&(e.ws=e.urlList,delete e.as),e.peerAddresses&&(e["x.pe"]=e.peerAddresses);let t="magnet:?";return Object.keys(e).filter(e=>2===e.length||"x.pe"===e).forEach((r,n)=>{const o=Array.isArray(e[r])?e[r]:[e[r]];o.forEach((e,o)=>{(n>0||o>0)&&("kt"!==r&&"so"!==r||0===o)&&(t+="&"),"dn"===r&&(e=encodeURIComponent(e).replace(/%20/g,"+")),"tr"!==r&&"as"!==r&&"ws"!==r||(e=encodeURIComponent(e)),"xs"!==r||e.startsWith("urn:btpk:")||(e=encodeURIComponent(e)),"kt"===r&&(e=encodeURIComponent(e)),"so"!==r&&(t+="kt"===r&&o>0?"+"+e:`${r}=${e}`)}),"so"===r&&(t+=`${r}=${xr.compose(o)}`)}),t}}).call(this)}).call(this,u({}).Buffer);var kr={};(function(e){(function(){"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",o=0,i=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(i===s-1||1===a);else if(i!==s-1&&2===a){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){-1===u?(n="",o=0):o=(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),i=s,a=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=s,a=0;continue}t&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var n={resolve:function(){for(var n,o="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var s;a>=0?s=arguments[a]:(void 0===n&&(n=e.cwd()),s=n),t(s),0!==s.length&&(o=s+"/"+o,i=47===s.charCodeAt(0))}return o=r(o,!i),i?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&o&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var o=arguments[r];t(o),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r)return"";if((e=n.resolve(e))===(r=n.resolve(r)))return"";for(var o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var i=e.length,a=i-o,s=1;s<r.length&&47===r.charCodeAt(s);++s);for(var u=r.length-s,f=a<u?a:u,c=-1,l=0;l<=f;++l){if(l===f){if(u>f){if(47===r.charCodeAt(s+l))return r.slice(s+l+1);if(0===l)return r.slice(s+l)}else a>f&&(47===e.charCodeAt(o+l)?c=l:0===l&&(c=0));break}var h=e.charCodeAt(o+l);if(h!==r.charCodeAt(s+l))break;47===h&&(c=l)}var d="";for(l=o+c+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===d.length?d+="..":d+="/..");return d.length>0?d+r.slice(s+c):(s+=c,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,o=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(r=e.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return-1===o?n?"/":".":n&&1===o?"//":e.slice(0,o)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');t(e);var n,o=0,i=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var s=r.length-1,u=-1;for(n=e.length-1;n>=0;--n){var f=e.charCodeAt(n);if(47===f){if(!a){o=n+1;break}}else-1===u&&(a=!1,u=n+1),s>=0&&(f===r.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=u))}return o===i?i=u:-1===i&&(i=e.length),e.slice(o,i)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){o=n+1;break}}else-1===i&&(a=!1,i=n+1);return-1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var r=-1,n=0,o=-1,i=!0,a=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(47!==u)-1===o&&(i=!1,o=s+1),46===u?-1===r?r=s:1!==a&&(a=1):-1!==r&&(a=-1);else if(!i){n=s+1;break}}return-1===r||-1===o||0===a||1===a&&r===o-1&&r===n+1?"":e.slice(r,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n}(0,e)},parse:function(e){t(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n,o=e.charCodeAt(0),i=47===o;i?(r.root="/",n=1):n=0;for(var a=-1,s=0,u=-1,f=!0,c=e.length-1,l=0;c>=n;--c)if(47!==(o=e.charCodeAt(c)))-1===u&&(f=!1,u=c+1),46===o?-1===a?a=c:1!==l&&(l=1):-1!==a&&(l=-1);else if(!f){s=c+1;break}return-1===a||-1===u||0===l||1===l&&a===u-1&&a===s+1?-1!==u&&(r.base=r.name=0===s&&i?e.slice(1,u):e.slice(s,u)):(0===s&&i?(r.name=e.slice(1,a),r.base=e.slice(1,u)):(r.name=e.slice(s,a),r.base=e.slice(s,u)),r.ext=e.slice(a,u)),s>0?r.dir=e.slice(0,s-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,kr=n}).call(this)}).call(this,Ke);var Tr,Lr,Cr,Or,Mr,jr={exports:{}};Tr="undefined"!=typeof self?self:this,Lr=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([function(e,t,r){var n=r(5),o=r(1),i=o.toHex,a=o.ceilHeapSize,s=r(6),u=function(e){for(e+=9;e%64>0;e+=1);return e},f=function(e,t){var r=new Int32Array(e,t+320,5),n=new Int32Array(5),o=new DataView(n.buffer);return o.setInt32(0,r[0],!1),o.setInt32(4,r[1],!1),o.setInt32(8,r[2],!1),o.setInt32(12,r[3],!1),o.setInt32(16,r[4],!1),n},c=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=t||65536)%64>0)throw new Error("Chunk size must be a multiple of 128 bit");this._offset=0,this._maxChunkLen=t,this._padMaxChunkLen=u(t),this._heap=new ArrayBuffer(a(this._padMaxChunkLen+320+20)),this._h32=new Int32Array(this._heap),this._h8=new Int8Array(this._heap),this._core=new n({Int32Array:Int32Array},{},this._heap)}return e.prototype._initState=function(e,t){this._offset=0;var r=new Int32Array(e,t+320,5);r[0]=1732584193,r[1]=-271733879,r[2]=-1732584194,r[3]=271733878,r[4]=-1009589776},e.prototype._padChunk=function(e,t){var r=u(e),n=new Int32Array(this._heap,0,r>>2);return function(e,t){var r=new Uint8Array(e.buffer),n=t%4,o=t-n;switch(n){case 0:r[o+3]=0;case 1:r[o+2]=0;case 2:r[o+1]=0;case 3:r[o+0]=0}for(var i=1+(t>>2);i<e.length;i++)e[i]=0}(n,e),function(e,t,r){e[t>>2]|=128<<24-(t%4<<3),e[14+(2+(t>>2)&-16)]=r/(1<<29)|0,e[15+(2+(t>>2)&-16)]=r<<3}(n,e,t),r},e.prototype._write=function(e,t,r,n){s(e,this._h8,this._h32,t,r,n||0)},e.prototype._coreCall=function(e,t,r,n,o){var i=r;this._write(e,t,r),o&&(i=this._padChunk(r,n)),this._core.hash(i,this._padMaxChunkLen)},e.prototype.rawDigest=function(e){var t=e.byteLength||e.length||e.size||0;this._initState(this._heap,this._padMaxChunkLen);var r=0,n=this._maxChunkLen;for(r=0;t>r+n;r+=n)this._coreCall(e,r,n,t,!1);return this._coreCall(e,r,t-r,t,!0),f(this._heap,this._padMaxChunkLen)},e.prototype.digest=function(e){return i(this.rawDigest(e).buffer)},e.prototype.digestFromString=function(e){return this.digest(e)},e.prototype.digestFromBuffer=function(e){return this.digest(e)},e.prototype.digestFromArrayBuffer=function(e){return this.digest(e)},e.prototype.resetState=function(){return this._initState(this._heap,this._padMaxChunkLen),this},e.prototype.append=function(e){var t=0,r=e.byteLength||e.length||e.size||0,n=this._offset%this._maxChunkLen,o=void 0;for(this._offset+=r;t<r;)o=Math.min(r-t,this._maxChunkLen-n),this._write(e,t,o,n),t+=o,(n+=o)===this._maxChunkLen&&(this._core.hash(this._maxChunkLen,this._padMaxChunkLen),n=0);return this},e.prototype.getState=function(){var e=void 0;if(this._offset%this._maxChunkLen)e=this._heap.slice(0);else{var t=new Int32Array(this._heap,this._padMaxChunkLen+320,5);e=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}return{offset:this._offset,heap:e}},e.prototype.setState=function(e){return this._offset=e.offset,20===e.heap.byteLength?new Int32Array(this._heap,this._padMaxChunkLen+320,5).set(new Int32Array(e.heap)):this._h32.set(new Int32Array(e.heap)),this},e.prototype.rawEnd=function(){var e=this._offset,t=e%this._maxChunkLen,r=this._padChunk(t,e);this._core.hash(r,this._padMaxChunkLen);var n=f(this._heap,this._padMaxChunkLen);return this._initState(this._heap,this._padMaxChunkLen),n},e.prototype.end=function(){return i(this.rawEnd().buffer)},e}();e.exports=c,e.exports._core=n},function(e,t){for(var r=new Array(256),n=0;n<256;n++)r[n]=(n<16?"0":"")+n.toString(16);e.exports.toHex=function(e){for(var t=new Uint8Array(e),n=new Array(e.byteLength),o=0;o<n.length;o++)n[o]=r[t[o]];return n.join("")},e.exports.ceilHeapSize=function(e){var t=0;if(e<=65536)return 65536;if(e<16777216)for(t=1;t<e;t<<=1);else for(t=16777216;t<e;t+=16777216);return t},e.exports.isDedicatedWorkerScope=function(e){var t="WorkerGlobalScope"in e&&e instanceof e.WorkerGlobalScope,r="SharedWorkerGlobalScope"in e&&e instanceof e.SharedWorkerGlobalScope,n="ServiceWorkerGlobalScope"in e&&e instanceof e.ServiceWorkerGlobalScope;return t&&!r&&!n}},function(e,t,r){e.exports=function(){var e=r(0),t=function(e,r,n,o,i){var a=new self.FileReader;a.onloadend=function(){if(a.error)return i(a.error);var s=a.result;r+=a.result.byteLength;try{e.append(s)}catch(u){return void i(u)}r<o.size?t(e,r,n,o,i):i(null,e.end())},a.readAsArrayBuffer(o.slice(r,r+n))},n=!0;return self.onmessage=function(r){if(n){var o=r.data.data,i=r.data.file,a=r.data.id;if(void 0!==a&&(i||o)){var s=r.data.blockSize||4194304,u=new e(s);u.resetState();var f=function(e,t){e?self.postMessage({id:a,error:e.name}):self.postMessage({id:a,hash:t})};o&&function(e,t,r){try{r(null,e.digest(t))}catch(n){return r(n)}}(u,o,f),i&&t(u,0,s,i,f)}}},function(){n=!1}}},function(e,t,r){var n=r(4),o=r(0),i=r(7),a=r(2),s=r(1).isDedicatedWorkerScope,u="undefined"!=typeof self&&s(self);o.disableWorkerBehaviour=u?a():function(){},o.createWorker=function(){var e=n(2),t=e.terminate;return e.terminate=function(){URL.revokeObjectURL(e.objectURL),t.call(e)},e},o.createHash=i,e.exports=o},function(e,t,r){function n(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r.oe=function(e){throw console.error(e),e};var n=r(r.s=ENTRY_MODULE);return n.default||n}function o(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function i(e,t,n){var i={};i[n]=[];var a=t.toString(),s=a.match(/^function\s?\(\w+,\s*\w+,\s*(\w+)\)/);if(!s)return i;for(var u,f=s[1],c=new RegExp("(\\\\n|\\W)"+o(f)+"\\((/\\*.*?\\*/)?s?.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)","g");u=c.exec(a);)"dll-reference"!==u[3]&&i[n].push(u[3]);for(c=new RegExp("\\("+o(f)+'\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)\\((/\\*.*?\\*/)?s?.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)',"g");u=c.exec(a);)e[u[2]]||(i[n].push(u[1]),e[u[2]]=r(u[1]).m),i[u[2]]=i[u[2]]||[],i[u[2]].push(u[4]);return i}function a(e){return Object.keys(e).reduce((function(t,r){return t||e[r].length>0}),!1)}e.exports=function(e,t){t=t||{};var o={main:r.m},s=t.all?{main:Object.keys(o)}:function(e,t){for(var r={main:[t]},n={main:[]},o={main:{}};a(r);)for(var s=Object.keys(r),u=0;u<s.length;u++){var f=s[u],c=r[f].pop();if(o[f]=o[f]||{},!o[f][c]&&e[f][c]){o[f][c]=!0,n[f]=n[f]||[],n[f].push(c);for(var l=i(e,e[f][c],f),h=Object.keys(l),d=0;d<h.length;d++)r[h[d]]=r[h[d]]||[],r[h[d]]=r[h[d]].concat(l[h[d]])}}return n}(o,e),u="";Object.keys(s).filter((function(e){return"main"!==e})).forEach((function(e){for(var t=0;s[e][t];)t++;s[e].push(t),o[e][t]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",u=u+"var "+e+" = ("+n.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+s[e].map((function(t){return JSON.stringify(t)+": "+o[e][t].toString()})).join(",")+"});\n"})),u=u+"("+n.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+s.main.map((function(e){return JSON.stringify(e)+": "+o.main[e].toString()})).join(",")+"})(self);";var f=new window.Blob([u],{type:"text/javascript"});if(t.bare)return f;var c=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(f),l=new window.Worker(c);return l.objectURL=c,l}},function(e,t){e.exports=function(e,t,r){"use asm";var n=new e.Int32Array(r);function o(e,t){e=e|0;t=t|0;var r=0,o=0,i=0,a=0,s=0,u=0,f=0,c=0,l=0,h=0,d=0,p=0,y=0,g=0;i=n[t+320>>2]|0;s=n[t+324>>2]|0;f=n[t+328>>2]|0;l=n[t+332>>2]|0;d=n[t+336>>2]|0;for(r=0;(r|0)<(e|0);r=r+64|0){a=i;u=s;c=f;h=l;p=d;for(o=0;(o|0)<64;o=o+4|0){g=n[r+o>>2]|0;y=((i<<5|i>>>27)+(s&f|~s&l)|0)+((g+d|0)+1518500249|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[e+o>>2]=g}for(o=e+64|0;(o|0)<(e+80|0);o=o+4|0){g=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;y=((i<<5|i>>>27)+(s&f|~s&l)|0)+((g+d|0)+1518500249|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[o>>2]=g}for(o=e+80|0;(o|0)<(e+160|0);o=o+4|0){g=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;y=((i<<5|i>>>27)+(s^f^l)|0)+((g+d|0)+1859775393|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[o>>2]=g}for(o=e+160|0;(o|0)<(e+240|0);o=o+4|0){g=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;y=((i<<5|i>>>27)+(s&f|s&l|f&l)|0)+((g+d|0)-1894007588|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[o>>2]=g}for(o=e+240|0;(o|0)<(e+320|0);o=o+4|0){g=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;y=((i<<5|i>>>27)+(s^f^l)|0)+((g+d|0)-899497514|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[o>>2]=g}i=i+a|0;s=s+u|0;f=f+c|0;l=l+h|0;d=d+p|0}n[t+320>>2]=i;n[t+324>>2]=s;n[t+328>>2]=f;n[t+332>>2]=l;n[t+336>>2]=d}return{hash:o}}},function(e,t){var r=this,n=void 0;"undefined"!=typeof self&&void 0!==self.FileReaderSync&&(n=new self.FileReaderSync);var o=function(e,t,r,n,o,i){var a=void 0,s=i%4,u=(o+s)%4,f=o-u;switch(s){case 0:t[i]=e[n+3];case 1:t[i+1-(s<<1)|0]=e[n+2];case 2:t[i+2-(s<<1)|0]=e[n+1];case 3:t[i+3-(s<<1)|0]=e[n]}if(!(o<u+(4-s))){for(a=4-s;a<f;a=a+4|0)r[i+a>>2|0]=e[n+a]<<24|e[n+a+1]<<16|e[n+a+2]<<8|e[n+a+3];switch(u){case 3:t[i+f+1|0]=e[n+f+2];case 2:t[i+f+2|0]=e[n+f+1];case 1:t[i+f+3|0]=e[n+f]}}};e.exports=function(e,t,i,a,s,u){if("string"==typeof e)return function(e,t,r,n,o,i){var a=void 0,s=i%4,u=(o+s)%4,f=o-u;switch(s){case 0:t[i]=e.charCodeAt(n+3);case 1:t[i+1-(s<<1)|0]=e.charCodeAt(n+2);case 2:t[i+2-(s<<1)|0]=e.charCodeAt(n+1);case 3:t[i+3-(s<<1)|0]=e.charCodeAt(n)}if(!(o<u+(4-s))){for(a=4-s;a<f;a=a+4|0)r[i+a>>2]=e.charCodeAt(n+a)<<24|e.charCodeAt(n+a+1)<<16|e.charCodeAt(n+a+2)<<8|e.charCodeAt(n+a+3);switch(u){case 3:t[i+f+1|0]=e.charCodeAt(n+f+2);case 2:t[i+f+2|0]=e.charCodeAt(n+f+1);case 1:t[i+f+3|0]=e.charCodeAt(n+f)}}}(e,t,i,a,s,u);if(e instanceof Array)return o(e,t,i,a,s,u);if(r&&r.Buffer&&r.Buffer.isBuffer(e))return o(e,t,i,a,s,u);if(e instanceof ArrayBuffer)return o(new Uint8Array(e),t,i,a,s,u);if(e.buffer instanceof ArrayBuffer)return o(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t,i,a,s,u);if(e instanceof Blob)return function(e,t,r,o,i,a){var s=void 0,u=a%4,f=(i+u)%4,c=i-f,l=new Uint8Array(n.readAsArrayBuffer(e.slice(o,o+i)));switch(u){case 0:t[a]=l[3];case 1:t[a+1-(u<<1)|0]=l[2];case 2:t[a+2-(u<<1)|0]=l[1];case 3:t[a+3-(u<<1)|0]=l[0]}if(!(i<f+(4-u))){for(s=4-u;s<c;s=s+4|0)r[a+s>>2|0]=l[s]<<24|l[s+1]<<16|l[s+2]<<8|l[s+3];switch(f){case 3:t[a+c+1|0]=l[c+2];case 2:t[a+c+2|0]=l[c+1];case 1:t[a+c+3|0]=l[c]}}}(e,t,i,a,s,u);throw new Error("Unsupported data type.")}},function(e,t,r){var n=r(0),o=r(1).toHex,i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._rusha=new n,this._rusha.resetState()}return e.prototype.update=function(e){return this._rusha.append(e),this},e.prototype.digest=function(e){var t=this._rusha.rawEnd().buffer;if(!e)return t;if("hex"===e)return o(t);throw new Error("unsupported digest encoding")},e}();e.exports=function(){return new i}}])},"object"==typeof jr.exports?jr.exports=Lr():"function"==typeof define&&define.amd?define([],Lr):"object"==typeof jr.exports?jr.exports.Rusha=Lr():Tr.Rusha=Lr(),jr=jr.exports;var Br,Ir=new jr,Pr="undefined"!=typeof window?window:self,Ur=Pr.crypto||Pr.msCrypto||{},Nr=Ur.subtle||Ur.webkitSubtle;function qr(e){return Ir.digest(e)}try{Nr.digest({name:"sha-1"},new Uint8Array).catch((function(){Nr=!1}))}catch(Kr){Nr=!1}(Br=function(e,t){Nr?("string"==typeof e&&(e=function(e){for(var t=e.length,r=new Uint8Array(t),n=0;n<t;n++)r[n]=e.charCodeAt(n);return r}(e)),Nr.digest({name:"sha-1"},e).then((function(e){t(function(e){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")}(new Uint8Array(e)))}),(function(){t(qr(e))}))):"undefined"!=typeof window?function(e,t){Cr||(Cr=jr.createWorker(),Or=1,Mr={},Cr.onmessage=function(e){var t=e.data.id,r=Mr[t];delete Mr[t],null!=e.data.error?r(new Error("Rusha worker error: "+e.data.error)):r(null,e.data.hash)}),Mr[Or]=t,Cr.postMessage({id:Or,data:e}),Or+=1}(e,(function(r,n){t(r?qr(e):n)})):queueMicrotask(()=>t(qr(e)))}).sync=qr;var Dr={};(function(e,t){(function(){function r(e){if("string"==typeof e&&/^(stream-)?magnet:/.test(e)){const t=Ar(e);if(!t.infoHash)throw new Error("Invalid torrent identifier");return t}if("string"==typeof e&&(/^[a-f0-9]{40}$/i.test(e)||/^[a-z2-7]{32}$/i.test(e)))return Ar("magnet:?xt=urn:btih:"+e);if(t.isBuffer(e)&&20===e.length)return Ar("magnet:?xt=urn:btih:"+e.toString("hex"));if(t.isBuffer(e))return function(e){t.isBuffer(e)&&(e=ye.decode(e)),o(e.info,"info"),o(e.info["name.utf-8"]||e.info.name,"info.name"),o(e.info["piece length"],"info['piece length']"),o(e.info.pieces,"info.pieces"),e.info.files?e.info.files.forEach(e=>{o("number"==typeof e.length,"info.files[0].length"),o(e["path.utf-8"]||e.path,"info.files[0].path")}):o("number"==typeof e.info.length,"info.length");const r={info:e.info,infoBuffer:ye.encode(e.info),name:(e.info["name.utf-8"]||e.info.name).toString(),announce:[]};r.infoHash=Br.sync(r.infoBuffer),r.infoHashBuffer=t.from(r.infoHash,"hex"),void 0!==e.info.private&&(r.private=!!e.info.private),e["creation date"]&&(r.created=new Date(1e3*e["creation date"])),e["created by"]&&(r.createdBy=e["created by"].toString()),t.isBuffer(e.comment)&&(r.comment=e.comment.toString()),Array.isArray(e["announce-list"])&&e["announce-list"].length>0?e["announce-list"].forEach(e=>{e.forEach(e=>{r.announce.push(e.toString())})}):e.announce&&r.announce.push(e.announce.toString()),t.isBuffer(e["url-list"])&&(e["url-list"]=e["url-list"].length>0?[e["url-list"]]:[]),r.urlList=(e["url-list"]||[]).map(e=>e.toString()),r.announce=Array.from(new Set(r.announce)),r.urlList=Array.from(new Set(r.urlList));const i=e.info.files||[e.info];r.files=i.map((e,t)=>{const o=[].concat(r.name,e["path.utf-8"]||e.path||[]).map(e=>e.toString());return{path:kr.join.apply(null,[kr.sep].concat(o)).slice(1),name:o[o.length-1],length:e.length,offset:i.slice(0,t).reduce(n,0)}}),r.length=i.reduce(n,0);const a=r.files[r.files.length-1];return r.pieceLength=e.info["piece length"],r.lastPieceLength=(a.offset+a.length)%r.pieceLength||r.pieceLength,r.pieces=function(e){const t=[];for(let r=0;r<e.length;r+=20)t.push(e.slice(r,r+20).toString("hex"));return t}(e.info.pieces),r}(e);if(e&&e.infoHash)return e.infoHash=e.infoHash.toLowerCase(),e.announce||(e.announce=[]),"string"==typeof e.announce&&(e.announce=[e.announce]),e.urlList||(e.urlList=[]),e;throw new Error("Invalid torrent identifier")}function n(e,t){return e+t.length}function o(e,t){if(!e)throw new Error("Torrent is missing required field: "+t)}(Dr=r).remote=function t(n,o,i){if("function"==typeof o)return t(n,{},o);if("function"!=typeof i)throw new Error("second argument must be a Function");let a;try{a=r(n)}catch(Kr){}function s(e){try{a=r(e)}catch(Kr){return i(Kr)}a&&a.infoHash?i(null,a):i(new Error("Invalid torrent identifier"))}a&&a.infoHash?e.nextTick(()=>{i(null,a)}):"undefined"!=typeof Blob&&n instanceof Blob?ve(n,(e,t)=>{if(e)return i(new Error("Error converting Blob: "+e.message));s(t)}):"function"==typeof _r&&/^https?:/.test(n)?(o=Object.assign({url:n,timeout:3e4,headers:{"user-agent":"WebTorrent (https://webtorrent.io)"}},o),_r.concat(o,(e,t,r)=>{if(e)return i(new Error("Error downloading torrent: "+e.message));s(r)})):"function"==typeof be.readFile&&"string"==typeof n?be.readFile(n,(e,t)=>{if(e)return i(new Error("Invalid torrent identifier"));s(t)}):e.nextTick(()=>{i(new Error("Invalid torrent identifier"))})},Dr.toMagnetURI=Ar.encode,Dr.toTorrentFile=function(e){const r={info:e.info};return r["announce-list"]=(e.announce||[]).map(e=>(r.announce||(r.announce=e),[e=t.from(e,"utf8")])),r["url-list"]=e.urlList||[],void 0!==e.private&&(r.private=Number(e.private)),e.created&&(r["creation date"]=e.created.getTime()/1e3|0),e.createdBy&&(r["created by"]=e.createdBy),e.comment&&(r.comment=e.comment),ye.encode(r)},t.alloc(0)}).call(this)}).call(this,Ke,u({}).Buffer);var Hr={};(function(e){(function(){"use strict";var t=f(h),r=f(p),n=f(y),o=f(v),i=f(b),a=function(){function a(){(0,n.default)(this,a),(0,i.default)(this,"weight",102),(0,i.default)(this,"enabled",!0),(0,i.default)(this,"site","yts.mx"),(0,i.default)(this,"src","https://yts.mx/browse-movies/__keyword__/all/all/0/latest/0/all")}return(0,o.default)(a,[{key:"execute",value:(s=(0,r.default)(t.default.mark((function e(n){var o,i,a,s,u,f=this;return t.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.length<=0)){e.next=2;break}return e.abrupt("return",[]);case 2:return o=this.src.replace("__keyword__",n),o=encodeURI(o),e.next=6,this._doRequest(o);case 6:return i=e.sent,a=$.parseHTML(i.responseText),s=$(a).find(".browse-content .container .row .browse-movie-wrap"),u=Promise.all(s.map(function(){var e=(0,r.default)(t.default.mark((function e(r,n){var o,i,a;return t.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=$(n).find(".browse-movie-link").attr("href"),e.next=3,f._doRequest(o);case 3:return i=e.sent,a=i.responseText,e.next=7,f._fieldRef(a);case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()).get()),e.abrupt("return",u);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"filterKeyword",value:function(e){var t=e;return(t=t.replace(/^[^a-zA-Z]*/,"")).replace(/Season\s/,"S")}},{key:"_doRequest",value:function(e){return new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:e,timeout:1e4,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(e){200===e.status?t(e):r(e)}})}))}},{key:"_fieldRef",value:function(t){var r=$(t).find('#movie-info p a[rel="nofollow"]');return Promise.all(r.map((function(t,r){var n=$(r).attr("href");return console.log(n),new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:n,responseType:"arraybuffer",timeout:1e4,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(n){if(200===n.status){var o=e.from(n.response);t((i=Dr(o),a=Dr.toMagnetURI(i),s=i.name,u=i.length,{title:s=s.split("\n").join(" ").trim(),link:a,sd:"-1",lc:"-1",size:u=parseFloat(u/1024/1024).toFixed(0)+"M"}))}else r(n);var i,a,s,u}})}))})))}}]),a;var s}();Hr=a}).call(this)}).call(this,u({}).Buffer);var Fr,Wr=[new x,new C,new P,new F,new Hr],Gr=f(h),$r=f(p);Promise.main=(Fr=(0,$r.default)(Gr.default.mark((function e(t){var r,n,o,i,a,s,u,f;return Gr.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.sort((function(e,t){return e.weight-t.weight})),r=$("h1 span:eq(0)").text(),n=0;case 3:if(!(n<t.length)){e.next=22;break}if(o=t[n],(i=o).enabled){e.next=8;break}return e.abrupt("continue",19);case 8:if(!((a=o.filterKeyword(r)).length<=0)){e.next=11;break}return e.abrupt("continue",19);case 11:return console.log(a),e.next=14,i.execute(a).catch((function(e){console.log(e);var t=$('<div class="clearfix" style="float: left; width: 675px"><hr/><p>Seems like you\'re not using VPN</p></div>');$(".article .subjectwrap:first").append(t)}));case 14:s=e.sent,u="",!s||s.length<=0?u="[".concat(i.site,"] No any magnet links can be found!"):(s.forEach((function(e){var t=e.title,r=e.size,n=e.sd,o=e.lc,i=e.link;u+='<li><a href="'.concat(i,'">').concat(t," (sd: ").concat(n,", lc: ").concat(o,", ").concat(r,")</a></li>")})),n=t.length-1),f=$('<div class="clearfix magnet-section" style="float: left; width: 675px"><hr/><ul>'.concat(u,"</ul></div>")),$(".article .subjectwrap:first").append(f);case 19:n++,e.next=3;break;case 22:case"end":return e.stop()}}),e)}))),function(e){return Fr.apply(this,arguments)}),Promise.main(Wr)}();
\ No newline at end of file
+!function(){var e=function(e){var t;return function(r){return t||e(t={exports:{},parent:r},t.exports),t.exports}},t=e((function(e,t){(function(t,o){(function(){"use strict";var s;e.exports=R,R.ReadableState=x,he.EventEmitter;var f,c=function(e,t){return e.listeners(t).length},l=u({}).Buffer,h=o.Uint8Array||function(){};f=ue&&ue.debuglog?ue.debuglog("stream"):function(){};var d,p,y,g=et.getHighWaterMark,v=Ye.codes,b=v.ERR_INVALID_ARG_TYPE,m=v.ERR_STREAM_PUSH_AFTER_EOF,w=v.ERR_METHOD_NOT_IMPLEMENTED,_=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;ce(R,Re);var E=Ve.errorOrDestroy,S=["error","close","destroy","pause","resume"];function x(e,t,r){s=s||a({}),e=e||{},"boolean"!=typeof r&&(r=t instanceof s),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",r),this.buffer=new Be,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.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=i({}).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function R(e){if(s=s||a({}),!(this instanceof R))return new R(e);var t=this instanceof s;this._readableState=new x(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),Re.call(this)}function A(e,t,r,n,o){f("readableAddChunk",t);var i,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(f("onEofChunk"),!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,t.sync?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(e)))}}(e,a);else if(o||(i=function(e,t){var r,n;return n=t,l.isBuffer(n)||n instanceof h||"string"==typeof t||void 0===t||e.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],t)),r}(a,t)),i)E(e,i);else if(a.objectMode||t&&t.length>0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n)a.endEmitted?E(e,new _):k(e,a,t,!0);else if(a.ended)E(e,new m);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?k(e,a,t,!1):O(e,a)):k(e,a,t,!1)}else n||(a.reading=!1,O(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function k(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&L(e)),O(e,t)}Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),R.prototype.destroy=Ve.destroy,R.prototype._undestroy=Ve.undestroy,R.prototype._destroy=function(e,t){t(e)},R.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=l.from(e,t),t=""),r=!0),A(this,e,t,!1,r)},R.prototype.unshift=function(e){return A(this,e,null,!0,!1)},R.prototype.isPaused=function(){return!1===this._readableState.flowing},R.prototype.setEncoding=function(e){d||(d=i({}).StringDecoder);var t=new d(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";null!==r;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function L(e){var r=e._readableState;f("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(f("emitReadable",r.flowing),r.emittedReadable=!0,t.nextTick(C,e))}function C(e){var t=e._readableState;f("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,P(e)}function O(e,r){r.readingMore||(r.readingMore=!0,t.nextTick(M,e,r))}function M(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(f("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function j(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function B(e){f("readable nexttick read 0"),e.read(0)}function I(e,t){f("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function N(e){var r=e._readableState;f("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,t.nextTick(D,r,e))}function D(e,t){if(f("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}R.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?N(this):L(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&N(this),null;var n,o=t.needReadable;return f("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",o=!0),t.ended||t.reading?f("reading or ended",o=!1):o&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=T(r,t))),null===(n=e>0?U(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&N(this)),null!==n&&this.emit("data",n),n},R.prototype._read=function(e){E(this,new w("_read()"))},R.prototype.pipe=function(e,r){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,r);var i=r&&!1===r.end||e===t.stdout||e===t.stderr?y:a;function a(){f("onend"),e.end()}o.endEmitted?t.nextTick(i):n.once("end",i),e.on("unpipe",(function t(r,i){f("onunpipe"),r===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,f("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",h),e.removeListener("unpipe",t),n.removeListener("end",a),n.removeListener("end",y),n.removeListener("data",l),u=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||s())}));var s=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,P(e))}}(n);e.on("drain",s);var u=!1;function l(t){f("ondata");var r=e.write(t);f("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==q(o.pipes,e))&&!u&&(f("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function h(t){f("onerror",t),y(),e.removeListener("error",h),0===c(e,"error")&&E(e,t)}function d(){e.removeListener("finish",p),y()}function p(){f("onfinish"),e.removeListener("close",d),y()}function y(){f("unpipe"),n.unpipe(e)}return n.on("data",l),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener("error",r);e._events&&e._events.error?Array.isArray(e._events.error)?e._events.error.unshift(r):e._events.error=[r,e._events.error]:e.on("error",r)}(e,0,h),e.once("close",d),e.once("finish",p),e.emit("pipe",n),o.flowing||(f("pipe resume"),n.resume()),e},R.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var a=q(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},R.prototype.on=function(e,r){var n=Re.prototype.on.call(this,e,r),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,f("on readable",o.length,o.reading),o.length?L(this):o.reading||t.nextTick(B,this))),n},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function(e,r){var n=Re.prototype.removeListener.call(this,e,r);return"readable"===e&&t.nextTick(j,this),n},R.prototype.removeAllListeners=function(e){var r=Re.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||t.nextTick(j,this),r},R.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!e.readableListening,function(e,r){r.resumeScheduled||(r.resumeScheduled=!0,t.nextTick(I,e,r))}(this,e)),e.paused=!1,this},R.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},R.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",(function(){if(f("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){f("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<S.length;i++)e.on(S[i],this.emit.bind(this,S[i]));return this._read=function(t){f("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(R.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=n({})),p(this)}),Object.defineProperty(R.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(R.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(R.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),R._fromList=U,Object.defineProperty(R.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(R.from=function(e,t){return void 0===y&&(y=r({})),y(R,e,t)})}).call(this)}).call(this,Ie,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})})),r=e((function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}})),n=e((function(e,t){(function(t){(function(){"use strict";var r;function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=o({}),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),f=Symbol("ended"),c=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function d(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var r=e[h].read();null!==r&&(e[c]=null,e[a]=null,e[s]=null,t(d(r,!1)))}}var y=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((n(r={get stream(){return this[h]},next:function(){var e=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[f])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise((function(r,n){t.nextTick((function(){e[u]?n(e[u]):r(d(void 0,!0))}))}));var n,o=this[c];if(o)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[f]?r(d(void 0,!0)):t[l](r,n)}),n)}}(o,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(d(i,!1));n=new Promise(this[l])}return this[c]=n,n}},Symbol.asyncIterator,(function(){return this})),n(r,"return",(function(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(d(void 0,!0))}))}))})),r),y);e.exports=function(e){var r,o=Object.create(g,(n(r={},h,{value:e,writable:!0}),n(r,a,{value:null,writable:!0}),n(r,s,{value:null,writable:!0}),n(r,u,{value:null,writable:!0}),n(r,f,{value:e._readableState.endEmitted,writable:!0}),n(r,l,{value:function(e,t){var r=o[h].read();r?(o[c]=null,o[a]=null,o[s]=null,e(d(r,!1))):(o[a]=e,o[s]=t)},writable:!0}),r));return o[c]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=o[s];return null!==t&&(o[c]=null,o[a]=null,o[s]=null,t(e)),void(o[u]=e)}var r=o[a];null!==r&&(o[c]=null,o[a]=null,o[s]=null,r(d(void 0,!0))),o[f]=!0})),e.on("readable",function(e){t.nextTick(p,e)}.bind(null,o)),o}}).call(this)}).call(this,Ie)})),o=e((function(e,t){"use strict";var r=Ye.codes.ERR_STREAM_PREMATURE_CLOSE;function n(){}e.exports=function e(t,o,i){if("function"==typeof o)return e(t,null,o);o||(o={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n)}}}(i||n);var a=o.readable||!1!==o.readable&&t.readable,s=o.writable||!1!==o.writable&&t.writable,u=function(){t.writable||c()},f=t._writableState&&t._writableState.finished,c=function(){s=!1,f=!0,a||i.call(t)},l=t._readableState&&t._readableState.endEmitted,h=function(){a=!1,l=!0,s||i.call(t)},d=function(e){i.call(t,e)},p=function(){var e;return a&&!l?(t._readableState&&t._readableState.ended||(e=new r),i.call(t,e)):s&&!f?(t._writableState&&t._writableState.ended||(e=new r),i.call(t,e)):void 0},y=function(){t.req.on("finish",c)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",c),t.on("abort",p),t.req?y():t.on("request",y)):s&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",h),t.on("finish",c),!1!==o.error&&t.on("error",d),t.on("close",p),function(){t.removeListener("complete",c),t.removeListener("abort",p),t.removeListener("request",y),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("end",h),t.removeListener("error",d),t.removeListener("close",p)}}})),i=e((function(e,t){"use strict";var r=H.Buffer,n=r.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}};function o(e){var t;switch(this.encoding=function(e){var t=function(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}}(e);if("string"!=typeof t&&(r.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=f,this.end=c,t=3;break;default:return this.write=l,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function i(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){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);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 s(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 u(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 f(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 c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}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=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\ufffd":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var o=i(t[n]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--n<r||-2===o?0:(o=i(t[n]))>=0?(o>0&&(e.lastNeed=o-2),o):--n<r||-2===o?0:(o=i(t[n]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(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)},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}})),a=e((function(e,r){(function(r){(function(){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var o=t({}),i=s({});ce(c,o);for(var a=n(i.prototype),u=0;u<a.length;u++){var f=a[u];c.prototype[f]||(c.prototype[f]=i.prototype[f])}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,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)}})}).call(this)}).call(this,Ie)})),s=e((function(e,t){(function(t,r){(function(){"use strict";function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var o=n.callback;t.pendingcb--,o(void 0),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var o;e.exports=x,x.WritableState=S;var i,s={deprecate:tt},f=u({}).Buffer,c=r.Uint8Array||function(){},l=et.getHighWaterMark,h=Ye.codes,d=h.ERR_INVALID_ARG_TYPE,p=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,v=h.ERR_STREAM_DESTROYED,b=h.ERR_STREAM_NULL_VALUES,m=h.ERR_STREAM_WRITE_AFTER_END,w=h.ERR_UNKNOWN_ENCODING,_=Ve.errorOrDestroy;function E(){}function S(e,r,i){o=o||a({}),e=e||{},"boolean"!=typeof i&&(i=r instanceof o),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=l(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,r){var n=e._writableState,o=n.sync,i=n.writecb;if("function"!=typeof i)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),r)!function(e,r,n,o,i){--r.pendingcb,n?(t.nextTick(i,o),t.nextTick(C,e,r),e._writableState.errorEmitted=!0,_(e,o)):(i(o),e._writableState.errorEmitted=!0,_(e,o),C(e,r))}(e,n,o,r,i);else{var a=T(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||k(e,n),o?t.nextTick(A,e,n,a,i):A(e,n,a,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function x(e){var t=this instanceof(o=o||a({}));if(!t&&!i.call(x,this))return new x(e);this._writableState=new S(e,this,t),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)),Re.call(this)}function R(e,t,r,n,o,i,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function A(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),C(e,t)}function k(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var o=t.bufferedRequestCount,i=new Array(o),a=t.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,R(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,c=r.encoding,l=r.callback;if(R(e,t,!1,t.objectMode?1:f.length,f,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function L(e,t){e._final((function(r){t.pendingcb--,r&&_(e,r),t.prefinished=!0,e.emit("prefinish"),C(e,t)}))}function C(e,r){var n=T(r);if(n&&(function(e,r){r.prefinished||r.finalCalled||("function"!=typeof e._final||r.destroyed?(r.prefinished=!0,e.emit("prefinish")):(r.pendingcb++,r.finalCalled=!0,t.nextTick(L,e,r)))}(e,r),0===r.pendingcb&&(r.finished=!0,e.emit("finish"),r.autoDestroy))){var o=e._readableState;(!o||o.autoDestroy&&o.endEmitted)&&e.destroy()}return n}ce(x,Re),S.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(S.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===x&&e&&e._writableState instanceof S}})):i=function(e){return e instanceof this},x.prototype.pipe=function(){_(this,new g)},x.prototype.write=function(e,r,n){var o,i=this._writableState,a=!1,s=!i.objectMode&&(o=e,f.isBuffer(o)||o instanceof c);return s&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof r&&(n=r,r=null),s?r="buffer":r||(r=i.defaultEncoding),"function"!=typeof n&&(n=E),i.ending?function(e,r){var n=new m;_(e,n),t.nextTick(r,n)}(this,n):(s||function(e,r,n,o){var i;return null===n?i=new b:"string"==typeof n||r.objectMode||(i=new d("chunk",["string","Buffer"],n)),!i||(_(e,i),t.nextTick(o,i),!1)}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,r,n,o,i){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,r)),t}(t,n,o);n!==a&&(r=!0,o="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else R(e,t,!1,s,n,o,i);return u}(this,i,s,e,r,n)),a},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||k(this,e))},x.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 w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new p("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,r,n){var o=this._writableState;return"function"==typeof e?(n=e,e=null,r=null):"function"==typeof r&&(n=r,r=null),null!=e&&this.write(e,r),o.corked&&(o.corked=1,this.uncork()),o.ending||function(e,r,n){r.ending=!0,C(e,r),n&&(r.finished?t.nextTick(n):e.once("finish",n)),r.ended=!0,e.writable=!1}(this,o,n),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=Ve.destroy,x.prototype._undestroy=Ve.undestroy,x.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,Ie,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})})),u=e((function(e,t){(function(e){(function(){"use strict";t.Buffer=r,t.SlowBuffer=function(e){return+e!=e&&(e=0),r.alloc(+e)},t.INSPECT_MAX_BYTES=50;function e(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=r.prototype,t}function r(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return i(e)}return n(e,t,r)}function n(t,n,o){if("string"==typeof t)return function(t,n){if("string"==typeof n&&""!==n||(n="utf8"),!r.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var o=0|u(t,n),i=e(o),a=i.write(t,n);return a!==o&&(i=i.slice(0,a)),i}(t,n);if(ArrayBuffer.isView(t))return a(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var o;return(o=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n)).__proto__=r.prototype,o}(t,n,o);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(null!=i&&i!==t)return r.from(i,n,o);var f=function(t){if(r.isBuffer(t)){var n=0|s(t.length),o=e(n);return 0===o.length||t.copy(o,0,0,n),o}return void 0!==t.length?"number"!=typeof t.length||P(t.length)?e(0):a(t):"Buffer"===t.type&&Array.isArray(t.data)?a(t.data):void 0}(t);if(f)return f;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return r.from(t[Symbol.toPrimitive]("string"),n,o);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function o(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function i(t){return o(t),e(t<0?0:0|s(t))}function a(t){for(var r=t.length<0?0:0|s(t.length),n=e(r),o=0;o<r;o+=1)n[o]=255&t[o];return n}function s(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function u(e,t){if(r.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return M(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(e).length;default:if(i)return o?-1:M(e).length;t=(""+t).toLowerCase(),i=!0}}function f(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function c(e,t,n,o,i){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),P(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=r.from(t,o)),r.isBuffer(t))return 0===t.length?-1:l(e,t,n,o,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):l(e,[t],n,o,i);throw new TypeError("val must be string, number or Buffer")}function l(e,t,r,n,o){var i,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function f(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=r;i<s;i++)if(f(e,i)===f(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===u)return c*a}else-1!==c&&(i-=i-c),c=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var l=!0,h=0;h<u;h++)if(f(e,i+h)!==f(t,h)){l=!1;break}if(l)return i}return-1}function h(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(P(s))return a;e[r+a]=s}return a}function d(e,t,r,n){return B(M(t,e.length-r),e,r,n)}function p(e,t,r,n){return B(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function y(e,t,r,n){return p(e,t,r,n)}function g(e,t,r,n){return B(j(t),e,r,n)}function v(e,t,r,n){return B(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function b(e,t,r){return 0===t&&r===e.length?O.fromByteArray(e):O.fromByteArray(e.slice(t,r))}function m(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,u,f=e[o],c=null,l=f>239?4:f>223?3:f>191?2:1;if(o+l<=r)switch(l){case 1:f<128&&(c=f);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&f)<<6|63&i)>127&&(c=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&f)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&f)<<18|(63&i)<<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),o+=l}return function(e){var t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=w));return r}(n)}t.kMaxLength=2147483647,r.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}(),r.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.buffer}}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),r.poolSize=8192,r.from=function(e,t,r){return n(e,t,r)},r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,r.alloc=function(t,r,n){return function(t,r,n){return o(t),t<=0?e(t):void 0!==r?"string"==typeof n?e(t).fill(r,n):e(t).fill(r):e(t)}(t,r,n)},r.allocUnsafe=function(e){return i(e)},r.allocUnsafeSlow=function(e){return i(e)},r.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==r.prototype},r.compare=function(e,t){if(I(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),!r.isBuffer(e)||!r.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,o=t.length,i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==t[i]){n=e[i],o=t[i];break}return n<o?-1:o<n?1:0},r.isEncoding=function(e){switch(String(e).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}},r.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return r.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var o=r.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(I(a,Uint8Array)&&(a=r.from(a)),!r.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(o,i),i+=a.length}return o},r.byteLength=u,r.prototype._isBuffer=!0,r.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},r.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},r.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},r.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?m(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,r);case"utf8":case"utf-8":return m(this,t,r);case"ascii":return _(this,t,r);case"latin1":case"binary":return E(this,t,r);case"base64":return b(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=function(e){if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===r.compare(this,e)},r.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},r.prototype.compare=function(e,t,n,o,i){if(I(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),!r.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(o>>>=0),s=(n>>>=0)-(t>>>=0),u=Math.min(a,s),f=this.slice(o,i),c=e.slice(t,n),l=0;l<u;++l)if(f[l]!==c[l]){a=f[l],s=c[l];break}return a<s?-1:s<a?1:0},r.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},r.prototype.indexOf=function(e,t,r){return c(this,e,t,r,!0)},r.prototype.lastIndexOf=function(e,t,r){return c(this,e,t,r,!1)},r.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return h(this,e,t,r);case"utf8":case"utf-8":return d(this,e,t,r);case"ascii":return p(this,e,t,r);case"latin1":case"binary":return y(this,e,t,r);case"base64":return g(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function _(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function E(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function S(e,t,r){var n,o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",a=t;a<r;++a)i+=(n=e[a])<16?"0"+n.toString(16):n.toString(16);return i}function x(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function R(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,n,o,i,a){if(!r.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function k(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function T(e,t,r,n,o){return t=+t,r>>>=0,o||k(e,0,r,4),q.write(e,t,r,n,23,4),r+4}function L(e,t,r,n,o){return t=+t,r>>>=0,o||k(e,0,r,8),q.write(e,t,r,n,52,8),r+8}r.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var o=this.subarray(e,t);return o.__proto__=r.prototype,o},r.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},r.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},r.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},r.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},r.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},r.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},r.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},r.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},r.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},r.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},r.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},r.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},r.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),q.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),q.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),q.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),q.read(this,e,!1,52,8)},r.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||A(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},r.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||A(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},r.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,1,255,0),this[t]=255&e,t+1},r.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},r.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},r.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},r.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},r.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);A(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},r.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);A(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},r.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},r.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},r.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},r.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},r.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},r.prototype.writeFloatLE=function(e,t,r){return T(this,e,t,!0,r)},r.prototype.writeFloatBE=function(e,t,r){return T(this,e,t,!1,r)},r.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},r.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},r.prototype.copy=function(e,t,n,o){if(!r.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);var i=o-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,o);else if(this===e&&n<t&&t<o)for(var a=i-1;a>=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,o),t);return i},r.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!r.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===e.length){var i=e.charCodeAt(0);("utf8"===o&&i<128||"latin1"===o)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var s=r.isBuffer(e)?e:r.from(e,o),u=s.length;if(0===u)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=s[a%u]}return this};var C=/[^+/0-9A-Za-z-_]/g;function M(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function j(e){return O.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function P(e){return e!=e}}).call(this)}).call(this,u({}).Buffer)})),f=function(e){return e&&e.__esModule?e:{default:e}},c={exports:{}},l=function(e){"use strict";var t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(C){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(e,t,r){var n=c;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===c)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=f(e,t,r);if("normal"===u.type){if(n=r.done?d:l,u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var c="suspendedStart",l="suspendedYield",h="executing",d="completed",p={};function y(){}function g(){}function v(){}var b={};b[o]=function(){return this};var m=Object.getPrototypeOf,w=m&&m(m(T([])));w&&w!==t&&r.call(w,o)&&(b=w);var _=v.prototype=y.prototype=Object.create(b);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){var n;this._invoke=function(o,i){function a(){return new t((function(n,a){!function n(o,i,a,s){var u=f(e[o],e,i);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(l).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function x(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function R(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return g.prototype=_.constructor=v,v.constructor=g,g.displayName=s(v,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,a,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),S.prototype[i]=function(){return this},e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,a,"Generator"),_[o]=function(){return this},_.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=T,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}(c.exports);try{regeneratorRuntime=l}catch(Br){Function("r","regeneratorRuntime = r")(l)}var h=c=c.exports;function d(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(f){return void r(f)}s.done?t(u):Promise.resolve(u).then(n,o)}var p=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){d(i,n,o,a,s,"next",e)}function s(e){d(i,n,o,a,s,"throw",e)}a(void 0)}))}},y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}for(var v=function(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e},b=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},m=f(h),w=f(p),_=f(y),E=f(v),S=f(b),x=function(){function e(){(0,_.default)(this,e),(0,S.default)(this,"weight",100),(0,S.default)(this,"enabled",!0),(0,S.default)(this,"site","herokuapp.com"),(0,S.default)(this,"src","https://stark-savannah-51602.herokuapp.com/search/__keyword__")}return(0,E.default)(e,[{key:"execute",value:(t=(0,w.default)(m.default.mark((function e(t){var r,n,o,i=this;return m.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length<=0)){e.next=2;break}return e.abrupt("return",[]);case 2:return r=this.src.replace("__keyword__",t),r=encodeURI(r),e.next=6,this._doRequest(r);case 6:return n=e.sent,o=JSON.parse(n.responseText),e.abrupt("return",o.map((function(e){return i._fieldRef(e)})));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"filterKeyword",value:function(e){var t=e;return(t=t.replace(/^[^a-zA-Z]*/,"")).replace(/Season\s/,"S")}},{key:"_doRequest",value:function(e){return new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:e,timeout:3e4,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(e){200===e.status?t(e):r(e)}})}))}},{key:"_sizePretty",value:function(e){return(e=e/1024/1024)<1024?Math.ceil(e)+"M":e/1024+"G"}},{key:"_fieldRef",value:function(e){var t=e.title,r=e.magnet,n=this._sizePretty(e.size);return{title:t,link:r,sd:e.seeds,lc:e.leeches,size:n}}}]),e;var t}(),R=f(h),A=f(p),k=f(y),T=f(v),L=f(b),C=function(){function e(){(0,k.default)(this,e),(0,L.default)(this,"weight",101),(0,L.default)(this,"enabled",!0),(0,L.default)(this,"site","1337x.to"),(0,L.default)(this,"src","https://1337x.to/search/__keyword__/1/")}return(0,T.default)(e,[{key:"execute",value:(r=(0,A.default)(R.default.mark((function e(t){var r,n,o,i,a=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length<=0)){e.next=2;break}return e.abrupt("return",[]);case 2:return r=this.src.replace("__keyword__",t),r=encodeURI(r),e.next=6,this._doRequest(r);case 6:return n=e.sent,o=$.parseHTML(n.responseText),i=$(o).find(".box-info-detail table tbody tr"),e.abrupt("return",Promise.all(i.map((function(e){return a._fieldRef(i[e])})).get()));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"filterKeyword",value:function(e){var t=e;return t.replace(/Season\s/,"S")}},{key:"_doRequest",value:function(e){return new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:e,timeout:1e4,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(e){200===e.status?t(e):r(e)}})}))}},{key:"_getMagnetLink",value:function(e){var t="https://".concat(this.site).concat(e),r=this._doRequest;return new Promise((function(e,n){r(t).then((function(t){var r=t.responseText,n=$(r).find(".box-info .no-top-radius div:first ul:first li:first a").attr("href");e(n)})).catch((function(e){return n(e)}))}))}},{key:"_fieldRef",value:(t=(0,A.default)(R.default.mark((function e(t){var r,n,o,i,a;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=$(t).find(".coll-1,.name").text(),n=$(t).find(".coll-1 a:last").attr("href"),o=$(t).find(".coll-4").children().remove().end().text(),i=$(t).find(".coll-2").text(),a=$(t).find(".coll-3,.leeches").text(),e.next=7,this._getMagnetLink(n);case 7:return n=e.sent,e.abrupt("return",{title:r,link:n,sd:i,lc:a,size:o});case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e;var t,r}(),O={toByteArray:function(e){var t,r,n=N(e),o=n[0],i=n[1],a=new B(function(e,t,r){return 3*(t+r)/4-r}(0,o,i)),s=0,u=i>0?o-4:o;for(r=0;r<u;r+=4)t=j[e.charCodeAt(r)]<<18|j[e.charCodeAt(r+1)]<<12|j[e.charCodeAt(r+2)]<<6|j[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;return 2===i&&(t=j[e.charCodeAt(r)]<<2|j[e.charCodeAt(r+1)]>>4,a[s++]=255&t),1===i&&(t=j[e.charCodeAt(r)]<<10|j[e.charCodeAt(r+1)]<<4|j[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t),a},fromByteArray:function(e){for(var t,r=e.length,n=r%3,o=[],i=0,a=r-n;i<a;i+=16383)o.push(D(e,i,i+16383>a?a:i+16383));return 1===n?(t=e[r-1],o.push(M[t>>2]+M[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],o.push(M[t>>10]+M[t>>4&63]+M[t<<2&63]+"=")),o.join("")}},M=[],j=[],B="undefined"!=typeof Uint8Array?Uint8Array:Array,I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",P=0,U=I.length;P<U;++P)M[P]=I[P],j[I.charCodeAt(P)]=P;function N(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function D(e,t,r){for(var n,o,i=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(M[(o=n)>>18&63]+M[o>>12&63]+M[o>>6&63]+M[63&o]);return i.join("")}j["-".charCodeAt(0)]=62,j["_".charCodeAt(0)]=63;var q={read:function(e,t,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,f=u>>1,c=-7,l=r?o-1:0,h=r?-1:1,d=e[t+l];for(l+=h,i=d&(1<<-c)-1,d>>=-c,c+=s;c>0;i=256*i+e[t+l],l+=h,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+e[t+l],l+=h,c-=8);if(0===i)i=1-f;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=f}return(d?-1:1)*a*Math.pow(2,i-n)},write:function(e,t,r,n,o,i){var a,s,u,f=8*i-o-1,c=(1<<f)-1,l=c>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,p=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=c?(s=0,a=c):a+l>=1?(s=(t*u-1)*Math.pow(2,o),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;e[r+d]=255&s,d+=p,s/=256,o-=8);for(a=a<<o|s,f+=o;f>0;e[r+d]=255&a,d+=p,a/=256,f-=8);e[r+d-p]|=128*y}},H={},F=u({}),W=F.Buffer;function G(e,t){for(var r in e)t[r]=e[r]}function z(e,t,r){return W(e,t,r)}W.from&&W.alloc&&W.allocUnsafe&&W.allocUnsafeSlow?H=F:(G(F,H),H.Buffer=z),z.prototype=Object.create(W.prototype),G(W,z),z.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return W(e,t,r)},z.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=W(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},z.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return W(e)},z.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return F.SlowBuffer(e)};var K,V=H.Buffer;function Y(e,t,r){var n=[],o=null;return Y._encode(n,e),o=V.concat(n),Y.bytes=o.length,V.isBuffer(t)?(o.copy(t,r),t):o}Y.bytes=-1,Y._floatConversionDetected=!1,Y.getType=function(e){return V.isBuffer(e)?"buffer":Array.isArray(e)?"array":ArrayBuffer.isView(e)?"arraybufferview":e instanceof Number?"number":e instanceof Boolean?"boolean":e instanceof ArrayBuffer?"arraybuffer":typeof e},Y._encode=function(e,t){if(null!=t)switch(Y.getType(t)){case"buffer":Y.buffer(e,t);break;case"object":Y.dict(e,t);break;case"array":Y.list(e,t);break;case"string":Y.string(e,t);break;case"number":case"boolean":Y.number(e,t);break;case"arraybufferview":Y.buffer(e,V.from(t.buffer,t.byteOffset,t.byteLength));break;case"arraybuffer":Y.buffer(e,V.from(t))}};var X=V.from("e"),J=V.from("d"),Z=V.from("l");Y.buffer=function(e,t){e.push(V.from(t.length+":"),t)},Y.string=function(e,t){e.push(V.from(V.byteLength(t)+":"+t))},Y.number=function(e,t){var r=2147483648*(t/2147483648<<0)+(t%2147483648<<0);e.push(V.from("i"+r+"e")),r===t||Y._floatConversionDetected||(Y._floatConversionDetected=!0,console.warn('WARNING: Possible data corruption detected with value "'+t+'":','Bencoding only defines support for integers, value was converted to "'+r+'"'),console.trace())},Y.dict=function(e,t){e.push(J);for(var r,n=0,o=Object.keys(t).sort(),i=o.length;n<i;n++)null!=t[r=o[n]]&&(Y.string(e,r),Y._encode(e,t[r]));e.push(X)},Y.list=function(e,t){var r=0,n=t.length;for(e.push(Z);r<n;r++)null!=t[r]&&Y._encode(e,t[r]);e.push(X)},K=Y;var Q,ee=H.Buffer;function te(e,t,r){for(var n=0,o=1,i=t;i<r;i++){var a=e[i];if(a<58&&a>=48)n=10*n+(a-48);else if(i!==t||43!==a){if(i!==t||45!==a){if(46===a)break;throw new Error("not a number: buffer["+i+"] = "+a)}o=-1}}return n*o}function re(e,t,r,n){return null==e||0===e.length?null:("number"!=typeof t&&null==n&&(n=t,t=void 0),"number"!=typeof r&&null==n&&(n=r,r=void 0),re.position=0,re.encoding=n||null,re.data=ee.isBuffer(e)?e.slice(t,r):ee.from(e),re.bytes=re.data.length,re.next())}re.bytes=0,re.position=0,re.data=null,re.encoding=null,re.next=function(){switch(re.data[re.position]){case 100:return re.dictionary();case 108:return re.list();case 105:return re.integer();default:return re.buffer()}},re.find=function(e){for(var t=re.position,r=re.data.length,n=re.data;t<r;){if(n[t]===e)return t;t++}throw new Error('Invalid data: Missing delimiter "'+String.fromCharCode(e)+'" [0x'+e.toString(16)+"]")},re.dictionary=function(){re.position++;for(var e={};101!==re.data[re.position];)e[re.buffer()]=re.next();return re.position++,e},re.list=function(){re.position++;for(var e=[];101!==re.data[re.position];)e.push(re.next());return re.position++,e},re.integer=function(){var e=re.find(101),t=te(re.data,re.position+1,e);return re.position+=e+1-re.position,t},re.buffer=function(){var e=re.find(58),t=te(re.data,re.position,e),r=++e+t;return re.position=r,re.encoding?re.data.toString(re.encoding,e,r):re.data.slice(e,r)},Q=re;var ne={},oe=ne;oe.encode=K,oe.decode=Q,oe.byteLength=oe.encodingLength=function(e){return oe.encode(e).length};var ie={};(function(e){(function(){ie=function(t,r){if("undefined"==typeof Blob||!(t instanceof Blob))throw new Error("first argument must be a Blob");if("function"!=typeof r)throw new Error("second argument must be a function");const n=new FileReader;n.addEventListener("loadend",(function t(o){n.removeEventListener("loadend",t,!1),o.error?r(o.error):r(null,e.from(n.result))}),!1),n.readAsArrayBuffer(t)}}).call(this)}).call(this,u({}).Buffer);var ae={},se={};(function(e){(function(){se=function(t,r){var n=[];t.on("data",(function(e){n.push(e)})),t.once("end",(function(){r&&r(null,e.concat(n)),r=null})),t.once("error",(function(e){r&&r(e),r=null}))}}).call(this)}).call(this,u({}).Buffer);var ue={},fe={};(function(e){(function(){var t;function r(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(r){t=null}}else t=null;return t}function n(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(n){}return!1}function o(e){return"function"==typeof e}fe.fetch=o(e.fetch)&&o(e.ReadableStream),fe.writableStream=o(e.WritableStream),fe.abortController=o(e.AbortController),fe.arraybuffer=fe.fetch||n("arraybuffer"),fe.msstream=!fe.fetch&&n("ms-stream"),fe.mozchunkedarraybuffer=!fe.fetch&&n("moz-chunked-arraybuffer"),fe.overrideMimeType=fe.fetch||!!r()&&o(r().overrideMimeType),t=null}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var ce={};ce="function"==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}};var le,he={},de="object"==typeof Reflect?Reflect:null,pe=de&&"function"==typeof de.apply?de.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};le=de&&"function"==typeof de.ownKeys?de.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var ye=Number.isNaN||function(e){return e!=e};function ge(){ge.init.call(this)}(he=ge).once=function(e,t){return new Promise((function(r,n){function o(){void 0!==i&&e.removeListener("error",i),r([].slice.call(arguments))}var i;"error"!==t&&(i=function(r){e.removeListener(t,o),n(r)},e.once("error",i)),e.once(t,o)}))},ge.EventEmitter=ge,ge.prototype._events=void 0,ge.prototype._eventsCount=0,ge.prototype._maxListeners=void 0;var ve=10;function be(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function me(e){return void 0===e._maxListeners?ge.defaultMaxListeners:e._maxListeners}function we(e,t,r,n){var o,i,a,s;if(be(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=me(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function _e(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(n);return o.listener=r,n.wrapFn=o,o}function Ee(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):xe(o,o.length)}function Se(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function xe(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}Object.defineProperty(ge,"defaultMaxListeners",{enumerable:!0,get:function(){return ve},set:function(e){if("number"!=typeof e||e<0||ye(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ve=e}}),ge.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ge.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||ye(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},ge.prototype.getMaxListeners=function(){return me(this)},ge.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)pe(s,this,t);else{var u=s.length,f=xe(s,u);for(r=0;r<u;++r)pe(f[r],this,t)}return!0},ge.prototype.addListener=function(e,t){return we(this,e,t,!1)},ge.prototype.on=ge.prototype.addListener,ge.prototype.prependListener=function(e,t){return we(this,e,t,!0)},ge.prototype.once=function(e,t){return be(t),this.on(e,_e(this,e,t)),this},ge.prototype.prependOnceListener=function(e,t){return be(t),this.prependListener(e,_e(this,e,t)),this},ge.prototype.removeListener=function(e,t){var r,n,o,i,a;if(be(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},ge.prototype.off=ge.prototype.removeListener,ge.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},ge.prototype.listeners=function(e){return Ee(this,e,!0)},ge.prototype.rawListeners=function(e){return Ee(this,e,!1)},ge.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Se.call(e,t)},ge.prototype.listenerCount=Se,ge.prototype.eventNames=function(){return this._eventsCount>0?le(this._events):[]};var Re=he.EventEmitter;function Ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ke(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Te(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Le,Ce,Oe=u({}).Buffer,Me=ue.inspect,je=Me&&Me.custom||"inspect",Be=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value: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}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return Oe.alloc(0);for(var t,r,n,o=Oe.allocUnsafe(e>>>0),i=this.head,a=0;i;)t=i.data,r=o,n=a,Oe.prototype.copy.call(t,r,n),a+=i.data.length,i=i.next;return o}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var o=t.data,i=e>o.length?o.length:e;if(i===o.length?n+=o:n+=o.slice(0,e),0==(e-=i)){i===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=Oe.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,i=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,i),0==(e-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(i));break}++n}return this.length-=n,t}},{key:je,value:function(e,t){return Me(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(r),!0).forEach((function(t){ke(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&Te(t.prototype,r),e}(),Ie={},Pe=Ie={};function Ue(){throw new Error("setTimeout has not been defined")}function Ne(){throw new Error("clearTimeout has not been defined")}function De(e){if(Le===setTimeout)return setTimeout(e,0);if((Le===Ue||!Le)&&setTimeout)return Le=setTimeout,setTimeout(e,0);try{return Le(e,0)}catch(t){try{return Le.call(null,e,0)}catch(t){return Le.call(this,e,0)}}}!function(){try{Le="function"==typeof setTimeout?setTimeout:Ue}catch(e){Le=Ue}try{Ce="function"==typeof clearTimeout?clearTimeout:Ne}catch(e){Ce=Ne}}();var qe,He=[],Fe=!1,We=-1;function Ge(){Fe&&qe&&(Fe=!1,qe.length?He=qe.concat(He):We=-1,He.length&&ze())}function ze(){if(!Fe){var e=De(Ge);Fe=!0;for(var t=He.length;t;){for(qe=He,He=[];++We<t;)qe&&qe[We].run();We=-1,t=He.length}qe=null,Fe=!1,function(e){if(Ce===clearTimeout)return clearTimeout(e);if((Ce===Ne||!Ce)&&clearTimeout)return Ce=clearTimeout,clearTimeout(e);try{Ce(e)}catch(t){try{return Ce.call(null,e)}catch(t){return Ce.call(this,e)}}}(e)}}function $e(e,t){this.fun=e,this.array=t}function Ke(){}Pe.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];He.push(new $e(e,t)),1!==He.length||Fe||De(ze)},$e.prototype.run=function(){this.fun.apply(null,this.array)},Pe.title="browser",Pe.browser=!0,Pe.env={},Pe.argv=[],Pe.version="",Pe.versions={},Pe.on=Ke,Pe.addListener=Ke,Pe.once=Ke,Pe.off=Ke,Pe.removeListener=Ke,Pe.removeAllListeners=Ke,Pe.emit=Ke,Pe.prependListener=Ke,Pe.prependOnceListener=Ke,Pe.listeners=function(e){return[]},Pe.binding=function(e){throw new Error("process.binding is not supported")},Pe.cwd=function(){return"/"},Pe.chdir=function(e){throw new Error("process.chdir is not supported")},Pe.umask=function(){return 0};var Ve={};(function(e){(function(){"use strict";function t(e,t){n(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}Ve={destroy:function(o,i){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(i?i(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(n,this,o)):e.nextTick(n,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,(function(n){!i&&n?a._writableState?a._writableState.errorEmitted?e.nextTick(r,a):(a._writableState.errorEmitted=!0,e.nextTick(t,a,n)):e.nextTick(t,a,n):i?(e.nextTick(r,a),i(n)):e.nextTick(r,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,Ie);var Ye={},Xe={};function Je(e,t,r){r||(r=Error);var n=function(e){var r,n;function o(r,n,o){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,o))||this}return n=e,(r=o).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,o}(r);n.prototype.name=r.name,n.prototype.code=e,Xe[e]=n}function Ze(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}Je("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),Je("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,o,i,a;if("string"==typeof t&&("not ","not "===t.substr(0,"not ".length))?(n="must not be",t=t.replace(/^not /,"")):n="must be",i=e,(void 0===a||a>i.length)&&(a=i.length)," argument"===i.substring(a-" argument".length,a))o="The ".concat(e," ").concat(n," ").concat(Ze(t,"type"));else{var s=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+".".length>e.length)&&-1!==e.indexOf(".",r)}(e)?"property":"argument";o='The "'.concat(e,'" ').concat(s," ").concat(n," ").concat(Ze(t,"type"))}return o+". Received type ".concat(typeof r)}),TypeError),Je("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Je("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),Je("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Je("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),Je("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Je("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Je("ERR_STREAM_WRITE_AFTER_END","write after end"),Je("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Je("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),Je("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ye.codes=Xe;var Qe=Ye.codes.ERR_INVALID_OPT_VALUE,et={getHighWaterMark:function(e,t,r,n){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,n,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new Qe(n?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}},tt={};(function(e){(function(){function t(t){try{if(!e.localStorage)return!1}catch(n){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}tt=function(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw new Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var rt=ct,nt=Ye.codes,ot=nt.ERR_METHOD_NOT_IMPLEMENTED,it=nt.ERR_MULTIPLE_CALLBACK,at=nt.ERR_TRANSFORM_ALREADY_TRANSFORMING,st=nt.ERR_TRANSFORM_WITH_LENGTH_0,ut=a({});function ft(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new it);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function ct(e){if(!(this instanceof ct))return new ct(e);ut.call(this,e),this._transformState={afterTransform:ft.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",lt)}function lt(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?ht(this,null,null):this._flush((function(t,r){ht(e,t,r)}))}function ht(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new st;if(e._transformState.transforming)throw new at;return e.push(null)}ce(ct,ut),ct.prototype.push=function(e,t){return this._transformState.needTransform=!1,ut.prototype.push.call(this,e,t)},ct.prototype._transform=function(e,t,r){r(new ot("_transform()"))},ct.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},ct.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},ct.prototype._destroy=function(e,t){ut.prototype._destroy.call(this,e,(function(e){t(e)}))};var dt,pt=yt;function yt(e){if(!(this instanceof yt))return new yt(e);rt.call(this,e)}ce(yt,rt),yt.prototype._transform=function(e,t,r){r(null,e)};var gt=Ye.codes,vt=gt.ERR_MISSING_ARGS,bt=gt.ERR_STREAM_DESTROYED;function mt(e){if(e)throw e}function wt(e){e()}function _t(e,t){return e.pipe(t)}var Et={};(Et=Et=t({})).Stream=Et,Et.Readable=Et,Et.Writable=s({}),Et.Duplex=a({}),Et.Transform=rt,Et.PassThrough=pt,Et.finished=o({}),Et.pipeline=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=function(e){return e.length?"function"!=typeof e[e.length-1]?mt:e.pop():mt}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new vt("streams");var a=t.map((function(e,r){var s=r<t.length-1;return function(e,t,r,n){n=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(n);var i=!1;e.on("close",(function(){i=!0})),void 0===dt&&(dt=o({})),dt(e,{readable:t,writable:r},(function(e){if(e)return n(e);i=!0,n()}));var a=!1;return function(t){if(!i&&!a)return a=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void n(t||new bt("pipe"))}}(e,s,r>0,(function(e){n||(n=e),e&&a.forEach(wt),s||(a.forEach(wt),i(n))}))}));return t.reduce(_t)};var St={};(function(e,t,r){(function(){var n=St.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o=St.IncomingMessage=function(n,o,i,a){var s=this;if(Et.Readable.call(s),s._mode=i,s.headers={},s.rawHeaders=[],s.trailers={},s.rawTrailers=[],s.on("end",(function(){e.nextTick((function(){s.emit("close")}))})),"fetch"===i){if(s._fetchResponse=o,s.url=o.url,s.statusCode=o.status,s.statusMessage=o.statusText,o.headers.forEach((function(e,t){s.headers[t.toLowerCase()]=e,s.rawHeaders.push(t,e)})),fe.writableStream){var u=new WritableStream({write:function(e){return new Promise((function(t,n){s._destroyed?n():s.push(r.from(e))?t():s._resumeFetch=t}))},close:function(){t.clearTimeout(a),s._destroyed||s.push(null)},abort:function(e){s._destroyed||s.emit("error",e)}});try{return void o.body.pipeTo(u).catch((function(e){t.clearTimeout(a),s._destroyed||s.emit("error",e)}))}catch(h){}}var f=o.body.getReader();!function e(){f.read().then((function(n){if(!s._destroyed){if(n.done)return t.clearTimeout(a),void s.push(null);s.push(r.from(n.value)),e()}})).catch((function(e){t.clearTimeout(a),s._destroyed||s.emit("error",e)}))}()}else if(s._xhr=n,s._pos=0,s.url=n.responseURL,s.statusCode=n.status,s.statusMessage=n.statusText,n.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===s.headers[r]&&(s.headers[r]=[]),s.headers[r].push(t[2])):void 0!==s.headers[r]?s.headers[r]+=", "+t[2]:s.headers[r]=t[2],s.rawHeaders.push(t[1],t[2])}})),s._charset="x-user-defined",!fe.overrideMimeType){var c=s.rawHeaders["mime-type"];if(c){var l=c.match(/;\s*charset=([^;])(;|$)/);l&&(s._charset=l[1].toLowerCase())}s._charset||(s._charset="utf-8")}};ce(o,Et.Readable),o.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},o.prototype._onXHRProgress=function(){var e=this,o=e._xhr,i=null;switch(e._mode){case"text":if((i=o.responseText).length>e._pos){var a=i.substr(e._pos);if("x-user-defined"===e._charset){for(var s=r.alloc(a.length),u=0;u<a.length;u++)s[u]=255&a.charCodeAt(u);e.push(s)}else e.push(a,e._charset);e._pos=i.length}break;case"arraybuffer":if(o.readyState!==n.DONE||!o.response)break;i=o.response,e.push(r.from(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=o.response,o.readyState!==n.LOADING||!i)break;e.push(r.from(new Uint8Array(i)));break;case"ms-stream":if(i=o.response,o.readyState!==n.LOADING)break;var f=new t.MSStreamReader;f.onprogress=function(){f.result.byteLength>e._pos&&(e.push(r.from(new Uint8Array(f.result.slice(e._pos)))),e._pos=f.result.byteLength)},f.onload=function(){e.push(null)},f.readAsArrayBuffer(i)}e._xhr.readyState===n.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this)}).call(this,Ie,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},u({}).Buffer);var xt={};(function(e,t,r){(function(){var n=St.IncomingMessage,o=St.readyStates,i=xt=function(e){var t,n=this;Et.Writable.call(n),n._opts=e,n._body=[],n._headers={},e.auth&&n.setHeader("Authorization","Basic "+r.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){n.setHeader(t,e.headers[t])}));var o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!fe.abortController)o=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!fe.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}n._mode=function(e,t){return fe.fetch&&t?"fetch":fe.mozchunkedarraybuffer?"moz-chunked-arraybuffer":fe.msstream?"ms-stream":fe.arraybuffer&&e?"arraybuffer":"text"}(t,o),n._fetchTimer=null,n.on("finish",(function(){n._onFinish()}))};ce(i,Et.Writable),i.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===a.indexOf(r)&&(this._headers[r]={name:e,value:t})},i.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},i.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},i.prototype._onFinish=function(){var r=this;if(!r._destroyed){var n=r._opts,i=r._headers,a=null;"GET"!==n.method&&"HEAD"!==n.method&&(a=new Blob(r._body,{type:(i["content-type"]||{}).value||""}));var s=[];if(Object.keys(i).forEach((function(e){var t=i[e].name,r=i[e].value;Array.isArray(r)?r.forEach((function(e){s.push([t,e])})):s.push([t,r])})),"fetch"===r._mode){var u=null;if(fe.abortController){var f=new AbortController;u=f.signal,r._fetchAbortController=f,"requestTimeout"in n&&0!==n.requestTimeout&&(r._fetchTimer=t.setTimeout((function(){r.emit("requestTimeout"),r._fetchAbortController&&r._fetchAbortController.abort()}),n.requestTimeout))}t.fetch(r._opts.url,{method:r._opts.method,headers:s,body:a||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:u}).then((function(e){r._fetchResponse=e,r._connect()}),(function(e){t.clearTimeout(r._fetchTimer),r._destroyed||r.emit("error",e)}))}else{var c=r._xhr=new t.XMLHttpRequest;try{c.open(r._opts.method,r._opts.url,!0)}catch(l){return void e.nextTick((function(){r.emit("error",l)}))}"responseType"in c&&(c.responseType=r._mode),"withCredentials"in c&&(c.withCredentials=!!n.withCredentials),"text"===r._mode&&"overrideMimeType"in c&&c.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(c.timeout=n.requestTimeout,c.ontimeout=function(){r.emit("requestTimeout")}),s.forEach((function(e){c.setRequestHeader(e[0],e[1])})),r._response=null,c.onreadystatechange=function(){switch(c.readyState){case o.LOADING:case o.DONE:r._onXHRProgress()}},"moz-chunked-arraybuffer"===r._mode&&(c.onprogress=function(){r._onXHRProgress()}),c.onerror=function(){r._destroyed||r.emit("error",new Error("XHR error"))};try{c.send(a)}catch(l){return void e.nextTick((function(){r.emit("error",l)}))}}}},i.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(r){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},i.prototype._connect=function(){var e=this;e._destroyed||(e._response=new n(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},i.prototype._write=function(e,t,r){this._body.push(e),r()},i.prototype.abort=i.prototype.destroy=function(){this._destroyed=!0,t.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},i.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),Et.Writable.prototype.end.call(this,e,t,r)},i.prototype.flushHeaders=function(){},i.prototype.setTimeout=function(){},i.prototype.setNoDelay=function(){},i.prototype.setSocketKeepAlive=function(){};var a=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this)}).call(this,Ie,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},u({}).Buffer);var Rt=Object.prototype.hasOwnProperty,At={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},kt={exports:{}};(function(e){(function(){!function(t){var r="object"==typeof kt.exports&&kt.exports&&!kt.exports.nodeType&&kt.exports,n=kt&&!kt.nodeType&&kt,o="object"==typeof e&&e;o.global!==o&&o.window!==o&&o.self!==o||(t=o);var i,a,s=2147483647,u=/^xn--/,f=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,d=String.fromCharCode;function p(e){throw new RangeError(l[e])}function y(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function g(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+y((e=e.replace(c,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function b(e){return y(e,(function(e){var t="";return e>65535&&(t+=d((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+d(e)})).join("")}function m(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,r){var n=0;for(e=r?h(e/700):e>>1,e+=h(e/t);e>455;n+=36)e=h(e/35);return h(n+36*e/(e+38))}function _(e){var t,r,n,o,i,a,u,f,c,l,d,y=[],g=e.length,v=0,m=128,_=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&p("not-basic"),y.push(e.charCodeAt(n));for(o=r>0?r+1:0;o<g;){for(i=v,a=1,u=36;o>=g&&p("invalid-input"),((f=(d=e.charCodeAt(o++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36)>=36||f>h((s-v)/a))&&p("overflow"),v+=f*a,!(f<(c=u<=_?1:u>=_+26?26:u-_));u+=36)a>h(s/(l=36-c))&&p("overflow"),a*=l;_=w(v-i,t=y.length+1,0==i),h(v/t)>s-m&&p("overflow"),m+=h(v/t),v%=t,y.splice(v++,0,m)}return b(y)}function E(e){var t,r,n,o,i,a,u,f,c,l,y,g,b,_,E,S=[];for(g=(e=v(e)).length,t=128,r=0,i=72,a=0;a<g;++a)(y=e[a])<128&&S.push(d(y));for(n=o=S.length,o&&S.push("-");n<g;){for(u=s,a=0;a<g;++a)(y=e[a])>=t&&y<u&&(u=y);for(u-t>h((s-r)/(b=n+1))&&p("overflow"),r+=(u-t)*b,t=u,a=0;a<g;++a)if((y=e[a])<t&&++r>s&&p("overflow"),y==t){for(f=r,c=36;!(f<(l=c<=i?1:c>=i+26?26:c-i));c+=36)E=f-l,_=36-l,S.push(d(m(l+E%_,0))),f=h(E/_);S.push(d(m(f,0))),i=w(r,b,n==o),r=0,++n}++r,++t}return S.join("")}if(i={version:"1.4.1",ucs2:{decode:v,encode:b},decode:_,encode:E,toASCII:function(e){return g(e,(function(e){return f.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return g(e,(function(e){return u.test(e)?_(e.slice(4).toLowerCase()):e}))}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",(function(){return i}));else if(r&&n)if(kt.exports==r)n.exports=i;else for(a in i)i.hasOwnProperty(a)&&(r[a]=i[a]);else t.punycode=i}(this)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),kt=kt.exports;var Tt=function(e){return"string"==typeof e},Lt=function(e){return"object"==typeof e&&null!==e},Ct=function(e){return null===e},Ot=function(e){return null==e};function Mt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var jt=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},Bt=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},It=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Pt(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var Ut=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},Nt={parse:function(e,t,r,n){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(t);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var u=0;u<s;++u){var f,c,l,h,d=e[u].replace(i,"%20"),p=d.indexOf(r);p>=0?(f=d.substr(0,p),c=d.substr(p+1)):(f=d,c=""),l=decodeURIComponent(f),h=decodeURIComponent(c),Mt(o,l)?jt(o[l])?o[l].push(h):o[l]=[o[l],h]:o[l]=h}return o},stringify:function(e,t,r,n){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Pt(Ut(e),(function(n){var o=encodeURIComponent(Bt(n))+r;return It(e[n])?Pt(e[n],(function(e){return o+encodeURIComponent(Bt(e))})).join(t):o+encodeURIComponent(Bt(e[n]))})).join(t):n?encodeURIComponent(Bt(n))+r+encodeURIComponent(Bt(e)):""}},Dt={};function qt(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}Dt.parse=Qt;var Ht=/^([a-z0-9.+-]+:)/i,Ft=/:[0-9]*$/,Wt=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Gt=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),zt=["'"].concat(Gt),$t=["%","/","?",";","#"].concat(zt),Kt=["/","?","#"],Vt=/^[+a-z0-9A-Z_-]{0,63}$/,Yt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Xt={javascript:!0,"javascript:":!0},Jt={javascript:!0,"javascript:":!0},Zt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Qt(e,t,r){if(e&&Lt(e)&&e instanceof qt)return e;var n=new qt;return n.parse(e,t,r),n}qt.prototype.parse=function(e,t,r){if(!Tt(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),o=-1!==n&&n<e.indexOf("#")?"?":"#",i=e.split(o);i[0]=i[0].replace(/\\/g,"/");var a=e=i.join(o);if(a=a.trim(),!r&&1===e.split("#").length){var s=Wt.exec(a);if(s)return this.path=a,this.href=a,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?Nt.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=Ht.exec(a);if(u){var f=(u=u[0]).toLowerCase();this.protocol=f,a=a.substr(u.length)}if(r||u||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var c="//"===a.substr(0,2);!c||u&&Jt[u]||(a=a.substr(2),this.slashes=!0)}if(!Jt[u]&&(c||u&&!Zt[u])){for(var l,h,d=-1,p=0;p<Kt.length;p++)-1!==(y=a.indexOf(Kt[p]))&&(-1===d||y<d)&&(d=y);for(-1!==(h=-1===d?a.lastIndexOf("@"):a.lastIndexOf("@",d))&&(l=a.slice(0,h),a=a.slice(h+1),this.auth=decodeURIComponent(l)),d=-1,p=0;p<$t.length;p++){var y;-1!==(y=a.indexOf($t[p]))&&(-1===d||y<d)&&(d=y)}-1===d&&(d=a.length),this.host=a.slice(0,d),a=a.slice(d),this.parseHost(),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g)for(var v=this.hostname.split(/\./),b=(p=0,v.length);p<b;p++){var m=v[p];if(m&&!m.match(Vt)){for(var w="",_=0,E=m.length;_<E;_++)m.charCodeAt(_)>127?w+="x":w+=m[_];if(!w.match(Vt)){var S=v.slice(0,p),x=v.slice(p+1),R=m.match(Yt);R&&(S.push(R[1]),x.unshift(R[2])),x.length&&(a="/"+x.join(".")+a),this.hostname=S.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),g||(this.hostname=kt.toASCII(this.hostname));var A=this.port?":"+this.port:"",k=this.hostname||"";this.host=k+A,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!Xt[f])for(p=0,b=zt.length;p<b;p++){var T=zt[p];if(-1!==a.indexOf(T)){var L=encodeURIComponent(T);L===T&&(L=escape(T)),a=a.split(T).join(L)}}var C=a.indexOf("#");-1!==C&&(this.hash=a.substr(C),a=a.slice(0,C));var O=a.indexOf("?");if(-1!==O?(this.search=a.substr(O),this.query=a.substr(O+1),t&&(this.query=Nt.parse(this.query)),a=a.slice(0,O)):t&&(this.search="",this.query={}),a&&(this.pathname=a),Zt[f]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){A=this.pathname||"";var M=this.search||"";this.path=A+M}return this.href=this.format(),this},qt.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&Lt(this.query)&&Object.keys(this.query).length&&(i=Nt.stringify(this.query));var a=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||Zt[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+o+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+n},qt.prototype.resolve=function(e){return this.resolveObject(Qt(e,!1,!0)).format()},qt.prototype.resolveObject=function(e){if(Tt(e)){var t=new qt;t.parse(e,!1,!0),e=t}for(var r=new qt,n=Object.keys(this),o=0;o<n.length;o++){var i=n[o];r[i]=this[i]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var u=a[s];"protocol"!==u&&(r[u]=e[u])}return Zt[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!Zt[e.protocol]){for(var f=Object.keys(e),c=0;c<f.length;c++){var l=f[c];r[l]=e[l]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||Jt[e.protocol])r.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",p=r.search||"";r.path=d+p}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var y=r.pathname&&"/"===r.pathname.charAt(0),g=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=g||y||r.host&&e.pathname,b=v,m=r.pathname&&r.pathname.split("/")||[],w=(h=e.pathname&&e.pathname.split("/")||[],r.protocol&&!Zt[r.protocol]);if(w&&(r.hostname="",r.port=null,r.host&&(""===m[0]?m[0]=r.host:m.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),v=v&&(""===h[0]||""===m[0])),g)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,m=h;else if(h.length)m||(m=[]),m.pop(),m=m.concat(h),r.search=e.search,r.query=e.query;else if(!Ot(e.search))return w&&(r.hostname=r.host=m.shift(),(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),r.search=e.search,r.query=e.query,Ct(r.pathname)&&Ct(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!m.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var _=m.slice(-1)[0],E=(r.host||e.host||m.length>1)&&("."===_||".."===_)||""===_,S=0,x=m.length;x>=0;x--)"."===(_=m[x])?m.splice(x,1):".."===_?(m.splice(x,1),S++):S&&(m.splice(x,1),S--);if(!v&&!b)for(;S--;S)m.unshift("..");!v||""===m[0]||m[0]&&"/"===m[0].charAt(0)||m.unshift(""),E&&"/"!==m.join("/").substr(-1)&&m.push("");var R,A=""===m[0]||m[0]&&"/"===m[0].charAt(0);return w&&(r.hostname=r.host=A?"":m.length?m.shift():"",(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),(v=v||r.host&&m.length)&&!A&&m.unshift(""),m.length?r.pathname=m.join("/"):(r.pathname=null,r.path=null),Ct(r.pathname)&&Ct(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},qt.prototype.parseHost=function(){var e=this.host,t=Ft.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var er={};(function(e){(function(){var t=er;t.request=function(t,r){t="string"==typeof t?Dt.parse(t):function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)Rt.call(r,n)&&(e[n]=r[n])}return e}(t);var n=-1===e.location.protocol.search(/^https?:$/)?"http:":"",o=t.protocol||n,i=t.hostname||t.host,a=t.port,s=t.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),t.url=(i?o+"//"+i:"")+(a?":"+a:"")+s,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var u=new xt(t);return r&&u.on("response",r),u},t.get=function(e,r){var n=t.request(e,r);return n.end(),n},t.ClientRequest=xt,t.IncomingMessage=St.IncomingMessage,t.Agent=function(){},t.Agent.defaultMaxSockets=4,t.globalAgent=new t.Agent,t.STATUS_CODES=At,t.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var tr={},rr=tr;for(var nr in er)er.hasOwnProperty(nr)&&(rr[nr]=er[nr]);function or(e){if("string"==typeof e&&(e=Dt.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}rr.request=function(e,t){return e=or(e),er.request.call(this,e,t)},rr.get=function(e,t){return e=or(e),er.get.call(this,e,t)};var ir=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),o=e[e.length-1];return"function"==typeof n&&n!==o&&Object.keys(o).forEach((function(e){n[e]=o[e]})),n}},ar={};function sr(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function ur(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}(ar=ir(sr)).strict=ir(ur),sr.proto=sr((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return sr(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return ur(this)},configurable:!0})}));var fr={};(function(e){(function(){fr=r;const t=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;function r(n,o){if(n=Object.assign({maxRedirects:10},"string"==typeof n?{url:n}:n),o=ar(o),n.url){const{hostname:e,port:t,protocol:r,auth:o,path:i}=Dt.parse(n.url);delete n.url,e||t||r||o?Object.assign(n,{hostname:e,port:t,protocol:r,auth:o,path:i}):n.path=i}const i={"accept-encoding":"gzip, deflate"};let a;n.headers&&Object.keys(n.headers).forEach(e=>i[e.toLowerCase()]=n.headers[e]),n.headers=i,n.body?a=n.json&&!t(n.body)?JSON.stringify(n.body):n.body:n.form&&(a="string"==typeof n.form?n.form:Nt.stringify(n.form),n.headers["content-type"]="application/x-www-form-urlencoded"),a&&(n.method||(n.method="POST"),t(a)||(n.headers["content-length"]=e.byteLength(a)),n.json&&!n.form&&(n.headers["content-type"]="application/json")),delete n.body,delete n.form,n.json&&(n.headers.accept="application/json"),n.method&&(n.method=n.method.toUpperCase());const s=("https:"===n.protocol?tr:er).request(n,e=>{if(!1!==n.followRedirects&&e.statusCode>=300&&e.statusCode<400&&e.headers.location)return n.url=e.headers.location,delete n.headers.host,e.resume(),"POST"===n.method&&[301,302].includes(e.statusCode)&&(n.method="GET",delete n.headers["content-length"],delete n.headers["content-type"]),0==n.maxRedirects--?o(new Error("too many redirects")):r(n,o);const t="function"==typeof ue&&"HEAD"!==n.method;o(null,t?ue(e):e)});return s.on("timeout",()=>{s.abort(),o(new Error("Request timed out"))}),s.on("error",o),t(a)?a.on("error",o).pipe(s):s.end(a),s}r.concat=(e,t)=>r(e,(r,n)=>{if(r)return t(r);se(n,(r,o)=>{if(r)return t(r);if(e.json)try{o=JSON.parse(o.toString())}catch(r){return t(r,n,o)}t(null,n,o)})}),["get","post","put","patch","head","delete"].forEach(e=>{r[e]=(t,n)=>("string"==typeof t&&(t={url:t}),r(Object.assign({method:e.toUpperCase()},t),n))})}).call(this)}).call(this,u({}).Buffer);var cr={};(function(e){(function(){"use strict";var t=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];cr.decode=function(r){var n,o=0,i=0,a=0;e.isBuffer(r)||(r=new e(r));for(var s=new e(Math.ceil(5*r.length/8)),u=0;u<r.length&&61!==r[u];u++){var f=r[u]-48;if(!(f<t.length))throw new Error("Invalid input - it is not base32 encoded string");i=t[f],o<=3?0==(o=(o+5)%8)?(n|=i,s[a]=n,a++,n=0):n|=255&i<<8-o:(n|=255&i>>>(o=(o+5)%8),s[a]=n,a++,n=255&i<<8-o)}return s.slice(0,a)}}).call(this)}).call(this,u({}).Buffer);var lr={};cr.encode,lr.decode=cr.decode;var hr={};function dr(e){return e.reduce((e,t,r,n)=>{const o=t.split("-").map(e=>parseInt(e));return e.concat(((e,t=e)=>Array.from({length:t-e+1},(t,r)=>r+e))(...o))},[])}(hr=dr).parse=dr,hr.compose=function(e){return e.reduce((e,t,r,n)=>(0!==r&&t===n[r-1]+1||e.push([]),e[e.length-1].push(t),e),[]).map(e=>e.length>1?`${e[0]}-${e[e.length-1]}`:""+e[0])};var pr={};(function(e){(function(){function t(t){const r={},n=t.split("magnet:?")[1];let o;return(n&&n.length>=0?n.split("&"):[]).forEach(e=>{const t=e.split("=");if(2!==t.length)return;const n=t[0];let o=t[1];"dn"===n&&(o=decodeURIComponent(o).replace(/\+/g," ")),"tr"!==n&&"xs"!==n&&"as"!==n&&"ws"!==n||(o=decodeURIComponent(o)),"kt"===n&&(o=decodeURIComponent(o).split("+")),"ix"===n&&(o=Number(o)),"so"===n&&(o=hr.parse(decodeURIComponent(o).split(","))),r[n]?(Array.isArray(r[n])||(r[n]=[r[n]]),r[n].push(o)):r[n]=o}),r.xt&&(Array.isArray(r.xt)?r.xt:[r.xt]).forEach(t=>{if(o=t.match(/^urn:btih:(.{40})/))r.infoHash=o[1].toLowerCase();else if(o=t.match(/^urn:btih:(.{32})/)){const t=lr.decode(o[1]);r.infoHash=e.from(t,"binary").toString("hex")}}),r.xs&&(Array.isArray(r.xs)?r.xs:[r.xs]).forEach(e=>{(o=e.match(/^urn:btpk:(.{64})/))&&(r.publicKey=o[1].toLowerCase())}),r.infoHash&&(r.infoHashBuffer=e.from(r.infoHash,"hex")),r.publicKey&&(r.publicKeyBuffer=e.from(r.publicKey,"hex")),r.dn&&(r.name=r.dn),r.kt&&(r.keywords=r.kt),r.announce=[],("string"==typeof r.tr||Array.isArray(r.tr))&&(r.announce=r.announce.concat(r.tr)),r.urlList=[],("string"==typeof r.as||Array.isArray(r.as))&&(r.urlList=r.urlList.concat(r.as)),("string"==typeof r.ws||Array.isArray(r.ws))&&(r.urlList=r.urlList.concat(r.ws)),r.peerAddresses=[],("string"==typeof r["x.pe"]||Array.isArray(r["x.pe"]))&&(r.peerAddresses=r.peerAddresses.concat(r["x.pe"])),r.announce=Array.from(new Set(r.announce)),r.urlList=Array.from(new Set(r.urlList)),r.peerAddresses=Array.from(new Set(r.peerAddresses)),r}(pr=t).decode=t,pr.encode=function(e){(e=Object.assign({},e)).infoHashBuffer&&(e.xt="urn:btih:"+e.infoHashBuffer.toString("hex")),e.infoHash&&(e.xt="urn:btih:"+e.infoHash),e.publicKeyBuffer&&(e.xs="urn:btpk:"+e.publicKeyBuffer.toString("hex")),e.publicKey&&(e.xs="urn:btpk:"+e.publicKey),e.name&&(e.dn=e.name),e.keywords&&(e.kt=e.keywords),e.announce&&(e.tr=e.announce),e.urlList&&(e.ws=e.urlList,delete e.as),e.peerAddresses&&(e["x.pe"]=e.peerAddresses);let t="magnet:?";return Object.keys(e).filter(e=>2===e.length||"x.pe"===e).forEach((r,n)=>{const o=Array.isArray(e[r])?e[r]:[e[r]];o.forEach((e,o)=>{(n>0||o>0)&&("kt"!==r&&"so"!==r||0===o)&&(t+="&"),"dn"===r&&(e=encodeURIComponent(e).replace(/%20/g,"+")),"tr"!==r&&"as"!==r&&"ws"!==r||(e=encodeURIComponent(e)),"xs"!==r||e.startsWith("urn:btpk:")||(e=encodeURIComponent(e)),"kt"===r&&(e=encodeURIComponent(e)),"so"!==r&&(t+="kt"===r&&o>0?"+"+e:`${r}=${e}`)}),"so"===r&&(t+=`${r}=${hr.compose(o)}`)}),t}}).call(this)}).call(this,u({}).Buffer);var yr={};(function(e){(function(){"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",o=0,i=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(i===s-1||1===a);else if(i!==s-1&&2===a){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){-1===u?(n="",o=0):o=(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),i=s,a=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=s,a=0;continue}t&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var n={resolve:function(){for(var n,o="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var s;a>=0?s=arguments[a]:(void 0===n&&(n=e.cwd()),s=n),t(s),0!==s.length&&(o=s+"/"+o,i=47===s.charCodeAt(0))}return o=r(o,!i),i?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&o&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var o=arguments[r];t(o),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r)return"";if((e=n.resolve(e))===(r=n.resolve(r)))return"";for(var o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var i=e.length,a=i-o,s=1;s<r.length&&47===r.charCodeAt(s);++s);for(var u=r.length-s,f=a<u?a:u,c=-1,l=0;l<=f;++l){if(l===f){if(u>f){if(47===r.charCodeAt(s+l))return r.slice(s+l+1);if(0===l)return r.slice(s+l)}else a>f&&(47===e.charCodeAt(o+l)?c=l:0===l&&(c=0));break}var h=e.charCodeAt(o+l);if(h!==r.charCodeAt(s+l))break;47===h&&(c=l)}var d="";for(l=o+c+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===d.length?d+="..":d+="/..");return d.length>0?d+r.slice(s+c):(s+=c,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,o=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(r=e.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return-1===o?n?"/":".":n&&1===o?"//":e.slice(0,o)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');t(e);var n,o=0,i=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var s=r.length-1,u=-1;for(n=e.length-1;n>=0;--n){var f=e.charCodeAt(n);if(47===f){if(!a){o=n+1;break}}else-1===u&&(a=!1,u=n+1),s>=0&&(f===r.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=u))}return o===i?i=u:-1===i&&(i=e.length),e.slice(o,i)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){o=n+1;break}}else-1===i&&(a=!1,i=n+1);return-1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var r=-1,n=0,o=-1,i=!0,a=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(47!==u)-1===o&&(i=!1,o=s+1),46===u?-1===r?r=s:1!==a&&(a=1):-1!==r&&(a=-1);else if(!i){n=s+1;break}}return-1===r||-1===o||0===a||1===a&&r===o-1&&r===n+1?"":e.slice(r,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n}(0,e)},parse:function(e){t(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n,o=e.charCodeAt(0),i=47===o;i?(r.root="/",n=1):n=0;for(var a=-1,s=0,u=-1,f=!0,c=e.length-1,l=0;c>=n;--c)if(47!==(o=e.charCodeAt(c)))-1===u&&(f=!1,u=c+1),46===o?-1===a?a=c:1!==l&&(l=1):-1!==a&&(l=-1);else if(!f){s=c+1;break}return-1===a||-1===u||0===l||1===l&&a===u-1&&a===s+1?-1!==u&&(r.base=r.name=0===s&&i?e.slice(1,u):e.slice(s,u)):(0===s&&i?(r.name=e.slice(1,a),r.base=e.slice(1,u)):(r.name=e.slice(s,a),r.base=e.slice(s,u)),r.ext=e.slice(a,u)),s>0?r.dir=e.slice(0,s-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,yr=n}).call(this)}).call(this,Ie);var gr,vr,br,mr,wr,_r={exports:{}};gr="undefined"!=typeof self?self:this,vr=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([function(e,t,r){var n=r(5),o=r(1),i=o.toHex,a=o.ceilHeapSize,s=r(6),u=function(e){for(e+=9;e%64>0;e+=1);return e},f=function(e,t){var r=new Int32Array(e,t+320,5),n=new Int32Array(5),o=new DataView(n.buffer);return o.setInt32(0,r[0],!1),o.setInt32(4,r[1],!1),o.setInt32(8,r[2],!1),o.setInt32(12,r[3],!1),o.setInt32(16,r[4],!1),n},c=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=t||65536)%64>0)throw new Error("Chunk size must be a multiple of 128 bit");this._offset=0,this._maxChunkLen=t,this._padMaxChunkLen=u(t),this._heap=new ArrayBuffer(a(this._padMaxChunkLen+320+20)),this._h32=new Int32Array(this._heap),this._h8=new Int8Array(this._heap),this._core=new n({Int32Array:Int32Array},{},this._heap)}return e.prototype._initState=function(e,t){this._offset=0;var r=new Int32Array(e,t+320,5);r[0]=1732584193,r[1]=-271733879,r[2]=-1732584194,r[3]=271733878,r[4]=-1009589776},e.prototype._padChunk=function(e,t){var r=u(e),n=new Int32Array(this._heap,0,r>>2);return function(e,t){var r=new Uint8Array(e.buffer),n=t%4,o=t-n;switch(n){case 0:r[o+3]=0;case 1:r[o+2]=0;case 2:r[o+1]=0;case 3:r[o+0]=0}for(var i=1+(t>>2);i<e.length;i++)e[i]=0}(n,e),function(e,t,r){e[t>>2]|=128<<24-(t%4<<3),e[14+(2+(t>>2)&-16)]=r/(1<<29)|0,e[15+(2+(t>>2)&-16)]=r<<3}(n,e,t),r},e.prototype._write=function(e,t,r,n){s(e,this._h8,this._h32,t,r,n||0)},e.prototype._coreCall=function(e,t,r,n,o){var i=r;this._write(e,t,r),o&&(i=this._padChunk(r,n)),this._core.hash(i,this._padMaxChunkLen)},e.prototype.rawDigest=function(e){var t=e.byteLength||e.length||e.size||0;this._initState(this._heap,this._padMaxChunkLen);var r=0,n=this._maxChunkLen;for(r=0;t>r+n;r+=n)this._coreCall(e,r,n,t,!1);return this._coreCall(e,r,t-r,t,!0),f(this._heap,this._padMaxChunkLen)},e.prototype.digest=function(e){return i(this.rawDigest(e).buffer)},e.prototype.digestFromString=function(e){return this.digest(e)},e.prototype.digestFromBuffer=function(e){return this.digest(e)},e.prototype.digestFromArrayBuffer=function(e){return this.digest(e)},e.prototype.resetState=function(){return this._initState(this._heap,this._padMaxChunkLen),this},e.prototype.append=function(e){var t=0,r=e.byteLength||e.length||e.size||0,n=this._offset%this._maxChunkLen,o=void 0;for(this._offset+=r;t<r;)o=Math.min(r-t,this._maxChunkLen-n),this._write(e,t,o,n),t+=o,(n+=o)===this._maxChunkLen&&(this._core.hash(this._maxChunkLen,this._padMaxChunkLen),n=0);return this},e.prototype.getState=function(){var e=void 0;if(this._offset%this._maxChunkLen)e=this._heap.slice(0);else{var t=new Int32Array(this._heap,this._padMaxChunkLen+320,5);e=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}return{offset:this._offset,heap:e}},e.prototype.setState=function(e){return this._offset=e.offset,20===e.heap.byteLength?new Int32Array(this._heap,this._padMaxChunkLen+320,5).set(new Int32Array(e.heap)):this._h32.set(new Int32Array(e.heap)),this},e.prototype.rawEnd=function(){var e=this._offset,t=e%this._maxChunkLen,r=this._padChunk(t,e);this._core.hash(r,this._padMaxChunkLen);var n=f(this._heap,this._padMaxChunkLen);return this._initState(this._heap,this._padMaxChunkLen),n},e.prototype.end=function(){return i(this.rawEnd().buffer)},e}();e.exports=c,e.exports._core=n},function(e,t){for(var r=new Array(256),n=0;n<256;n++)r[n]=(n<16?"0":"")+n.toString(16);e.exports.toHex=function(e){for(var t=new Uint8Array(e),n=new Array(e.byteLength),o=0;o<n.length;o++)n[o]=r[t[o]];return n.join("")},e.exports.ceilHeapSize=function(e){var t=0;if(e<=65536)return 65536;if(e<16777216)for(t=1;t<e;t<<=1);else for(t=16777216;t<e;t+=16777216);return t},e.exports.isDedicatedWorkerScope=function(e){var t="WorkerGlobalScope"in e&&e instanceof e.WorkerGlobalScope,r="SharedWorkerGlobalScope"in e&&e instanceof e.SharedWorkerGlobalScope,n="ServiceWorkerGlobalScope"in e&&e instanceof e.ServiceWorkerGlobalScope;return t&&!r&&!n}},function(e,t,r){e.exports=function(){var e=r(0),t=function(e,r,n,o,i){var a=new self.FileReader;a.onloadend=function(){if(a.error)return i(a.error);var s=a.result;r+=a.result.byteLength;try{e.append(s)}catch(u){return void i(u)}r<o.size?t(e,r,n,o,i):i(null,e.end())},a.readAsArrayBuffer(o.slice(r,r+n))},n=!0;return self.onmessage=function(r){if(n){var o=r.data.data,i=r.data.file,a=r.data.id;if(void 0!==a&&(i||o)){var s=r.data.blockSize||4194304,u=new e(s);u.resetState();var f=function(e,t){e?self.postMessage({id:a,error:e.name}):self.postMessage({id:a,hash:t})};o&&function(e,t,r){try{r(null,e.digest(t))}catch(n){return r(n)}}(u,o,f),i&&t(u,0,s,i,f)}}},function(){n=!1}}},function(e,t,r){var n=r(4),o=r(0),i=r(7),a=r(2),s=r(1).isDedicatedWorkerScope,u="undefined"!=typeof self&&s(self);o.disableWorkerBehaviour=u?a():function(){},o.createWorker=function(){var e=n(2),t=e.terminate;return e.terminate=function(){URL.revokeObjectURL(e.objectURL),t.call(e)},e},o.createHash=i,e.exports=o},function(e,t,r){function n(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r.oe=function(e){throw console.error(e),e};var n=r(r.s=ENTRY_MODULE);return n.default||n}function o(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function i(e,t,n){var i={};i[n]=[];var a=t.toString(),s=a.match(/^function\s?\(\w+,\s*\w+,\s*(\w+)\)/);if(!s)return i;for(var u,f=s[1],c=new RegExp("(\\\\n|\\W)"+o(f)+"\\((/\\*.*?\\*/)?s?.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)","g");u=c.exec(a);)"dll-reference"!==u[3]&&i[n].push(u[3]);for(c=new RegExp("\\("+o(f)+'\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)\\((/\\*.*?\\*/)?s?.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)',"g");u=c.exec(a);)e[u[2]]||(i[n].push(u[1]),e[u[2]]=r(u[1]).m),i[u[2]]=i[u[2]]||[],i[u[2]].push(u[4]);return i}function a(e){return Object.keys(e).reduce((function(t,r){return t||e[r].length>0}),!1)}e.exports=function(e,t){t=t||{};var o={main:r.m},s=t.all?{main:Object.keys(o)}:function(e,t){for(var r={main:[t]},n={main:[]},o={main:{}};a(r);)for(var s=Object.keys(r),u=0;u<s.length;u++){var f=s[u],c=r[f].pop();if(o[f]=o[f]||{},!o[f][c]&&e[f][c]){o[f][c]=!0,n[f]=n[f]||[],n[f].push(c);for(var l=i(e,e[f][c],f),h=Object.keys(l),d=0;d<h.length;d++)r[h[d]]=r[h[d]]||[],r[h[d]]=r[h[d]].concat(l[h[d]])}}return n}(o,e),u="";Object.keys(s).filter((function(e){return"main"!==e})).forEach((function(e){for(var t=0;s[e][t];)t++;s[e].push(t),o[e][t]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",u=u+"var "+e+" = ("+n.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+s[e].map((function(t){return JSON.stringify(t)+": "+o[e][t].toString()})).join(",")+"});\n"})),u=u+"("+n.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+s.main.map((function(e){return JSON.stringify(e)+": "+o.main[e].toString()})).join(",")+"})(self);";var f=new window.Blob([u],{type:"text/javascript"});if(t.bare)return f;var c=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(f),l=new window.Worker(c);return l.objectURL=c,l}},function(e,t){e.exports=function(e,t,r){"use asm";var n=new e.Int32Array(r);function o(e,t){e=e|0;t=t|0;var r=0,o=0,i=0,a=0,s=0,u=0,f=0,c=0,l=0,h=0,d=0,p=0,y=0,g=0;i=n[t+320>>2]|0;s=n[t+324>>2]|0;f=n[t+328>>2]|0;l=n[t+332>>2]|0;d=n[t+336>>2]|0;for(r=0;(r|0)<(e|0);r=r+64|0){a=i;u=s;c=f;h=l;p=d;for(o=0;(o|0)<64;o=o+4|0){g=n[r+o>>2]|0;y=((i<<5|i>>>27)+(s&f|~s&l)|0)+((g+d|0)+1518500249|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[e+o>>2]=g}for(o=e+64|0;(o|0)<(e+80|0);o=o+4|0){g=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;y=((i<<5|i>>>27)+(s&f|~s&l)|0)+((g+d|0)+1518500249|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[o>>2]=g}for(o=e+80|0;(o|0)<(e+160|0);o=o+4|0){g=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;y=((i<<5|i>>>27)+(s^f^l)|0)+((g+d|0)+1859775393|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[o>>2]=g}for(o=e+160|0;(o|0)<(e+240|0);o=o+4|0){g=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;y=((i<<5|i>>>27)+(s&f|s&l|f&l)|0)+((g+d|0)-1894007588|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[o>>2]=g}for(o=e+240|0;(o|0)<(e+320|0);o=o+4|0){g=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;y=((i<<5|i>>>27)+(s^f^l)|0)+((g+d|0)-899497514|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[o>>2]=g}i=i+a|0;s=s+u|0;f=f+c|0;l=l+h|0;d=d+p|0}n[t+320>>2]=i;n[t+324>>2]=s;n[t+328>>2]=f;n[t+332>>2]=l;n[t+336>>2]=d}return{hash:o}}},function(e,t){var r=this,n=void 0;"undefined"!=typeof self&&void 0!==self.FileReaderSync&&(n=new self.FileReaderSync);var o=function(e,t,r,n,o,i){var a=void 0,s=i%4,u=(o+s)%4,f=o-u;switch(s){case 0:t[i]=e[n+3];case 1:t[i+1-(s<<1)|0]=e[n+2];case 2:t[i+2-(s<<1)|0]=e[n+1];case 3:t[i+3-(s<<1)|0]=e[n]}if(!(o<u+(4-s))){for(a=4-s;a<f;a=a+4|0)r[i+a>>2|0]=e[n+a]<<24|e[n+a+1]<<16|e[n+a+2]<<8|e[n+a+3];switch(u){case 3:t[i+f+1|0]=e[n+f+2];case 2:t[i+f+2|0]=e[n+f+1];case 1:t[i+f+3|0]=e[n+f]}}};e.exports=function(e,t,i,a,s,u){if("string"==typeof e)return function(e,t,r,n,o,i){var a=void 0,s=i%4,u=(o+s)%4,f=o-u;switch(s){case 0:t[i]=e.charCodeAt(n+3);case 1:t[i+1-(s<<1)|0]=e.charCodeAt(n+2);case 2:t[i+2-(s<<1)|0]=e.charCodeAt(n+1);case 3:t[i+3-(s<<1)|0]=e.charCodeAt(n)}if(!(o<u+(4-s))){for(a=4-s;a<f;a=a+4|0)r[i+a>>2]=e.charCodeAt(n+a)<<24|e.charCodeAt(n+a+1)<<16|e.charCodeAt(n+a+2)<<8|e.charCodeAt(n+a+3);switch(u){case 3:t[i+f+1|0]=e.charCodeAt(n+f+2);case 2:t[i+f+2|0]=e.charCodeAt(n+f+1);case 1:t[i+f+3|0]=e.charCodeAt(n+f)}}}(e,t,i,a,s,u);if(e instanceof Array)return o(e,t,i,a,s,u);if(r&&r.Buffer&&r.Buffer.isBuffer(e))return o(e,t,i,a,s,u);if(e instanceof ArrayBuffer)return o(new Uint8Array(e),t,i,a,s,u);if(e.buffer instanceof ArrayBuffer)return o(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t,i,a,s,u);if(e instanceof Blob)return function(e,t,r,o,i,a){var s=void 0,u=a%4,f=(i+u)%4,c=i-f,l=new Uint8Array(n.readAsArrayBuffer(e.slice(o,o+i)));switch(u){case 0:t[a]=l[3];case 1:t[a+1-(u<<1)|0]=l[2];case 2:t[a+2-(u<<1)|0]=l[1];case 3:t[a+3-(u<<1)|0]=l[0]}if(!(i<f+(4-u))){for(s=4-u;s<c;s=s+4|0)r[a+s>>2|0]=l[s]<<24|l[s+1]<<16|l[s+2]<<8|l[s+3];switch(f){case 3:t[a+c+1|0]=l[c+2];case 2:t[a+c+2|0]=l[c+1];case 1:t[a+c+3|0]=l[c]}}}(e,t,i,a,s,u);throw new Error("Unsupported data type.")}},function(e,t,r){var n=r(0),o=r(1).toHex,i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._rusha=new n,this._rusha.resetState()}return e.prototype.update=function(e){return this._rusha.append(e),this},e.prototype.digest=function(e){var t=this._rusha.rawEnd().buffer;if(!e)return t;if("hex"===e)return o(t);throw new Error("unsupported digest encoding")},e}();e.exports=function(){return new i}}])},"object"==typeof _r.exports?_r.exports=vr():"function"==typeof define&&define.amd?define([],vr):"object"==typeof _r.exports?_r.exports.Rusha=vr():gr.Rusha=vr(),_r=_r.exports;var Er,Sr=new _r,xr="undefined"!=typeof window?window:self,Rr=xr.crypto||xr.msCrypto||{},Ar=Rr.subtle||Rr.webkitSubtle;function kr(e){return Sr.digest(e)}try{Ar.digest({name:"sha-1"},new Uint8Array).catch((function(){Ar=!1}))}catch(Ir){Ar=!1}(Er=function(e,t){Ar?("string"==typeof e&&(e=function(e){for(var t=e.length,r=new Uint8Array(t),n=0;n<t;n++)r[n]=e.charCodeAt(n);return r}(e)),Ar.digest({name:"sha-1"},e).then((function(e){t(function(e){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")}(new Uint8Array(e)))}),(function(){t(kr(e))}))):"undefined"!=typeof window?function(e,t){br||(br=_r.createWorker(),mr=1,wr={},br.onmessage=function(e){var t=e.data.id,r=wr[t];delete wr[t],null!=e.data.error?r(new Error("Rusha worker error: "+e.data.error)):r(null,e.data.hash)}),wr[mr]=t,br.postMessage({id:mr,data:e}),mr+=1}(e,(function(r,n){t(r?kr(e):n)})):queueMicrotask(()=>t(kr(e)))}).sync=kr;var Tr={};(function(e,t){(function(){function r(e){if("string"==typeof e&&/^(stream-)?magnet:/.test(e)){const t=pr(e);if(!t.infoHash)throw new Error("Invalid torrent identifier");return t}if("string"==typeof e&&(/^[a-f0-9]{40}$/i.test(e)||/^[a-z2-7]{32}$/i.test(e)))return pr("magnet:?xt=urn:btih:"+e);if(t.isBuffer(e)&&20===e.length)return pr("magnet:?xt=urn:btih:"+e.toString("hex"));if(t.isBuffer(e))return function(e){t.isBuffer(e)&&(e=ne.decode(e)),o(e.info,"info"),o(e.info["name.utf-8"]||e.info.name,"info.name"),o(e.info["piece length"],"info['piece length']"),o(e.info.pieces,"info.pieces"),e.info.files?e.info.files.forEach(e=>{o("number"==typeof e.length,"info.files[0].length"),o(e["path.utf-8"]||e.path,"info.files[0].path")}):o("number"==typeof e.info.length,"info.length");const r={info:e.info,infoBuffer:ne.encode(e.info),name:(e.info["name.utf-8"]||e.info.name).toString(),announce:[]};r.infoHash=Er.sync(r.infoBuffer),r.infoHashBuffer=t.from(r.infoHash,"hex"),void 0!==e.info.private&&(r.private=!!e.info.private),e["creation date"]&&(r.created=new Date(1e3*e["creation date"])),e["created by"]&&(r.createdBy=e["created by"].toString()),t.isBuffer(e.comment)&&(r.comment=e.comment.toString()),Array.isArray(e["announce-list"])&&e["announce-list"].length>0?e["announce-list"].forEach(e=>{e.forEach(e=>{r.announce.push(e.toString())})}):e.announce&&r.announce.push(e.announce.toString()),t.isBuffer(e["url-list"])&&(e["url-list"]=e["url-list"].length>0?[e["url-list"]]:[]),r.urlList=(e["url-list"]||[]).map(e=>e.toString()),r.announce=Array.from(new Set(r.announce)),r.urlList=Array.from(new Set(r.urlList));const i=e.info.files||[e.info];r.files=i.map((e,t)=>{const o=[].concat(r.name,e["path.utf-8"]||e.path||[]).map(e=>e.toString());return{path:yr.join.apply(null,[yr.sep].concat(o)).slice(1),name:o[o.length-1],length:e.length,offset:i.slice(0,t).reduce(n,0)}}),r.length=i.reduce(n,0);const a=r.files[r.files.length-1];return r.pieceLength=e.info["piece length"],r.lastPieceLength=(a.offset+a.length)%r.pieceLength||r.pieceLength,r.pieces=function(e){const t=[];for(let r=0;r<e.length;r+=20)t.push(e.slice(r,r+20).toString("hex"));return t}(e.info.pieces),r}(e);if(e&&e.infoHash)return e.infoHash=e.infoHash.toLowerCase(),e.announce||(e.announce=[]),"string"==typeof e.announce&&(e.announce=[e.announce]),e.urlList||(e.urlList=[]),e;throw new Error("Invalid torrent identifier")}function n(e,t){return e+t.length}function o(e,t){if(!e)throw new Error("Torrent is missing required field: "+t)}(Tr=r).remote=function t(n,o,i){if("function"==typeof o)return t(n,{},o);if("function"!=typeof i)throw new Error("second argument must be a Function");let a;try{a=r(n)}catch(Ir){}function s(e){try{a=r(e)}catch(Ir){return i(Ir)}a&&a.infoHash?i(null,a):i(new Error("Invalid torrent identifier"))}a&&a.infoHash?e.nextTick(()=>{i(null,a)}):"undefined"!=typeof Blob&&n instanceof Blob?ie(n,(e,t)=>{if(e)return i(new Error("Error converting Blob: "+e.message));s(t)}):"function"==typeof fr&&/^https?:/.test(n)?(o=Object.assign({url:n,timeout:3e4,headers:{"user-agent":"WebTorrent (https://webtorrent.io)"}},o),fr.concat(o,(e,t,r)=>{if(e)return i(new Error("Error downloading torrent: "+e.message));s(r)})):"function"==typeof ae.readFile&&"string"==typeof n?ae.readFile(n,(e,t)=>{if(e)return i(new Error("Invalid torrent identifier"));s(t)}):e.nextTick(()=>{i(new Error("Invalid torrent identifier"))})},Tr.toMagnetURI=pr.encode,Tr.toTorrentFile=function(e){const r={info:e.info};return r["announce-list"]=(e.announce||[]).map(e=>(r.announce||(r.announce=e),[e=t.from(e,"utf8")])),r["url-list"]=e.urlList||[],void 0!==e.private&&(r.private=Number(e.private)),e.created&&(r["creation date"]=e.created.getTime()/1e3|0),e.createdBy&&(r["created by"]=e.createdBy),e.comment&&(r.comment=e.comment),ne.encode(r)},t.alloc(0)}).call(this)}).call(this,Ie,u({}).Buffer);var Lr={};(function(e){(function(){"use strict";var t=f(h),r=f(p),n=f(y),o=f(v),i=f(b),a=function(){function a(){(0,n.default)(this,a),(0,i.default)(this,"weight",102),(0,i.default)(this,"enabled",!0),(0,i.default)(this,"site","yts.mx"),(0,i.default)(this,"src","https://yts.mx/browse-movies/__keyword__/all/all/0/latest/0/all")}return(0,o.default)(a,[{key:"execute",value:(s=(0,r.default)(t.default.mark((function e(n){var o,i,a,s,u,f=this;return t.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.length<=0)){e.next=2;break}return e.abrupt("return",[]);case 2:return o=this.src.replace("__keyword__",n),o=encodeURI(o),e.next=6,this._doRequest(o);case 6:return i=e.sent,a=$.parseHTML(i.responseText),s=$(a).find(".browse-content .container .row .browse-movie-wrap"),u=Promise.all(s.map(function(){var e=(0,r.default)(t.default.mark((function e(r,n){var o,i,a;return t.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=$(n).find(".browse-movie-link").attr("href"),e.next=3,f._doRequest(o);case 3:return i=e.sent,a=i.responseText,e.next=7,f._fieldRef(a);case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()).get()),e.abrupt("return",u);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"filterKeyword",value:function(e){var t=e;return(t=t.replace(/^[^a-zA-Z]*/,"")).replace(/Season\s/,"S")}},{key:"_doRequest",value:function(e){return new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:e,timeout:1e4,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(e){200===e.status?t(e):r(e)}})}))}},{key:"_fieldRef",value:function(t){var r=$(t).find('#movie-info p a[rel="nofollow"]');return Promise.all(r.map((function(t,r){var n=$(r).attr("href");return new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:n,responseType:"arraybuffer",timeout:1e4,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(n){if(200===n.status){var o=e.from(n.response);t((i=Tr(o),a=Tr.toMagnetURI(i),s=i.name,u=i.length,{title:s=s.split("\n").join(" ").trim(),link:a,sd:"-1",lc:"-1",size:u=parseFloat(u/1024/1024).toFixed(0)+"M"}))}else r(n);var i,a,s,u}})}))})))}}]),a;var s}();Lr=a}).call(this)}).call(this,u({}).Buffer);var Cr,Or=[new x,new C,new Lr],Mr=f(h),jr=f(p);Promise.main=(Cr=(0,jr.default)(Mr.default.mark((function e(t){var r,n,o,i,a,s,u,f;return Mr.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.sort((function(e,t){return e.weight-t.weight})),r=$("h1 span:eq(0)").text(),n=0;case 3:if(!(n<t.length)){e.next=22;break}if(o=t[n],(i=o).enabled){e.next=8;break}return e.abrupt("continue",19);case 8:if(!((a=o.filterKeyword(r)).length<=0)){e.next=11;break}return e.abrupt("continue",19);case 11:return console.log(a),e.next=14,i.execute(a).catch((function(e){console.log(e);var t=$('<div class="clearfix" style="float: left; width: 675px"><hr/><p>Seems like you\'re not using VPN</p></div>');$(".article .subjectwrap:first").append(t)}));case 14:s=e.sent,u="",!s||s.length<=0?u="[".concat(i.site,"] No any magnet links can be found!"):(s.forEach((function(e){var t=e.title,r=e.size,n=e.sd,o=e.lc,i=e.link;u+='<li><a href="'.concat(i,'">').concat(t," (sd: ").concat(n,", lc: ").concat(o,", ").concat(r,")</a></li>")})),n=t.length-1),f=$('<div class="clearfix magnet-section" style="float: left; width: 675px"><hr/><ul>'.concat(u,"</ul></div>")),$(".article .subjectwrap:first").append(f);case 19:n++,e.next=3;break;case 22:case"end":return e.stop()}}),e)}))),function(e){return Cr.apply(this,arguments)}),Promise.main(Or)}();
\ No newline at end of file
diff --git a/dist/script.user.js b/dist/script.user.js
index 538fd8b..3b04258 100644
--- a/dist/script.user.js
+++ b/dist/script.user.js
@@ -1,16 +1,14 @@
 // ==UserScript==
 // @name         btdouban
-// @version      0.0.5
+// @version      0.0.6
 // @description  [Caution: Ensure using VPN] Gets Douban medias' BitTorrent resources
 // @namespace    https://github.com/caryyu/bteye
 // @author       caryyu
 // @match        *://movie.douban.com/subject/*
 // @grant        GM_xmlhttpRequest
-// @connect      btdb.eu
-// @connect      kat.rip
 // @connect      herokuapp.com
 // @connect      1337x.to
 // @connect      yts.mx
 // @include      *//movie.douban.com/subject/*
 // ==/UserScript==
-!function(){var e=function(e){var t;return function(r){return t||e(t={exports:{},parent:r},t.exports),t.exports}},t=e((function(e,t){(function(t,o){(function(){"use strict";var s;e.exports=R,R.ReadableState=x,xe.EventEmitter;var f,c=function(e,t){return e.listeners(t).length},l=u({}).Buffer,h=o.Uint8Array||function(){};f=we&&we.debuglog?we.debuglog("stream"):function(){};var d,p,y,g=ht.getHighWaterMark,v=st.codes,b=v.ERR_INVALID_ARG_TYPE,m=v.ERR_STREAM_PUSH_AFTER_EOF,w=v.ERR_METHOD_NOT_IMPLEMENTED,_=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;Ee(R,Ue);var E=at.errorOrDestroy,S=["error","close","destroy","pause","resume"];function x(e,t,r){s=s||a({}),e=e||{},"boolean"!=typeof r&&(r=t instanceof s),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",r),this.buffer=new ze,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.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=i({}).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function R(e){if(s=s||a({}),!(this instanceof R))return new R(e);var t=this instanceof s;this._readableState=new x(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),Ue.call(this)}function A(e,t,r,n,o){f("readableAddChunk",t);var i,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(f("onEofChunk"),!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,t.sync?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(e)))}}(e,a);else if(o||(i=function(e,t){var r,n;return n=t,l.isBuffer(n)||n instanceof h||"string"==typeof t||void 0===t||e.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],t)),r}(a,t)),i)E(e,i);else if(a.objectMode||t&&t.length>0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n)a.endEmitted?E(e,new _):k(e,a,t,!0);else if(a.ended)E(e,new m);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?k(e,a,t,!1):O(e,a)):k(e,a,t,!1)}else n||(a.reading=!1,O(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function k(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&L(e)),O(e,t)}Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),R.prototype.destroy=at.destroy,R.prototype._undestroy=at.undestroy,R.prototype._destroy=function(e,t){t(e)},R.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=l.from(e,t),t=""),r=!0),A(this,e,t,!1,r)},R.prototype.unshift=function(e){return A(this,e,null,!0,!1)},R.prototype.isPaused=function(){return!1===this._readableState.flowing},R.prototype.setEncoding=function(e){d||(d=i({}).StringDecoder);var t=new d(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";null!==r;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function L(e){var r=e._readableState;f("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(f("emitReadable",r.flowing),r.emittedReadable=!0,t.nextTick(C,e))}function C(e){var t=e._readableState;f("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,P(e)}function O(e,r){r.readingMore||(r.readingMore=!0,t.nextTick(M,e,r))}function M(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(f("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function j(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function B(e){f("readable nexttick read 0"),e.read(0)}function I(e,t){f("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function N(e){var r=e._readableState;f("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,t.nextTick(q,r,e))}function q(e,t){if(f("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function D(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}R.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?N(this):L(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&N(this),null;var n,o=t.needReadable;return f("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",o=!0),t.ended||t.reading?f("reading or ended",o=!1):o&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=T(r,t))),null===(n=e>0?U(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&N(this)),null!==n&&this.emit("data",n),n},R.prototype._read=function(e){E(this,new w("_read()"))},R.prototype.pipe=function(e,r){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,r);var i=r&&!1===r.end||e===t.stdout||e===t.stderr?y:a;function a(){f("onend"),e.end()}o.endEmitted?t.nextTick(i):n.once("end",i),e.on("unpipe",(function t(r,i){f("onunpipe"),r===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,f("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",h),e.removeListener("unpipe",t),n.removeListener("end",a),n.removeListener("end",y),n.removeListener("data",l),u=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||s())}));var s=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,P(e))}}(n);e.on("drain",s);var u=!1;function l(t){f("ondata");var r=e.write(t);f("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==D(o.pipes,e))&&!u&&(f("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function h(t){f("onerror",t),y(),e.removeListener("error",h),0===c(e,"error")&&E(e,t)}function d(){e.removeListener("finish",p),y()}function p(){f("onfinish"),e.removeListener("close",d),y()}function y(){f("unpipe"),n.unpipe(e)}return n.on("data",l),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener("error",r);e._events&&e._events.error?Array.isArray(e._events.error)?e._events.error.unshift(r):e._events.error=[r,e._events.error]:e.on("error",r)}(e,0,h),e.once("close",d),e.once("finish",p),e.emit("pipe",n),o.flowing||(f("pipe resume"),n.resume()),e},R.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var a=D(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},R.prototype.on=function(e,r){var n=Ue.prototype.on.call(this,e,r),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,f("on readable",o.length,o.reading),o.length?L(this):o.reading||t.nextTick(B,this))),n},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function(e,r){var n=Ue.prototype.removeListener.call(this,e,r);return"readable"===e&&t.nextTick(j,this),n},R.prototype.removeAllListeners=function(e){var r=Ue.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||t.nextTick(j,this),r},R.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!e.readableListening,function(e,r){r.resumeScheduled||(r.resumeScheduled=!0,t.nextTick(I,e,r))}(this,e)),e.paused=!1,this},R.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},R.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",(function(){if(f("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){f("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<S.length;i++)e.on(S[i],this.emit.bind(this,S[i]));return this._read=function(t){f("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(R.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=n({})),p(this)}),Object.defineProperty(R.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(R.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(R.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),R._fromList=U,Object.defineProperty(R.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(R.from=function(e,t){return void 0===y&&(y=r({})),y(R,e,t)})}).call(this)}).call(this,Ke,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})})),r=e((function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}})),n=e((function(e,t){(function(t){(function(){"use strict";var r;function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=o({}),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),f=Symbol("ended"),c=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function d(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var r=e[h].read();null!==r&&(e[c]=null,e[a]=null,e[s]=null,t(d(r,!1)))}}var y=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((n(r={get stream(){return this[h]},next:function(){var e=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[f])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise((function(r,n){t.nextTick((function(){e[u]?n(e[u]):r(d(void 0,!0))}))}));var n,o=this[c];if(o)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[f]?r(d(void 0,!0)):t[l](r,n)}),n)}}(o,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(d(i,!1));n=new Promise(this[l])}return this[c]=n,n}},Symbol.asyncIterator,(function(){return this})),n(r,"return",(function(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(d(void 0,!0))}))}))})),r),y);e.exports=function(e){var r,o=Object.create(g,(n(r={},h,{value:e,writable:!0}),n(r,a,{value:null,writable:!0}),n(r,s,{value:null,writable:!0}),n(r,u,{value:null,writable:!0}),n(r,f,{value:e._readableState.endEmitted,writable:!0}),n(r,l,{value:function(e,t){var r=o[h].read();r?(o[c]=null,o[a]=null,o[s]=null,e(d(r,!1))):(o[a]=e,o[s]=t)},writable:!0}),r));return o[c]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=o[s];return null!==t&&(o[c]=null,o[a]=null,o[s]=null,t(e)),void(o[u]=e)}var r=o[a];null!==r&&(o[c]=null,o[a]=null,o[s]=null,r(d(void 0,!0))),o[f]=!0})),e.on("readable",function(e){t.nextTick(p,e)}.bind(null,o)),o}}).call(this)}).call(this,Ke)})),o=e((function(e,t){"use strict";var r=st.codes.ERR_STREAM_PREMATURE_CLOSE;function n(){}e.exports=function e(t,o,i){if("function"==typeof o)return e(t,null,o);o||(o={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n)}}}(i||n);var a=o.readable||!1!==o.readable&&t.readable,s=o.writable||!1!==o.writable&&t.writable,u=function(){t.writable||c()},f=t._writableState&&t._writableState.finished,c=function(){s=!1,f=!0,a||i.call(t)},l=t._readableState&&t._readableState.endEmitted,h=function(){a=!1,l=!0,s||i.call(t)},d=function(e){i.call(t,e)},p=function(){var e;return a&&!l?(t._readableState&&t._readableState.ended||(e=new r),i.call(t,e)):s&&!f?(t._writableState&&t._writableState.ended||(e=new r),i.call(t,e)):void 0},y=function(){t.req.on("finish",c)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",c),t.on("abort",p),t.req?y():t.on("request",y)):s&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",h),t.on("finish",c),!1!==o.error&&t.on("error",d),t.on("close",p),function(){t.removeListener("complete",c),t.removeListener("abort",p),t.removeListener("request",y),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("end",h),t.removeListener("error",d),t.removeListener("close",p)}}})),i=e((function(e,t){"use strict";var r=ee.Buffer,n=r.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}};function o(e){var t;switch(this.encoding=function(e){var t=function(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}}(e);if("string"!=typeof t&&(r.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=f,this.end=c,t=3;break;default:return this.write=l,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function i(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){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);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 s(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 u(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 f(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 c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}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=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\ufffd":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var o=i(t[n]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--n<r||-2===o?0:(o=i(t[n]))>=0?(o>0&&(e.lastNeed=o-2),o):--n<r||-2===o?0:(o=i(t[n]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(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)},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}})),a=e((function(e,r){(function(r){(function(){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var o=t({}),i=s({});Ee(c,o);for(var a=n(i.prototype),u=0;u<a.length;u++){var f=a[u];c.prototype[f]||(c.prototype[f]=i.prototype[f])}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,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)}})}).call(this)}).call(this,Ke)})),s=e((function(e,t){(function(t,r){(function(){"use strict";function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var o=n.callback;t.pendingcb--,o(void 0),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var o;e.exports=x,x.WritableState=S;var i,s={deprecate:dt},f=u({}).Buffer,c=r.Uint8Array||function(){},l=ht.getHighWaterMark,h=st.codes,d=h.ERR_INVALID_ARG_TYPE,p=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,v=h.ERR_STREAM_DESTROYED,b=h.ERR_STREAM_NULL_VALUES,m=h.ERR_STREAM_WRITE_AFTER_END,w=h.ERR_UNKNOWN_ENCODING,_=at.errorOrDestroy;function E(){}function S(e,r,i){o=o||a({}),e=e||{},"boolean"!=typeof i&&(i=r instanceof o),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=l(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,r){var n=e._writableState,o=n.sync,i=n.writecb;if("function"!=typeof i)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),r)!function(e,r,n,o,i){--r.pendingcb,n?(t.nextTick(i,o),t.nextTick(C,e,r),e._writableState.errorEmitted=!0,_(e,o)):(i(o),e._writableState.errorEmitted=!0,_(e,o),C(e,r))}(e,n,o,r,i);else{var a=T(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||k(e,n),o?t.nextTick(A,e,n,a,i):A(e,n,a,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function x(e){var t=this instanceof(o=o||a({}));if(!t&&!i.call(x,this))return new x(e);this._writableState=new S(e,this,t),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)),Ue.call(this)}function R(e,t,r,n,o,i,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function A(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),C(e,t)}function k(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var o=t.bufferedRequestCount,i=new Array(o),a=t.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,R(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,c=r.encoding,l=r.callback;if(R(e,t,!1,t.objectMode?1:f.length,f,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function L(e,t){e._final((function(r){t.pendingcb--,r&&_(e,r),t.prefinished=!0,e.emit("prefinish"),C(e,t)}))}function C(e,r){var n=T(r);if(n&&(function(e,r){r.prefinished||r.finalCalled||("function"!=typeof e._final||r.destroyed?(r.prefinished=!0,e.emit("prefinish")):(r.pendingcb++,r.finalCalled=!0,t.nextTick(L,e,r)))}(e,r),0===r.pendingcb&&(r.finished=!0,e.emit("finish"),r.autoDestroy))){var o=e._readableState;(!o||o.autoDestroy&&o.endEmitted)&&e.destroy()}return n}Ee(x,Ue),S.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(S.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===x&&e&&e._writableState instanceof S}})):i=function(e){return e instanceof this},x.prototype.pipe=function(){_(this,new g)},x.prototype.write=function(e,r,n){var o,i=this._writableState,a=!1,s=!i.objectMode&&(o=e,f.isBuffer(o)||o instanceof c);return s&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof r&&(n=r,r=null),s?r="buffer":r||(r=i.defaultEncoding),"function"!=typeof n&&(n=E),i.ending?function(e,r){var n=new m;_(e,n),t.nextTick(r,n)}(this,n):(s||function(e,r,n,o){var i;return null===n?i=new b:"string"==typeof n||r.objectMode||(i=new d("chunk",["string","Buffer"],n)),!i||(_(e,i),t.nextTick(o,i),!1)}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,r,n,o,i){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,r)),t}(t,n,o);n!==a&&(r=!0,o="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else R(e,t,!1,s,n,o,i);return u}(this,i,s,e,r,n)),a},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||k(this,e))},x.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 w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new p("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,r,n){var o=this._writableState;return"function"==typeof e?(n=e,e=null,r=null):"function"==typeof r&&(n=r,r=null),null!=e&&this.write(e,r),o.corked&&(o.corked=1,this.uncork()),o.ending||function(e,r,n){r.ending=!0,C(e,r),n&&(r.finished?t.nextTick(n):e.once("finish",n)),r.ended=!0,e.writable=!1}(this,o,n),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=at.destroy,x.prototype._undestroy=at.undestroy,x.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,Ke,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})})),u=e((function(e,t){(function(e){(function(){"use strict";t.Buffer=r,t.SlowBuffer=function(e){return+e!=e&&(e=0),r.alloc(+e)},t.INSPECT_MAX_BYTES=50;function e(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=r.prototype,t}function r(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return i(e)}return n(e,t,r)}function n(t,n,o){if("string"==typeof t)return function(t,n){if("string"==typeof n&&""!==n||(n="utf8"),!r.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var o=0|u(t,n),i=e(o),a=i.write(t,n);return a!==o&&(i=i.slice(0,a)),i}(t,n);if(ArrayBuffer.isView(t))return a(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(B(t,ArrayBuffer)||t&&B(t.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var o;return(o=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n)).__proto__=r.prototype,o}(t,n,o);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(null!=i&&i!==t)return r.from(i,n,o);var f=function(t){if(r.isBuffer(t)){var n=0|s(t.length),o=e(n);return 0===o.length||t.copy(o,0,0,n),o}return void 0!==t.length?"number"!=typeof t.length||I(t.length)?e(0):a(t):"Buffer"===t.type&&Array.isArray(t.data)?a(t.data):void 0}(t);if(f)return f;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return r.from(t[Symbol.toPrimitive]("string"),n,o);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function o(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function i(t){return o(t),e(t<0?0:0|s(t))}function a(t){for(var r=t.length<0?0:0|s(t.length),n=e(r),o=0;o<r;o+=1)n[o]=255&t[o];return n}function s(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function u(e,t){if(r.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return M(e).length;default:if(i)return o?-1:O(e).length;t=(""+t).toLowerCase(),i=!0}}function f(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function c(e,t,n,o,i){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),I(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=r.from(t,o)),r.isBuffer(t))return 0===t.length?-1:l(e,t,n,o,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):l(e,[t],n,o,i);throw new TypeError("val must be string, number or Buffer")}function l(e,t,r,n,o){var i,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function f(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=r;i<s;i++)if(f(e,i)===f(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===u)return c*a}else-1!==c&&(i-=i-c),c=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var l=!0,h=0;h<u;h++)if(f(e,i+h)!==f(t,h)){l=!1;break}if(l)return i}return-1}function h(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function d(e,t,r,n){return j(O(t,e.length-r),e,r,n)}function p(e,t,r,n){return j(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function y(e,t,r,n){return p(e,t,r,n)}function g(e,t,r,n){return j(M(t),e,r,n)}function v(e,t,r,n){return j(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function b(e,t,r){return 0===t&&r===e.length?W.fromByteArray(e):W.fromByteArray(e.slice(t,r))}function m(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,u,f=e[o],c=null,l=f>239?4:f>223?3:f>191?2:1;if(o+l<=r)switch(l){case 1:f<128&&(c=f);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&f)<<6|63&i)>127&&(c=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&f)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&f)<<18|(63&i)<<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),o+=l}return function(e){var t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=w));return r}(n)}t.kMaxLength=2147483647,r.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}(),r.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.buffer}}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),r.poolSize=8192,r.from=function(e,t,r){return n(e,t,r)},r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,r.alloc=function(t,r,n){return function(t,r,n){return o(t),t<=0?e(t):void 0!==r?"string"==typeof n?e(t).fill(r,n):e(t).fill(r):e(t)}(t,r,n)},r.allocUnsafe=function(e){return i(e)},r.allocUnsafeSlow=function(e){return i(e)},r.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==r.prototype},r.compare=function(e,t){if(B(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),B(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),!r.isBuffer(e)||!r.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,o=t.length,i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==t[i]){n=e[i],o=t[i];break}return n<o?-1:o<n?1:0},r.isEncoding=function(e){switch(String(e).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}},r.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return r.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var o=r.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(B(a,Uint8Array)&&(a=r.from(a)),!r.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(o,i),i+=a.length}return o},r.byteLength=u,r.prototype._isBuffer=!0,r.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},r.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},r.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},r.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?m(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,r);case"utf8":case"utf-8":return m(this,t,r);case"ascii":return _(this,t,r);case"latin1":case"binary":return E(this,t,r);case"base64":return b(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=function(e){if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===r.compare(this,e)},r.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},r.prototype.compare=function(e,t,n,o,i){if(B(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),!r.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(o>>>=0),s=(n>>>=0)-(t>>>=0),u=Math.min(a,s),f=this.slice(o,i),c=e.slice(t,n),l=0;l<u;++l)if(f[l]!==c[l]){a=f[l],s=c[l];break}return a<s?-1:s<a?1:0},r.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},r.prototype.indexOf=function(e,t,r){return c(this,e,t,r,!0)},r.prototype.lastIndexOf=function(e,t,r){return c(this,e,t,r,!1)},r.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return h(this,e,t,r);case"utf8":case"utf-8":return d(this,e,t,r);case"ascii":return p(this,e,t,r);case"latin1":case"binary":return y(this,e,t,r);case"base64":return g(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function _(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function E(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function S(e,t,r){var n,o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",a=t;a<r;++a)i+=(n=e[a])<16?"0"+n.toString(16):n.toString(16);return i}function x(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function R(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,n,o,i,a){if(!r.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function k(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function T(e,t,r,n,o){return t=+t,r>>>=0,o||k(e,0,r,4),Q.write(e,t,r,n,23,4),r+4}function L(e,t,r,n,o){return t=+t,r>>>=0,o||k(e,0,r,8),Q.write(e,t,r,n,52,8),r+8}r.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var o=this.subarray(e,t);return o.__proto__=r.prototype,o},r.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},r.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},r.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},r.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},r.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},r.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},r.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},r.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},r.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},r.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},r.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},r.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},r.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),Q.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),Q.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),Q.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),Q.read(this,e,!1,52,8)},r.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||A(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},r.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||A(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},r.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,1,255,0),this[t]=255&e,t+1},r.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},r.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},r.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},r.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},r.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);A(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},r.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);A(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},r.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},r.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},r.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},r.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},r.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},r.prototype.writeFloatLE=function(e,t,r){return T(this,e,t,!0,r)},r.prototype.writeFloatBE=function(e,t,r){return T(this,e,t,!1,r)},r.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},r.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},r.prototype.copy=function(e,t,n,o){if(!r.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);var i=o-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,o);else if(this===e&&n<t&&t<o)for(var a=i-1;a>=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,o),t);return i},r.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!r.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===e.length){var i=e.charCodeAt(0);("utf8"===o&&i<128||"latin1"===o)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var s=r.isBuffer(e)?e:r.from(e,o),u=s.length;if(0===u)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=s[a%u]}return this};var C=/[^+/0-9A-Za-z-_]/g;function O(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function M(e){return W.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function B(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}}).call(this)}).call(this,u({}).Buffer)})),f=function(e){return e&&e.__esModule?e:{default:e}},c={exports:{}},l=function(e){"use strict";var t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(C){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(e,t,r){var n=c;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===c)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=f(e,t,r);if("normal"===u.type){if(n=r.done?d:l,u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var c="suspendedStart",l="suspendedYield",h="executing",d="completed",p={};function y(){}function g(){}function v(){}var b={};b[o]=function(){return this};var m=Object.getPrototypeOf,w=m&&m(m(T([])));w&&w!==t&&r.call(w,o)&&(b=w);var _=v.prototype=y.prototype=Object.create(b);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){var n;this._invoke=function(o,i){function a(){return new t((function(n,a){!function n(o,i,a,s){var u=f(e[o],e,i);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(l).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function x(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function R(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return g.prototype=_.constructor=v,v.constructor=g,g.displayName=s(v,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,a,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),S.prototype[i]=function(){return this},e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,a,"Generator"),_[o]=function(){return this},_.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=T,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}(c.exports);try{regeneratorRuntime=l}catch(zr){Function("r","regeneratorRuntime = r")(l)}var h=c=c.exports;function d(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(f){return void r(f)}s.done?t(u):Promise.resolve(u).then(n,o)}var p=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){d(i,n,o,a,s,"next",e)}function s(e){d(i,n,o,a,s,"throw",e)}a(void 0)}))}},y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}for(var v=function(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e},b=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},m=f(h),w=f(p),_=f(y),E=f(v),S=f(b),x=function(){function e(){(0,_.default)(this,e),(0,S.default)(this,"weight",300),(0,S.default)(this,"enabled",!0),(0,S.default)(this,"site","btdb.eu"),(0,S.default)(this,"src","https://btdb.eu/search/__keyword__/0/")}return(0,E.default)(e,[{key:"execute",value:(t=(0,w.default)(m.default.mark((function e(t){var r,n,o,i,a=this;return m.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length<=0)){e.next=2;break}return e.abrupt("return",[]);case 2:return r=this.src.replace("__keyword__",t),r=encodeURI(r),e.next=6,this._doRequest(r);case 6:return n=e.sent,o=$.parseHTML(n.responseText),i=$(o).find(".media"),e.abrupt("return",i.map((function(e){return a._fieldRef(i[e])})).get());case 10:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"filterKeyword",value:function(e){var t=e;return t.replace(/Season\s/,"S")}},{key:"_doRequest",value:function(e){return new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:e,timeout:1e4,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(e){200===e.status?t(e):r(e)}})}))}},{key:"_fieldRef",value:function(e){var t=$(e).find(".media-body .item-title a").text(),r=$(e).find(".media-body .item-meta-info small"),n=$(e).find(".media-right a:first").attr("href"),o=/Size\s:\s(.+)/g.exec($(r[0]).text())[1];return{title:t,link:n,sd:/Seeders\s:\s(\d*)/g.exec($(r[2]).text())[1],lc:/Leechers\s:\s(\d*)/g.exec($(r[3]).text())[1],size:o}}}]),e;var t}(),R=f(h),A=f(p),k=f(y),T=f(v),L=f(b),C=function(){function e(){(0,k.default)(this,e),(0,L.default)(this,"weight",200),(0,L.default)(this,"enabled",!0),(0,L.default)(this,"site","kat.rip"),(0,L.default)(this,"src","https://kat.rip/usearch/__keyword__/")}return(0,T.default)(e,[{key:"execute",value:(t=(0,A.default)(R.default.mark((function e(t){var r,n,o,i,a=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length<=0)){e.next=2;break}return e.abrupt("return",[]);case 2:return r=this.src.replace("__keyword__",t),r=encodeURI(r),e.next=6,this._doRequest(r);case 6:return n=e.sent,o=$.parseHTML(n.responseText),i=$(o).find(".mainpart .data .even, .odd"),e.abrupt("return",i.map((function(e){return a._fieldRef(i[e])})).get());case 10:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"filterKeyword",value:function(e){var t=e;return t.replace(/Season\s/,"S")}},{key:"_doRequest",value:function(e){return new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:e,timeout:15e3,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(e){200===e.status?t(e):r(e)}})}))}},{key:"_fieldRef",value:function(e){var t=$(e).find("td"),r=t.find(".torrentname .cellMainLink").text(),n=t.find(".floatright a:last").attr("href"),o=$(t[1]).text();return{title:r,link:n,sd:$(t[4]).text(),lc:$(t[5]).text(),size:o}}}]),e;var t}(),O=f(h),M=f(p),j=f(y),B=f(v),I=f(b),P=function(){function e(){(0,j.default)(this,e),(0,I.default)(this,"weight",100),(0,I.default)(this,"enabled",!0),(0,I.default)(this,"site","herokuapp.com"),(0,I.default)(this,"src","https://stark-savannah-51602.herokuapp.com/search/__keyword__")}return(0,B.default)(e,[{key:"execute",value:(t=(0,M.default)(O.default.mark((function e(t){var r,n,o,i=this;return O.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length<=0)){e.next=2;break}return e.abrupt("return",[]);case 2:return r=this.src.replace("__keyword__",t),r=encodeURI(r),e.next=6,this._doRequest(r);case 6:return n=e.sent,o=JSON.parse(n.responseText),e.abrupt("return",o.map((function(e){return i._fieldRef(e)})));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"filterKeyword",value:function(e){var t=e;return(t=t.replace(/^[^a-zA-Z]*/,"")).replace(/Season\s/,"S")}},{key:"_doRequest",value:function(e){return new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:e,timeout:3e4,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(e){200===e.status?t(e):r(e)}})}))}},{key:"_sizePretty",value:function(e){return(e=e/1024/1024)<1024?Math.ceil(e)+"M":e/1024+"G"}},{key:"_fieldRef",value:function(e){var t=e.title,r=e.magnet,n=this._sizePretty(e.size);return{title:t,link:r,sd:e.seeds,lc:e.leeches,size:n}}}]),e;var t}(),U=f(h),N=f(p),q=f(y),D=f(v),H=f(b),F=function(){function e(){(0,q.default)(this,e),(0,H.default)(this,"weight",101),(0,H.default)(this,"enabled",!0),(0,H.default)(this,"site","1337x.to"),(0,H.default)(this,"src","https://1337x.to/search/__keyword__/1/")}return(0,D.default)(e,[{key:"execute",value:(r=(0,N.default)(U.default.mark((function e(t){var r,n,o,i,a=this;return U.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length<=0)){e.next=2;break}return e.abrupt("return",[]);case 2:return r=this.src.replace("__keyword__",t),r=encodeURI(r),e.next=6,this._doRequest(r);case 6:return n=e.sent,o=$.parseHTML(n.responseText),i=$(o).find(".box-info-detail table tbody tr"),e.abrupt("return",Promise.all(i.map((function(e){return a._fieldRef(i[e])})).get()));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"filterKeyword",value:function(e){var t=e;return t.replace(/Season\s/,"S")}},{key:"_doRequest",value:function(e){return new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:e,timeout:1e4,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(e){200===e.status?t(e):r(e)}})}))}},{key:"_getMagnetLink",value:function(e){var t="https://".concat(this.site).concat(e),r=this._doRequest;return new Promise((function(e,n){r(t).then((function(t){var r=t.responseText,n=$(r).find(".box-info .no-top-radius div:first ul:first li:first a").attr("href");e(n)})).catch((function(e){return n(e)}))}))}},{key:"_fieldRef",value:(t=(0,N.default)(U.default.mark((function e(t){var r,n,o,i,a;return U.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=$(t).find(".coll-1,.name").text(),n=$(t).find(".coll-1 a:last").attr("href"),o=$(t).find(".coll-4").children().remove().end().text(),i=$(t).find(".coll-2").text(),a=$(t).find(".coll-3,.leeches").text(),e.next=7,this._getMagnetLink(n);case 7:return n=e.sent,e.abrupt("return",{title:r,link:n,sd:i,lc:a,size:o});case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e;var t,r}(),W={toByteArray:function(e){var t,r,n=J(e),o=n[0],i=n[1],a=new K(function(e,t,r){return 3*(t+r)/4-r}(0,o,i)),s=0,u=i>0?o-4:o;for(r=0;r<u;r+=4)t=z[e.charCodeAt(r)]<<18|z[e.charCodeAt(r+1)]<<12|z[e.charCodeAt(r+2)]<<6|z[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;return 2===i&&(t=z[e.charCodeAt(r)]<<2|z[e.charCodeAt(r+1)]>>4,a[s++]=255&t),1===i&&(t=z[e.charCodeAt(r)]<<10|z[e.charCodeAt(r+1)]<<4|z[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t),a},fromByteArray:function(e){for(var t,r=e.length,n=r%3,o=[],i=0,a=r-n;i<a;i+=16383)o.push(Z(e,i,i+16383>a?a:i+16383));return 1===n?(t=e[r-1],o.push(G[t>>2]+G[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],o.push(G[t>>10]+G[t>>4&63]+G[t<<2&63]+"=")),o.join("")}},G=[],z=[],K="undefined"!=typeof Uint8Array?Uint8Array:Array,V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y=0,X=V.length;Y<X;++Y)G[Y]=V[Y],z[V.charCodeAt(Y)]=Y;function J(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function Z(e,t,r){for(var n,o,i=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(G[(o=n)>>18&63]+G[o>>12&63]+G[o>>6&63]+G[63&o]);return i.join("")}z["-".charCodeAt(0)]=62,z["_".charCodeAt(0)]=63;var Q={read:function(e,t,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,f=u>>1,c=-7,l=r?o-1:0,h=r?-1:1,d=e[t+l];for(l+=h,i=d&(1<<-c)-1,d>>=-c,c+=s;c>0;i=256*i+e[t+l],l+=h,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+e[t+l],l+=h,c-=8);if(0===i)i=1-f;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=f}return(d?-1:1)*a*Math.pow(2,i-n)},write:function(e,t,r,n,o,i){var a,s,u,f=8*i-o-1,c=(1<<f)-1,l=c>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,p=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=c?(s=0,a=c):a+l>=1?(s=(t*u-1)*Math.pow(2,o),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;e[r+d]=255&s,d+=p,s/=256,o-=8);for(a=a<<o|s,f+=o;f>0;e[r+d]=255&a,d+=p,a/=256,f-=8);e[r+d-p]|=128*y}},ee={},te=u({}),re=te.Buffer;function ne(e,t){for(var r in e)t[r]=e[r]}function oe(e,t,r){return re(e,t,r)}re.from&&re.alloc&&re.allocUnsafe&&re.allocUnsafeSlow?ee=te:(ne(te,ee),ee.Buffer=oe),oe.prototype=Object.create(re.prototype),ne(re,oe),oe.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return re(e,t,r)},oe.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=re(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},oe.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return re(e)},oe.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return te.SlowBuffer(e)};var ie,ae=ee.Buffer;function se(e,t,r){var n=[],o=null;return se._encode(n,e),o=ae.concat(n),se.bytes=o.length,ae.isBuffer(t)?(o.copy(t,r),t):o}se.bytes=-1,se._floatConversionDetected=!1,se.getType=function(e){return ae.isBuffer(e)?"buffer":Array.isArray(e)?"array":ArrayBuffer.isView(e)?"arraybufferview":e instanceof Number?"number":e instanceof Boolean?"boolean":e instanceof ArrayBuffer?"arraybuffer":typeof e},se._encode=function(e,t){if(null!=t)switch(se.getType(t)){case"buffer":se.buffer(e,t);break;case"object":se.dict(e,t);break;case"array":se.list(e,t);break;case"string":se.string(e,t);break;case"number":case"boolean":se.number(e,t);break;case"arraybufferview":se.buffer(e,ae.from(t.buffer,t.byteOffset,t.byteLength));break;case"arraybuffer":se.buffer(e,ae.from(t))}};var ue=ae.from("e"),fe=ae.from("d"),ce=ae.from("l");se.buffer=function(e,t){e.push(ae.from(t.length+":"),t)},se.string=function(e,t){e.push(ae.from(ae.byteLength(t)+":"+t))},se.number=function(e,t){var r=2147483648*(t/2147483648<<0)+(t%2147483648<<0);e.push(ae.from("i"+r+"e")),r===t||se._floatConversionDetected||(se._floatConversionDetected=!0,console.warn('WARNING: Possible data corruption detected with value "'+t+'":','Bencoding only defines support for integers, value was converted to "'+r+'"'),console.trace())},se.dict=function(e,t){e.push(fe);for(var r,n=0,o=Object.keys(t).sort(),i=o.length;n<i;n++)null!=t[r=o[n]]&&(se.string(e,r),se._encode(e,t[r]));e.push(ue)},se.list=function(e,t){var r=0,n=t.length;for(e.push(ce);r<n;r++)null!=t[r]&&se._encode(e,t[r]);e.push(ue)},ie=se;var le,he=ee.Buffer;function de(e,t,r){for(var n=0,o=1,i=t;i<r;i++){var a=e[i];if(a<58&&a>=48)n=10*n+(a-48);else if(i!==t||43!==a){if(i!==t||45!==a){if(46===a)break;throw new Error("not a number: buffer["+i+"] = "+a)}o=-1}}return n*o}function pe(e,t,r,n){return null==e||0===e.length?null:("number"!=typeof t&&null==n&&(n=t,t=void 0),"number"!=typeof r&&null==n&&(n=r,r=void 0),pe.position=0,pe.encoding=n||null,pe.data=he.isBuffer(e)?e.slice(t,r):he.from(e),pe.bytes=pe.data.length,pe.next())}pe.bytes=0,pe.position=0,pe.data=null,pe.encoding=null,pe.next=function(){switch(pe.data[pe.position]){case 100:return pe.dictionary();case 108:return pe.list();case 105:return pe.integer();default:return pe.buffer()}},pe.find=function(e){for(var t=pe.position,r=pe.data.length,n=pe.data;t<r;){if(n[t]===e)return t;t++}throw new Error('Invalid data: Missing delimiter "'+String.fromCharCode(e)+'" [0x'+e.toString(16)+"]")},pe.dictionary=function(){pe.position++;for(var e={};101!==pe.data[pe.position];)e[pe.buffer()]=pe.next();return pe.position++,e},pe.list=function(){pe.position++;for(var e=[];101!==pe.data[pe.position];)e.push(pe.next());return pe.position++,e},pe.integer=function(){var e=pe.find(101),t=de(pe.data,pe.position+1,e);return pe.position+=e+1-pe.position,t},pe.buffer=function(){var e=pe.find(58),t=de(pe.data,pe.position,e),r=++e+t;return pe.position=r,pe.encoding?pe.data.toString(pe.encoding,e,r):pe.data.slice(e,r)},le=pe;var ye={},ge=ye;ge.encode=ie,ge.decode=le,ge.byteLength=ge.encodingLength=function(e){return ge.encode(e).length};var ve={};(function(e){(function(){ve=function(t,r){if("undefined"==typeof Blob||!(t instanceof Blob))throw new Error("first argument must be a Blob");if("function"!=typeof r)throw new Error("second argument must be a function");const n=new FileReader;n.addEventListener("loadend",(function t(o){n.removeEventListener("loadend",t,!1),o.error?r(o.error):r(null,e.from(n.result))}),!1),n.readAsArrayBuffer(t)}}).call(this)}).call(this,u({}).Buffer);var be={},me={};(function(e){(function(){me=function(t,r){var n=[];t.on("data",(function(e){n.push(e)})),t.once("end",(function(){r&&r(null,e.concat(n)),r=null})),t.once("error",(function(e){r&&r(e),r=null}))}}).call(this)}).call(this,u({}).Buffer);var we={},_e={};(function(e){(function(){var t;function r(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(r){t=null}}else t=null;return t}function n(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(n){}return!1}function o(e){return"function"==typeof e}_e.fetch=o(e.fetch)&&o(e.ReadableStream),_e.writableStream=o(e.WritableStream),_e.abortController=o(e.AbortController),_e.arraybuffer=_e.fetch||n("arraybuffer"),_e.msstream=!_e.fetch&&n("ms-stream"),_e.mozchunkedarraybuffer=!_e.fetch&&n("moz-chunked-arraybuffer"),_e.overrideMimeType=_e.fetch||!!r()&&o(r().overrideMimeType),t=null}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var Ee={};Ee="function"==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}};var Se,xe={},Re="object"==typeof Reflect?Reflect:null,Ae=Re&&"function"==typeof Re.apply?Re.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};Se=Re&&"function"==typeof Re.ownKeys?Re.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var ke=Number.isNaN||function(e){return e!=e};function Te(){Te.init.call(this)}(xe=Te).once=function(e,t){return new Promise((function(r,n){function o(){void 0!==i&&e.removeListener("error",i),r([].slice.call(arguments))}var i;"error"!==t&&(i=function(r){e.removeListener(t,o),n(r)},e.once("error",i)),e.once(t,o)}))},Te.EventEmitter=Te,Te.prototype._events=void 0,Te.prototype._eventsCount=0,Te.prototype._maxListeners=void 0;var Le=10;function Ce(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function Oe(e){return void 0===e._maxListeners?Te.defaultMaxListeners:e._maxListeners}function Me(e,t,r,n){var o,i,a,s;if(Ce(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=Oe(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function je(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(n);return o.listener=r,n.wrapFn=o,o}function Be(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):Pe(o,o.length)}function Ie(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function Pe(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}Object.defineProperty(Te,"defaultMaxListeners",{enumerable:!0,get:function(){return Le},set:function(e){if("number"!=typeof e||e<0||ke(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Le=e}}),Te.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Te.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||ke(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},Te.prototype.getMaxListeners=function(){return Oe(this)},Te.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)Ae(s,this,t);else{var u=s.length,f=Pe(s,u);for(r=0;r<u;++r)Ae(f[r],this,t)}return!0},Te.prototype.addListener=function(e,t){return Me(this,e,t,!1)},Te.prototype.on=Te.prototype.addListener,Te.prototype.prependListener=function(e,t){return Me(this,e,t,!0)},Te.prototype.once=function(e,t){return Ce(t),this.on(e,je(this,e,t)),this},Te.prototype.prependOnceListener=function(e,t){return Ce(t),this.prependListener(e,je(this,e,t)),this},Te.prototype.removeListener=function(e,t){var r,n,o,i,a;if(Ce(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},Te.prototype.off=Te.prototype.removeListener,Te.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},Te.prototype.listeners=function(e){return Be(this,e,!0)},Te.prototype.rawListeners=function(e){return Be(this,e,!1)},Te.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Ie.call(e,t)},Te.prototype.listenerCount=Ie,Te.prototype.eventNames=function(){return this._eventsCount>0?Se(this._events):[]};var Ue=xe.EventEmitter;function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function De(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var He,Fe,We=u({}).Buffer,Ge=we.inspect,$e=Ge&&Ge.custom||"inspect",ze=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value: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}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return We.alloc(0);for(var t,r,n,o=We.allocUnsafe(e>>>0),i=this.head,a=0;i;)t=i.data,r=o,n=a,We.prototype.copy.call(t,r,n),a+=i.data.length,i=i.next;return o}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var o=t.data,i=e>o.length?o.length:e;if(i===o.length?n+=o:n+=o.slice(0,e),0==(e-=i)){i===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=We.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,i=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,i),0==(e-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(i));break}++n}return this.length-=n,t}},{key:$e,value:function(e,t){return Ge(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach((function(t){qe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&De(t.prototype,r),e}(),Ke={},Ve=Ke={};function Ye(){throw new Error("setTimeout has not been defined")}function Xe(){throw new Error("clearTimeout has not been defined")}function Je(e){if(He===setTimeout)return setTimeout(e,0);if((He===Ye||!He)&&setTimeout)return He=setTimeout,setTimeout(e,0);try{return He(e,0)}catch(t){try{return He.call(null,e,0)}catch(t){return He.call(this,e,0)}}}!function(){try{He="function"==typeof setTimeout?setTimeout:Ye}catch(e){He=Ye}try{Fe="function"==typeof clearTimeout?clearTimeout:Xe}catch(e){Fe=Xe}}();var Ze,Qe=[],et=!1,tt=-1;function rt(){et&&Ze&&(et=!1,Ze.length?Qe=Ze.concat(Qe):tt=-1,Qe.length&&nt())}function nt(){if(!et){var e=Je(rt);et=!0;for(var t=Qe.length;t;){for(Ze=Qe,Qe=[];++tt<t;)Ze&&Ze[tt].run();tt=-1,t=Qe.length}Ze=null,et=!1,function(e){if(Fe===clearTimeout)return clearTimeout(e);if((Fe===Xe||!Fe)&&clearTimeout)return Fe=clearTimeout,clearTimeout(e);try{Fe(e)}catch(t){try{return Fe.call(null,e)}catch(t){return Fe.call(this,e)}}}(e)}}function ot(e,t){this.fun=e,this.array=t}function it(){}Ve.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Qe.push(new ot(e,t)),1!==Qe.length||et||Je(nt)},ot.prototype.run=function(){this.fun.apply(null,this.array)},Ve.title="browser",Ve.browser=!0,Ve.env={},Ve.argv=[],Ve.version="",Ve.versions={},Ve.on=it,Ve.addListener=it,Ve.once=it,Ve.off=it,Ve.removeListener=it,Ve.removeAllListeners=it,Ve.emit=it,Ve.prependListener=it,Ve.prependOnceListener=it,Ve.listeners=function(e){return[]},Ve.binding=function(e){throw new Error("process.binding is not supported")},Ve.cwd=function(){return"/"},Ve.chdir=function(e){throw new Error("process.chdir is not supported")},Ve.umask=function(){return 0};var at={};(function(e){(function(){"use strict";function t(e,t){n(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}at={destroy:function(o,i){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(i?i(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(n,this,o)):e.nextTick(n,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,(function(n){!i&&n?a._writableState?a._writableState.errorEmitted?e.nextTick(r,a):(a._writableState.errorEmitted=!0,e.nextTick(t,a,n)):e.nextTick(t,a,n):i?(e.nextTick(r,a),i(n)):e.nextTick(r,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,Ke);var st={},ut={};function ft(e,t,r){r||(r=Error);var n=function(e){var r,n;function o(r,n,o){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,o))||this}return n=e,(r=o).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,o}(r);n.prototype.name=r.name,n.prototype.code=e,ut[e]=n}function ct(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}ft("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),ft("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,o,i,a;if("string"==typeof t&&("not ","not "===t.substr(0,"not ".length))?(n="must not be",t=t.replace(/^not /,"")):n="must be",i=e,(void 0===a||a>i.length)&&(a=i.length)," argument"===i.substring(a-" argument".length,a))o="The ".concat(e," ").concat(n," ").concat(ct(t,"type"));else{var s=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+".".length>e.length)&&-1!==e.indexOf(".",r)}(e)?"property":"argument";o='The "'.concat(e,'" ').concat(s," ").concat(n," ").concat(ct(t,"type"))}return o+". Received type ".concat(typeof r)}),TypeError),ft("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ft("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),ft("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ft("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),ft("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ft("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ft("ERR_STREAM_WRITE_AFTER_END","write after end"),ft("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ft("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),ft("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),st.codes=ut;var lt=st.codes.ERR_INVALID_OPT_VALUE,ht={getHighWaterMark:function(e,t,r,n){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,n,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new lt(n?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}},dt={};(function(e){(function(){function t(t){try{if(!e.localStorage)return!1}catch(n){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}dt=function(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw new Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var pt=Et,yt=st.codes,gt=yt.ERR_METHOD_NOT_IMPLEMENTED,vt=yt.ERR_MULTIPLE_CALLBACK,bt=yt.ERR_TRANSFORM_ALREADY_TRANSFORMING,mt=yt.ERR_TRANSFORM_WITH_LENGTH_0,wt=a({});function _t(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new vt);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function Et(e){if(!(this instanceof Et))return new Et(e);wt.call(this,e),this._transformState={afterTransform:_t.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",St)}function St(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?xt(this,null,null):this._flush((function(t,r){xt(e,t,r)}))}function xt(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new mt;if(e._transformState.transforming)throw new bt;return e.push(null)}Ee(Et,wt),Et.prototype.push=function(e,t){return this._transformState.needTransform=!1,wt.prototype.push.call(this,e,t)},Et.prototype._transform=function(e,t,r){r(new gt("_transform()"))},Et.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},Et.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},Et.prototype._destroy=function(e,t){wt.prototype._destroy.call(this,e,(function(e){t(e)}))};var Rt,At=kt;function kt(e){if(!(this instanceof kt))return new kt(e);pt.call(this,e)}Ee(kt,pt),kt.prototype._transform=function(e,t,r){r(null,e)};var Tt=st.codes,Lt=Tt.ERR_MISSING_ARGS,Ct=Tt.ERR_STREAM_DESTROYED;function Ot(e){if(e)throw e}function Mt(e){e()}function jt(e,t){return e.pipe(t)}var Bt={};(Bt=Bt=t({})).Stream=Bt,Bt.Readable=Bt,Bt.Writable=s({}),Bt.Duplex=a({}),Bt.Transform=pt,Bt.PassThrough=At,Bt.finished=o({}),Bt.pipeline=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=function(e){return e.length?"function"!=typeof e[e.length-1]?Ot:e.pop():Ot}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Lt("streams");var a=t.map((function(e,r){var s=r<t.length-1;return function(e,t,r,n){n=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(n);var i=!1;e.on("close",(function(){i=!0})),void 0===Rt&&(Rt=o({})),Rt(e,{readable:t,writable:r},(function(e){if(e)return n(e);i=!0,n()}));var a=!1;return function(t){if(!i&&!a)return a=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void n(t||new Ct("pipe"))}}(e,s,r>0,(function(e){n||(n=e),e&&a.forEach(Mt),s||(a.forEach(Mt),i(n))}))}));return t.reduce(jt)};var It={};(function(e,t,r){(function(){var n=It.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o=It.IncomingMessage=function(n,o,i,a){var s=this;if(Bt.Readable.call(s),s._mode=i,s.headers={},s.rawHeaders=[],s.trailers={},s.rawTrailers=[],s.on("end",(function(){e.nextTick((function(){s.emit("close")}))})),"fetch"===i){if(s._fetchResponse=o,s.url=o.url,s.statusCode=o.status,s.statusMessage=o.statusText,o.headers.forEach((function(e,t){s.headers[t.toLowerCase()]=e,s.rawHeaders.push(t,e)})),_e.writableStream){var u=new WritableStream({write:function(e){return new Promise((function(t,n){s._destroyed?n():s.push(r.from(e))?t():s._resumeFetch=t}))},close:function(){t.clearTimeout(a),s._destroyed||s.push(null)},abort:function(e){s._destroyed||s.emit("error",e)}});try{return void o.body.pipeTo(u).catch((function(e){t.clearTimeout(a),s._destroyed||s.emit("error",e)}))}catch(h){}}var f=o.body.getReader();!function e(){f.read().then((function(n){if(!s._destroyed){if(n.done)return t.clearTimeout(a),void s.push(null);s.push(r.from(n.value)),e()}})).catch((function(e){t.clearTimeout(a),s._destroyed||s.emit("error",e)}))}()}else if(s._xhr=n,s._pos=0,s.url=n.responseURL,s.statusCode=n.status,s.statusMessage=n.statusText,n.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===s.headers[r]&&(s.headers[r]=[]),s.headers[r].push(t[2])):void 0!==s.headers[r]?s.headers[r]+=", "+t[2]:s.headers[r]=t[2],s.rawHeaders.push(t[1],t[2])}})),s._charset="x-user-defined",!_e.overrideMimeType){var c=s.rawHeaders["mime-type"];if(c){var l=c.match(/;\s*charset=([^;])(;|$)/);l&&(s._charset=l[1].toLowerCase())}s._charset||(s._charset="utf-8")}};Ee(o,Bt.Readable),o.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},o.prototype._onXHRProgress=function(){var e=this,o=e._xhr,i=null;switch(e._mode){case"text":if((i=o.responseText).length>e._pos){var a=i.substr(e._pos);if("x-user-defined"===e._charset){for(var s=r.alloc(a.length),u=0;u<a.length;u++)s[u]=255&a.charCodeAt(u);e.push(s)}else e.push(a,e._charset);e._pos=i.length}break;case"arraybuffer":if(o.readyState!==n.DONE||!o.response)break;i=o.response,e.push(r.from(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=o.response,o.readyState!==n.LOADING||!i)break;e.push(r.from(new Uint8Array(i)));break;case"ms-stream":if(i=o.response,o.readyState!==n.LOADING)break;var f=new t.MSStreamReader;f.onprogress=function(){f.result.byteLength>e._pos&&(e.push(r.from(new Uint8Array(f.result.slice(e._pos)))),e._pos=f.result.byteLength)},f.onload=function(){e.push(null)},f.readAsArrayBuffer(i)}e._xhr.readyState===n.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this)}).call(this,Ke,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},u({}).Buffer);var Pt={};(function(e,t,r){(function(){var n=It.IncomingMessage,o=It.readyStates,i=Pt=function(e){var t,n=this;Bt.Writable.call(n),n._opts=e,n._body=[],n._headers={},e.auth&&n.setHeader("Authorization","Basic "+r.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){n.setHeader(t,e.headers[t])}));var o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!_e.abortController)o=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!_e.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}n._mode=function(e,t){return _e.fetch&&t?"fetch":_e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":_e.msstream?"ms-stream":_e.arraybuffer&&e?"arraybuffer":"text"}(t,o),n._fetchTimer=null,n.on("finish",(function(){n._onFinish()}))};Ee(i,Bt.Writable),i.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===a.indexOf(r)&&(this._headers[r]={name:e,value:t})},i.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},i.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},i.prototype._onFinish=function(){var r=this;if(!r._destroyed){var n=r._opts,i=r._headers,a=null;"GET"!==n.method&&"HEAD"!==n.method&&(a=new Blob(r._body,{type:(i["content-type"]||{}).value||""}));var s=[];if(Object.keys(i).forEach((function(e){var t=i[e].name,r=i[e].value;Array.isArray(r)?r.forEach((function(e){s.push([t,e])})):s.push([t,r])})),"fetch"===r._mode){var u=null;if(_e.abortController){var f=new AbortController;u=f.signal,r._fetchAbortController=f,"requestTimeout"in n&&0!==n.requestTimeout&&(r._fetchTimer=t.setTimeout((function(){r.emit("requestTimeout"),r._fetchAbortController&&r._fetchAbortController.abort()}),n.requestTimeout))}t.fetch(r._opts.url,{method:r._opts.method,headers:s,body:a||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:u}).then((function(e){r._fetchResponse=e,r._connect()}),(function(e){t.clearTimeout(r._fetchTimer),r._destroyed||r.emit("error",e)}))}else{var c=r._xhr=new t.XMLHttpRequest;try{c.open(r._opts.method,r._opts.url,!0)}catch(l){return void e.nextTick((function(){r.emit("error",l)}))}"responseType"in c&&(c.responseType=r._mode),"withCredentials"in c&&(c.withCredentials=!!n.withCredentials),"text"===r._mode&&"overrideMimeType"in c&&c.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(c.timeout=n.requestTimeout,c.ontimeout=function(){r.emit("requestTimeout")}),s.forEach((function(e){c.setRequestHeader(e[0],e[1])})),r._response=null,c.onreadystatechange=function(){switch(c.readyState){case o.LOADING:case o.DONE:r._onXHRProgress()}},"moz-chunked-arraybuffer"===r._mode&&(c.onprogress=function(){r._onXHRProgress()}),c.onerror=function(){r._destroyed||r.emit("error",new Error("XHR error"))};try{c.send(a)}catch(l){return void e.nextTick((function(){r.emit("error",l)}))}}}},i.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(r){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},i.prototype._connect=function(){var e=this;e._destroyed||(e._response=new n(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},i.prototype._write=function(e,t,r){this._body.push(e),r()},i.prototype.abort=i.prototype.destroy=function(){this._destroyed=!0,t.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},i.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),Bt.Writable.prototype.end.call(this,e,t,r)},i.prototype.flushHeaders=function(){},i.prototype.setTimeout=function(){},i.prototype.setNoDelay=function(){},i.prototype.setSocketKeepAlive=function(){};var a=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this)}).call(this,Ke,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},u({}).Buffer);var Ut=Object.prototype.hasOwnProperty,Nt={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},qt={exports:{}};(function(e){(function(){!function(t){var r="object"==typeof qt.exports&&qt.exports&&!qt.exports.nodeType&&qt.exports,n=qt&&!qt.nodeType&&qt,o="object"==typeof e&&e;o.global!==o&&o.window!==o&&o.self!==o||(t=o);var i,a,s=2147483647,u=/^xn--/,f=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,d=String.fromCharCode;function p(e){throw new RangeError(l[e])}function y(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function g(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+y((e=e.replace(c,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function b(e){return y(e,(function(e){var t="";return e>65535&&(t+=d((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+d(e)})).join("")}function m(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,r){var n=0;for(e=r?h(e/700):e>>1,e+=h(e/t);e>455;n+=36)e=h(e/35);return h(n+36*e/(e+38))}function _(e){var t,r,n,o,i,a,u,f,c,l,d,y=[],g=e.length,v=0,m=128,_=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&p("not-basic"),y.push(e.charCodeAt(n));for(o=r>0?r+1:0;o<g;){for(i=v,a=1,u=36;o>=g&&p("invalid-input"),((f=(d=e.charCodeAt(o++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36)>=36||f>h((s-v)/a))&&p("overflow"),v+=f*a,!(f<(c=u<=_?1:u>=_+26?26:u-_));u+=36)a>h(s/(l=36-c))&&p("overflow"),a*=l;_=w(v-i,t=y.length+1,0==i),h(v/t)>s-m&&p("overflow"),m+=h(v/t),v%=t,y.splice(v++,0,m)}return b(y)}function E(e){var t,r,n,o,i,a,u,f,c,l,y,g,b,_,E,S=[];for(g=(e=v(e)).length,t=128,r=0,i=72,a=0;a<g;++a)(y=e[a])<128&&S.push(d(y));for(n=o=S.length,o&&S.push("-");n<g;){for(u=s,a=0;a<g;++a)(y=e[a])>=t&&y<u&&(u=y);for(u-t>h((s-r)/(b=n+1))&&p("overflow"),r+=(u-t)*b,t=u,a=0;a<g;++a)if((y=e[a])<t&&++r>s&&p("overflow"),y==t){for(f=r,c=36;!(f<(l=c<=i?1:c>=i+26?26:c-i));c+=36)E=f-l,_=36-l,S.push(d(m(l+E%_,0))),f=h(E/_);S.push(d(m(f,0))),i=w(r,b,n==o),r=0,++n}++r,++t}return S.join("")}if(i={version:"1.4.1",ucs2:{decode:v,encode:b},decode:_,encode:E,toASCII:function(e){return g(e,(function(e){return f.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return g(e,(function(e){return u.test(e)?_(e.slice(4).toLowerCase()):e}))}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",(function(){return i}));else if(r&&n)if(qt.exports==r)n.exports=i;else for(a in i)i.hasOwnProperty(a)&&(r[a]=i[a]);else t.punycode=i}(this)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),qt=qt.exports;var Dt=function(e){return"string"==typeof e},Ht=function(e){return"object"==typeof e&&null!==e},Ft=function(e){return null===e},Wt=function(e){return null==e};function Gt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var $t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},zt=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},Kt=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Vt(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var Yt=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},Xt={parse:function(e,t,r,n){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(t);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var u=0;u<s;++u){var f,c,l,h,d=e[u].replace(i,"%20"),p=d.indexOf(r);p>=0?(f=d.substr(0,p),c=d.substr(p+1)):(f=d,c=""),l=decodeURIComponent(f),h=decodeURIComponent(c),Gt(o,l)?$t(o[l])?o[l].push(h):o[l]=[o[l],h]:o[l]=h}return o},stringify:function(e,t,r,n){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Vt(Yt(e),(function(n){var o=encodeURIComponent(zt(n))+r;return Kt(e[n])?Vt(e[n],(function(e){return o+encodeURIComponent(zt(e))})).join(t):o+encodeURIComponent(zt(e[n]))})).join(t):n?encodeURIComponent(zt(n))+r+encodeURIComponent(zt(e)):""}},Jt={};function Zt(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}Jt.parse=lr;var Qt=/^([a-z0-9.+-]+:)/i,er=/:[0-9]*$/,tr=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,rr=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),nr=["'"].concat(rr),or=["%","/","?",";","#"].concat(nr),ir=["/","?","#"],ar=/^[+a-z0-9A-Z_-]{0,63}$/,sr=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ur={javascript:!0,"javascript:":!0},fr={javascript:!0,"javascript:":!0},cr={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function lr(e,t,r){if(e&&Ht(e)&&e instanceof Zt)return e;var n=new Zt;return n.parse(e,t,r),n}Zt.prototype.parse=function(e,t,r){if(!Dt(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),o=-1!==n&&n<e.indexOf("#")?"?":"#",i=e.split(o);i[0]=i[0].replace(/\\/g,"/");var a=e=i.join(o);if(a=a.trim(),!r&&1===e.split("#").length){var s=tr.exec(a);if(s)return this.path=a,this.href=a,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?Xt.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=Qt.exec(a);if(u){var f=(u=u[0]).toLowerCase();this.protocol=f,a=a.substr(u.length)}if(r||u||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var c="//"===a.substr(0,2);!c||u&&fr[u]||(a=a.substr(2),this.slashes=!0)}if(!fr[u]&&(c||u&&!cr[u])){for(var l,h,d=-1,p=0;p<ir.length;p++)-1!==(y=a.indexOf(ir[p]))&&(-1===d||y<d)&&(d=y);for(-1!==(h=-1===d?a.lastIndexOf("@"):a.lastIndexOf("@",d))&&(l=a.slice(0,h),a=a.slice(h+1),this.auth=decodeURIComponent(l)),d=-1,p=0;p<or.length;p++){var y;-1!==(y=a.indexOf(or[p]))&&(-1===d||y<d)&&(d=y)}-1===d&&(d=a.length),this.host=a.slice(0,d),a=a.slice(d),this.parseHost(),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g)for(var v=this.hostname.split(/\./),b=(p=0,v.length);p<b;p++){var m=v[p];if(m&&!m.match(ar)){for(var w="",_=0,E=m.length;_<E;_++)m.charCodeAt(_)>127?w+="x":w+=m[_];if(!w.match(ar)){var S=v.slice(0,p),x=v.slice(p+1),R=m.match(sr);R&&(S.push(R[1]),x.unshift(R[2])),x.length&&(a="/"+x.join(".")+a),this.hostname=S.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),g||(this.hostname=qt.toASCII(this.hostname));var A=this.port?":"+this.port:"",k=this.hostname||"";this.host=k+A,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!ur[f])for(p=0,b=nr.length;p<b;p++){var T=nr[p];if(-1!==a.indexOf(T)){var L=encodeURIComponent(T);L===T&&(L=escape(T)),a=a.split(T).join(L)}}var C=a.indexOf("#");-1!==C&&(this.hash=a.substr(C),a=a.slice(0,C));var O=a.indexOf("?");if(-1!==O?(this.search=a.substr(O),this.query=a.substr(O+1),t&&(this.query=Xt.parse(this.query)),a=a.slice(0,O)):t&&(this.search="",this.query={}),a&&(this.pathname=a),cr[f]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){A=this.pathname||"";var M=this.search||"";this.path=A+M}return this.href=this.format(),this},Zt.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&Ht(this.query)&&Object.keys(this.query).length&&(i=Xt.stringify(this.query));var a=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||cr[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+o+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+n},Zt.prototype.resolve=function(e){return this.resolveObject(lr(e,!1,!0)).format()},Zt.prototype.resolveObject=function(e){if(Dt(e)){var t=new Zt;t.parse(e,!1,!0),e=t}for(var r=new Zt,n=Object.keys(this),o=0;o<n.length;o++){var i=n[o];r[i]=this[i]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var u=a[s];"protocol"!==u&&(r[u]=e[u])}return cr[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!cr[e.protocol]){for(var f=Object.keys(e),c=0;c<f.length;c++){var l=f[c];r[l]=e[l]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||fr[e.protocol])r.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",p=r.search||"";r.path=d+p}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var y=r.pathname&&"/"===r.pathname.charAt(0),g=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=g||y||r.host&&e.pathname,b=v,m=r.pathname&&r.pathname.split("/")||[],w=(h=e.pathname&&e.pathname.split("/")||[],r.protocol&&!cr[r.protocol]);if(w&&(r.hostname="",r.port=null,r.host&&(""===m[0]?m[0]=r.host:m.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),v=v&&(""===h[0]||""===m[0])),g)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,m=h;else if(h.length)m||(m=[]),m.pop(),m=m.concat(h),r.search=e.search,r.query=e.query;else if(!Wt(e.search))return w&&(r.hostname=r.host=m.shift(),(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),r.search=e.search,r.query=e.query,Ft(r.pathname)&&Ft(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!m.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var _=m.slice(-1)[0],E=(r.host||e.host||m.length>1)&&("."===_||".."===_)||""===_,S=0,x=m.length;x>=0;x--)"."===(_=m[x])?m.splice(x,1):".."===_?(m.splice(x,1),S++):S&&(m.splice(x,1),S--);if(!v&&!b)for(;S--;S)m.unshift("..");!v||""===m[0]||m[0]&&"/"===m[0].charAt(0)||m.unshift(""),E&&"/"!==m.join("/").substr(-1)&&m.push("");var R,A=""===m[0]||m[0]&&"/"===m[0].charAt(0);return w&&(r.hostname=r.host=A?"":m.length?m.shift():"",(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),(v=v||r.host&&m.length)&&!A&&m.unshift(""),m.length?r.pathname=m.join("/"):(r.pathname=null,r.path=null),Ft(r.pathname)&&Ft(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},Zt.prototype.parseHost=function(){var e=this.host,t=er.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var hr={};(function(e){(function(){var t=hr;t.request=function(t,r){t="string"==typeof t?Jt.parse(t):function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)Ut.call(r,n)&&(e[n]=r[n])}return e}(t);var n=-1===e.location.protocol.search(/^https?:$/)?"http:":"",o=t.protocol||n,i=t.hostname||t.host,a=t.port,s=t.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),t.url=(i?o+"//"+i:"")+(a?":"+a:"")+s,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var u=new Pt(t);return r&&u.on("response",r),u},t.get=function(e,r){var n=t.request(e,r);return n.end(),n},t.ClientRequest=Pt,t.IncomingMessage=It.IncomingMessage,t.Agent=function(){},t.Agent.defaultMaxSockets=4,t.globalAgent=new t.Agent,t.STATUS_CODES=Nt,t.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var dr={},pr=dr;for(var yr in hr)hr.hasOwnProperty(yr)&&(pr[yr]=hr[yr]);function gr(e){if("string"==typeof e&&(e=Jt.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}pr.request=function(e,t){return e=gr(e),hr.request.call(this,e,t)},pr.get=function(e,t){return e=gr(e),hr.get.call(this,e,t)};var vr=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),o=e[e.length-1];return"function"==typeof n&&n!==o&&Object.keys(o).forEach((function(e){n[e]=o[e]})),n}},br={};function mr(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function wr(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}(br=vr(mr)).strict=vr(wr),mr.proto=mr((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return mr(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return wr(this)},configurable:!0})}));var _r={};(function(e){(function(){_r=r;const t=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;function r(n,o){if(n=Object.assign({maxRedirects:10},"string"==typeof n?{url:n}:n),o=br(o),n.url){const{hostname:e,port:t,protocol:r,auth:o,path:i}=Jt.parse(n.url);delete n.url,e||t||r||o?Object.assign(n,{hostname:e,port:t,protocol:r,auth:o,path:i}):n.path=i}const i={"accept-encoding":"gzip, deflate"};let a;n.headers&&Object.keys(n.headers).forEach(e=>i[e.toLowerCase()]=n.headers[e]),n.headers=i,n.body?a=n.json&&!t(n.body)?JSON.stringify(n.body):n.body:n.form&&(a="string"==typeof n.form?n.form:Xt.stringify(n.form),n.headers["content-type"]="application/x-www-form-urlencoded"),a&&(n.method||(n.method="POST"),t(a)||(n.headers["content-length"]=e.byteLength(a)),n.json&&!n.form&&(n.headers["content-type"]="application/json")),delete n.body,delete n.form,n.json&&(n.headers.accept="application/json"),n.method&&(n.method=n.method.toUpperCase());const s=("https:"===n.protocol?dr:hr).request(n,e=>{if(!1!==n.followRedirects&&e.statusCode>=300&&e.statusCode<400&&e.headers.location)return n.url=e.headers.location,delete n.headers.host,e.resume(),"POST"===n.method&&[301,302].includes(e.statusCode)&&(n.method="GET",delete n.headers["content-length"],delete n.headers["content-type"]),0==n.maxRedirects--?o(new Error("too many redirects")):r(n,o);const t="function"==typeof we&&"HEAD"!==n.method;o(null,t?we(e):e)});return s.on("timeout",()=>{s.abort(),o(new Error("Request timed out"))}),s.on("error",o),t(a)?a.on("error",o).pipe(s):s.end(a),s}r.concat=(e,t)=>r(e,(r,n)=>{if(r)return t(r);me(n,(r,o)=>{if(r)return t(r);if(e.json)try{o=JSON.parse(o.toString())}catch(r){return t(r,n,o)}t(null,n,o)})}),["get","post","put","patch","head","delete"].forEach(e=>{r[e]=(t,n)=>("string"==typeof t&&(t={url:t}),r(Object.assign({method:e.toUpperCase()},t),n))})}).call(this)}).call(this,u({}).Buffer);var Er={};(function(e){(function(){"use strict";var t=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];Er.decode=function(r){var n,o=0,i=0,a=0;e.isBuffer(r)||(r=new e(r));for(var s=new e(Math.ceil(5*r.length/8)),u=0;u<r.length&&61!==r[u];u++){var f=r[u]-48;if(!(f<t.length))throw new Error("Invalid input - it is not base32 encoded string");i=t[f],o<=3?0==(o=(o+5)%8)?(n|=i,s[a]=n,a++,n=0):n|=255&i<<8-o:(n|=255&i>>>(o=(o+5)%8),s[a]=n,a++,n=255&i<<8-o)}return s.slice(0,a)}}).call(this)}).call(this,u({}).Buffer);var Sr={};Er.encode,Sr.decode=Er.decode;var xr={};function Rr(e){return e.reduce((e,t,r,n)=>{const o=t.split("-").map(e=>parseInt(e));return e.concat(((e,t=e)=>Array.from({length:t-e+1},(t,r)=>r+e))(...o))},[])}(xr=Rr).parse=Rr,xr.compose=function(e){return e.reduce((e,t,r,n)=>(0!==r&&t===n[r-1]+1||e.push([]),e[e.length-1].push(t),e),[]).map(e=>e.length>1?`${e[0]}-${e[e.length-1]}`:""+e[0])};var Ar={};(function(e){(function(){function t(t){const r={},n=t.split("magnet:?")[1];let o;return(n&&n.length>=0?n.split("&"):[]).forEach(e=>{const t=e.split("=");if(2!==t.length)return;const n=t[0];let o=t[1];"dn"===n&&(o=decodeURIComponent(o).replace(/\+/g," ")),"tr"!==n&&"xs"!==n&&"as"!==n&&"ws"!==n||(o=decodeURIComponent(o)),"kt"===n&&(o=decodeURIComponent(o).split("+")),"ix"===n&&(o=Number(o)),"so"===n&&(o=xr.parse(decodeURIComponent(o).split(","))),r[n]?(Array.isArray(r[n])||(r[n]=[r[n]]),r[n].push(o)):r[n]=o}),r.xt&&(Array.isArray(r.xt)?r.xt:[r.xt]).forEach(t=>{if(o=t.match(/^urn:btih:(.{40})/))r.infoHash=o[1].toLowerCase();else if(o=t.match(/^urn:btih:(.{32})/)){const t=Sr.decode(o[1]);r.infoHash=e.from(t,"binary").toString("hex")}}),r.xs&&(Array.isArray(r.xs)?r.xs:[r.xs]).forEach(e=>{(o=e.match(/^urn:btpk:(.{64})/))&&(r.publicKey=o[1].toLowerCase())}),r.infoHash&&(r.infoHashBuffer=e.from(r.infoHash,"hex")),r.publicKey&&(r.publicKeyBuffer=e.from(r.publicKey,"hex")),r.dn&&(r.name=r.dn),r.kt&&(r.keywords=r.kt),r.announce=[],("string"==typeof r.tr||Array.isArray(r.tr))&&(r.announce=r.announce.concat(r.tr)),r.urlList=[],("string"==typeof r.as||Array.isArray(r.as))&&(r.urlList=r.urlList.concat(r.as)),("string"==typeof r.ws||Array.isArray(r.ws))&&(r.urlList=r.urlList.concat(r.ws)),r.peerAddresses=[],("string"==typeof r["x.pe"]||Array.isArray(r["x.pe"]))&&(r.peerAddresses=r.peerAddresses.concat(r["x.pe"])),r.announce=Array.from(new Set(r.announce)),r.urlList=Array.from(new Set(r.urlList)),r.peerAddresses=Array.from(new Set(r.peerAddresses)),r}(Ar=t).decode=t,Ar.encode=function(e){(e=Object.assign({},e)).infoHashBuffer&&(e.xt="urn:btih:"+e.infoHashBuffer.toString("hex")),e.infoHash&&(e.xt="urn:btih:"+e.infoHash),e.publicKeyBuffer&&(e.xs="urn:btpk:"+e.publicKeyBuffer.toString("hex")),e.publicKey&&(e.xs="urn:btpk:"+e.publicKey),e.name&&(e.dn=e.name),e.keywords&&(e.kt=e.keywords),e.announce&&(e.tr=e.announce),e.urlList&&(e.ws=e.urlList,delete e.as),e.peerAddresses&&(e["x.pe"]=e.peerAddresses);let t="magnet:?";return Object.keys(e).filter(e=>2===e.length||"x.pe"===e).forEach((r,n)=>{const o=Array.isArray(e[r])?e[r]:[e[r]];o.forEach((e,o)=>{(n>0||o>0)&&("kt"!==r&&"so"!==r||0===o)&&(t+="&"),"dn"===r&&(e=encodeURIComponent(e).replace(/%20/g,"+")),"tr"!==r&&"as"!==r&&"ws"!==r||(e=encodeURIComponent(e)),"xs"!==r||e.startsWith("urn:btpk:")||(e=encodeURIComponent(e)),"kt"===r&&(e=encodeURIComponent(e)),"so"!==r&&(t+="kt"===r&&o>0?"+"+e:`${r}=${e}`)}),"so"===r&&(t+=`${r}=${xr.compose(o)}`)}),t}}).call(this)}).call(this,u({}).Buffer);var kr={};(function(e){(function(){"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",o=0,i=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(i===s-1||1===a);else if(i!==s-1&&2===a){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){-1===u?(n="",o=0):o=(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),i=s,a=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=s,a=0;continue}t&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var n={resolve:function(){for(var n,o="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var s;a>=0?s=arguments[a]:(void 0===n&&(n=e.cwd()),s=n),t(s),0!==s.length&&(o=s+"/"+o,i=47===s.charCodeAt(0))}return o=r(o,!i),i?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&o&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var o=arguments[r];t(o),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r)return"";if((e=n.resolve(e))===(r=n.resolve(r)))return"";for(var o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var i=e.length,a=i-o,s=1;s<r.length&&47===r.charCodeAt(s);++s);for(var u=r.length-s,f=a<u?a:u,c=-1,l=0;l<=f;++l){if(l===f){if(u>f){if(47===r.charCodeAt(s+l))return r.slice(s+l+1);if(0===l)return r.slice(s+l)}else a>f&&(47===e.charCodeAt(o+l)?c=l:0===l&&(c=0));break}var h=e.charCodeAt(o+l);if(h!==r.charCodeAt(s+l))break;47===h&&(c=l)}var d="";for(l=o+c+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===d.length?d+="..":d+="/..");return d.length>0?d+r.slice(s+c):(s+=c,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,o=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(r=e.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return-1===o?n?"/":".":n&&1===o?"//":e.slice(0,o)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');t(e);var n,o=0,i=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var s=r.length-1,u=-1;for(n=e.length-1;n>=0;--n){var f=e.charCodeAt(n);if(47===f){if(!a){o=n+1;break}}else-1===u&&(a=!1,u=n+1),s>=0&&(f===r.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=u))}return o===i?i=u:-1===i&&(i=e.length),e.slice(o,i)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){o=n+1;break}}else-1===i&&(a=!1,i=n+1);return-1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var r=-1,n=0,o=-1,i=!0,a=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(47!==u)-1===o&&(i=!1,o=s+1),46===u?-1===r?r=s:1!==a&&(a=1):-1!==r&&(a=-1);else if(!i){n=s+1;break}}return-1===r||-1===o||0===a||1===a&&r===o-1&&r===n+1?"":e.slice(r,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n}(0,e)},parse:function(e){t(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n,o=e.charCodeAt(0),i=47===o;i?(r.root="/",n=1):n=0;for(var a=-1,s=0,u=-1,f=!0,c=e.length-1,l=0;c>=n;--c)if(47!==(o=e.charCodeAt(c)))-1===u&&(f=!1,u=c+1),46===o?-1===a?a=c:1!==l&&(l=1):-1!==a&&(l=-1);else if(!f){s=c+1;break}return-1===a||-1===u||0===l||1===l&&a===u-1&&a===s+1?-1!==u&&(r.base=r.name=0===s&&i?e.slice(1,u):e.slice(s,u)):(0===s&&i?(r.name=e.slice(1,a),r.base=e.slice(1,u)):(r.name=e.slice(s,a),r.base=e.slice(s,u)),r.ext=e.slice(a,u)),s>0?r.dir=e.slice(0,s-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,kr=n}).call(this)}).call(this,Ke);var Tr,Lr,Cr,Or,Mr,jr={exports:{}};Tr="undefined"!=typeof self?self:this,Lr=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([function(e,t,r){var n=r(5),o=r(1),i=o.toHex,a=o.ceilHeapSize,s=r(6),u=function(e){for(e+=9;e%64>0;e+=1);return e},f=function(e,t){var r=new Int32Array(e,t+320,5),n=new Int32Array(5),o=new DataView(n.buffer);return o.setInt32(0,r[0],!1),o.setInt32(4,r[1],!1),o.setInt32(8,r[2],!1),o.setInt32(12,r[3],!1),o.setInt32(16,r[4],!1),n},c=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=t||65536)%64>0)throw new Error("Chunk size must be a multiple of 128 bit");this._offset=0,this._maxChunkLen=t,this._padMaxChunkLen=u(t),this._heap=new ArrayBuffer(a(this._padMaxChunkLen+320+20)),this._h32=new Int32Array(this._heap),this._h8=new Int8Array(this._heap),this._core=new n({Int32Array:Int32Array},{},this._heap)}return e.prototype._initState=function(e,t){this._offset=0;var r=new Int32Array(e,t+320,5);r[0]=1732584193,r[1]=-271733879,r[2]=-1732584194,r[3]=271733878,r[4]=-1009589776},e.prototype._padChunk=function(e,t){var r=u(e),n=new Int32Array(this._heap,0,r>>2);return function(e,t){var r=new Uint8Array(e.buffer),n=t%4,o=t-n;switch(n){case 0:r[o+3]=0;case 1:r[o+2]=0;case 2:r[o+1]=0;case 3:r[o+0]=0}for(var i=1+(t>>2);i<e.length;i++)e[i]=0}(n,e),function(e,t,r){e[t>>2]|=128<<24-(t%4<<3),e[14+(2+(t>>2)&-16)]=r/(1<<29)|0,e[15+(2+(t>>2)&-16)]=r<<3}(n,e,t),r},e.prototype._write=function(e,t,r,n){s(e,this._h8,this._h32,t,r,n||0)},e.prototype._coreCall=function(e,t,r,n,o){var i=r;this._write(e,t,r),o&&(i=this._padChunk(r,n)),this._core.hash(i,this._padMaxChunkLen)},e.prototype.rawDigest=function(e){var t=e.byteLength||e.length||e.size||0;this._initState(this._heap,this._padMaxChunkLen);var r=0,n=this._maxChunkLen;for(r=0;t>r+n;r+=n)this._coreCall(e,r,n,t,!1);return this._coreCall(e,r,t-r,t,!0),f(this._heap,this._padMaxChunkLen)},e.prototype.digest=function(e){return i(this.rawDigest(e).buffer)},e.prototype.digestFromString=function(e){return this.digest(e)},e.prototype.digestFromBuffer=function(e){return this.digest(e)},e.prototype.digestFromArrayBuffer=function(e){return this.digest(e)},e.prototype.resetState=function(){return this._initState(this._heap,this._padMaxChunkLen),this},e.prototype.append=function(e){var t=0,r=e.byteLength||e.length||e.size||0,n=this._offset%this._maxChunkLen,o=void 0;for(this._offset+=r;t<r;)o=Math.min(r-t,this._maxChunkLen-n),this._write(e,t,o,n),t+=o,(n+=o)===this._maxChunkLen&&(this._core.hash(this._maxChunkLen,this._padMaxChunkLen),n=0);return this},e.prototype.getState=function(){var e=void 0;if(this._offset%this._maxChunkLen)e=this._heap.slice(0);else{var t=new Int32Array(this._heap,this._padMaxChunkLen+320,5);e=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}return{offset:this._offset,heap:e}},e.prototype.setState=function(e){return this._offset=e.offset,20===e.heap.byteLength?new Int32Array(this._heap,this._padMaxChunkLen+320,5).set(new Int32Array(e.heap)):this._h32.set(new Int32Array(e.heap)),this},e.prototype.rawEnd=function(){var e=this._offset,t=e%this._maxChunkLen,r=this._padChunk(t,e);this._core.hash(r,this._padMaxChunkLen);var n=f(this._heap,this._padMaxChunkLen);return this._initState(this._heap,this._padMaxChunkLen),n},e.prototype.end=function(){return i(this.rawEnd().buffer)},e}();e.exports=c,e.exports._core=n},function(e,t){for(var r=new Array(256),n=0;n<256;n++)r[n]=(n<16?"0":"")+n.toString(16);e.exports.toHex=function(e){for(var t=new Uint8Array(e),n=new Array(e.byteLength),o=0;o<n.length;o++)n[o]=r[t[o]];return n.join("")},e.exports.ceilHeapSize=function(e){var t=0;if(e<=65536)return 65536;if(e<16777216)for(t=1;t<e;t<<=1);else for(t=16777216;t<e;t+=16777216);return t},e.exports.isDedicatedWorkerScope=function(e){var t="WorkerGlobalScope"in e&&e instanceof e.WorkerGlobalScope,r="SharedWorkerGlobalScope"in e&&e instanceof e.SharedWorkerGlobalScope,n="ServiceWorkerGlobalScope"in e&&e instanceof e.ServiceWorkerGlobalScope;return t&&!r&&!n}},function(e,t,r){e.exports=function(){var e=r(0),t=function(e,r,n,o,i){var a=new self.FileReader;a.onloadend=function(){if(a.error)return i(a.error);var s=a.result;r+=a.result.byteLength;try{e.append(s)}catch(u){return void i(u)}r<o.size?t(e,r,n,o,i):i(null,e.end())},a.readAsArrayBuffer(o.slice(r,r+n))},n=!0;return self.onmessage=function(r){if(n){var o=r.data.data,i=r.data.file,a=r.data.id;if(void 0!==a&&(i||o)){var s=r.data.blockSize||4194304,u=new e(s);u.resetState();var f=function(e,t){e?self.postMessage({id:a,error:e.name}):self.postMessage({id:a,hash:t})};o&&function(e,t,r){try{r(null,e.digest(t))}catch(n){return r(n)}}(u,o,f),i&&t(u,0,s,i,f)}}},function(){n=!1}}},function(e,t,r){var n=r(4),o=r(0),i=r(7),a=r(2),s=r(1).isDedicatedWorkerScope,u="undefined"!=typeof self&&s(self);o.disableWorkerBehaviour=u?a():function(){},o.createWorker=function(){var e=n(2),t=e.terminate;return e.terminate=function(){URL.revokeObjectURL(e.objectURL),t.call(e)},e},o.createHash=i,e.exports=o},function(e,t,r){function n(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r.oe=function(e){throw console.error(e),e};var n=r(r.s=ENTRY_MODULE);return n.default||n}function o(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function i(e,t,n){var i={};i[n]=[];var a=t.toString(),s=a.match(/^function\s?\(\w+,\s*\w+,\s*(\w+)\)/);if(!s)return i;for(var u,f=s[1],c=new RegExp("(\\\\n|\\W)"+o(f)+"\\((/\\*.*?\\*/)?s?.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)","g");u=c.exec(a);)"dll-reference"!==u[3]&&i[n].push(u[3]);for(c=new RegExp("\\("+o(f)+'\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)\\((/\\*.*?\\*/)?s?.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)',"g");u=c.exec(a);)e[u[2]]||(i[n].push(u[1]),e[u[2]]=r(u[1]).m),i[u[2]]=i[u[2]]||[],i[u[2]].push(u[4]);return i}function a(e){return Object.keys(e).reduce((function(t,r){return t||e[r].length>0}),!1)}e.exports=function(e,t){t=t||{};var o={main:r.m},s=t.all?{main:Object.keys(o)}:function(e,t){for(var r={main:[t]},n={main:[]},o={main:{}};a(r);)for(var s=Object.keys(r),u=0;u<s.length;u++){var f=s[u],c=r[f].pop();if(o[f]=o[f]||{},!o[f][c]&&e[f][c]){o[f][c]=!0,n[f]=n[f]||[],n[f].push(c);for(var l=i(e,e[f][c],f),h=Object.keys(l),d=0;d<h.length;d++)r[h[d]]=r[h[d]]||[],r[h[d]]=r[h[d]].concat(l[h[d]])}}return n}(o,e),u="";Object.keys(s).filter((function(e){return"main"!==e})).forEach((function(e){for(var t=0;s[e][t];)t++;s[e].push(t),o[e][t]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",u=u+"var "+e+" = ("+n.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+s[e].map((function(t){return JSON.stringify(t)+": "+o[e][t].toString()})).join(",")+"});\n"})),u=u+"("+n.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+s.main.map((function(e){return JSON.stringify(e)+": "+o.main[e].toString()})).join(",")+"})(self);";var f=new window.Blob([u],{type:"text/javascript"});if(t.bare)return f;var c=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(f),l=new window.Worker(c);return l.objectURL=c,l}},function(e,t){e.exports=function(e,t,r){"use asm";var n=new e.Int32Array(r);function o(e,t){e=e|0;t=t|0;var r=0,o=0,i=0,a=0,s=0,u=0,f=0,c=0,l=0,h=0,d=0,p=0,y=0,g=0;i=n[t+320>>2]|0;s=n[t+324>>2]|0;f=n[t+328>>2]|0;l=n[t+332>>2]|0;d=n[t+336>>2]|0;for(r=0;(r|0)<(e|0);r=r+64|0){a=i;u=s;c=f;h=l;p=d;for(o=0;(o|0)<64;o=o+4|0){g=n[r+o>>2]|0;y=((i<<5|i>>>27)+(s&f|~s&l)|0)+((g+d|0)+1518500249|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[e+o>>2]=g}for(o=e+64|0;(o|0)<(e+80|0);o=o+4|0){g=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;y=((i<<5|i>>>27)+(s&f|~s&l)|0)+((g+d|0)+1518500249|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[o>>2]=g}for(o=e+80|0;(o|0)<(e+160|0);o=o+4|0){g=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;y=((i<<5|i>>>27)+(s^f^l)|0)+((g+d|0)+1859775393|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[o>>2]=g}for(o=e+160|0;(o|0)<(e+240|0);o=o+4|0){g=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;y=((i<<5|i>>>27)+(s&f|s&l|f&l)|0)+((g+d|0)-1894007588|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[o>>2]=g}for(o=e+240|0;(o|0)<(e+320|0);o=o+4|0){g=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;y=((i<<5|i>>>27)+(s^f^l)|0)+((g+d|0)-899497514|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[o>>2]=g}i=i+a|0;s=s+u|0;f=f+c|0;l=l+h|0;d=d+p|0}n[t+320>>2]=i;n[t+324>>2]=s;n[t+328>>2]=f;n[t+332>>2]=l;n[t+336>>2]=d}return{hash:o}}},function(e,t){var r=this,n=void 0;"undefined"!=typeof self&&void 0!==self.FileReaderSync&&(n=new self.FileReaderSync);var o=function(e,t,r,n,o,i){var a=void 0,s=i%4,u=(o+s)%4,f=o-u;switch(s){case 0:t[i]=e[n+3];case 1:t[i+1-(s<<1)|0]=e[n+2];case 2:t[i+2-(s<<1)|0]=e[n+1];case 3:t[i+3-(s<<1)|0]=e[n]}if(!(o<u+(4-s))){for(a=4-s;a<f;a=a+4|0)r[i+a>>2|0]=e[n+a]<<24|e[n+a+1]<<16|e[n+a+2]<<8|e[n+a+3];switch(u){case 3:t[i+f+1|0]=e[n+f+2];case 2:t[i+f+2|0]=e[n+f+1];case 1:t[i+f+3|0]=e[n+f]}}};e.exports=function(e,t,i,a,s,u){if("string"==typeof e)return function(e,t,r,n,o,i){var a=void 0,s=i%4,u=(o+s)%4,f=o-u;switch(s){case 0:t[i]=e.charCodeAt(n+3);case 1:t[i+1-(s<<1)|0]=e.charCodeAt(n+2);case 2:t[i+2-(s<<1)|0]=e.charCodeAt(n+1);case 3:t[i+3-(s<<1)|0]=e.charCodeAt(n)}if(!(o<u+(4-s))){for(a=4-s;a<f;a=a+4|0)r[i+a>>2]=e.charCodeAt(n+a)<<24|e.charCodeAt(n+a+1)<<16|e.charCodeAt(n+a+2)<<8|e.charCodeAt(n+a+3);switch(u){case 3:t[i+f+1|0]=e.charCodeAt(n+f+2);case 2:t[i+f+2|0]=e.charCodeAt(n+f+1);case 1:t[i+f+3|0]=e.charCodeAt(n+f)}}}(e,t,i,a,s,u);if(e instanceof Array)return o(e,t,i,a,s,u);if(r&&r.Buffer&&r.Buffer.isBuffer(e))return o(e,t,i,a,s,u);if(e instanceof ArrayBuffer)return o(new Uint8Array(e),t,i,a,s,u);if(e.buffer instanceof ArrayBuffer)return o(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t,i,a,s,u);if(e instanceof Blob)return function(e,t,r,o,i,a){var s=void 0,u=a%4,f=(i+u)%4,c=i-f,l=new Uint8Array(n.readAsArrayBuffer(e.slice(o,o+i)));switch(u){case 0:t[a]=l[3];case 1:t[a+1-(u<<1)|0]=l[2];case 2:t[a+2-(u<<1)|0]=l[1];case 3:t[a+3-(u<<1)|0]=l[0]}if(!(i<f+(4-u))){for(s=4-u;s<c;s=s+4|0)r[a+s>>2|0]=l[s]<<24|l[s+1]<<16|l[s+2]<<8|l[s+3];switch(f){case 3:t[a+c+1|0]=l[c+2];case 2:t[a+c+2|0]=l[c+1];case 1:t[a+c+3|0]=l[c]}}}(e,t,i,a,s,u);throw new Error("Unsupported data type.")}},function(e,t,r){var n=r(0),o=r(1).toHex,i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._rusha=new n,this._rusha.resetState()}return e.prototype.update=function(e){return this._rusha.append(e),this},e.prototype.digest=function(e){var t=this._rusha.rawEnd().buffer;if(!e)return t;if("hex"===e)return o(t);throw new Error("unsupported digest encoding")},e}();e.exports=function(){return new i}}])},"object"==typeof jr.exports?jr.exports=Lr():"function"==typeof define&&define.amd?define([],Lr):"object"==typeof jr.exports?jr.exports.Rusha=Lr():Tr.Rusha=Lr(),jr=jr.exports;var Br,Ir=new jr,Pr="undefined"!=typeof window?window:self,Ur=Pr.crypto||Pr.msCrypto||{},Nr=Ur.subtle||Ur.webkitSubtle;function qr(e){return Ir.digest(e)}try{Nr.digest({name:"sha-1"},new Uint8Array).catch((function(){Nr=!1}))}catch(Kr){Nr=!1}(Br=function(e,t){Nr?("string"==typeof e&&(e=function(e){for(var t=e.length,r=new Uint8Array(t),n=0;n<t;n++)r[n]=e.charCodeAt(n);return r}(e)),Nr.digest({name:"sha-1"},e).then((function(e){t(function(e){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")}(new Uint8Array(e)))}),(function(){t(qr(e))}))):"undefined"!=typeof window?function(e,t){Cr||(Cr=jr.createWorker(),Or=1,Mr={},Cr.onmessage=function(e){var t=e.data.id,r=Mr[t];delete Mr[t],null!=e.data.error?r(new Error("Rusha worker error: "+e.data.error)):r(null,e.data.hash)}),Mr[Or]=t,Cr.postMessage({id:Or,data:e}),Or+=1}(e,(function(r,n){t(r?qr(e):n)})):queueMicrotask(()=>t(qr(e)))}).sync=qr;var Dr={};(function(e,t){(function(){function r(e){if("string"==typeof e&&/^(stream-)?magnet:/.test(e)){const t=Ar(e);if(!t.infoHash)throw new Error("Invalid torrent identifier");return t}if("string"==typeof e&&(/^[a-f0-9]{40}$/i.test(e)||/^[a-z2-7]{32}$/i.test(e)))return Ar("magnet:?xt=urn:btih:"+e);if(t.isBuffer(e)&&20===e.length)return Ar("magnet:?xt=urn:btih:"+e.toString("hex"));if(t.isBuffer(e))return function(e){t.isBuffer(e)&&(e=ye.decode(e)),o(e.info,"info"),o(e.info["name.utf-8"]||e.info.name,"info.name"),o(e.info["piece length"],"info['piece length']"),o(e.info.pieces,"info.pieces"),e.info.files?e.info.files.forEach(e=>{o("number"==typeof e.length,"info.files[0].length"),o(e["path.utf-8"]||e.path,"info.files[0].path")}):o("number"==typeof e.info.length,"info.length");const r={info:e.info,infoBuffer:ye.encode(e.info),name:(e.info["name.utf-8"]||e.info.name).toString(),announce:[]};r.infoHash=Br.sync(r.infoBuffer),r.infoHashBuffer=t.from(r.infoHash,"hex"),void 0!==e.info.private&&(r.private=!!e.info.private),e["creation date"]&&(r.created=new Date(1e3*e["creation date"])),e["created by"]&&(r.createdBy=e["created by"].toString()),t.isBuffer(e.comment)&&(r.comment=e.comment.toString()),Array.isArray(e["announce-list"])&&e["announce-list"].length>0?e["announce-list"].forEach(e=>{e.forEach(e=>{r.announce.push(e.toString())})}):e.announce&&r.announce.push(e.announce.toString()),t.isBuffer(e["url-list"])&&(e["url-list"]=e["url-list"].length>0?[e["url-list"]]:[]),r.urlList=(e["url-list"]||[]).map(e=>e.toString()),r.announce=Array.from(new Set(r.announce)),r.urlList=Array.from(new Set(r.urlList));const i=e.info.files||[e.info];r.files=i.map((e,t)=>{const o=[].concat(r.name,e["path.utf-8"]||e.path||[]).map(e=>e.toString());return{path:kr.join.apply(null,[kr.sep].concat(o)).slice(1),name:o[o.length-1],length:e.length,offset:i.slice(0,t).reduce(n,0)}}),r.length=i.reduce(n,0);const a=r.files[r.files.length-1];return r.pieceLength=e.info["piece length"],r.lastPieceLength=(a.offset+a.length)%r.pieceLength||r.pieceLength,r.pieces=function(e){const t=[];for(let r=0;r<e.length;r+=20)t.push(e.slice(r,r+20).toString("hex"));return t}(e.info.pieces),r}(e);if(e&&e.infoHash)return e.infoHash=e.infoHash.toLowerCase(),e.announce||(e.announce=[]),"string"==typeof e.announce&&(e.announce=[e.announce]),e.urlList||(e.urlList=[]),e;throw new Error("Invalid torrent identifier")}function n(e,t){return e+t.length}function o(e,t){if(!e)throw new Error("Torrent is missing required field: "+t)}(Dr=r).remote=function t(n,o,i){if("function"==typeof o)return t(n,{},o);if("function"!=typeof i)throw new Error("second argument must be a Function");let a;try{a=r(n)}catch(Kr){}function s(e){try{a=r(e)}catch(Kr){return i(Kr)}a&&a.infoHash?i(null,a):i(new Error("Invalid torrent identifier"))}a&&a.infoHash?e.nextTick(()=>{i(null,a)}):"undefined"!=typeof Blob&&n instanceof Blob?ve(n,(e,t)=>{if(e)return i(new Error("Error converting Blob: "+e.message));s(t)}):"function"==typeof _r&&/^https?:/.test(n)?(o=Object.assign({url:n,timeout:3e4,headers:{"user-agent":"WebTorrent (https://webtorrent.io)"}},o),_r.concat(o,(e,t,r)=>{if(e)return i(new Error("Error downloading torrent: "+e.message));s(r)})):"function"==typeof be.readFile&&"string"==typeof n?be.readFile(n,(e,t)=>{if(e)return i(new Error("Invalid torrent identifier"));s(t)}):e.nextTick(()=>{i(new Error("Invalid torrent identifier"))})},Dr.toMagnetURI=Ar.encode,Dr.toTorrentFile=function(e){const r={info:e.info};return r["announce-list"]=(e.announce||[]).map(e=>(r.announce||(r.announce=e),[e=t.from(e,"utf8")])),r["url-list"]=e.urlList||[],void 0!==e.private&&(r.private=Number(e.private)),e.created&&(r["creation date"]=e.created.getTime()/1e3|0),e.createdBy&&(r["created by"]=e.createdBy),e.comment&&(r.comment=e.comment),ye.encode(r)},t.alloc(0)}).call(this)}).call(this,Ke,u({}).Buffer);var Hr={};(function(e){(function(){"use strict";var t=f(h),r=f(p),n=f(y),o=f(v),i=f(b),a=function(){function a(){(0,n.default)(this,a),(0,i.default)(this,"weight",102),(0,i.default)(this,"enabled",!0),(0,i.default)(this,"site","yts.mx"),(0,i.default)(this,"src","https://yts.mx/browse-movies/__keyword__/all/all/0/latest/0/all")}return(0,o.default)(a,[{key:"execute",value:(s=(0,r.default)(t.default.mark((function e(n){var o,i,a,s,u,f=this;return t.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.length<=0)){e.next=2;break}return e.abrupt("return",[]);case 2:return o=this.src.replace("__keyword__",n),o=encodeURI(o),e.next=6,this._doRequest(o);case 6:return i=e.sent,a=$.parseHTML(i.responseText),s=$(a).find(".browse-content .container .row .browse-movie-wrap"),u=Promise.all(s.map(function(){var e=(0,r.default)(t.default.mark((function e(r,n){var o,i,a;return t.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=$(n).find(".browse-movie-link").attr("href"),e.next=3,f._doRequest(o);case 3:return i=e.sent,a=i.responseText,e.next=7,f._fieldRef(a);case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()).get()),e.abrupt("return",u);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"filterKeyword",value:function(e){var t=e;return(t=t.replace(/^[^a-zA-Z]*/,"")).replace(/Season\s/,"S")}},{key:"_doRequest",value:function(e){return new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:e,timeout:1e4,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(e){200===e.status?t(e):r(e)}})}))}},{key:"_fieldRef",value:function(t){var r=$(t).find('#movie-info p a[rel="nofollow"]');return Promise.all(r.map((function(t,r){var n=$(r).attr("href");return console.log(n),new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:n,responseType:"arraybuffer",timeout:1e4,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(n){if(200===n.status){var o=e.from(n.response);t((i=Dr(o),a=Dr.toMagnetURI(i),s=i.name,u=i.length,{title:s=s.split("\n").join(" ").trim(),link:a,sd:"-1",lc:"-1",size:u=parseFloat(u/1024/1024).toFixed(0)+"M"}))}else r(n);var i,a,s,u}})}))})))}}]),a;var s}();Hr=a}).call(this)}).call(this,u({}).Buffer);var Fr,Wr=[new x,new C,new P,new F,new Hr],Gr=f(h),$r=f(p);Promise.main=(Fr=(0,$r.default)(Gr.default.mark((function e(t){var r,n,o,i,a,s,u,f;return Gr.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.sort((function(e,t){return e.weight-t.weight})),r=$("h1 span:eq(0)").text(),n=0;case 3:if(!(n<t.length)){e.next=22;break}if(o=t[n],(i=o).enabled){e.next=8;break}return e.abrupt("continue",19);case 8:if(!((a=o.filterKeyword(r)).length<=0)){e.next=11;break}return e.abrupt("continue",19);case 11:return console.log(a),e.next=14,i.execute(a).catch((function(e){console.log(e);var t=$('<div class="clearfix" style="float: left; width: 675px"><hr/><p>Seems like you\'re not using VPN</p></div>');$(".article .subjectwrap:first").append(t)}));case 14:s=e.sent,u="",!s||s.length<=0?u="[".concat(i.site,"] No any magnet links can be found!"):(s.forEach((function(e){var t=e.title,r=e.size,n=e.sd,o=e.lc,i=e.link;u+='<li><a href="'.concat(i,'">').concat(t," (sd: ").concat(n,", lc: ").concat(o,", ").concat(r,")</a></li>")})),n=t.length-1),f=$('<div class="clearfix magnet-section" style="float: left; width: 675px"><hr/><ul>'.concat(u,"</ul></div>")),$(".article .subjectwrap:first").append(f);case 19:n++,e.next=3;break;case 22:case"end":return e.stop()}}),e)}))),function(e){return Fr.apply(this,arguments)}),Promise.main(Wr)}();
\ No newline at end of file
+!function(){var e=function(e){var t;return function(r){return t||e(t={exports:{},parent:r},t.exports),t.exports}},t=e((function(e,t){(function(t,o){(function(){"use strict";var s;e.exports=R,R.ReadableState=x,he.EventEmitter;var f,c=function(e,t){return e.listeners(t).length},l=u({}).Buffer,h=o.Uint8Array||function(){};f=ue&&ue.debuglog?ue.debuglog("stream"):function(){};var d,p,y,g=et.getHighWaterMark,v=Ye.codes,b=v.ERR_INVALID_ARG_TYPE,m=v.ERR_STREAM_PUSH_AFTER_EOF,w=v.ERR_METHOD_NOT_IMPLEMENTED,_=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;ce(R,Re);var E=Ve.errorOrDestroy,S=["error","close","destroy","pause","resume"];function x(e,t,r){s=s||a({}),e=e||{},"boolean"!=typeof r&&(r=t instanceof s),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",r),this.buffer=new Be,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.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=i({}).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function R(e){if(s=s||a({}),!(this instanceof R))return new R(e);var t=this instanceof s;this._readableState=new x(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),Re.call(this)}function A(e,t,r,n,o){f("readableAddChunk",t);var i,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(f("onEofChunk"),!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,t.sync?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(e)))}}(e,a);else if(o||(i=function(e,t){var r,n;return n=t,l.isBuffer(n)||n instanceof h||"string"==typeof t||void 0===t||e.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],t)),r}(a,t)),i)E(e,i);else if(a.objectMode||t&&t.length>0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n)a.endEmitted?E(e,new _):k(e,a,t,!0);else if(a.ended)E(e,new m);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?k(e,a,t,!1):O(e,a)):k(e,a,t,!1)}else n||(a.reading=!1,O(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function k(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&L(e)),O(e,t)}Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),R.prototype.destroy=Ve.destroy,R.prototype._undestroy=Ve.undestroy,R.prototype._destroy=function(e,t){t(e)},R.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=l.from(e,t),t=""),r=!0),A(this,e,t,!1,r)},R.prototype.unshift=function(e){return A(this,e,null,!0,!1)},R.prototype.isPaused=function(){return!1===this._readableState.flowing},R.prototype.setEncoding=function(e){d||(d=i({}).StringDecoder);var t=new d(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";null!==r;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function L(e){var r=e._readableState;f("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(f("emitReadable",r.flowing),r.emittedReadable=!0,t.nextTick(C,e))}function C(e){var t=e._readableState;f("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,P(e)}function O(e,r){r.readingMore||(r.readingMore=!0,t.nextTick(M,e,r))}function M(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(f("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function j(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function B(e){f("readable nexttick read 0"),e.read(0)}function I(e,t){f("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function N(e){var r=e._readableState;f("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,t.nextTick(D,r,e))}function D(e,t){if(f("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}R.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?N(this):L(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&N(this),null;var n,o=t.needReadable;return f("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",o=!0),t.ended||t.reading?f("reading or ended",o=!1):o&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=T(r,t))),null===(n=e>0?U(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&N(this)),null!==n&&this.emit("data",n),n},R.prototype._read=function(e){E(this,new w("_read()"))},R.prototype.pipe=function(e,r){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,r);var i=r&&!1===r.end||e===t.stdout||e===t.stderr?y:a;function a(){f("onend"),e.end()}o.endEmitted?t.nextTick(i):n.once("end",i),e.on("unpipe",(function t(r,i){f("onunpipe"),r===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,f("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",h),e.removeListener("unpipe",t),n.removeListener("end",a),n.removeListener("end",y),n.removeListener("data",l),u=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||s())}));var s=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,P(e))}}(n);e.on("drain",s);var u=!1;function l(t){f("ondata");var r=e.write(t);f("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==q(o.pipes,e))&&!u&&(f("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function h(t){f("onerror",t),y(),e.removeListener("error",h),0===c(e,"error")&&E(e,t)}function d(){e.removeListener("finish",p),y()}function p(){f("onfinish"),e.removeListener("close",d),y()}function y(){f("unpipe"),n.unpipe(e)}return n.on("data",l),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener("error",r);e._events&&e._events.error?Array.isArray(e._events.error)?e._events.error.unshift(r):e._events.error=[r,e._events.error]:e.on("error",r)}(e,0,h),e.once("close",d),e.once("finish",p),e.emit("pipe",n),o.flowing||(f("pipe resume"),n.resume()),e},R.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var a=q(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},R.prototype.on=function(e,r){var n=Re.prototype.on.call(this,e,r),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,f("on readable",o.length,o.reading),o.length?L(this):o.reading||t.nextTick(B,this))),n},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function(e,r){var n=Re.prototype.removeListener.call(this,e,r);return"readable"===e&&t.nextTick(j,this),n},R.prototype.removeAllListeners=function(e){var r=Re.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||t.nextTick(j,this),r},R.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!e.readableListening,function(e,r){r.resumeScheduled||(r.resumeScheduled=!0,t.nextTick(I,e,r))}(this,e)),e.paused=!1,this},R.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},R.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",(function(){if(f("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){f("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<S.length;i++)e.on(S[i],this.emit.bind(this,S[i]));return this._read=function(t){f("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(R.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=n({})),p(this)}),Object.defineProperty(R.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(R.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(R.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),R._fromList=U,Object.defineProperty(R.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(R.from=function(e,t){return void 0===y&&(y=r({})),y(R,e,t)})}).call(this)}).call(this,Ie,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})})),r=e((function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}})),n=e((function(e,t){(function(t){(function(){"use strict";var r;function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=o({}),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),f=Symbol("ended"),c=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function d(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var r=e[h].read();null!==r&&(e[c]=null,e[a]=null,e[s]=null,t(d(r,!1)))}}var y=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((n(r={get stream(){return this[h]},next:function(){var e=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[f])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise((function(r,n){t.nextTick((function(){e[u]?n(e[u]):r(d(void 0,!0))}))}));var n,o=this[c];if(o)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[f]?r(d(void 0,!0)):t[l](r,n)}),n)}}(o,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(d(i,!1));n=new Promise(this[l])}return this[c]=n,n}},Symbol.asyncIterator,(function(){return this})),n(r,"return",(function(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(d(void 0,!0))}))}))})),r),y);e.exports=function(e){var r,o=Object.create(g,(n(r={},h,{value:e,writable:!0}),n(r,a,{value:null,writable:!0}),n(r,s,{value:null,writable:!0}),n(r,u,{value:null,writable:!0}),n(r,f,{value:e._readableState.endEmitted,writable:!0}),n(r,l,{value:function(e,t){var r=o[h].read();r?(o[c]=null,o[a]=null,o[s]=null,e(d(r,!1))):(o[a]=e,o[s]=t)},writable:!0}),r));return o[c]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=o[s];return null!==t&&(o[c]=null,o[a]=null,o[s]=null,t(e)),void(o[u]=e)}var r=o[a];null!==r&&(o[c]=null,o[a]=null,o[s]=null,r(d(void 0,!0))),o[f]=!0})),e.on("readable",function(e){t.nextTick(p,e)}.bind(null,o)),o}}).call(this)}).call(this,Ie)})),o=e((function(e,t){"use strict";var r=Ye.codes.ERR_STREAM_PREMATURE_CLOSE;function n(){}e.exports=function e(t,o,i){if("function"==typeof o)return e(t,null,o);o||(o={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n)}}}(i||n);var a=o.readable||!1!==o.readable&&t.readable,s=o.writable||!1!==o.writable&&t.writable,u=function(){t.writable||c()},f=t._writableState&&t._writableState.finished,c=function(){s=!1,f=!0,a||i.call(t)},l=t._readableState&&t._readableState.endEmitted,h=function(){a=!1,l=!0,s||i.call(t)},d=function(e){i.call(t,e)},p=function(){var e;return a&&!l?(t._readableState&&t._readableState.ended||(e=new r),i.call(t,e)):s&&!f?(t._writableState&&t._writableState.ended||(e=new r),i.call(t,e)):void 0},y=function(){t.req.on("finish",c)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",c),t.on("abort",p),t.req?y():t.on("request",y)):s&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",h),t.on("finish",c),!1!==o.error&&t.on("error",d),t.on("close",p),function(){t.removeListener("complete",c),t.removeListener("abort",p),t.removeListener("request",y),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("end",h),t.removeListener("error",d),t.removeListener("close",p)}}})),i=e((function(e,t){"use strict";var r=H.Buffer,n=r.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}};function o(e){var t;switch(this.encoding=function(e){var t=function(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}}(e);if("string"!=typeof t&&(r.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=f,this.end=c,t=3;break;default:return this.write=l,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function i(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){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);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 s(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 u(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 f(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 c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}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=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\ufffd":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var o=i(t[n]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--n<r||-2===o?0:(o=i(t[n]))>=0?(o>0&&(e.lastNeed=o-2),o):--n<r||-2===o?0:(o=i(t[n]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(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)},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}})),a=e((function(e,r){(function(r){(function(){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var o=t({}),i=s({});ce(c,o);for(var a=n(i.prototype),u=0;u<a.length;u++){var f=a[u];c.prototype[f]||(c.prototype[f]=i.prototype[f])}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,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)}})}).call(this)}).call(this,Ie)})),s=e((function(e,t){(function(t,r){(function(){"use strict";function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var o=n.callback;t.pendingcb--,o(void 0),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var o;e.exports=x,x.WritableState=S;var i,s={deprecate:tt},f=u({}).Buffer,c=r.Uint8Array||function(){},l=et.getHighWaterMark,h=Ye.codes,d=h.ERR_INVALID_ARG_TYPE,p=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,v=h.ERR_STREAM_DESTROYED,b=h.ERR_STREAM_NULL_VALUES,m=h.ERR_STREAM_WRITE_AFTER_END,w=h.ERR_UNKNOWN_ENCODING,_=Ve.errorOrDestroy;function E(){}function S(e,r,i){o=o||a({}),e=e||{},"boolean"!=typeof i&&(i=r instanceof o),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=l(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,r){var n=e._writableState,o=n.sync,i=n.writecb;if("function"!=typeof i)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),r)!function(e,r,n,o,i){--r.pendingcb,n?(t.nextTick(i,o),t.nextTick(C,e,r),e._writableState.errorEmitted=!0,_(e,o)):(i(o),e._writableState.errorEmitted=!0,_(e,o),C(e,r))}(e,n,o,r,i);else{var a=T(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||k(e,n),o?t.nextTick(A,e,n,a,i):A(e,n,a,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function x(e){var t=this instanceof(o=o||a({}));if(!t&&!i.call(x,this))return new x(e);this._writableState=new S(e,this,t),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)),Re.call(this)}function R(e,t,r,n,o,i,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function A(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),C(e,t)}function k(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var o=t.bufferedRequestCount,i=new Array(o),a=t.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,R(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,c=r.encoding,l=r.callback;if(R(e,t,!1,t.objectMode?1:f.length,f,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function L(e,t){e._final((function(r){t.pendingcb--,r&&_(e,r),t.prefinished=!0,e.emit("prefinish"),C(e,t)}))}function C(e,r){var n=T(r);if(n&&(function(e,r){r.prefinished||r.finalCalled||("function"!=typeof e._final||r.destroyed?(r.prefinished=!0,e.emit("prefinish")):(r.pendingcb++,r.finalCalled=!0,t.nextTick(L,e,r)))}(e,r),0===r.pendingcb&&(r.finished=!0,e.emit("finish"),r.autoDestroy))){var o=e._readableState;(!o||o.autoDestroy&&o.endEmitted)&&e.destroy()}return n}ce(x,Re),S.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(S.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===x&&e&&e._writableState instanceof S}})):i=function(e){return e instanceof this},x.prototype.pipe=function(){_(this,new g)},x.prototype.write=function(e,r,n){var o,i=this._writableState,a=!1,s=!i.objectMode&&(o=e,f.isBuffer(o)||o instanceof c);return s&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof r&&(n=r,r=null),s?r="buffer":r||(r=i.defaultEncoding),"function"!=typeof n&&(n=E),i.ending?function(e,r){var n=new m;_(e,n),t.nextTick(r,n)}(this,n):(s||function(e,r,n,o){var i;return null===n?i=new b:"string"==typeof n||r.objectMode||(i=new d("chunk",["string","Buffer"],n)),!i||(_(e,i),t.nextTick(o,i),!1)}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,r,n,o,i){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,r)),t}(t,n,o);n!==a&&(r=!0,o="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else R(e,t,!1,s,n,o,i);return u}(this,i,s,e,r,n)),a},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||k(this,e))},x.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 w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new p("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,r,n){var o=this._writableState;return"function"==typeof e?(n=e,e=null,r=null):"function"==typeof r&&(n=r,r=null),null!=e&&this.write(e,r),o.corked&&(o.corked=1,this.uncork()),o.ending||function(e,r,n){r.ending=!0,C(e,r),n&&(r.finished?t.nextTick(n):e.once("finish",n)),r.ended=!0,e.writable=!1}(this,o,n),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=Ve.destroy,x.prototype._undestroy=Ve.undestroy,x.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,Ie,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})})),u=e((function(e,t){(function(e){(function(){"use strict";t.Buffer=r,t.SlowBuffer=function(e){return+e!=e&&(e=0),r.alloc(+e)},t.INSPECT_MAX_BYTES=50;function e(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=r.prototype,t}function r(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return i(e)}return n(e,t,r)}function n(t,n,o){if("string"==typeof t)return function(t,n){if("string"==typeof n&&""!==n||(n="utf8"),!r.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var o=0|u(t,n),i=e(o),a=i.write(t,n);return a!==o&&(i=i.slice(0,a)),i}(t,n);if(ArrayBuffer.isView(t))return a(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var o;return(o=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n)).__proto__=r.prototype,o}(t,n,o);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(null!=i&&i!==t)return r.from(i,n,o);var f=function(t){if(r.isBuffer(t)){var n=0|s(t.length),o=e(n);return 0===o.length||t.copy(o,0,0,n),o}return void 0!==t.length?"number"!=typeof t.length||P(t.length)?e(0):a(t):"Buffer"===t.type&&Array.isArray(t.data)?a(t.data):void 0}(t);if(f)return f;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return r.from(t[Symbol.toPrimitive]("string"),n,o);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function o(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function i(t){return o(t),e(t<0?0:0|s(t))}function a(t){for(var r=t.length<0?0:0|s(t.length),n=e(r),o=0;o<r;o+=1)n[o]=255&t[o];return n}function s(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function u(e,t){if(r.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return M(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(e).length;default:if(i)return o?-1:M(e).length;t=(""+t).toLowerCase(),i=!0}}function f(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function c(e,t,n,o,i){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),P(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=r.from(t,o)),r.isBuffer(t))return 0===t.length?-1:l(e,t,n,o,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):l(e,[t],n,o,i);throw new TypeError("val must be string, number or Buffer")}function l(e,t,r,n,o){var i,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function f(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=r;i<s;i++)if(f(e,i)===f(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===u)return c*a}else-1!==c&&(i-=i-c),c=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var l=!0,h=0;h<u;h++)if(f(e,i+h)!==f(t,h)){l=!1;break}if(l)return i}return-1}function h(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(P(s))return a;e[r+a]=s}return a}function d(e,t,r,n){return B(M(t,e.length-r),e,r,n)}function p(e,t,r,n){return B(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function y(e,t,r,n){return p(e,t,r,n)}function g(e,t,r,n){return B(j(t),e,r,n)}function v(e,t,r,n){return B(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function b(e,t,r){return 0===t&&r===e.length?O.fromByteArray(e):O.fromByteArray(e.slice(t,r))}function m(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,u,f=e[o],c=null,l=f>239?4:f>223?3:f>191?2:1;if(o+l<=r)switch(l){case 1:f<128&&(c=f);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&f)<<6|63&i)>127&&(c=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&f)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&f)<<18|(63&i)<<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),o+=l}return function(e){var t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=w));return r}(n)}t.kMaxLength=2147483647,r.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}(),r.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.buffer}}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),r.poolSize=8192,r.from=function(e,t,r){return n(e,t,r)},r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,r.alloc=function(t,r,n){return function(t,r,n){return o(t),t<=0?e(t):void 0!==r?"string"==typeof n?e(t).fill(r,n):e(t).fill(r):e(t)}(t,r,n)},r.allocUnsafe=function(e){return i(e)},r.allocUnsafeSlow=function(e){return i(e)},r.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==r.prototype},r.compare=function(e,t){if(I(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),!r.isBuffer(e)||!r.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,o=t.length,i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==t[i]){n=e[i],o=t[i];break}return n<o?-1:o<n?1:0},r.isEncoding=function(e){switch(String(e).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}},r.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return r.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var o=r.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(I(a,Uint8Array)&&(a=r.from(a)),!r.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(o,i),i+=a.length}return o},r.byteLength=u,r.prototype._isBuffer=!0,r.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},r.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},r.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},r.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?m(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,r);case"utf8":case"utf-8":return m(this,t,r);case"ascii":return _(this,t,r);case"latin1":case"binary":return E(this,t,r);case"base64":return b(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=function(e){if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===r.compare(this,e)},r.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},r.prototype.compare=function(e,t,n,o,i){if(I(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),!r.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(o>>>=0),s=(n>>>=0)-(t>>>=0),u=Math.min(a,s),f=this.slice(o,i),c=e.slice(t,n),l=0;l<u;++l)if(f[l]!==c[l]){a=f[l],s=c[l];break}return a<s?-1:s<a?1:0},r.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},r.prototype.indexOf=function(e,t,r){return c(this,e,t,r,!0)},r.prototype.lastIndexOf=function(e,t,r){return c(this,e,t,r,!1)},r.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return h(this,e,t,r);case"utf8":case"utf-8":return d(this,e,t,r);case"ascii":return p(this,e,t,r);case"latin1":case"binary":return y(this,e,t,r);case"base64":return g(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function _(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function E(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function S(e,t,r){var n,o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",a=t;a<r;++a)i+=(n=e[a])<16?"0"+n.toString(16):n.toString(16);return i}function x(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function R(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,n,o,i,a){if(!r.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function k(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function T(e,t,r,n,o){return t=+t,r>>>=0,o||k(e,0,r,4),q.write(e,t,r,n,23,4),r+4}function L(e,t,r,n,o){return t=+t,r>>>=0,o||k(e,0,r,8),q.write(e,t,r,n,52,8),r+8}r.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var o=this.subarray(e,t);return o.__proto__=r.prototype,o},r.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},r.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},r.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},r.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},r.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},r.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},r.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},r.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},r.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},r.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},r.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},r.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},r.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),q.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),q.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),q.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),q.read(this,e,!1,52,8)},r.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||A(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},r.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||A(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},r.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,1,255,0),this[t]=255&e,t+1},r.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},r.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},r.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},r.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},r.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);A(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},r.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);A(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},r.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},r.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},r.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},r.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},r.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},r.prototype.writeFloatLE=function(e,t,r){return T(this,e,t,!0,r)},r.prototype.writeFloatBE=function(e,t,r){return T(this,e,t,!1,r)},r.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},r.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},r.prototype.copy=function(e,t,n,o){if(!r.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);var i=o-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,o);else if(this===e&&n<t&&t<o)for(var a=i-1;a>=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,o),t);return i},r.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!r.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===e.length){var i=e.charCodeAt(0);("utf8"===o&&i<128||"latin1"===o)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var s=r.isBuffer(e)?e:r.from(e,o),u=s.length;if(0===u)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=s[a%u]}return this};var C=/[^+/0-9A-Za-z-_]/g;function M(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function j(e){return O.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function P(e){return e!=e}}).call(this)}).call(this,u({}).Buffer)})),f=function(e){return e&&e.__esModule?e:{default:e}},c={exports:{}},l=function(e){"use strict";var t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(C){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(e,t,r){var n=c;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===c)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=f(e,t,r);if("normal"===u.type){if(n=r.done?d:l,u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var c="suspendedStart",l="suspendedYield",h="executing",d="completed",p={};function y(){}function g(){}function v(){}var b={};b[o]=function(){return this};var m=Object.getPrototypeOf,w=m&&m(m(T([])));w&&w!==t&&r.call(w,o)&&(b=w);var _=v.prototype=y.prototype=Object.create(b);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){var n;this._invoke=function(o,i){function a(){return new t((function(n,a){!function n(o,i,a,s){var u=f(e[o],e,i);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(l).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function x(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function R(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return g.prototype=_.constructor=v,v.constructor=g,g.displayName=s(v,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,a,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),S.prototype[i]=function(){return this},e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,a,"Generator"),_[o]=function(){return this},_.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=T,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}(c.exports);try{regeneratorRuntime=l}catch(Br){Function("r","regeneratorRuntime = r")(l)}var h=c=c.exports;function d(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(f){return void r(f)}s.done?t(u):Promise.resolve(u).then(n,o)}var p=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){d(i,n,o,a,s,"next",e)}function s(e){d(i,n,o,a,s,"throw",e)}a(void 0)}))}},y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}for(var v=function(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e},b=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},m=f(h),w=f(p),_=f(y),E=f(v),S=f(b),x=function(){function e(){(0,_.default)(this,e),(0,S.default)(this,"weight",100),(0,S.default)(this,"enabled",!0),(0,S.default)(this,"site","herokuapp.com"),(0,S.default)(this,"src","https://stark-savannah-51602.herokuapp.com/search/__keyword__")}return(0,E.default)(e,[{key:"execute",value:(t=(0,w.default)(m.default.mark((function e(t){var r,n,o,i=this;return m.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length<=0)){e.next=2;break}return e.abrupt("return",[]);case 2:return r=this.src.replace("__keyword__",t),r=encodeURI(r),e.next=6,this._doRequest(r);case 6:return n=e.sent,o=JSON.parse(n.responseText),e.abrupt("return",o.map((function(e){return i._fieldRef(e)})));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"filterKeyword",value:function(e){var t=e;return(t=t.replace(/^[^a-zA-Z]*/,"")).replace(/Season\s/,"S")}},{key:"_doRequest",value:function(e){return new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:e,timeout:3e4,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(e){200===e.status?t(e):r(e)}})}))}},{key:"_sizePretty",value:function(e){return(e=e/1024/1024)<1024?Math.ceil(e)+"M":e/1024+"G"}},{key:"_fieldRef",value:function(e){var t=e.title,r=e.magnet,n=this._sizePretty(e.size);return{title:t,link:r,sd:e.seeds,lc:e.leeches,size:n}}}]),e;var t}(),R=f(h),A=f(p),k=f(y),T=f(v),L=f(b),C=function(){function e(){(0,k.default)(this,e),(0,L.default)(this,"weight",101),(0,L.default)(this,"enabled",!0),(0,L.default)(this,"site","1337x.to"),(0,L.default)(this,"src","https://1337x.to/search/__keyword__/1/")}return(0,T.default)(e,[{key:"execute",value:(r=(0,A.default)(R.default.mark((function e(t){var r,n,o,i,a=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length<=0)){e.next=2;break}return e.abrupt("return",[]);case 2:return r=this.src.replace("__keyword__",t),r=encodeURI(r),e.next=6,this._doRequest(r);case 6:return n=e.sent,o=$.parseHTML(n.responseText),i=$(o).find(".box-info-detail table tbody tr"),e.abrupt("return",Promise.all(i.map((function(e){return a._fieldRef(i[e])})).get()));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"filterKeyword",value:function(e){var t=e;return t.replace(/Season\s/,"S")}},{key:"_doRequest",value:function(e){return new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:e,timeout:1e4,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(e){200===e.status?t(e):r(e)}})}))}},{key:"_getMagnetLink",value:function(e){var t="https://".concat(this.site).concat(e),r=this._doRequest;return new Promise((function(e,n){r(t).then((function(t){var r=t.responseText,n=$(r).find(".box-info .no-top-radius div:first ul:first li:first a").attr("href");e(n)})).catch((function(e){return n(e)}))}))}},{key:"_fieldRef",value:(t=(0,A.default)(R.default.mark((function e(t){var r,n,o,i,a;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=$(t).find(".coll-1,.name").text(),n=$(t).find(".coll-1 a:last").attr("href"),o=$(t).find(".coll-4").children().remove().end().text(),i=$(t).find(".coll-2").text(),a=$(t).find(".coll-3,.leeches").text(),e.next=7,this._getMagnetLink(n);case 7:return n=e.sent,e.abrupt("return",{title:r,link:n,sd:i,lc:a,size:o});case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e;var t,r}(),O={toByteArray:function(e){var t,r,n=N(e),o=n[0],i=n[1],a=new B(function(e,t,r){return 3*(t+r)/4-r}(0,o,i)),s=0,u=i>0?o-4:o;for(r=0;r<u;r+=4)t=j[e.charCodeAt(r)]<<18|j[e.charCodeAt(r+1)]<<12|j[e.charCodeAt(r+2)]<<6|j[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;return 2===i&&(t=j[e.charCodeAt(r)]<<2|j[e.charCodeAt(r+1)]>>4,a[s++]=255&t),1===i&&(t=j[e.charCodeAt(r)]<<10|j[e.charCodeAt(r+1)]<<4|j[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t),a},fromByteArray:function(e){for(var t,r=e.length,n=r%3,o=[],i=0,a=r-n;i<a;i+=16383)o.push(D(e,i,i+16383>a?a:i+16383));return 1===n?(t=e[r-1],o.push(M[t>>2]+M[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],o.push(M[t>>10]+M[t>>4&63]+M[t<<2&63]+"=")),o.join("")}},M=[],j=[],B="undefined"!=typeof Uint8Array?Uint8Array:Array,I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",P=0,U=I.length;P<U;++P)M[P]=I[P],j[I.charCodeAt(P)]=P;function N(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function D(e,t,r){for(var n,o,i=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(M[(o=n)>>18&63]+M[o>>12&63]+M[o>>6&63]+M[63&o]);return i.join("")}j["-".charCodeAt(0)]=62,j["_".charCodeAt(0)]=63;var q={read:function(e,t,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,f=u>>1,c=-7,l=r?o-1:0,h=r?-1:1,d=e[t+l];for(l+=h,i=d&(1<<-c)-1,d>>=-c,c+=s;c>0;i=256*i+e[t+l],l+=h,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+e[t+l],l+=h,c-=8);if(0===i)i=1-f;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=f}return(d?-1:1)*a*Math.pow(2,i-n)},write:function(e,t,r,n,o,i){var a,s,u,f=8*i-o-1,c=(1<<f)-1,l=c>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,p=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=c?(s=0,a=c):a+l>=1?(s=(t*u-1)*Math.pow(2,o),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;e[r+d]=255&s,d+=p,s/=256,o-=8);for(a=a<<o|s,f+=o;f>0;e[r+d]=255&a,d+=p,a/=256,f-=8);e[r+d-p]|=128*y}},H={},F=u({}),W=F.Buffer;function G(e,t){for(var r in e)t[r]=e[r]}function z(e,t,r){return W(e,t,r)}W.from&&W.alloc&&W.allocUnsafe&&W.allocUnsafeSlow?H=F:(G(F,H),H.Buffer=z),z.prototype=Object.create(W.prototype),G(W,z),z.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return W(e,t,r)},z.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=W(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},z.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return W(e)},z.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return F.SlowBuffer(e)};var K,V=H.Buffer;function Y(e,t,r){var n=[],o=null;return Y._encode(n,e),o=V.concat(n),Y.bytes=o.length,V.isBuffer(t)?(o.copy(t,r),t):o}Y.bytes=-1,Y._floatConversionDetected=!1,Y.getType=function(e){return V.isBuffer(e)?"buffer":Array.isArray(e)?"array":ArrayBuffer.isView(e)?"arraybufferview":e instanceof Number?"number":e instanceof Boolean?"boolean":e instanceof ArrayBuffer?"arraybuffer":typeof e},Y._encode=function(e,t){if(null!=t)switch(Y.getType(t)){case"buffer":Y.buffer(e,t);break;case"object":Y.dict(e,t);break;case"array":Y.list(e,t);break;case"string":Y.string(e,t);break;case"number":case"boolean":Y.number(e,t);break;case"arraybufferview":Y.buffer(e,V.from(t.buffer,t.byteOffset,t.byteLength));break;case"arraybuffer":Y.buffer(e,V.from(t))}};var X=V.from("e"),J=V.from("d"),Z=V.from("l");Y.buffer=function(e,t){e.push(V.from(t.length+":"),t)},Y.string=function(e,t){e.push(V.from(V.byteLength(t)+":"+t))},Y.number=function(e,t){var r=2147483648*(t/2147483648<<0)+(t%2147483648<<0);e.push(V.from("i"+r+"e")),r===t||Y._floatConversionDetected||(Y._floatConversionDetected=!0,console.warn('WARNING: Possible data corruption detected with value "'+t+'":','Bencoding only defines support for integers, value was converted to "'+r+'"'),console.trace())},Y.dict=function(e,t){e.push(J);for(var r,n=0,o=Object.keys(t).sort(),i=o.length;n<i;n++)null!=t[r=o[n]]&&(Y.string(e,r),Y._encode(e,t[r]));e.push(X)},Y.list=function(e,t){var r=0,n=t.length;for(e.push(Z);r<n;r++)null!=t[r]&&Y._encode(e,t[r]);e.push(X)},K=Y;var Q,ee=H.Buffer;function te(e,t,r){for(var n=0,o=1,i=t;i<r;i++){var a=e[i];if(a<58&&a>=48)n=10*n+(a-48);else if(i!==t||43!==a){if(i!==t||45!==a){if(46===a)break;throw new Error("not a number: buffer["+i+"] = "+a)}o=-1}}return n*o}function re(e,t,r,n){return null==e||0===e.length?null:("number"!=typeof t&&null==n&&(n=t,t=void 0),"number"!=typeof r&&null==n&&(n=r,r=void 0),re.position=0,re.encoding=n||null,re.data=ee.isBuffer(e)?e.slice(t,r):ee.from(e),re.bytes=re.data.length,re.next())}re.bytes=0,re.position=0,re.data=null,re.encoding=null,re.next=function(){switch(re.data[re.position]){case 100:return re.dictionary();case 108:return re.list();case 105:return re.integer();default:return re.buffer()}},re.find=function(e){for(var t=re.position,r=re.data.length,n=re.data;t<r;){if(n[t]===e)return t;t++}throw new Error('Invalid data: Missing delimiter "'+String.fromCharCode(e)+'" [0x'+e.toString(16)+"]")},re.dictionary=function(){re.position++;for(var e={};101!==re.data[re.position];)e[re.buffer()]=re.next();return re.position++,e},re.list=function(){re.position++;for(var e=[];101!==re.data[re.position];)e.push(re.next());return re.position++,e},re.integer=function(){var e=re.find(101),t=te(re.data,re.position+1,e);return re.position+=e+1-re.position,t},re.buffer=function(){var e=re.find(58),t=te(re.data,re.position,e),r=++e+t;return re.position=r,re.encoding?re.data.toString(re.encoding,e,r):re.data.slice(e,r)},Q=re;var ne={},oe=ne;oe.encode=K,oe.decode=Q,oe.byteLength=oe.encodingLength=function(e){return oe.encode(e).length};var ie={};(function(e){(function(){ie=function(t,r){if("undefined"==typeof Blob||!(t instanceof Blob))throw new Error("first argument must be a Blob");if("function"!=typeof r)throw new Error("second argument must be a function");const n=new FileReader;n.addEventListener("loadend",(function t(o){n.removeEventListener("loadend",t,!1),o.error?r(o.error):r(null,e.from(n.result))}),!1),n.readAsArrayBuffer(t)}}).call(this)}).call(this,u({}).Buffer);var ae={},se={};(function(e){(function(){se=function(t,r){var n=[];t.on("data",(function(e){n.push(e)})),t.once("end",(function(){r&&r(null,e.concat(n)),r=null})),t.once("error",(function(e){r&&r(e),r=null}))}}).call(this)}).call(this,u({}).Buffer);var ue={},fe={};(function(e){(function(){var t;function r(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(r){t=null}}else t=null;return t}function n(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(n){}return!1}function o(e){return"function"==typeof e}fe.fetch=o(e.fetch)&&o(e.ReadableStream),fe.writableStream=o(e.WritableStream),fe.abortController=o(e.AbortController),fe.arraybuffer=fe.fetch||n("arraybuffer"),fe.msstream=!fe.fetch&&n("ms-stream"),fe.mozchunkedarraybuffer=!fe.fetch&&n("moz-chunked-arraybuffer"),fe.overrideMimeType=fe.fetch||!!r()&&o(r().overrideMimeType),t=null}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var ce={};ce="function"==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}};var le,he={},de="object"==typeof Reflect?Reflect:null,pe=de&&"function"==typeof de.apply?de.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};le=de&&"function"==typeof de.ownKeys?de.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var ye=Number.isNaN||function(e){return e!=e};function ge(){ge.init.call(this)}(he=ge).once=function(e,t){return new Promise((function(r,n){function o(){void 0!==i&&e.removeListener("error",i),r([].slice.call(arguments))}var i;"error"!==t&&(i=function(r){e.removeListener(t,o),n(r)},e.once("error",i)),e.once(t,o)}))},ge.EventEmitter=ge,ge.prototype._events=void 0,ge.prototype._eventsCount=0,ge.prototype._maxListeners=void 0;var ve=10;function be(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function me(e){return void 0===e._maxListeners?ge.defaultMaxListeners:e._maxListeners}function we(e,t,r,n){var o,i,a,s;if(be(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=me(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function _e(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(n);return o.listener=r,n.wrapFn=o,o}function Ee(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):xe(o,o.length)}function Se(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function xe(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}Object.defineProperty(ge,"defaultMaxListeners",{enumerable:!0,get:function(){return ve},set:function(e){if("number"!=typeof e||e<0||ye(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ve=e}}),ge.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ge.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||ye(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},ge.prototype.getMaxListeners=function(){return me(this)},ge.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)pe(s,this,t);else{var u=s.length,f=xe(s,u);for(r=0;r<u;++r)pe(f[r],this,t)}return!0},ge.prototype.addListener=function(e,t){return we(this,e,t,!1)},ge.prototype.on=ge.prototype.addListener,ge.prototype.prependListener=function(e,t){return we(this,e,t,!0)},ge.prototype.once=function(e,t){return be(t),this.on(e,_e(this,e,t)),this},ge.prototype.prependOnceListener=function(e,t){return be(t),this.prependListener(e,_e(this,e,t)),this},ge.prototype.removeListener=function(e,t){var r,n,o,i,a;if(be(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},ge.prototype.off=ge.prototype.removeListener,ge.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},ge.prototype.listeners=function(e){return Ee(this,e,!0)},ge.prototype.rawListeners=function(e){return Ee(this,e,!1)},ge.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Se.call(e,t)},ge.prototype.listenerCount=Se,ge.prototype.eventNames=function(){return this._eventsCount>0?le(this._events):[]};var Re=he.EventEmitter;function Ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ke(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Te(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Le,Ce,Oe=u({}).Buffer,Me=ue.inspect,je=Me&&Me.custom||"inspect",Be=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value: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}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return Oe.alloc(0);for(var t,r,n,o=Oe.allocUnsafe(e>>>0),i=this.head,a=0;i;)t=i.data,r=o,n=a,Oe.prototype.copy.call(t,r,n),a+=i.data.length,i=i.next;return o}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var o=t.data,i=e>o.length?o.length:e;if(i===o.length?n+=o:n+=o.slice(0,e),0==(e-=i)){i===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=Oe.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,i=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,i),0==(e-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(i));break}++n}return this.length-=n,t}},{key:je,value:function(e,t){return Me(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(r),!0).forEach((function(t){ke(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&Te(t.prototype,r),e}(),Ie={},Pe=Ie={};function Ue(){throw new Error("setTimeout has not been defined")}function Ne(){throw new Error("clearTimeout has not been defined")}function De(e){if(Le===setTimeout)return setTimeout(e,0);if((Le===Ue||!Le)&&setTimeout)return Le=setTimeout,setTimeout(e,0);try{return Le(e,0)}catch(t){try{return Le.call(null,e,0)}catch(t){return Le.call(this,e,0)}}}!function(){try{Le="function"==typeof setTimeout?setTimeout:Ue}catch(e){Le=Ue}try{Ce="function"==typeof clearTimeout?clearTimeout:Ne}catch(e){Ce=Ne}}();var qe,He=[],Fe=!1,We=-1;function Ge(){Fe&&qe&&(Fe=!1,qe.length?He=qe.concat(He):We=-1,He.length&&ze())}function ze(){if(!Fe){var e=De(Ge);Fe=!0;for(var t=He.length;t;){for(qe=He,He=[];++We<t;)qe&&qe[We].run();We=-1,t=He.length}qe=null,Fe=!1,function(e){if(Ce===clearTimeout)return clearTimeout(e);if((Ce===Ne||!Ce)&&clearTimeout)return Ce=clearTimeout,clearTimeout(e);try{Ce(e)}catch(t){try{return Ce.call(null,e)}catch(t){return Ce.call(this,e)}}}(e)}}function $e(e,t){this.fun=e,this.array=t}function Ke(){}Pe.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];He.push(new $e(e,t)),1!==He.length||Fe||De(ze)},$e.prototype.run=function(){this.fun.apply(null,this.array)},Pe.title="browser",Pe.browser=!0,Pe.env={},Pe.argv=[],Pe.version="",Pe.versions={},Pe.on=Ke,Pe.addListener=Ke,Pe.once=Ke,Pe.off=Ke,Pe.removeListener=Ke,Pe.removeAllListeners=Ke,Pe.emit=Ke,Pe.prependListener=Ke,Pe.prependOnceListener=Ke,Pe.listeners=function(e){return[]},Pe.binding=function(e){throw new Error("process.binding is not supported")},Pe.cwd=function(){return"/"},Pe.chdir=function(e){throw new Error("process.chdir is not supported")},Pe.umask=function(){return 0};var Ve={};(function(e){(function(){"use strict";function t(e,t){n(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}Ve={destroy:function(o,i){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(i?i(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(n,this,o)):e.nextTick(n,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,(function(n){!i&&n?a._writableState?a._writableState.errorEmitted?e.nextTick(r,a):(a._writableState.errorEmitted=!0,e.nextTick(t,a,n)):e.nextTick(t,a,n):i?(e.nextTick(r,a),i(n)):e.nextTick(r,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,Ie);var Ye={},Xe={};function Je(e,t,r){r||(r=Error);var n=function(e){var r,n;function o(r,n,o){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,o))||this}return n=e,(r=o).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,o}(r);n.prototype.name=r.name,n.prototype.code=e,Xe[e]=n}function Ze(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}Je("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),Je("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,o,i,a;if("string"==typeof t&&("not ","not "===t.substr(0,"not ".length))?(n="must not be",t=t.replace(/^not /,"")):n="must be",i=e,(void 0===a||a>i.length)&&(a=i.length)," argument"===i.substring(a-" argument".length,a))o="The ".concat(e," ").concat(n," ").concat(Ze(t,"type"));else{var s=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+".".length>e.length)&&-1!==e.indexOf(".",r)}(e)?"property":"argument";o='The "'.concat(e,'" ').concat(s," ").concat(n," ").concat(Ze(t,"type"))}return o+". Received type ".concat(typeof r)}),TypeError),Je("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Je("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),Je("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Je("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),Je("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Je("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Je("ERR_STREAM_WRITE_AFTER_END","write after end"),Je("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Je("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),Je("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ye.codes=Xe;var Qe=Ye.codes.ERR_INVALID_OPT_VALUE,et={getHighWaterMark:function(e,t,r,n){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,n,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new Qe(n?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}},tt={};(function(e){(function(){function t(t){try{if(!e.localStorage)return!1}catch(n){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}tt=function(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw new Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var rt=ct,nt=Ye.codes,ot=nt.ERR_METHOD_NOT_IMPLEMENTED,it=nt.ERR_MULTIPLE_CALLBACK,at=nt.ERR_TRANSFORM_ALREADY_TRANSFORMING,st=nt.ERR_TRANSFORM_WITH_LENGTH_0,ut=a({});function ft(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new it);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function ct(e){if(!(this instanceof ct))return new ct(e);ut.call(this,e),this._transformState={afterTransform:ft.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",lt)}function lt(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?ht(this,null,null):this._flush((function(t,r){ht(e,t,r)}))}function ht(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new st;if(e._transformState.transforming)throw new at;return e.push(null)}ce(ct,ut),ct.prototype.push=function(e,t){return this._transformState.needTransform=!1,ut.prototype.push.call(this,e,t)},ct.prototype._transform=function(e,t,r){r(new ot("_transform()"))},ct.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},ct.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},ct.prototype._destroy=function(e,t){ut.prototype._destroy.call(this,e,(function(e){t(e)}))};var dt,pt=yt;function yt(e){if(!(this instanceof yt))return new yt(e);rt.call(this,e)}ce(yt,rt),yt.prototype._transform=function(e,t,r){r(null,e)};var gt=Ye.codes,vt=gt.ERR_MISSING_ARGS,bt=gt.ERR_STREAM_DESTROYED;function mt(e){if(e)throw e}function wt(e){e()}function _t(e,t){return e.pipe(t)}var Et={};(Et=Et=t({})).Stream=Et,Et.Readable=Et,Et.Writable=s({}),Et.Duplex=a({}),Et.Transform=rt,Et.PassThrough=pt,Et.finished=o({}),Et.pipeline=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=function(e){return e.length?"function"!=typeof e[e.length-1]?mt:e.pop():mt}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new vt("streams");var a=t.map((function(e,r){var s=r<t.length-1;return function(e,t,r,n){n=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(n);var i=!1;e.on("close",(function(){i=!0})),void 0===dt&&(dt=o({})),dt(e,{readable:t,writable:r},(function(e){if(e)return n(e);i=!0,n()}));var a=!1;return function(t){if(!i&&!a)return a=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void n(t||new bt("pipe"))}}(e,s,r>0,(function(e){n||(n=e),e&&a.forEach(wt),s||(a.forEach(wt),i(n))}))}));return t.reduce(_t)};var St={};(function(e,t,r){(function(){var n=St.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o=St.IncomingMessage=function(n,o,i,a){var s=this;if(Et.Readable.call(s),s._mode=i,s.headers={},s.rawHeaders=[],s.trailers={},s.rawTrailers=[],s.on("end",(function(){e.nextTick((function(){s.emit("close")}))})),"fetch"===i){if(s._fetchResponse=o,s.url=o.url,s.statusCode=o.status,s.statusMessage=o.statusText,o.headers.forEach((function(e,t){s.headers[t.toLowerCase()]=e,s.rawHeaders.push(t,e)})),fe.writableStream){var u=new WritableStream({write:function(e){return new Promise((function(t,n){s._destroyed?n():s.push(r.from(e))?t():s._resumeFetch=t}))},close:function(){t.clearTimeout(a),s._destroyed||s.push(null)},abort:function(e){s._destroyed||s.emit("error",e)}});try{return void o.body.pipeTo(u).catch((function(e){t.clearTimeout(a),s._destroyed||s.emit("error",e)}))}catch(h){}}var f=o.body.getReader();!function e(){f.read().then((function(n){if(!s._destroyed){if(n.done)return t.clearTimeout(a),void s.push(null);s.push(r.from(n.value)),e()}})).catch((function(e){t.clearTimeout(a),s._destroyed||s.emit("error",e)}))}()}else if(s._xhr=n,s._pos=0,s.url=n.responseURL,s.statusCode=n.status,s.statusMessage=n.statusText,n.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===s.headers[r]&&(s.headers[r]=[]),s.headers[r].push(t[2])):void 0!==s.headers[r]?s.headers[r]+=", "+t[2]:s.headers[r]=t[2],s.rawHeaders.push(t[1],t[2])}})),s._charset="x-user-defined",!fe.overrideMimeType){var c=s.rawHeaders["mime-type"];if(c){var l=c.match(/;\s*charset=([^;])(;|$)/);l&&(s._charset=l[1].toLowerCase())}s._charset||(s._charset="utf-8")}};ce(o,Et.Readable),o.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},o.prototype._onXHRProgress=function(){var e=this,o=e._xhr,i=null;switch(e._mode){case"text":if((i=o.responseText).length>e._pos){var a=i.substr(e._pos);if("x-user-defined"===e._charset){for(var s=r.alloc(a.length),u=0;u<a.length;u++)s[u]=255&a.charCodeAt(u);e.push(s)}else e.push(a,e._charset);e._pos=i.length}break;case"arraybuffer":if(o.readyState!==n.DONE||!o.response)break;i=o.response,e.push(r.from(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=o.response,o.readyState!==n.LOADING||!i)break;e.push(r.from(new Uint8Array(i)));break;case"ms-stream":if(i=o.response,o.readyState!==n.LOADING)break;var f=new t.MSStreamReader;f.onprogress=function(){f.result.byteLength>e._pos&&(e.push(r.from(new Uint8Array(f.result.slice(e._pos)))),e._pos=f.result.byteLength)},f.onload=function(){e.push(null)},f.readAsArrayBuffer(i)}e._xhr.readyState===n.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this)}).call(this,Ie,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},u({}).Buffer);var xt={};(function(e,t,r){(function(){var n=St.IncomingMessage,o=St.readyStates,i=xt=function(e){var t,n=this;Et.Writable.call(n),n._opts=e,n._body=[],n._headers={},e.auth&&n.setHeader("Authorization","Basic "+r.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){n.setHeader(t,e.headers[t])}));var o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!fe.abortController)o=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!fe.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}n._mode=function(e,t){return fe.fetch&&t?"fetch":fe.mozchunkedarraybuffer?"moz-chunked-arraybuffer":fe.msstream?"ms-stream":fe.arraybuffer&&e?"arraybuffer":"text"}(t,o),n._fetchTimer=null,n.on("finish",(function(){n._onFinish()}))};ce(i,Et.Writable),i.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===a.indexOf(r)&&(this._headers[r]={name:e,value:t})},i.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},i.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},i.prototype._onFinish=function(){var r=this;if(!r._destroyed){var n=r._opts,i=r._headers,a=null;"GET"!==n.method&&"HEAD"!==n.method&&(a=new Blob(r._body,{type:(i["content-type"]||{}).value||""}));var s=[];if(Object.keys(i).forEach((function(e){var t=i[e].name,r=i[e].value;Array.isArray(r)?r.forEach((function(e){s.push([t,e])})):s.push([t,r])})),"fetch"===r._mode){var u=null;if(fe.abortController){var f=new AbortController;u=f.signal,r._fetchAbortController=f,"requestTimeout"in n&&0!==n.requestTimeout&&(r._fetchTimer=t.setTimeout((function(){r.emit("requestTimeout"),r._fetchAbortController&&r._fetchAbortController.abort()}),n.requestTimeout))}t.fetch(r._opts.url,{method:r._opts.method,headers:s,body:a||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:u}).then((function(e){r._fetchResponse=e,r._connect()}),(function(e){t.clearTimeout(r._fetchTimer),r._destroyed||r.emit("error",e)}))}else{var c=r._xhr=new t.XMLHttpRequest;try{c.open(r._opts.method,r._opts.url,!0)}catch(l){return void e.nextTick((function(){r.emit("error",l)}))}"responseType"in c&&(c.responseType=r._mode),"withCredentials"in c&&(c.withCredentials=!!n.withCredentials),"text"===r._mode&&"overrideMimeType"in c&&c.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(c.timeout=n.requestTimeout,c.ontimeout=function(){r.emit("requestTimeout")}),s.forEach((function(e){c.setRequestHeader(e[0],e[1])})),r._response=null,c.onreadystatechange=function(){switch(c.readyState){case o.LOADING:case o.DONE:r._onXHRProgress()}},"moz-chunked-arraybuffer"===r._mode&&(c.onprogress=function(){r._onXHRProgress()}),c.onerror=function(){r._destroyed||r.emit("error",new Error("XHR error"))};try{c.send(a)}catch(l){return void e.nextTick((function(){r.emit("error",l)}))}}}},i.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(r){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},i.prototype._connect=function(){var e=this;e._destroyed||(e._response=new n(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},i.prototype._write=function(e,t,r){this._body.push(e),r()},i.prototype.abort=i.prototype.destroy=function(){this._destroyed=!0,t.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},i.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),Et.Writable.prototype.end.call(this,e,t,r)},i.prototype.flushHeaders=function(){},i.prototype.setTimeout=function(){},i.prototype.setNoDelay=function(){},i.prototype.setSocketKeepAlive=function(){};var a=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this)}).call(this,Ie,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},u({}).Buffer);var Rt=Object.prototype.hasOwnProperty,At={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},kt={exports:{}};(function(e){(function(){!function(t){var r="object"==typeof kt.exports&&kt.exports&&!kt.exports.nodeType&&kt.exports,n=kt&&!kt.nodeType&&kt,o="object"==typeof e&&e;o.global!==o&&o.window!==o&&o.self!==o||(t=o);var i,a,s=2147483647,u=/^xn--/,f=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,d=String.fromCharCode;function p(e){throw new RangeError(l[e])}function y(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function g(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+y((e=e.replace(c,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function b(e){return y(e,(function(e){var t="";return e>65535&&(t+=d((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+d(e)})).join("")}function m(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,r){var n=0;for(e=r?h(e/700):e>>1,e+=h(e/t);e>455;n+=36)e=h(e/35);return h(n+36*e/(e+38))}function _(e){var t,r,n,o,i,a,u,f,c,l,d,y=[],g=e.length,v=0,m=128,_=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&p("not-basic"),y.push(e.charCodeAt(n));for(o=r>0?r+1:0;o<g;){for(i=v,a=1,u=36;o>=g&&p("invalid-input"),((f=(d=e.charCodeAt(o++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36)>=36||f>h((s-v)/a))&&p("overflow"),v+=f*a,!(f<(c=u<=_?1:u>=_+26?26:u-_));u+=36)a>h(s/(l=36-c))&&p("overflow"),a*=l;_=w(v-i,t=y.length+1,0==i),h(v/t)>s-m&&p("overflow"),m+=h(v/t),v%=t,y.splice(v++,0,m)}return b(y)}function E(e){var t,r,n,o,i,a,u,f,c,l,y,g,b,_,E,S=[];for(g=(e=v(e)).length,t=128,r=0,i=72,a=0;a<g;++a)(y=e[a])<128&&S.push(d(y));for(n=o=S.length,o&&S.push("-");n<g;){for(u=s,a=0;a<g;++a)(y=e[a])>=t&&y<u&&(u=y);for(u-t>h((s-r)/(b=n+1))&&p("overflow"),r+=(u-t)*b,t=u,a=0;a<g;++a)if((y=e[a])<t&&++r>s&&p("overflow"),y==t){for(f=r,c=36;!(f<(l=c<=i?1:c>=i+26?26:c-i));c+=36)E=f-l,_=36-l,S.push(d(m(l+E%_,0))),f=h(E/_);S.push(d(m(f,0))),i=w(r,b,n==o),r=0,++n}++r,++t}return S.join("")}if(i={version:"1.4.1",ucs2:{decode:v,encode:b},decode:_,encode:E,toASCII:function(e){return g(e,(function(e){return f.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return g(e,(function(e){return u.test(e)?_(e.slice(4).toLowerCase()):e}))}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",(function(){return i}));else if(r&&n)if(kt.exports==r)n.exports=i;else for(a in i)i.hasOwnProperty(a)&&(r[a]=i[a]);else t.punycode=i}(this)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),kt=kt.exports;var Tt=function(e){return"string"==typeof e},Lt=function(e){return"object"==typeof e&&null!==e},Ct=function(e){return null===e},Ot=function(e){return null==e};function Mt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var jt=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},Bt=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},It=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Pt(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var Ut=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},Nt={parse:function(e,t,r,n){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(t);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var u=0;u<s;++u){var f,c,l,h,d=e[u].replace(i,"%20"),p=d.indexOf(r);p>=0?(f=d.substr(0,p),c=d.substr(p+1)):(f=d,c=""),l=decodeURIComponent(f),h=decodeURIComponent(c),Mt(o,l)?jt(o[l])?o[l].push(h):o[l]=[o[l],h]:o[l]=h}return o},stringify:function(e,t,r,n){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Pt(Ut(e),(function(n){var o=encodeURIComponent(Bt(n))+r;return It(e[n])?Pt(e[n],(function(e){return o+encodeURIComponent(Bt(e))})).join(t):o+encodeURIComponent(Bt(e[n]))})).join(t):n?encodeURIComponent(Bt(n))+r+encodeURIComponent(Bt(e)):""}},Dt={};function qt(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}Dt.parse=Qt;var Ht=/^([a-z0-9.+-]+:)/i,Ft=/:[0-9]*$/,Wt=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Gt=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),zt=["'"].concat(Gt),$t=["%","/","?",";","#"].concat(zt),Kt=["/","?","#"],Vt=/^[+a-z0-9A-Z_-]{0,63}$/,Yt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Xt={javascript:!0,"javascript:":!0},Jt={javascript:!0,"javascript:":!0},Zt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Qt(e,t,r){if(e&&Lt(e)&&e instanceof qt)return e;var n=new qt;return n.parse(e,t,r),n}qt.prototype.parse=function(e,t,r){if(!Tt(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),o=-1!==n&&n<e.indexOf("#")?"?":"#",i=e.split(o);i[0]=i[0].replace(/\\/g,"/");var a=e=i.join(o);if(a=a.trim(),!r&&1===e.split("#").length){var s=Wt.exec(a);if(s)return this.path=a,this.href=a,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?Nt.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=Ht.exec(a);if(u){var f=(u=u[0]).toLowerCase();this.protocol=f,a=a.substr(u.length)}if(r||u||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var c="//"===a.substr(0,2);!c||u&&Jt[u]||(a=a.substr(2),this.slashes=!0)}if(!Jt[u]&&(c||u&&!Zt[u])){for(var l,h,d=-1,p=0;p<Kt.length;p++)-1!==(y=a.indexOf(Kt[p]))&&(-1===d||y<d)&&(d=y);for(-1!==(h=-1===d?a.lastIndexOf("@"):a.lastIndexOf("@",d))&&(l=a.slice(0,h),a=a.slice(h+1),this.auth=decodeURIComponent(l)),d=-1,p=0;p<$t.length;p++){var y;-1!==(y=a.indexOf($t[p]))&&(-1===d||y<d)&&(d=y)}-1===d&&(d=a.length),this.host=a.slice(0,d),a=a.slice(d),this.parseHost(),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g)for(var v=this.hostname.split(/\./),b=(p=0,v.length);p<b;p++){var m=v[p];if(m&&!m.match(Vt)){for(var w="",_=0,E=m.length;_<E;_++)m.charCodeAt(_)>127?w+="x":w+=m[_];if(!w.match(Vt)){var S=v.slice(0,p),x=v.slice(p+1),R=m.match(Yt);R&&(S.push(R[1]),x.unshift(R[2])),x.length&&(a="/"+x.join(".")+a),this.hostname=S.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),g||(this.hostname=kt.toASCII(this.hostname));var A=this.port?":"+this.port:"",k=this.hostname||"";this.host=k+A,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!Xt[f])for(p=0,b=zt.length;p<b;p++){var T=zt[p];if(-1!==a.indexOf(T)){var L=encodeURIComponent(T);L===T&&(L=escape(T)),a=a.split(T).join(L)}}var C=a.indexOf("#");-1!==C&&(this.hash=a.substr(C),a=a.slice(0,C));var O=a.indexOf("?");if(-1!==O?(this.search=a.substr(O),this.query=a.substr(O+1),t&&(this.query=Nt.parse(this.query)),a=a.slice(0,O)):t&&(this.search="",this.query={}),a&&(this.pathname=a),Zt[f]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){A=this.pathname||"";var M=this.search||"";this.path=A+M}return this.href=this.format(),this},qt.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&Lt(this.query)&&Object.keys(this.query).length&&(i=Nt.stringify(this.query));var a=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||Zt[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+o+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+n},qt.prototype.resolve=function(e){return this.resolveObject(Qt(e,!1,!0)).format()},qt.prototype.resolveObject=function(e){if(Tt(e)){var t=new qt;t.parse(e,!1,!0),e=t}for(var r=new qt,n=Object.keys(this),o=0;o<n.length;o++){var i=n[o];r[i]=this[i]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var u=a[s];"protocol"!==u&&(r[u]=e[u])}return Zt[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!Zt[e.protocol]){for(var f=Object.keys(e),c=0;c<f.length;c++){var l=f[c];r[l]=e[l]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||Jt[e.protocol])r.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",p=r.search||"";r.path=d+p}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var y=r.pathname&&"/"===r.pathname.charAt(0),g=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=g||y||r.host&&e.pathname,b=v,m=r.pathname&&r.pathname.split("/")||[],w=(h=e.pathname&&e.pathname.split("/")||[],r.protocol&&!Zt[r.protocol]);if(w&&(r.hostname="",r.port=null,r.host&&(""===m[0]?m[0]=r.host:m.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),v=v&&(""===h[0]||""===m[0])),g)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,m=h;else if(h.length)m||(m=[]),m.pop(),m=m.concat(h),r.search=e.search,r.query=e.query;else if(!Ot(e.search))return w&&(r.hostname=r.host=m.shift(),(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),r.search=e.search,r.query=e.query,Ct(r.pathname)&&Ct(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!m.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var _=m.slice(-1)[0],E=(r.host||e.host||m.length>1)&&("."===_||".."===_)||""===_,S=0,x=m.length;x>=0;x--)"."===(_=m[x])?m.splice(x,1):".."===_?(m.splice(x,1),S++):S&&(m.splice(x,1),S--);if(!v&&!b)for(;S--;S)m.unshift("..");!v||""===m[0]||m[0]&&"/"===m[0].charAt(0)||m.unshift(""),E&&"/"!==m.join("/").substr(-1)&&m.push("");var R,A=""===m[0]||m[0]&&"/"===m[0].charAt(0);return w&&(r.hostname=r.host=A?"":m.length?m.shift():"",(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),(v=v||r.host&&m.length)&&!A&&m.unshift(""),m.length?r.pathname=m.join("/"):(r.pathname=null,r.path=null),Ct(r.pathname)&&Ct(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},qt.prototype.parseHost=function(){var e=this.host,t=Ft.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var er={};(function(e){(function(){var t=er;t.request=function(t,r){t="string"==typeof t?Dt.parse(t):function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)Rt.call(r,n)&&(e[n]=r[n])}return e}(t);var n=-1===e.location.protocol.search(/^https?:$/)?"http:":"",o=t.protocol||n,i=t.hostname||t.host,a=t.port,s=t.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),t.url=(i?o+"//"+i:"")+(a?":"+a:"")+s,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var u=new xt(t);return r&&u.on("response",r),u},t.get=function(e,r){var n=t.request(e,r);return n.end(),n},t.ClientRequest=xt,t.IncomingMessage=St.IncomingMessage,t.Agent=function(){},t.Agent.defaultMaxSockets=4,t.globalAgent=new t.Agent,t.STATUS_CODES=At,t.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var tr={},rr=tr;for(var nr in er)er.hasOwnProperty(nr)&&(rr[nr]=er[nr]);function or(e){if("string"==typeof e&&(e=Dt.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}rr.request=function(e,t){return e=or(e),er.request.call(this,e,t)},rr.get=function(e,t){return e=or(e),er.get.call(this,e,t)};var ir=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),o=e[e.length-1];return"function"==typeof n&&n!==o&&Object.keys(o).forEach((function(e){n[e]=o[e]})),n}},ar={};function sr(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function ur(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}(ar=ir(sr)).strict=ir(ur),sr.proto=sr((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return sr(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return ur(this)},configurable:!0})}));var fr={};(function(e){(function(){fr=r;const t=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;function r(n,o){if(n=Object.assign({maxRedirects:10},"string"==typeof n?{url:n}:n),o=ar(o),n.url){const{hostname:e,port:t,protocol:r,auth:o,path:i}=Dt.parse(n.url);delete n.url,e||t||r||o?Object.assign(n,{hostname:e,port:t,protocol:r,auth:o,path:i}):n.path=i}const i={"accept-encoding":"gzip, deflate"};let a;n.headers&&Object.keys(n.headers).forEach(e=>i[e.toLowerCase()]=n.headers[e]),n.headers=i,n.body?a=n.json&&!t(n.body)?JSON.stringify(n.body):n.body:n.form&&(a="string"==typeof n.form?n.form:Nt.stringify(n.form),n.headers["content-type"]="application/x-www-form-urlencoded"),a&&(n.method||(n.method="POST"),t(a)||(n.headers["content-length"]=e.byteLength(a)),n.json&&!n.form&&(n.headers["content-type"]="application/json")),delete n.body,delete n.form,n.json&&(n.headers.accept="application/json"),n.method&&(n.method=n.method.toUpperCase());const s=("https:"===n.protocol?tr:er).request(n,e=>{if(!1!==n.followRedirects&&e.statusCode>=300&&e.statusCode<400&&e.headers.location)return n.url=e.headers.location,delete n.headers.host,e.resume(),"POST"===n.method&&[301,302].includes(e.statusCode)&&(n.method="GET",delete n.headers["content-length"],delete n.headers["content-type"]),0==n.maxRedirects--?o(new Error("too many redirects")):r(n,o);const t="function"==typeof ue&&"HEAD"!==n.method;o(null,t?ue(e):e)});return s.on("timeout",()=>{s.abort(),o(new Error("Request timed out"))}),s.on("error",o),t(a)?a.on("error",o).pipe(s):s.end(a),s}r.concat=(e,t)=>r(e,(r,n)=>{if(r)return t(r);se(n,(r,o)=>{if(r)return t(r);if(e.json)try{o=JSON.parse(o.toString())}catch(r){return t(r,n,o)}t(null,n,o)})}),["get","post","put","patch","head","delete"].forEach(e=>{r[e]=(t,n)=>("string"==typeof t&&(t={url:t}),r(Object.assign({method:e.toUpperCase()},t),n))})}).call(this)}).call(this,u({}).Buffer);var cr={};(function(e){(function(){"use strict";var t=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];cr.decode=function(r){var n,o=0,i=0,a=0;e.isBuffer(r)||(r=new e(r));for(var s=new e(Math.ceil(5*r.length/8)),u=0;u<r.length&&61!==r[u];u++){var f=r[u]-48;if(!(f<t.length))throw new Error("Invalid input - it is not base32 encoded string");i=t[f],o<=3?0==(o=(o+5)%8)?(n|=i,s[a]=n,a++,n=0):n|=255&i<<8-o:(n|=255&i>>>(o=(o+5)%8),s[a]=n,a++,n=255&i<<8-o)}return s.slice(0,a)}}).call(this)}).call(this,u({}).Buffer);var lr={};cr.encode,lr.decode=cr.decode;var hr={};function dr(e){return e.reduce((e,t,r,n)=>{const o=t.split("-").map(e=>parseInt(e));return e.concat(((e,t=e)=>Array.from({length:t-e+1},(t,r)=>r+e))(...o))},[])}(hr=dr).parse=dr,hr.compose=function(e){return e.reduce((e,t,r,n)=>(0!==r&&t===n[r-1]+1||e.push([]),e[e.length-1].push(t),e),[]).map(e=>e.length>1?`${e[0]}-${e[e.length-1]}`:""+e[0])};var pr={};(function(e){(function(){function t(t){const r={},n=t.split("magnet:?")[1];let o;return(n&&n.length>=0?n.split("&"):[]).forEach(e=>{const t=e.split("=");if(2!==t.length)return;const n=t[0];let o=t[1];"dn"===n&&(o=decodeURIComponent(o).replace(/\+/g," ")),"tr"!==n&&"xs"!==n&&"as"!==n&&"ws"!==n||(o=decodeURIComponent(o)),"kt"===n&&(o=decodeURIComponent(o).split("+")),"ix"===n&&(o=Number(o)),"so"===n&&(o=hr.parse(decodeURIComponent(o).split(","))),r[n]?(Array.isArray(r[n])||(r[n]=[r[n]]),r[n].push(o)):r[n]=o}),r.xt&&(Array.isArray(r.xt)?r.xt:[r.xt]).forEach(t=>{if(o=t.match(/^urn:btih:(.{40})/))r.infoHash=o[1].toLowerCase();else if(o=t.match(/^urn:btih:(.{32})/)){const t=lr.decode(o[1]);r.infoHash=e.from(t,"binary").toString("hex")}}),r.xs&&(Array.isArray(r.xs)?r.xs:[r.xs]).forEach(e=>{(o=e.match(/^urn:btpk:(.{64})/))&&(r.publicKey=o[1].toLowerCase())}),r.infoHash&&(r.infoHashBuffer=e.from(r.infoHash,"hex")),r.publicKey&&(r.publicKeyBuffer=e.from(r.publicKey,"hex")),r.dn&&(r.name=r.dn),r.kt&&(r.keywords=r.kt),r.announce=[],("string"==typeof r.tr||Array.isArray(r.tr))&&(r.announce=r.announce.concat(r.tr)),r.urlList=[],("string"==typeof r.as||Array.isArray(r.as))&&(r.urlList=r.urlList.concat(r.as)),("string"==typeof r.ws||Array.isArray(r.ws))&&(r.urlList=r.urlList.concat(r.ws)),r.peerAddresses=[],("string"==typeof r["x.pe"]||Array.isArray(r["x.pe"]))&&(r.peerAddresses=r.peerAddresses.concat(r["x.pe"])),r.announce=Array.from(new Set(r.announce)),r.urlList=Array.from(new Set(r.urlList)),r.peerAddresses=Array.from(new Set(r.peerAddresses)),r}(pr=t).decode=t,pr.encode=function(e){(e=Object.assign({},e)).infoHashBuffer&&(e.xt="urn:btih:"+e.infoHashBuffer.toString("hex")),e.infoHash&&(e.xt="urn:btih:"+e.infoHash),e.publicKeyBuffer&&(e.xs="urn:btpk:"+e.publicKeyBuffer.toString("hex")),e.publicKey&&(e.xs="urn:btpk:"+e.publicKey),e.name&&(e.dn=e.name),e.keywords&&(e.kt=e.keywords),e.announce&&(e.tr=e.announce),e.urlList&&(e.ws=e.urlList,delete e.as),e.peerAddresses&&(e["x.pe"]=e.peerAddresses);let t="magnet:?";return Object.keys(e).filter(e=>2===e.length||"x.pe"===e).forEach((r,n)=>{const o=Array.isArray(e[r])?e[r]:[e[r]];o.forEach((e,o)=>{(n>0||o>0)&&("kt"!==r&&"so"!==r||0===o)&&(t+="&"),"dn"===r&&(e=encodeURIComponent(e).replace(/%20/g,"+")),"tr"!==r&&"as"!==r&&"ws"!==r||(e=encodeURIComponent(e)),"xs"!==r||e.startsWith("urn:btpk:")||(e=encodeURIComponent(e)),"kt"===r&&(e=encodeURIComponent(e)),"so"!==r&&(t+="kt"===r&&o>0?"+"+e:`${r}=${e}`)}),"so"===r&&(t+=`${r}=${hr.compose(o)}`)}),t}}).call(this)}).call(this,u({}).Buffer);var yr={};(function(e){(function(){"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",o=0,i=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(i===s-1||1===a);else if(i!==s-1&&2===a){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){-1===u?(n="",o=0):o=(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),i=s,a=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=s,a=0;continue}t&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var n={resolve:function(){for(var n,o="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var s;a>=0?s=arguments[a]:(void 0===n&&(n=e.cwd()),s=n),t(s),0!==s.length&&(o=s+"/"+o,i=47===s.charCodeAt(0))}return o=r(o,!i),i?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&o&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var o=arguments[r];t(o),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r)return"";if((e=n.resolve(e))===(r=n.resolve(r)))return"";for(var o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var i=e.length,a=i-o,s=1;s<r.length&&47===r.charCodeAt(s);++s);for(var u=r.length-s,f=a<u?a:u,c=-1,l=0;l<=f;++l){if(l===f){if(u>f){if(47===r.charCodeAt(s+l))return r.slice(s+l+1);if(0===l)return r.slice(s+l)}else a>f&&(47===e.charCodeAt(o+l)?c=l:0===l&&(c=0));break}var h=e.charCodeAt(o+l);if(h!==r.charCodeAt(s+l))break;47===h&&(c=l)}var d="";for(l=o+c+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===d.length?d+="..":d+="/..");return d.length>0?d+r.slice(s+c):(s+=c,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,o=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(r=e.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return-1===o?n?"/":".":n&&1===o?"//":e.slice(0,o)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');t(e);var n,o=0,i=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var s=r.length-1,u=-1;for(n=e.length-1;n>=0;--n){var f=e.charCodeAt(n);if(47===f){if(!a){o=n+1;break}}else-1===u&&(a=!1,u=n+1),s>=0&&(f===r.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=u))}return o===i?i=u:-1===i&&(i=e.length),e.slice(o,i)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){o=n+1;break}}else-1===i&&(a=!1,i=n+1);return-1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var r=-1,n=0,o=-1,i=!0,a=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(47!==u)-1===o&&(i=!1,o=s+1),46===u?-1===r?r=s:1!==a&&(a=1):-1!==r&&(a=-1);else if(!i){n=s+1;break}}return-1===r||-1===o||0===a||1===a&&r===o-1&&r===n+1?"":e.slice(r,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n}(0,e)},parse:function(e){t(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n,o=e.charCodeAt(0),i=47===o;i?(r.root="/",n=1):n=0;for(var a=-1,s=0,u=-1,f=!0,c=e.length-1,l=0;c>=n;--c)if(47!==(o=e.charCodeAt(c)))-1===u&&(f=!1,u=c+1),46===o?-1===a?a=c:1!==l&&(l=1):-1!==a&&(l=-1);else if(!f){s=c+1;break}return-1===a||-1===u||0===l||1===l&&a===u-1&&a===s+1?-1!==u&&(r.base=r.name=0===s&&i?e.slice(1,u):e.slice(s,u)):(0===s&&i?(r.name=e.slice(1,a),r.base=e.slice(1,u)):(r.name=e.slice(s,a),r.base=e.slice(s,u)),r.ext=e.slice(a,u)),s>0?r.dir=e.slice(0,s-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,yr=n}).call(this)}).call(this,Ie);var gr,vr,br,mr,wr,_r={exports:{}};gr="undefined"!=typeof self?self:this,vr=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([function(e,t,r){var n=r(5),o=r(1),i=o.toHex,a=o.ceilHeapSize,s=r(6),u=function(e){for(e+=9;e%64>0;e+=1);return e},f=function(e,t){var r=new Int32Array(e,t+320,5),n=new Int32Array(5),o=new DataView(n.buffer);return o.setInt32(0,r[0],!1),o.setInt32(4,r[1],!1),o.setInt32(8,r[2],!1),o.setInt32(12,r[3],!1),o.setInt32(16,r[4],!1),n},c=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=t||65536)%64>0)throw new Error("Chunk size must be a multiple of 128 bit");this._offset=0,this._maxChunkLen=t,this._padMaxChunkLen=u(t),this._heap=new ArrayBuffer(a(this._padMaxChunkLen+320+20)),this._h32=new Int32Array(this._heap),this._h8=new Int8Array(this._heap),this._core=new n({Int32Array:Int32Array},{},this._heap)}return e.prototype._initState=function(e,t){this._offset=0;var r=new Int32Array(e,t+320,5);r[0]=1732584193,r[1]=-271733879,r[2]=-1732584194,r[3]=271733878,r[4]=-1009589776},e.prototype._padChunk=function(e,t){var r=u(e),n=new Int32Array(this._heap,0,r>>2);return function(e,t){var r=new Uint8Array(e.buffer),n=t%4,o=t-n;switch(n){case 0:r[o+3]=0;case 1:r[o+2]=0;case 2:r[o+1]=0;case 3:r[o+0]=0}for(var i=1+(t>>2);i<e.length;i++)e[i]=0}(n,e),function(e,t,r){e[t>>2]|=128<<24-(t%4<<3),e[14+(2+(t>>2)&-16)]=r/(1<<29)|0,e[15+(2+(t>>2)&-16)]=r<<3}(n,e,t),r},e.prototype._write=function(e,t,r,n){s(e,this._h8,this._h32,t,r,n||0)},e.prototype._coreCall=function(e,t,r,n,o){var i=r;this._write(e,t,r),o&&(i=this._padChunk(r,n)),this._core.hash(i,this._padMaxChunkLen)},e.prototype.rawDigest=function(e){var t=e.byteLength||e.length||e.size||0;this._initState(this._heap,this._padMaxChunkLen);var r=0,n=this._maxChunkLen;for(r=0;t>r+n;r+=n)this._coreCall(e,r,n,t,!1);return this._coreCall(e,r,t-r,t,!0),f(this._heap,this._padMaxChunkLen)},e.prototype.digest=function(e){return i(this.rawDigest(e).buffer)},e.prototype.digestFromString=function(e){return this.digest(e)},e.prototype.digestFromBuffer=function(e){return this.digest(e)},e.prototype.digestFromArrayBuffer=function(e){return this.digest(e)},e.prototype.resetState=function(){return this._initState(this._heap,this._padMaxChunkLen),this},e.prototype.append=function(e){var t=0,r=e.byteLength||e.length||e.size||0,n=this._offset%this._maxChunkLen,o=void 0;for(this._offset+=r;t<r;)o=Math.min(r-t,this._maxChunkLen-n),this._write(e,t,o,n),t+=o,(n+=o)===this._maxChunkLen&&(this._core.hash(this._maxChunkLen,this._padMaxChunkLen),n=0);return this},e.prototype.getState=function(){var e=void 0;if(this._offset%this._maxChunkLen)e=this._heap.slice(0);else{var t=new Int32Array(this._heap,this._padMaxChunkLen+320,5);e=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}return{offset:this._offset,heap:e}},e.prototype.setState=function(e){return this._offset=e.offset,20===e.heap.byteLength?new Int32Array(this._heap,this._padMaxChunkLen+320,5).set(new Int32Array(e.heap)):this._h32.set(new Int32Array(e.heap)),this},e.prototype.rawEnd=function(){var e=this._offset,t=e%this._maxChunkLen,r=this._padChunk(t,e);this._core.hash(r,this._padMaxChunkLen);var n=f(this._heap,this._padMaxChunkLen);return this._initState(this._heap,this._padMaxChunkLen),n},e.prototype.end=function(){return i(this.rawEnd().buffer)},e}();e.exports=c,e.exports._core=n},function(e,t){for(var r=new Array(256),n=0;n<256;n++)r[n]=(n<16?"0":"")+n.toString(16);e.exports.toHex=function(e){for(var t=new Uint8Array(e),n=new Array(e.byteLength),o=0;o<n.length;o++)n[o]=r[t[o]];return n.join("")},e.exports.ceilHeapSize=function(e){var t=0;if(e<=65536)return 65536;if(e<16777216)for(t=1;t<e;t<<=1);else for(t=16777216;t<e;t+=16777216);return t},e.exports.isDedicatedWorkerScope=function(e){var t="WorkerGlobalScope"in e&&e instanceof e.WorkerGlobalScope,r="SharedWorkerGlobalScope"in e&&e instanceof e.SharedWorkerGlobalScope,n="ServiceWorkerGlobalScope"in e&&e instanceof e.ServiceWorkerGlobalScope;return t&&!r&&!n}},function(e,t,r){e.exports=function(){var e=r(0),t=function(e,r,n,o,i){var a=new self.FileReader;a.onloadend=function(){if(a.error)return i(a.error);var s=a.result;r+=a.result.byteLength;try{e.append(s)}catch(u){return void i(u)}r<o.size?t(e,r,n,o,i):i(null,e.end())},a.readAsArrayBuffer(o.slice(r,r+n))},n=!0;return self.onmessage=function(r){if(n){var o=r.data.data,i=r.data.file,a=r.data.id;if(void 0!==a&&(i||o)){var s=r.data.blockSize||4194304,u=new e(s);u.resetState();var f=function(e,t){e?self.postMessage({id:a,error:e.name}):self.postMessage({id:a,hash:t})};o&&function(e,t,r){try{r(null,e.digest(t))}catch(n){return r(n)}}(u,o,f),i&&t(u,0,s,i,f)}}},function(){n=!1}}},function(e,t,r){var n=r(4),o=r(0),i=r(7),a=r(2),s=r(1).isDedicatedWorkerScope,u="undefined"!=typeof self&&s(self);o.disableWorkerBehaviour=u?a():function(){},o.createWorker=function(){var e=n(2),t=e.terminate;return e.terminate=function(){URL.revokeObjectURL(e.objectURL),t.call(e)},e},o.createHash=i,e.exports=o},function(e,t,r){function n(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r.oe=function(e){throw console.error(e),e};var n=r(r.s=ENTRY_MODULE);return n.default||n}function o(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function i(e,t,n){var i={};i[n]=[];var a=t.toString(),s=a.match(/^function\s?\(\w+,\s*\w+,\s*(\w+)\)/);if(!s)return i;for(var u,f=s[1],c=new RegExp("(\\\\n|\\W)"+o(f)+"\\((/\\*.*?\\*/)?s?.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)","g");u=c.exec(a);)"dll-reference"!==u[3]&&i[n].push(u[3]);for(c=new RegExp("\\("+o(f)+'\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)\\((/\\*.*?\\*/)?s?.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)',"g");u=c.exec(a);)e[u[2]]||(i[n].push(u[1]),e[u[2]]=r(u[1]).m),i[u[2]]=i[u[2]]||[],i[u[2]].push(u[4]);return i}function a(e){return Object.keys(e).reduce((function(t,r){return t||e[r].length>0}),!1)}e.exports=function(e,t){t=t||{};var o={main:r.m},s=t.all?{main:Object.keys(o)}:function(e,t){for(var r={main:[t]},n={main:[]},o={main:{}};a(r);)for(var s=Object.keys(r),u=0;u<s.length;u++){var f=s[u],c=r[f].pop();if(o[f]=o[f]||{},!o[f][c]&&e[f][c]){o[f][c]=!0,n[f]=n[f]||[],n[f].push(c);for(var l=i(e,e[f][c],f),h=Object.keys(l),d=0;d<h.length;d++)r[h[d]]=r[h[d]]||[],r[h[d]]=r[h[d]].concat(l[h[d]])}}return n}(o,e),u="";Object.keys(s).filter((function(e){return"main"!==e})).forEach((function(e){for(var t=0;s[e][t];)t++;s[e].push(t),o[e][t]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",u=u+"var "+e+" = ("+n.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+s[e].map((function(t){return JSON.stringify(t)+": "+o[e][t].toString()})).join(",")+"});\n"})),u=u+"("+n.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+s.main.map((function(e){return JSON.stringify(e)+": "+o.main[e].toString()})).join(",")+"})(self);";var f=new window.Blob([u],{type:"text/javascript"});if(t.bare)return f;var c=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(f),l=new window.Worker(c);return l.objectURL=c,l}},function(e,t){e.exports=function(e,t,r){"use asm";var n=new e.Int32Array(r);function o(e,t){e=e|0;t=t|0;var r=0,o=0,i=0,a=0,s=0,u=0,f=0,c=0,l=0,h=0,d=0,p=0,y=0,g=0;i=n[t+320>>2]|0;s=n[t+324>>2]|0;f=n[t+328>>2]|0;l=n[t+332>>2]|0;d=n[t+336>>2]|0;for(r=0;(r|0)<(e|0);r=r+64|0){a=i;u=s;c=f;h=l;p=d;for(o=0;(o|0)<64;o=o+4|0){g=n[r+o>>2]|0;y=((i<<5|i>>>27)+(s&f|~s&l)|0)+((g+d|0)+1518500249|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[e+o>>2]=g}for(o=e+64|0;(o|0)<(e+80|0);o=o+4|0){g=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;y=((i<<5|i>>>27)+(s&f|~s&l)|0)+((g+d|0)+1518500249|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[o>>2]=g}for(o=e+80|0;(o|0)<(e+160|0);o=o+4|0){g=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;y=((i<<5|i>>>27)+(s^f^l)|0)+((g+d|0)+1859775393|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[o>>2]=g}for(o=e+160|0;(o|0)<(e+240|0);o=o+4|0){g=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;y=((i<<5|i>>>27)+(s&f|s&l|f&l)|0)+((g+d|0)-1894007588|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[o>>2]=g}for(o=e+240|0;(o|0)<(e+320|0);o=o+4|0){g=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;y=((i<<5|i>>>27)+(s^f^l)|0)+((g+d|0)-899497514|0)|0;d=l;l=f;f=s<<30|s>>>2;s=i;i=y;n[o>>2]=g}i=i+a|0;s=s+u|0;f=f+c|0;l=l+h|0;d=d+p|0}n[t+320>>2]=i;n[t+324>>2]=s;n[t+328>>2]=f;n[t+332>>2]=l;n[t+336>>2]=d}return{hash:o}}},function(e,t){var r=this,n=void 0;"undefined"!=typeof self&&void 0!==self.FileReaderSync&&(n=new self.FileReaderSync);var o=function(e,t,r,n,o,i){var a=void 0,s=i%4,u=(o+s)%4,f=o-u;switch(s){case 0:t[i]=e[n+3];case 1:t[i+1-(s<<1)|0]=e[n+2];case 2:t[i+2-(s<<1)|0]=e[n+1];case 3:t[i+3-(s<<1)|0]=e[n]}if(!(o<u+(4-s))){for(a=4-s;a<f;a=a+4|0)r[i+a>>2|0]=e[n+a]<<24|e[n+a+1]<<16|e[n+a+2]<<8|e[n+a+3];switch(u){case 3:t[i+f+1|0]=e[n+f+2];case 2:t[i+f+2|0]=e[n+f+1];case 1:t[i+f+3|0]=e[n+f]}}};e.exports=function(e,t,i,a,s,u){if("string"==typeof e)return function(e,t,r,n,o,i){var a=void 0,s=i%4,u=(o+s)%4,f=o-u;switch(s){case 0:t[i]=e.charCodeAt(n+3);case 1:t[i+1-(s<<1)|0]=e.charCodeAt(n+2);case 2:t[i+2-(s<<1)|0]=e.charCodeAt(n+1);case 3:t[i+3-(s<<1)|0]=e.charCodeAt(n)}if(!(o<u+(4-s))){for(a=4-s;a<f;a=a+4|0)r[i+a>>2]=e.charCodeAt(n+a)<<24|e.charCodeAt(n+a+1)<<16|e.charCodeAt(n+a+2)<<8|e.charCodeAt(n+a+3);switch(u){case 3:t[i+f+1|0]=e.charCodeAt(n+f+2);case 2:t[i+f+2|0]=e.charCodeAt(n+f+1);case 1:t[i+f+3|0]=e.charCodeAt(n+f)}}}(e,t,i,a,s,u);if(e instanceof Array)return o(e,t,i,a,s,u);if(r&&r.Buffer&&r.Buffer.isBuffer(e))return o(e,t,i,a,s,u);if(e instanceof ArrayBuffer)return o(new Uint8Array(e),t,i,a,s,u);if(e.buffer instanceof ArrayBuffer)return o(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t,i,a,s,u);if(e instanceof Blob)return function(e,t,r,o,i,a){var s=void 0,u=a%4,f=(i+u)%4,c=i-f,l=new Uint8Array(n.readAsArrayBuffer(e.slice(o,o+i)));switch(u){case 0:t[a]=l[3];case 1:t[a+1-(u<<1)|0]=l[2];case 2:t[a+2-(u<<1)|0]=l[1];case 3:t[a+3-(u<<1)|0]=l[0]}if(!(i<f+(4-u))){for(s=4-u;s<c;s=s+4|0)r[a+s>>2|0]=l[s]<<24|l[s+1]<<16|l[s+2]<<8|l[s+3];switch(f){case 3:t[a+c+1|0]=l[c+2];case 2:t[a+c+2|0]=l[c+1];case 1:t[a+c+3|0]=l[c]}}}(e,t,i,a,s,u);throw new Error("Unsupported data type.")}},function(e,t,r){var n=r(0),o=r(1).toHex,i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._rusha=new n,this._rusha.resetState()}return e.prototype.update=function(e){return this._rusha.append(e),this},e.prototype.digest=function(e){var t=this._rusha.rawEnd().buffer;if(!e)return t;if("hex"===e)return o(t);throw new Error("unsupported digest encoding")},e}();e.exports=function(){return new i}}])},"object"==typeof _r.exports?_r.exports=vr():"function"==typeof define&&define.amd?define([],vr):"object"==typeof _r.exports?_r.exports.Rusha=vr():gr.Rusha=vr(),_r=_r.exports;var Er,Sr=new _r,xr="undefined"!=typeof window?window:self,Rr=xr.crypto||xr.msCrypto||{},Ar=Rr.subtle||Rr.webkitSubtle;function kr(e){return Sr.digest(e)}try{Ar.digest({name:"sha-1"},new Uint8Array).catch((function(){Ar=!1}))}catch(Ir){Ar=!1}(Er=function(e,t){Ar?("string"==typeof e&&(e=function(e){for(var t=e.length,r=new Uint8Array(t),n=0;n<t;n++)r[n]=e.charCodeAt(n);return r}(e)),Ar.digest({name:"sha-1"},e).then((function(e){t(function(e){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")}(new Uint8Array(e)))}),(function(){t(kr(e))}))):"undefined"!=typeof window?function(e,t){br||(br=_r.createWorker(),mr=1,wr={},br.onmessage=function(e){var t=e.data.id,r=wr[t];delete wr[t],null!=e.data.error?r(new Error("Rusha worker error: "+e.data.error)):r(null,e.data.hash)}),wr[mr]=t,br.postMessage({id:mr,data:e}),mr+=1}(e,(function(r,n){t(r?kr(e):n)})):queueMicrotask(()=>t(kr(e)))}).sync=kr;var Tr={};(function(e,t){(function(){function r(e){if("string"==typeof e&&/^(stream-)?magnet:/.test(e)){const t=pr(e);if(!t.infoHash)throw new Error("Invalid torrent identifier");return t}if("string"==typeof e&&(/^[a-f0-9]{40}$/i.test(e)||/^[a-z2-7]{32}$/i.test(e)))return pr("magnet:?xt=urn:btih:"+e);if(t.isBuffer(e)&&20===e.length)return pr("magnet:?xt=urn:btih:"+e.toString("hex"));if(t.isBuffer(e))return function(e){t.isBuffer(e)&&(e=ne.decode(e)),o(e.info,"info"),o(e.info["name.utf-8"]||e.info.name,"info.name"),o(e.info["piece length"],"info['piece length']"),o(e.info.pieces,"info.pieces"),e.info.files?e.info.files.forEach(e=>{o("number"==typeof e.length,"info.files[0].length"),o(e["path.utf-8"]||e.path,"info.files[0].path")}):o("number"==typeof e.info.length,"info.length");const r={info:e.info,infoBuffer:ne.encode(e.info),name:(e.info["name.utf-8"]||e.info.name).toString(),announce:[]};r.infoHash=Er.sync(r.infoBuffer),r.infoHashBuffer=t.from(r.infoHash,"hex"),void 0!==e.info.private&&(r.private=!!e.info.private),e["creation date"]&&(r.created=new Date(1e3*e["creation date"])),e["created by"]&&(r.createdBy=e["created by"].toString()),t.isBuffer(e.comment)&&(r.comment=e.comment.toString()),Array.isArray(e["announce-list"])&&e["announce-list"].length>0?e["announce-list"].forEach(e=>{e.forEach(e=>{r.announce.push(e.toString())})}):e.announce&&r.announce.push(e.announce.toString()),t.isBuffer(e["url-list"])&&(e["url-list"]=e["url-list"].length>0?[e["url-list"]]:[]),r.urlList=(e["url-list"]||[]).map(e=>e.toString()),r.announce=Array.from(new Set(r.announce)),r.urlList=Array.from(new Set(r.urlList));const i=e.info.files||[e.info];r.files=i.map((e,t)=>{const o=[].concat(r.name,e["path.utf-8"]||e.path||[]).map(e=>e.toString());return{path:yr.join.apply(null,[yr.sep].concat(o)).slice(1),name:o[o.length-1],length:e.length,offset:i.slice(0,t).reduce(n,0)}}),r.length=i.reduce(n,0);const a=r.files[r.files.length-1];return r.pieceLength=e.info["piece length"],r.lastPieceLength=(a.offset+a.length)%r.pieceLength||r.pieceLength,r.pieces=function(e){const t=[];for(let r=0;r<e.length;r+=20)t.push(e.slice(r,r+20).toString("hex"));return t}(e.info.pieces),r}(e);if(e&&e.infoHash)return e.infoHash=e.infoHash.toLowerCase(),e.announce||(e.announce=[]),"string"==typeof e.announce&&(e.announce=[e.announce]),e.urlList||(e.urlList=[]),e;throw new Error("Invalid torrent identifier")}function n(e,t){return e+t.length}function o(e,t){if(!e)throw new Error("Torrent is missing required field: "+t)}(Tr=r).remote=function t(n,o,i){if("function"==typeof o)return t(n,{},o);if("function"!=typeof i)throw new Error("second argument must be a Function");let a;try{a=r(n)}catch(Ir){}function s(e){try{a=r(e)}catch(Ir){return i(Ir)}a&&a.infoHash?i(null,a):i(new Error("Invalid torrent identifier"))}a&&a.infoHash?e.nextTick(()=>{i(null,a)}):"undefined"!=typeof Blob&&n instanceof Blob?ie(n,(e,t)=>{if(e)return i(new Error("Error converting Blob: "+e.message));s(t)}):"function"==typeof fr&&/^https?:/.test(n)?(o=Object.assign({url:n,timeout:3e4,headers:{"user-agent":"WebTorrent (https://webtorrent.io)"}},o),fr.concat(o,(e,t,r)=>{if(e)return i(new Error("Error downloading torrent: "+e.message));s(r)})):"function"==typeof ae.readFile&&"string"==typeof n?ae.readFile(n,(e,t)=>{if(e)return i(new Error("Invalid torrent identifier"));s(t)}):e.nextTick(()=>{i(new Error("Invalid torrent identifier"))})},Tr.toMagnetURI=pr.encode,Tr.toTorrentFile=function(e){const r={info:e.info};return r["announce-list"]=(e.announce||[]).map(e=>(r.announce||(r.announce=e),[e=t.from(e,"utf8")])),r["url-list"]=e.urlList||[],void 0!==e.private&&(r.private=Number(e.private)),e.created&&(r["creation date"]=e.created.getTime()/1e3|0),e.createdBy&&(r["created by"]=e.createdBy),e.comment&&(r.comment=e.comment),ne.encode(r)},t.alloc(0)}).call(this)}).call(this,Ie,u({}).Buffer);var Lr={};(function(e){(function(){"use strict";var t=f(h),r=f(p),n=f(y),o=f(v),i=f(b),a=function(){function a(){(0,n.default)(this,a),(0,i.default)(this,"weight",102),(0,i.default)(this,"enabled",!0),(0,i.default)(this,"site","yts.mx"),(0,i.default)(this,"src","https://yts.mx/browse-movies/__keyword__/all/all/0/latest/0/all")}return(0,o.default)(a,[{key:"execute",value:(s=(0,r.default)(t.default.mark((function e(n){var o,i,a,s,u,f=this;return t.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.length<=0)){e.next=2;break}return e.abrupt("return",[]);case 2:return o=this.src.replace("__keyword__",n),o=encodeURI(o),e.next=6,this._doRequest(o);case 6:return i=e.sent,a=$.parseHTML(i.responseText),s=$(a).find(".browse-content .container .row .browse-movie-wrap"),u=Promise.all(s.map(function(){var e=(0,r.default)(t.default.mark((function e(r,n){var o,i,a;return t.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=$(n).find(".browse-movie-link").attr("href"),e.next=3,f._doRequest(o);case 3:return i=e.sent,a=i.responseText,e.next=7,f._fieldRef(a);case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()).get()),e.abrupt("return",u);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"filterKeyword",value:function(e){var t=e;return(t=t.replace(/^[^a-zA-Z]*/,"")).replace(/Season\s/,"S")}},{key:"_doRequest",value:function(e){return new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:e,timeout:1e4,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(e){200===e.status?t(e):r(e)}})}))}},{key:"_fieldRef",value:function(t){var r=$(t).find('#movie-info p a[rel="nofollow"]');return Promise.all(r.map((function(t,r){var n=$(r).attr("href");return new Promise((function(t,r){GM_xmlhttpRequest({method:"GET",url:n,responseType:"arraybuffer",timeout:1e4,onabort:function(e){r(e)},onerror:function(e){r(e)},ontimeout:function(e){r(e)},onload:function(n){if(200===n.status){var o=e.from(n.response);t((i=Tr(o),a=Tr.toMagnetURI(i),s=i.name,u=i.length,{title:s=s.split("\n").join(" ").trim(),link:a,sd:"-1",lc:"-1",size:u=parseFloat(u/1024/1024).toFixed(0)+"M"}))}else r(n);var i,a,s,u}})}))})))}}]),a;var s}();Lr=a}).call(this)}).call(this,u({}).Buffer);var Cr,Or=[new x,new C,new Lr],Mr=f(h),jr=f(p);Promise.main=(Cr=(0,jr.default)(Mr.default.mark((function e(t){var r,n,o,i,a,s,u,f;return Mr.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.sort((function(e,t){return e.weight-t.weight})),r=$("h1 span:eq(0)").text(),n=0;case 3:if(!(n<t.length)){e.next=22;break}if(o=t[n],(i=o).enabled){e.next=8;break}return e.abrupt("continue",19);case 8:if(!((a=o.filterKeyword(r)).length<=0)){e.next=11;break}return e.abrupt("continue",19);case 11:return console.log(a),e.next=14,i.execute(a).catch((function(e){console.log(e);var t=$('<div class="clearfix" style="float: left; width: 675px"><hr/><p>Seems like you\'re not using VPN</p></div>');$(".article .subjectwrap:first").append(t)}));case 14:s=e.sent,u="",!s||s.length<=0?u="[".concat(i.site,"] No any magnet links can be found!"):(s.forEach((function(e){var t=e.title,r=e.size,n=e.sd,o=e.lc,i=e.link;u+='<li><a href="'.concat(i,'">').concat(t," (sd: ").concat(n,", lc: ").concat(o,", ").concat(r,")</a></li>")})),n=t.length-1),f=$('<div class="clearfix magnet-section" style="float: left; width: 675px"><hr/><ul>'.concat(u,"</ul></div>")),$(".article .subjectwrap:first").append(f);case 19:n++,e.next=3;break;case 22:case"end":return e.stop()}}),e)}))),function(e){return Cr.apply(this,arguments)}),Promise.main(Or)}();
\ No newline at end of file
diff --git a/dist/tampermonkey-metadata.js b/dist/tampermonkey-metadata.js
index f472222..163377f 100644
--- a/dist/tampermonkey-metadata.js
+++ b/dist/tampermonkey-metadata.js
@@ -1,13 +1,11 @@
 // ==UserScript==
 // @name         btdouban
-// @version      0.0.5
+// @version      0.0.6
 // @description  [Caution: Ensure using VPN] Gets Douban medias' BitTorrent resources
 // @namespace    https://github.com/caryyu/bteye
 // @author       caryyu
 // @match        *://movie.douban.com/subject/*
 // @grant        GM_xmlhttpRequest
-// @connect      btdb.eu
-// @connect      kat.rip
 // @connect      herokuapp.com
 // @connect      1337x.to
 // @connect      yts.mx