packetsnitch 1.5.605 → 1.5.606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.webpack/x64/main/index.js +2 -0
- package/.webpack/x64/main/index.js.map +1 -0
- package/.webpack/x64/renderer/main_window/index.html +3 -0
- package/.webpack/x64/renderer/main_window/index.js +3 -0
- package/.webpack/x64/renderer/main_window/index.js.LICENSE.txt +36 -0
- package/.webpack/x64/renderer/main_window/index.js.map +1 -0
- package/.webpack/x64/renderer/main_window/preload.js +2 -0
- package/.webpack/x64/renderer/main_window/preload.js.map +1 -0
- package/package.json +2 -2
- package/spec.ejs +62 -0
- package/.webpack/main/index.js +0 -1697
- package/.webpack/main/index.js.map +0 -1
- package/.webpack/renderer/main_window/index.html +0 -1036
- package/.webpack/renderer/main_window/index.js +0 -4736
- package/.webpack/renderer/main_window/preload.js +0 -1418
- /package/.webpack/{renderer → x64/renderer}/assets/css/rubikglitch.woff2 +0 -0
- /package/.webpack/{renderer → x64/renderer}/assets/css/style.css +0 -0
- /package/.webpack/{renderer → x64/renderer}/assets/images/loading.gif +0 -0
- /package/.webpack/{renderer → x64/renderer}/assets/images/logo.webp +0 -0
- /package/.webpack/{renderer → x64/renderer}/assets/images/packet-snitch-tag.webp +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
+
(()=>{var __webpack_modules__={4389(t,e,n){var r=e;r.bignum=n(7590),r.define=n(1305).define,r.base=n(923),r.constants=n(4399),r.decoders=n(6407),r.encoders=n(2723)},1305(t,e,n){var r=n(4389),i=n(7832);function o(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new o(t,e)},o.prototype._createNamed=function(t){var e;try{e=n(6175).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(t){e=function(t){this._initNamed(t)}}return i(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},o.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(r.decoders[t])),this.decoders[t]},o.prototype.decode=function(t,e,n){return this._getDecoder(e).decode(t,n)},o.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(r.encoders[t])),this.encoders[t]},o.prototype.encode=function(t,e,n){return this._getEncoder(e).encode(t,n)}},7925(t,e,n){var r=n(7832),i=n(923).Reporter,o=n(3273).Buffer;function a(t,e){i.call(this,e),o.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function s(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(t){return t instanceof s||(t=new s(t,e)),this.length+=t.length,t},this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=o.byteLength(t);else{if(!o.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}r(a,i),e.t=a,a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(t){var e=new a(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,i.prototype.restore.call(this,t.reporter),e},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},a.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var n=new a(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+t,this.offset+=t,n},a.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.d=s,s.prototype.join=function(t,e){return t||(t=new o(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(t,e),e+=n.length}):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):o.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},923(t,e,n){var r=e;r.Reporter=n(6918).a,r.DecoderBuffer=n(7925).t,r.EncoderBuffer=n(7925).d,r.Node=n(4536)},4536(t,e,n){var r=n(923).Reporter,i=n(923).EncoderBuffer,o=n(923).DecoderBuffer,a=n(9619),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function h(t,e){var n={};this._baseState=n,n.enc=t,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=h;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];h.prototype.clone=function(){var t=this._baseState,e={};u.forEach(function(n){e[n]=t[n]});var n=new this.constructor(e.parent);return n._baseState=e,n},h.prototype._wrap=function(){var t=this._baseState;l.forEach(function(e){this[e]=function(){var n=new this.constructor(this);return t.children.push(n),n[e].apply(n,arguments)}},this)},h.prototype._init=function(t){var e=this._baseState;a(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),a.equal(e.children.length,1,"Root node can have only one child")},h.prototype._useArgs=function(t){var e=this._baseState,n=t.filter(function(t){return t instanceof this.constructor},this);t=t.filter(function(t){return!(t instanceof this.constructor)},this),0!==n.length&&(a(null===e.children),e.children=n,n.forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(a(null===e.args),e.args=t,e.reverseArgs=t.map(function(t){if("object"!=typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach(function(n){n==(0|n)&&(n|=0);var r=t[n];e[r]=n}),e}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(t){h.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}}),s.forEach(function(t){h.prototype[t]=function(){var e=this._baseState,n=Array.prototype.slice.call(arguments);return a(null===e.tag),e.tag=t,this._useArgs(n),this}}),h.prototype.use=function(t){a(t);var e=this._baseState;return a(null===e.use),e.use=t,this},h.prototype.optional=function(){return this._baseState.optional=!0,this},h.prototype.def=function(t){var e=this._baseState;return a(null===e.default),e.default=t,e.optional=!0,this},h.prototype.explicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.explicit=t,this},h.prototype.implicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.implicit=t,this},h.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},h.prototype.key=function(t){var e=this._baseState;return a(null===e.key),e.key=t,this},h.prototype.any=function(){return this._baseState.any=!0,this},h.prototype.choice=function(t){var e=this._baseState;return a(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map(function(e){return t[e]})),this},h.prototype.contains=function(t){var e=this._baseState;return a(null===e.use),e.contains=t,this},h.prototype._decode=function(t,e){var n=this._baseState;if(null===n.parent)return t.wrapResult(n.children[0]._decode(t,e));var r,i=n.default,a=!0,s=null;if(null!==n.key&&(s=t.enterKey(n.key)),n.optional){var l=null;if(null!==n.explicit?l=n.explicit:null!==n.implicit?l=n.implicit:null!==n.tag&&(l=n.tag),null!==l||n.any){if(a=this._peekTag(t,l,n.any),t.isError(a))return a}else{var h=t.save();try{null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e),a=!0}catch(t){a=!1}t.restore(h)}}if(n.obj&&a&&(r=t.enterObject()),a){if(null!==n.explicit){var u=this._decodeTag(t,n.explicit);if(t.isError(u))return u;t=u}var c=t.offset;if(null===n.use&&null===n.choice){n.any&&(h=t.save());var d=this._decodeTag(t,null!==n.implicit?n.implicit:n.tag,n.any);if(t.isError(d))return d;n.any?i=t.raw(h):t=d}if(e&&e.track&&null!==n.tag&&e.track(t.path(),c,t.length,"tagged"),e&&e.track&&null!==n.tag&&e.track(t.path(),t.offset,t.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e)),t.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(n){n._decode(t,e)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var f=new o(i);i=this._getUse(n.contains,t._reporterState.obj)._decode(f,e)}}return n.obj&&a&&(i=t.leaveObject(r)),null===n.key||null===i&&!0!==a?null!==s&&t.exitKey(s):t.leaveKey(s,n.key,i),i},h.prototype._decodeGeneric=function(t,e,n){var r=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,r.args[0],n):/str$/.test(t)?this._decodeStr(e,t,n):"objid"===t&&r.args?this._decodeObjid(e,r.args[0],r.args[1],n):"objid"===t?this._decodeObjid(e,null,null,n):"gentime"===t||"utctime"===t?this._decodeTime(e,t,n):"null_"===t?this._decodeNull(e,n):"bool"===t?this._decodeBool(e,n):"objDesc"===t?this._decodeStr(e,t,n):"int"===t||"enum"===t?this._decodeInt(e,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,e._reporterState.obj)._decode(e,n):e.error("unknown tag: "+t)},h.prototype._getUse=function(t,e){var n=this._baseState;return n.useDecoder=this._use(t,e),a(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},h.prototype._decodeChoice=function(t,e){var n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some(function(o){var a=t.save(),s=n.choice[o];try{var l=s._decode(t,e);if(t.isError(l))return!1;r={type:o,value:l},i=!0}catch(e){return t.restore(a),!1}return!0},this),i?r:t.error("Choice not matched")},h.prototype._createEncoderBuffer=function(t){return new i(t,this.reporter)},h.prototype._encode=function(t,e,n){var r=this._baseState;if(null===r.default||r.default!==t){var i=this._encodeValue(t,e,n);if(void 0!==i&&!this._skipDefault(i,e,n))return i}},h.prototype._encodeValue=function(t,e,n){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(t,e||new r);var o=null;if(this.reporter=e,i.optional&&void 0===t){if(null===i.default)return;t=i.default}var a=null,s=!1;if(i.any)o=this._createEncoderBuffer(t);else if(i.choice)o=this._encodeChoice(t,e);else if(i.contains)a=this._getUse(i.contains,n)._encode(t,e),s=!0;else if(i.children)a=i.children.map(function(n){if("null_"===n._baseState.tag)return n._encode(null,e,t);if(null===n._baseState.key)return e.error("Child should have a key");var r=e.enterKey(n._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");var i=n._encode(t[n._baseState.key],e,t);return e.leaveKey(r),i},this).filter(function(t){return t}),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return e.error("Too many args for : "+i.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var l=this.clone();l._baseState.implicit=null,a=this._createEncoderBuffer(t.map(function(n){var r=this._baseState;return this._getUse(r.args[0],t)._encode(n,e)},l))}else null!==i.use?o=this._getUse(i.use,n)._encode(t,e):(a=this._encodePrimitive(i.tag,t),s=!0);if(!i.any&&null===i.choice){var h=null!==i.implicit?i.implicit:i.tag,u=null===i.implicit?"universal":"context";null===h?null===i.use&&e.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(h,s,u,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},h.prototype._encodeChoice=function(t,e){var n=this._baseState,r=n.choice[t.type];return r||a(!1,t.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(t.value,e)},h.prototype._encodePrimitive=function(t,e){var n=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&n.args)return this._encodeObjid(e,n.reverseArgs[0],n.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,n.args&&n.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},h.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},h.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},6918(t,e,n){var r=n(7832);function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}e.a=i,i.prototype.isError=function(t){return t instanceof o},i.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,n){var r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){var e=this._reporterState,n=e.obj;return e.obj=t,n},i.prototype.error=function(t){var e,n=this._reporterState,r=t instanceof o;if(e=r?t:new o(n.path.map(function(t){return"["+JSON.stringify(t)+"]"}).join(""),t.message||t,t.stack),!n.options.partial)throw e;return r||n.errors.push(e),e},i.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},r(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},316(t,e,n){var r=n(4399);e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=r._reverse(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=r._reverse(e.tag)},4399(t,e,n){var r=e;r._reverse=function(t){var e={};return Object.keys(t).forEach(function(n){(0|n)==n&&(n|=0);var r=t[n];e[r]=n}),e},r.der=n(316)},8164(t,e,n){var r=n(7832),i=n(4389),o=i.base,a=i.bignum,s=i.constants.der;function l(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){o.Node.call(this,"der",t)}function u(t,e){var n=t.readUInt8(e);if(t.isError(n))return n;var r=s.tagClass[n>>6],i=!(32&n);if(31&~n)n&=31;else{var o=n;for(n=0;!(128&~o);){if(o=t.readUInt8(e),t.isError(o))return o;n<<=7,n|=127&o}}return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function c(t,e,n){var r=t.readUInt8(n);if(t.isError(r))return r;if(!e&&128===r)return null;if(!(128&r))return r;var i=127&r;if(i>4)return t.error("length octect is too long");r=0;for(var o=0;o<i;o++){r<<=8;var a=t.readUInt8(n);if(t.isError(a))return a;r|=a}return r}t.exports=l,l.prototype.decode=function(t,e){return t instanceof o.DecoderBuffer||(t=new o.DecoderBuffer(t,e)),this.tree._decode(t,e)},r(h,o.Node),h.prototype._peekTag=function(t,e,n){if(t.isEmpty())return!1;var r=t.save(),i=u(t,'Failed to peek tag: "'+e+'"');return t.isError(i)?i:(t.restore(r),i.tag===e||i.tagStr===e||i.tagStr+"of"===e||n)},h.prototype._decodeTag=function(t,e,n){var r=u(t,'Failed to decode tag of "'+e+'"');if(t.isError(r))return r;var i=c(t,r.primitive,'Failed to get length of "'+e+'"');if(t.isError(i))return i;if(!n&&r.tag!==e&&r.tagStr!==e&&r.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(r.primitive||null!==i)return t.skip(i,'Failed to match body of: "'+e+'"');var o=t.save(),a=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(a)?a:(i=t.offset-o.offset,t.restore(o),t.skip(i,'Failed to match body of: "'+e+'"'))},h.prototype._skipUntilEnd=function(t,e){for(;;){var n=u(t,e);if(t.isError(n))return n;var r,i=c(t,n.primitive,e);if(t.isError(i))return i;if(r=n.primitive||null!==i?t.skip(i):this._skipUntilEnd(t,e),t.isError(r))return r;if("end"===n.tagStr)break}},h.prototype._decodeList=function(t,e,n,r){for(var i=[];!t.isEmpty();){var o=this._peekTag(t,"end");if(t.isError(o))return o;var a=n.decode(t,"der",r);if(t.isError(a)&&o)break;i.push(a)}return i},h.prototype._decodeStr=function(t,e){if("bitstr"===e){var n=t.readUInt8();return t.isError(n)?n:{unused:n,data:t.raw()}}if("bmpstr"===e){var r=t.raw();if(r.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<r.length/2;o++)i+=String.fromCharCode(r.readUInt16BE(2*o));return i}if("numstr"===e){var a=t.raw().toString("ascii");return this._isNumstr(a)?a:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){var s=t.raw().toString("ascii");return this._isPrintstr(s)?s:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},h.prototype._decodeObjid=function(t,e,n){for(var r,i=[],o=0;!t.isEmpty();){var a=t.readUInt8();o<<=7,o|=127&a,128&a||(i.push(o),o=0)}128&a&&i.push(o);var s=i[0]/40|0,l=i[0]%40;if(r=n?i:[s,l].concat(i.slice(1)),e){var h=e[r.join(" ")];void 0===h&&(h=e[r.join(".")]),void 0!==h&&(r=h)}return r},h.prototype._decodeTime=function(t,e){var n=t.raw().toString();if("gentime"===e)var r=0|n.slice(0,4),i=0|n.slice(4,6),o=0|n.slice(6,8),a=0|n.slice(8,10),s=0|n.slice(10,12),l=0|n.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");r=0|n.slice(0,2),i=0|n.slice(2,4),o=0|n.slice(4,6),a=0|n.slice(6,8),s=0|n.slice(8,10),l=0|n.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,o,a,s,l,0)},h.prototype._decodeNull=function(t){return null},h.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},h.prototype._decodeInt=function(t,e){var n=t.raw(),r=new a(n);return e&&(r=e[r.toString(10)]||r),r},h.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},6407(t,e,n){var r=e;r.der=n(8164),r.pem=n(6725)},6725(t,e,n){var r=n(7832),i=n(3273).Buffer,o=n(8164);function a(t){o.call(this,t),this.enc="pem"}r(a,o),t.exports=a,a.prototype.decode=function(t,e){for(var n=t.toString().split(/[\r\n]+/g),r=e.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,l=-1,h=0;h<n.length;h++){var u=n[h].match(a);if(null!==u&&u[2]===r){if(-1!==s){if("END"!==u[1])break;l=h;break}if("BEGIN"!==u[1])break;s=h}}if(-1===s||-1===l)throw new Error("PEM section not found for: "+r);var c=n.slice(s+1,l).join("");c.replace(/[^a-z0-9\+\/=]+/gi,"");var d=new i(c,"base64");return o.prototype.decode.call(this,d,e)}},2392(t,e,n){var r=n(7832),i=n(3273).Buffer,o=n(4389),a=o.base,s=o.constants.der;function l(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){a.Node.call(this,"der",t)}function u(t){return t<10?"0"+t:t}t.exports=l,l.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},r(h,a.Node),h.prototype._encodeComposite=function(t,e,n,r){var o,a=function(t,e,n,r){var i;if("seqof"===t?t="seq":"setof"===t&&(t="set"),s.tagByName.hasOwnProperty(t))i=s.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return r.error("Unknown tag: "+t);i=t}return i>=31?r.error("Multi-octet tag encoding unsupported"):(e||(i|=32),i|=s.tagClassByName[n||"universal"]<<6)}(t,e,n,this.reporter);if(r.length<128)return(o=new i(2))[0]=a,o[1]=r.length,this._createEncoderBuffer([o,r]);for(var l=1,h=r.length;h>=256;h>>=8)l++;(o=new i(2+l))[0]=a,o[1]=128|l,h=1+l;for(var u=r.length;u>0;h--,u>>=8)o[h]=255&u;return this._createEncoderBuffer([o,r])},h.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var n=new i(2*t.length),r=0;r<t.length;r++)n.writeUInt16BE(t.charCodeAt(r),2*r);return this._createEncoderBuffer(n)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},h.prototype._encodeObjid=function(t,e,n){if("string"==typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s\.]+/g);for(var r=0;r<t.length;r++)t[r]|=0}else if(Array.isArray(t))for(t=t.slice(),r=0;r<t.length;r++)t[r]|=0;if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!n){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}var o=0;for(r=0;r<t.length;r++){var a=t[r];for(o++;a>=128;a>>=7)o++}var s=new i(o),l=s.length-1;for(r=t.length-1;r>=0;r--)for(a=t[r],s[l--]=127&a;(a>>=7)>0;)s[l--]=128|127&a;return this._createEncoderBuffer(s)},h.prototype._encodeTime=function(t,e){var n,r=new Date(t);return"gentime"===e?n=[u(r.getFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?n=[u(r.getFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(n,"octstr")},h.prototype._encodeNull=function(){return this._createEncoderBuffer("")},h.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!i.isBuffer(t)){var n=t.toArray();!t.sign&&128&n[0]&&n.unshift(0),t=new i(n)}if(i.isBuffer(t)){var r=t.length;0===t.length&&r++;var o=new i(r);return t.copy(o),0===t.length&&(o[0]=0),this._createEncoderBuffer(o)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);r=1;for(var a=t;a>=256;a>>=8)r++;for(a=(o=new Array(r)).length-1;a>=0;a--)o[a]=255&t,t>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},h.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},h.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},h.prototype._skipDefault=function(t,e,n){var r,i=this._baseState;if(null===i.default)return!1;var o=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,e,n).join()),o.length!==i.defaultBuffer.length)return!1;for(r=0;r<o.length;r++)if(o[r]!==i.defaultBuffer[r])return!1;return!0}},2723(t,e,n){var r=e;r.der=n(2392),r.pem=n(569)},569(t,e,n){var r=n(7832),i=n(2392);function o(t){i.call(this,t),this.enc="pem"}r(o,i),t.exports=o,o.prototype.encode=function(t,e){for(var n=i.prototype.encode.call(this,t).toString("base64"),r=["-----BEGIN "+e.label+"-----"],o=0;o<n.length;o+=64)r.push(n.slice(o,o+64));return r.push("-----END "+e.label+"-----"),r.join("\n")}},7590(t,e,n){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(8982).Buffer}catch(t){}function s(t,e){var n=t.charCodeAt(e);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function l(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function h(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,n):(this._parseBase(t,e,i),"le"===n&&this._initArray(this.toArray(),e,n)))},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,a=0;if("be"===n)for(r=t.length-1;r>=e;r-=2)i=l(t,e,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r<t.length;r+=2)i=l(t,e,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u<s;u+=r)l=h(t,u,u+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var c=1;for(l=h(t,u,t.length,e),u=0;u<a;u++)c*=e;this.imuln(c),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var h=1;h<r;h++){for(var u=l>>>26,c=67108863&l,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;u+=(a=(i=0|t.words[p])*(o=0|e.words[f])+c)/67108864|0,c=67108863&a}n.words[h]=0|c,l=0|u}return 0!==l?n.words[h]=0|l:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),n=0!==o||a!==this.length-1?u[6-l.length]+l+n:l+n}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],f=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);n=(p=p.idivn(f)).isZero()?m+n:u[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===e,h=new t(o),u=this.clone();if(l){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),h[s]=a;for(;s<o;s++)h[s]=0}else{for(s=0;s<o-i;s++)h[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),h[o-s-1]=a}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 8191&e||(n+=13,e>>>=13),127&e||(n+=7,e>>>=7),15&e||(n+=4,e>>>=4),3&e||(n+=2,e>>>=2),1&e||n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)o=(e=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)o=(e=(0|n.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,n){var r,i,o,a=t.words,s=e.words,l=n.words,h=0,u=0|a[0],c=8191&u,d=u>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],y=8191&g,b=g>>>13,v=0|a[3],A=8191&v,w=v>>>13,E=0|a[4],M=8191&E,C=E>>>13,_=0|a[5],x=8191&_,B=_>>>13,k=0|a[6],S=8191&k,I=k>>>13,T=0|a[7],P=8191&T,R=T>>>13,L=0|a[8],N=8191&L,O=L>>>13,j=0|a[9],q=8191&j,D=j>>>13,U=0|s[0],z=8191&U,H=U>>>13,F=0|s[1],$=8191&F,W=F>>>13,Y=0|s[2],K=8191&Y,Z=Y>>>13,V=0|s[3],X=8191&V,J=V>>>13,G=0|s[4],Q=8191&G,tt=G>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],lt=8191&st,ht=st>>>13,ut=0|s[8],ct=8191&ut,dt=ut>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(h+(r=Math.imul(c,z))|0)+((8191&(i=(i=Math.imul(c,H))+Math.imul(d,z)|0))<<13)|0;h=((o=Math.imul(d,H))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H);var yt=(h+(r=r+Math.imul(c,$)|0)|0)+((8191&(i=(i=i+Math.imul(c,W)|0)+Math.imul(d,$)|0))<<13)|0;h=((o=o+Math.imul(d,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,W)|0;var bt=(h+(r=r+Math.imul(c,K)|0)|0)+((8191&(i=(i=i+Math.imul(c,Z)|0)+Math.imul(d,K)|0))<<13)|0;h=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,H))+Math.imul(w,z)|0,o=Math.imul(w,H),r=r+Math.imul(y,$)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,W)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Z)|0;var vt=(h+(r=r+Math.imul(c,X)|0)|0)+((8191&(i=(i=i+Math.imul(c,J)|0)+Math.imul(d,X)|0))<<13)|0;h=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(C,z)|0,o=Math.imul(C,H),r=r+Math.imul(A,$)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,W)|0,r=r+Math.imul(y,K)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,Z)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,J)|0;var At=(h+(r=r+Math.imul(c,Q)|0)|0)+((8191&(i=(i=i+Math.imul(c,tt)|0)+Math.imul(d,Q)|0))<<13)|0;h=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(B,z)|0,o=Math.imul(B,H),r=r+Math.imul(M,$)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,W)|0,r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var wt=(h+(r=r+Math.imul(c,nt)|0)|0)+((8191&(i=(i=i+Math.imul(c,rt)|0)+Math.imul(d,nt)|0))<<13)|0;h=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(S,z),i=(i=Math.imul(S,H))+Math.imul(I,z)|0,o=Math.imul(I,H),r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,W)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var Et=(h+(r=r+Math.imul(c,ot)|0)|0)+((8191&(i=(i=i+Math.imul(c,at)|0)+Math.imul(d,ot)|0))<<13)|0;h=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,H))+Math.imul(R,z)|0,o=Math.imul(R,H),r=r+Math.imul(S,$)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,W)|0,r=r+Math.imul(x,K)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(y,nt)|0,i=(i=i+Math.imul(y,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(h+(r=r+Math.imul(c,lt)|0)|0)+((8191&(i=(i=i+Math.imul(c,ht)|0)+Math.imul(d,lt)|0))<<13)|0;h=((o=o+Math.imul(d,ht)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(O,z)|0,o=Math.imul(O,H),r=r+Math.imul(P,$)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,W)|0,r=r+Math.imul(S,K)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,Z)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(w,nt)|0,o=o+Math.imul(w,rt)|0,r=r+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,lt)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(m,lt)|0,o=o+Math.imul(m,ht)|0;var Ct=(h+(r=r+Math.imul(c,ct)|0)|0)+((8191&(i=(i=i+Math.imul(c,dt)|0)+Math.imul(d,ct)|0))<<13)|0;h=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(q,z),i=(i=Math.imul(q,H))+Math.imul(D,z)|0,o=Math.imul(D,H),r=r+Math.imul(N,$)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,W)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Z)|0,r=r+Math.imul(S,X)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,J)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,r=r+Math.imul(y,lt)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(b,lt)|0,o=o+Math.imul(b,ht)|0,r=r+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,dt)|0;var _t=(h+(r=r+Math.imul(c,pt)|0)|0)+((8191&(i=(i=i+Math.imul(c,mt)|0)+Math.imul(d,pt)|0))<<13)|0;h=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(q,$),i=(i=Math.imul(q,W))+Math.imul(D,$)|0,o=Math.imul(D,W),r=r+Math.imul(N,K)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(B,nt)|0,o=o+Math.imul(B,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(A,lt)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(w,lt)|0,o=o+Math.imul(w,ht)|0,r=r+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(b,ct)|0,o=o+Math.imul(b,dt)|0;var xt=(h+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(q,K),i=(i=Math.imul(q,Z))+Math.imul(D,K)|0,o=Math.imul(D,Z),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(S,nt)|0,i=(i=i+Math.imul(S,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,r=r+Math.imul(M,lt)|0,i=(i=i+Math.imul(M,ht)|0)+Math.imul(C,lt)|0,o=o+Math.imul(C,ht)|0,r=r+Math.imul(A,ct)|0,i=(i=i+Math.imul(A,dt)|0)+Math.imul(w,ct)|0,o=o+Math.imul(w,dt)|0;var Bt=(h+(r=r+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(b,pt)|0))<<13)|0;h=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(q,X),i=(i=Math.imul(q,J))+Math.imul(D,X)|0,o=Math.imul(D,J),r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(S,ot)|0,i=(i=i+Math.imul(S,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,r=r+Math.imul(x,lt)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(B,lt)|0,o=o+Math.imul(B,ht)|0,r=r+Math.imul(M,ct)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,dt)|0;var kt=(h+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(w,pt)|0))<<13)|0;h=((o=o+Math.imul(w,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(q,Q),i=(i=Math.imul(q,tt))+Math.imul(D,Q)|0,o=Math.imul(D,tt),r=r+Math.imul(N,nt)|0,i=(i=i+Math.imul(N,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(S,lt)|0,i=(i=i+Math.imul(S,ht)|0)+Math.imul(I,lt)|0,o=o+Math.imul(I,ht)|0,r=r+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(B,ct)|0,o=o+Math.imul(B,dt)|0;var St=(h+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(C,pt)|0))<<13)|0;h=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(q,nt),i=(i=Math.imul(q,rt))+Math.imul(D,nt)|0,o=Math.imul(D,rt),r=r+Math.imul(N,ot)|0,i=(i=i+Math.imul(N,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,r=r+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(R,lt)|0,o=o+Math.imul(R,ht)|0,r=r+Math.imul(S,ct)|0,i=(i=i+Math.imul(S,dt)|0)+Math.imul(I,ct)|0,o=o+Math.imul(I,dt)|0;var It=(h+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(B,pt)|0))<<13)|0;h=((o=o+Math.imul(B,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(q,ot),i=(i=Math.imul(q,at))+Math.imul(D,ot)|0,o=Math.imul(D,at),r=r+Math.imul(N,lt)|0,i=(i=i+Math.imul(N,ht)|0)+Math.imul(O,lt)|0,o=o+Math.imul(O,ht)|0,r=r+Math.imul(P,ct)|0,i=(i=i+Math.imul(P,dt)|0)+Math.imul(R,ct)|0,o=o+Math.imul(R,dt)|0;var Tt=(h+(r=r+Math.imul(S,pt)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(I,pt)|0))<<13)|0;h=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(q,lt),i=(i=Math.imul(q,ht))+Math.imul(D,lt)|0,o=Math.imul(D,ht),r=r+Math.imul(N,ct)|0,i=(i=i+Math.imul(N,dt)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,dt)|0;var Pt=(h+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(R,pt)|0))<<13)|0;h=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(q,ct),i=(i=Math.imul(q,dt))+Math.imul(D,ct)|0,o=Math.imul(D,dt);var Rt=(h+(r=r+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var Lt=(h+(r=Math.imul(q,pt))|0)+((8191&(i=(i=Math.imul(q,mt))+Math.imul(D,pt)|0))<<13)|0;return h=((o=Math.imul(D,mt))+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=At,l[5]=wt,l[6]=Et,l[7]=Mt,l[8]=Ct,l[9]=_t,l[10]=xt,l[11]=Bt,l[12]=kt,l[13]=St,l[14]=It,l[15]=Tt,l[16]=Pt,l[17]=Rt,l[18]=Lt,0!==h&&(l[19]=h,n.length++),n};function m(t,e,n){return(new g).mulp(t,e,n)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=f),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?p(this,t,e):r<63?f(this,t,e):r<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,l=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=l;h++){var u=o-h,c=(0|t.words[u])*(0|e.words[h]),d=67108863&c;s=67108863&(d=d+s|0),i+=(a=(a=a+(c/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):m(this,t,e),n},g.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},g.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},g.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},g.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),h=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var c=l,d=h,f=0;f<a;f++){var p=n[u+f],m=r[u+f],g=n[u+f+a],y=r[u+f+a],b=c*g-d*y;y=c*y+d*g,g=b,n[u+f]=p+g,r[u+f]=m+y,n[u+f+a]=p-g,r[u+f+a]=m-y,f!==s&&(b=l*c-h*d,d=l*d+h*c,c=b)}},g.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},g.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},g.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(!(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},g.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),l=new Array(r),h=new Array(r),u=new Array(r),c=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,h,r),this.transform(a,o,s,l,r,i),this.transform(h,o,u,c,r,i);for(var f=0;f<r;f++){var p=s[f]*u[f]-l[f]*c[f];l[f]=s[f]*c[f]+l[f]*u[f],s[f]=p}return this.conjugate(s,l,r),this.transform(s,l,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this.length=0===t?1:this.length,this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,l=(0|this.words[e])-s<<n;this.words[e]=l|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,l=n;if(i-=a,i=Math.max(0,i),l){for(var h=0;h<a;h++)l.words[h]=this.words[h];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var u=0;for(h=this.length-1;h>=0&&(0!==u||h>=i);h--){var c=0|this.words[h];this.words[h]=u<<26-o|c>>>o,u=c&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n||!(this.words[n]&i))},o.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var l=(0|t.words[i])*e;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!=(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,l=r.length-i.length;if("mod"!==e){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var h=0;h<s.length;h++)s.words[h]=0}var u=r.clone()._ishlnsubmul(i,1,l);0===u.negative&&(r=u,s&&(s.words[l]=1));for(var c=l-1;c>=0;c--){var d=67108864*(0|r.words[i.length+c])+(0|r.words[i.length+c-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,c);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,c),r.isZero()||(r.negative^=1);s&&(s.words[c]=d)}return s&&s.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),h=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++h;for(var u=n.clone(),c=e.clone();!e.isZero();){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(c)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(c)),s.iushrn(1),l.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(l)):(n.isub(e),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:n.iushln(h)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),l=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var h=0,u=1;0===(e.words[0]&u)&&h<26;++h,u<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var c=0,d=1;0===(n.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(n.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new M(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(v,b),v.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&n)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(A,b),i(w,b),i(E,b),E.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new A;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return y[t]=e,e},M.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},M.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),h=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,h).cmp(l);)u.redIAdd(l);for(var c=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<p);var y=this.pow(c,new o(1).iushln(p-g-1));d=d.redMul(y),c=y.redSqr(),f=f.redMul(c),p=g}return d},M.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},M.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],a=0,s=0,l=e.bitLength()%26;for(0===l&&(l=26),r=e.length-1;r>=0;r--){for(var h=e.words[r],u=l-1;u>=0;u--){var c=h>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==c||0!==a?(a<<=1,a|=c,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}l=26}return i},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new C(t)},i(C,M),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=n.nmd(t),this)},4888(t,e){"use strict";e.byteLength=function(t){var e=s(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,o=s(t),a=o[0],l=o[1],h=new i(function(t,e,n){return 3*(e+n)/4-n}(0,a,l)),u=0,c=l>0?a-4:a;for(n=0;n<c;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],h[u++]=e>>16&255,h[u++]=e>>8&255,h[u++]=255&e;return 2===l&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,h[u++]=255&e),1===l&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,h[u++]=e>>8&255,h[u++]=255&e),h},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=16383,s=0,l=r-i;s<l;s+=a)o.push(h(t,s,s+a>l?l:s+a));return 1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function h(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(l(r));return i.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},1342(t,e,n){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(7790).Buffer}catch(t){}function s(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function l(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function h(t,e,n,i){for(var o=0,a=0,s=Math.min(t.length,n),l=e;l<s;l++){var h=t.charCodeAt(l)-48;o*=i,a=h>=49?h-49+10:h>=17?h-17+10:h,r(h>=0&&a<i,"Invalid character"),o+=a}return o}function u(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,n):(this._parseBase(t,e,i),"le"===n&&this._initArray(this.toArray(),e,n)))},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,a=0;if("be"===n)for(r=t.length-1;r>=e;r-=2)i=l(t,e,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r<t.length;r+=2)i=l(t,e,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u<s;u+=r)l=h(t,u,u+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var c=1;for(l=h(t,u,t.length,e),u=0;u<a;u++)c*=e;this.imuln(c),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this._strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){u(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch(t){o.prototype.inspect=c}else o.prototype.inspect=c;function c(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var h=1;h<r;h++){for(var u=l>>>26,c=67108863&l,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;u+=(a=(i=0|t.words[p])*(o=0|e.words[f])+c)/67108864|0,c=67108863&a}n.words[h]=0|c,l=0|u}return 0!==l?n.words[h]=0|l:n.length--,n._strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),n=0!==o||a!==this.length-1?d[6-l.length]+l+n:l+n}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=f[t],u=p[t];n="";var c=this.clone();for(c.negative=0;!c.isZero();){var m=c.modrn(u).toString(t);n=(c=c.idivn(u)).isZero()?m+n:d[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;t[n++]=255&a,n<t.length&&(t[n++]=a>>8&255),n<t.length&&(t[n++]=a>>16&255),6===o?(n<t.length&&(t[n++]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n<t.length)for(t[n++]=r;n<t.length;)t[n++]=0},o.prototype._toArrayLikeBE=function(t,e){for(var n=t.length-1,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;t[n--]=255&a,n>=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 8191&e||(n+=13,e>>>=13),127&e||(n+=7,e>>>=7),15&e||(n+=4,e>>>=4),3&e||(n+=2,e>>>=2),1&e||n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)o=(e=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)o=(e=(0|n.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,n){var r,i,o,a=t.words,s=e.words,l=n.words,h=0,u=0|a[0],c=8191&u,d=u>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],y=8191&g,b=g>>>13,v=0|a[3],A=8191&v,w=v>>>13,E=0|a[4],M=8191&E,C=E>>>13,_=0|a[5],x=8191&_,B=_>>>13,k=0|a[6],S=8191&k,I=k>>>13,T=0|a[7],P=8191&T,R=T>>>13,L=0|a[8],N=8191&L,O=L>>>13,j=0|a[9],q=8191&j,D=j>>>13,U=0|s[0],z=8191&U,H=U>>>13,F=0|s[1],$=8191&F,W=F>>>13,Y=0|s[2],K=8191&Y,Z=Y>>>13,V=0|s[3],X=8191&V,J=V>>>13,G=0|s[4],Q=8191&G,tt=G>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],lt=8191&st,ht=st>>>13,ut=0|s[8],ct=8191&ut,dt=ut>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(h+(r=Math.imul(c,z))|0)+((8191&(i=(i=Math.imul(c,H))+Math.imul(d,z)|0))<<13)|0;h=((o=Math.imul(d,H))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H);var yt=(h+(r=r+Math.imul(c,$)|0)|0)+((8191&(i=(i=i+Math.imul(c,W)|0)+Math.imul(d,$)|0))<<13)|0;h=((o=o+Math.imul(d,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,W)|0;var bt=(h+(r=r+Math.imul(c,K)|0)|0)+((8191&(i=(i=i+Math.imul(c,Z)|0)+Math.imul(d,K)|0))<<13)|0;h=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,H))+Math.imul(w,z)|0,o=Math.imul(w,H),r=r+Math.imul(y,$)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,W)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Z)|0;var vt=(h+(r=r+Math.imul(c,X)|0)|0)+((8191&(i=(i=i+Math.imul(c,J)|0)+Math.imul(d,X)|0))<<13)|0;h=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(C,z)|0,o=Math.imul(C,H),r=r+Math.imul(A,$)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,W)|0,r=r+Math.imul(y,K)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,Z)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,J)|0;var At=(h+(r=r+Math.imul(c,Q)|0)|0)+((8191&(i=(i=i+Math.imul(c,tt)|0)+Math.imul(d,Q)|0))<<13)|0;h=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(B,z)|0,o=Math.imul(B,H),r=r+Math.imul(M,$)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,W)|0,r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var wt=(h+(r=r+Math.imul(c,nt)|0)|0)+((8191&(i=(i=i+Math.imul(c,rt)|0)+Math.imul(d,nt)|0))<<13)|0;h=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(S,z),i=(i=Math.imul(S,H))+Math.imul(I,z)|0,o=Math.imul(I,H),r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,W)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var Et=(h+(r=r+Math.imul(c,ot)|0)|0)+((8191&(i=(i=i+Math.imul(c,at)|0)+Math.imul(d,ot)|0))<<13)|0;h=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,H))+Math.imul(R,z)|0,o=Math.imul(R,H),r=r+Math.imul(S,$)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,W)|0,r=r+Math.imul(x,K)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(y,nt)|0,i=(i=i+Math.imul(y,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(h+(r=r+Math.imul(c,lt)|0)|0)+((8191&(i=(i=i+Math.imul(c,ht)|0)+Math.imul(d,lt)|0))<<13)|0;h=((o=o+Math.imul(d,ht)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(O,z)|0,o=Math.imul(O,H),r=r+Math.imul(P,$)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,W)|0,r=r+Math.imul(S,K)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,Z)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(w,nt)|0,o=o+Math.imul(w,rt)|0,r=r+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,lt)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(m,lt)|0,o=o+Math.imul(m,ht)|0;var Ct=(h+(r=r+Math.imul(c,ct)|0)|0)+((8191&(i=(i=i+Math.imul(c,dt)|0)+Math.imul(d,ct)|0))<<13)|0;h=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(q,z),i=(i=Math.imul(q,H))+Math.imul(D,z)|0,o=Math.imul(D,H),r=r+Math.imul(N,$)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,W)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Z)|0,r=r+Math.imul(S,X)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,J)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,r=r+Math.imul(y,lt)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(b,lt)|0,o=o+Math.imul(b,ht)|0,r=r+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,dt)|0;var _t=(h+(r=r+Math.imul(c,pt)|0)|0)+((8191&(i=(i=i+Math.imul(c,mt)|0)+Math.imul(d,pt)|0))<<13)|0;h=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(q,$),i=(i=Math.imul(q,W))+Math.imul(D,$)|0,o=Math.imul(D,W),r=r+Math.imul(N,K)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(B,nt)|0,o=o+Math.imul(B,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(A,lt)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(w,lt)|0,o=o+Math.imul(w,ht)|0,r=r+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(b,ct)|0,o=o+Math.imul(b,dt)|0;var xt=(h+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(q,K),i=(i=Math.imul(q,Z))+Math.imul(D,K)|0,o=Math.imul(D,Z),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(S,nt)|0,i=(i=i+Math.imul(S,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,r=r+Math.imul(M,lt)|0,i=(i=i+Math.imul(M,ht)|0)+Math.imul(C,lt)|0,o=o+Math.imul(C,ht)|0,r=r+Math.imul(A,ct)|0,i=(i=i+Math.imul(A,dt)|0)+Math.imul(w,ct)|0,o=o+Math.imul(w,dt)|0;var Bt=(h+(r=r+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(b,pt)|0))<<13)|0;h=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(q,X),i=(i=Math.imul(q,J))+Math.imul(D,X)|0,o=Math.imul(D,J),r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(S,ot)|0,i=(i=i+Math.imul(S,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,r=r+Math.imul(x,lt)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(B,lt)|0,o=o+Math.imul(B,ht)|0,r=r+Math.imul(M,ct)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,dt)|0;var kt=(h+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(w,pt)|0))<<13)|0;h=((o=o+Math.imul(w,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(q,Q),i=(i=Math.imul(q,tt))+Math.imul(D,Q)|0,o=Math.imul(D,tt),r=r+Math.imul(N,nt)|0,i=(i=i+Math.imul(N,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(S,lt)|0,i=(i=i+Math.imul(S,ht)|0)+Math.imul(I,lt)|0,o=o+Math.imul(I,ht)|0,r=r+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(B,ct)|0,o=o+Math.imul(B,dt)|0;var St=(h+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(C,pt)|0))<<13)|0;h=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(q,nt),i=(i=Math.imul(q,rt))+Math.imul(D,nt)|0,o=Math.imul(D,rt),r=r+Math.imul(N,ot)|0,i=(i=i+Math.imul(N,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,r=r+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(R,lt)|0,o=o+Math.imul(R,ht)|0,r=r+Math.imul(S,ct)|0,i=(i=i+Math.imul(S,dt)|0)+Math.imul(I,ct)|0,o=o+Math.imul(I,dt)|0;var It=(h+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(B,pt)|0))<<13)|0;h=((o=o+Math.imul(B,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(q,ot),i=(i=Math.imul(q,at))+Math.imul(D,ot)|0,o=Math.imul(D,at),r=r+Math.imul(N,lt)|0,i=(i=i+Math.imul(N,ht)|0)+Math.imul(O,lt)|0,o=o+Math.imul(O,ht)|0,r=r+Math.imul(P,ct)|0,i=(i=i+Math.imul(P,dt)|0)+Math.imul(R,ct)|0,o=o+Math.imul(R,dt)|0;var Tt=(h+(r=r+Math.imul(S,pt)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(I,pt)|0))<<13)|0;h=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(q,lt),i=(i=Math.imul(q,ht))+Math.imul(D,lt)|0,o=Math.imul(D,ht),r=r+Math.imul(N,ct)|0,i=(i=i+Math.imul(N,dt)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,dt)|0;var Pt=(h+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(R,pt)|0))<<13)|0;h=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(q,ct),i=(i=Math.imul(q,dt))+Math.imul(D,ct)|0,o=Math.imul(D,dt);var Rt=(h+(r=r+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var Lt=(h+(r=Math.imul(q,pt))|0)+((8191&(i=(i=Math.imul(q,mt))+Math.imul(D,pt)|0))<<13)|0;return h=((o=Math.imul(D,mt))+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=At,l[5]=wt,l[6]=Et,l[7]=Mt,l[8]=Ct,l[9]=_t,l[10]=xt,l[11]=Bt,l[12]=kt,l[13]=St,l[14]=It,l[15]=Tt,l[16]=Pt,l[17]=Rt,l[18]=Lt,0!==h&&(l[19]=h,n.length++),n};function y(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,l=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=l;h++){var u=o-h,c=(0|t.words[u])*(0|e.words[h]),d=67108863&c;s=67108863&(d=d+s|0),i+=(a=(a=a+(c/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function b(t,e,n){return y(t,e,n)}function v(t,e){this.x=t,this.y=e}Math.imul||(g=m),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):n<63?m(this,t,e):n<1024?y(this,t,e):b(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},v.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},v.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},v.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),h=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var c=l,d=h,f=0;f<a;f++){var p=n[u+f],m=r[u+f],g=n[u+f+a],y=r[u+f+a],b=c*g-d*y;y=c*y+d*g,g=b,n[u+f]=p+g,r[u+f]=m+y,n[u+f+a]=p-g,r[u+f+a]=m-y,f!==s&&(b=l*c-h*d,d=l*d+h*c,c=b)}},v.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},v.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},v.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},v.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(!(-8192&o))},v.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},v.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),l=new Array(r),h=new Array(r),u=new Array(r),c=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,h,r),this.transform(a,o,s,l,r,i),this.transform(h,o,u,c,r,i);for(var f=0;f<r;f++){var p=s[f]*u[f]-l[f]*c[f];l[f]=s[f]*c[f]+l[f]*u[f],s[f]=p}return this.conjugate(s,l,r),this.transform(s,l,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),b(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"==typeof t),r(t<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,a=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=a>>>26,this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,this.length++),this.length=0===t?1:this.length,e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=t.words[r]>>>i&1}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,l=(0|this.words[e])-s<<n;this.words[e]=l|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,l=n;if(i-=a,i=Math.max(0,i),l){for(var h=0;h<a;h++)l.words[h]=this.words[h];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var u=0;for(h=this.length-1;h>=0&&(0!==u||h>=i);h--){var c=0|this.words[h];this.words[h]=u<<26-o|c>>>o,u=c&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n||!(this.words[n]&i))},o.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var l=(0|t.words[i])*e;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!=(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,l=r.length-i.length;if("mod"!==e){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var h=0;h<s.length;h++)s.words[h]=0}var u=r.clone()._ishlnsubmul(i,1,l);0===u.negative&&(r=u,s&&(s.words[l]=1));for(var c=l-1;c>=0;c--){var d=67108864*(0|r.words[i.length+c])+(0|r.words[i.length+c-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,c);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,c),r.isZero()||(r.negative^=1);s&&(s.words[c]=d)}return s&&s._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),h=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++h;for(var u=n.clone(),c=e.clone();!e.isZero();){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(c)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(c)),s.iushrn(1),l.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(l)):(n.isub(e),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:n.iushln(h)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),l=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var h=0,u=1;0===(e.words[0]&u)&&h<26;++h,u<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var c=0,d=1;0===(n.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(n.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var A={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function B(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},i(E,w),E.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&n)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},E.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(M,w),i(C,w),i(_,w),_.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(A[t])return A[t];var e;if("k256"===t)e=new E;else if("p224"===t)e=new M;else if("p192"===t)e=new C;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return A[t]=e,e},x.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),h=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,h).cmp(l);)u.redIAdd(l);for(var c=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<p);var y=this.pow(c,new o(1).iushln(p-g-1));d=d.redMul(y),c=y.redSqr(),f=f.redMul(c),p=g}return d},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],a=0,s=0,l=e.bitLength()%26;for(0===l&&(l=26),r=e.length-1;r>=0;r--){for(var h=e.words[r],u=l-1;u>=0;u--){var c=h>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==c||0!==a?(a<<=1,a|=c,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}l=26}return i},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new B(t)},i(B,x),B.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},B.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},B.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},B.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},B.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=n.nmd(t),this)},5751(t,e,n){var r;function i(t){this.rand=t}if(t.exports=function(t){return r||(r=new i(null)),r.generate(t)},t.exports.Rand=i,i.prototype.generate=function(t){return this._rand(t)},i.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),n=0;n<e.length;n++)e[n]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=n(3776);if("function"!=typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(t){return o.randomBytes(t)}}catch(t){}},6232(t,e,n){var r=n(2091).Buffer;function i(t){r.isBuffer(t)||(t=r.from(t));for(var e=t.length/4|0,n=new Array(e),i=0;i<e;i++)n[i]=t.readUInt32BE(4*i);return n}function o(t){for(;0<t.length;t++)t[0]=0}function a(t,e,n,r,i){for(var o,a,s,l,h=n[0],u=n[1],c=n[2],d=n[3],f=t[0]^e[0],p=t[1]^e[1],m=t[2]^e[2],g=t[3]^e[3],y=4,b=1;b<i;b++)o=h[f>>>24]^u[p>>>16&255]^c[m>>>8&255]^d[255&g]^e[y++],a=h[p>>>24]^u[m>>>16&255]^c[g>>>8&255]^d[255&f]^e[y++],s=h[m>>>24]^u[g>>>16&255]^c[f>>>8&255]^d[255&p]^e[y++],l=h[g>>>24]^u[f>>>16&255]^c[p>>>8&255]^d[255&m]^e[y++],f=o,p=a,m=s,g=l;return o=(r[f>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&g])^e[y++],a=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[g>>>8&255]<<8|r[255&f])^e[y++],s=(r[m>>>24]<<24|r[g>>>16&255]<<16|r[f>>>8&255]<<8|r[255&p])^e[y++],l=(r[g>>>24]<<24|r[f>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^e[y++],[o>>>=0,a>>>=0,s>>>=0,l>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,l=0;l<256;++l){var h=s^s<<1^s<<2^s<<3^s<<4;h=h>>>8^255&h^99,n[a]=h,r[h]=a;var u=t[a],c=t[u],d=t[c],f=257*t[h]^16843008*h;i[0][a]=f<<24|f>>>8,i[1][a]=f<<16|f>>>16,i[2][a]=f<<8|f>>>24,i[3][a]=f,f=16843009*d^65537*c^257*u^16843008*a,o[0][h]=f<<24|f>>>8,o[1][h]=f<<16|f>>>16,o[2][h]=f<<8|f>>>24,o[3][h]=f,0===a?a=s=1:(a=u^t[t[t[d^u]]],s^=t[t[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();function h(t){this._key=i(t),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var t=this._key,e=t.length,n=e+6,r=4*(n+1),i=[],o=0;o<e;o++)i[o]=t[o];for(o=e;o<r;o++){var a=i[o-1];o%e===0?(a=a<<8|a>>>24,a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a],a^=s[o/e|0]<<24):e>6&&o%e===4&&(a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a]),i[o]=i[o-e]^a}for(var h=[],u=0;u<r;u++){var c=r-u,d=i[c-(u%4?0:4)];h[u]=u<4||c<=4?d:l.INV_SUB_MIX[0][l.SBOX[d>>>24]]^l.INV_SUB_MIX[1][l.SBOX[d>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[d>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&d]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=h},h.prototype.encryptBlockRaw=function(t){return a(t=i(t),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},h.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),n=r.allocUnsafe(16);return n.writeUInt32BE(e[0],0),n.writeUInt32BE(e[1],4),n.writeUInt32BE(e[2],8),n.writeUInt32BE(e[3],12),n},h.prototype.decryptBlock=function(t){var e=(t=i(t))[1];t[1]=t[3],t[3]=e;var n=a(t,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),o=r.allocUnsafe(16);return o.writeUInt32BE(n[0],0),o.writeUInt32BE(n[3],4),o.writeUInt32BE(n[2],8),o.writeUInt32BE(n[1],12),o},h.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=h},9934(t,e,n){var r=n(6232),i=n(2091).Buffer,o=n(6118),a=n(7832),s=n(7306),l=n(577),h=n(272);function u(t,e,n,a){o.call(this);var l=i.alloc(4,0);this._cipher=new r.AES(e);var u=this._cipher.encryptBlock(l);this._ghash=new s(u),n=function(t,e,n){if(12===e.length)return t._finID=i.concat([e,i.from([0,0,0,1])]),i.concat([e,i.from([0,0,0,2])]);var r=new s(n),o=e.length,a=o%16;r.update(e),a&&(a=16-a,r.update(i.alloc(a,0))),r.update(i.alloc(8,0));var l=8*o,u=i.alloc(8);u.writeUIntBE(l,0,8),r.update(u),t._finID=r.state;var c=i.from(t._finID);return h(c),c}(this,n,u),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}a(u,o),u.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=i.alloc(e,0),this._ghash.update(e))}this._called=!0;var n=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(n),this._len+=t.length,n},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var n=0;t.length!==e.length&&n++;for(var r=Math.min(t.length,e.length),i=0;i<r;++i)n+=t[i]^e[i];return n}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},u.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=u},6071(t,e,n){var r=n(6109),i=n(2133),o=n(3219);e.createCipher=e.Cipher=r.createCipher,e.createCipheriv=e.Cipheriv=r.createCipheriv,e.createDecipher=e.Decipher=i.createDecipher,e.createDecipheriv=e.Decipheriv=i.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(o)}},2133(t,e,n){var r=n(9934),i=n(2091).Buffer,o=n(4592),a=n(8684),s=n(6118),l=n(6232),h=n(9336);function u(t,e,n){s.call(this),this._cache=new c,this._last=void 0,this._cipher=new l.AES(e),this._prev=i.from(n),this._mode=t,this._autopadding=!0}function c(){this.cache=i.allocUnsafe(0)}function d(t,e,n){var s=o[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=i.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof e&&(e=i.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===s.type?new a(s.module,e,n,!0):"auth"===s.type?new r(s.module,e,n,!0):new u(s.module,e,n)}n(7832)(u,s),u.prototype._update=function(t){var e,n;this._cache.add(t);for(var r=[];e=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,e),r.push(n);return i.concat(r)},u.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var n=-1;++n<e;)if(t[n+(16-e)]!==e)throw new Error("unable to decrypt data");if(16!==e)return t.slice(0,16-e)}(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},c.prototype.add=function(t){this.cache=i.concat([this.cache,t])},c.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},c.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var n=o[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=h(e,!1,n.key,n.iv);return d(t,r.key,r.iv)},e.createDecipheriv=d},6109(t,e,n){var r=n(4592),i=n(9934),o=n(2091).Buffer,a=n(8684),s=n(6118),l=n(6232),h=n(9336);function u(t,e,n){s.call(this),this._cache=new d,this._cipher=new l.AES(e),this._prev=o.from(n),this._mode=t,this._autopadding=!0}n(7832)(u,s),u.prototype._update=function(t){var e,n;this._cache.add(t);for(var r=[];e=this._cache.get();)n=this._mode.encrypt(this,e),r.push(n);return o.concat(r)};var c=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function f(t,e,n){var s=r[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=o.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof n&&(n=o.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new a(s.module,e,n):"auth"===s.type?new i(s.module,e,n):new u(s.module,e,n)}u.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(c))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},d.prototype.add=function(t){this.cache=o.concat([this.cache,t])},d.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},d.prototype.flush=function(){for(var t=16-this.cache.length,e=o.allocUnsafe(t),n=-1;++n<t;)e.writeUInt8(t,n);return o.concat([this.cache,e])},e.createCipheriv=f,e.createCipher=function(t,e){var n=r[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=h(e,!1,n.key,n.iv);return f(t,i.key,i.iv)}},7306(t,e,n){var r=n(2091).Buffer,i=r.alloc(16,0);function o(t){var e=r.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function a(t){this.h=t,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}a.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},a.prototype._multiply=function(){for(var t,e,n,r=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],i=[0,0,0,0],a=-1;++a<128;){for(!!(this.state[~~(a/8)]&1<<7-a%8)&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),n=!!(1&r[3]),e=3;e>0;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=o(i)},a.prototype.update=function(t){var e;for(this.cache=r.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(o([0,t,0,e])),this.state},t.exports=a},272(t){t.exports=function(t){for(var e,n=t.length;n--;){if(255!==(e=t.readUInt8(n))){e++,t.writeUInt8(e,n);break}t.writeUInt8(0,n)}}},474(t,e,n){var r=n(577);e.encrypt=function(t,e){var n=r(e,t._prev);return t._prev=t._cipher.encryptBlock(n),t._prev},e.decrypt=function(t,e){var n=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return r(i,n)}},205(t,e,n){var r=n(2091).Buffer,i=n(577);function o(t,e,n){var o=e.length,a=i(e,t._cache);return t._cache=t._cache.slice(o),t._prev=r.concat([t._prev,n?e:a]),a}e.encrypt=function(t,e,n){for(var i,a=r.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=r.allocUnsafe(0)),!(t._cache.length<=e.length)){a=r.concat([a,o(t,e,n)]);break}i=t._cache.length,a=r.concat([a,o(t,e.slice(0,i),n)]),e=e.slice(i)}return a}},594(t,e,n){var r=n(2091).Buffer;function i(t,e,n){for(var r,i,a=-1,s=0;++a<8;)r=e&1<<7-a?128:0,s+=(128&(i=t._cipher.encryptBlock(t._prev)[0]^r))>>a%8,t._prev=o(t._prev,n?r:i);return s}function o(t,e){var n=t.length,i=-1,o=r.allocUnsafe(t.length);for(t=r.concat([t,r.from([e])]);++i<n;)o[i]=t[i]<<1|t[i+1]>>7;return o}e.encrypt=function(t,e,n){for(var o=e.length,a=r.allocUnsafe(o),s=-1;++s<o;)a[s]=i(t,e[s],n);return a}},5017(t,e,n){var r=n(2091).Buffer;function i(t,e,n){var i=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=r.concat([t._prev.slice(1),r.from([n?e:i])]),i}e.encrypt=function(t,e,n){for(var o=e.length,a=r.allocUnsafe(o),s=-1;++s<o;)a[s]=i(t,e[s],n);return a}},5775(t,e,n){var r=n(577),i=n(2091).Buffer,o=n(272);function a(t){var e=t._cipher.encryptBlockRaw(t._prev);return o(t._prev),e}e.encrypt=function(t,e){var n=Math.ceil(e.length/16),o=t._cache.length;t._cache=i.concat([t._cache,i.allocUnsafe(16*n)]);for(var s=0;s<n;s++){var l=a(t),h=o+16*s;t._cache.writeUInt32BE(l[0],h+0),t._cache.writeUInt32BE(l[1],h+4),t._cache.writeUInt32BE(l[2],h+8),t._cache.writeUInt32BE(l[3],h+12)}var u=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),r(e,u)}},8010(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},4592(t,e,n){var r={ECB:n(8010),CBC:n(474),CFB:n(205),CFB8:n(5017),CFB1:n(594),OFB:n(7937),CTR:n(5775),GCM:n(5775)},i=n(3219);for(var o in i)i[o].module=r[i[o].mode];t.exports=i},7937(t,e,n){var r=n(3273).Buffer,i=n(577);function o(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(t,e){for(;t._cache.length<e.length;)t._cache=r.concat([t._cache,o(t)]);var n=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),i(e,n)}},8684(t,e,n){var r=n(6232),i=n(2091).Buffer,o=n(6118);function a(t,e,n,a){o.call(this),this._cipher=new r.AES(e),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=t}n(7832)(a,o),a.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},t.exports=a},2155(t,e,n){var r=n(9364),i=n(6071),o=n(4592),a=n(7644),s=n(9336);function l(t,e,n){if(t=t.toLowerCase(),o[t])return i.createCipheriv(t,e,n);if(a[t])return new r({key:e,iv:n,mode:t});throw new TypeError("invalid suite type")}function h(t,e,n){if(t=t.toLowerCase(),o[t])return i.createDecipheriv(t,e,n);if(a[t])return new r({key:e,iv:n,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var n,r;if(t=t.toLowerCase(),o[t])n=o[t].key,r=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");n=8*a[t].key,r=a[t].iv}var i=s(e,!1,n,r);return l(t,i.key,i.iv)},e.createCipheriv=e.Cipheriv=l,e.createDecipher=e.Decipher=function(t,e){var n,r;if(t=t.toLowerCase(),o[t])n=o[t].key,r=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");n=8*a[t].key,r=a[t].iv}var i=s(e,!1,n,r);return h(t,i.key,i.iv)},e.createDecipheriv=e.Decipheriv=h,e.listCiphers=e.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},9364(t,e,n){var r=n(6118),i=n(9362),o=n(7832),a=n(2091).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function l(t){r.call(this);var e,n=t.mode.toLowerCase(),i=s[n];e=t.decrypt?"decrypt":"encrypt";var o=t.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==n&&"des-ede-cbc"!==n||(o=a.concat([o,o.slice(0,8)]));var l=t.iv;a.isBuffer(l)||(l=a.from(l)),this._des=i.create({key:o,iv:l,type:e})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=l,o(l,r),l.prototype._update=function(t){return a.from(this._des.update(t))},l.prototype._final=function(){return a.from(this._des.final())}},7644(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},5258(t,e,n){"use strict";var r=n(1342),i=n(2719),o=n(2091).Buffer;function a(t){var e,n=t.modulus.byteLength();do{e=new r(i(n))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function s(t,e){var n=function(t){var e=a(t);return{blinder:e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(e),i=e.modulus.byteLength(),s=new r(t).mul(n.blinder).umod(e.modulus),l=s.toRed(r.mont(e.prime1)),h=s.toRed(r.mont(e.prime2)),u=e.coefficient,c=e.prime1,d=e.prime2,f=l.redPow(e.exponent1).fromRed(),p=h.redPow(e.exponent2).fromRed(),m=f.isub(p).imul(u).umod(c).imul(d);return p.iadd(m).imul(n.unblinder).umod(e.modulus).toArrayLike(o,"be",i)}s.getr=a,t.exports=s},3729(t,e,n){"use strict";t.exports=n(2951)},7958(t,e,n){"use strict";var r=n(2091).Buffer,i=n(7874),o=n(4823),a=n(7832),s=n(5837),l=n(3101),h=n(2951);function u(t){o.Writable.call(this);var e=h[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function c(t){o.Writable.call(this);var e=h[t];if(!e)throw new Error("Unknown message digest");this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function d(t){return new u(t)}function f(t){return new c(t)}Object.keys(h).forEach(function(t){h[t].id=r.from(h[t].id,"hex"),h[t.toLowerCase()]=h[t]}),a(u,o.Writable),u.prototype._write=function(t,e,n){this._hash.update(t),n()},u.prototype.update=function(t,e){return this._hash.update("string"==typeof t?r.from(t,e):t),this},u.prototype.sign=function(t,e){this.end();var n=this._hash.digest(),r=s(n,t,this._hashType,this._signType,this._tag);return e?r.toString(e):r},a(c,o.Writable),c.prototype._write=function(t,e,n){this._hash.update(t),n()},c.prototype.update=function(t,e){return this._hash.update("string"==typeof t?r.from(t,e):t),this},c.prototype.verify=function(t,e,n){var i="string"==typeof e?r.from(e,n):e;this.end();var o=this._hash.digest();return l(i,o,t,this._signType,this._tag)},t.exports={Sign:d,Verify:f,createSign:d,createVerify:f}},5837(t,e,n){"use strict";var r=n(2091).Buffer,i=n(4521),o=n(5258),a=n(2259).ec,s=n(1342),l=n(8364),h=n(4589);function u(t,e,n,o){if((t=r.from(t.toArray())).length<e.byteLength()){var a=r.alloc(e.byteLength()-t.length);t=r.concat([a,t])}var s=n.length,l=function(t,e){t=(t=c(t,e)).mod(e);var n=r.from(t.toArray());if(n.length<e.byteLength()){var i=r.alloc(e.byteLength()-n.length);n=r.concat([i,n])}return n}(n,e),h=r.alloc(s);h.fill(1);var u=r.alloc(s);return u=i(o,u).update(h).update(r.from([0])).update(t).update(l).digest(),h=i(o,u).update(h).digest(),{k:u=i(o,u).update(h).update(r.from([1])).update(t).update(l).digest(),v:h=i(o,u).update(h).digest()}}function c(t,e){var n=new s(t),r=(t.length<<3)-e.bitLength();return r>0&&n.ishrn(r),n}function d(t,e,n){var o,a;do{for(o=r.alloc(0);8*o.length<t.bitLength();)e.v=i(n,e.k).update(e.v).digest(),o=r.concat([o,e.v]);a=c(o,t),e.k=i(n,e.k).update(e.v).update(r.from([0])).digest(),e.v=i(n,e.k).update(e.v).digest()}while(-1!==a.cmp(t));return a}function f(t,e,n,r){return t.toRed(s.mont(n)).redPow(e).fromRed().mod(r)}t.exports=function(t,e,n,i,p){var m=l(e);if(m.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(t,e){var n=h[e.curve.join(".")];if(!n)throw new Error("unknown curve "+e.curve.join("."));var i=new a(n).keyFromPrivate(e.privateKey).sign(t);return r.from(i.toDER())}(t,m)}if("dsa"===m.type){if("dsa"!==i)throw new Error("wrong private key type");return function(t,e,n){for(var i,o=e.params.priv_key,a=e.params.p,l=e.params.q,h=e.params.g,p=new s(0),m=c(t,l).mod(l),g=!1,y=u(o,l,t,n);!1===g;)p=f(h,i=d(l,y,n),a,l),0===(g=i.invm(l).imul(m.add(o.mul(p))).mod(l)).cmpn(0)&&(g=!1,p=new s(0));return function(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t)),128&e[0]&&(e=[0].concat(e));var n=[48,t.length+e.length+4,2,t.length];return n=n.concat(t,[2,e.length],e),r.from(n)}(p,g)}(t,m,n)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");if(void 0!==e.padding&&1!==e.padding)throw new Error("illegal or unsupported padding mode");t=r.concat([p,t]);for(var g=m.modulus.byteLength(),y=[0,1];t.length+y.length+1<g;)y.push(255);y.push(0);for(var b=-1;++b<t.length;)y.push(t[b]);return o(y,m)},t.exports.getKey=u,t.exports.makeKey=d},3101(t,e,n){"use strict";var r=n(2091).Buffer,i=n(1342),o=n(2259).ec,a=n(8364),s=n(4589);function l(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=0)throw new Error("invalid sig")}t.exports=function(t,e,n,h,u){var c=a(n);if("ec"===c.type){if("ecdsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong public key type");return function(t,e,n){var r=s[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var i=new o(r),a=n.data.subjectPrivateKey.data;return i.verify(e,t,a)}(t,e,c)}if("dsa"===c.type){if("dsa"!==h)throw new Error("wrong public key type");return function(t,e,n){var r=n.data.p,o=n.data.q,s=n.data.g,h=n.data.pub_key,u=a.signature.decode(t,"der"),c=u.s,d=u.r;l(c,o),l(d,o);var f=i.mont(r),p=c.invm(o);return 0===s.toRed(f).redPow(new i(e).mul(p).mod(o)).fromRed().mul(h.toRed(f).redPow(d.mul(p).mod(o)).fromRed()).mod(r).mod(o).cmp(d)}(t,e,c)}if("rsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong public key type");e=r.concat([u,e]);for(var d=c.modulus.byteLength(),f=[1],p=0;e.length+f.length+2<d;)f.push(255),p+=1;f.push(0);for(var m=-1;++m<e.length;)f.push(e[m]);f=r.from(f);var g=i.mont(c.modulus);t=(t=new i(t).toRed(g)).redPow(new i(c.publicExponent)),t=r.from(t.fromRed().toArray());var y=p<8?1:0;for(d=Math.min(t.length,f.length),t.length!==f.length&&(y=1),m=-1;++m<d;)y|=t[m]^f[m];return 0===y}},8286(t,e,n){"use strict";var r=n(7591),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=c;var o=Object.create(n(2384));o.inherits=n(7832);var a=n(3836),s=n(4940);o.inherits(c,a);for(var l=i(s.prototype),h=0;h<l.length;h++){var u=l[h];c.prototype[u]||(c.prototype[u]=s.prototype[u])}function c(t){if(!(this instanceof c))return new c(t);a.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),c.prototype._destroy=function(t,e){this.push(null),this.end(),r.nextTick(e,t)}},2248(t,e,n){"use strict";t.exports=o;var r=n(7002),i=Object.create(n(2384));function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}i.inherits=n(7832),i.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},3836(t,e,n){"use strict";var r=n(9244),i=n(7591);t.exports=v;var o,a=n(6308);v.ReadableState=b,n(6737).EventEmitter;var s=function(t,e){return t.listeners(e).length},l=n(8769),h=n(5266).Buffer,u=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},c=Object.create(n(2384));c.inherits=n(7832);var d=n(2668),f=void 0;f=d&&d.debuglog?d.debuglog("stream"):function(){};var p,m=n(6142),g=n(5312);c.inherits(v,l);var y=["error","close","destroy","pause","resume"];function b(t,e){t=t||{};var r=e instanceof(o=o||n(8286));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=n(701).I),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function v(t){if(o=o||n(8286),!(this instanceof v))return new v(t);this._readableState=new b(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),l.call(this)}function A(t,e,n,r,i){var o,a=t._readableState;return null===e?(a.reading=!1,function(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,C(t)}}(t,a)):(i||(o=function(t,e){var n,r;return r=e,h.isBuffer(r)||r instanceof u||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===h.prototype||(e=function(t){return h.from(t)}(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):w(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?w(t,a,e,!1):x(t,a)):w(t,a,e,!1))):r||(a.reading=!1)),function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function w(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&C(t)),x(t,e)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),v.prototype.destroy=g.destroy,v.prototype._undestroy=g.undestroy,v.prototype._destroy=function(t,e){this.push(null),e(t)},v.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=h.from(t,e),e=""),n=!0),A(this,t,e,!1,n)},v.prototype.unshift=function(t){return A(this,t,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return p||(p=n(701).I),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};var E=8388608;function M(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=E?t=E:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function C(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(_,t):_(t))}function _(t){f("emit readable"),t.emit("readable"),I(t)}function x(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(B,t,e))}function B(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(f("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function k(t){f("readable nexttick read 0"),t.read(0)}function S(t,e){e.reading||(f("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),I(t),e.flowing&&!e.reading&&t.read(0)}function I(t){var e=t._readableState;for(f("flow",e.flowing);e.flowing&&null!==t.read(););}function T(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;return t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?function(t,e){var n=e.head,r=1,i=n.data;for(t-=i.length;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=h.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0===(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}(t,e),r}(t,e.buffer,e.decoder),n);var n}function P(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(R,e,t))}function R(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function L(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}v.prototype.read=function(t){f("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?P(this):C(this),null;if(0===(t=M(t,e))&&e.ended)return 0===e.length&&P(this),null;var r,i=e.needReadable;return f("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&f("length less than watermark",i=!0),e.ended||e.reading?f("reading or ended",i=!1):i&&(f("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=M(n,e))),null===(r=t>0?T(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&P(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,e);var l=e&&!1===e.end||t===r.stdout||t===r.stderr?b:h;function h(){f("onend"),t.end()}o.endEmitted?i.nextTick(l):n.once("end",l),t.on("unpipe",function e(r,i){f("onunpipe"),r===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,f("cleanup"),t.removeListener("close",g),t.removeListener("finish",y),t.removeListener("drain",u),t.removeListener("error",m),t.removeListener("unpipe",e),n.removeListener("end",h),n.removeListener("end",b),n.removeListener("data",p),c=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||u())});var u=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,I(t))}}(n);t.on("drain",u);var c=!1,d=!1;function p(e){f("ondata"),d=!1,!1!==t.write(e)||d||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==L(o.pipes,t))&&!c&&(f("false write response, pause",o.awaitDrain),o.awaitDrain++,d=!0),n.pause())}function m(e){f("onerror",e),b(),t.removeListener("error",m),0===s(t,"error")&&t.emit("error",e)}function g(){t.removeListener("finish",y),b()}function y(){f("onfinish"),t.removeListener("close",g),b()}function b(){f("unpipe"),n.unpipe(t)}return n.on("data",p),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",m),t.once("close",g),t.once("finish",y),t.emit("pipe",n),o.flowing||(f("pipe resume"),n.resume()),t},v.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=L(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},v.prototype.on=function(t,e){var n=l.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&C(this):i.nextTick(k,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var t=this._readableState;return t.flowing||(f("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(S,t,e))}(this,t)),this},v.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},v.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",function(){if(f("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(i){f("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause()))}),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<y.length;o++)t.on(y[o],this.emit.bind(this,y[o]));return this._read=function(e){f("wrapped _read",e),r&&(r=!1,t.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=T},7002(t,e,n){"use strict";t.exports=a;var r=n(8286),i=Object.create(n(2384));function o(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(t){if(!(this instanceof a))return new a(t);r.call(this,t),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",s)}function s(){var t=this;"function"==typeof this._flush?this._flush(function(e,n){l(t,e,n)}):l(this,null,null)}function l(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}i.inherits=n(7832),i.inherits(a,r),a.prototype.push=function(t,e){return this._transformState.needTransform=!1,r.prototype.push.call(this,t,e)},a.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},a.prototype._destroy=function(t,e){var n=this;r.prototype._destroy.call(this,t,function(t){e(t),n.emit("close")})}},4940(t,e,n){"use strict";var r=n(9244),i=n(7591);function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e){var n=t.entry;for(t.entry=null;n;){var r=n.callback;e.pendingcb--,r(void 0),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=y;var a,s=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?setImmediate:i.nextTick;y.WritableState=g;var l=Object.create(n(2384));l.inherits=n(7832);var h,u={deprecate:n(9521)},c=n(8769),d=n(5266).Buffer,f=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},p=n(5312);function m(){}function g(t,e){a=a||n(8286),t=t||{};var r=e instanceof a;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var l=t.highWaterMark,h=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=l||0===l?l:r&&(h||0===h)?h:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===t.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,o=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,o){--e.pendingcb,n?(i.nextTick(o,r),i.nextTick(M,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(o(r),t._writableState.errorEmitted=!0,t.emit("error",r),M(t,e))}(t,n,r,e,o);else{var a=w(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||A(t,n),r?s(v,t,n,a,o):v(t,n,a,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function y(t){if(a=a||n(8286),!(h.call(y,this)||this instanceof a))return new y(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),c.call(this)}function b(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function v(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),M(t,e)}function A(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),a=e.corkedRequestsFree;a.entry=n;for(var s=0,l=!0;n;)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,b(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;n;){var h=n.chunk,u=n.encoding,c=n.callback;if(b(t,e,!1,e.objectMode?1:h.length,h,u,c),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function w(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function E(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),M(t,e)})}function M(t,e){var n=w(e);return n&&(function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,i.nextTick(E,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}l.inherits(y,c),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(t){return!!h.call(this,t)||this===y&&t&&t._writableState instanceof g}})):h=function(t){return t instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(t,e,n){var r,o=this._writableState,a=!1,s=!o.objectMode&&(r=t,d.isBuffer(r)||r instanceof f);return s&&!d.isBuffer(t)&&(t=function(t){return d.from(t)}(t)),"function"==typeof e&&(n=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof n&&(n=m),o.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),i.nextTick(e,n)}(this,n):(s||function(t,e,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),i.nextTick(r,a),o=!1),o}(this,o,t,n))&&(o.pendingcb++,a=function(t,e,n,r,i,o){if(!n){var a=function(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=d.from(e,n)),e}(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var h=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},h?h.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else b(t,e,!1,s,r,i,o);return l}(this,o,s,t,e,n)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||A(this,t))},y.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||function(t,e,n){e.ending=!0,M(t,e),n&&(e.finished?i.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=p.destroy,y.prototype._undestroy=p.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}},6142(t,e,n){"use strict";var r=n(5266).Buffer,i=n(1638);function o(t,e,n){t.copy(e,n)}t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);for(var e=r.allocUnsafe(t>>>0),n=this.head,i=0;n;)o(n.data,e,i),i+=n.data.length,n=n.next;return e},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},5312(t,e,n){"use strict";var r=n(7591);function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,t)):r.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(i,n,t)):r.nextTick(i,n,t):e&&e(t)}),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)}}},8769(t,e,n){t.exports=n(6737).EventEmitter},5266(t,e,n){var r=n(3273),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),o(i,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},4823(t,e,n){(e=t.exports=n(3836)).Stream=e,e.Readable=e,e.Writable=n(4940),e.Duplex=n(8286),e.Transform=n(7002),e.PassThrough=n(2248)},701(t,e,n){"use strict";var r=n(8755).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.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(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=h,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=u,this.end=c,e=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function h(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function u(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.I=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},o.prototype.text=function(t,e){var n=function(t,e,n){var r=e.length-1;if(r<n)return 0;var i=a(e[r]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--r<n||-2===i?0:(i=a(e[r]))>=0?(i>0&&(t.lastNeed=i-2),i):--r<n||-2===i?0:(i=a(e[r]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},8755(t,e,n){var r=n(3273),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),o(i,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},577(t,e,n){var r=n(3273).Buffer;t.exports=function(t,e){for(var n=Math.min(t.length,e.length),i=new r(n),o=0;o<n;++o)i[o]=t[o]^e[o];return i}},3273(t,e,n){"use strict";const r=n(4888),i=n(4917),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=l,e.SlowBuffer=function(t){return+t!=t&&(t=0),l.alloc(+t)},e.INSPECT_MAX_BYTES=50;const a=2147483647;function s(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,l.prototype),e}function l(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return c(t)}return h(t,e,n)}function h(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|m(t,e);let r=s(n);const i=r.write(t,e);return i!==n&&(r=r.slice(0,i)),r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(V(t,Uint8Array)){const e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return d(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(V(t,ArrayBuffer)||t&&V(t.buffer,ArrayBuffer))return f(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(V(t,SharedArrayBuffer)||t&&V(t.buffer,SharedArrayBuffer)))return f(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return l.from(r,e,n);const i=function(t){if(l.isBuffer(t)){const e=0|p(t.length),n=s(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||X(t.length)?s(0):d(t):"Buffer"===t.type&&Array.isArray(t.data)?d(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return l.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function c(t){return u(t),s(t<0?0:0|p(t))}function d(t){const e=t.length<0?0:0|p(t.length),n=s(e);for(let r=0;r<e;r+=1)n[r]=255&t[r];return n}function f(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,l.prototype),r}function p(t){if(t>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function m(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||V(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return K(t).length;default:if(i)return r?-1:Y(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,n);case"utf8":case"utf-8":return x(this,e,n);case"ascii":return k(this,e,n);case"latin1":case"binary":return S(this,e,n);case"base64":return _(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function y(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,i){let o,a=1,s=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function h(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){let r=-1;for(o=n;o<s;o++)if(h(t,o)===h(e,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===l)return r*a}else-1!==r&&(o-=o-r),r=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;r<l;r++)if(h(t,o+r)!==h(e,r)){n=!1;break}if(n)return o}return-1}function A(t,e,n,r){n=Number(n)||0;const i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=e.length;let a;for(r>o/2&&(r=o/2),a=0;a<r;++a){const r=parseInt(e.substr(2*a,2),16);if(X(r))return a;t[n+a]=r}return a}function w(t,e,n,r){return Z(Y(e,t.length-n),t,n,r)}function E(t,e,n,r){return Z(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function M(t,e,n,r){return Z(K(e),t,n,r)}function C(t,e,n,r){return Z(function(t,e){let n,r,i;const o=[];for(let a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function _(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function x(t,e,n){n=Math.min(t.length,n);const r=[];let i=e;for(;i<n;){const e=t[i];let o=null,a=e>239?4:e>223?3:e>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:e<128&&(o=e);break;case 2:n=t[i+1],128==(192&n)&&(l=(31&e)<<6|63&n,l>127&&(o=l));break;case 3:n=t[i+1],r=t[i+2],128==(192&n)&&128==(192&r)&&(l=(15&e)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=t[i+1],r=t[i+2],s=t[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(l=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(t){const e=t.length;if(e<=B)return String.fromCharCode.apply(String,t);let n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=B));return n}(r)}e.kMaxLength=a,l.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),l.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(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(t,e,n){return h(t,e,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(t,e,n){return function(t,e,n){return u(t),t<=0?s(t):void 0!==e?"string"==typeof n?s(t).fill(e,n):s(t).fill(e):s(t)}(t,e,n)},l.allocUnsafe=function(t){return c(t)},l.allocUnsafeSlow=function(t){return c(t)},l.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==l.prototype},l.compare=function(t,e){if(V(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),V(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);let n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const r=l.allocUnsafe(e);let i=0;for(n=0;n<t.length;++n){let e=t[n];if(V(e,Uint8Array))i+e.length>r.length?(l.isBuffer(e)||(e=l.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else{if(!l.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,i)}i+=e.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)y(this,e,e+1);return this},l.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},l.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},l.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?x(this,0,t):g.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){let t="";const n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(t,e,n,r,i){if(V(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0);const s=Math.min(o,a),h=this.slice(r,i),u=t.slice(e,n);for(let t=0;t<s;++t)if(h[t]!==u[t]){o=h[t],a=u[t];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},l.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return A(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":case"latin1":case"binary":return E(this,t,e,n);case"base64":return M(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const B=4096;function k(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function S(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function I(t,e,n){const r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=e;r<n;++r)i+=J[t[r]];return i}function T(t,e,n){const r=t.slice(e,n);let i="";for(let t=0;t<r.length-1;t+=2)i+=String.fromCharCode(r[t]+256*r[t+1]);return i}function P(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function L(t,e,n,r,i){H(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,n}function N(t,e,n,r,i){H(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=a,a>>=8,t[n+2]=a,a>>=8,t[n+1]=a,a>>=8,t[n]=a,n+8}function O(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(t,e,n,r,o){return e=+e,n>>>=0,o||O(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function q(t,e,n,r,o){return e=+e,n>>>=0,o||O(t,0,n,8),i.write(t,e,n,r,52,8),n+8}l.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const r=this.subarray(t,e);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||P(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||P(t,e,this.length);let r=this[t+--e],i=1;for(;e>0&&(i*=256);)r+=this[t+--e]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(t,e){return t>>>=0,e||P(t,1,this.length),this[t]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(t,e){return t>>>=0,e||P(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(t,e){return t>>>=0,e||P(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(t,e){return t>>>=0,e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(t,e){return t>>>=0,e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readBigUInt64LE=G(function(t){F(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||$(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),l.prototype.readBigUInt64BE=G(function(t){F(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||$(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),l.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||P(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||P(t,e,this.length);let r=e,i=1,o=this[t+--r];for(;r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return t>>>=0,e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){t>>>=0,e||P(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){t>>>=0,e||P(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return t>>>=0,e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return t>>>=0,e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readBigInt64LE=G(function(t){F(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||$(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)}),l.prototype.readBigInt64BE=G(function(t){F(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||$(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)}),l.prototype.readFloatLE=function(t,e){return t>>>=0,e||P(t,4,this.length),i.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return t>>>=0,e||P(t,4,this.length),i.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return t>>>=0,e||P(t,8,this.length),i.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return t>>>=0,e||P(t,8,this.length),i.read(this,t,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,255,0),this[e]=255&t,e+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeBigUInt64LE=G(function(t,e=0){return L(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=G(function(t,e=0){return N(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=0,o=1,a=0;for(this[e]=255&t;++i<n&&(o*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/o|0)-a&255;return e+n},l.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/o|0)-a&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeBigInt64LE=G(function(t,e=0){return L(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=G(function(t,e=0){return N(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(t,e,n){return j(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return j(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return q(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return q(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,r){if(!l.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);const i=r-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),i},l.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){const e=t.charCodeAt(0);("utf8"===r&&e<128||"latin1"===r)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{const o=l.isBuffer(t)?t:l.from(t,r),a=o.length;if(0===a)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<n-e;++i)this[i+e]=o[i%a]}return this};const D={};function U(t,e,n){D[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function z(t){let e="",n=t.length;const r="-"===t[0]?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function H(t,e,n,r,i,o){if(t>n||t<e){const r="bigint"==typeof e?"n":"";let i;throw i=o>3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new D.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,n){F(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||$(e,t.length-(n+1))}(r,i,o)}function F(t,e){if("number"!=typeof t)throw new D.ERR_INVALID_ARG_TYPE(e,"number",t)}function $(t,e,n){if(Math.floor(t)!==t)throw F(t,n),new D.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}U("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),U("ERR_OUT_OF_RANGE",function(t,e,n){let r=`The value of "${t}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=z(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),r+=` It must be ${e}. Received ${i}`,r},RangeError);const W=/[^+/0-9A-Za-z-_]/g;function Y(t,e){let n;e=e||1/0;const r=t.length;let i=null;const o=[];for(let a=0;a<r;++a){if(n=t.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function K(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Z(t,e,n,r){let i;for(i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function V(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function X(t){return t!=t}const J=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function G(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},2010(t,e,n){"use strict";var r=n(7721),i=n(2428),o=n(9534),a=n(7029);t.exports=a||r.call(o,i)},4411(t,e,n){"use strict";var r=n(7721),i=n(2428),o=n(2010);t.exports=function(){return o(r,i,arguments)}},2428(t){"use strict";t.exports=Function.prototype.apply},9534(t){"use strict";t.exports=Function.prototype.call},7472(t,e,n){"use strict";var r=n(7721),i=n(4097),o=n(9534),a=n(2010);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new i("a function is required");return a(r,o,t)}},7029(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},4489(t,e,n){"use strict";var r=n(15),i=n(7737),o=n(7472),a=n(4411);t.exports=function(t){var e=o(arguments),n=1+t.length-(arguments.length-1);return r(e,n>0?n:0,!0)},i?i(t.exports,"apply",{value:a}):t.exports.apply=a},3030(t,e,n){"use strict";var r=n(1051),i=n(7472),o=i([r("%String.prototype.indexOf%")]);t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&o(t,".prototype.")>-1?i([n]):n}},6118(t,e,n){"use strict";var r=n(2091).Buffer,i=n(4688).Transform,o=n(6807).I,a=n(7832),s=n(3259);function l(t){i.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}a(l,i),l.prototype.update=function(t,e,n){var r=s(t,e),i=this._update(r);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},l.prototype.setAutoPadding=function(){},l.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},l.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},l.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},l.prototype._transform=function(t,e,n){var r;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){r=t}finally{n(r)}},l.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},l.prototype._finalOrDigest=function(t){var e=this.__final()||r.alloc(0);return t&&(e=this._toString(e,t,!0)),e},l.prototype._toString=function(t,e,n){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can’t switch encodings");var r=this._decoder.write(t);return n&&(r+=this._decoder.end()),r},t.exports=l},2384(t,e,n){function r(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===r(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===r(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===r(t)},e.isError=function(t){return"[object Error]"===r(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(3273).Buffer.isBuffer},6794(t,e,n){var r=n(3273).Buffer,i=n(2259),o=n(1943);t.exports=function(t){return new s(t)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(t){this.curveType=a[t],this.curveType||(this.curveType={name:t}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function l(t,e,n){Array.isArray(t)||(t=t.toArray());var i=new r(t);if(n&&i.length<n){var o=new r(n-i.length);o.fill(0),i=r.concat([o,i])}return e?i.toString(e):i}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,s.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},s.prototype.computeSecret=function(t,e,n){return e=e||"utf8",r.isBuffer(t)||(t=new r(t,e)),l(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},s.prototype.getPublicKey=function(t,e){var n=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(n[n.length-1]%2?n[0]=7:n[0]=6),l(n,t)},s.prototype.getPrivateKey=function(t){return l(this.keys.getPrivate(),t)},s.prototype.setPublicKey=function(t,e){return e=e||"utf8",r.isBuffer(t)||(t=new r(t,e)),this.keys._importPublic(t),this},s.prototype.setPrivateKey=function(t,e){e=e||"utf8",r.isBuffer(t)||(t=new r(t,e));var n=new o(t);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}},1943(t,e,n){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(7965).Buffer}catch(t){}function s(t,e){var n=t.charCodeAt(e);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function l(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function h(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,n):(this._parseBase(t,e,i),"le"===n&&this._initArray(this.toArray(),e,n)))},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,a=0;if("be"===n)for(r=t.length-1;r>=e;r-=2)i=l(t,e,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r<t.length;r+=2)i=l(t,e,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u<s;u+=r)l=h(t,u,u+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var c=1;for(l=h(t,u,t.length,e),u=0;u<a;u++)c*=e;this.imuln(c),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var h=1;h<r;h++){for(var u=l>>>26,c=67108863&l,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;u+=(a=(i=0|t.words[p])*(o=0|e.words[f])+c)/67108864|0,c=67108863&a}n.words[h]=0|c,l=0|u}return 0!==l?n.words[h]=0|l:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),n=0!==o||a!==this.length-1?u[6-l.length]+l+n:l+n}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],f=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);n=(p=p.idivn(f)).isZero()?m+n:u[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===e,h=new t(o),u=this.clone();if(l){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),h[s]=a;for(;s<o;s++)h[s]=0}else{for(s=0;s<o-i;s++)h[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),h[o-s-1]=a}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 8191&e||(n+=13,e>>>=13),127&e||(n+=7,e>>>=7),15&e||(n+=4,e>>>=4),3&e||(n+=2,e>>>=2),1&e||n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)o=(e=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)o=(e=(0|n.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,n){var r,i,o,a=t.words,s=e.words,l=n.words,h=0,u=0|a[0],c=8191&u,d=u>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],y=8191&g,b=g>>>13,v=0|a[3],A=8191&v,w=v>>>13,E=0|a[4],M=8191&E,C=E>>>13,_=0|a[5],x=8191&_,B=_>>>13,k=0|a[6],S=8191&k,I=k>>>13,T=0|a[7],P=8191&T,R=T>>>13,L=0|a[8],N=8191&L,O=L>>>13,j=0|a[9],q=8191&j,D=j>>>13,U=0|s[0],z=8191&U,H=U>>>13,F=0|s[1],$=8191&F,W=F>>>13,Y=0|s[2],K=8191&Y,Z=Y>>>13,V=0|s[3],X=8191&V,J=V>>>13,G=0|s[4],Q=8191&G,tt=G>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],lt=8191&st,ht=st>>>13,ut=0|s[8],ct=8191&ut,dt=ut>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(h+(r=Math.imul(c,z))|0)+((8191&(i=(i=Math.imul(c,H))+Math.imul(d,z)|0))<<13)|0;h=((o=Math.imul(d,H))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H);var yt=(h+(r=r+Math.imul(c,$)|0)|0)+((8191&(i=(i=i+Math.imul(c,W)|0)+Math.imul(d,$)|0))<<13)|0;h=((o=o+Math.imul(d,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,W)|0;var bt=(h+(r=r+Math.imul(c,K)|0)|0)+((8191&(i=(i=i+Math.imul(c,Z)|0)+Math.imul(d,K)|0))<<13)|0;h=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,H))+Math.imul(w,z)|0,o=Math.imul(w,H),r=r+Math.imul(y,$)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,W)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Z)|0;var vt=(h+(r=r+Math.imul(c,X)|0)|0)+((8191&(i=(i=i+Math.imul(c,J)|0)+Math.imul(d,X)|0))<<13)|0;h=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(C,z)|0,o=Math.imul(C,H),r=r+Math.imul(A,$)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,W)|0,r=r+Math.imul(y,K)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,Z)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,J)|0;var At=(h+(r=r+Math.imul(c,Q)|0)|0)+((8191&(i=(i=i+Math.imul(c,tt)|0)+Math.imul(d,Q)|0))<<13)|0;h=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(B,z)|0,o=Math.imul(B,H),r=r+Math.imul(M,$)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,W)|0,r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var wt=(h+(r=r+Math.imul(c,nt)|0)|0)+((8191&(i=(i=i+Math.imul(c,rt)|0)+Math.imul(d,nt)|0))<<13)|0;h=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(S,z),i=(i=Math.imul(S,H))+Math.imul(I,z)|0,o=Math.imul(I,H),r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,W)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var Et=(h+(r=r+Math.imul(c,ot)|0)|0)+((8191&(i=(i=i+Math.imul(c,at)|0)+Math.imul(d,ot)|0))<<13)|0;h=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,H))+Math.imul(R,z)|0,o=Math.imul(R,H),r=r+Math.imul(S,$)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,W)|0,r=r+Math.imul(x,K)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(y,nt)|0,i=(i=i+Math.imul(y,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(h+(r=r+Math.imul(c,lt)|0)|0)+((8191&(i=(i=i+Math.imul(c,ht)|0)+Math.imul(d,lt)|0))<<13)|0;h=((o=o+Math.imul(d,ht)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(O,z)|0,o=Math.imul(O,H),r=r+Math.imul(P,$)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,W)|0,r=r+Math.imul(S,K)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,Z)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(w,nt)|0,o=o+Math.imul(w,rt)|0,r=r+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,lt)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(m,lt)|0,o=o+Math.imul(m,ht)|0;var Ct=(h+(r=r+Math.imul(c,ct)|0)|0)+((8191&(i=(i=i+Math.imul(c,dt)|0)+Math.imul(d,ct)|0))<<13)|0;h=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(q,z),i=(i=Math.imul(q,H))+Math.imul(D,z)|0,o=Math.imul(D,H),r=r+Math.imul(N,$)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,W)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Z)|0,r=r+Math.imul(S,X)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,J)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,r=r+Math.imul(y,lt)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(b,lt)|0,o=o+Math.imul(b,ht)|0,r=r+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,dt)|0;var _t=(h+(r=r+Math.imul(c,pt)|0)|0)+((8191&(i=(i=i+Math.imul(c,mt)|0)+Math.imul(d,pt)|0))<<13)|0;h=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(q,$),i=(i=Math.imul(q,W))+Math.imul(D,$)|0,o=Math.imul(D,W),r=r+Math.imul(N,K)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(B,nt)|0,o=o+Math.imul(B,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(A,lt)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(w,lt)|0,o=o+Math.imul(w,ht)|0,r=r+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(b,ct)|0,o=o+Math.imul(b,dt)|0;var xt=(h+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(q,K),i=(i=Math.imul(q,Z))+Math.imul(D,K)|0,o=Math.imul(D,Z),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(S,nt)|0,i=(i=i+Math.imul(S,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,r=r+Math.imul(M,lt)|0,i=(i=i+Math.imul(M,ht)|0)+Math.imul(C,lt)|0,o=o+Math.imul(C,ht)|0,r=r+Math.imul(A,ct)|0,i=(i=i+Math.imul(A,dt)|0)+Math.imul(w,ct)|0,o=o+Math.imul(w,dt)|0;var Bt=(h+(r=r+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(b,pt)|0))<<13)|0;h=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(q,X),i=(i=Math.imul(q,J))+Math.imul(D,X)|0,o=Math.imul(D,J),r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(S,ot)|0,i=(i=i+Math.imul(S,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,r=r+Math.imul(x,lt)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(B,lt)|0,o=o+Math.imul(B,ht)|0,r=r+Math.imul(M,ct)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,dt)|0;var kt=(h+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(w,pt)|0))<<13)|0;h=((o=o+Math.imul(w,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(q,Q),i=(i=Math.imul(q,tt))+Math.imul(D,Q)|0,o=Math.imul(D,tt),r=r+Math.imul(N,nt)|0,i=(i=i+Math.imul(N,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(S,lt)|0,i=(i=i+Math.imul(S,ht)|0)+Math.imul(I,lt)|0,o=o+Math.imul(I,ht)|0,r=r+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(B,ct)|0,o=o+Math.imul(B,dt)|0;var St=(h+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(C,pt)|0))<<13)|0;h=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(q,nt),i=(i=Math.imul(q,rt))+Math.imul(D,nt)|0,o=Math.imul(D,rt),r=r+Math.imul(N,ot)|0,i=(i=i+Math.imul(N,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,r=r+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(R,lt)|0,o=o+Math.imul(R,ht)|0,r=r+Math.imul(S,ct)|0,i=(i=i+Math.imul(S,dt)|0)+Math.imul(I,ct)|0,o=o+Math.imul(I,dt)|0;var It=(h+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(B,pt)|0))<<13)|0;h=((o=o+Math.imul(B,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(q,ot),i=(i=Math.imul(q,at))+Math.imul(D,ot)|0,o=Math.imul(D,at),r=r+Math.imul(N,lt)|0,i=(i=i+Math.imul(N,ht)|0)+Math.imul(O,lt)|0,o=o+Math.imul(O,ht)|0,r=r+Math.imul(P,ct)|0,i=(i=i+Math.imul(P,dt)|0)+Math.imul(R,ct)|0,o=o+Math.imul(R,dt)|0;var Tt=(h+(r=r+Math.imul(S,pt)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(I,pt)|0))<<13)|0;h=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(q,lt),i=(i=Math.imul(q,ht))+Math.imul(D,lt)|0,o=Math.imul(D,ht),r=r+Math.imul(N,ct)|0,i=(i=i+Math.imul(N,dt)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,dt)|0;var Pt=(h+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(R,pt)|0))<<13)|0;h=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(q,ct),i=(i=Math.imul(q,dt))+Math.imul(D,ct)|0,o=Math.imul(D,dt);var Rt=(h+(r=r+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var Lt=(h+(r=Math.imul(q,pt))|0)+((8191&(i=(i=Math.imul(q,mt))+Math.imul(D,pt)|0))<<13)|0;return h=((o=Math.imul(D,mt))+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=At,l[5]=wt,l[6]=Et,l[7]=Mt,l[8]=Ct,l[9]=_t,l[10]=xt,l[11]=Bt,l[12]=kt,l[13]=St,l[14]=It,l[15]=Tt,l[16]=Pt,l[17]=Rt,l[18]=Lt,0!==h&&(l[19]=h,n.length++),n};function m(t,e,n){return(new g).mulp(t,e,n)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=f),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?p(this,t,e):r<63?f(this,t,e):r<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,l=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=l;h++){var u=o-h,c=(0|t.words[u])*(0|e.words[h]),d=67108863&c;s=67108863&(d=d+s|0),i+=(a=(a=a+(c/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):m(this,t,e),n},g.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},g.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},g.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},g.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),h=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var c=l,d=h,f=0;f<a;f++){var p=n[u+f],m=r[u+f],g=n[u+f+a],y=r[u+f+a],b=c*g-d*y;y=c*y+d*g,g=b,n[u+f]=p+g,r[u+f]=m+y,n[u+f+a]=p-g,r[u+f+a]=m-y,f!==s&&(b=l*c-h*d,d=l*d+h*c,c=b)}},g.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},g.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},g.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(!(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},g.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),l=new Array(r),h=new Array(r),u=new Array(r),c=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,h,r),this.transform(a,o,s,l,r,i),this.transform(h,o,u,c,r,i);for(var f=0;f<r;f++){var p=s[f]*u[f]-l[f]*c[f];l[f]=s[f]*c[f]+l[f]*u[f],s[f]=p}return this.conjugate(s,l,r),this.transform(s,l,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this.length=0===t?1:this.length,this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,l=(0|this.words[e])-s<<n;this.words[e]=l|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,l=n;if(i-=a,i=Math.max(0,i),l){for(var h=0;h<a;h++)l.words[h]=this.words[h];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var u=0;for(h=this.length-1;h>=0&&(0!==u||h>=i);h--){var c=0|this.words[h];this.words[h]=u<<26-o|c>>>o,u=c&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n||!(this.words[n]&i))},o.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var l=(0|t.words[i])*e;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!=(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,l=r.length-i.length;if("mod"!==e){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var h=0;h<s.length;h++)s.words[h]=0}var u=r.clone()._ishlnsubmul(i,1,l);0===u.negative&&(r=u,s&&(s.words[l]=1));for(var c=l-1;c>=0;c--){var d=67108864*(0|r.words[i.length+c])+(0|r.words[i.length+c-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,c);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,c),r.isZero()||(r.negative^=1);s&&(s.words[c]=d)}return s&&s.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),h=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++h;for(var u=n.clone(),c=e.clone();!e.isZero();){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(c)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(c)),s.iushrn(1),l.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(l)):(n.isub(e),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:n.iushln(h)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),l=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var h=0,u=1;0===(e.words[0]&u)&&h<26;++h,u<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var c=0,d=1;0===(n.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(n.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new M(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(v,b),v.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&n)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(A,b),i(w,b),i(E,b),E.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new A;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return y[t]=e,e},M.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},M.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),h=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,h).cmp(l);)u.redIAdd(l);for(var c=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<p);var y=this.pow(c,new o(1).iushln(p-g-1));d=d.redMul(y),c=y.redSqr(),f=f.redMul(c),p=g}return d},M.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},M.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],a=0,s=0,l=e.bitLength()%26;for(0===l&&(l=26),r=e.length-1;r>=0;r--){for(var h=e.words[r],u=l-1;u>=0;u--){var c=h>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==c||0!==a?(a<<=1,a|=c,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}l=26}return i},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new C(t)},i(C,M),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=n.nmd(t),this)},7874(t,e,n){"use strict";var r=n(7832),i=n(4330),o=n(8097),a=n(4180),s=n(6118);function l(t){s.call(this,"digest"),this._hash=t}r(l,s),l.prototype._update=function(t){this._hash.update(t)},l.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new i:"rmd160"===t||"ripemd160"===t?new o:new l(a(t))}},4158(t,e,n){var r=n(4330);t.exports=function(t){return(new r).update(t).digest()}},4521(t,e,n){"use strict";var r=n(7832),i=n(5554),o=n(6118),a=n(2091).Buffer,s=n(4158),l=n(8097),h=n(4180),u=a.alloc(128);function c(t,e){o.call(this,"digest"),"string"==typeof e&&(e=a.from(e));var n="sha512"===t||"sha384"===t?128:64;this._alg=t,this._key=e,e.length>n?e=("rmd160"===t?new l:h(t)).update(e).digest():e.length<n&&(e=a.concat([e,u],n));for(var r=this._ipad=a.allocUnsafe(n),i=this._opad=a.allocUnsafe(n),s=0;s<n;s++)r[s]=54^e[s],i[s]=92^e[s];this._hash="rmd160"===t?new l:h(t),this._hash.update(r)}r(c,o),c.prototype._update=function(t){this._hash.update(t)},c.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new l:h(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new c("rmd160",e):"md5"===t?new i(s,e):new c(t,e)}},5554(t,e,n){"use strict";var r=n(7832),i=n(2091).Buffer,o=n(6118),a=i.alloc(128),s=64;function l(t,e){o.call(this,"digest"),"string"==typeof e&&(e=i.from(e)),this._alg=t,this._key=e,e.length>s?e=t(e):e.length<s&&(e=i.concat([e,a],s));for(var n=this._ipad=i.allocUnsafe(s),r=this._opad=i.allocUnsafe(s),l=0;l<s;l++)n[l]=54^e[l],r[l]=92^e[l];this._hash=[n]}r(l,o),l.prototype._update=function(t){this._hash.push(t)},l.prototype._final=function(){var t=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,t]))},t.exports=l},1027(t,e,n){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=n(2719),e.createHash=e.Hash=n(7874),e.createHmac=e.Hmac=n(4521);var r=n(3729),i=Object.keys(r),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);e.getHashes=function(){return o};var a=n(7370);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync;var s=n(2155);e.Cipher=s.Cipher,e.createCipher=s.createCipher,e.Cipheriv=s.Cipheriv,e.createCipheriv=s.createCipheriv,e.Decipher=s.Decipher,e.createDecipher=s.createDecipher,e.Decipheriv=s.Decipheriv,e.createDecipheriv=s.createDecipheriv,e.getCiphers=s.getCiphers,e.listCiphers=s.listCiphers;var l=n(1470);e.DiffieHellmanGroup=l.DiffieHellmanGroup,e.createDiffieHellmanGroup=l.createDiffieHellmanGroup,e.getDiffieHellman=l.getDiffieHellman,e.createDiffieHellman=l.createDiffieHellman,e.DiffieHellman=l.DiffieHellman;var h=n(7958);e.createSign=h.createSign,e.Sign=h.Sign,e.createVerify=h.createVerify,e.Verify=h.Verify,e.createECDH=n(6794);var u=n(8114);e.publicEncrypt=u.publicEncrypt,e.privateEncrypt=u.privateEncrypt,e.publicDecrypt=u.publicDecrypt,e.privateDecrypt=u.privateDecrypt;var c=n(7933);e.randomFill=c.randomFill,e.randomFillSync=c.randomFillSync,e.createCredentials=function(){throw new Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/browserify/crypto-browserify")},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},4845(t,e,n){var r;t.exports=(r=n(6939),n(7328),n(6770),n(6952),n(3215),function(){var t=r,e=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],l=[],h=[],u=[],c=[],d=[],f=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,r=0;for(e=0;e<256;e++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,i[n]=p,o[p]=n;var m=t[n],g=t[m],y=t[g],b=257*t[p]^16843008*p;a[n]=b<<24|b>>>8,s[n]=b<<16|b>>>16,l[n]=b<<8|b>>>24,h[n]=b,b=16843009*y^65537*g^257*m^16843008*n,u[p]=b<<24|b>>>8,c[p]=b<<16|b>>>16,d[p]=b<<8|b>>>24,f[p]=b,n?(n=m^t[t[t[y^m]]],r^=t[t[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],a=0;a<r;a++)a<n?o[a]=e[a]:(h=o[a-1],a%n?n>6&&a%n==4&&(h=i[h>>>24]<<24|i[h>>>16&255]<<16|i[h>>>8&255]<<8|i[255&h]):(h=i[(h=h<<8|h>>>24)>>>24]<<24|i[h>>>16&255]<<16|i[h>>>8&255]<<8|i[255&h],h^=p[a/n|0]<<24),o[a]=o[a-n]^h);for(var s=this._invKeySchedule=[],l=0;l<r;l++){if(a=r-l,l%4)var h=o[a];else h=o[a-4];s[l]=l<4||a<=4?h:u[i[h>>>24]]^c[i[h>>>16&255]]^d[i[h>>>8&255]]^f[i[255&h]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,s,l,h,i)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,u,c,d,f,o),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,o,a,s){for(var l=this._nRounds,h=t[e]^n[0],u=t[e+1]^n[1],c=t[e+2]^n[2],d=t[e+3]^n[3],f=4,p=1;p<l;p++){var m=r[h>>>24]^i[u>>>16&255]^o[c>>>8&255]^a[255&d]^n[f++],g=r[u>>>24]^i[c>>>16&255]^o[d>>>8&255]^a[255&h]^n[f++],y=r[c>>>24]^i[d>>>16&255]^o[h>>>8&255]^a[255&u]^n[f++],b=r[d>>>24]^i[h>>>16&255]^o[u>>>8&255]^a[255&c]^n[f++];h=m,u=g,c=y,d=b}m=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&d])^n[f++],g=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[f++],y=(s[c>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^n[f++],b=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^n[f++],t[e]=m,t[e+1]=g,t[e+2]=y,t[e+3]=b},keySize:8});t.AES=e._createHelper(m)}(),r.AES)},8574(t,e,n){var r;t.exports=(r=n(6939),n(7328),n(6770),n(6952),n(3215),function(){var t=r,e=t.lib.BlockCipher,n=t.algo;const i=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function l(t,e){let n=e>>24&255,r=e>>16&255,i=e>>8&255,o=255&e,a=t.sbox[0][n]+t.sbox[1][r];return a^=t.sbox[2][i],a+=t.sbox[3][o],a}function h(t,e,n){let r,o=e,a=n;for(let e=0;e<i;++e)o^=t.pbox[e],a=l(t,o)^a,r=o,o=a,a=r;return r=o,o=a,a=r,a^=t.pbox[i],o^=t.pbox[17],{left:o,right:a}}var u=n.Blowfish=e.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4;!function(t,e,n){for(let e=0;e<4;e++){t.sbox[e]=[];for(let n=0;n<256;n++)t.sbox[e][n]=a[e][n]}let r=0;for(let i=0;i<18;i++)t.pbox[i]=o[i]^e[r],r++,r>=n&&(r=0);let i=0,s=0,l=0;for(let e=0;e<18;e+=2)l=h(t,i,s),i=l.left,s=l.right,t.pbox[e]=i,t.pbox[e+1]=s;for(let e=0;e<4;e++)for(let n=0;n<256;n+=2)l=h(t,i,s),i=l.left,s=l.right,t.sbox[e][n]=i,t.sbox[e][n+1]=s}(s,e,n)}},encryptBlock:function(t,e){var n=h(s,t[e],t[e+1]);t[e]=n.left,t[e+1]=n.right},decryptBlock:function(t,e){var n=function(t,e,n){let r,i=e,o=n;for(let e=17;e>1;--e)i^=t.pbox[e],o=l(t,i)^o,r=i,i=o,o=r;return r=i,i=o,o=r,o^=t.pbox[1],i^=t.pbox[0],{left:i,right:o}}(s,t[e],t[e+1]);t[e]=n.left,t[e+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=e._createHelper(u)}(),r.Blowfish)},3215(t,e,n){var r,i,o,a,s,l,h,u,c,d,f,p,m,g,y,b,v,A,w;t.exports=(r=n(6939),n(6952),void(r.lib.Cipher||(i=r,o=i.lib,a=o.Base,s=o.WordArray,l=o.BufferedBlockAlgorithm,h=i.enc,h.Utf8,u=h.Base64,c=i.algo.EvpKDF,d=o.Cipher=l.extend({cfg:a.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?w:v}return function(e){return{encrypt:function(n,r,i){return t(r).encrypt(e,n,r,i)},decrypt:function(n,r,i){return t(r).decrypt(e,n,r,i)}}}}()}),o.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),f=i.mode={},p=o.BlockCipherMode=a.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),m=f.CBC=function(){var t=p.extend();function e(t,e,n){var r,i=this._iv;i?(r=i,this._iv=void 0):r=this._prevBlock;for(var o=0;o<n;o++)t[e+o]^=r[o]}return t.Encryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize;e.call(this,t,n,i),r.encryptBlock(t,n),this._prevBlock=t.slice(n,n+i)}}),t.Decryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,o=t.slice(n,n+i);r.decryptBlock(t,n),e.call(this,t,n,i),this._prevBlock=o}}),t}(),g=(i.pad={}).Pkcs7={pad:function(t,e){for(var n=4*e,r=n-t.sigBytes%n,i=r<<24|r<<16|r<<8|r,o=[],a=0;a<r;a+=4)o.push(i);var l=s.create(o,r);t.concat(l)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},o.BlockCipher=d.extend({cfg:d.cfg.extend({mode:m,padding:g}),reset:function(){var t;d.reset.call(this);var e=this.cfg,n=e.iv,r=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=r.createEncryptor:(t=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(r,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),y=o.CipherParams=a.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),b=(i.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;return(n?s.create([1398893684,1701076831]).concat(n).concat(e):e).toString(u)},parse:function(t){var e,n=u.parse(t),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(e=s.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),y.create({ciphertext:n,salt:e})}},v=o.SerializableCipher=a.extend({cfg:a.extend({format:b}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var i=t.createEncryptor(n,r),o=i.finalize(e),a=i.cfg;return y.create({ciphertext:o,key:n,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),t.createDecryptor(n,r).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),A=(i.kdf={}).OpenSSL={execute:function(t,e,n,r,i){if(r||(r=s.random(8)),i)o=c.create({keySize:e+n,hasher:i}).compute(t,r);else var o=c.create({keySize:e+n}).compute(t,r);var a=s.create(o.words.slice(e),4*n);return o.sigBytes=4*e,y.create({key:o,iv:a,salt:r})}},w=o.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:A}),encrypt:function(t,e,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,t.keySize,t.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=v.encrypt.call(this,t,e,i.key,r);return o.mixIn(i),o},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var i=r.kdf.execute(n,t.keySize,t.ivSize,e.salt,r.hasher);return r.iv=i.iv,v.decrypt.call(this,t,e,i.key,r)}}))))},6939(t,e,n){var r;t.exports=(r=r||function(t){var e;if("undefined"!=typeof window&&window.crypto&&(e=window.crypto),"undefined"!=typeof self&&self.crypto&&(e=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(e=globalThis.crypto),!e&&"undefined"!=typeof window&&window.msCrypto&&(e=window.msCrypto),!e&&void 0!==n.g&&n.g.crypto&&(e=n.g.crypto),!e)try{e=n(477)}catch(t){}var r=function(){if(e){if("function"==typeof e.getRandomValues)try{return e.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof e.randomBytes)try{return e.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),o={},a=o.lib={},s=a.Base={extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},l=a.WordArray=s.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;e[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s<i;s+=4)e[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=s.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(r());return new l.init(e,t)}}),h=o.enc={},u=h.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new l.init(n,e/2)}},c=h.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new l.init(n,e)}},d=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},f=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),h=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*a,u=t.min(4*h,o);if(h){for(var c=0;c<h;c+=a)this._doProcessBlock(i,c);n=i.splice(0,h),r.sigBytes-=u}return new l.init(n,u)},clone:function(){var t=s.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),p=(a.Hasher=f.extend({cfg:s.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new p.HMAC.init(t,n).finalize(e)}}}),o.algo={});return o}(Math),r)},7328(t,e,n){var r,i,o;t.exports=(r=n(6939),o=(i=r).lib.WordArray,i.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(t){var e=t.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<n.length;i++)r[n.charCodeAt(i)]=i}var a=n.charAt(64);if(a){var s=t.indexOf(a);-1!==s&&(e=s)}return function(t,e,n){for(var r=[],i=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2|n[t.charCodeAt(a)]>>>6-a%4*2;r[i>>>2]|=s<<24-i%4*8,i++}return o.create(r,i)}(t,e,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)},4123(t,e,n){var r,i,o;t.exports=(r=n(6939),o=(i=r).lib.WordArray,i.enc.Base64url={stringify:function(t,e){void 0===e&&(e=!0);var n=t.words,r=t.sigBytes,i=e?this._safe_map:this._map;t.clamp();for(var o=[],a=0;a<r;a+=3)for(var s=(n[a>>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<r;l++)o.push(i.charAt(s>>>6*(3-l)&63));var h=i.charAt(64);if(h)for(;o.length%4;)o.push(h);return o.join("")},parse:function(t,e){void 0===e&&(e=!0);var n=t.length,r=e?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a<r.length;a++)i[r.charCodeAt(a)]=a}var s=r.charAt(64);if(s){var l=t.indexOf(s);-1!==l&&(n=l)}return function(t,e,n){for(var r=[],i=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2|n[t.charCodeAt(a)]>>>6-a%4*2;r[i>>>2]|=s<<24-i%4*8,i++}return o.create(r,i)}(t,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},r.enc.Base64url)},693(t,e,n){var r;t.exports=(r=n(6939),function(){var t=r,e=t.lib.WordArray,n=t.enc;function i(t){return t<<8&4278255360|t>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i+=2){var o=e[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var n=t.length,r=[],i=0;i<n;i++)r[i>>>1]|=t.charCodeAt(i)<<16-i%2*16;return e.create(r,2*n)}},n.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o<n;o+=2){var a=i(e[o>>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(t){for(var n=t.length,r=[],o=0;o<n;o++)r[o>>>1]|=i(t.charCodeAt(o)<<16-o%2*16);return e.create(r,2*n)}}}(),r.enc.Utf16)},6952(t,e,n){var r,i,o,a,s,l,h,u;t.exports=(u=n(6939),n(4637),n(4079),o=(i=(r=u).lib).Base,a=i.WordArray,l=(s=r.algo).MD5,h=s.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:l,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n,r=this.cfg,i=r.hasher.create(),o=a.create(),s=o.words,l=r.keySize,h=r.iterations;s.length<l;){n&&i.update(n),n=i.update(t).finalize(e),i.reset();for(var u=1;u<h;u++)n=i.finalize(n),i.reset();o.concat(n)}return o.sigBytes=4*l,o}}),r.EvpKDF=function(t,e,n){return h.create(n).compute(t,e)},u.EvpKDF)},6583(t,e,n){var r,i,o,a;t.exports=(a=n(6939),n(3215),i=(r=a).lib.CipherParams,o=r.enc.Hex,r.format.Hex={stringify:function(t){return t.ciphertext.toString(o)},parse:function(t){var e=o.parse(t);return i.create({ciphertext:e})}},a.format.Hex)},4079(t,e,n){var r,i,o;t.exports=(i=(r=n(6939)).lib.Base,o=r.enc.Utf8,void(r.algo.HMAC=i.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=o.parse(e));var n=t.blockSize,r=4*n;e.sigBytes>r&&(e=t.finalize(e)),e.clamp();for(var i=this._oKey=e.clone(),a=this._iKey=e.clone(),s=i.words,l=a.words,h=0;h<n;h++)s[h]^=1549556828,l[h]^=909522486;i.sigBytes=a.sigBytes=r,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(n))}})))},5654(t,e,n){var r;t.exports=(r=n(6939),n(754),n(6182),n(693),n(7328),n(4123),n(6770),n(4637),n(2831),n(4610),n(8310),n(2455),n(5675),n(2118),n(4079),n(7517),n(6952),n(3215),n(8323),n(721),n(2458),n(5927),n(8060),n(8691),n(6731),n(1628),n(749),n(8746),n(6583),n(4845),n(4514),n(6711),n(8216),n(4002),n(8574),r)},6182(t,e,n){var r;t.exports=(r=n(6939),function(){if("function"==typeof ArrayBuffer){var t=r.lib.WordArray,e=t.init,n=t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var n=t.byteLength,r=[],i=0;i<n;i++)r[i>>>2]|=t[i]<<24-i%4*8;e.call(this,r,n)}else e.apply(this,arguments)};n.prototype=t}}(),r.lib.WordArray)},6770(t,e,n){var r;t.exports=(r=n(6939),function(t){var e=r,n=e.lib,i=n.WordArray,o=n.Hasher,a=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=t[e+0],l=t[e+1],f=t[e+2],p=t[e+3],m=t[e+4],g=t[e+5],y=t[e+6],b=t[e+7],v=t[e+8],A=t[e+9],w=t[e+10],E=t[e+11],M=t[e+12],C=t[e+13],_=t[e+14],x=t[e+15],B=o[0],k=o[1],S=o[2],I=o[3];B=h(B,k,S,I,a,7,s[0]),I=h(I,B,k,S,l,12,s[1]),S=h(S,I,B,k,f,17,s[2]),k=h(k,S,I,B,p,22,s[3]),B=h(B,k,S,I,m,7,s[4]),I=h(I,B,k,S,g,12,s[5]),S=h(S,I,B,k,y,17,s[6]),k=h(k,S,I,B,b,22,s[7]),B=h(B,k,S,I,v,7,s[8]),I=h(I,B,k,S,A,12,s[9]),S=h(S,I,B,k,w,17,s[10]),k=h(k,S,I,B,E,22,s[11]),B=h(B,k,S,I,M,7,s[12]),I=h(I,B,k,S,C,12,s[13]),S=h(S,I,B,k,_,17,s[14]),B=u(B,k=h(k,S,I,B,x,22,s[15]),S,I,l,5,s[16]),I=u(I,B,k,S,y,9,s[17]),S=u(S,I,B,k,E,14,s[18]),k=u(k,S,I,B,a,20,s[19]),B=u(B,k,S,I,g,5,s[20]),I=u(I,B,k,S,w,9,s[21]),S=u(S,I,B,k,x,14,s[22]),k=u(k,S,I,B,m,20,s[23]),B=u(B,k,S,I,A,5,s[24]),I=u(I,B,k,S,_,9,s[25]),S=u(S,I,B,k,p,14,s[26]),k=u(k,S,I,B,v,20,s[27]),B=u(B,k,S,I,C,5,s[28]),I=u(I,B,k,S,f,9,s[29]),S=u(S,I,B,k,b,14,s[30]),B=c(B,k=u(k,S,I,B,M,20,s[31]),S,I,g,4,s[32]),I=c(I,B,k,S,v,11,s[33]),S=c(S,I,B,k,E,16,s[34]),k=c(k,S,I,B,_,23,s[35]),B=c(B,k,S,I,l,4,s[36]),I=c(I,B,k,S,m,11,s[37]),S=c(S,I,B,k,b,16,s[38]),k=c(k,S,I,B,w,23,s[39]),B=c(B,k,S,I,C,4,s[40]),I=c(I,B,k,S,a,11,s[41]),S=c(S,I,B,k,p,16,s[42]),k=c(k,S,I,B,y,23,s[43]),B=c(B,k,S,I,A,4,s[44]),I=c(I,B,k,S,M,11,s[45]),S=c(S,I,B,k,x,16,s[46]),B=d(B,k=c(k,S,I,B,f,23,s[47]),S,I,a,6,s[48]),I=d(I,B,k,S,b,10,s[49]),S=d(S,I,B,k,_,15,s[50]),k=d(k,S,I,B,g,21,s[51]),B=d(B,k,S,I,M,6,s[52]),I=d(I,B,k,S,p,10,s[53]),S=d(S,I,B,k,w,15,s[54]),k=d(k,S,I,B,l,21,s[55]),B=d(B,k,S,I,v,6,s[56]),I=d(I,B,k,S,x,10,s[57]),S=d(S,I,B,k,y,15,s[58]),k=d(k,S,I,B,C,21,s[59]),B=d(B,k,S,I,m,6,s[60]),I=d(I,B,k,S,E,10,s[61]),S=d(S,I,B,k,f,15,s[62]),k=d(k,S,I,B,A,21,s[63]),o[0]=o[0]+B|0,o[1]=o[1]+k|0,o[2]=o[2]+S|0,o[3]=o[3]+I|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,h=0;h<4;h++){var u=l[h];l[h]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function h(t,e,n,r,i,o,a){var s=t+(e&n|~e&r)+i+a;return(s<<o|s>>>32-o)+e}function u(t,e,n,r,i,o,a){var s=t+(e&r|n&~r)+i+a;return(s<<o|s>>>32-o)+e}function c(t,e,n,r,i,o,a){var s=t+(e^n^r)+i+a;return(s<<o|s>>>32-o)+e}function d(t,e,n,r,i,o,a){var s=t+(n^(e|~r))+i+a;return(s<<o|s>>>32-o)+e}e.MD5=o._createHelper(l),e.HmacMD5=o._createHmacHelper(l)}(Math),r.MD5)},8323(t,e,n){var r;t.exports=(r=n(6939),n(3215),r.mode.CFB=function(){var t=r.lib.BlockCipherMode.extend();function e(t,e,n,r){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var a=0;a<n;a++)t[e+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize;e.call(this,t,n,i,r),this._prevBlock=t.slice(n,n+i)}}),t.Decryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,o=t.slice(n,n+i);e.call(this,t,n,i,r),this._prevBlock=o}}),t}(),r.mode.CFB)},2458(t,e,n){var r;t.exports=(r=n(6939),n(3215),r.mode.CTRGladman=function(){var t=r.lib.BlockCipherMode.extend();function e(t){if(255&~(t>>24))t+=1<<24;else{var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}return t}var n=t.Encryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(t){0===(t[0]=e(t[0]))&&(t[1]=e(t[1]))}(a);var s=a.slice(0);r.encryptBlock(s,0);for(var l=0;l<i;l++)t[n+l]^=s[l]}});return t.Decryptor=n,t}(),r.mode.CTRGladman)},721(t,e,n){var r,i,o;t.exports=(o=n(6939),n(3215),o.mode.CTR=(i=(r=o.lib.BlockCipherMode.extend()).Encryptor=r.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[r-1]=o[r-1]+1|0;for(var s=0;s<r;s++)t[e+s]^=a[s]}}),r.Decryptor=i,r),o.mode.CTR)},8060(t,e,n){var r,i;t.exports=(i=n(6939),n(3215),i.mode.ECB=((r=i.lib.BlockCipherMode.extend()).Encryptor=r.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),r.Decryptor=r.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),r),i.mode.ECB)},5927(t,e,n){var r,i,o;t.exports=(o=n(6939),n(3215),o.mode.OFB=(i=(r=o.lib.BlockCipherMode.extend()).Encryptor=r.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a<r;a++)t[e+a]^=o[a]}}),r.Decryptor=i,r),o.mode.OFB)},8691(t,e,n){var r;t.exports=(r=n(6939),n(3215),r.pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,r=4*e,i=r-n%r,o=n+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},r.pad.Ansix923)},6731(t,e,n){var r;t.exports=(r=n(6939),n(3215),r.pad.Iso10126={pad:function(t,e){var n=4*e,i=n-t.sigBytes%n;t.concat(r.lib.WordArray.random(i-1)).concat(r.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},r.pad.Iso10126)},1628(t,e,n){var r;t.exports=(r=n(6939),n(3215),r.pad.Iso97971={pad:function(t,e){t.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(t,e)},unpad:function(t){r.pad.ZeroPadding.unpad(t),t.sigBytes--}},r.pad.Iso97971)},8746(t,e,n){var r;t.exports=(r=n(6939),n(3215),r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding)},749(t,e,n){var r;t.exports=(r=n(6939),n(3215),r.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},r.pad.ZeroPadding)},7517(t,e,n){var r,i,o,a,s,l,h,u,c;t.exports=(c=n(6939),n(2831),n(4079),o=(i=(r=c).lib).Base,a=i.WordArray,l=(s=r.algo).SHA256,h=s.HMAC,u=s.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:l,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,r=h.create(n.hasher,t),i=a.create(),o=a.create([1]),s=i.words,l=o.words,u=n.keySize,c=n.iterations;s.length<u;){var d=r.update(e).finalize(o);r.reset();for(var f=d.words,p=f.length,m=d,g=1;g<c;g++){m=r.finalize(m),r.reset();for(var y=m.words,b=0;b<p;b++)f[b]^=y[b]}i.concat(d),l[0]++}return i.sigBytes=4*u,i}}),r.PBKDF2=function(t,e,n){return u.create(n).compute(t,e)},c.PBKDF2)},4002(t,e,n){var r;t.exports=(r=n(6939),n(7328),n(6770),n(6952),n(3215),function(){var t=r,e=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)l.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(e){var o=e.words,a=o[0],s=o[1],h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=h>>>16|4294901760&u,d=u<<16|65535&h;for(r[0]^=h,r[1]^=c,r[2]^=u,r[3]^=d,r[4]^=h,r[5]^=c,r[6]^=u,r[7]^=d,i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(t,e){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,n=0;n<8;n++)o[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,h=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^h}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=e._createHelper(s)}(),r.RabbitLegacy)},8216(t,e,n){var r;t.exports=(r=n(6939),n(7328),n(6770),n(6952),n(3215),function(){var t=r,e=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var o=e.words,a=o[0],s=o[1],h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=h>>>16|4294901760&u,d=u<<16|65535&h;for(i[0]^=h,i[1]^=c,i[2]^=u,i[3]^=d,i[4]^=h,i[5]^=c,i[6]^=u,i[7]^=d,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(t,e){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,n=0;n<8;n++)o[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,h=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^h}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=e._createHelper(s)}(),r.Rabbit)},6711(t,e,n){var r;t.exports=(r=n(6939),n(7328),n(6770),n(6952),n(3215),function(){var t=r,e=t.lib.StreamCipher,n=t.algo,i=n.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var o=0;i<256;i++){var a=i%n,s=e[a>>>2]>>>24-a%4*8&255;o=(o+r[i]+s)%256;var l=r[i];r[i]=r[o],r[o]=l}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,e=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[n],t[n]=o,r|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,r}t.RC4=e._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});t.RC4Drop=e._createHelper(a)}(),r.RC4)},2118(t,e,n){var r;t.exports=(r=n(6939),function(){var t=r,e=t.lib,n=e.WordArray,i=e.Hasher,o=t.algo,a=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),c=n.create([1352829926,1548603684,1836072691,2053994217,0]),d=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,d,v,A,w,E,M,C,_,x,B,k=this._hash.words,S=u.words,I=c.words,T=a.words,P=s.words,R=l.words,L=h.words;for(E=o=k[0],M=d=k[1],C=v=k[2],_=A=k[3],x=w=k[4],n=0;n<80;n+=1)B=o+t[e+T[n]]|0,B+=n<16?f(d,v,A)+S[0]:n<32?p(d,v,A)+S[1]:n<48?m(d,v,A)+S[2]:n<64?g(d,v,A)+S[3]:y(d,v,A)+S[4],B=(B=b(B|=0,R[n]))+w|0,o=w,w=A,A=b(v,10),v=d,d=B,B=E+t[e+P[n]]|0,B+=n<16?y(M,C,_)+I[0]:n<32?g(M,C,_)+I[1]:n<48?m(M,C,_)+I[2]:n<64?p(M,C,_)+I[3]:f(M,C,_)+I[4],B=(B=b(B|=0,L[n]))+x|0,E=x,x=_,_=b(C,10),C=M,M=B;B=k[1]+v+_|0,k[1]=k[2]+A+x|0,k[2]=k[3]+w+E|0,k[3]=k[4]+o+M|0,k[4]=k[0]+d+C|0,k[0]=B},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function f(t,e,n){return t^e^n}function p(t,e,n){return t&e|~t&n}function m(t,e,n){return(t|~e)^n}function g(t,e,n){return t&n|e&~n}function y(t,e,n){return t^(e|~n)}function b(t,e){return t<<e|t>>>32-e}t.RIPEMD160=i._createHelper(d),t.HmacRIPEMD160=i._createHmacHelper(d)}(Math),r.RIPEMD160)},4637(t,e,n){var r,i,o,a,s,l,h,u;t.exports=(i=(r=u=n(6939)).lib,o=i.WordArray,a=i.Hasher,s=r.algo,l=[],h=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],h=0;h<80;h++){if(h<16)l[h]=0|t[e+h];else{var u=l[h-3]^l[h-8]^l[h-14]^l[h-16];l[h]=u<<1|u>>>31}var c=(r<<5|r>>>27)+s+l[h];c+=h<20?1518500249+(i&o|~i&a):h<40?1859775393+(i^o^a):h<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=r,r=c}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}}),r.SHA1=a._createHelper(h),r.HmacSHA1=a._createHmacHelper(h),u.SHA1)},4610(t,e,n){var r,i,o,a,s,l;t.exports=(l=n(6939),n(2831),i=(r=l).lib.WordArray,o=r.algo,a=o.SHA256,s=o.SHA224=a.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=4,t}}),r.SHA224=a._createHelper(s),r.HmacSHA224=a._createHmacHelper(s),l.SHA224)},2831(t,e,n){var r;t.exports=(r=n(6939),function(t){var e=r,n=e.lib,i=n.WordArray,o=n.Hasher,a=e.algo,s=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(s[i]=n(t.pow(r,.5))),l[i]=n(t.pow(r,1/3)),i++),r++}();var h=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],c=n[6],d=n[7],f=0;f<64;f++){if(f<16)h[f]=0|t[e+f];else{var p=h[f-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=h[f-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;h[f]=m+h[f-7]+y+h[f-16]}var b=r&i^r&o^i&o,v=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),A=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&c)+l[f]+h[f];d=c,c=u,u=s,s=a+A|0,a=o,o=i,i=r,r=A+(v+b)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+c|0,n[7]=n[7]+d|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(u),e.HmacSHA256=o._createHmacHelper(u)}(Math),r.SHA256)},5675(t,e,n){var r;t.exports=(r=n(6939),n(754),function(t){var e=r,n=e.lib,i=n.WordArray,o=n.Hasher,a=e.x64.Word,s=e.algo,l=[],h=[],u=[];!function(){for(var t=1,e=0,n=0;n<24;n++){l[t+5*e]=(n+1)*(n+2)/2%64;var r=(2*t+3*e)%5;t=e%5,e=r}for(t=0;t<5;t++)for(e=0;e<5;e++)h[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,c=0,d=0;d<7;d++){if(1&i){var f=(1<<d)-1;f<32?c^=1<<f:s^=1<<f-32}128&i?i=i<<1^113:i<<=1}u[o]=a.create(s,c)}}();var c=[];!function(){for(var t=0;t<25;t++)c[t]=a.create()}();var d=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var o=t[e+2*i],a=t[e+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(k=n[i]).high^=a,k.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var f=0,p=0,m=0;m<5;m++)f^=(k=n[d+5*m]).high,p^=k.low;var g=c[d];g.high=f,g.low=p}for(d=0;d<5;d++){var y=c[(d+4)%5],b=c[(d+1)%5],v=b.high,A=b.low;for(f=y.high^(v<<1|A>>>31),p=y.low^(A<<1|v>>>31),m=0;m<5;m++)(k=n[d+5*m]).high^=f,k.low^=p}for(var w=1;w<25;w++){var E=(k=n[w]).high,M=k.low,C=l[w];C<32?(f=E<<C|M>>>32-C,p=M<<C|E>>>32-C):(f=M<<C-32|E>>>64-C,p=E<<C-32|M>>>64-C);var _=c[h[w]];_.high=f,_.low=p}var x=c[0],B=n[0];for(x.high=B.high,x.low=B.low,d=0;d<5;d++)for(m=0;m<5;m++){var k=n[w=d+5*m],S=c[w],I=c[(d+1)%5+5*m],T=c[(d+2)%5+5*m];k.high=S.high^~I.high&T.high,k.low=S.low^~I.low&T.low}k=n[0];var P=u[s];k.high^=P.high,k.low^=P.low}},_doFinalize:function(){var e=this._data,n=e.words,r=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,h=[],u=0;u<l;u++){var c=a[u],d=c.high,f=c.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),h.push(f),h.push(d)}return new i.init(h,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});e.SHA3=o._createHelper(d),e.HmacSHA3=o._createHmacHelper(d)}(Math),r.SHA3)},2455(t,e,n){var r,i,o,a,s,l,h,u;t.exports=(u=n(6939),n(754),n(8310),i=(r=u).x64,o=i.Word,a=i.WordArray,s=r.algo,l=s.SHA512,h=s.SHA384=l.extend({_doReset:function(){this._hash=new a.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var t=l._doFinalize.call(this);return t.sigBytes-=16,t}}),r.SHA384=l._createHelper(h),r.HmacSHA384=l._createHmacHelper(h),u.SHA384)},8310(t,e,n){var r;t.exports=(r=n(6939),n(754),function(){var t=r,e=t.lib.Hasher,n=t.x64,i=n.Word,o=n.WordArray,a=t.algo;function s(){return i.create.apply(i,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],h=[];!function(){for(var t=0;t<80;t++)h[t]=s()}();var u=a.SHA512=e.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],c=n[6],d=n[7],f=r.high,p=r.low,m=i.high,g=i.low,y=o.high,b=o.low,v=a.high,A=a.low,w=s.high,E=s.low,M=u.high,C=u.low,_=c.high,x=c.low,B=d.high,k=d.low,S=f,I=p,T=m,P=g,R=y,L=b,N=v,O=A,j=w,q=E,D=M,U=C,z=_,H=x,F=B,$=k,W=0;W<80;W++){var Y,K,Z=h[W];if(W<16)K=Z.high=0|t[e+2*W],Y=Z.low=0|t[e+2*W+1];else{var V=h[W-15],X=V.high,J=V.low,G=(X>>>1|J<<31)^(X>>>8|J<<24)^X>>>7,Q=(J>>>1|X<<31)^(J>>>8|X<<24)^(J>>>7|X<<25),tt=h[W-2],et=tt.high,nt=tt.low,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,it=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),ot=h[W-7],at=ot.high,st=ot.low,lt=h[W-16],ht=lt.high,ut=lt.low;K=(K=(K=G+at+((Y=Q+st)>>>0<Q>>>0?1:0))+rt+((Y+=it)>>>0<it>>>0?1:0))+ht+((Y+=ut)>>>0<ut>>>0?1:0),Z.high=K,Z.low=Y}var ct,dt=j&D^~j&z,ft=q&U^~q&H,pt=S&T^S&R^T&R,mt=I&P^I&L^P&L,gt=(S>>>28|I<<4)^(S<<30|I>>>2)^(S<<25|I>>>7),yt=(I>>>28|S<<4)^(I<<30|S>>>2)^(I<<25|S>>>7),bt=(j>>>14|q<<18)^(j>>>18|q<<14)^(j<<23|q>>>9),vt=(q>>>14|j<<18)^(q>>>18|j<<14)^(q<<23|j>>>9),At=l[W],wt=At.high,Et=At.low,Mt=F+bt+((ct=$+vt)>>>0<$>>>0?1:0),Ct=yt+mt;F=z,$=H,z=D,H=U,D=j,U=q,j=N+(Mt=(Mt=(Mt=Mt+dt+((ct+=ft)>>>0<ft>>>0?1:0))+wt+((ct+=Et)>>>0<Et>>>0?1:0))+K+((ct+=Y)>>>0<Y>>>0?1:0))+((q=O+ct|0)>>>0<O>>>0?1:0)|0,N=R,O=L,R=T,L=P,T=S,P=I,S=Mt+(gt+pt+(Ct>>>0<yt>>>0?1:0))+((I=ct+Ct|0)>>>0<ct>>>0?1:0)|0}p=r.low=p+I,r.high=f+S+(p>>>0<I>>>0?1:0),g=i.low=g+P,i.high=m+T+(g>>>0<P>>>0?1:0),b=o.low=b+L,o.high=y+R+(b>>>0<L>>>0?1:0),A=a.low=A+O,a.high=v+N+(A>>>0<O>>>0?1:0),E=s.low=E+q,s.high=w+j+(E>>>0<q>>>0?1:0),C=u.low=C+U,u.high=M+D+(C>>>0<U>>>0?1:0),x=c.low=x+H,c.high=_+z+(x>>>0<H>>>0?1:0),k=d.low=k+$,d.high=B+F+(k>>>0<$>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(r+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(u),t.HmacSHA512=e._createHmacHelper(u)}(),r.SHA512)},4514(t,e,n){var r;t.exports=(r=n(6939),n(7328),n(6770),n(6952),n(3215),function(){var t=r,e=t.lib,n=e.WordArray,i=e.BlockCipher,o=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],h=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],c=o.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var r=a[n]-1;e[n]=t[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var h=i[o]=[],u=l[o];for(n=0;n<24;n++)h[n/6|0]|=e[(s[n]-1+u)%28]<<31-n%6,h[4+(n/6|0)]|=e[28+(s[n+24]-1+u)%28]<<31-n%6;for(h[0]=h[0]<<1|h[0]>>>31,n=1;n<7;n++)h[n]=h[n]>>>4*(n-1)+3;h[7]=h[7]<<5|h[7]>>>27}var c=this._invSubKeys=[];for(n=0;n<16;n++)c[n]=i[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],d.call(this,4,252645135),d.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),d.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],o=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=h[l][((a^i[l])&u[l])>>>0];this._lBlock=a,this._rBlock=o^s}var c=this._lBlock;this._lBlock=this._rBlock,this._rBlock=c,d.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function f(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}t.DES=i._createHelper(c);var p=o.TripleDES=i.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),r=t.length<4?t.slice(0,2):t.slice(2,4),i=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=c.createEncryptor(n.create(e)),this._des2=c.createEncryptor(n.create(r)),this._des3=c.createEncryptor(n.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),r.TripleDES)},754(t,e,n){var r,i,o,a,s,l;t.exports=(r=n(6939),o=(i=r).lib,a=o.Base,s=o.WordArray,(l=i.x64={}).Word=a.extend({init:function(t,e){this.high=t,this.low=e}}),l.WordArray=a.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],r=0;r<e;r++){var i=t[r];n.push(i.high),n.push(i.low)}return s.create(n,this.sigBytes)},clone:function(){for(var t=a.clone.call(this),e=t.words=this.words.slice(0),n=e.length,r=0;r<n;r++)e[r]=e[r].clone();return t}}),r)},7060(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,r,i,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var h=0;h<t.length;h++){var u=[].concat(t[h]);r&&a[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},1132(t){"use strict";t.exports=function(t){var e=t[1],n=t[3];if(!n)return e;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(i," */");return[e].concat([o]).join("\n")}return[e].join("\n")}},5151(t,e,n){"use strict";var r=n(7737),i=n(2202),o=n(4097),a=n(8109);t.exports=function(t,e,n){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new o("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],c=!!a&&a(t,e);if(r)r(t,e,{configurable:null===h&&c?c.configurable:!h,enumerable:null===s&&c?c.enumerable:!s,value:n,writable:null===l&&c?c.writable:!l});else{if(!u&&(s||l||h))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=n}}},9362(t,e,n){"use strict";e.utils=n(8588),e.Cipher=n(6786),e.DES=n(1165),e.CBC=n(3015),e.EDE=n(3461)},3015(t,e,n){"use strict";var r=n(9619),i=n(7832),o={};function a(t){r.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}e.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}i(e,t);for(var n=Object.keys(o),r=0;r<n.length;r++){var a=n[r];e.prototype[a]=o[a]}return e.create=function(t){return new e(t)},e},o._cbcInit=function(){var t=new a(this.options.iv);this._cbcState=t},o._update=function(t,e,n,r){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=t[e+s];for(o._update.call(this,a,0,n,r),s=0;s<this.blockSize;s++)a[s]=n[r+s]}else{for(o._update.call(this,t,e,n,r),s=0;s<this.blockSize;s++)n[r+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=t[e+s]}}},6786(t,e,n){"use strict";var r=n(9619);function i(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==t.padding}t.exports=i,i.prototype._init=function(){},i.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},i.prototype._buffer=function(t,e){for(var n=Math.min(this.buffer.length-this.bufferOff,t.length-e),r=0;r<n;r++)this.buffer[this.bufferOff+r]=t[e+r];return this.bufferOff+=n,n},i.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(t){var e=0,n=0,r=(this.bufferOff+t.length)/this.blockSize|0,i=new Array(r*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var o=t.length-(t.length-e)%this.blockSize;e<o;e+=this.blockSize)this._update(t,e,i,n),n+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return i},i.prototype._updateDecrypt=function(t){for(var e=0,n=0,r=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,i=new Array(r*this.blockSize);r>0;r--)e+=this._buffer(t,e),n+=this._flushBuffer(i,n);return e+=this._buffer(t,e),i},i.prototype.final=function(t){var e,n;return t&&(e=this.update(t)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(n):n},i.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},i.prototype._unpad=function(t){return t},i.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},1165(t,e,n){"use strict";var r=n(9619),i=n(7832),o=n(8588),a=n(6786);function s(){this.tmp=new Array(2),this.keys=null}function l(t){a.call(this,t);var e=new s;this._desState=e,this.deriveKeys(e,t.key)}i(l,a),t.exports=l,l.create=function(t){return new l(t)};var h=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(t,e){t.keys=new Array(32),r.equal(e.length,this.blockSize,"Invalid key length");var n=o.readUInt32BE(e,0),i=o.readUInt32BE(e,4);o.pc1(n,i,t.tmp,0),n=t.tmp[0],i=t.tmp[1];for(var a=0;a<t.keys.length;a+=2){var s=h[a>>>1];n=o.r28shl(n,s),i=o.r28shl(i,s),o.pc2(n,i,t.keys,a)}},l.prototype._update=function(t,e,n,r){var i=this._desState,a=o.readUInt32BE(t,e),s=o.readUInt32BE(t,e+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(n,a,r),o.writeUInt32BE(n,s,r+4)},l.prototype._pad=function(t,e){if(!1===this.padding)return!1;for(var n=t.length-e,r=e;r<t.length;r++)t[r]=n;return!0},l.prototype._unpad=function(t){if(!1===this.padding)return t;for(var e=t[t.length-1],n=t.length-e;n<t.length;n++)r.equal(t[n],e);return t.slice(0,t.length-e)},l.prototype._encrypt=function(t,e,n,r,i){for(var a=e,s=n,l=0;l<t.keys.length;l+=2){var h=t.keys[l],u=t.keys[l+1];o.expand(s,t.tmp,0),h^=t.tmp[0],u^=t.tmp[1];var c=o.substitute(h,u),d=s;s=(a^o.permute(c))>>>0,a=d}o.rip(s,a,r,i)},l.prototype._decrypt=function(t,e,n,r,i){for(var a=n,s=e,l=t.keys.length-2;l>=0;l-=2){var h=t.keys[l],u=t.keys[l+1];o.expand(a,t.tmp,0),h^=t.tmp[0],u^=t.tmp[1];var c=o.substitute(h,u),d=a;a=(s^o.permute(c))>>>0,s=d}o.rip(a,s,r,i)}},3461(t,e,n){"use strict";var r=n(9619),i=n(7832),o=n(6786),a=n(1165);function s(t,e){r.equal(e.length,24,"Invalid key length");var n=e.slice(0,8),i=e.slice(8,16),o=e.slice(16,24);this.ciphers="encrypt"===t?[a.create({type:"encrypt",key:n}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:n})]}function l(t){o.call(this,t);var e=new s(this.type,this.options.key);this._edeState=e}i(l,o),t.exports=l,l.create=function(t){return new l(t)},l.prototype._update=function(t,e,n,r){var i=this._edeState;i.ciphers[0]._update(t,e,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},l.prototype._pad=a.prototype._pad,l.prototype._unpad=a.prototype._unpad},8588(t,e){"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,n){t[0+n]=e>>>24,t[1+n]=e>>>16&255,t[2+n]=e>>>8&255,t[3+n]=255&e},e.ip=function(t,e,n,r){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1}n[r+0]=i>>>0,n[r+1]=o>>>0},e.rip=function(t,e,n,r){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=e>>>s+a&1,i<<=1,i|=t>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=e>>>s+a&1,o<<=1,o|=t>>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},e.pc1=function(t,e,n,r){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,r,i){for(var o=0,a=0,s=n.length>>>1,l=0;l<s;l++)o<<=1,o|=t>>>n[l]&1;for(l=s;l<n.length;l++)a<<=1,a|=e>>>n[l]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},e.expand=function(t,e,n){var r=0,i=0;r=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=t>>>o&63;for(o=11;o>=3;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[n+0]=r>>>0,e[n+1]=i>>>0};var r=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var n=0,i=0;i<4;i++)n<<=4,n|=r[64*i+(t>>>18-6*i&63)];for(i=0;i<4;i++)n<<=4,n|=r[256+64*i+(e>>>18-6*i&63)];return n>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,n=0;n<i.length;n++)e<<=1,e|=t>>>i[n]&1;return e>>>0},e.padSplit=function(t,e,n){for(var r=t.toString(2);r.length<e;)r="0"+r;for(var i=[],o=0;o<e;o+=n)i.push(r.slice(o,o+n));return i.join(" ")}},1470(t,e,n){var r=n(3273).Buffer,i=n(1520),o=n(3241),a=n(9740),s={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(t){var e=new r(o[t].prime,"hex"),n=new r(o[t].gen,"hex");return new a(e,n)},e.createDiffieHellman=e.DiffieHellman=function t(e,n,o,l){return r.isBuffer(n)||void 0===s[n]?t(e,"binary",n,o):(n=n||"binary",l=l||"binary",o=o||new r([2]),r.isBuffer(o)||(o=new r(o,l)),"number"==typeof e?new a(i(e,o),o,!0):(r.isBuffer(e)||(e=new r(e,n)),new a(e,o,!0)))}},9740(t,e,n){var r=n(3273).Buffer,i=n(1203),o=new(n(7018)),a=new i(24),s=new i(11),l=new i(10),h=new i(3),u=new i(7),c=n(1520),d=n(2719);function f(t,e){return e=e||"utf8",r.isBuffer(t)||(t=new r(t,e)),this._pub=new i(t),this}function p(t,e){return e=e||"utf8",r.isBuffer(t)||(t=new r(t,e)),this._priv=new i(t),this}t.exports=g;var m={};function g(t,e,n){this.setGenerator(e),this.__prime=new i(t),this._prime=i.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=f,this.setPrivateKey=p):this._primeCode=8}function y(t,e){var n=new r(t.toArray());return e?n.toString(e):n}Object.defineProperty(g.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var n=e.toString("hex"),r=[n,t.toString(16)].join("_");if(r in m)return m[r];var i,d=0;if(t.isEven()||!c.simpleSieve||!c.fermatTest(t)||!o.test(t))return d+=1,d+="02"===n||"05"===n?8:4,m[r]=d,d;switch(o.test(t.shrn(1))||(d+=2),n){case"02":t.mod(a).cmp(s)&&(d+=8);break;case"05":(i=t.mod(l)).cmp(h)&&i.cmp(u)&&(d+=8);break;default:d+=4}return m[r]=d,d}(this.__prime,this.__gen)),this._primeCode}}),g.prototype.generateKeys=function(){return this._priv||(this._priv=new i(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},g.prototype.computeSecret=function(t){var e=(t=(t=new i(t)).toRed(this._prime)).redPow(this._priv).fromRed(),n=new r(e.toArray()),o=this.getPrime();if(n.length<o.length){var a=new r(o.length-n.length);a.fill(0),n=r.concat([a,n])}return n},g.prototype.getPublicKey=function(t){return y(this._pub,t)},g.prototype.getPrivateKey=function(t){return y(this._priv,t)},g.prototype.getPrime=function(t){return y(this.__prime,t)},g.prototype.getGenerator=function(t){return y(this._gen,t)},g.prototype.setGenerator=function(t,e){return e=e||"utf8",r.isBuffer(t)||(t=new r(t,e)),this.__gen=t,this._gen=new i(t),this}},1520(t,e,n){var r=n(2719);t.exports=b,b.simpleSieve=g,b.fermatTest=y;var i=n(1203),o=new i(24),a=new(n(7018)),s=new i(1),l=new i(2),h=new i(5),u=(new i(16),new i(8),new i(10)),c=new i(3),d=(new i(7),new i(11)),f=new i(4),p=(new i(12),null);function m(){if(null!==p)return p;var t=[];t[0]=2;for(var e=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),i=0;i<e&&t[i]<=r&&n%t[i]!==0;i++);e!==i&&t[i]<=r||(t[e++]=n)}return p=t,t}function g(t){for(var e=m(),n=0;n<e.length;n++)if(0===t.modn(e[n]))return 0===t.cmpn(e[n]);return!0}function y(t){var e=i.mont(t);return 0===l.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function b(t,e){if(t<16)return new i(2===e||5===e?[140,123]:[140,39]);var n,p;for(e=new i(e);;){for(n=new i(r(Math.ceil(t/8)));n.bitLength()>t;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(l),e.cmp(l)){if(!e.cmp(h))for(;n.mod(u).cmp(c);)n.iadd(f)}else for(;n.mod(o).cmp(d);)n.iadd(f);if(g(p=n.shrn(1))&&g(n)&&y(p)&&y(n)&&a.test(p)&&a.test(n))return n}}},1203(t,e,n){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(6089).Buffer}catch(t){}function s(t,e){var n=t.charCodeAt(e);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function l(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function h(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,n):(this._parseBase(t,e,i),"le"===n&&this._initArray(this.toArray(),e,n)))},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,a=0;if("be"===n)for(r=t.length-1;r>=e;r-=2)i=l(t,e,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r<t.length;r+=2)i=l(t,e,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u<s;u+=r)l=h(t,u,u+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var c=1;for(l=h(t,u,t.length,e),u=0;u<a;u++)c*=e;this.imuln(c),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var h=1;h<r;h++){for(var u=l>>>26,c=67108863&l,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;u+=(a=(i=0|t.words[p])*(o=0|e.words[f])+c)/67108864|0,c=67108863&a}n.words[h]=0|c,l=0|u}return 0!==l?n.words[h]=0|l:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),n=0!==o||a!==this.length-1?u[6-l.length]+l+n:l+n}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],f=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);n=(p=p.idivn(f)).isZero()?m+n:u[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===e,h=new t(o),u=this.clone();if(l){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),h[s]=a;for(;s<o;s++)h[s]=0}else{for(s=0;s<o-i;s++)h[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),h[o-s-1]=a}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 8191&e||(n+=13,e>>>=13),127&e||(n+=7,e>>>=7),15&e||(n+=4,e>>>=4),3&e||(n+=2,e>>>=2),1&e||n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)o=(e=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)o=(e=(0|n.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,n){var r,i,o,a=t.words,s=e.words,l=n.words,h=0,u=0|a[0],c=8191&u,d=u>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],y=8191&g,b=g>>>13,v=0|a[3],A=8191&v,w=v>>>13,E=0|a[4],M=8191&E,C=E>>>13,_=0|a[5],x=8191&_,B=_>>>13,k=0|a[6],S=8191&k,I=k>>>13,T=0|a[7],P=8191&T,R=T>>>13,L=0|a[8],N=8191&L,O=L>>>13,j=0|a[9],q=8191&j,D=j>>>13,U=0|s[0],z=8191&U,H=U>>>13,F=0|s[1],$=8191&F,W=F>>>13,Y=0|s[2],K=8191&Y,Z=Y>>>13,V=0|s[3],X=8191&V,J=V>>>13,G=0|s[4],Q=8191&G,tt=G>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],lt=8191&st,ht=st>>>13,ut=0|s[8],ct=8191&ut,dt=ut>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(h+(r=Math.imul(c,z))|0)+((8191&(i=(i=Math.imul(c,H))+Math.imul(d,z)|0))<<13)|0;h=((o=Math.imul(d,H))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H);var yt=(h+(r=r+Math.imul(c,$)|0)|0)+((8191&(i=(i=i+Math.imul(c,W)|0)+Math.imul(d,$)|0))<<13)|0;h=((o=o+Math.imul(d,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,W)|0;var bt=(h+(r=r+Math.imul(c,K)|0)|0)+((8191&(i=(i=i+Math.imul(c,Z)|0)+Math.imul(d,K)|0))<<13)|0;h=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,H))+Math.imul(w,z)|0,o=Math.imul(w,H),r=r+Math.imul(y,$)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,W)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Z)|0;var vt=(h+(r=r+Math.imul(c,X)|0)|0)+((8191&(i=(i=i+Math.imul(c,J)|0)+Math.imul(d,X)|0))<<13)|0;h=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(C,z)|0,o=Math.imul(C,H),r=r+Math.imul(A,$)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,W)|0,r=r+Math.imul(y,K)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,Z)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,J)|0;var At=(h+(r=r+Math.imul(c,Q)|0)|0)+((8191&(i=(i=i+Math.imul(c,tt)|0)+Math.imul(d,Q)|0))<<13)|0;h=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(B,z)|0,o=Math.imul(B,H),r=r+Math.imul(M,$)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,W)|0,r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var wt=(h+(r=r+Math.imul(c,nt)|0)|0)+((8191&(i=(i=i+Math.imul(c,rt)|0)+Math.imul(d,nt)|0))<<13)|0;h=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(S,z),i=(i=Math.imul(S,H))+Math.imul(I,z)|0,o=Math.imul(I,H),r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,W)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var Et=(h+(r=r+Math.imul(c,ot)|0)|0)+((8191&(i=(i=i+Math.imul(c,at)|0)+Math.imul(d,ot)|0))<<13)|0;h=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,H))+Math.imul(R,z)|0,o=Math.imul(R,H),r=r+Math.imul(S,$)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,W)|0,r=r+Math.imul(x,K)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(y,nt)|0,i=(i=i+Math.imul(y,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(h+(r=r+Math.imul(c,lt)|0)|0)+((8191&(i=(i=i+Math.imul(c,ht)|0)+Math.imul(d,lt)|0))<<13)|0;h=((o=o+Math.imul(d,ht)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(O,z)|0,o=Math.imul(O,H),r=r+Math.imul(P,$)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,W)|0,r=r+Math.imul(S,K)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,Z)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(w,nt)|0,o=o+Math.imul(w,rt)|0,r=r+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,lt)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(m,lt)|0,o=o+Math.imul(m,ht)|0;var Ct=(h+(r=r+Math.imul(c,ct)|0)|0)+((8191&(i=(i=i+Math.imul(c,dt)|0)+Math.imul(d,ct)|0))<<13)|0;h=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(q,z),i=(i=Math.imul(q,H))+Math.imul(D,z)|0,o=Math.imul(D,H),r=r+Math.imul(N,$)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,W)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Z)|0,r=r+Math.imul(S,X)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,J)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,r=r+Math.imul(y,lt)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(b,lt)|0,o=o+Math.imul(b,ht)|0,r=r+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,dt)|0;var _t=(h+(r=r+Math.imul(c,pt)|0)|0)+((8191&(i=(i=i+Math.imul(c,mt)|0)+Math.imul(d,pt)|0))<<13)|0;h=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(q,$),i=(i=Math.imul(q,W))+Math.imul(D,$)|0,o=Math.imul(D,W),r=r+Math.imul(N,K)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(B,nt)|0,o=o+Math.imul(B,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(A,lt)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(w,lt)|0,o=o+Math.imul(w,ht)|0,r=r+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(b,ct)|0,o=o+Math.imul(b,dt)|0;var xt=(h+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(q,K),i=(i=Math.imul(q,Z))+Math.imul(D,K)|0,o=Math.imul(D,Z),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(S,nt)|0,i=(i=i+Math.imul(S,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,r=r+Math.imul(M,lt)|0,i=(i=i+Math.imul(M,ht)|0)+Math.imul(C,lt)|0,o=o+Math.imul(C,ht)|0,r=r+Math.imul(A,ct)|0,i=(i=i+Math.imul(A,dt)|0)+Math.imul(w,ct)|0,o=o+Math.imul(w,dt)|0;var Bt=(h+(r=r+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(b,pt)|0))<<13)|0;h=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(q,X),i=(i=Math.imul(q,J))+Math.imul(D,X)|0,o=Math.imul(D,J),r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(S,ot)|0,i=(i=i+Math.imul(S,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,r=r+Math.imul(x,lt)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(B,lt)|0,o=o+Math.imul(B,ht)|0,r=r+Math.imul(M,ct)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,dt)|0;var kt=(h+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(w,pt)|0))<<13)|0;h=((o=o+Math.imul(w,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(q,Q),i=(i=Math.imul(q,tt))+Math.imul(D,Q)|0,o=Math.imul(D,tt),r=r+Math.imul(N,nt)|0,i=(i=i+Math.imul(N,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(S,lt)|0,i=(i=i+Math.imul(S,ht)|0)+Math.imul(I,lt)|0,o=o+Math.imul(I,ht)|0,r=r+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(B,ct)|0,o=o+Math.imul(B,dt)|0;var St=(h+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(C,pt)|0))<<13)|0;h=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(q,nt),i=(i=Math.imul(q,rt))+Math.imul(D,nt)|0,o=Math.imul(D,rt),r=r+Math.imul(N,ot)|0,i=(i=i+Math.imul(N,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,r=r+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(R,lt)|0,o=o+Math.imul(R,ht)|0,r=r+Math.imul(S,ct)|0,i=(i=i+Math.imul(S,dt)|0)+Math.imul(I,ct)|0,o=o+Math.imul(I,dt)|0;var It=(h+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(B,pt)|0))<<13)|0;h=((o=o+Math.imul(B,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(q,ot),i=(i=Math.imul(q,at))+Math.imul(D,ot)|0,o=Math.imul(D,at),r=r+Math.imul(N,lt)|0,i=(i=i+Math.imul(N,ht)|0)+Math.imul(O,lt)|0,o=o+Math.imul(O,ht)|0,r=r+Math.imul(P,ct)|0,i=(i=i+Math.imul(P,dt)|0)+Math.imul(R,ct)|0,o=o+Math.imul(R,dt)|0;var Tt=(h+(r=r+Math.imul(S,pt)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(I,pt)|0))<<13)|0;h=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(q,lt),i=(i=Math.imul(q,ht))+Math.imul(D,lt)|0,o=Math.imul(D,ht),r=r+Math.imul(N,ct)|0,i=(i=i+Math.imul(N,dt)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,dt)|0;var Pt=(h+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(R,pt)|0))<<13)|0;h=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(q,ct),i=(i=Math.imul(q,dt))+Math.imul(D,ct)|0,o=Math.imul(D,dt);var Rt=(h+(r=r+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var Lt=(h+(r=Math.imul(q,pt))|0)+((8191&(i=(i=Math.imul(q,mt))+Math.imul(D,pt)|0))<<13)|0;return h=((o=Math.imul(D,mt))+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=At,l[5]=wt,l[6]=Et,l[7]=Mt,l[8]=Ct,l[9]=_t,l[10]=xt,l[11]=Bt,l[12]=kt,l[13]=St,l[14]=It,l[15]=Tt,l[16]=Pt,l[17]=Rt,l[18]=Lt,0!==h&&(l[19]=h,n.length++),n};function m(t,e,n){return(new g).mulp(t,e,n)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=f),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?p(this,t,e):r<63?f(this,t,e):r<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,l=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=l;h++){var u=o-h,c=(0|t.words[u])*(0|e.words[h]),d=67108863&c;s=67108863&(d=d+s|0),i+=(a=(a=a+(c/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):m(this,t,e),n},g.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},g.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},g.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},g.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),h=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var c=l,d=h,f=0;f<a;f++){var p=n[u+f],m=r[u+f],g=n[u+f+a],y=r[u+f+a],b=c*g-d*y;y=c*y+d*g,g=b,n[u+f]=p+g,r[u+f]=m+y,n[u+f+a]=p-g,r[u+f+a]=m-y,f!==s&&(b=l*c-h*d,d=l*d+h*c,c=b)}},g.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},g.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},g.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(!(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},g.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),l=new Array(r),h=new Array(r),u=new Array(r),c=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,h,r),this.transform(a,o,s,l,r,i),this.transform(h,o,u,c,r,i);for(var f=0;f<r;f++){var p=s[f]*u[f]-l[f]*c[f];l[f]=s[f]*c[f]+l[f]*u[f],s[f]=p}return this.conjugate(s,l,r),this.transform(s,l,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this.length=0===t?1:this.length,this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,l=(0|this.words[e])-s<<n;this.words[e]=l|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,l=n;if(i-=a,i=Math.max(0,i),l){for(var h=0;h<a;h++)l.words[h]=this.words[h];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var u=0;for(h=this.length-1;h>=0&&(0!==u||h>=i);h--){var c=0|this.words[h];this.words[h]=u<<26-o|c>>>o,u=c&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n||!(this.words[n]&i))},o.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var l=(0|t.words[i])*e;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!=(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,l=r.length-i.length;if("mod"!==e){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var h=0;h<s.length;h++)s.words[h]=0}var u=r.clone()._ishlnsubmul(i,1,l);0===u.negative&&(r=u,s&&(s.words[l]=1));for(var c=l-1;c>=0;c--){var d=67108864*(0|r.words[i.length+c])+(0|r.words[i.length+c-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,c);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,c),r.isZero()||(r.negative^=1);s&&(s.words[c]=d)}return s&&s.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),h=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++h;for(var u=n.clone(),c=e.clone();!e.isZero();){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(c)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(c)),s.iushrn(1),l.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(l)):(n.isub(e),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:n.iushln(h)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),l=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var h=0,u=1;0===(e.words[0]&u)&&h<26;++h,u<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var c=0,d=1;0===(n.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(n.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new M(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(v,b),v.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&n)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(A,b),i(w,b),i(E,b),E.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new A;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return y[t]=e,e},M.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},M.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),h=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,h).cmp(l);)u.redIAdd(l);for(var c=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<p);var y=this.pow(c,new o(1).iushln(p-g-1));d=d.redMul(y),c=y.redSqr(),f=f.redMul(c),p=g}return d},M.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},M.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],a=0,s=0,l=e.bitLength()%26;for(0===l&&(l=26),r=e.length-1;r>=0;r--){for(var h=e.words[r],u=l-1;u>=0;u--){var c=h>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==c||0!==a?(a<<=1,a|=c,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}l=26}return i},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new C(t)},i(C,M),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=n.nmd(t),this)},6678(t,e,n){"use strict";var r,i=n(7472),o=n(8109);try{r=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!r&&o&&o(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;t.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof l&&function(t){return l(null==t?t:s(t))}},2259(t,e,n){"use strict";var r=e;r.version=n(1636).rE,r.utils=n(6549),r.rand=n(5751),r.curve=n(6416),r.curves=n(5474),r.ec=n(1853),r.eddsa=n(7924)},2639(t,e,n){"use strict";var r=n(8836),i=n(6549),o=i.getNAF,a=i.getJSF,s=i.assert;function l(t,e){this.type=t,this.p=new r(e.p,16),this.red=e.prime?r.red(e.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=e.n&&new r(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function h(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(t,e){s(t.precomputed);var n=t._getDoubles(),r=o(e,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;var a,l,h=[];for(a=0;a<r.length;a+=n.step){l=0;for(var u=a+n.step-1;u>=a;u--)l=(l<<1)+r[u];h.push(l)}for(var c=this.jpoint(null,null,null),d=this.jpoint(null,null,null),f=i;f>0;f--){for(a=0;a<h.length;a++)(l=h[a])===f?d=d.mixedAdd(n.points[a]):l===-f&&(d=d.mixedAdd(n.points[a].neg()));c=c.add(d)}return c.toP()},l.prototype._wnafMul=function(t,e){var n=4,r=t._getNAFPoints(n);n=r.wnd;for(var i=r.points,a=o(e,n,this._bitLength),l=this.jpoint(null,null,null),h=a.length-1;h>=0;h--){for(var u=0;h>=0&&0===a[h];h--)u++;if(h>=0&&u++,l=l.dblp(u),h<0)break;var c=a[h];s(0!==c),l="affine"===t.type?c>0?l.mixedAdd(i[c-1>>1]):l.mixedAdd(i[-c-1>>1].neg()):c>0?l.add(i[c-1>>1]):l.add(i[-c-1>>1].neg())}return"affine"===t.type?l.toP():l},l.prototype._wnafMulAdd=function(t,e,n,r,i){var s,l,h,u=this._wnafT1,c=this._wnafT2,d=this._wnafT3,f=0;for(s=0;s<r;s++){var p=(h=e[s])._getNAFPoints(t);u[s]=p.wnd,c[s]=p.points}for(s=r-1;s>=1;s-=2){var m=s-1,g=s;if(1===u[m]&&1===u[g]){var y=[e[m],null,null,e[g]];0===e[m].y.cmp(e[g].y)?(y[1]=e[m].add(e[g]),y[2]=e[m].toJ().mixedAdd(e[g].neg())):0===e[m].y.cmp(e[g].y.redNeg())?(y[1]=e[m].toJ().mixedAdd(e[g]),y[2]=e[m].add(e[g].neg())):(y[1]=e[m].toJ().mixedAdd(e[g]),y[2]=e[m].toJ().mixedAdd(e[g].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],v=a(n[m],n[g]);for(f=Math.max(v[0].length,f),d[m]=new Array(f),d[g]=new Array(f),l=0;l<f;l++){var A=0|v[0][l],w=0|v[1][l];d[m][l]=b[3*(A+1)+(w+1)],d[g][l]=0,c[m]=y}}else d[m]=o(n[m],u[m],this._bitLength),d[g]=o(n[g],u[g],this._bitLength),f=Math.max(d[m].length,f),f=Math.max(d[g].length,f)}var E=this.jpoint(null,null,null),M=this._wnafT4;for(s=f;s>=0;s--){for(var C=0;s>=0;){var _=!0;for(l=0;l<r;l++)M[l]=0|d[l][s],0!==M[l]&&(_=!1);if(!_)break;C++,s--}if(s>=0&&C++,E=E.dblp(C),s<0)break;for(l=0;l<r;l++){var x=M[l];0!==x&&(x>0?h=c[l][x-1>>1]:x<0&&(h=c[l][-x-1>>1].neg()),E="affine"===h.type?E.mixedAdd(h):E.add(h))}}for(s=0;s<r;s++)c[s]=null;return i?E:E.toP()},l.BasePoint=h,h.prototype.eq=function(){throw new Error("Not implemented")},h.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(t,e){t=i.toArray(t,e);var n=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*n)return 6===t[0]?s(t[t.length-1]%2==0):7===t[0]&&s(t[t.length-1]%2==1),this.point(t.slice(1,1+n),t.slice(1+n,1+2*n));if((2===t[0]||3===t[0])&&t.length-1===n)return this.pointFromX(t.slice(1,1+n),3===t[0]);throw new Error("Unknown point format")},h.prototype.encodeCompressed=function(t){return this.encode(t,!0)},h.prototype._encode=function(t){var e=this.curve.p.byteLength(),n=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",e))},h.prototype.encode=function(t,e){return i.encode(this._encode(e),t)},h.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},h.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},h.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)r=r.dbl();n.push(r)}return{step:t,points:n}},h.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],n=(1<<t)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)e[i]=e[i-1].add(r);return{wnd:t,points:e}},h.prototype._getBeta=function(){return null},h.prototype.dblp=function(t){for(var e=this,n=0;n<t;n++)e=e.dbl();return e}},3924(t,e,n){"use strict";var r=n(6549),i=n(8836),o=n(7832),a=n(2639),s=r.assert;function l(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,a.call(this,"edwards",t),this.a=new i(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function h(t,e,n,r,o){a.BasePoint.call(this,t,"projective"),null===e&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(e,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(l,a),t.exports=l,l.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},l.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},l.prototype.jpoint=function(t,e,n,r){return this.point(t,e,n,r)},l.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),r=this.c2.redSub(this.a.redMul(n)),o=this.one.redSub(this.c2.redMul(this.d).redMul(n)),a=r.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var l=s.fromRed().isOdd();return(e&&!l||!e&&l)&&(s=s.redNeg()),this.point(t,s)},l.prototype.pointFromY=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),r=n.redSub(this.c2),o=n.redMul(this.d).redMul(this.c2).redSub(this.a),a=r.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==e&&(s=s.redNeg()),this.point(s,t)},l.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),n=t.y.redSqr(),r=e.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(n)));return 0===r.cmp(i)},o(h,a.BasePoint),l.prototype.pointFromJSON=function(t){return h.fromJSON(this,t)},l.prototype.point=function(t,e,n,r){return new h(this,t,e,n,r)},h.fromJSON=function(t,e){return new h(t,e[0],e[1],e[2])},h.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},h.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},h.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=r.redAdd(e),a=o.redSub(n),s=r.redSub(e),l=i.redMul(a),h=o.redMul(s),u=i.redMul(s),c=a.redMul(o);return this.curve.point(l,h,c,u)},h.prototype._projDbl=function(){var t,e,n,r,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),l=this.y.redSqr();if(this.curve.twisted){var h=(r=this.curve._mulA(s)).redAdd(l);this.zOne?(t=a.redSub(s).redSub(l).redMul(h.redSub(this.curve.two)),e=h.redMul(r.redSub(l)),n=h.redSqr().redSub(h).redSub(h)):(i=this.z.redSqr(),o=h.redSub(i).redISub(i),t=a.redSub(s).redISub(l).redMul(o),e=h.redMul(r.redSub(l)),n=h.redMul(o))}else r=s.redAdd(l),i=this.curve._mulC(this.z).redSqr(),o=r.redSub(i).redSub(i),t=this.curve._mulC(a.redISub(r)).redMul(o),e=this.curve._mulC(r).redMul(s.redISub(l)),n=r.redMul(o);return this.curve.point(t,e,n)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},h.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),r=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=n.redSub(e),a=i.redSub(r),s=i.redAdd(r),l=n.redAdd(e),h=o.redMul(a),u=s.redMul(l),c=o.redMul(l),d=a.redMul(s);return this.curve.point(h,u,d,c)},h.prototype._projAdd=function(t){var e,n,r=this.z.redMul(t.z),i=r.redSqr(),o=this.x.redMul(t.x),a=this.y.redMul(t.y),s=this.curve.d.redMul(o).redMul(a),l=i.redSub(s),h=i.redAdd(s),u=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(a),c=r.redMul(l).redMul(u);return this.curve.twisted?(e=r.redMul(h).redMul(a.redSub(this.curve._mulA(o))),n=l.redMul(h)):(e=r.redMul(h).redMul(a.redSub(o)),n=this.curve._mulC(l).redMul(h)),this.curve.point(c,e,n)},h.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},h.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},h.prototype.mulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!1)},h.prototype.jmulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!0)},h.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},h.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()},h.prototype.getY=function(){return this.normalize(),this.y.fromRed()},h.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},h.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var n=t.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}},h.prototype.toP=h.prototype.normalize,h.prototype.mixedAdd=h.prototype.add},6416(t,e,n){"use strict";var r=e;r.base=n(2639),r.short=n(8142),r.mont=n(860),r.edwards=n(3924)},860(t,e,n){"use strict";var r=n(8836),i=n(7832),o=n(2639),a=n(6549);function s(t){o.call(this,"mont",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(t,e,n){o.BasePoint.call(this,t,"projective"),null===e&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(e,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),t.exports=s,s.prototype.validate=function(t){var e=t.normalize().x,n=e.redSqr(),r=n.redMul(e).redAdd(n.redMul(this.a)).redAdd(e);return 0===r.redSqrt().redSqr().cmp(r)},i(l,o.BasePoint),s.prototype.decodePoint=function(t,e){return this.point(a.toArray(t,e),1)},s.prototype.point=function(t,e){return new l(this,t,e)},s.prototype.pointFromJSON=function(t){return l.fromJSON(this,t)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(t,e){return new l(t,e[0],e[1]||t.one)},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),n=t.redSub(e),r=t.redMul(e),i=n.redMul(e.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(t,e){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(n),a=i.redMul(r),s=e.z.redMul(o.redAdd(a).redSqr()),l=e.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,l)},l.prototype.mul=function(t){for(var e=t.clone(),n=this,r=this.curve.point(null,null),i=[];0!==e.cmpn(0);e.iushrn(1))i.push(e.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},8142(t,e,n){"use strict";var r=n(6549),i=n(8836),o=n(7832),a=n(2639),s=r.assert;function l(t){a.call(this,"short",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function h(t,e,n,r){a.BasePoint.call(this,t,"affine"),null===e&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(e,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(t,e,n,r){a.BasePoint.call(this,t,"jacobian"),null===e&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(e,16),this.y=new i(n,16),this.z=new i(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(l,a),t.exports=l,l.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,n;if(t.beta)e=new i(t.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);e=(e=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(t.lambda)n=new i(t.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(e))?n=o[0]:(n=o[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:n,basis:t.basis?t.basis.map(function(t){return{a:new i(t.a,16),b:new i(t.b,16)}}):this._getEndoBasis(n)}}},l.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:i.mont(t),n=new i(2).toRed(e).redInvm(),r=n.redNeg(),o=new i(3).toRed(e).redNeg().redSqrt().redMul(n);return[r.redAdd(o).fromRed(),r.redSub(o).fromRed()]},l.prototype._getEndoBasis=function(t){for(var e,n,r,o,a,s,l,h,u,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=t,f=this.n.clone(),p=new i(1),m=new i(0),g=new i(0),y=new i(1),b=0;0!==d.cmpn(0);){var v=f.div(d);h=f.sub(v.mul(d)),u=g.sub(v.mul(p));var A=y.sub(v.mul(m));if(!r&&h.cmp(c)<0)e=l.neg(),n=p,r=h.neg(),o=u;else if(r&&2===++b)break;l=h,f=d,d=h,g=p,p=u,y=m,m=A}a=h.neg(),s=u;var w=r.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(w)>=0&&(a=e,s=n),r.negative&&(r=r.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:r,b:o},{a,b:s}]},l.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],r=e[1],i=r.b.mul(t).divRound(this.n),o=n.b.neg().mul(t).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),l=i.mul(n.b),h=o.mul(r.b);return{k1:t.sub(a).sub(s),k2:l.add(h).neg()}},l.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var o=r.fromRed().isOdd();return(e&&!o||!e&&o)&&(r=r.redNeg()),this.point(t,r)},l.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,r=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},l.prototype._endoWnafMulAdd=function(t,e,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var a=this._endoSplit(e[o]),s=t[o],l=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),l=l.neg(!0)),r[2*o]=s,r[2*o+1]=l,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var h=this._wnafMulAdd(1,r,i,2*o,n),u=0;u<2*o;u++)r[u]=null,i[u]=null;return h},o(h,a.BasePoint),l.prototype.point=function(t,e,n){return new h(this,t,e,n)},l.prototype.pointFromJSON=function(t,e){return h.fromJSON(this,t,e)},h.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var n=this.curve,r=function(t){return n.point(t.x.redMul(n.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(r)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(r)}}}return e}},h.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},h.fromJSON=function(t,e,n){"string"==typeof e&&(e=JSON.parse(e));var r=t.point(e[0],e[1],n);if(!e[2])return r;function i(e){return t.point(e[0],e[1],n)}var o=e[2];return r.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[r].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[r].concat(o.naf.points.map(i))}},r},h.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var n=e.redSqr().redISub(this.x).redISub(t.x),r=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},h.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,n=this.x.redSqr(),r=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(t){return t=new i(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},h.prototype.mulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},h.prototype.jmulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},h.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},h.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,r=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return e},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(u,a.BasePoint),l.prototype.jpoint=function(t,e,n){return new u(this,t,e,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(n,r)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(e),i=t.x.redMul(n),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(n.redMul(this.z)),s=r.redSub(i),l=o.redSub(a);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h=s.redSqr(),u=h.redMul(s),c=r.redMul(h),d=l.redSqr().redIAdd(u).redISub(c).redISub(c),f=l.redMul(c.redISub(d)).redISub(o.redMul(u)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(d,f,p)},u.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,r=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),h=l.redMul(a),u=n.redMul(l),c=s.redSqr().redIAdd(h).redISub(u).redISub(u),d=s.redMul(u.redISub(c)).redISub(i.redMul(h)),f=this.z.redMul(a);return this.curve.jpoint(c,d,f)},u.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var n=this;for(e=0;e<t;e++)n=n.dbl();return n}var r=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,l=s.redSqr().redSqr(),h=a.redAdd(a);for(e=0;e<t;e++){var u=o.redSqr(),c=h.redSqr(),d=c.redSqr(),f=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(l)),p=o.redMul(c),m=f.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),y=f.redMul(g);y=y.redIAdd(y).redISub(d);var b=h.redMul(s);e+1<t&&(l=l.redMul(d)),o=m,s=b,h=y}return this.curve.jpoint(o,h.redMul(i),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var t,e,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r),l=s.redSqr().redISub(a).redISub(a),h=o.redIAdd(o);h=(h=h.redIAdd(h)).redIAdd(h),t=l,e=s.redMul(a.redISub(l)).redISub(h),n=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),c=this.y.redSqr(),d=c.redSqr(),f=this.x.redAdd(c).redSqr().redISub(u).redISub(d);f=f.redIAdd(f);var p=u.redAdd(u).redIAdd(u),m=p.redSqr(),g=d.redIAdd(d);g=(g=g.redIAdd(g)).redIAdd(g),t=m.redISub(f).redISub(f),e=p.redMul(f.redISub(t)).redISub(g),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(t,e,n)},u.prototype._threeDbl=function(){var t,e,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),l=s.redSqr().redISub(a).redISub(a);t=l;var h=o.redIAdd(o);h=(h=h.redIAdd(h)).redIAdd(h),e=s.redMul(a.redISub(l)).redISub(h),n=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),c=this.y.redSqr(),d=this.x.redMul(c),f=this.x.redSub(u).redMul(this.x.redAdd(u));f=f.redAdd(f).redIAdd(f);var p=d.redIAdd(d),m=(p=p.redIAdd(p)).redAdd(p);t=f.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(c).redISub(u);var g=c.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),e=f.redMul(p.redISub(t)).redISub(g)}return this.curve.jpoint(t,e,n)},u.prototype._dbl=function(){var t=this.curve.a,e=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),o=e.redSqr(),a=n.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),l=e.redAdd(e),h=(l=l.redIAdd(l)).redMul(a),u=s.redSqr().redISub(h.redAdd(h)),c=h.redISub(u),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var f=s.redMul(c).redISub(d),p=n.redAdd(n).redMul(r);return this.curve.jpoint(u,f,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr(),r=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(r),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),l=r.redIAdd(r);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var h=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(l),u=e.redMul(h);u=(u=u.redIAdd(u)).redIAdd(u);var c=this.x.redMul(s).redISub(u);c=(c=c.redIAdd(c)).redIAdd(c);var d=this.y.redMul(h.redMul(l.redISub(h)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var f=this.z.redAdd(a).redSqr().redISub(n).redISub(s);return this.curve.jpoint(c,d,f)},u.prototype.mul=function(t,e){return t=new i(t,e),this.curve._wnafMul(this,t)},u.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),n=t.z.redSqr();if(0!==this.x.redMul(n).redISub(t.x.redMul(e)).cmpn(0))return!1;var r=e.redMul(this.z),i=n.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(r)).cmpn(0)},u.prototype.eqXToP=function(t){var e=this.z.redSqr(),n=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(n))return!0;for(var r=t.clone(),i=this.curve.redN.redMul(e);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},5474(t,e,n){"use strict";var r,i=e,o=n(7482),a=n(6416),s=n(6549).assert;function l(t){"short"===t.type?this.curve=new a.short(t):"edwards"===t.type?this.curve=new a.edwards(t):this.curve=new a.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(t,e){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var n=new l(e);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=l,h("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),h("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),h("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(2709)}catch(t){r=void 0}h("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},1853(t,e,n){"use strict";var r=n(8836),i=n(93),o=n(6549),a=n(5474),s=n(5751),l=o.assert,h=n(9262),u=n(6019);function c(t){if(!(this instanceof c))return new c(t);"string"==typeof t&&(l(Object.prototype.hasOwnProperty.call(a,t),"Unknown curve "+t),t=a[t]),t instanceof a.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=c,c.prototype.keyPair=function(t){return new h(this,t)},c.prototype.keyFromPrivate=function(t,e){return h.fromPrivate(this,t,e)},c.prototype.keyFromPublic=function(t,e){return h.fromPublic(this,t,e)},c.prototype.genKeyPair=function(t){t||(t={});for(var e=new i({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||s(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),o=this.n.sub(new r(2));;){var a=new r(e.generate(n));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},c.prototype._truncateToN=function(t,e,n){var i;if(r.isBN(t)||"number"==typeof t)i=(t=new r(t,16)).byteLength();else if("object"==typeof t)i=t.length,t=new r(t,16);else{var o=t.toString();i=o.length+1>>>1,t=new r(o,16)}"number"!=typeof n&&(n=8*i);var a=n-this.n.bitLength();return a>0&&(t=t.ushrn(a)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},c.prototype.sign=function(t,e,n,o){if("object"==typeof n&&(o=n,n=null),o||(o={}),"string"!=typeof t&&"number"!=typeof t&&!r.isBN(t)){l("object"==typeof t&&t&&"number"==typeof t.length,"Expected message to be an array-like, a hex string, or a BN instance"),l(t.length>>>0===t.length);for(var a=0;a<t.length;a++)l((255&t[a])===t[a])}e=this.keyFromPrivate(e,n),t=this._truncateToN(t,!1,o.msgBitLength),l(!t.isNeg(),"Can not sign a negative message");var s=this.n.byteLength(),h=e.getPrivate().toArray("be",s),c=t.toArray("be",s);l(new r(c).eq(t),"Can not sign message");for(var d=new i({hash:this.hash,entropy:h,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),f=this.n.sub(new r(1)),p=0;;p++){var m=o.k?o.k(p):new r(d.generate(this.n.byteLength()));if(!((m=this._truncateToN(m,!0)).cmpn(1)<=0||m.cmp(f)>=0)){var g=this.g.mul(m);if(!g.isInfinity()){var y=g.getX(),b=y.umod(this.n);if(0!==b.cmpn(0)){var v=m.invm(this.n).mul(b.mul(e.getPrivate()).iadd(t));if(0!==(v=v.umod(this.n)).cmpn(0)){var A=(g.getY().isOdd()?1:0)|(0!==y.cmp(b)?2:0);return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),A^=1),new u({r:b,s:v,recoveryParam:A})}}}}}},c.prototype.verify=function(t,e,n,r,i){i||(i={}),t=this._truncateToN(t,!1,i.msgBitLength),n=this.keyFromPublic(n,r);var o=(e=new u(e,"hex")).r,a=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,l=a.invm(this.n),h=l.mul(t).umod(this.n),c=l.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(h,n.getPublic(),c)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(h,n.getPublic(),c)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},c.prototype.recoverPubKey=function(t,e,n,i){l((3&n)===n,"The recovery param is more than two bits"),e=new u(e,i);var o=this.n,a=new r(t),s=e.r,h=e.s,c=1&n,d=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),c):this.curve.pointFromX(s,c);var f=e.r.invm(o),p=o.sub(a).mul(f).umod(o),m=h.mul(f).umod(o);return this.g.mulAdd(p,s,m)},c.prototype.getKeyRecoveryParam=function(t,e,n,r){if(null!==(e=new u(e,r)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},9262(t,e,n){"use strict";var r=n(8836),i=n(6549).assert;function o(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=o,o.fromPublic=function(t,e,n){return e instanceof o?e:new o(t,{pub:e,pubEnc:n})},o.fromPrivate=function(t,e,n){return e instanceof o?e:new o(t,{priv:e,privEnc:n})},o.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},o.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(t,e){this.priv=new r(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?i(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},o.prototype.derive=function(t){return t.validate()||i(t.validate(),"public point not validated"),t.mul(this.priv).getX()},o.prototype.sign=function(t,e,n){return this.ec.sign(t,this,e,n)},o.prototype.verify=function(t,e,n){return this.ec.verify(t,e,this,void 0,n)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},6019(t,e,n){"use strict";var r=n(8836),i=n(6549),o=i.assert;function a(t,e){if(t instanceof a)return t;this._importDER(t,e)||(o(t.r&&t.s,"Signature without r or s"),this.r=new r(t.r,16),this.s=new r(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function s(){this.place=0}function l(t,e){var n=t[e.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;if(0===t[e.place])return!1;for(var i=0,o=0,a=e.place;o<r;o++,a++)i<<=8,i|=t[a],i>>>=0;return!(i<=127)&&(e.place=a,i)}function h(t){for(var e=0,n=t.length-1;!t[e]&&!(128&t[e+1])&&e<n;)e++;return 0===e?t:t.slice(e)}function u(t,e){if(e<128)t.push(e);else{var n=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}}t.exports=a,a.prototype._importDER=function(t,e){t=i.toArray(t,e);var n=new s;if(48!==t[n.place++])return!1;var o=l(t,n);if(!1===o)return!1;if(o+n.place!==t.length)return!1;if(2!==t[n.place++])return!1;var a=l(t,n);if(!1===a)return!1;if(128&t[n.place])return!1;var h=t.slice(n.place,a+n.place);if(n.place+=a,2!==t[n.place++])return!1;var u=l(t,n);if(!1===u)return!1;if(t.length!==u+n.place)return!1;if(128&t[n.place])return!1;var c=t.slice(n.place,u+n.place);if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}return this.r=new r(h),this.s=new r(c),this.recoveryParam=null,!0},a.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=h(e),n=h(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];u(r,e.length),(r=r.concat(e)).push(2),u(r,n.length);var o=r.concat(n),a=[48];return u(a,o.length),a=a.concat(o),i.encode(a,t)}},7924(t,e,n){"use strict";var r=n(7482),i=n(5474),o=n(6549),a=o.assert,s=o.parseBytes,l=n(5511),h=n(4306);function u(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof u))return new u(t);t=i[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=r.sha512}t.exports=u,u.prototype.sign=function(t,e){t=s(t);var n=this.keyFromSecret(e),r=this.hashInt(n.messagePrefix(),t),i=this.g.mul(r),o=this.encodePoint(i),a=this.hashInt(o,n.pubBytes(),t).mul(n.priv()),l=r.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:l,Rencoded:o})},u.prototype.verify=function(t,e,n){if(t=s(t),(e=this.makeSignature(e)).S().gte(e.eddsa.curve.n)||e.S().isNeg())return!1;var r=this.keyFromPublic(n),i=this.hashInt(e.Rencoded(),r.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(r.pub().mul(i)).eq(o)},u.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return o.intFromLE(t.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(t){return l.fromPublic(this,t)},u.prototype.keyFromSecret=function(t){return l.fromSecret(this,t)},u.prototype.makeSignature=function(t){return t instanceof h?t:new h(this,t)},u.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},u.prototype.decodePoint=function(t){var e=(t=o.parseBytes(t)).length-1,n=t.slice(0,e).concat(-129&t[e]),r=!!(128&t[e]),i=o.intFromLE(n);return this.curve.pointFromY(i,r)},u.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(t){return o.intFromLE(t)},u.prototype.isPoint=function(t){return t instanceof this.pointClass}},5511(t,e,n){"use strict";var r=n(6549),i=r.assert,o=r.parseBytes,a=r.cachedProperty;function s(t,e){this.eddsa=t,this._secret=o(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=o(e.pub)}s.fromPublic=function(t,e){return e instanceof s?e:new s(t,{pub:e})},s.fromSecret=function(t,e){return e instanceof s?e:new s(t,{secret:e})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(s,"privBytes",function(){var t=this.eddsa,e=this.hash(),n=t.encodingLength-1,r=e.slice(0,t.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r}),a(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(t){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},s.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},s.prototype.getSecret=function(t){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),t)},s.prototype.getPublic=function(t){return r.encode(this.pubBytes(),t)},t.exports=s},4306(t,e,n){"use strict";var r=n(8836),i=n(6549),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function l(t,e){this.eddsa=t,"object"!=typeof e&&(e=s(e)),Array.isArray(e)&&(o(e.length===2*t.encodingLength,"Signature has invalid size"),e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),o(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof r&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}a(l,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(l,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(l,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(l,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=l},2709(t){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},6549(t,e,n){"use strict";var r=e,i=n(8836),o=n(9619),a=n(9993);r.assert=o,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(t,e,n){var r,i=new Array(Math.max(t.bitLength(),n)+1);for(r=0;r<i.length;r+=1)i[r]=0;var o=1<<e+1,a=t.clone();for(r=0;r<i.length;r++){var s,l=a.andln(o-1);a.isOdd()?(s=l>(o>>1)-1?(o>>1)-l:l,a.isubn(s)):s=0,i[r]=s,a.iushrn(1)}return i},r.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var r,i=0,o=0;t.cmpn(-i)>0||e.cmpn(-o)>0;){var a,s,l=t.andln(3)+i&3,h=e.andln(3)+o&3;3===l&&(l=-1),3===h&&(h=-1),a=1&l?3!=(r=t.andln(7)+i&7)&&5!==r||2!==h?l:-l:0,n[0].push(a),s=1&h?3!=(r=e.andln(7)+o&7)&&5!==r||2!==l?h:-h:0,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return n},r.cachedProperty=function(t,e,n){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(t){return"string"==typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new i(t,"hex","le")}},8836(t,e,n){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(9368).Buffer}catch(t){}function s(t,e){var n=t.charCodeAt(e);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function l(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function h(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,n):(this._parseBase(t,e,i),"le"===n&&this._initArray(this.toArray(),e,n)))},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,a=0;if("be"===n)for(r=t.length-1;r>=e;r-=2)i=l(t,e,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r<t.length;r+=2)i=l(t,e,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u<s;u+=r)l=h(t,u,u+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var c=1;for(l=h(t,u,t.length,e),u=0;u<a;u++)c*=e;this.imuln(c),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var h=1;h<r;h++){for(var u=l>>>26,c=67108863&l,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;u+=(a=(i=0|t.words[p])*(o=0|e.words[f])+c)/67108864|0,c=67108863&a}n.words[h]=0|c,l=0|u}return 0!==l?n.words[h]=0|l:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),n=0!==o||a!==this.length-1?u[6-l.length]+l+n:l+n}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],f=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);n=(p=p.idivn(f)).isZero()?m+n:u[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===e,h=new t(o),u=this.clone();if(l){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),h[s]=a;for(;s<o;s++)h[s]=0}else{for(s=0;s<o-i;s++)h[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),h[o-s-1]=a}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 8191&e||(n+=13,e>>>=13),127&e||(n+=7,e>>>=7),15&e||(n+=4,e>>>=4),3&e||(n+=2,e>>>=2),1&e||n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)o=(e=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)o=(e=(0|n.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,n){var r,i,o,a=t.words,s=e.words,l=n.words,h=0,u=0|a[0],c=8191&u,d=u>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],y=8191&g,b=g>>>13,v=0|a[3],A=8191&v,w=v>>>13,E=0|a[4],M=8191&E,C=E>>>13,_=0|a[5],x=8191&_,B=_>>>13,k=0|a[6],S=8191&k,I=k>>>13,T=0|a[7],P=8191&T,R=T>>>13,L=0|a[8],N=8191&L,O=L>>>13,j=0|a[9],q=8191&j,D=j>>>13,U=0|s[0],z=8191&U,H=U>>>13,F=0|s[1],$=8191&F,W=F>>>13,Y=0|s[2],K=8191&Y,Z=Y>>>13,V=0|s[3],X=8191&V,J=V>>>13,G=0|s[4],Q=8191&G,tt=G>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],lt=8191&st,ht=st>>>13,ut=0|s[8],ct=8191&ut,dt=ut>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(h+(r=Math.imul(c,z))|0)+((8191&(i=(i=Math.imul(c,H))+Math.imul(d,z)|0))<<13)|0;h=((o=Math.imul(d,H))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H);var yt=(h+(r=r+Math.imul(c,$)|0)|0)+((8191&(i=(i=i+Math.imul(c,W)|0)+Math.imul(d,$)|0))<<13)|0;h=((o=o+Math.imul(d,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,W)|0;var bt=(h+(r=r+Math.imul(c,K)|0)|0)+((8191&(i=(i=i+Math.imul(c,Z)|0)+Math.imul(d,K)|0))<<13)|0;h=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,H))+Math.imul(w,z)|0,o=Math.imul(w,H),r=r+Math.imul(y,$)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,W)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Z)|0;var vt=(h+(r=r+Math.imul(c,X)|0)|0)+((8191&(i=(i=i+Math.imul(c,J)|0)+Math.imul(d,X)|0))<<13)|0;h=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(C,z)|0,o=Math.imul(C,H),r=r+Math.imul(A,$)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,W)|0,r=r+Math.imul(y,K)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,Z)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,J)|0;var At=(h+(r=r+Math.imul(c,Q)|0)|0)+((8191&(i=(i=i+Math.imul(c,tt)|0)+Math.imul(d,Q)|0))<<13)|0;h=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(B,z)|0,o=Math.imul(B,H),r=r+Math.imul(M,$)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,W)|0,r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var wt=(h+(r=r+Math.imul(c,nt)|0)|0)+((8191&(i=(i=i+Math.imul(c,rt)|0)+Math.imul(d,nt)|0))<<13)|0;h=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(S,z),i=(i=Math.imul(S,H))+Math.imul(I,z)|0,o=Math.imul(I,H),r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,W)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var Et=(h+(r=r+Math.imul(c,ot)|0)|0)+((8191&(i=(i=i+Math.imul(c,at)|0)+Math.imul(d,ot)|0))<<13)|0;h=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,H))+Math.imul(R,z)|0,o=Math.imul(R,H),r=r+Math.imul(S,$)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,W)|0,r=r+Math.imul(x,K)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(y,nt)|0,i=(i=i+Math.imul(y,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(h+(r=r+Math.imul(c,lt)|0)|0)+((8191&(i=(i=i+Math.imul(c,ht)|0)+Math.imul(d,lt)|0))<<13)|0;h=((o=o+Math.imul(d,ht)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(O,z)|0,o=Math.imul(O,H),r=r+Math.imul(P,$)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,W)|0,r=r+Math.imul(S,K)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,Z)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(w,nt)|0,o=o+Math.imul(w,rt)|0,r=r+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,lt)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(m,lt)|0,o=o+Math.imul(m,ht)|0;var Ct=(h+(r=r+Math.imul(c,ct)|0)|0)+((8191&(i=(i=i+Math.imul(c,dt)|0)+Math.imul(d,ct)|0))<<13)|0;h=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(q,z),i=(i=Math.imul(q,H))+Math.imul(D,z)|0,o=Math.imul(D,H),r=r+Math.imul(N,$)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,W)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Z)|0,r=r+Math.imul(S,X)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,J)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,r=r+Math.imul(y,lt)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(b,lt)|0,o=o+Math.imul(b,ht)|0,r=r+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,dt)|0;var _t=(h+(r=r+Math.imul(c,pt)|0)|0)+((8191&(i=(i=i+Math.imul(c,mt)|0)+Math.imul(d,pt)|0))<<13)|0;h=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(q,$),i=(i=Math.imul(q,W))+Math.imul(D,$)|0,o=Math.imul(D,W),r=r+Math.imul(N,K)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(B,nt)|0,o=o+Math.imul(B,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(A,lt)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(w,lt)|0,o=o+Math.imul(w,ht)|0,r=r+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(b,ct)|0,o=o+Math.imul(b,dt)|0;var xt=(h+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(q,K),i=(i=Math.imul(q,Z))+Math.imul(D,K)|0,o=Math.imul(D,Z),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(S,nt)|0,i=(i=i+Math.imul(S,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,r=r+Math.imul(M,lt)|0,i=(i=i+Math.imul(M,ht)|0)+Math.imul(C,lt)|0,o=o+Math.imul(C,ht)|0,r=r+Math.imul(A,ct)|0,i=(i=i+Math.imul(A,dt)|0)+Math.imul(w,ct)|0,o=o+Math.imul(w,dt)|0;var Bt=(h+(r=r+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(b,pt)|0))<<13)|0;h=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(q,X),i=(i=Math.imul(q,J))+Math.imul(D,X)|0,o=Math.imul(D,J),r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(S,ot)|0,i=(i=i+Math.imul(S,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,r=r+Math.imul(x,lt)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(B,lt)|0,o=o+Math.imul(B,ht)|0,r=r+Math.imul(M,ct)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,dt)|0;var kt=(h+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(w,pt)|0))<<13)|0;h=((o=o+Math.imul(w,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(q,Q),i=(i=Math.imul(q,tt))+Math.imul(D,Q)|0,o=Math.imul(D,tt),r=r+Math.imul(N,nt)|0,i=(i=i+Math.imul(N,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(S,lt)|0,i=(i=i+Math.imul(S,ht)|0)+Math.imul(I,lt)|0,o=o+Math.imul(I,ht)|0,r=r+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(B,ct)|0,o=o+Math.imul(B,dt)|0;var St=(h+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(C,pt)|0))<<13)|0;h=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(q,nt),i=(i=Math.imul(q,rt))+Math.imul(D,nt)|0,o=Math.imul(D,rt),r=r+Math.imul(N,ot)|0,i=(i=i+Math.imul(N,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,r=r+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(R,lt)|0,o=o+Math.imul(R,ht)|0,r=r+Math.imul(S,ct)|0,i=(i=i+Math.imul(S,dt)|0)+Math.imul(I,ct)|0,o=o+Math.imul(I,dt)|0;var It=(h+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(B,pt)|0))<<13)|0;h=((o=o+Math.imul(B,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(q,ot),i=(i=Math.imul(q,at))+Math.imul(D,ot)|0,o=Math.imul(D,at),r=r+Math.imul(N,lt)|0,i=(i=i+Math.imul(N,ht)|0)+Math.imul(O,lt)|0,o=o+Math.imul(O,ht)|0,r=r+Math.imul(P,ct)|0,i=(i=i+Math.imul(P,dt)|0)+Math.imul(R,ct)|0,o=o+Math.imul(R,dt)|0;var Tt=(h+(r=r+Math.imul(S,pt)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(I,pt)|0))<<13)|0;h=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(q,lt),i=(i=Math.imul(q,ht))+Math.imul(D,lt)|0,o=Math.imul(D,ht),r=r+Math.imul(N,ct)|0,i=(i=i+Math.imul(N,dt)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,dt)|0;var Pt=(h+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(R,pt)|0))<<13)|0;h=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(q,ct),i=(i=Math.imul(q,dt))+Math.imul(D,ct)|0,o=Math.imul(D,dt);var Rt=(h+(r=r+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var Lt=(h+(r=Math.imul(q,pt))|0)+((8191&(i=(i=Math.imul(q,mt))+Math.imul(D,pt)|0))<<13)|0;return h=((o=Math.imul(D,mt))+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=At,l[5]=wt,l[6]=Et,l[7]=Mt,l[8]=Ct,l[9]=_t,l[10]=xt,l[11]=Bt,l[12]=kt,l[13]=St,l[14]=It,l[15]=Tt,l[16]=Pt,l[17]=Rt,l[18]=Lt,0!==h&&(l[19]=h,n.length++),n};function m(t,e,n){return(new g).mulp(t,e,n)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=f),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?p(this,t,e):r<63?f(this,t,e):r<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,l=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=l;h++){var u=o-h,c=(0|t.words[u])*(0|e.words[h]),d=67108863&c;s=67108863&(d=d+s|0),i+=(a=(a=a+(c/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):m(this,t,e),n},g.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},g.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},g.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},g.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),h=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var c=l,d=h,f=0;f<a;f++){var p=n[u+f],m=r[u+f],g=n[u+f+a],y=r[u+f+a],b=c*g-d*y;y=c*y+d*g,g=b,n[u+f]=p+g,r[u+f]=m+y,n[u+f+a]=p-g,r[u+f+a]=m-y,f!==s&&(b=l*c-h*d,d=l*d+h*c,c=b)}},g.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},g.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},g.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(!(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},g.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),l=new Array(r),h=new Array(r),u=new Array(r),c=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,h,r),this.transform(a,o,s,l,r,i),this.transform(h,o,u,c,r,i);for(var f=0;f<r;f++){var p=s[f]*u[f]-l[f]*c[f];l[f]=s[f]*c[f]+l[f]*u[f],s[f]=p}return this.conjugate(s,l,r),this.transform(s,l,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this.length=0===t?1:this.length,this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,l=(0|this.words[e])-s<<n;this.words[e]=l|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,l=n;if(i-=a,i=Math.max(0,i),l){for(var h=0;h<a;h++)l.words[h]=this.words[h];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var u=0;for(h=this.length-1;h>=0&&(0!==u||h>=i);h--){var c=0|this.words[h];this.words[h]=u<<26-o|c>>>o,u=c&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n||!(this.words[n]&i))},o.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var l=(0|t.words[i])*e;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!=(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,l=r.length-i.length;if("mod"!==e){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var h=0;h<s.length;h++)s.words[h]=0}var u=r.clone()._ishlnsubmul(i,1,l);0===u.negative&&(r=u,s&&(s.words[l]=1));for(var c=l-1;c>=0;c--){var d=67108864*(0|r.words[i.length+c])+(0|r.words[i.length+c-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,c);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,c),r.isZero()||(r.negative^=1);s&&(s.words[c]=d)}return s&&s.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),h=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++h;for(var u=n.clone(),c=e.clone();!e.isZero();){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(c)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(c)),s.iushrn(1),l.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(l)):(n.isub(e),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:n.iushln(h)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),l=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var h=0,u=1;0===(e.words[0]&u)&&h<26;++h,u<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var c=0,d=1;0===(n.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(n.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new M(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(v,b),v.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&n)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(A,b),i(w,b),i(E,b),E.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new A;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return y[t]=e,e},M.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},M.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),h=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,h).cmp(l);)u.redIAdd(l);for(var c=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<p);var y=this.pow(c,new o(1).iushln(p-g-1));d=d.redMul(y),c=y.redSqr(),f=f.redMul(c),p=g}return d},M.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},M.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],a=0,s=0,l=e.bitLength()%26;for(0===l&&(l=26),r=e.length-1;r>=0;r--){for(var h=e.words[r],u=l-1;u>=0;u--){var c=h>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==c||0!==a?(a<<=1,a|=c,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}l=26}return i},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new C(t)},i(C,M),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=n.nmd(t),this)},7737(t){"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},8863(t){"use strict";t.exports=EvalError},1053(t){"use strict";t.exports=Error},568(t){"use strict";t.exports=RangeError},6044(t){"use strict";t.exports=ReferenceError},2202(t){"use strict";t.exports=SyntaxError},4097(t){"use strict";t.exports=TypeError},7015(t){"use strict";t.exports=URIError},1574(t){"use strict";t.exports=Object},6737(t){"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise(function(n,r){function i(n){t.removeListener(e,o),r(n)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",i),n([].slice.call(arguments))}m(t,e,o,{once:!0}),"error"!==e&&function(t,e){"function"==typeof t.on&&m(t,"error",e,{once:!0})}(t,i)})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function h(t,e,n,r){var i,o,a,h;if(s(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),a=o[e]),void 0===a)a=o[e]=n,++t._eventsCount;else if("function"==typeof a?a=o[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(t))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,h=u,console&&console.warn&&console.warn(h)}return t}function u(){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)}function c(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function d(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):p(i,i.length)}function f(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function m(t,e,n,r){if("function"==typeof t.on)r.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,function i(o){r.once&&t.removeEventListener(e,i),n(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");a=t}}),o.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},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[t];if(void 0===l)return!1;if("function"==typeof l)r(l,this,e);else{var h=l.length,u=p(l,h);for(n=0;n<h;++n)r(u[n],this,e)}return!0},o.prototype.addListener=function(t,e){return h(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return h(this,t,e,!0)},o.prototype.once=function(t,e){return s(e),this.on(t,c(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return s(e),this.prependListener(t,c(this,t,e)),this},o.prototype.removeListener=function(t,e){var n,r,i,o,a;if(s(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},o.prototype.listeners=function(t){return d(this,t,!0)},o.prototype.rawListeners=function(t){return d(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):f.call(t,e)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},9336(t,e,n){var r=n(2091).Buffer,i=n(4330);t.exports=function(t,e,n,o){if(r.isBuffer(t)||(t=r.from(t,"binary")),e&&(r.isBuffer(e)||(e=r.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,s=r.alloc(a),l=r.alloc(o||0),h=r.alloc(0);a>0||o>0;){var u=new i;u.update(h),u.update(t),e&&u.update(e),h=u.digest();var c=0;if(a>0){var d=s.length-a;c=Math.min(a,h.length),h.copy(s,d,0,c),a-=c}if(c<h.length&&o>0){var f=l.length-o,p=Math.min(o,h.length-c);h.copy(l,f,c,c+p),o-=p}}return h.fill(0),{key:s,iv:l}}},3044(t,e,n){"use strict";var r=n(9778),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){if(!r(e))throw new TypeError("iterator must be a function");var a,s;arguments.length>=3&&(a=n),s=t,"[object Array]"===i.call(s)?function(t,e,n){for(var r=0,i=t.length;r<i;r++)o.call(t,r)&&(null==n?e(t[r],r,t):e.call(n,t[r],r,t))}(t,e,a):"string"==typeof t?function(t,e,n){for(var r=0,i=t.length;r<i;r++)null==n?e(t.charAt(r),r,t):e.call(n,t.charAt(r),r,t)}(t,e,a):function(t,e,n){for(var r in t)o.call(t,r)&&(null==n?e(t[r],r,t):e.call(n,t[r],r,t))}(t,e,a)}},6527(t){"use strict";var e=Object.prototype.toString,n=Math.max,r=function(t,e){for(var n=[],r=0;r<t.length;r+=1)n[r]=t[r];for(var i=0;i<e.length;i+=1)n[i+t.length]=e[i];return n};t.exports=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(t){for(var e=[],n=1,r=0;n<t.length;n+=1,r+=1)e[r]=t[n];return e}(arguments),s=n(0,i.length-a.length),l=[],h=0;h<s;h++)l[h]="$"+h;if(o=Function("binder","return function ("+function(t){for(var e="",n=0;n<t.length;n+=1)e+=t[n],n+1<t.length&&(e+=",");return e}(l)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var e=i.apply(this,r(a,arguments));return Object(e)===e?e:this}return i.apply(t,r(a,arguments))}),i.prototype){var u=function(){};u.prototype=i.prototype,o.prototype=new u,u.prototype=null}return o}},7721(t,e,n){"use strict";var r=n(6527);t.exports=Function.prototype.bind||r},1051(t,e,n){"use strict";var r,i=n(1574),o=n(1053),a=n(8863),s=n(568),l=n(6044),h=n(2202),u=n(4097),c=n(7015),d=n(2652),f=n(634),p=n(5934),m=n(2992),g=n(2722),y=n(44),b=n(1527),v=Function,A=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch(t){}},w=n(8109),E=n(7737),M=function(){throw new u},C=w?function(){try{return M}catch(t){try{return w(arguments,"callee").get}catch(t){return M}}}():M,_=n(2377)(),x=n(5458),B=n(4662),k=n(4694),S=n(2428),I=n(9534),T={},P="undefined"!=typeof Uint8Array&&x?x(Uint8Array):r,R={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":_&&x?x([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":T,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&x?x(x([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&_&&x?x((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&_&&x?x((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&x?x(""[Symbol.iterator]()):r,"%Symbol%":_?Symbol:r,"%SyntaxError%":h,"%ThrowTypeError%":C,"%TypedArray%":P,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":S,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":B,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":b,"%Reflect.getPrototypeOf%":k};if(x)try{null.error}catch(t){var L=x(x(t));R["%Error.prototype%"]=L}var N=function t(e){var n;if("%AsyncFunction%"===e)n=A("async function () {}");else if("%GeneratorFunction%"===e)n=A("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=A("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&x&&(n=x(i.prototype))}return R[e]=n,n},O={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},j=n(7721),q=n(5567),D=j.call(I,Array.prototype.concat),U=j.call(S,Array.prototype.splice),z=j.call(I,String.prototype.replace),H=j.call(I,String.prototype.slice),F=j.call(I,RegExp.prototype.exec),$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,Y=function(t,e){var n,r=t;if(q(O,r)&&(r="%"+(n=O[r])[0]+"%"),q(R,r)){var i=R[r];if(i===T&&(i=N(r)),void 0===i&&!e)throw new u("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new h("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===F(/^%?[^%]*%?$/,t))throw new h("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(t){var e=H(t,0,1),n=H(t,-1);if("%"===e&&"%"!==n)throw new h("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new h("invalid intrinsic syntax, expected opening `%`");var r=[];return z(t,$,function(t,e,n,i){r[r.length]=n?z(i,W,"$1"):e||t}),r}(t),r=n.length>0?n[0]:"",i=Y("%"+r+"%",e),o=i.name,a=i.value,s=!1,l=i.alias;l&&(r=l[0],U(n,D([0,1],l)));for(var c=1,d=!0;c<n.length;c+=1){var f=n[c],p=H(f,0,1),m=H(f,-1);if(('"'===p||"'"===p||"`"===p||'"'===m||"'"===m||"`"===m)&&p!==m)throw new h("property names with quotes must have matching quotes");if("constructor"!==f&&d||(s=!0),q(R,o="%"+(r+="."+f)+"%"))a=R[o];else if(null!=a){if(!(f in a)){if(!e)throw new u("base intrinsic for "+t+" exists, but the property is not available.");return}if(w&&c+1>=n.length){var g=w(a,f);a=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[f]}else d=q(a,f),a=a[f];d&&!s&&(R[o]=a)}}return a}},4662(t,e,n){"use strict";var r=n(1574);t.exports=r.getPrototypeOf||null},4694(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},5458(t,e,n){"use strict";var r=n(4694),i=n(4662),o=n(6678);t.exports=r?function(t){return r(t)}:i?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return i(t)}:o?function(t){return o(t)}:null},6607(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},8109(t,e,n){"use strict";var r=n(6607);if(r)try{r([],"length")}catch(t){r=null}t.exports=r},4346(t,e,n){"use strict";var r=n(7737),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},2377(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(5627);t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5627(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},6386(t,e,n){"use strict";var r=n(5627);t.exports=function(){return r()&&!!Symbol.toStringTag}},9787(t,e,n){"use strict";var r=n(2091).Buffer,i=n(4688).Transform;function o(t){i.call(this),this._block=r.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(7832)(o,i),o.prototype._transform=function(t,e,n){var r=null;try{this.update(t,e)}catch(t){r=t}n(r)},o.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)};var a="undefined"!=typeof Uint8Array,s="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&ArrayBuffer.isView&&(r.prototype instanceof Uint8Array||r.TYPED_ARRAY_SUPPORT);o.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");t=function(t,e){if(t instanceof r)return t;if("string"==typeof t)return r.from(t,e);if(s&&ArrayBuffer.isView(t)){if(0===t.byteLength)return r.alloc(0);var n=r.from(t.buffer,t.byteOffset,t.byteLength);if(n.byteLength===t.byteLength)return n}if(a&&t instanceof Uint8Array)return r.from(t);if(r.isBuffer(t)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))return r.from(t);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}(t,e);for(var n=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)n[o++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)n[this._blockOffset++]=t[i++];for(var l=0,h=8*t.length;h>0;++l)this._length[l]+=h,(h=this._length[l]/4294967296|0)>0&&(this._length[l]-=4294967296*h);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},7482(t,e,n){var r=e;r.utils=n(212),r.common=n(7696),r.sha=n(7599),r.ripemd=n(9974),r.hmac=n(6442),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},7696(t,e,n){"use strict";var r=n(212),i=n(9619);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=o,o.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},o.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},o.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=t>>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},6442(t,e,n){"use strict";var r=n(212),i=n(9619);function o(t,e,n){if(!(this instanceof o))return new o(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(e,n))}t.exports=o,o.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},o.prototype.update=function(t,e){return this.inner.update(t,e),this},o.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},9974(t,e,n){"use strict";var r=n(212),i=n(7696),o=r.rotl32,a=r.sum32,s=r.sum32_3,l=r.sum32_4,h=i.BlockHash;function u(){if(!(this instanceof u))return new u;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function c(t,e,n,r){return t<=15?e^n^r:t<=31?e&n|~e&r:t<=47?(e|~n)^r:t<=63?e&r|n&~r:e^(n|~r)}function d(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function f(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}r.inherits(u,h),e.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(t,e){for(var n=this.h[0],r=this.h[1],i=this.h[2],h=this.h[3],u=this.h[4],b=n,v=r,A=i,w=h,E=u,M=0;M<80;M++){var C=a(o(l(n,c(M,r,i,h),t[p[M]+e],d(M)),g[M]),u);n=u,u=h,h=o(i,10),i=r,r=C,C=a(o(l(b,c(79-M,v,A,w),t[m[M]+e],f(M)),y[M]),E),b=E,E=w,w=o(A,10),A=v,v=C}C=s(this.h[1],i,w),this.h[1]=s(this.h[2],h,E),this.h[2]=s(this.h[3],u,b),this.h[3]=s(this.h[4],n,v),this.h[4]=s(this.h[0],r,A),this.h[0]=C},u.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},7599(t,e,n){"use strict";e.sha1=n(2931),e.sha224=n(9040),e.sha256=n(1957),e.sha384=n(9825),e.sha512=n(4144)},2931(t,e,n){"use strict";var r=n(212),i=n(7696),o=n(5867),a=r.rotl32,s=r.sum32,l=r.sum32_5,h=o.ft_1,u=i.BlockHash,c=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(d,u),t.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],d=this.h[3],f=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),m=l(a(i,5),h(p,o,u,d),f,n[r],c[p]);f=d,d=u,u=a(o,30),o=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],f)},d.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},9040(t,e,n){"use strict";var r=n(212),i=n(1957);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(o,i),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},1957(t,e,n){"use strict";var r=n(212),i=n(7696),o=n(5867),a=n(9619),s=r.sum32,l=r.sum32_4,h=r.sum32_5,u=o.ch32,c=o.maj32,d=o.s0_256,f=o.s1_256,p=o.g0_256,m=o.g1_256,g=i.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}r.inherits(b,g),t.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=l(m(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],g=this.h[2],y=this.h[3],b=this.h[4],v=this.h[5],A=this.h[6],w=this.h[7];for(a(this.k.length===n.length),r=0;r<n.length;r++){var E=h(w,f(b),u(b,v,A),this.k[r],n[r]),M=s(d(i),c(i,o,g));w=A,A=v,v=b,b=s(y,E),y=g,g=o,o=i,i=s(E,M)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],y),this.h[4]=s(this.h[4],b),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],A),this.h[7]=s(this.h[7],w)},b.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},9825(t,e,n){"use strict";var r=n(212),i=n(4144);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(o,i),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},4144(t,e,n){"use strict";var r=n(212),i=n(7696),o=n(9619),a=r.rotr64_hi,s=r.rotr64_lo,l=r.shr64_hi,h=r.shr64_lo,u=r.sum64,c=r.sum64_hi,d=r.sum64_lo,f=r.sum64_4_hi,p=r.sum64_4_lo,m=r.sum64_5_hi,g=r.sum64_5_lo,y=i.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function A(t,e,n,r,i){var o=t&n^~t&i;return o<0&&(o+=4294967296),o}function w(t,e,n,r,i,o){var a=e&r^~e&o;return a<0&&(a+=4294967296),a}function E(t,e,n,r,i){var o=t&n^t&i^n&i;return o<0&&(o+=4294967296),o}function M(t,e,n,r,i,o){var a=e&r^e&o^r&o;return a<0&&(a+=4294967296),a}function C(t,e){var n=a(t,e,28)^a(e,t,2)^a(e,t,7);return n<0&&(n+=4294967296),n}function _(t,e){var n=s(t,e,28)^s(e,t,2)^s(e,t,7);return n<0&&(n+=4294967296),n}function x(t,e){var n=a(t,e,14)^a(t,e,18)^a(e,t,9);return n<0&&(n+=4294967296),n}function B(t,e){var n=s(t,e,14)^s(t,e,18)^s(e,t,9);return n<0&&(n+=4294967296),n}function k(t,e){var n=a(t,e,1)^a(t,e,8)^l(t,e,7);return n<0&&(n+=4294967296),n}function S(t,e){var n=s(t,e,1)^s(t,e,8)^h(t,e,7);return n<0&&(n+=4294967296),n}function I(t,e){var n=a(t,e,19)^a(e,t,29)^l(t,e,6);return n<0&&(n+=4294967296),n}function T(t,e){var n=s(t,e,19)^s(e,t,29)^h(t,e,6);return n<0&&(n+=4294967296),n}r.inherits(v,y),t.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(t,e){for(var n=this.W,r=0;r<32;r++)n[r]=t[e+r];for(;r<n.length;r+=2){var i=I(n[r-4],n[r-3]),o=T(n[r-4],n[r-3]),a=n[r-14],s=n[r-13],l=k(n[r-30],n[r-29]),h=S(n[r-30],n[r-29]),u=n[r-32],c=n[r-31];n[r]=f(i,o,a,s,l,h,u,c),n[r+1]=p(i,o,a,s,l,h,u,c)}},v.prototype._update=function(t,e){this._prepareBlock(t,e);var n=this.W,r=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4],h=this.h[5],f=this.h[6],p=this.h[7],y=this.h[8],b=this.h[9],v=this.h[10],k=this.h[11],S=this.h[12],I=this.h[13],T=this.h[14],P=this.h[15];o(this.k.length===n.length);for(var R=0;R<n.length;R+=2){var L=T,N=P,O=x(y,b),j=B(y,b),q=A(y,0,v,0,S),D=w(0,b,0,k,0,I),U=this.k[R],z=this.k[R+1],H=n[R],F=n[R+1],$=m(L,N,O,j,q,D,U,z,H,F),W=g(L,N,O,j,q,D,U,z,H,F);L=C(r,i),N=_(r,i),O=E(r,0,a,0,l),j=M(0,i,0,s,0,h);var Y=c(L,N,O,j),K=d(L,N,O,j);T=S,P=I,S=v,I=k,v=y,k=b,y=c(f,p,$,W),b=d(p,p,$,W),f=l,p=h,l=a,h=s,a=r,s=i,r=c($,W,Y,K),i=d($,W,Y,K)}u(this.h,0,r,i),u(this.h,2,a,s),u(this.h,4,l,h),u(this.h,6,f,p),u(this.h,8,y,b),u(this.h,10,v,k),u(this.h,12,S,I),u(this.h,14,T,P)},v.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},5867(t,e,n){"use strict";var r=n(212).rotr32;function i(t,e,n){return t&e^~t&n}function o(t,e,n){return t&e^t&n^e&n}function a(t,e,n){return t^e^n}e.ft_1=function(t,e,n,r){return 0===t?i(e,n,r):1===t||3===t?a(e,n,r):2===t?o(e,n,r):void 0},e.ch32=i,e.maj32=o,e.p32=a,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},212(t,e,n){"use strict";var r=n(9619),i=n(7832);function o(t,e){return 55296==(64512&t.charCodeAt(e))&&!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}function a(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function s(t){return 1===t.length?"0"+t:t}function l(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16))}else for(var r=0,i=0;i<t.length;i++){var a=t.charCodeAt(i);a<128?n[r++]=a:a<2048?(n[r++]=a>>6|192,n[r++]=63&a|128):o(t,i)?(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i<t.length;i++)n[i]=0|t[i];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=s(t[n].toString(16));return e},e.htonl=a,e.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var i=t[r];"little"===e&&(i=a(i)),n+=l(i.toString(16))}return n},e.zero2=s,e.zero8=l,e.join32=function(t,e,n,i){var o=n-e;r(o%4==0);for(var a=new Array(o/4),s=0,l=e;s<a.length;s++,l+=4){var h;h="big"===i?t[l]<<24|t[l+1]<<16|t[l+2]<<8|t[l+3]:t[l+3]<<24|t[l+2]<<16|t[l+1]<<8|t[l],a[s]=h>>>0}return a},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r<t.length;r++,i+=4){var o=t[r];"big"===e?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},e.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},e.sum64=function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,a=(o<r?1:0)+n+i;t[e]=a>>>0,t[e+1]=o},e.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,i,o,a,s){var l=0,h=e;return l+=(h=h+r>>>0)<e?1:0,l+=(h=h+o>>>0)<o?1:0,t+n+i+a+(l+=(h=h+s>>>0)<s?1:0)>>>0},e.sum64_4_lo=function(t,e,n,r,i,o,a,s){return e+r+o+s>>>0},e.sum64_5_hi=function(t,e,n,r,i,o,a,s,l,h){var u=0,c=e;return u+=(c=c+r>>>0)<e?1:0,u+=(c=c+o>>>0)<o?1:0,u+=(c=c+s>>>0)<s?1:0,t+n+i+a+l+(u+=(c=c+h>>>0)<h?1:0)>>>0},e.sum64_5_lo=function(t,e,n,r,i,o,a,s,l,h){return e+r+o+s+h>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},5567(t,e,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(7721);t.exports=o.call(r,i)},93(t,e,n){"use strict";var r=n(7482),i=n(9993),o=n(9619);function a(t){if(!(this instanceof a))return new a(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=i.toArray(t.entropy,t.entropyEnc||"hex"),n=i.toArray(t.nonce,t.nonceEnc||"hex"),r=i.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,r)}t.exports=a,a.prototype._init=function(t,e,n){var r=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},a.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(t,e,n,r){"string"!=typeof e&&(r=n,n=e,e=null),t=i.toArray(t,e),n=i.toArray(n,r),o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},a.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=n,n=e,e=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var o=[];o.length<t;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,t);return this._update(n),this._reseed++,i.encode(a,e)}},4917(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,h=l>>1,u=-7,c=n?i-1:0,d=n?-1:1,f=t[e+c];for(c+=d,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+t[e+c],c+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+t[e+c],c+=d,u-=8);if(0===o)o=1-h;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=h}return(f?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,h=8*o-i-1,u=(1<<h)-1,c=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+c>=1?d/l:d*Math.pow(2,1-c))*l>=2&&(a++,l/=2),a+c>=u?(s=0,a=u):a+c>=1?(s=(e*l-1)*Math.pow(2,i),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<<i|s,h+=i;h>0;t[n+f]=255&a,f+=p,a/=256,h-=8);t[n+f-p]|=128*m}},7832(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},9778(t){"use strict";var e,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i(function(){throw 42},null,e)}catch(t){t!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(t){try{var e=r.call(t);return o.test(e)}catch(t){return!1}},s=function(t){try{return!a(t)&&(r.call(t),!0)}catch(t){return!1}},l=Object.prototype.toString,h="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),c=function(){return!1};if("object"==typeof document){var d=document.all;l.call(d)===l.call(document.all)&&(c=function(t){if((u||!t)&&(void 0===t||"object"==typeof t))try{var e=l.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=i?function(t){if(c(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==n)return!1}return!a(t)&&s(t)}:function(t){if(c(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(h)return s(t);if(a(t))return!1;var e=l.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&s(t)}},9326(t,e,n){"use strict";var r=n(5637);t.exports=function(t){return!!r(t)}},6308(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},4862(t,e,n){var r=n(9244);!function(){"use strict";var e="input is invalid type",i="object"==typeof window,o=i?window:{};o.JS_SHA3_NO_WINDOW&&(i=!1);var a=!i&&"object"==typeof self;!o.JS_SHA3_NO_NODE_JS&&"object"==typeof r&&r.versions&&r.versions.node?o=n.g:a&&(o=self);for(var s=!o.JS_SHA3_NO_COMMON_JS&&t.exports,l="function"==typeof define&&define.amd,h=!o.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,u="0123456789abcdef".split(""),c=[4,1024,262144,67108864],d=[0,8,16,24],f=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],p=[224,256,384,512],m=[128,256],g=["hex","buffer","arrayBuffer","array","digest"],y={128:168,256:136},b=o.JS_SHA3_NO_NODE_JS||!Array.isArray?function(t){return"[object Array]"===Object.prototype.toString.call(t)}:Array.isArray,v=!h||!o.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView?ArrayBuffer.isView:function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer},A=function(t){var n=typeof t;if("string"===n)return[t,!0];if("object"!==n||null===t)throw new Error(e);if(h&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!b(t)&&!v(t))throw new Error(e);return[t,!1]},w=function(t){return 0===A(t)[0].length},E=function(t){for(var e=[],n=0;n<t.length;++n)e[n]=t[n];return e},M=function(t,e,n){return function(r){return new q(t,e,t).update(r)[n]()}},C=function(t,e,n){return function(r,i){return new q(t,e,i).update(r)[n]()}},_=function(t,e,n){return function(e,r,i,o){return I["cshake"+t].update(e,r,i,o)[n]()}},x=function(t,e,n){return function(e,r,i,o){return I["kmac"+t].update(e,r,i,o)[n]()}},B=function(t,e,n,r){for(var i=0;i<g.length;++i){var o=g[i];t[o]=e(n,r,o)}return t},k=function(t,e){var n=M(t,e,"hex");return n.create=function(){return new q(t,e,t)},n.update=function(t){return n.create().update(t)},B(n,M,t,e)},S=[{name:"keccak",padding:[1,256,65536,16777216],bits:p,createMethod:k},{name:"sha3",padding:[6,1536,393216,100663296],bits:p,createMethod:k},{name:"shake",padding:[31,7936,2031616,520093696],bits:m,createMethod:function(t,e){var n=C(t,e,"hex");return n.create=function(n){return new q(t,e,n)},n.update=function(t,e){return n.create(e).update(t)},B(n,C,t,e)}},{name:"cshake",padding:c,bits:m,createMethod:function(t,e){var n=y[t],r=_(t,0,"hex");return r.create=function(r,i,o){return w(i)&&w(o)?I["shake"+t].create(r):new q(t,e,r).bytepad([i,o],n)},r.update=function(t,e,n,i){return r.create(e,n,i).update(t)},B(r,_,t,e)}},{name:"kmac",padding:c,bits:m,createMethod:function(t,e){var n=y[t],r=x(t,0,"hex");return r.create=function(r,i,o){return new D(t,e,i).bytepad(["KMAC",o],n).bytepad([r],n)},r.update=function(t,e,n,i){return r.create(t,n,i).update(e)},B(r,x,t,e)}}],I={},T=[],P=0;P<S.length;++P)for(var R=S[P],L=R.bits,N=0;N<L.length;++N){var O=R.name+"_"+L[N];if(T.push(O),I[O]=R.createMethod(L[N],R.padding),"sha3"!==R.name){var j=R.name+L[N];T.push(j),I[j]=I[O]}}function q(t,e,n){this.blocks=[],this.s=[],this.padding=e,this.outputBits=n,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function D(t,e,n){q.call(this,t,e,n)}q.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e=A(t);t=e[0];for(var n,r,i=e[1],o=this.blocks,a=this.byteCount,s=t.length,l=this.blockCount,h=0,u=this.s;h<s;){if(this.reset)for(this.reset=!1,o[0]=this.block,n=1;n<l+1;++n)o[n]=0;if(i)for(n=this.start;h<s&&n<a;++h)(r=t.charCodeAt(h))<128?o[n>>2]|=r<<d[3&n++]:r<2048?(o[n>>2]|=(192|r>>6)<<d[3&n++],o[n>>2]|=(128|63&r)<<d[3&n++]):r<55296||r>=57344?(o[n>>2]|=(224|r>>12)<<d[3&n++],o[n>>2]|=(128|r>>6&63)<<d[3&n++],o[n>>2]|=(128|63&r)<<d[3&n++]):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++h)),o[n>>2]|=(240|r>>18)<<d[3&n++],o[n>>2]|=(128|r>>12&63)<<d[3&n++],o[n>>2]|=(128|r>>6&63)<<d[3&n++],o[n>>2]|=(128|63&r)<<d[3&n++]);else for(n=this.start;h<s&&n<a;++h)o[n>>2]|=t[h]<<d[3&n++];if(this.lastByteIndex=n,n>=a){for(this.start=n-a,this.block=o[l],n=0;n<l;++n)u[n]^=o[n];U(u),this.reset=!0}else this.start=n}return this},q.prototype.encode=function(t,e){var n=255&t,r=1,i=[n];for(n=255&(t>>=8);n>0;)i.unshift(n),n=255&(t>>=8),++r;return e?i.push(r):i.unshift(r),this.update(i),i.length},q.prototype.encodeString=function(t){var e=A(t);t=e[0];var n=e[1],r=0,i=t.length;if(n)for(var o=0;o<t.length;++o){var a=t.charCodeAt(o);a<128?r+=1:a<2048?r+=2:a<55296||a>=57344?r+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),r+=4)}else r=i;return r+=this.encode(8*r),this.update(t),r},q.prototype.bytepad=function(t,e){for(var n=this.encode(e),r=0;r<t.length;++r)n+=this.encodeString(t[r]);var i=(e-n%e)%e,o=[];return o.length=i,this.update(o),this},q.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,n=this.blockCount,r=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[n],e=1;e<n+1;++e)t[e]=0;for(t[n-1]|=2147483648,e=0;e<n;++e)r[e]^=t[e];U(r)}},q.prototype.toString=q.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<r;){for(o=0;o<e&&a<r;++o,++a)t=n[o],s+=u[t>>4&15]+u[15&t]+u[t>>12&15]+u[t>>8&15]+u[t>>20&15]+u[t>>16&15]+u[t>>28&15]+u[t>>24&15];a%e===0&&(n=E(n),U(n),o=0)}return i&&(t=n[o],s+=u[t>>4&15]+u[15&t],i>1&&(s+=u[t>>12&15]+u[t>>8&15]),i>2&&(s+=u[t>>20&15]+u[t>>16&15])),s},q.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;t=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var l=new Uint32Array(t);a<r;){for(o=0;o<e&&a<r;++o,++a)l[a]=n[o];a%e===0&&(n=E(n),U(n))}return i&&(l[a]=n[o],t=t.slice(0,s)),t},q.prototype.buffer=q.prototype.arrayBuffer,q.prototype.digest=q.prototype.array=function(){this.finalize();for(var t,e,n=this.blockCount,r=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,l=[];s<i;){for(a=0;a<n&&s<i;++a,++s)t=s<<2,e=r[a],l[t]=255&e,l[t+1]=e>>8&255,l[t+2]=e>>16&255,l[t+3]=e>>24&255;s%n===0&&(r=E(r),U(r))}return o&&(t=s<<2,e=r[a],l[t]=255&e,o>1&&(l[t+1]=e>>8&255),o>2&&(l[t+2]=e>>16&255)),l},D.prototype=new q,D.prototype.finalize=function(){return this.encode(this.outputBits,!0),q.prototype.finalize.call(this)};var U=function(t){var e,n,r,i,o,a,s,l,h,u,c,d,p,m,g,y,b,v,A,w,E,M,C,_,x,B,k,S,I,T,P,R,L,N,O,j,q,D,U,z,H,F,$,W,Y,K,Z,V,X,J,G,Q,tt,et,nt,rt,it,ot,at,st,lt,ht,ut;for(r=0;r<48;r+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],l=t[4]^t[14]^t[24]^t[34]^t[44],h=t[5]^t[15]^t[25]^t[35]^t[45],u=t[6]^t[16]^t[26]^t[36]^t[46],c=t[7]^t[17]^t[27]^t[37]^t[47],e=(d=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|s>>>31),n=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(s<<1|a>>>31),t[0]^=e,t[1]^=n,t[10]^=e,t[11]^=n,t[20]^=e,t[21]^=n,t[30]^=e,t[31]^=n,t[40]^=e,t[41]^=n,e=i^(l<<1|h>>>31),n=o^(h<<1|l>>>31),t[2]^=e,t[3]^=n,t[12]^=e,t[13]^=n,t[22]^=e,t[23]^=n,t[32]^=e,t[33]^=n,t[42]^=e,t[43]^=n,e=a^(u<<1|c>>>31),n=s^(c<<1|u>>>31),t[4]^=e,t[5]^=n,t[14]^=e,t[15]^=n,t[24]^=e,t[25]^=n,t[34]^=e,t[35]^=n,t[44]^=e,t[45]^=n,e=l^(d<<1|p>>>31),n=h^(p<<1|d>>>31),t[6]^=e,t[7]^=n,t[16]^=e,t[17]^=n,t[26]^=e,t[27]^=n,t[36]^=e,t[37]^=n,t[46]^=e,t[47]^=n,e=u^(i<<1|o>>>31),n=c^(o<<1|i>>>31),t[8]^=e,t[9]^=n,t[18]^=e,t[19]^=n,t[28]^=e,t[29]^=n,t[38]^=e,t[39]^=n,t[48]^=e,t[49]^=n,m=t[0],g=t[1],K=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,S=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,lt=t[30]<<9|t[31]>>>23,F=t[40]<<18|t[41]>>>14,$=t[41]<<18|t[40]>>>14,N=t[2]<<1|t[3]>>>31,O=t[3]<<1|t[2]>>>31,y=t[13]<<12|t[12]>>>20,b=t[12]<<12|t[13]>>>20,V=t[22]<<10|t[23]>>>22,X=t[23]<<10|t[22]>>>22,T=t[33]<<13|t[32]>>>19,P=t[32]<<13|t[33]>>>19,ht=t[42]<<2|t[43]>>>30,ut=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,nt=t[4]<<30|t[5]>>>2,j=t[14]<<6|t[15]>>>26,q=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,A=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,G=t[35]<<15|t[34]>>>17,R=t[45]<<29|t[44]>>>3,L=t[44]<<29|t[45]>>>3,_=t[6]<<28|t[7]>>>4,x=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,D=t[26]<<25|t[27]>>>7,U=t[27]<<25|t[26]>>>7,w=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,W=t[8]<<27|t[9]>>>5,Y=t[9]<<27|t[8]>>>5,B=t[18]<<20|t[19]>>>12,k=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,at=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,H=t[39]<<8|t[38]>>>24,M=t[48]<<14|t[49]>>>18,C=t[49]<<14|t[48]>>>18,t[0]=m^~y&v,t[1]=g^~b&A,t[10]=_^~B&S,t[11]=x^~k&I,t[20]=N^~j&D,t[21]=O^~q&U,t[30]=W^~K&V,t[31]=Y^~Z&X,t[40]=et^~rt&ot,t[41]=nt^~it&at,t[2]=y^~v&w,t[3]=b^~A&E,t[12]=B^~S&T,t[13]=k^~I&P,t[22]=j^~D&z,t[23]=q^~U&H,t[32]=K^~V&J,t[33]=Z^~X&G,t[42]=rt^~ot&st,t[43]=it^~at<,t[4]=v^~w&M,t[5]=A^~E&C,t[14]=S^~T&R,t[15]=I^~P&L,t[24]=D^~z&F,t[25]=U^~H&$,t[34]=V^~J&Q,t[35]=X^~G&tt,t[44]=ot^~st&ht,t[45]=at^~lt&ut,t[6]=w^~M&m,t[7]=E^~C&g,t[16]=T^~R&_,t[17]=P^~L&x,t[26]=z^~F&N,t[27]=H^~$&O,t[36]=J^~Q&W,t[37]=G^~tt&Y,t[46]=st^~ht&et,t[47]=lt^~ut&nt,t[8]=M^~m&y,t[9]=C^~g&b,t[18]=R^~_&B,t[19]=L^~x&k,t[28]=F^~N&j,t[29]=$^~O&q,t[38]=Q^~W&K,t[39]=tt^~Y&Z,t[48]=ht^~et&rt,t[49]=ut^~nt&it,t[0]^=f[r],t[1]^=f[r+1]};if(s)t.exports=I;else{for(P=0;P<T.length;++P)o[T[P]]=I[T[P]];l&&define(function(){return I})}}()},2652(t){"use strict";t.exports=Math.abs},634(t){"use strict";t.exports=Math.floor},6841(t){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},5934(t){"use strict";t.exports=Math.max},2992(t){"use strict";t.exports=Math.min},2722(t){"use strict";t.exports=Math.pow},44(t){"use strict";t.exports=Math.round},1527(t,e,n){"use strict";var r=n(6841);t.exports=function(t){return r(t)||0===t?t:t<0?-1:1}},4330(t,e,n){"use strict";var r=n(7832),i=n(9787),o=n(2091).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(t,e){return t<<e|t>>>32-e}function h(t,e,n,r,i,o,a){return l(t+(e&n|~e&r)+i+o|0,a)+e|0}function u(t,e,n,r,i,o,a){return l(t+(e&r|n&~r)+i+o|0,a)+e|0}function c(t,e,n,r,i,o,a){return l(t+(e^n^r)+i+o|0,a)+e|0}function d(t,e,n,r,i,o,a){return l(t+(n^(e|~r))+i+o|0,a)+e|0}r(s,i),s.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,r=this._b,i=this._c,o=this._d;n=h(n,r,i,o,t[0],3614090360,7),o=h(o,n,r,i,t[1],3905402710,12),i=h(i,o,n,r,t[2],606105819,17),r=h(r,i,o,n,t[3],3250441966,22),n=h(n,r,i,o,t[4],4118548399,7),o=h(o,n,r,i,t[5],1200080426,12),i=h(i,o,n,r,t[6],2821735955,17),r=h(r,i,o,n,t[7],4249261313,22),n=h(n,r,i,o,t[8],1770035416,7),o=h(o,n,r,i,t[9],2336552879,12),i=h(i,o,n,r,t[10],4294925233,17),r=h(r,i,o,n,t[11],2304563134,22),n=h(n,r,i,o,t[12],1804603682,7),o=h(o,n,r,i,t[13],4254626195,12),i=h(i,o,n,r,t[14],2792965006,17),n=u(n,r=h(r,i,o,n,t[15],1236535329,22),i,o,t[1],4129170786,5),o=u(o,n,r,i,t[6],3225465664,9),i=u(i,o,n,r,t[11],643717713,14),r=u(r,i,o,n,t[0],3921069994,20),n=u(n,r,i,o,t[5],3593408605,5),o=u(o,n,r,i,t[10],38016083,9),i=u(i,o,n,r,t[15],3634488961,14),r=u(r,i,o,n,t[4],3889429448,20),n=u(n,r,i,o,t[9],568446438,5),o=u(o,n,r,i,t[14],3275163606,9),i=u(i,o,n,r,t[3],4107603335,14),r=u(r,i,o,n,t[8],1163531501,20),n=u(n,r,i,o,t[13],2850285829,5),o=u(o,n,r,i,t[2],4243563512,9),i=u(i,o,n,r,t[7],1735328473,14),n=c(n,r=u(r,i,o,n,t[12],2368359562,20),i,o,t[5],4294588738,4),o=c(o,n,r,i,t[8],2272392833,11),i=c(i,o,n,r,t[11],1839030562,16),r=c(r,i,o,n,t[14],4259657740,23),n=c(n,r,i,o,t[1],2763975236,4),o=c(o,n,r,i,t[4],1272893353,11),i=c(i,o,n,r,t[7],4139469664,16),r=c(r,i,o,n,t[10],3200236656,23),n=c(n,r,i,o,t[13],681279174,4),o=c(o,n,r,i,t[0],3936430074,11),i=c(i,o,n,r,t[3],3572445317,16),r=c(r,i,o,n,t[6],76029189,23),n=c(n,r,i,o,t[9],3654602809,4),o=c(o,n,r,i,t[12],3873151461,11),i=c(i,o,n,r,t[15],530742520,16),n=d(n,r=c(r,i,o,n,t[2],3299628645,23),i,o,t[0],4096336452,6),o=d(o,n,r,i,t[7],1126891415,10),i=d(i,o,n,r,t[14],2878612391,15),r=d(r,i,o,n,t[5],4237533241,21),n=d(n,r,i,o,t[12],1700485571,6),o=d(o,n,r,i,t[3],2399980690,10),i=d(i,o,n,r,t[10],4293915773,15),r=d(r,i,o,n,t[1],2240044497,21),n=d(n,r,i,o,t[8],1873313359,6),o=d(o,n,r,i,t[15],4264355552,10),i=d(i,o,n,r,t[6],2734768916,15),r=d(r,i,o,n,t[13],1309151649,21),n=d(n,r,i,o,t[4],4149444226,6),o=d(o,n,r,i,t[11],3174756917,10),i=d(i,o,n,r,t[2],718787259,15),r=d(r,i,o,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=o.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=s},7018(t,e,n){var r=n(7132),i=n(5751);function o(t){this.rand=t||new i.Rand}t.exports=o,o.create=function(t){return new o(t)},o.prototype._randbelow=function(t){var e=t.bitLength(),n=Math.ceil(e/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(t)>=0);return i},o.prototype._randrange=function(t,e){var n=e.sub(t);return t.add(this._randbelow(n))},o.prototype.test=function(t,e,n){var i=t.bitLength(),o=r.mont(t),a=new r(1).toRed(o);e||(e=Math.max(1,i/48|0));for(var s=t.subn(1),l=0;!s.testn(l);l++);for(var h=t.shrn(l),u=s.toRed(o);e>0;e--){var c=this._randrange(new r(2),s);n&&n(c);var d=c.toRed(o).redPow(h);if(0!==d.cmp(a)&&0!==d.cmp(u)){for(var f=1;f<l;f++){if(0===(d=d.redSqr()).cmp(a))return!1;if(0===d.cmp(u))break}if(f===l)return!1}}return!0},o.prototype.getDivisor=function(t,e){var n=t.bitLength(),i=r.mont(t),o=new r(1).toRed(i);e||(e=Math.max(1,n/48|0));for(var a=t.subn(1),s=0;!a.testn(s);s++);for(var l=t.shrn(s),h=a.toRed(i);e>0;e--){var u=this._randrange(new r(2),a),c=t.gcd(u);if(0!==c.cmpn(1))return c;var d=u.toRed(i).redPow(l);if(0!==d.cmp(o)&&0!==d.cmp(h)){for(var f=1;f<s;f++){if(0===(d=d.redSqr()).cmp(o))return d.fromRed().subn(1).gcd(t);if(0===d.cmp(h))break}if(f===s)return(d=d.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},7132(t,e,n){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(2307).Buffer}catch(t){}function s(t,e){var n=t.charCodeAt(e);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function l(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function h(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,n):(this._parseBase(t,e,i),"le"===n&&this._initArray(this.toArray(),e,n)))},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,a=0;if("be"===n)for(r=t.length-1;r>=e;r-=2)i=l(t,e,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r<t.length;r+=2)i=l(t,e,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u<s;u+=r)l=h(t,u,u+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var c=1;for(l=h(t,u,t.length,e),u=0;u<a;u++)c*=e;this.imuln(c),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var h=1;h<r;h++){for(var u=l>>>26,c=67108863&l,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;u+=(a=(i=0|t.words[p])*(o=0|e.words[f])+c)/67108864|0,c=67108863&a}n.words[h]=0|c,l=0|u}return 0!==l?n.words[h]=0|l:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),n=0!==o||a!==this.length-1?u[6-l.length]+l+n:l+n}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],f=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);n=(p=p.idivn(f)).isZero()?m+n:u[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===e,h=new t(o),u=this.clone();if(l){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),h[s]=a;for(;s<o;s++)h[s]=0}else{for(s=0;s<o-i;s++)h[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),h[o-s-1]=a}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 8191&e||(n+=13,e>>>=13),127&e||(n+=7,e>>>=7),15&e||(n+=4,e>>>=4),3&e||(n+=2,e>>>=2),1&e||n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)o=(e=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)o=(e=(0|n.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,n){var r,i,o,a=t.words,s=e.words,l=n.words,h=0,u=0|a[0],c=8191&u,d=u>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],y=8191&g,b=g>>>13,v=0|a[3],A=8191&v,w=v>>>13,E=0|a[4],M=8191&E,C=E>>>13,_=0|a[5],x=8191&_,B=_>>>13,k=0|a[6],S=8191&k,I=k>>>13,T=0|a[7],P=8191&T,R=T>>>13,L=0|a[8],N=8191&L,O=L>>>13,j=0|a[9],q=8191&j,D=j>>>13,U=0|s[0],z=8191&U,H=U>>>13,F=0|s[1],$=8191&F,W=F>>>13,Y=0|s[2],K=8191&Y,Z=Y>>>13,V=0|s[3],X=8191&V,J=V>>>13,G=0|s[4],Q=8191&G,tt=G>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],lt=8191&st,ht=st>>>13,ut=0|s[8],ct=8191&ut,dt=ut>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(h+(r=Math.imul(c,z))|0)+((8191&(i=(i=Math.imul(c,H))+Math.imul(d,z)|0))<<13)|0;h=((o=Math.imul(d,H))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H);var yt=(h+(r=r+Math.imul(c,$)|0)|0)+((8191&(i=(i=i+Math.imul(c,W)|0)+Math.imul(d,$)|0))<<13)|0;h=((o=o+Math.imul(d,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,W)|0;var bt=(h+(r=r+Math.imul(c,K)|0)|0)+((8191&(i=(i=i+Math.imul(c,Z)|0)+Math.imul(d,K)|0))<<13)|0;h=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,H))+Math.imul(w,z)|0,o=Math.imul(w,H),r=r+Math.imul(y,$)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,W)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Z)|0;var vt=(h+(r=r+Math.imul(c,X)|0)|0)+((8191&(i=(i=i+Math.imul(c,J)|0)+Math.imul(d,X)|0))<<13)|0;h=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(C,z)|0,o=Math.imul(C,H),r=r+Math.imul(A,$)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,W)|0,r=r+Math.imul(y,K)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,Z)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,J)|0;var At=(h+(r=r+Math.imul(c,Q)|0)|0)+((8191&(i=(i=i+Math.imul(c,tt)|0)+Math.imul(d,Q)|0))<<13)|0;h=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(B,z)|0,o=Math.imul(B,H),r=r+Math.imul(M,$)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,W)|0,r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var wt=(h+(r=r+Math.imul(c,nt)|0)|0)+((8191&(i=(i=i+Math.imul(c,rt)|0)+Math.imul(d,nt)|0))<<13)|0;h=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(S,z),i=(i=Math.imul(S,H))+Math.imul(I,z)|0,o=Math.imul(I,H),r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,W)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var Et=(h+(r=r+Math.imul(c,ot)|0)|0)+((8191&(i=(i=i+Math.imul(c,at)|0)+Math.imul(d,ot)|0))<<13)|0;h=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,H))+Math.imul(R,z)|0,o=Math.imul(R,H),r=r+Math.imul(S,$)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,W)|0,r=r+Math.imul(x,K)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(y,nt)|0,i=(i=i+Math.imul(y,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(h+(r=r+Math.imul(c,lt)|0)|0)+((8191&(i=(i=i+Math.imul(c,ht)|0)+Math.imul(d,lt)|0))<<13)|0;h=((o=o+Math.imul(d,ht)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(O,z)|0,o=Math.imul(O,H),r=r+Math.imul(P,$)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,W)|0,r=r+Math.imul(S,K)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,Z)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(w,nt)|0,o=o+Math.imul(w,rt)|0,r=r+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,lt)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(m,lt)|0,o=o+Math.imul(m,ht)|0;var Ct=(h+(r=r+Math.imul(c,ct)|0)|0)+((8191&(i=(i=i+Math.imul(c,dt)|0)+Math.imul(d,ct)|0))<<13)|0;h=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(q,z),i=(i=Math.imul(q,H))+Math.imul(D,z)|0,o=Math.imul(D,H),r=r+Math.imul(N,$)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,W)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Z)|0,r=r+Math.imul(S,X)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,J)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,r=r+Math.imul(y,lt)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(b,lt)|0,o=o+Math.imul(b,ht)|0,r=r+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,dt)|0;var _t=(h+(r=r+Math.imul(c,pt)|0)|0)+((8191&(i=(i=i+Math.imul(c,mt)|0)+Math.imul(d,pt)|0))<<13)|0;h=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(q,$),i=(i=Math.imul(q,W))+Math.imul(D,$)|0,o=Math.imul(D,W),r=r+Math.imul(N,K)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(B,nt)|0,o=o+Math.imul(B,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(A,lt)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(w,lt)|0,o=o+Math.imul(w,ht)|0,r=r+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(b,ct)|0,o=o+Math.imul(b,dt)|0;var xt=(h+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(q,K),i=(i=Math.imul(q,Z))+Math.imul(D,K)|0,o=Math.imul(D,Z),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(S,nt)|0,i=(i=i+Math.imul(S,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,r=r+Math.imul(M,lt)|0,i=(i=i+Math.imul(M,ht)|0)+Math.imul(C,lt)|0,o=o+Math.imul(C,ht)|0,r=r+Math.imul(A,ct)|0,i=(i=i+Math.imul(A,dt)|0)+Math.imul(w,ct)|0,o=o+Math.imul(w,dt)|0;var Bt=(h+(r=r+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(b,pt)|0))<<13)|0;h=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(q,X),i=(i=Math.imul(q,J))+Math.imul(D,X)|0,o=Math.imul(D,J),r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(S,ot)|0,i=(i=i+Math.imul(S,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,r=r+Math.imul(x,lt)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(B,lt)|0,o=o+Math.imul(B,ht)|0,r=r+Math.imul(M,ct)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,dt)|0;var kt=(h+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(w,pt)|0))<<13)|0;h=((o=o+Math.imul(w,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(q,Q),i=(i=Math.imul(q,tt))+Math.imul(D,Q)|0,o=Math.imul(D,tt),r=r+Math.imul(N,nt)|0,i=(i=i+Math.imul(N,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(S,lt)|0,i=(i=i+Math.imul(S,ht)|0)+Math.imul(I,lt)|0,o=o+Math.imul(I,ht)|0,r=r+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(B,ct)|0,o=o+Math.imul(B,dt)|0;var St=(h+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(C,pt)|0))<<13)|0;h=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(q,nt),i=(i=Math.imul(q,rt))+Math.imul(D,nt)|0,o=Math.imul(D,rt),r=r+Math.imul(N,ot)|0,i=(i=i+Math.imul(N,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,r=r+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(R,lt)|0,o=o+Math.imul(R,ht)|0,r=r+Math.imul(S,ct)|0,i=(i=i+Math.imul(S,dt)|0)+Math.imul(I,ct)|0,o=o+Math.imul(I,dt)|0;var It=(h+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(B,pt)|0))<<13)|0;h=((o=o+Math.imul(B,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(q,ot),i=(i=Math.imul(q,at))+Math.imul(D,ot)|0,o=Math.imul(D,at),r=r+Math.imul(N,lt)|0,i=(i=i+Math.imul(N,ht)|0)+Math.imul(O,lt)|0,o=o+Math.imul(O,ht)|0,r=r+Math.imul(P,ct)|0,i=(i=i+Math.imul(P,dt)|0)+Math.imul(R,ct)|0,o=o+Math.imul(R,dt)|0;var Tt=(h+(r=r+Math.imul(S,pt)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(I,pt)|0))<<13)|0;h=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(q,lt),i=(i=Math.imul(q,ht))+Math.imul(D,lt)|0,o=Math.imul(D,ht),r=r+Math.imul(N,ct)|0,i=(i=i+Math.imul(N,dt)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,dt)|0;var Pt=(h+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(R,pt)|0))<<13)|0;h=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(q,ct),i=(i=Math.imul(q,dt))+Math.imul(D,ct)|0,o=Math.imul(D,dt);var Rt=(h+(r=r+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var Lt=(h+(r=Math.imul(q,pt))|0)+((8191&(i=(i=Math.imul(q,mt))+Math.imul(D,pt)|0))<<13)|0;return h=((o=Math.imul(D,mt))+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=At,l[5]=wt,l[6]=Et,l[7]=Mt,l[8]=Ct,l[9]=_t,l[10]=xt,l[11]=Bt,l[12]=kt,l[13]=St,l[14]=It,l[15]=Tt,l[16]=Pt,l[17]=Rt,l[18]=Lt,0!==h&&(l[19]=h,n.length++),n};function m(t,e,n){return(new g).mulp(t,e,n)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=f),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?p(this,t,e):r<63?f(this,t,e):r<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,l=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=l;h++){var u=o-h,c=(0|t.words[u])*(0|e.words[h]),d=67108863&c;s=67108863&(d=d+s|0),i+=(a=(a=a+(c/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):m(this,t,e),n},g.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},g.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},g.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},g.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),h=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var c=l,d=h,f=0;f<a;f++){var p=n[u+f],m=r[u+f],g=n[u+f+a],y=r[u+f+a],b=c*g-d*y;y=c*y+d*g,g=b,n[u+f]=p+g,r[u+f]=m+y,n[u+f+a]=p-g,r[u+f+a]=m-y,f!==s&&(b=l*c-h*d,d=l*d+h*c,c=b)}},g.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},g.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},g.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(!(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},g.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),l=new Array(r),h=new Array(r),u=new Array(r),c=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,h,r),this.transform(a,o,s,l,r,i),this.transform(h,o,u,c,r,i);for(var f=0;f<r;f++){var p=s[f]*u[f]-l[f]*c[f];l[f]=s[f]*c[f]+l[f]*u[f],s[f]=p}return this.conjugate(s,l,r),this.transform(s,l,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this.length=0===t?1:this.length,this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,l=(0|this.words[e])-s<<n;this.words[e]=l|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,l=n;if(i-=a,i=Math.max(0,i),l){for(var h=0;h<a;h++)l.words[h]=this.words[h];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var u=0;for(h=this.length-1;h>=0&&(0!==u||h>=i);h--){var c=0|this.words[h];this.words[h]=u<<26-o|c>>>o,u=c&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n||!(this.words[n]&i))},o.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var l=(0|t.words[i])*e;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!=(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,l=r.length-i.length;if("mod"!==e){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var h=0;h<s.length;h++)s.words[h]=0}var u=r.clone()._ishlnsubmul(i,1,l);0===u.negative&&(r=u,s&&(s.words[l]=1));for(var c=l-1;c>=0;c--){var d=67108864*(0|r.words[i.length+c])+(0|r.words[i.length+c-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,c);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,c),r.isZero()||(r.negative^=1);s&&(s.words[c]=d)}return s&&s.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),h=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++h;for(var u=n.clone(),c=e.clone();!e.isZero();){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(c)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(c)),s.iushrn(1),l.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(l)):(n.isub(e),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:n.iushln(h)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),l=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var h=0,u=1;0===(e.words[0]&u)&&h<26;++h,u<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var c=0,d=1;0===(n.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(n.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new M(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(v,b),v.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&n)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(A,b),i(w,b),i(E,b),E.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new A;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return y[t]=e,e},M.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},M.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),h=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,h).cmp(l);)u.redIAdd(l);for(var c=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<p);var y=this.pow(c,new o(1).iushln(p-g-1));d=d.redMul(y),c=y.redSqr(),f=f.redMul(c),p=g}return d},M.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},M.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],a=0,s=0,l=e.bitLength()%26;for(0===l&&(l=26),r=e.length-1;r>=0;r--){for(var h=e.words[r],u=l-1;u>=0;u--){var c=h>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==c||0!==a?(a<<=1,a|=c,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}l=26}return i},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new C(t)},i(C,M),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=n.nmd(t),this)},9619(t){function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},9993(t,e){"use strict";var n=e;function r(t){return 1===t.length?"0"+t:t}function i(t){for(var e="",n=0;n<t.length;n++)e+=r(t[n].toString(16));return e}n.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"!=typeof t){for(var r=0;r<t.length;r++)n[r]=0|t[r];return n}if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),r=0;r<t.length;r+=2)n.push(parseInt(t[r]+t[r+1],16));else for(r=0;r<t.length;r++){var i=t.charCodeAt(r),o=i>>8,a=255&i;o?n.push(o,a):n.push(a)}return n},n.zero2=r,n.toHex=i,n.encode=function(t,e){return"hex"===e?i(t):t}},9907(t,e,n){"use strict";var r=n(4389);e.certificate=n(1467);var i=r.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});e.RSAPrivateKey=i;var o=r.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});e.RSAPublicKey=o;var a=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),s=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});e.PublicKey=s;var l=r.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});e.PrivateKey=l;var h=r.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});e.EncryptedPrivateKey=h;var u=r.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});e.DSAPrivateKey=u,e.DSAparam=r.define("DSAparam",function(){this.int()});var c=r.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),d=r.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(c),this.key("publicKey").optional().explicit(1).bitstr())});e.ECPrivateKey=d,e.signature=r.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},1467(t,e,n){"use strict";var r=n(4389),i=r.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=r.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),a=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),l=r.define("RelativeDistinguishedName",function(){this.setof(o)}),h=r.define("RDNSequence",function(){this.seqof(l)}),u=r.define("Name",function(){this.choice({rdnSequence:this.use(h)})}),c=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),d=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),f=r.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(u),this.key("validity").use(c),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())}),p=r.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())});t.exports=p},5291(t,e,n){"use strict";var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=n(9336),s=n(6071),l=n(2091).Buffer;t.exports=function(t,e){var n,h=t.toString(),u=h.match(r);if(u){var c="aes"+u[1],d=l.from(u[2],"hex"),f=l.from(u[3].replace(/[\r\n]/g,""),"base64"),p=a(e,d.slice(0,8),parseInt(u[1],10)).key,m=[],g=s.createDecipheriv(c,p,d);m.push(g.update(f)),m.push(g.final()),n=l.concat(m)}else{var y=h.match(o);n=l.from(y[2].replace(/[\r\n]/g,""),"base64")}return{tag:h.match(i)[1],data:n}}},8364(t,e,n){"use strict";var r=n(9907),i=n(5579),o=n(5291),a=n(6071),s=n(7370).pbkdf2Sync,l=n(2091).Buffer;function h(t){var e;"object"!=typeof t||l.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=l.from(t));var n,h,u=o(t,e),c=u.tag,d=u.data;switch(c){case"CERTIFICATE":h=r.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(h||(h=r.PublicKey.decode(d,"der")),n=h.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(h.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return h.subjectPrivateKey=h.subjectPublicKey,{type:"ec",data:h};case"1.2.840.10040.4.1":return h.algorithm.params.pub_key=r.DSAparam.decode(h.subjectPublicKey.data,"der"),{type:"dsa",data:h.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":d=function(t,e){var n=t.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[t.algorithm.decrypt.cipher.algo.join(".")],h=t.algorithm.decrypt.cipher.iv,u=t.subjectPrivateKey,c=parseInt(o.split("-")[1],10)/8,d=s(e,n,r,c,"sha1"),f=a.createDecipheriv(o,d,h),p=[];return p.push(f.update(u)),p.push(f.final()),l.concat(p)}(d=r.EncryptedPrivateKey.decode(d,"der"),e);case"PRIVATE KEY":switch(n=(h=r.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(h.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:h.algorithm.curve,privateKey:r.ECPrivateKey.decode(h.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return h.algorithm.params.priv_key=r.DSAparam.decode(h.subjectPrivateKey,"der"),{type:"dsa",params:h.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=r.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+c)}}h.signature=r.signature,t.exports=h},7370(t,e,n){"use strict";e.pbkdf2=n(4994),e.pbkdf2Sync=n(1318)},4994(t,e,n){"use strict";var r,i,o=n(2091).Buffer,a=n(3598),s=n(6185),l=n(1318),h=n(8472),u=n.g.crypto&&n.g.crypto.subtle,c={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function f(){return i||(i=n.g.process&&n.g.process.nextTick?n.g.process.nextTick:n.g.queueMicrotask?n.g.queueMicrotask:n.g.setImmediate?n.g.setImmediate:n.g.setTimeout)}function p(t,e,n,r,i){return u.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(t){return u.deriveBits({name:"PBKDF2",salt:e,iterations:n,hash:{name:i}},t,r<<3)}).then(function(t){return o.from(t)})}t.exports=function(t,e,i,m,g,y){if("function"==typeof g&&(y=g,g=void 0),m=a(i,m),t=h(t,s,"Password"),e=h(e,s,"Salt"),"function"!=typeof y)throw new Error("No callback provided to pbkdf2");var b=c[(g=g||"sha1").toLowerCase()];b&&"function"==typeof n.g.Promise?function(t,e){t.then(function(t){f()(function(){e(null,t)})},function(t){f()(function(){e(t)})})}(function(t){if(n.g.process&&!n.g.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==d[t])return d[t];var e=p(r=r||o.alloc(8),r,10,128,t).then(function(){return!0},function(){return!1});return d[t]=e,e}(b).then(function(n){return n?p(t,e,i,m,b):l(t,e,i,m,g)}),y):f()(function(){var n;try{n=l(t,e,i,m,g)}catch(t){return void y(t)}y(null,n)})}},6185(t,e,n){"use strict";var r,i=n(9244);r=n.g.process&&n.g.process.browser?"utf-8":n.g.process&&n.g.process.version?parseInt(i.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=r},3598(t){"use strict";var e=isFinite,n=Math.pow(2,30)-1;t.exports=function(t,r){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0||!e(t))throw new TypeError("Bad iterations");if("number"!=typeof r)throw new TypeError("Key length not a number");if(r<0||r>n||r!=r)throw new TypeError("Bad key length");return r+0}},1318(t,e,n){"use strict";var r=n(4158),i=n(8097),o=n(4180),a=n(2091).Buffer,s=n(3598),l=n(6185),h=n(8472),u=a.alloc(128),c={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},d={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function f(t){return(new i).update(t).digest()}function p(t,e,n){var i=function(t){return"rmd160"===t||"ripemd160"===t?f:"md5"===t?r:function(e){return o(t).update(e).digest()}}(t),s="sha512"===t||"sha384"===t?128:64;e.length>s?e=i(e):e.length<s&&(e=a.concat([e,u],s));for(var l=a.allocUnsafe(s+c[t]),h=a.allocUnsafe(s+c[t]),d=0;d<s;d++)l[d]=54^e[d],h[d]=92^e[d];var p=a.allocUnsafe(s+n+4);l.copy(p,0,0,s),this.ipad1=p,this.ipad2=l,this.opad=h,this.alg=t,this.blocksize=s,this.hash=i,this.size=c[t]}p.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(t,e,n,r,i){r=s(n,r),t=h(t,l,"Password"),e=h(e,l,"Salt");var o=(i||"sha1").toLowerCase(),u=d[o]||o,f=c[u];if("number"!=typeof f||!f)throw new TypeError("Digest algorithm not supported: "+i);var m=new p(u,t,e.length),g=a.allocUnsafe(r),y=a.allocUnsafe(e.length+4);e.copy(y,0,0,e.length);for(var b=0,v=f,A=Math.ceil(r/v),w=1;w<=A;w++){y.writeUInt32BE(w,e.length);for(var E=m.run(y,m.ipad1),M=E,C=1;C<n;C++){M=m.run(M,m.ipad2);for(var _=0;_<v;_++)E[_]^=M[_]}E.copy(g,b),b+=v}return g}},8472(t,e,n){"use strict";var r=n(2091).Buffer,i=n(3259),o="undefined"!=typeof Uint8Array,a=o&&"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView;t.exports=function(t,e,n){if("string"==typeof t||r.isBuffer(t)||o&&t instanceof Uint8Array||a&&a(t))return i(t,e);throw new TypeError(n+" must be a string, a Buffer, a Uint8Array, or a DataView")}},8692(t){"use strict";t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},7591(t,e,n){"use strict";var r=n(9244);void 0===r||!r.version||0===r.version.indexOf("v0.")||0===r.version.indexOf("v1.")&&0!==r.version.indexOf("v1.8.")?t.exports={nextTick:function(t,e,n,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return r.nextTick(t);case 2:return r.nextTick(function(){t.call(null,e)});case 3:return r.nextTick(function(){t.call(null,e,n)});case 4:return r.nextTick(function(){t.call(null,e,n,i)});default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return r.nextTick(function(){t.apply(null,o)})}}}:t.exports=r},9244(t){var e,n,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var s,l=[],h=!1,u=-1;function c(){h&&s&&(h=!1,s.length?l=s.concat(l):u=-1,l.length&&d())}function d(){if(!h){var t=a(c);h=!0;for(var e=l.length;e;){for(s=l,l=[];++u<e;)s&&s[u].run();u=-1,e=l.length}s=null,h=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function p(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new f(t,e)),1!==l.length||h||a(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},8114(t,e,n){e.publicEncrypt=n(6500),e.privateDecrypt=n(7760),e.privateEncrypt=function(t,n){return e.publicEncrypt(t,n,!0)},e.publicDecrypt=function(t,n){return e.privateDecrypt(t,n,!0)}},8232(t,e,n){var r=n(7874),i=n(2091).Buffer;function o(t){var e=i.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){for(var n,a=i.alloc(0),s=0;a.length<e;)n=o(s++),a=i.concat([a,r("sha1").update(t).update(n).digest()]);return a.slice(0,e)}},4863(t,e,n){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(1069).Buffer}catch(t){}function s(t,e){var n=t.charCodeAt(e);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function l(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function h(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,n):(this._parseBase(t,e,i),"le"===n&&this._initArray(this.toArray(),e,n)))},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,a=0;if("be"===n)for(r=t.length-1;r>=e;r-=2)i=l(t,e,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r<t.length;r+=2)i=l(t,e,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u<s;u+=r)l=h(t,u,u+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var c=1;for(l=h(t,u,t.length,e),u=0;u<a;u++)c*=e;this.imuln(c),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var h=1;h<r;h++){for(var u=l>>>26,c=67108863&l,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;u+=(a=(i=0|t.words[p])*(o=0|e.words[f])+c)/67108864|0,c=67108863&a}n.words[h]=0|c,l=0|u}return 0!==l?n.words[h]=0|l:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),n=0!==o||a!==this.length-1?u[6-l.length]+l+n:l+n}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],f=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);n=(p=p.idivn(f)).isZero()?m+n:u[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===e,h=new t(o),u=this.clone();if(l){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),h[s]=a;for(;s<o;s++)h[s]=0}else{for(s=0;s<o-i;s++)h[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),h[o-s-1]=a}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 8191&e||(n+=13,e>>>=13),127&e||(n+=7,e>>>=7),15&e||(n+=4,e>>>=4),3&e||(n+=2,e>>>=2),1&e||n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)o=(e=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)o=(e=(0|n.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,n){var r,i,o,a=t.words,s=e.words,l=n.words,h=0,u=0|a[0],c=8191&u,d=u>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],y=8191&g,b=g>>>13,v=0|a[3],A=8191&v,w=v>>>13,E=0|a[4],M=8191&E,C=E>>>13,_=0|a[5],x=8191&_,B=_>>>13,k=0|a[6],S=8191&k,I=k>>>13,T=0|a[7],P=8191&T,R=T>>>13,L=0|a[8],N=8191&L,O=L>>>13,j=0|a[9],q=8191&j,D=j>>>13,U=0|s[0],z=8191&U,H=U>>>13,F=0|s[1],$=8191&F,W=F>>>13,Y=0|s[2],K=8191&Y,Z=Y>>>13,V=0|s[3],X=8191&V,J=V>>>13,G=0|s[4],Q=8191&G,tt=G>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],lt=8191&st,ht=st>>>13,ut=0|s[8],ct=8191&ut,dt=ut>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(h+(r=Math.imul(c,z))|0)+((8191&(i=(i=Math.imul(c,H))+Math.imul(d,z)|0))<<13)|0;h=((o=Math.imul(d,H))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H);var yt=(h+(r=r+Math.imul(c,$)|0)|0)+((8191&(i=(i=i+Math.imul(c,W)|0)+Math.imul(d,$)|0))<<13)|0;h=((o=o+Math.imul(d,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,W)|0;var bt=(h+(r=r+Math.imul(c,K)|0)|0)+((8191&(i=(i=i+Math.imul(c,Z)|0)+Math.imul(d,K)|0))<<13)|0;h=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,H))+Math.imul(w,z)|0,o=Math.imul(w,H),r=r+Math.imul(y,$)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,W)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Z)|0;var vt=(h+(r=r+Math.imul(c,X)|0)|0)+((8191&(i=(i=i+Math.imul(c,J)|0)+Math.imul(d,X)|0))<<13)|0;h=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(C,z)|0,o=Math.imul(C,H),r=r+Math.imul(A,$)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,W)|0,r=r+Math.imul(y,K)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,Z)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,J)|0;var At=(h+(r=r+Math.imul(c,Q)|0)|0)+((8191&(i=(i=i+Math.imul(c,tt)|0)+Math.imul(d,Q)|0))<<13)|0;h=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(B,z)|0,o=Math.imul(B,H),r=r+Math.imul(M,$)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,W)|0,r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var wt=(h+(r=r+Math.imul(c,nt)|0)|0)+((8191&(i=(i=i+Math.imul(c,rt)|0)+Math.imul(d,nt)|0))<<13)|0;h=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(S,z),i=(i=Math.imul(S,H))+Math.imul(I,z)|0,o=Math.imul(I,H),r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,W)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var Et=(h+(r=r+Math.imul(c,ot)|0)|0)+((8191&(i=(i=i+Math.imul(c,at)|0)+Math.imul(d,ot)|0))<<13)|0;h=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,H))+Math.imul(R,z)|0,o=Math.imul(R,H),r=r+Math.imul(S,$)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,W)|0,r=r+Math.imul(x,K)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(y,nt)|0,i=(i=i+Math.imul(y,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(h+(r=r+Math.imul(c,lt)|0)|0)+((8191&(i=(i=i+Math.imul(c,ht)|0)+Math.imul(d,lt)|0))<<13)|0;h=((o=o+Math.imul(d,ht)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(O,z)|0,o=Math.imul(O,H),r=r+Math.imul(P,$)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,W)|0,r=r+Math.imul(S,K)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,Z)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(w,nt)|0,o=o+Math.imul(w,rt)|0,r=r+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,lt)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(m,lt)|0,o=o+Math.imul(m,ht)|0;var Ct=(h+(r=r+Math.imul(c,ct)|0)|0)+((8191&(i=(i=i+Math.imul(c,dt)|0)+Math.imul(d,ct)|0))<<13)|0;h=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(q,z),i=(i=Math.imul(q,H))+Math.imul(D,z)|0,o=Math.imul(D,H),r=r+Math.imul(N,$)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,W)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Z)|0,r=r+Math.imul(S,X)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,J)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,r=r+Math.imul(y,lt)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(b,lt)|0,o=o+Math.imul(b,ht)|0,r=r+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,dt)|0;var _t=(h+(r=r+Math.imul(c,pt)|0)|0)+((8191&(i=(i=i+Math.imul(c,mt)|0)+Math.imul(d,pt)|0))<<13)|0;h=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(q,$),i=(i=Math.imul(q,W))+Math.imul(D,$)|0,o=Math.imul(D,W),r=r+Math.imul(N,K)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(B,nt)|0,o=o+Math.imul(B,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(A,lt)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(w,lt)|0,o=o+Math.imul(w,ht)|0,r=r+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(b,ct)|0,o=o+Math.imul(b,dt)|0;var xt=(h+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(q,K),i=(i=Math.imul(q,Z))+Math.imul(D,K)|0,o=Math.imul(D,Z),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(S,nt)|0,i=(i=i+Math.imul(S,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,r=r+Math.imul(M,lt)|0,i=(i=i+Math.imul(M,ht)|0)+Math.imul(C,lt)|0,o=o+Math.imul(C,ht)|0,r=r+Math.imul(A,ct)|0,i=(i=i+Math.imul(A,dt)|0)+Math.imul(w,ct)|0,o=o+Math.imul(w,dt)|0;var Bt=(h+(r=r+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(b,pt)|0))<<13)|0;h=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(q,X),i=(i=Math.imul(q,J))+Math.imul(D,X)|0,o=Math.imul(D,J),r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(S,ot)|0,i=(i=i+Math.imul(S,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,r=r+Math.imul(x,lt)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(B,lt)|0,o=o+Math.imul(B,ht)|0,r=r+Math.imul(M,ct)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,dt)|0;var kt=(h+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(w,pt)|0))<<13)|0;h=((o=o+Math.imul(w,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(q,Q),i=(i=Math.imul(q,tt))+Math.imul(D,Q)|0,o=Math.imul(D,tt),r=r+Math.imul(N,nt)|0,i=(i=i+Math.imul(N,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(S,lt)|0,i=(i=i+Math.imul(S,ht)|0)+Math.imul(I,lt)|0,o=o+Math.imul(I,ht)|0,r=r+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(B,ct)|0,o=o+Math.imul(B,dt)|0;var St=(h+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(C,pt)|0))<<13)|0;h=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(q,nt),i=(i=Math.imul(q,rt))+Math.imul(D,nt)|0,o=Math.imul(D,rt),r=r+Math.imul(N,ot)|0,i=(i=i+Math.imul(N,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,r=r+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(R,lt)|0,o=o+Math.imul(R,ht)|0,r=r+Math.imul(S,ct)|0,i=(i=i+Math.imul(S,dt)|0)+Math.imul(I,ct)|0,o=o+Math.imul(I,dt)|0;var It=(h+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(B,pt)|0))<<13)|0;h=((o=o+Math.imul(B,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(q,ot),i=(i=Math.imul(q,at))+Math.imul(D,ot)|0,o=Math.imul(D,at),r=r+Math.imul(N,lt)|0,i=(i=i+Math.imul(N,ht)|0)+Math.imul(O,lt)|0,o=o+Math.imul(O,ht)|0,r=r+Math.imul(P,ct)|0,i=(i=i+Math.imul(P,dt)|0)+Math.imul(R,ct)|0,o=o+Math.imul(R,dt)|0;var Tt=(h+(r=r+Math.imul(S,pt)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(I,pt)|0))<<13)|0;h=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(q,lt),i=(i=Math.imul(q,ht))+Math.imul(D,lt)|0,o=Math.imul(D,ht),r=r+Math.imul(N,ct)|0,i=(i=i+Math.imul(N,dt)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,dt)|0;var Pt=(h+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(R,pt)|0))<<13)|0;h=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(q,ct),i=(i=Math.imul(q,dt))+Math.imul(D,ct)|0,o=Math.imul(D,dt);var Rt=(h+(r=r+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var Lt=(h+(r=Math.imul(q,pt))|0)+((8191&(i=(i=Math.imul(q,mt))+Math.imul(D,pt)|0))<<13)|0;return h=((o=Math.imul(D,mt))+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=At,l[5]=wt,l[6]=Et,l[7]=Mt,l[8]=Ct,l[9]=_t,l[10]=xt,l[11]=Bt,l[12]=kt,l[13]=St,l[14]=It,l[15]=Tt,l[16]=Pt,l[17]=Rt,l[18]=Lt,0!==h&&(l[19]=h,n.length++),n};function m(t,e,n){return(new g).mulp(t,e,n)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=f),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?p(this,t,e):r<63?f(this,t,e):r<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,l=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=l;h++){var u=o-h,c=(0|t.words[u])*(0|e.words[h]),d=67108863&c;s=67108863&(d=d+s|0),i+=(a=(a=a+(c/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):m(this,t,e),n},g.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},g.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},g.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},g.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),h=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var c=l,d=h,f=0;f<a;f++){var p=n[u+f],m=r[u+f],g=n[u+f+a],y=r[u+f+a],b=c*g-d*y;y=c*y+d*g,g=b,n[u+f]=p+g,r[u+f]=m+y,n[u+f+a]=p-g,r[u+f+a]=m-y,f!==s&&(b=l*c-h*d,d=l*d+h*c,c=b)}},g.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},g.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},g.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(!(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},g.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),l=new Array(r),h=new Array(r),u=new Array(r),c=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,h,r),this.transform(a,o,s,l,r,i),this.transform(h,o,u,c,r,i);for(var f=0;f<r;f++){var p=s[f]*u[f]-l[f]*c[f];l[f]=s[f]*c[f]+l[f]*u[f],s[f]=p}return this.conjugate(s,l,r),this.transform(s,l,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this.length=0===t?1:this.length,this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,l=(0|this.words[e])-s<<n;this.words[e]=l|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,l=n;if(i-=a,i=Math.max(0,i),l){for(var h=0;h<a;h++)l.words[h]=this.words[h];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var u=0;for(h=this.length-1;h>=0&&(0!==u||h>=i);h--){var c=0|this.words[h];this.words[h]=u<<26-o|c>>>o,u=c&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n||!(this.words[n]&i))},o.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var l=(0|t.words[i])*e;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!=(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,l=r.length-i.length;if("mod"!==e){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var h=0;h<s.length;h++)s.words[h]=0}var u=r.clone()._ishlnsubmul(i,1,l);0===u.negative&&(r=u,s&&(s.words[l]=1));for(var c=l-1;c>=0;c--){var d=67108864*(0|r.words[i.length+c])+(0|r.words[i.length+c-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,c);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,c),r.isZero()||(r.negative^=1);s&&(s.words[c]=d)}return s&&s.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),h=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++h;for(var u=n.clone(),c=e.clone();!e.isZero();){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(c)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(c)),s.iushrn(1),l.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(l)):(n.isub(e),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:n.iushln(h)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),l=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var h=0,u=1;0===(e.words[0]&u)&&h<26;++h,u<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var c=0,d=1;0===(n.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(n.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new M(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(v,b),v.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&n)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(A,b),i(w,b),i(E,b),E.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new A;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return y[t]=e,e},M.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},M.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),h=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,h).cmp(l);)u.redIAdd(l);for(var c=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<p);var y=this.pow(c,new o(1).iushln(p-g-1));d=d.redMul(y),c=y.redSqr(),f=f.redMul(c),p=g}return d},M.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},M.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],a=0,s=0,l=e.bitLength()%26;for(0===l&&(l=26),r=e.length-1;r>=0;r--){for(var h=e.words[r],u=l-1;u>=0;u--){var c=h>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==c||0!==a?(a<<=1,a|=c,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}l=26}return i},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new C(t)},i(C,M),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=n.nmd(t),this)},7760(t,e,n){var r=n(8364),i=n(8232),o=n(8391),a=n(4863),s=n(5258),l=n(7874),h=n(7969),u=n(2091).Buffer;t.exports=function(t,e,n){var c;c=t.padding?t.padding:n?1:4;var d,f=r(t),p=f.modulus.byteLength();if(e.length>p||new a(e).cmp(f.modulus)>=0)throw new Error("decryption error");d=n?h(new a(e),f):s(e,f);var m=u.alloc(p-d.length);if(d=u.concat([m,d],p),4===c)return function(t,e){var n=t.modulus.byteLength(),r=l("sha1").update(u.alloc(0)).digest(),a=r.length;if(0!==e[0])throw new Error("decryption error");var s=e.slice(1,a+1),h=e.slice(a+1),c=o(s,i(h,a)),d=o(h,i(c,n-a-1));if(function(t,e){t=u.from(t),e=u.from(e);var n=0,r=t.length;t.length!==e.length&&(n++,r=Math.min(t.length,e.length));for(var i=-1;++i<r;)n+=t[i]^e[i];return n}(r,d.slice(0,a)))throw new Error("decryption error");for(var f=a;0===d[f];)f++;if(1!==d[f++])throw new Error("decryption error");return d.slice(f)}(f,d);if(1===c)return function(t,e,n){for(var r=e.slice(0,2),i=2,o=0;0!==e[i++];)if(i>=e.length){o++;break}var a=e.slice(2,i-1);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++,a.length<8&&o++,o)throw new Error("decryption error");return e.slice(i)}(0,d,n);if(3===c)return d;throw new Error("unknown padding")}},6500(t,e,n){var r=n(8364),i=n(2719),o=n(7874),a=n(8232),s=n(8391),l=n(4863),h=n(7969),u=n(5258),c=n(2091).Buffer;t.exports=function(t,e,n){var d;d=t.padding?t.padding:n?1:4;var f,p=r(t);if(4===d)f=function(t,e){var n=t.modulus.byteLength(),r=e.length,h=o("sha1").update(c.alloc(0)).digest(),u=h.length,d=2*u;if(r>n-d-2)throw new Error("message too long");var f=c.alloc(n-r-d-2),p=n-u-1,m=i(u),g=s(c.concat([h,f,c.alloc(1,1),e],p),a(m,p)),y=s(m,a(g,u));return new l(c.concat([c.alloc(1),y,g],n))}(p,e);else if(1===d)f=function(t,e,n){var r,o=e.length,a=t.modulus.byteLength();if(o>a-11)throw new Error("message too long");return r=n?c.alloc(a-o-3,255):function(t){for(var e,n=c.allocUnsafe(t),r=0,o=i(2*t),a=0;r<t;)a===o.length&&(o=i(2*t),a=0),(e=o[a++])&&(n[r++]=e);return n}(a-o-3),new l(c.concat([c.from([0,n?1:2]),r,c.alloc(1),e],a))}(p,e,n);else{if(3!==d)throw new Error("unknown padding");if((f=new l(e)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return n?u(f,p):h(f,p)}},7969(t,e,n){var r=n(4863),i=n(2091).Buffer;t.exports=function(t,e){return i.from(t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed().toArray())}},8391(t){t.exports=function(t,e){for(var n=t.length,r=-1;++r<n;)t[r]^=e[r];return t}},2719(t,e,n){"use strict";var r=n(9244),i=65536,o=n(2091).Buffer,a=n.g.crypto||n.g.msCrypto;a&&a.getRandomValues?t.exports=function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var n=o.allocUnsafe(t);if(t>0)if(t>i)for(var s=0;s<t;s+=i)a.getRandomValues(n.slice(s,s+i));else a.getRandomValues(n);return"function"==typeof e?r.nextTick(function(){e(null,n)}):n}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},7933(t,e,n){"use strict";var r=n(9244);function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=n(2091),a=n(2719),s=o.Buffer,l=o.kMaxLength,h=n.g.crypto||n.g.msCrypto,u=Math.pow(2,32)-1;function c(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>u||t<0)throw new TypeError("offset must be a uint32");if(t>l||t>e)throw new RangeError("offset out of range")}function d(t,e,n){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>u||t<0)throw new TypeError("size must be a uint32");if(t+e>n||t>l)throw new RangeError("buffer too small")}function f(t,e,n,i){if(r.browser){var o=t.buffer,s=new Uint8Array(o,e,n);return h.getRandomValues(s),i?void r.nextTick(function(){i(null,t)}):t}if(!i)return a(n).copy(t,e),t;a(n,function(n,r){if(n)return i(n);r.copy(t,e),i(null,t)})}h&&h.getRandomValues||!r.browser?(e.randomFill=function(t,e,r,i){if(!(s.isBuffer(t)||t instanceof n.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof e)i=e,e=0,r=t.length;else if("function"==typeof r)i=r,r=t.length-e;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return c(e,t.length),d(r,e,t.length),f(t,e,r,i)},e.randomFillSync=function(t,e,r){if(void 0===e&&(e=0),!(s.isBuffer(t)||t instanceof n.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return c(e,t.length),void 0===r&&(r=t.length-e),d(r,e,t.length),f(t,e,r)}):(e.randomFill=i,e.randomFillSync=i)},1426(t){"use strict";var e={};function n(t,n,r){r||(r=Error);var i=function(t){var e,r;function i(e,r,i){return t.call(this,function(t,e,r){return"string"==typeof n?n:n(t,e,r)}(e,r,i))||this}return r=t,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=t,e[t]=i}function r(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map(function(t){return String(t)}),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}n("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(t,e,n){var i,o,a,s,l;if("string"==typeof e&&(o="not ",e.substr(0,4)===o)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-9,n)===e}(t," argument"))a="The ".concat(t," ").concat(i," ").concat(r(e,"type"));else{var h=("number"!=typeof l&&(l=0),l+1>(s=t).length||-1===s.indexOf(".",l)?"argument":"property");a='The "'.concat(t,'" ').concat(h," ").concat(i," ").concat(r(e,"type"))}return a+". Received type ".concat(typeof n)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.F=e},6196(t,e,n){"use strict";var r=n(9244),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=u;var o=n(8762),a=n(7342);n(7832)(u,o);for(var s=i(a.prototype),l=0;l<s.length;l++){var h=s[l];u.prototype[h]||(u.prototype[h]=a.prototype[h])}function u(t){if(!(this instanceof u))return new u(t);o.call(this,t),a.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||r.nextTick(d,this)}function d(t){t.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})},8046(t,e,n){"use strict";t.exports=i;var r=n(1300);function i(t){if(!(this instanceof i))return new i(t);r.call(this,t)}n(7832)(i,r),i.prototype._transform=function(t,e,n){n(null,t)}},8762(t,e,n){"use strict";var r,i=n(9244);t.exports=_,_.ReadableState=C,n(6737).EventEmitter;var o,a=function(t,e){return t.listeners(e).length},s=n(1395),l=n(3273).Buffer,h=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},u=n(9838);o=u&&u.debuglog?u.debuglog("stream"):function(){};var c,d,f,p=n(9455),m=n(6266),g=n(3381).getHighWaterMark,y=n(1426).F,b=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,A=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(7832)(_,s);var E=m.errorOrDestroy,M=["error","close","destroy","pause","resume"];function C(t,e,i){r=r||n(6196),t=t||{},"boolean"!=typeof i&&(i=e instanceof r),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",i),this.buffer=new p,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!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(c||(c=n(6807).I),this.decoder=new c(t.encoding),this.encoding=t.encoding)}function _(t){if(r=r||n(6196),!(this instanceof _))return new _(t);var e=this instanceof r;this._readableState=new C(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function x(t,e,n,r,i){o("readableAddChunk",e);var a,s=t._readableState;if(null===e)s.reading=!1,function(t,e){if(o("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?I(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,T(t)))}}(t,s);else if(i||(a=function(t,e){var n,r;return r=e,l.isBuffer(r)||r instanceof h||"string"==typeof e||void 0===e||t.objectMode||(n=new b("chunk",["string","Buffer","Uint8Array"],e)),n}(s,e)),a)E(t,a);else if(s.objectMode||e&&e.length>0)if("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===l.prototype||(e=function(t){return l.from(t)}(e)),r)s.endEmitted?E(t,new w):B(t,s,e,!0);else if(s.ended)E(t,new v);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||0!==e.length?B(t,s,e,!1):P(t,s)):B(t,s,e,!1)}else r||(s.reading=!1,P(t,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function B(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&I(t)),P(t,e)}Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),_.prototype.destroy=m.destroy,_.prototype._undestroy=m.undestroy,_.prototype._destroy=function(t,e){e(t)},_.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=l.from(t,e),e=""),n=!0),x(this,t,e,!1,n)},_.prototype.unshift=function(t){return x(this,t,null,!0,!1)},_.prototype.isPaused=function(){return!1===this._readableState.flowing},_.prototype.setEncoding=function(t){c||(c=n(6807).I);var e=new c(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var k=1073741824;function S(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=k?t=k:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function I(t){var e=t._readableState;o("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(o("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(T,t))}function T(t){var e=t._readableState;o("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,j(t)}function P(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(R,t,e))}function R(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var n=e.length;if(o("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}function L(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function N(t){o("readable nexttick read 0"),t.read(0)}function O(t,e){o("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),j(t),e.flowing&&!e.reading&&t.read(0)}function j(t){var e=t._readableState;for(o("flow",e.flowing);e.flowing&&null!==t.read(););}function q(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function D(t){var e=t._readableState;o("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(U,e,t))}function U(t,e){if(o("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function z(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}_.prototype.read=function(t){o("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return o("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?D(this):I(this),null;if(0===(t=S(t,e))&&e.ended)return 0===e.length&&D(this),null;var r,i=e.needReadable;return o("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&o("length less than watermark",i=!0),e.ended||e.reading?o("reading or ended",i=!1):i&&(o("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=S(n,e))),null===(r=t>0?q(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&D(this)),null!==r&&this.emit("data",r),r},_.prototype._read=function(t){E(this,new A("_read()"))},_.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,o("pipe count=%d opts=%j",r.pipesCount,e);var s=e&&!1===e.end||t===i.stdout||t===i.stderr?m:l;function l(){o("onend"),t.end()}r.endEmitted?i.nextTick(s):n.once("end",s),t.on("unpipe",function e(i,a){o("onunpipe"),i===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),t.removeListener("close",f),t.removeListener("finish",p),t.removeListener("drain",h),t.removeListener("error",d),t.removeListener("unpipe",e),n.removeListener("end",l),n.removeListener("end",m),n.removeListener("data",c),u=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||h())});var h=function(t){return function(){var e=t._readableState;o("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,j(t))}}(n);t.on("drain",h);var u=!1;function c(e){o("ondata");var i=t.write(e);o("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==z(r.pipes,t))&&!u&&(o("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function d(e){o("onerror",e),m(),t.removeListener("error",d),0===a(t,"error")&&E(t,e)}function f(){t.removeListener("finish",p),m()}function p(){o("onfinish"),t.removeListener("close",f),m()}function m(){o("unpipe"),n.unpipe(t)}return n.on("data",c),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",d),t.once("close",f),t.once("finish",p),t.emit("pipe",n),r.flowing||(o("pipe resume"),n.resume()),t},_.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=z(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},_.prototype.on=function(t,e){var n=s.prototype.on.call(this,t,e),r=this._readableState;return"data"===t?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===t&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,o("on readable",r.length,r.reading),r.length?I(this):r.reading||i.nextTick(N,this))),n},_.prototype.addListener=_.prototype.on,_.prototype.removeListener=function(t,e){var n=s.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(L,this),n},_.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(L,this),e},_.prototype.resume=function(){var t=this._readableState;return t.flowing||(o("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(O,t,e))}(this,t)),t.paused=!1,this},_.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},_.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",function(){if(o("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(i){o("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause()))}),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var a=0;a<M.length;a++)t.on(M[a],this.emit.bind(this,M[a]));return this._read=function(e){o("wrapped _read",e),r&&(r=!1,t.resume())},this},"function"==typeof Symbol&&(_.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=n(7713)),d(this)}),Object.defineProperty(_.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(_.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(_.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),_._fromList=q,Object.defineProperty(_.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(_.from=function(t,e){return void 0===f&&(f=n(563)),f(_,t,e)})},1300(t,e,n){"use strict";t.exports=u;var r=n(1426).F,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,l=n(6196);function h(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(t){if(!(this instanceof u))return new u(t);l.call(this,t),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",c)}function c(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(e,n){d(t,e,n)})}function d(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}n(7832)(u,l),u.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},u.prototype._transform=function(t,e,n){n(new i("_transform()"))},u.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},u.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,function(t){e(t)})}},7342(t,e,n){"use strict";var r,i=n(9244);function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e){var n=t.entry;for(t.entry=null;n;){var r=n.callback;e.pendingcb--,r(void 0),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=_,_.WritableState=C;var a,s={deprecate:n(9521)},l=n(1395),h=n(3273).Buffer,u=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},c=n(6266),d=n(3381).getHighWaterMark,f=n(1426).F,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,y=f.ERR_STREAM_CANNOT_PIPE,b=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,A=f.ERR_STREAM_WRITE_AFTER_END,w=f.ERR_UNKNOWN_ENCODING,E=c.errorOrDestroy;function M(){}function C(t,e,a){r=r||n(6196),t=t||{},"boolean"!=typeof a&&(a=e instanceof r),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=d(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,o=n.writecb;if("function"!=typeof o)throw new g;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,o){--e.pendingcb,n?(i.nextTick(o,r),i.nextTick(T,t,e),t._writableState.errorEmitted=!0,E(t,r)):(o(r),t._writableState.errorEmitted=!0,E(t,r),T(t,e))}(t,n,r,e,o);else{var a=S(n)||t.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||k(t,n),r?i.nextTick(B,t,n,a,o):B(t,n,a,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function _(t){var e=this instanceof(r=r||n(6196));if(!e&&!a.call(_,this))return new _(t);this._writableState=new C(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),l.call(this)}function x(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new b("write")):n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function B(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),T(t,e)}function k(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),a=e.corkedRequestsFree;a.entry=n;for(var s=0,l=!0;n;)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,x(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;n;){var h=n.chunk,u=n.encoding,c=n.callback;if(x(t,e,!1,e.objectMode?1:h.length,h,u,c),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function S(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function I(t,e){t._final(function(n){e.pendingcb--,n&&E(t,n),e.prefinished=!0,t.emit("prefinish"),T(t,e)})}function T(t,e){var n=S(e);if(n&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,i.nextTick(I,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var r=t._readableState;(!r||r.autoDestroy&&r.endEmitted)&&t.destroy()}return n}n(7832)(_,l),C.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(C.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(t){return!!a.call(this,t)||this===_&&t&&t._writableState instanceof C}})):a=function(t){return t instanceof this},_.prototype.pipe=function(){E(this,new y)},_.prototype.write=function(t,e,n){var r,o=this._writableState,a=!1,s=!o.objectMode&&(r=t,h.isBuffer(r)||r instanceof u);return s&&!h.isBuffer(t)&&(t=function(t){return h.from(t)}(t)),"function"==typeof e&&(n=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof n&&(n=M),o.ending?function(t,e){var n=new A;E(t,n),i.nextTick(e,n)}(this,n):(s||function(t,e,n,r){var o;return null===n?o=new v:"string"==typeof n||e.objectMode||(o=new p("chunk",["string","Buffer"],n)),!o||(E(t,o),i.nextTick(r,o),!1)}(this,o,t,n))&&(o.pendingcb++,a=function(t,e,n,r,i,o){if(!n){var a=function(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=h.from(e,n)),e}(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else x(t,e,!1,s,r,i,o);return l}(this,o,s,t,e,n)),a},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||k(this,t))},_.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new w(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_.prototype._write=function(t,e,n){n(new m("_write()"))},_.prototype._writev=null,_.prototype.end=function(t,e,n){var r=this._writableState;return"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||function(t,e,n){e.ending=!0,T(t,e),n&&(e.finished?i.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,r,n),this},Object.defineProperty(_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),_.prototype.destroy=c.destroy,_.prototype._undestroy=c.undestroy,_.prototype._destroy=function(t,e){e(t)}},7713(t,e,n){"use strict";var r,i=n(9244);function o(t,e,n){return(e=function(t){var e=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(6448),s=Symbol("lastResolve"),l=Symbol("lastReject"),h=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function p(t,e){return{value:t,done:e}}function m(t){var e=t[s];if(null!==e){var n=t[f].read();null!==n&&(t[c]=null,t[s]=null,t[l]=null,e(p(n,!1)))}}function g(t){i.nextTick(m,t)}var y=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((o(r={get stream(){return this[f]},next:function(){var t=this,e=this[h];if(null!==e)return Promise.reject(e);if(this[u])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise(function(e,n){i.nextTick(function(){t[h]?n(t[h]):e(p(void 0,!0))})});var n,r=this[c];if(r)n=new Promise(function(t,e){return function(n,r){t.then(function(){e[u]?n(p(void 0,!0)):e[d](n,r)},r)}}(r,this));else{var o=this[f].read();if(null!==o)return Promise.resolve(p(o,!1));n=new Promise(this[d])}return this[c]=n,n}},Symbol.asyncIterator,function(){return this}),o(r,"return",function(){var t=this;return new Promise(function(e,n){t[f].destroy(null,function(t){t?n(t):e(p(void 0,!0))})})}),r),y);t.exports=function(t){var e,n=Object.create(b,(o(e={},f,{value:t,writable:!0}),o(e,s,{value:null,writable:!0}),o(e,l,{value:null,writable:!0}),o(e,h,{value:null,writable:!0}),o(e,u,{value:t._readableState.endEmitted,writable:!0}),o(e,d,{value:function(t,e){var r=n[f].read();r?(n[c]=null,n[s]=null,n[l]=null,t(p(r,!1))):(n[s]=t,n[l]=e)},writable:!0}),e));return n[c]=null,a(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[l];return null!==e&&(n[c]=null,n[s]=null,n[l]=null,e(t)),void(n[h]=t)}var r=n[s];null!==r&&(n[c]=null,n[s]=null,n[l]=null,r(p(void 0,!0))),n[u]=!0}),t.on("readable",g.bind(null,n)),n}},9455(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){o(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function o(t,e,n){return(e=s(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function s(t){var e=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}var l=n(3273).Buffer,h=n(5340).inspect,u=h&&h.custom||"inspect";function c(t,e,n){l.prototype.copy.call(t,e,n)}t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,n;return e=t,(n=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return l.alloc(0);for(var e=l.allocUnsafe(t>>>0),n=this.head,r=0;n;)c(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):n=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,n=1,r=e.data;for(t-=r.length;e=e.next;){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),0===(t-=o)){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=l.allocUnsafe(t),n=this.head,r=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0===(t-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:u,value:function(t,e){return h(this,i(i({},e),{},{depth:0,customInspect:!1}))}}])&&a(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},6266(t,e,n){"use strict";var r=n(9244);function i(t,e){a(t,e),o(t)}function o(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function a(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var n=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(a,this,t)):r.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?n._writableState?n._writableState.errorEmitted?r.nextTick(o,n):(n._writableState.errorEmitted=!0,r.nextTick(i,n,t)):r.nextTick(i,n,t):e?(r.nextTick(o,n),e(t)):r.nextTick(o,n)}),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(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}}},6448(t,e,n){"use strict";var r=n(1426).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,n,o){if("function"==typeof n)return t(e,null,n);n||(n={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r)}}}(o||i);var a=n.readable||!1!==n.readable&&e.readable,s=n.writable||!1!==n.writable&&e.writable,l=function(){e.writable||u()},h=e._writableState&&e._writableState.finished,u=function(){s=!1,h=!0,a||o.call(e)},c=e._readableState&&e._readableState.endEmitted,d=function(){a=!1,c=!0,s||o.call(e)},f=function(t){o.call(e,t)},p=function(){var t;return a&&!c?(e._readableState&&e._readableState.ended||(t=new r),o.call(e,t)):s&&!h?(e._writableState&&e._writableState.ended||(t=new r),o.call(e,t)):void 0},m=function(){e.req.on("finish",u)};return function(t){return t.setHeader&&"function"==typeof t.abort}(e)?(e.on("complete",u),e.on("abort",p),e.req?m():e.on("request",m)):s&&!e._writableState&&(e.on("end",l),e.on("close",l)),e.on("end",d),e.on("finish",u),!1!==n.error&&e.on("error",f),e.on("close",p),function(){e.removeListener("complete",u),e.removeListener("abort",p),e.removeListener("request",m),e.req&&e.req.removeListener("finish",u),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",u),e.removeListener("end",d),e.removeListener("error",f),e.removeListener("close",p)}}},563(t){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},7628(t,e,n){"use strict";var r,i=n(1426).F,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(t){if(t)throw t}function l(t){t()}function h(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var u,c=function(t){return t.length?"function"!=typeof t[t.length-1]?s:t.pop():s}(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new o("streams");var d=e.map(function(t,i){var o=i<e.length-1;return function(t,e,i,o){o=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(o);var s=!1;t.on("close",function(){s=!0}),void 0===r&&(r=n(6448)),r(t,{readable:e,writable:i},function(t){if(t)return o(t);s=!0,o()});var l=!1;return function(e){if(!s&&!l)return l=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new a("pipe"))}}(t,o,i>0,function(t){u||(u=t),t&&d.forEach(l),o||(d.forEach(l),c(u))})});return e.reduce(h)}},3381(t,e,n){"use strict";var r=n(1426).F.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,n,i){var o=function(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}(e,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},1395(t,e,n){t.exports=n(6737).EventEmitter},8097(t,e,n){"use strict";var r=n(3273).Buffer,i=n(7832),o=n(9141),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],h=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],c=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function f(t,e){return t<<e|t>>>32-e}function p(t,e,n,r,i,o,a,s){return f(t+(e^n^r)+o+a|0,s)+i|0}function m(t,e,n,r,i,o,a,s){return f(t+(e&n|~e&r)+o+a|0,s)+i|0}function g(t,e,n,r,i,o,a,s){return f(t+((e|~n)^r)+o+a|0,s)+i|0}function y(t,e,n,r,i,o,a,s){return f(t+(e&r|n&~r)+o+a|0,s)+i|0}function b(t,e,n,r,i,o,a,s){return f(t+(e^(n|~r))+o+a|0,s)+i|0}function v(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}i(v,o),v.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,v=0|this._e,A=0|this._a,w=0|this._b,E=0|this._c,M=0|this._d,C=0|this._e,_=0;_<80;_+=1){var x,B;_<16?(x=p(n,r,i,o,v,t[s[_]],c[0],h[_]),B=b(A,w,E,M,C,t[l[_]],d[0],u[_])):_<32?(x=m(n,r,i,o,v,t[s[_]],c[1],h[_]),B=y(A,w,E,M,C,t[l[_]],d[1],u[_])):_<48?(x=g(n,r,i,o,v,t[s[_]],c[2],h[_]),B=g(A,w,E,M,C,t[l[_]],d[2],u[_])):_<64?(x=y(n,r,i,o,v,t[s[_]],c[3],h[_]),B=m(A,w,E,M,C,t[l[_]],d[3],u[_])):(x=b(n,r,i,o,v,t[s[_]],c[4],h[_]),B=p(A,w,E,M,C,t[l[_]],d[4],u[_])),n=v,v=o,o=f(i,10),i=r,r=x,A=C,C=M,M=f(E,10),E=w,w=B}var k=this._b+i+M|0;this._b=this._c+o+C|0,this._c=this._d+v+A|0,this._d=this._e+n+w|0,this._e=this._a+r+E|0,this._a=k},v.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=r.alloc?r.alloc(20):new r(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=v},9141(t,e,n){"use strict";var r=n(2091).Buffer,i=n(2443),o=n(6571).Transform;function a(t){o.call(this),this._block=r.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(7832)(a,o),a.prototype._transform=function(t,e,n){var r=null;try{this.update(t,e)}catch(t){r=t}n(r)},a.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},a.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");for(var n=i(t,e),r=this._block,o=0;this._blockOffset+n.length-o>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)r[a]=n[o],a+=1,o+=1;this._update(),this._blockOffset=0}for(;o<n.length;)r[this._blockOffset]=n[o],this._blockOffset+=1,o+=1;for(var s=0,l=8*n.length;l>0;++s)this._length[s]+=l,(l=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*l);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e},a.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=a},2443(t,e,n){"use strict";var r=n(2091).Buffer,i=n(3259),o="undefined"!=typeof Uint8Array,a=o&&"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView;t.exports=function(t,e){if("string"==typeof t||r.isBuffer(t)||o&&t instanceof Uint8Array||a&&a(t))return i(t,e);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}},4362(t,e,n){"use strict";var r=n(7591),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=c;var o=Object.create(n(2384));o.inherits=n(7832);var a=n(1016),s=n(1944);o.inherits(c,a);for(var l=i(s.prototype),h=0;h<l.length;h++){var u=l[h];c.prototype[u]||(c.prototype[u]=s.prototype[u])}function c(t){if(!(this instanceof c))return new c(t);a.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),c.prototype._destroy=function(t,e){this.push(null),this.end(),r.nextTick(e,t)}},9436(t,e,n){"use strict";t.exports=o;var r=n(1286),i=Object.create(n(2384));function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}i.inherits=n(7832),i.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},1016(t,e,n){"use strict";var r=n(9244),i=n(7591);t.exports=v;var o,a=n(6308);v.ReadableState=b,n(6737).EventEmitter;var s=function(t,e){return t.listeners(e).length},l=n(6565),h=n(446).Buffer,u=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},c=Object.create(n(2384));c.inherits=n(7832);var d=n(5248),f=void 0;f=d&&d.debuglog?d.debuglog("stream"):function(){};var p,m=n(8586),g=n(2068);c.inherits(v,l);var y=["error","close","destroy","pause","resume"];function b(t,e){t=t||{};var r=e instanceof(o=o||n(4362));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=n(6793).I),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function v(t){if(o=o||n(4362),!(this instanceof v))return new v(t);this._readableState=new b(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),l.call(this)}function A(t,e,n,r,i){var o,a=t._readableState;return null===e?(a.reading=!1,function(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,C(t)}}(t,a)):(i||(o=function(t,e){var n,r;return r=e,h.isBuffer(r)||r instanceof u||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===h.prototype||(e=function(t){return h.from(t)}(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):w(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?w(t,a,e,!1):x(t,a)):w(t,a,e,!1))):r||(a.reading=!1)),function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function w(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&C(t)),x(t,e)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),v.prototype.destroy=g.destroy,v.prototype._undestroy=g.undestroy,v.prototype._destroy=function(t,e){this.push(null),e(t)},v.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=h.from(t,e),e=""),n=!0),A(this,t,e,!1,n)},v.prototype.unshift=function(t){return A(this,t,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return p||(p=n(6793).I),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};var E=8388608;function M(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=E?t=E:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function C(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(_,t):_(t))}function _(t){f("emit readable"),t.emit("readable"),I(t)}function x(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(B,t,e))}function B(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(f("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function k(t){f("readable nexttick read 0"),t.read(0)}function S(t,e){e.reading||(f("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),I(t),e.flowing&&!e.reading&&t.read(0)}function I(t){var e=t._readableState;for(f("flow",e.flowing);e.flowing&&null!==t.read(););}function T(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;return t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?function(t,e){var n=e.head,r=1,i=n.data;for(t-=i.length;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=h.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0===(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}(t,e),r}(t,e.buffer,e.decoder),n);var n}function P(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(R,e,t))}function R(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function L(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}v.prototype.read=function(t){f("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?P(this):C(this),null;if(0===(t=M(t,e))&&e.ended)return 0===e.length&&P(this),null;var r,i=e.needReadable;return f("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&f("length less than watermark",i=!0),e.ended||e.reading?f("reading or ended",i=!1):i&&(f("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=M(n,e))),null===(r=t>0?T(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&P(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,e);var l=e&&!1===e.end||t===r.stdout||t===r.stderr?b:h;function h(){f("onend"),t.end()}o.endEmitted?i.nextTick(l):n.once("end",l),t.on("unpipe",function e(r,i){f("onunpipe"),r===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,f("cleanup"),t.removeListener("close",g),t.removeListener("finish",y),t.removeListener("drain",u),t.removeListener("error",m),t.removeListener("unpipe",e),n.removeListener("end",h),n.removeListener("end",b),n.removeListener("data",p),c=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||u())});var u=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,I(t))}}(n);t.on("drain",u);var c=!1,d=!1;function p(e){f("ondata"),d=!1,!1!==t.write(e)||d||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==L(o.pipes,t))&&!c&&(f("false write response, pause",o.awaitDrain),o.awaitDrain++,d=!0),n.pause())}function m(e){f("onerror",e),b(),t.removeListener("error",m),0===s(t,"error")&&t.emit("error",e)}function g(){t.removeListener("finish",y),b()}function y(){f("onfinish"),t.removeListener("close",g),b()}function b(){f("unpipe"),n.unpipe(t)}return n.on("data",p),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",m),t.once("close",g),t.once("finish",y),t.emit("pipe",n),o.flowing||(f("pipe resume"),n.resume()),t},v.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=L(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},v.prototype.on=function(t,e){var n=l.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&C(this):i.nextTick(k,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var t=this._readableState;return t.flowing||(f("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(S,t,e))}(this,t)),this},v.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},v.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",function(){if(f("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(i){f("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause()))}),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<y.length;o++)t.on(y[o],this.emit.bind(this,y[o]));return this._read=function(e){f("wrapped _read",e),r&&(r=!1,t.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=T},1286(t,e,n){"use strict";t.exports=a;var r=n(4362),i=Object.create(n(2384));function o(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(t){if(!(this instanceof a))return new a(t);r.call(this,t),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",s)}function s(){var t=this;"function"==typeof this._flush?this._flush(function(e,n){l(t,e,n)}):l(this,null,null)}function l(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}i.inherits=n(7832),i.inherits(a,r),a.prototype.push=function(t,e){return this._transformState.needTransform=!1,r.prototype.push.call(this,t,e)},a.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},a.prototype._destroy=function(t,e){var n=this;r.prototype._destroy.call(this,t,function(t){e(t),n.emit("close")})}},1944(t,e,n){"use strict";var r=n(9244),i=n(7591);function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e){var n=t.entry;for(t.entry=null;n;){var r=n.callback;e.pendingcb--,r(void 0),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=y;var a,s=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?setImmediate:i.nextTick;y.WritableState=g;var l=Object.create(n(2384));l.inherits=n(7832);var h,u={deprecate:n(9521)},c=n(6565),d=n(446).Buffer,f=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},p=n(2068);function m(){}function g(t,e){a=a||n(4362),t=t||{};var r=e instanceof a;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var l=t.highWaterMark,h=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=l||0===l?l:r&&(h||0===h)?h:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===t.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,o=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,o){--e.pendingcb,n?(i.nextTick(o,r),i.nextTick(M,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(o(r),t._writableState.errorEmitted=!0,t.emit("error",r),M(t,e))}(t,n,r,e,o);else{var a=w(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||A(t,n),r?s(v,t,n,a,o):v(t,n,a,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function y(t){if(a=a||n(4362),!(h.call(y,this)||this instanceof a))return new y(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),c.call(this)}function b(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function v(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),M(t,e)}function A(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),a=e.corkedRequestsFree;a.entry=n;for(var s=0,l=!0;n;)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,b(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;n;){var h=n.chunk,u=n.encoding,c=n.callback;if(b(t,e,!1,e.objectMode?1:h.length,h,u,c),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function w(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function E(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),M(t,e)})}function M(t,e){var n=w(e);return n&&(function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,i.nextTick(E,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}l.inherits(y,c),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(t){return!!h.call(this,t)||this===y&&t&&t._writableState instanceof g}})):h=function(t){return t instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(t,e,n){var r,o=this._writableState,a=!1,s=!o.objectMode&&(r=t,d.isBuffer(r)||r instanceof f);return s&&!d.isBuffer(t)&&(t=function(t){return d.from(t)}(t)),"function"==typeof e&&(n=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof n&&(n=m),o.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),i.nextTick(e,n)}(this,n):(s||function(t,e,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),i.nextTick(r,a),o=!1),o}(this,o,t,n))&&(o.pendingcb++,a=function(t,e,n,r,i,o){if(!n){var a=function(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=d.from(e,n)),e}(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var h=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},h?h.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else b(t,e,!1,s,r,i,o);return l}(this,o,s,t,e,n)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||A(this,t))},y.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||function(t,e,n){e.ending=!0,M(t,e),n&&(e.finished?i.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=p.destroy,y.prototype._undestroy=p.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}},8586(t,e,n){"use strict";var r=n(446).Buffer,i=n(5394);function o(t,e,n){t.copy(e,n)}t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);for(var e=r.allocUnsafe(t>>>0),n=this.head,i=0;n;)o(n.data,e,i),i+=n.data.length,n=n.next;return e},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},2068(t,e,n){"use strict";var r=n(7591);function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,t)):r.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(i,n,t)):r.nextTick(i,n,t):e&&e(t)}),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)}}},6565(t,e,n){t.exports=n(6737).EventEmitter},446(t,e,n){var r=n(3273),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),o(i,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},6571(t,e,n){(e=t.exports=n(1016)).Stream=e,e.Readable=e,e.Writable=n(1944),e.Duplex=n(4362),e.Transform=n(1286),e.PassThrough=n(9436)},6793(t,e,n){"use strict";var r=n(5183).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.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(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=h,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=u,this.end=c,e=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function h(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function u(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.I=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},o.prototype.text=function(t,e){var n=function(t,e,n){var r=e.length-1;if(r<n)return 0;var i=a(e[r]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--r<n||-2===i?0:(i=a(e[r]))>=0?(i>0&&(t.lastNeed=i-2),i):--r<n||-2===i?0:(i=a(e[r]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},5183(t,e,n){var r=n(3273),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),o(i,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},2091(t,e,n){var r=n(3273),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},15(t,e,n){"use strict";var r=n(1051),i=n(5151),o=n(4346)(),a=n(8109),s=n(4097),l=r("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new s("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||l(e)!==e)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,h=!0;if("length"in t&&a){var u=a(t,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(h=!1)}return(r||h||!n)&&(o?i(t,"length",e,!0,!0):i(t,"length",e)),t}},1214(t,e,n){"use strict";var r=n(2091).Buffer,i=n(3259);function o(t,e){this._block=r.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}o.prototype.update=function(t,e){t=i(t,e||"utf8");for(var n=this._block,r=this._blockSize,o=t.length,a=this._len,s=0;s<o;){for(var l=a%r,h=Math.min(o-s,r-l),u=0;u<h;u++)n[l+u]=t[s+u];s+=h,(a+=h)%r===0&&this._update(n)}return this._len+=o,this},o.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=o},4180(t,e,n){"use strict";t.exports=function(e){var n=e.toLowerCase(),r=t.exports[n];if(!r)throw new Error(n+" is not supported (we accept pull requests)");return new r},t.exports.sha=n(3602),t.exports.sha1=n(5375),t.exports.sha224=n(4788),t.exports.sha256=n(7697),t.exports.sha384=n(3557),t.exports.sha512=n(2532)},3602(t,e,n){"use strict";var r=n(7832),i=n(1214),o=n(2091).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function l(){this.init(),this._w=s,i.call(this,64,56)}function h(t){return t<<5|t>>>27}function u(t){return t<<30|t>>>2}function c(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,l=0;l<16;++l)e[l]=t.readInt32BE(4*l);for(;l<80;++l)e[l]=e[l-3]^e[l-8]^e[l-14]^e[l-16];for(var d=0;d<80;++d){var f=~~(d/20),p=h(n)+c(f,r,i,o)+s+e[d]+a[f]|0;s=o,o=i,i=u(r),r=n,n=p}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},l.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=l},5375(t,e,n){"use strict";var r=n(7832),i=n(1214),o=n(2091).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function l(){this.init(),this._w=s,i.call(this,64,56)}function h(t){return t<<1|t>>>31}function u(t){return t<<5|t>>>27}function c(t){return t<<30|t>>>2}function d(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,l=0;l<16;++l)e[l]=t.readInt32BE(4*l);for(;l<80;++l)e[l]=h(e[l-3]^e[l-8]^e[l-14]^e[l-16]);for(var f=0;f<80;++f){var p=~~(f/20),m=u(n)+d(p,r,i,o)+s+e[f]+a[p]|0;s=o,o=i,i=c(r),r=n,n=m}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},l.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=l},4788(t,e,n){"use strict";var r=n(7832),i=n(7697),o=n(1214),a=n(2091).Buffer,s=new Array(64);function l(){this.init(),this._w=s,o.call(this,64,56)}r(l,i),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var t=a.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=l},7697(t,e,n){"use strict";var r=n(7832),i=n(1214),o=n(2091).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function l(){this.init(),this._w=s,i.call(this,64,56)}function h(t,e,n){return n^t&(e^n)}function u(t,e,n){return t&e|n&(t|e)}function c(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function d(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function f(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function p(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}r(l,i),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,l=0|this._f,m=0|this._g,g=0|this._h,y=0;y<16;++y)e[y]=t.readInt32BE(4*y);for(;y<64;++y)e[y]=p(e[y-2])+e[y-7]+f(e[y-15])+e[y-16]|0;for(var b=0;b<64;++b){var v=g+d(s)+h(s,l,m)+a[b]+e[b]|0,A=c(n)+u(n,r,i)|0;g=m,m=l,l=s,s=o+v|0,o=i,i=r,r=n,n=v+A|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=l+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},l.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=l},3557(t,e,n){"use strict";var r=n(7832),i=n(2532),o=n(1214),a=n(2091).Buffer,s=new Array(160);function l(){this.init(),this._w=s,o.call(this,128,112)}r(l,i),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var t=a.allocUnsafe(48);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=l},2532(t,e,n){"use strict";var r=n(7832),i=n(1214),o=n(2091).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function l(){this.init(),this._w=s,i.call(this,128,112)}function h(t,e,n){return n^t&(e^n)}function u(t,e,n){return t&e|n&(t|e)}function c(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function d(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function f(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function g(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function y(t,e){return t>>>0<e>>>0?1:0}r(l,i),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,l=0|this._fh,b=0|this._gh,v=0|this._hh,A=0|this._al,w=0|this._bl,E=0|this._cl,M=0|this._dl,C=0|this._el,_=0|this._fl,x=0|this._gl,B=0|this._hl,k=0;k<32;k+=2)e[k]=t.readInt32BE(4*k),e[k+1]=t.readInt32BE(4*k+4);for(;k<160;k+=2){var S=e[k-30],I=e[k-30+1],T=f(S,I),P=p(I,S),R=m(S=e[k-4],I=e[k-4+1]),L=g(I,S),N=e[k-14],O=e[k-14+1],j=e[k-32],q=e[k-32+1],D=P+O|0,U=T+N+y(D,P)|0;U=(U=U+R+y(D=D+L|0,L)|0)+j+y(D=D+q|0,q)|0,e[k]=U,e[k+1]=D}for(var z=0;z<160;z+=2){U=e[z],D=e[z+1];var H=u(n,r,i),F=u(A,w,E),$=c(n,A),W=c(A,n),Y=d(s,C),K=d(C,s),Z=a[z],V=a[z+1],X=h(s,l,b),J=h(C,_,x),G=B+K|0,Q=v+Y+y(G,B)|0;Q=(Q=(Q=Q+X+y(G=G+J|0,J)|0)+Z+y(G=G+V|0,V)|0)+U+y(G=G+D|0,D)|0;var tt=W+F|0,et=$+H+y(tt,W)|0;v=b,B=x,b=l,x=_,l=s,_=C,s=o+Q+y(C=M+G|0,M)|0,o=i,M=E,i=r,E=w,r=n,w=A,n=Q+et+y(A=G+tt|0,G)|0}this._al=this._al+A|0,this._bl=this._bl+w|0,this._cl=this._cl+E|0,this._dl=this._dl+M|0,this._el=this._el+C|0,this._fl=this._fl+_|0,this._gl=this._gl+x|0,this._hl=this._hl+B|0,this._ah=this._ah+n+y(this._al,A)|0,this._bh=this._bh+r+y(this._bl,w)|0,this._ch=this._ch+i+y(this._cl,E)|0,this._dh=this._dh+o+y(this._dl,M)|0,this._eh=this._eh+s+y(this._el,C)|0,this._fh=this._fh+l+y(this._fl,_)|0,this._gh=this._gh+b+y(this._gl,x)|0,this._hh=this._hh+v+y(this._hl,B)|0},l.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=l},4688(t,e,n){t.exports=i;var r=n(6737).EventEmitter;function i(){r.call(this)}n(7832)(i,r),i.Readable=n(8762),i.Writable=n(7342),i.Duplex=n(6196),i.Transform=n(1300),i.PassThrough=n(8046),i.finished=n(6448),i.pipeline=n(7628),i.Stream=i,i.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,t.end())}function l(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){if(u(),0===r.listenerCount(this,"error"))throw t}function u(){n.removeListener("data",i),t.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",h),t.removeListener("error",h),n.removeListener("end",u),n.removeListener("close",u),t.removeListener("close",u)}return n.on("error",h),t.on("error",h),n.on("end",u),n.on("close",u),t.on("close",u),t.emit("pipe",n),t}},6807(t,e,n){"use strict";var r=n(2091).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.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(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=h,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=u,this.end=c,e=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function h(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function u(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.I=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},o.prototype.text=function(t,e){var n=function(t,e,n){var r=e.length-1;if(r<n)return 0;var i=a(e[r]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--r<n||-2===i?0:(i=a(e[r]))>=0?(i>0&&(t.lastNeed=i-2),i):--r<n||-2===i?0:(i=a(e[r]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},3259(t,e,n){"use strict";var r=n(2091).Buffer,i=n(2724),o=n(2886),a=ArrayBuffer.isView||function(t){try{return o(t),!0}catch(t){return!1}},s="undefined"!=typeof Uint8Array,l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,h=l&&(r.prototype instanceof Uint8Array||r.TYPED_ARRAY_SUPPORT);t.exports=function(t,e){if(r.isBuffer(t))return t.constructor&&!("isBuffer"in t)?r.from(t):t;if("string"==typeof t)return r.from(t,e);if(l&&a(t)){if(0===t.byteLength)return r.alloc(0);if(h){var n=r.from(t.buffer,t.byteOffset,t.byteLength);if(n.byteLength===t.byteLength)return n}var o=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),u=r.from(o);if(u.length===t.byteLength)return u}if(s&&t instanceof Uint8Array)return r.from(t);var c=i(t);if(c)for(var d=0;d<t.length;d+=1){var f=t[d];if("number"!=typeof f||f<0||f>255||~~f!==f)throw new RangeError("Array items must be numbers in the range 0-255.")}if(c||r.isBuffer(t)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))return r.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},2724(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},2886(t,e,n){"use strict";var r=n(4097),i=n(3030)("TypedArray.prototype.buffer",!0),o=n(9326);t.exports=i||function(t){if(!o(t))throw new r("Not a Typed Array");return t.buffer}},9521(t,e,n){function r(t){try{if(!n.g.localStorage)return!1}catch(t){return!1}var e=n.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(r("noDeprecation"))return t;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}},6175(__unused_webpack_module,exports){var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1},Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var n in t)e.push(n);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var n=0;n<t.length;n++)e(t[n],n,t)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(t,e,n){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(t){return function(t,e,n){t[e]=n}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var n=e.contentWindow,r=n.eval,i=n.execScript;!r&&i&&(i.call(n,"null"),r=n.eval),forEach(Object_keys(t),function(e){n[e]=t[e]}),forEach(globals,function(e){t[e]&&(n[e]=t[e])});var o=Object_keys(n),a=r.call(n,this.code);return forEach(Object_keys(n),function(e){(e in t||-1===indexOf(o,e))&&(t[e]=n[e])}),forEach(globals,function(e){e in t||defineProp(t,e,n[e])}),document.body.removeChild(e),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),n=this.runInContext(e);return t&&forEach(Object_keys(e),function(n){t[n]=e[n]}),n},forEach(Object_keys(Script.prototype),function(t){exports[t]=Script[t]=function(e){var n=Script(e);return n[t].apply(n,[].slice.call(arguments,1))}}),exports.isContext=function(t){return t instanceof Context},exports.createScript=function(t){return exports.Script(t)},exports.createContext=Script.createContext=function(t){var e=new Context;return"object"==typeof t&&forEach(Object_keys(t),function(n){e[n]=t[n]}),e}},5637(t,e,n){"use strict";var r=n(3044),i=n(8957),o=n(4489),a=n(3030),s=n(8109),l=n(5458),h=a("Object.prototype.toString"),u=n(6386)(),c="undefined"==typeof globalThis?n.g:globalThis,d=i(),f=a("String.prototype.slice"),p=a("Array.prototype.indexOf",!0)||function(t,e){for(var n=0;n<t.length;n+=1)if(t[n]===e)return n;return-1},m={__proto__:null};r(d,u&&s&&l?function(t){var e=new c[t];if(Symbol.toStringTag in e&&l){var n=l(e),r=s(n,Symbol.toStringTag);if(!r&&n){var i=l(n);r=s(i,Symbol.toStringTag)}if(r&&r.get){var a=o(r.get);m["$"+t]=a}}}:function(t){var e=new c[t],n=e.slice||e.set;if(n){var r=o(n);m["$"+t]=r}}),t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!u){var e=f(h(t),8,-1);return p(d,e)>-1?e:"Object"===e&&function(t){var e=!1;return r(m,function(n,r){if(!e)try{n(t),e=f(r,1)}catch(t){}}),e}(t)}return s?function(t){var e=!1;return r(m,function(n,r){if(!e)try{"$"+n(t)===r&&(e=f(r,1))}catch(t){}}),e}(t):null}},8725(t,e,n){t.exports=n(1933)},1933(t,e,n){"use strict";var r=n(3273).Buffer;const i=new function(){var t,e,n,i,o,a,s,l,h,u,c=[],d=[];for(f=8;f-- >0;)c[f]=[];for(t=0;t<256;t++){e="ᠣ웨螸ŏ㚦틵祯酒悼鮎ꌌ笵ᷠퟂ⹋﹗ᕷ㟥鿰䫚壉⤊놠殅뵝ჴ쬾է䆋Ᵹ闘ﯮ籦\udd17䞞쨭뼇굚茳挂ꩱ젙䧙守騦㊰햀뻍㑈コ遟둔錢擱猒䀈쏬\udba1贽需켫皂혛떯橐䗳ワ㽕ꋪ斺⿀\ude1c﵍鉵ڊ닦ฟ拔ꢖ暈╙葲㥌幸㢌톥댡鰞䏇ﰄ写洍縤㮫츑轎럫㲁铷뤓ⳓ쐃噄義⪻셓\udc0b鵬ㅴ겉ᓡᘺ椉炶탭챂颤⡜".charCodeAt(t/2),(a=(o=1&t?255&e:e>>>8)<<1)>=256&&(a^=285),(s=a<<1)>=256&&(s^=285),l=s^o,(h=s<<1)>=256&&(h^=285),u=h^o,c[0][t]=[0,0],c[0][t][0]=o<<24|o<<16|s<<8|o,c[0][t][1]=h<<24|l<<16|a<<8|u;for(var f=1;f<8;f++)c[f][t]=[0,0],c[f][t][0]=c[f-1][t][0]>>>8|c[f-1][t][1]<<24,c[f][t][1]=c[f-1][t][1]>>>8|c[f-1][t][0]<<24}for(d[0]=[0,0],n=1;n<=10;n++)i=8*(n-1),d[n]=[0,0],d[n][0]=4278190080&c[0][i][0]^16711680&c[1][i+1][0]^65280&c[2][i+2][0]^255&c[3][i+3][0],d[n][1]=4278190080&c[4][i+4][1]^16711680&c[5][i+5][1]^65280&c[6][i+6][1]^255&c[7][i+7][1];let p=[],m=[],g=[],y=[],b=[],v=[],A=[],w=0,E=0;function M(){let t,e,n,r,i;for(t=0,e=0;t<8;t++,e+=8)v[t]=[0,0],v[t][0]=(255&m[e])<<24^(255&m[e+1])<<16^(255&m[e+2])<<8^255&m[e+3],v[t][1]=(255&m[e+4])<<24^(255&m[e+5])<<16^(255&m[e+6])<<8^255&m[e+7];for(t=0;t<8;t++)A[t]=[0,0],y[t]=[0,0],A[t][0]=v[t][0]^(y[t][0]=g[t][0]),A[t][1]=v[t][1]^(y[t][1]=g[t][1]);for(n=1;n<=10;n++){for(t=0;t<8;t++)for(b[t]=[0,0],i=0,r=56,e=0;i<8;i++,r-=8,e=r<32?1:0)b[t][0]^=c[i][y[t-i&7][e]>>>r%32&255][0],b[t][1]^=c[i][y[t-i&7][e]>>>r%32&255][1];for(t=0;t<8;t++)y[t][0]=b[t][0],y[t][1]=b[t][1];for(y[0][0]^=d[n][0],y[0][1]^=d[n][1],t=0;t<8;t++)for(b[t][0]=y[t][0],b[t][1]=y[t][1],i=0,r=56,e=0;i<8;i++,r-=8,e=r<32?1:0)b[t][0]^=c[i][A[t-i&7][e]>>>r%32&255][0],b[t][1]^=c[i][A[t-i&7][e]>>>r%32&255][1];for(t=0;t<8;t++)A[t][0]=b[t][0],A[t][1]=b[t][1]}for(t=0;t<8;t++)g[t][0]^=A[t][0]^v[t][0],g[t][1]^=A[t][1]^v[t][1]}const C={init:function(){for(var t=32;t-- >0;)p[t]=0;for(w=E=0,m=[0],t=8;t-- >0;)g[t]=[0,0];return C},add:function(t){if(!t)return C;t=function(t){let e,n,r=t.toString();for(t=[],e=0;e<r.length;e++)n=r.charCodeAt(e),n>=256&&t.push(n>>>8&255),t.push(255&n);return t}(t);let e,n,r,i=8*t.length,o=0,a=8-(7&i)&7,s=7&w,l=i;for(e=31,r=0;e>=0;e--)r+=(255&p[e])+l%256,p[e]=255&r,r>>>=8,l=Math.floor(l/256);for(;i>8;)n=t[o]<<a&255|(255&t[o+1])>>>8-a,m[E++]|=n>>>s,w+=8-s,512==w&&(M(),w=E=0,m=[]),m[E]=n<<8-s&255,w+=s,i-=8,o++;return i>0?(n=t[o]<<a&255,m[E]|=n>>>s):n=0,s+i<8||(E++,w+=8-s,i-=8-s,512==w&&(M(),w=E=0,m=[]),m[E]=n<<8-s&255),w+=i,C},finalize:function(){let t,e,n,r="",i=[],o="0123456789ABCDEF".split("");if(m[E]|=128>>>(7&w),E++,E>32){for(;E<64;)m[E++]=0;M(),E=0,m=[]}for(;E<32;)m[E++]=0;for(m.push.apply(m,p),M(),t=0,e=0;t<8;t++,e+=8)n=g[t][0],i[e]=n>>>24&255,i[e+1]=n>>>16&255,i[e+2]=n>>>8&255,i[e+3]=255&n,n=g[t][1],i[e+4]=n>>>24&255,i[e+5]=n>>>16&255,i[e+6]=n>>>8&255,i[e+7]=255&n;for(t=0;t<i.length;t++)r+=o[i[t]>>>4],r+=o[15&i[t]];return r.toLowerCase()}};function _(t){let e=t,n="";for(var r=0;r<e.length;r+=2)n+=String.fromCharCode(parseInt(e.substr(r,2),16));return n}function x(t,e){for(var n=new Uint8Array(t.length/2),r=0;r<t.length;r+=2)n[r/2]=parseInt(t.substring(r,r+2),16);return e?n.buffer:n}function B(t){return r.from(t,"hex").toString("base64")}let k;return{encSync:function(t,e){return t&&"string"==typeof t&&""!==t?(k=C.init().add(t).finalize(),e&&"hex"!==e.toLowerCase()?"bytes"===e.toLowerCase()?_(k):"base64"===e.toLowerCase()?B(k):"uint8"===e.toLowerCase()?x(k,!1):"arraybuffer"===e.toLowerCase()?x(k,!0):void 0:k):null},enc:function(t,e,n){if("function"!=typeof e)if("string"==typeof t&&""!==t)try{k=C.init().add(t).finalize(),"function"!=typeof disgest&&"hex"!==e.toLowerCase()||n(!1,k),"bytes"===e.toLowerCase()&&n(!1,_(k)),"base64"===e.toLowerCase()&&n(!1,B(k)),"uint8"===e.toLowerCase()&&n(!1,x(k,!1)),"arraybuffer"===e.toLowerCase()&&n(!1,x(k,!0))}catch(t){n(t,null)}else n("whirlpool input must be a string",null);else n=e},encP:function(t,e){return new Promise(function(n,r){t&&"string"==typeof t&&""!==t||r("whirlpool input must be a string");try{return k=C.init().add(t).finalize(),e&&"hex"!==e.toLowerCase()||n(k),"bytes"===e.toLowerCase()&&n(_(k)),"base64"===e.toLowerCase()&&n(B(k)),"uint8"===e.toLowerCase()&&n(x(k,!1)),void("arraybuffer"===e.toLowerCase()&&n(x(k,!0)))}catch(t){r(t)}})}}};t.exports=i},1958(t,e,n){"use strict";n.d(e,{A:()=>s});var r=n(1132),i=n.n(r),o=n(7060),a=n.n(o)()(i());a.push([t.id,':root {\n --color-1: #7f80ff;\n --color-2: #2a284a;\n --color-2-hover: #201e3d;\n --color-3: #8a87c0;\n --color-4: #161a2b;\n --color-5: #ccbdde;\n --color-6: #b5b5b5;\n --color-7: #413f6e;\n --sidebar-width: 20%;\n}\n\n/* Page background */\nbody {\n margin: 0;\n background-color: #333333;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100vh;\n font-family: "Courier New", Courier, monospace;\n font-color: --var(--color-5);\n overflow: hidden;\n}\n\n/* Outer container */\n.container_box {\n width: 100%;\n height: 100%;\n border: 3px solid var(--color-3);\n display: flex;\n flex-direction: column;\n padding: 15px;\n box-sizing: border-box;\n background-color: black;\n font-color: var(--color-5);\n scrollbar-color: var(--color-7) black;\n overflow: hidden;\n}\n\n#error-container {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: rgba(180, 25, 25, 0.3);\n padding: 20px;\n border-radius: 10px;\n text-align: center;\n z-index: 1000;\n width: 400px;\n display: none;\n}\n\n#loading-container {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: rgba(22, 26, 43, 0.3);\n padding: 20px;\n border-radius: 10px;\n text-align: center;\n z-index: 1000;\n width: 400px;\n display: none;\n}\n\n.loading::after {\n content: ".";\n animation: dots 1.5s steps(3, end) infinite;\n}\n\n@keyframes dots {\n 0% {\n content: ".";\n }\n 33% {\n content: "..";\n }\n 66% {\n content: "...";\n }\n 100% {\n content: ".";\n }\n}\n\n#loading {\n width: "25%";\n height: "25%";\n}\n\n#welcome {\n margin-top: 20px;\n margin-left: 40px;\n width: 100%;\n justify-content: left;\n font-size: 22px;\n color: var(--color-1);\n}\n/* Top title bar */\n.top_bar {\n height: 40px;\n background-color: var(--color-7);\n display: flex;\n justify-content: center;\n align-items: center;\n border: 1px solid black;\n border-radius: 6px;\n position: relative;\n -webkit-app-region: drag;\n}\n\n#close-btn {\n position: absolute;\n right: 8px;\n background: transparent;\n border: none;\n color: #4a90e2;\n font-size: 18px;\n font-weight: bold;\n cursor: pointer;\n line-height: 1;\n padding: 2px 6px;\n border-radius: 4px;\n -webkit-app-region: no-drag;\n}\n\n#close-btn:hover {\n color: #82b4f0;\n}\n\n.rubik-glitch-regular {\n font-family: "Rubik Glitch", system-ui;\n font-weight: 400;\n font-style: normal;\n}\n\n#psbyline {\n width: 150px;\n height: 30px;\n}\n.titleline {\n font-size: 18pt;\n font-family: "RG", system-ui;\n}\n\n.byline {\n font-size: 10pt;\n font-family: "Courier New", Courier, monospace;\n position: relative;\n left: -84px;\n bottom: -13px;\n}\n/* Entry bar */\n.entry_bar {\n height: 60px;\n background-color: var(--color-2);\n border: 1px solid black;\n padding: 5px;\n display: flex;\n align-items: center;\n margin-top: 2px;\n gap: 8px;\n}\n\n.entry_bar input[type="text"] {\n flex: 1;\n padding: 5px;\n background-color: black;\n border: 1px solid grey;\n color: var(--color-6);\n}\n\nhr {\n border: 4px solid var(--color-2);\n border-radius: 2px;\n}\n\n/* Content area */\n.content_area {\n flex: 1;\n min-height: 0;\n margin-top: 5px;\n display: flex;\n margin-right: 5px;\n font-family: Cantarell, system-ui;\n font-size: 12px;\n overflow: hidden;\n word-break: break-all;\n}\n\n#main_content {\n font-face: Cantarell, system-ui;\n color: var(--color-1);\n flex: 1;\n min-height: 0;\n width: 100%;\n}\n\n/* Sidebar */\n.sidebar {\n display: block;\n position: static;\n width: var(--sidebar-width);\n min-width: 160px;\n max-width: 300px;\n background-color: var(--color-4);\n border: 1px solid var(--color-3);\n padding: 1px;\n color: white;\n margin-right: 1px;\n padding-top: 2px;\n margin-left: 6px;\n height: 100%;\n box-sizing: border-box;\n overflow-y: auto;\n align-items: center;\n}\n\n.sidebar select {\n margin-bottom: 5px;\n background-color: black;\n border: 1px solid var(--color-3);\n color: var(--color-3);\n padding: 5px;\n margin-top: 5px;\n}\n\n.sidebar option {\n color: var(--color-1);\n padding: 5px;\n}\n\n/* Main panel */\n.main_panel {\n background-color: #111;\n color: white;\n padding: 5px;\n box-sizing: border-box;\n font-family: word-break, monospace;\n align-items: center;\n flex: 1;\n min-width: 0;\n justify-items: center;\n overflow-y: hidden;\n}\n\n/* #main is the outer flex column host for the three content panels */\n#main {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n height: 100%;\n}\n\ntable,\nth,\ntd {\n background-color: var(--color-7);\n text-align: right;\n border: 1px solid var(--color-3);\n border-collapse: collapse;\n border-spacing: 3px;\n padding: 6px;\n color: white;\n word-break: break-all;\n font-size: 11px;\n font-face: monospace, monospace;\n}\n\ntable {\n width: 100%;\n}\n\nth {\n color: var(--color-6);\n}\n\ntd {\n color: white;\n width: 30%;\n}\n\nstrong {\n color: white;\n}\n\n.menu_bar {\n width: 100%;\n align-items: center;\n margin-top: -20px;\n margin-left: var(--sidebar-width);\n display: flex;\n gap: 10px;\n}\n\n.menu-btns {\n font-weight: bold;\n width: 98%;\n background-color: var(--color-7);\n border: 2px solid black;\n color: white;\n padding: 5px 0px;\n text-align: center;\n align-items: center;\n text-decoration: none;\n display: block;\n font-size: 14px;\n border-radius: 5px;\n transition:\n background-color 0.3s,\n border-color 0.3s;\n}\n\n.menu-btns:hover,\n.menu-btns:focus {\n background-color: var(--color-2);\n border-color: black;\n cursor: pointer;\n}\n\n.custom-btns {\n max-width: 140px;\n background-color: var(--color-7);\n border: 3px solid black;\n width: 140px;\n color: white;\n padding: 5px 0px;\n text-align: center;\n align-items: center;\n text-decoration: none;\n display: block;\n font-size: 14px;\n margin: 1px 1px;\n cursor: pointer;\n font-weight: bold;\n border-radius: 5px;\n opacity: 0.4;\n transition:\n background-color 0.3s,\n border-color 0.3s;\n}\n\n.custom-btns:hover,\n.custom-btns:focus {\n background-color: var(--color-2);\n border-color: dark-gray;\n cursor: pointer;\n}\n\n/* Status bar */\n#status {\n text-align: left;\n padding: 2px 8px;\n height: 18px;\n background-color: black;\n color: white;\n border: 1px solid grey;\n font-size: small;\n flex: 1;\n}\n\n.active {\n padding: 5px;\n word-break: break-word;\n}\n\n#active-recon {\n background-color: var(--color-7);\n position: absolute;\n margin-top: 10px;\n margin-right: 15px;\n right: 0;\n top: 0;\n width: 28%;\n min-width: 200px;\n border: 1px solid var(--color-3);\n height: 80%;\n color: white;\n overflow-y: auto;\n}\n\n#summary_content {\n display: block;\n border: 1px solid var(--color-3);\n background-color: var(--color-7);\n min-height: 100%;\n padding: 10px;\n width: 95%;\n margin: 10px;\n box-sizing: border-box;\n}\n\n#tab-btns {\n width: 760px;\n}\n\n#rotate-btns {\n position: absolute;\n margin-left: 950px;\n margin-top: 58px;\n width: 120px;\n justify-content: right;\n align-items: right;\n z-index: 5;\n}\n\n#summary_box {\n display: block;\n border: 8px solid var(--color-3);\n background-color: var(--color-4);\n padding: 10px;\n width: 100%;\n box-sizing: border-box;\n margin-top: 2px;\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n}\n\n#stats_box {\n display: none;\n border: 8px solid var(--color-3);\n background-color: var(--color-4);\n padding: 10px;\n width: 100%;\n box-sizing: border-box;\n margin-top: 2px;\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n}\n\n#stats_content {\n color: var(--color-5);\n}\n\n#data_tools_box {\n display: none;\n border: 8px solid var(--color-3);\n background-color: var(--color-4);\n padding: 10px;\n width: 100%;\n box-sizing: border-box;\n margin-top: 2px;\n flex: 1;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n color: var(--color-5);\n}\n\n#crypt_box {\n display: none;\n border: 8px solid var(--color-3);\n background-color: var(--color-4);\n padding: 10px;\n width: 100%;\n box-sizing: border-box;\n margin-top: 2px;\n flex: 1;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n color: var(--color-5);\n}\n\n.keystore-workspace-header,\n.crypt-workspace-header {\n color: var(--color-1);\n font-weight: bold;\n margin-bottom: 8px;\n}\n\n.crypt-subtab-row {\n display: flex;\n gap: 8px;\n margin-bottom: 10px;\n}\n\n.crypt-subtab-btn {\n background-color: var(--color-7);\n border: 1px solid var(--color-3);\n color: var(--color-5);\n font-weight: bold;\n padding: 5px 10px;\n cursor: pointer;\n}\n\n.crypt-subtab-btn.active {\n background-color: var(--color-2);\n color: var(--color-1);\n}\n\n.crypt-subtab-panel {\n min-height: 0;\n flex: 1;\n overflow-y: auto;\n}\n\n.crypt-grid {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: 10px;\n height: 100%;\n}\n\n.crypt-section {\n border: 1px solid var(--color-3);\n background-color: var(--color-7);\n padding: 10px;\n min-height: 0;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.crypt-section-title {\n font-size: 14px;\n font-weight: bold;\n color: var(--color-1);\n}\n\n#crypt-encountered-list,\n#crypt-keystore-list,\n#crypt-keystore-label,\n#crypt-keystore-mode,\n#crypt-keystore-unlock-password,\n#crypt-keystore-manual-uri-input,\n#crypt-cert-input,\n#crypt-key-input,\n#crypt-credential-input {\n width: 100%;\n box-sizing: border-box;\n border: 1px solid var(--color-3);\n background-color: #000;\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 12px;\n}\n\n#crypt-cert-input,\n#crypt-key-input,\n#crypt-credential-input {\n min-height: 120px;\n resize: vertical;\n padding: 6px;\n}\n\n#crypt-encountered-list {\n min-height: 180px;\n}\n\n#crypt-keystore-list {\n min-height: 120px;\n}\n\n#crypt-keystore-label {\n padding: 6px;\n}\n\n.keystore-mode-row {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 12px;\n}\n\n#crypt-keystore-mode {\n padding: 6px;\n}\n\n#crypt-keystore-unlock-status {\n font-size: 12px;\n color: var(--color-6);\n}\n\n#crypt-keystore-unlock-description,\n#crypt-keystore-manual-uri-description {\n font-size: 12px;\n color: var(--color-6);\n overflow-wrap: break-word;\n max-width: 400px;\n}\n\n#save-session-dialog,\n#crypt-keystore-unlock-dialog,\n#crypt-keystore-manual-uri-dialog {\n position: fixed;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.65);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 9999;\n overflow-wrap: break-word;\n}\n\n#save-session-dialog[hidden],\n#crypt-keystore-unlock-dialog[hidden],\n#crypt-keystore-manual-uri-dialog[hidden] {\n display: none !important;\n}\n\n#save-session-dialog-description {\n font-size: 12px;\n color: var(--color-6);\n overflow-wrap: break-word;\n max-width: 400px;\n}\n\n.crypt-keystore-unlock-content {\n width: min(420px, 92vw);\n border: 1px solid var(--color-3);\n background-color: var(--color-4);\n padding: 14px;\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n\n.crypt-actions-row {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n\n.crypt-actions-row button {\n background-color: var(--color-2);\n border: 1px solid var(--color-3);\n color: var(--color-1);\n padding: 4px 8px;\n cursor: pointer;\n}\n\n.crypt-actions-row button:hover {\n background-color: var(--color-2-hover);\n}\n\n.crypt-actions-row button:disabled {\n opacity: 0.55;\n cursor: not-allowed;\n}\n\n#crypt-encountered-details {\n font-size: 12px;\n color: var(--color-6);\n white-space: pre-wrap;\n}\n\n#crypt-cert-preview,\n#crypt-key-preview,\n#crypt-decrypt-preview,\n#crypt-keystore-details {\n margin: 0;\n white-space: pre-wrap;\n word-break: break-word;\n border: 1px solid var(--color-3);\n background-color: #000;\n color: var(--color-6);\n min-height: 90px;\n padding: 6px;\n overflow-y: auto;\n font-size: 12px;\n}\n\n.crypt-placeholder {\n border: 1px solid var(--color-3);\n background-color: var(--color-7);\n color: var(--color-6);\n padding: 12px;\n}\n\n#keystore_box {\n display: none;\n border: 8px solid var(--color-3);\n background-color: var(--color-4);\n padding: 10px;\n width: 100%;\n box-sizing: border-box;\n margin-top: 2px;\n flex: 1;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n color: var(--color-5);\n}\n\n.keystore-grid {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 10px;\n height: 100%;\n}\n\n.data-tools-grid {\n display: grid;\n grid-template-columns: 1fr 1fr 0.6fr;\n gap: 10px;\n color: var(--color-5);\n}\n\n.data-tools-section {\n border: 1px solid var(--color-3);\n background-color: var(--color-7);\n padding: 10px;\n min-height: 0;\n}\n\n.data-tools-title {\n font-size: 14px;\n font-weight: bold;\n color: var(--color-1);\n margin-bottom: 8px;\n}\n\n#data-tools-format,\n#data-tools-input,\n#data-tools-hex-output,\n#data-tools-binary-output,\n#data-tools-decimal-output,\n#data-tools-decimal-integer-output,\n#data-tools-ascii-output,\n#data-tools-base64-output {\n width: 100%;\n box-sizing: border-box;\n background-color: #000;\n border: 1px solid var(--color-3);\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 12px;\n margin-top: 6px;\n margin-bottom: 8px;\n padding: 6px;\n}\n\n#data-tools-hex-output,\n#data-tools-binary-output,\n#data-tools-decimal-output,\n#data-tools-decimal-integer-output,\n#data-tools-ascii-output,\n#data-tools-base64-output {\n min-height: 58px;\n resize: vertical;\n}\n\n#data-tools-input {\n min-height: 450px;\n resize: vertical;\n}\n\n.data-tools-output-label {\n color: var(--color-1);\n font-size: 12px;\n margin-top: 4px;\n}\n\n.data-tools-actions {\n display: flex;\n gap: 8px;\n margin-top: 8px;\n}\n\n.data-tools-actions button {\n background-color: var(--color-2);\n border: 1px solid var(--color-3);\n color: var(--color-5);\n padding: 6px 10px;\n cursor: pointer;\n}\n\n.data-tools-actions button:hover {\n background-color: var(--color-2-hover);\n}\n\n#data-tools-error {\n min-height: 18px;\n color: #ff8f8f;\n margin-top: 8px;\n}\n\n.data-tools-kv {\n margin-bottom: 10px;\n padding: 8px;\n background-color: rgba(0, 0, 0, 0.35);\n border: 1px solid var(--color-3);\n}\n\n.data-tools-proto-section {\n margin-top: 10px;\n}\n\n#data-tools-proto-select {\n width: 100%;\n box-sizing: border-box;\n background-color: #000;\n border: 1px solid var(--color-3);\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 12px;\n margin-top: 6px;\n margin-bottom: 8px;\n padding: 6px;\n}\n\n#data-tools-proto-output {\n margin-top: 8px;\n color: var(--color-5);\n}\n\n.data-tools-proto-table {\n width: 100%;\n border-collapse: collapse;\n font-family: "Courier New", Courier, monospace;\n font-size: 12px;\n}\n\n.data-tools-proto-table th,\n.data-tools-proto-table td {\n border: 1px solid var(--color-3);\n padding: 5px 8px;\n text-align: left;\n word-break: break-all;\n}\n\n.data-tools-proto-table th {\n background-color: var(--color-2);\n color: var(--color-1);\n}\n\n.data-tools-proto-table tr:nth-child(even) td {\n background-color: rgba(0, 0, 0, 0.2);\n}\n\n.data-tools-proto-none {\n color: var(--color-3);\n font-size: 12px;\n font-style: italic;\n}\n\n.data-tools-hashes-section {\n margin-top: 10px;\n}\n\n.data-tools-hashes-grid {\n display: grid;\n grid-template-columns: 120px 1fr;\n align-items: center;\n gap: 4px 8px;\n}\n\n.data-tools-hashes-grid .data-tools-output-label {\n margin-top: 0;\n}\n\n.data-tools-hash-input-reading {\n width: 100%;\n min-height: 48px;\n box-sizing: border-box;\n resize: vertical;\n background-color: #000;\n border: 1px solid var(--color-3);\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 12px;\n padding: 4px 6px;\n}\n\n.data-tools-hash-output {\n width: 100%;\n box-sizing: border-box;\n background-color: #000;\n border: 1px solid var(--color-3);\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 12px;\n padding: 4px 6px;\n}\n\n#convert-context-menu {\n position: fixed;\n z-index: 99999;\n background-color: var(--color-4);\n border: 1px solid var(--color-1);\n border-radius: 6px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);\n padding: 4px 0;\n min-width: 190px;\n display: flex;\n flex-direction: column;\n}\n\n#convert-context-menu[hidden] {\n display: none !important;\n}\n\n#convert-context-menu button {\n display: block;\n width: 100%;\n text-align: left;\n background: none;\n border: none;\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 13px;\n padding: 8px 16px;\n cursor: pointer;\n}\n\n#convert-context-menu button:hover {\n background-color: var(--color-7);\n color: white;\n}\n\n#convert-context-menu .ctx-submenu {\n position: relative;\n}\n\n#convert-context-menu .ctx-branch {\n position: relative;\n padding-right: 26px;\n}\n\n#convert-context-menu .ctx-branch::after {\n content: "\\25B6";\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n font-size: 10px;\n color: var(--color-6);\n}\n\n#convert-context-menu .ctx-submenu-panel {\n display: none;\n position: absolute;\n left: calc(100% - 2px);\n top: -4px;\n min-width: 210px;\n background-color: var(--color-4);\n border: 1px solid var(--color-1);\n border-radius: 6px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);\n padding: 4px 0;\n z-index: 100000;\n}\n\n#convert-context-menu .ctx-submenu.ctx-submenu-flip-x > .ctx-submenu-panel {\n left: auto;\n right: calc(100% - 2px);\n}\n\n#convert-context-menu .ctx-submenu.ctx-submenu-flip-y > .ctx-submenu-panel {\n top: auto;\n bottom: -4px;\n}\n\n#convert-context-menu .ctx-submenu:hover > .ctx-submenu-panel,\n#convert-context-menu .ctx-submenu:focus-within > .ctx-submenu-panel {\n display: block;\n}\n\n#list_box {\n display: none;\n border: 8px solid var(--color-3);\n background-color: var(--color-4);\n padding: 10px;\n width: 100%;\n box-sizing: border-box;\n margin-top: 2px;\n flex: 1;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n}\n\n#notes_box {\n display: none;\n border: 8px solid var(--color-3);\n background-color: var(--color-4);\n padding: 10px;\n width: 100%;\n box-sizing: border-box;\n margin-top: 2px;\n flex: 1;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n color: var(--color-5);\n}\n\n.notes-header {\n color: var(--color-1);\n font-weight: bold;\n margin-bottom: 8px;\n}\n\n#notes-controls {\n border: 1px solid var(--color-3);\n background-color: var(--color-7);\n padding: 8px;\n margin-bottom: 8px;\n}\n\n#notes-new-input {\n width: 100%;\n min-height: 120px;\n box-sizing: border-box;\n border: 1px solid var(--color-3);\n background-color: #000;\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 12px;\n margin-bottom: 8px;\n padding: 6px;\n resize: vertical;\n}\n\n.notes-controls-row {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n#notes-new-color {\n width: 38px;\n height: 28px;\n border: 1px solid var(--color-3);\n padding: 0;\n background: #000;\n}\n\n#notes-add-btn,\n#notes-save-btn {\n background-color: var(--color-2);\n border: 1px solid var(--color-3);\n color: var(--color-1);\n padding: 5px 8px;\n cursor: pointer;\n}\n\n#notes-add-btn:hover,\n#notes-save-btn:hover {\n background-color: var(--color-2-hover);\n}\n\n#notes-list {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.notes-editor-wrap {\n flex: 1;\n min-height: 0;\n border: 1px solid var(--color-3);\n background-color: #000;\n padding: 6px;\n}\n\n#notes-editor {\n width: 100%;\n height: 100%;\n min-height: 420px;\n box-sizing: border-box;\n border: 1px solid var(--color-3);\n background-color: #090909;\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 12px;\n padding: 6px;\n resize: vertical;\n}\n\n#rightside-notes {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n#rightside-notes[hidden] {\n display: none;\n}\n\n#notes-select {\n width: 100%;\n min-height: 210px;\n box-sizing: border-box;\n border: 1px solid var(--color-3);\n background-color: #000;\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 12px;\n}\n\n.notes-sidebar-actions {\n justify-content: flex-start;\n}\n\n#notes-remove-btn {\n background-color: #4d1f1f;\n border: 1px solid #933;\n color: #ffd8d8;\n padding: 5px 8px;\n cursor: pointer;\n}\n\n#list_search_bar {\n margin-bottom: 8px;\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n#list-search {\n flex: 1;\n box-sizing: border-box;\n padding: 6px 8px;\n background-color: #000;\n border: 1px solid var(--color-3);\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 13px;\n}\n\n#list-group-streams-wrap {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n color: var(--color-5);\n font-size: 12px;\n white-space: nowrap;\n}\n\n#list_content {\n overflow-y: auto;\n flex: 1;\n min-height: 0;\n height: 100%;\n}\n\n.packet-list-table {\n width: 100%;\n border-collapse: collapse;\n table-layout: fixed;\n font-size: 12px;\n color: var(--color-5);\n}\n\n.packet-list-table thead th {\n background-color: var(--color-2);\n color: var(--color-1);\n padding: 5px 8px;\n text-align: left;\n position: sticky;\n top: 0;\n z-index: 1;\n border-bottom: 2px solid var(--color-3);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.packet-list-table thead th.packet-list-sortable-header {\n cursor: pointer;\n user-select: none;\n}\n\n.packet-list-table thead th.packet-list-sortable-header:focus {\n outline: 1px solid var(--color-5);\n outline-offset: -1px;\n}\n\n/* Column widths: #, bookmark, stream, host, src/dst, ports, transport, app protocol */\n.packet-list-table thead th:nth-child(1) {\n width: 5%;\n}\n.packet-list-table thead th:nth-child(2) {\n width: 5%;\n}\n.packet-list-table thead th:nth-child(3) {\n width: 7%;\n}\n.packet-list-table thead th:nth-child(4) {\n width: 14%;\n}\n.packet-list-table thead th:nth-child(5) {\n width: 12%;\n}\n.packet-list-table thead th:nth-child(6) {\n width: 12%;\n}\n.packet-list-table thead th:nth-child(7) {\n width: 8%;\n}\n.packet-list-table thead th:nth-child(8) {\n width: 8%;\n}\n.packet-list-table thead th:nth-child(9) {\n width: 9%;\n}\n.packet-list-table thead th:nth-child(10) {\n width: 20%;\n}\n\n.packet-list-table tbody tr {\n cursor: pointer;\n border-bottom: 1px solid var(--color-7);\n}\n\n.packet-list-table tbody tr:hover,\n.packet-list-table tbody tr.packet-list-hovered {\n background-color: var(--color-7);\n color: var(--color-1);\n}\n\n.packet-list-table tbody tr.packet-list-hovered:not(.packet-list-selected) {\n outline: 1px solid var(--color-3);\n outline-offset: -1px;\n}\n\n.packet-list-table tbody tr.packet-list-stream-break {\n border-top: 2px solid var(--color-3);\n}\n\n.packet-list-table tbody tr.packet-list-selected {\n background-color: var(--color-2);\n color: var(--color-1);\n}\n\n.packet-list-table tbody tr.packet-list-selected:hover,\n.packet-list-table tbody tr.packet-list-selected.packet-list-hovered {\n background-color: var(--color-2-hover);\n}\n\n.packet-list-table td {\n padding: 4px 8px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.stats-section {\n margin-bottom: 18px;\n}\n\n.stats-section-title {\n font-size: 16px;\n font-weight: bold;\n color: var(--color-1);\n background-color: var(--color-2);\n padding: 4px 8px;\n margin-bottom: 6px;\n}\n\n.stats-tag-list {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n padding: 4px 8px;\n}\n\n.stats-tag {\n background-color: var(--color-7);\n border: 1px solid var(--color-3);\n color: white;\n padding: 3px 8px;\n font-size: 12px;\n border-radius: 3px;\n cursor: pointer;\n transition: background-color 0.2s;\n}\n\n.stats-tag:hover {\n background-color: var(--color-2);\n}\n\n.stats-kv {\n padding: 4px 8px;\n font-size: 13px;\n color: var(--color-6);\n}\n\n#copyright {\n bottom: 0;\n position: absolute;\n text-align: right;\n padding: 5px;\n height: 5px;\n margin-bottom: 5px;\n justify-content: center;\n}\n\n#packetInfoPane {\n overflow-y: scroll;\n overflow-x: hidden;\n width: 100%;\n box-sizing: border-box;\n color: var(--color-1);\n font-size: 13px;\n display: block;\n background-color: var(--color-4);\n border: 8px solid var(--color-3);\n flex: 1;\n min-height: 0;\n position: relative;\n}\n\n#moredata {\n display: block;\n margin-left: 15px;\n margin-top: 10px;\n}\n\n#sidedatatable {\n justify-content: center;\n}\n\n#timestamp {\n font-size: 14px;\n color: white;\n}\n\n#ip2ip {\n color: white;\n font-size: 15px;\n placment: absolute;\n text-align: center;\n display: block;\n width: 90%;\n}\n\n#data-types {\n border: 1px solid var(--color-3);\n margin-left: 15px;\n margin-bottom: 20px;\n margin-top: 20px;\n width: 67%;\n max-width: 1000px;\n background-color: var(--color-7);\n height: 400px;\n display: flex;\n z-index: 1;\n}\n\n.sidebar-header {\n font-size: 18px;\n background-color: var(--color-2);\n color: white;\n font-weight: bold;\n text-align: center;\n}\n\n#mime-type {\n font-size: 14px;\n justify-content: left;\n text-align: left;\n color: var(--color-6);\n margin-top: 10px;\n margin-left: 15px;\n}\n#charset {\n font-size: 14px;\n justify-content: left;\n text-align: left;\n color: var(--color-6);\n margin-top: 10px;\n margin-left: 15px;\n}\n#encoding {\n font-size: 14px;\n justify-content: left;\n text-align: left;\n color: var(--color-6);\n margin-top: 10px;\n margin-left: 15px;\n}\n#language {\n font-size: 14px;\n justify-content: left;\n text-align: left;\n color: var(--color-6);\n margin-top: 10px;\n margin-left: 15px;\n}\n\n#types-list {\n color: white;\n font-size: 14px;\n z-index: -1;\n}\n\n#entropybox {\n text-align: center;\n font-size: 26px;\n font-weight: bold;\n background-color: var(--color-7);\n}\n\n.low {\n color: green;\n}\n\n.med {\n color: orange;\n}\n\n.high {\n color: red;\n}\n\n#file-info {\n position: relative;\n margin-top: 100px;\n margin-left: 15px;\n color: white;\n font-size: 16px;\n}\n\n#packetPayloadPane {\n width: 100%;\n box-sizing: border-box;\n overflow-y: scroll;\n overflow-x: hidden;\n padding: 8px;\n background-color: var(--color-4);\n border: 8px solid var(--color-3);\n margin-top: 0;\n flex: 0 0 40%;\n /* z-index: 4; */\n position: relative;\n}\n#protoInfo {\n margin-top: 10px;\n margin-left: 15px;\n width: 67%;\n max-width: 1000px;\n display: block;\n font-size: 0px;\n border: 1px solid var(--color-3);\n}\n#protoInfoProto {\n font-size: 14px;\n width: 100%;\n display: flex;\n color: var(--color-6);\n}\n\n.PHead {\n color: white;\n font-size: 18px;\n background-color: var(--color-2);\n text-align: center;\n}\n\n/* to main protcol boxes, src/dest */\n#protoInfoSrc,\n#protoInfoDest {\n width: 100%;\n color: var(--color-6);\n font-size: 14px;\n background-color: var(--color-7);\n}\n\n#hexg {\n z-index: 5;\n}\n\n/* this is here to setup the grid bed */\n.hexGrid {\n font-size: 12px;\n display: grid;\n grid-template-columns: repeat(32, 27px);\n grid-template-rows: repeat(32, 27px);\n gap: 1px;\n justify-content: center;\n width: max-content;\n min-width: 100%;\n margin: 0 auto;\n border: 1px solid #ccc;\n background-color: var(--color-7);\n}\n\n/* sets up the boxes on the grid waiting */\n/* to be assigned packet (hex) data */\n.griditem {\n background-color: var(--color-4);\n border: 1px solid var(--color-3);\n display: flex;\n justify-content: center;\n align-items: center;\n width: 27px;\n height: 27px;\n padding: 0;\n font-family: monospace;\n text-align: center;\n white-space: nowrap;\n line-height: 1;\n overflow: hidden;\n box-sizing: border-box;\n transition:\n background-color 0.3s,\n border-color 0.3s; /* Smooth transition */\n}\n\n/* this is for the consecutive ones that are highlighted */\n.griditem.highlight {\n background-color: #413f6e;\n border-color: white;\n transition:\n background-color 0.3s,\n border-color 0.3s;\n}\n\n/* this is for the one right under the cursor */\n.griditem:hover,\n.griditem:focus {\n background-color: var(--color-3); /* Highlight color */\n border-color: white;\n cursor: pointer;\n}\n\n.logo-cont {\n width: 45px;\n height: 52px;\n}\n\n.footer {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n background-color: black;\n width: 100%;\n box-sizing: border-box;\n color: white;\n font-size: small;\n padding: 0 5px;\n margin-top: 4px;\n}\n\n.bmdrop {\n background-color: var(--color-2);\n border: 1px solid var(--color-4);\n padding: 5px;\n position: absolute;\n left: calc(var(--sidebar-width) + 30px);\n top: 165px;\n height: 30px;\n}\n\n#filters-container {\n flex: 1;\n display: flex;\n align-items: center;\n width: auto;\n gap: 8px;\n}\n\n#host_filter {\n width: 60px;\n display: none;\n}\n\n#filterStr-wrap {\n --filter-clear-button-width: 64px;\n --filter-clear-right-offset: 6px;\n --filter-clear-padding: calc(\n var(--filter-clear-button-width) + var(--filter-clear-right-offset) + 6px\n );\n flex: 1;\n position: relative;\n min-width: 0;\n}\n\n#filterStr-highlight {\n position: absolute;\n top: 1px;\n left: 1px;\n right: calc(var(--filter-clear-padding) + 1px);\n bottom: 1px;\n pointer-events: none;\n white-space: pre;\n overflow: hidden;\n padding: 5px;\n font: inherit;\n}\n\n#filterStr {\n width: calc(100% - var(--filter-clear-padding));\n background-color: black;\n color: transparent;\n caret-color: white;\n border: 1px solid grey;\n padding: 5px;\n box-sizing: border-box;\n font: inherit;\n}\n\n#filterStr-clear {\n position: absolute;\n top: 1px;\n margin-top: -2px;\n bottom: 1px;\n right: var(--filter-clear-right-offset);\n width: var(--filter-clear-button-width);\n border: 1px solid grey;\n background-color: var(--color-7);\n color: white;\n box-sizing: border-box;\n padding: 0 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n font: inherit;\n line-height: 1;\n cursor: pointer;\n height: 32px;\n margin-right: 4px;\n}\n\n#filterStr-clear:not(:disabled):hover,\n#filterStr-clear:not(:disabled):focus {\n background-color: var(--color-2);\n}\n\n#filterStr-clear:disabled {\n opacity: 0.6;\n cursor: default;\n}\n\n#filterStr::placeholder {\n color: var(--color-6);\n}\n\n@media (forced-colors: active) {\n #filterStr {\n color: CanvasText;\n caret-color: CanvasText;\n }\n\n #filterStr-highlight {\n display: none;\n }\n}\n\n#filter-history {\n width: 320px;\n position: relative;\n}\n\n#filter-history-select {\n width: 100%;\n background-color: black;\n color: white;\n border: 1px solid grey;\n padding: 5px;\n font: inherit;\n cursor: pointer;\n}\n\n#filter-history-select:disabled {\n opacity: 0.6;\n cursor: default;\n}\n\n.query-token-key {\n color: #b785ff;\n}\n\n.query-token-logic,\n.query-token-paren {\n color: #6ab4ff;\n}\n\n.query-token-operator {\n color: #ffb36b;\n}\n\n.query-token-value {\n color: #ff7d7d;\n}\n\n.query-token-colon {\n color: #6ab4ff;\n}\n\n#payloadascii {\n width: 320px;\n height: 24px;\n position: fixed;\n text-size: 12px;\n background-color: var(--color-4);\n color: var(--color-1);\n font-family: monospace;\n padding: 5px;\n border: 1px solid var(--color-3);\n opacity: 0;\n z-index: 10;\n transition: opacity 0.3s ease;\n pointer-events: none;\n}\n\n#asciiOffset {\n width: 80px;\n position: absolute;\n}\n\n#asciiText {\n color: white;\n width: 250px;\n margin-left: 70px;\n position: absolute;\n text-align: right;\n}\n#payloadascii.visible {\n opacity: 1;\n pointer-events: auto;\n}\n\n.logo-cont img {\n width: 100%;\n height: 100%;\n object-fit: cover; /* or \'contain\' */\n margin-top: 9px;\n}\n\n/* Installation complete screen */\n#install-screen {\n display: none;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.82);\n z-index: 9999;\n justify-content: center;\n align-items: center;\n}\n\n#install-screen-inner {\n background-color: var(--color-4);\n border: 2px solid var(--color-1);\n border-radius: 10px;\n padding: 30px 40px;\n max-width: 600px;\n width: 90%;\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n}\n\n#install-title {\n font-size: 22px;\n color: var(--color-1);\n font-weight: bold;\n text-align: center;\n margin-bottom: 6px;\n}\n\n#install-version {\n font-size: 13px;\n color: var(--color-3);\n text-align: center;\n margin-bottom: 10px;\n}\n\n.install-divider {\n border: 1px solid var(--color-7);\n margin: 12px 0;\n}\n\n#install-files-heading {\n font-size: 14px;\n color: var(--color-6);\n margin-bottom: 8px;\n font-weight: bold;\n}\n\n#install-file-list {\n list-style: none;\n padding: 0;\n margin: 0 0 10px 0;\n}\n\n#install-file-list li {\n padding: 4px 0;\n font-size: 13px;\n}\n\n.install-file-ok {\n color: white;\n}\n\n.install-file-missing {\n color: #e06b6b;\n font-weight: bold;\n}\n\n#install-ollama-status {\n font-size: 13px;\n padding: 8px 10px;\n border-radius: 6px;\n margin-bottom: 18px;\n}\n\n.install-ok {\n /* background-color: rgba(107, 224, 107, 0.12); */\n color: white;\n border: white;\n}\n\n.install-warning {\n background-color: rgba(224, 180, 40, 0.12);\n color: #e0b428;\n border: 1px solid #e0b42844;\n}\n\n#install-continue-btn {\n display: block;\n width: 100%;\n padding: 10px;\n background-color: var(--color-1);\n color: black;\n border: none;\n border-radius: 6px;\n font-size: 15px;\n font-weight: bold;\n cursor: pointer;\n font-family: "Courier New", Courier, monospace;\n transition: background-color 0.2s;\n}\n\n#install-continue-btn:hover {\n background-color: var(--color-3);\n}\n\n#activity-log-panel {\n display: none;\n position: fixed;\n right: 30px;\n top: 120px;\n width: 460px;\n height: 560px;\n z-index: 9000;\n background-color: var(--color-4);\n border: 2px solid var(--color-1);\n border-radius: 8px;\n padding: 10px;\n box-sizing: border-box;\n color: white;\n font-family: "Courier New", Courier, monospace;\n}\n\n#activity-log-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 16px;\n color: var(--color-1);\n margin-bottom: 6px;\n}\n\n#close-log-btn {\n border: none;\n background: transparent;\n color: var(--color-1);\n font-size: 20px;\n cursor: pointer;\n}\n\n#activity-log-path {\n border: 1px solid var(--color-3);\n background-color: #000;\n color: var(--color-6);\n padding: 6px;\n font-size: 12px;\n margin-bottom: 6px;\n word-break: break-all;\n}\n\n#activity-log-entries {\n border: 1px solid var(--color-3);\n background-color: #000;\n height: 410px;\n overflow-y: auto;\n padding: 6px;\n margin-bottom: 6px;\n white-space: pre-wrap;\n word-break: break-word;\n}\n\n.activity-log-entry {\n border-bottom: 1px solid #2f3257;\n padding: 5px 0;\n color: white;\n}\n\n#activity-log-search {\n width: 100%;\n box-sizing: border-box;\n padding: 8px;\n border: 1px solid var(--color-3);\n background-color: #000;\n color: white;\n}\n\n.ctx-divider {\n border: none;\n border-top: 1px solid var(--color-7);\n margin: 4px 0;\n}\n',"",{version:3,sources:["webpack://./src/assets/css/style.css"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,kBAAkB;EAClB,wBAAwB;EACxB,kBAAkB;EAClB,kBAAkB;EAClB,kBAAkB;EAClB,kBAAkB;EAClB,kBAAkB;EAClB,oBAAoB;AACtB;;AAEA,oBAAoB;AACpB;EACE,SAAS;EACT,yBAAyB;EACzB,aAAa;EACb,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;EACb,8CAA8C;EAC9C,4BAA4B;EAC5B,gBAAgB;AAClB;;AAEA,oBAAoB;AACpB;EACE,WAAW;EACX,YAAY;EACZ,gCAAgC;EAChC,aAAa;EACb,sBAAsB;EACtB,aAAa;EACb,sBAAsB;EACtB,uBAAuB;EACvB,0BAA0B;EAC1B,qCAAqC;EACrC,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,gCAAgC;EAChC,wCAAwC;EACxC,aAAa;EACb,mBAAmB;EACnB,kBAAkB;EAClB,aAAa;EACb,YAAY;EACZ,aAAa;AACf;;AAEA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,gCAAgC;EAChC,uCAAuC;EACvC,aAAa;EACb,mBAAmB;EACnB,kBAAkB;EAClB,aAAa;EACb,YAAY;EACZ,aAAa;AACf;;AAEA;EACE,YAAY;EACZ,2CAA2C;AAC7C;;AAEA;EACE;IACE,YAAY;EACd;EACA;IACE,aAAa;EACf;EACA;IACE,cAAc;EAChB;EACA;IACE,YAAY;EACd;AACF;;AAEA;EACE,YAAY;EACZ,aAAa;AACf;;AAEA;EACE,gBAAgB;EAChB,iBAAiB;EACjB,WAAW;EACX,qBAAqB;EACrB,eAAe;EACf,qBAAqB;AACvB;AACA,kBAAkB;AAClB;EACE,YAAY;EACZ,gCAAgC;EAChC,aAAa;EACb,uBAAuB;EACvB,mBAAmB;EACnB,uBAAuB;EACvB,kBAAkB;EAClB,kBAAkB;EAClB,wBAAwB;AAC1B;;AAEA;EACE,kBAAkB;EAClB,UAAU;EACV,uBAAuB;EACvB,YAAY;EACZ,cAAc;EACd,eAAe;EACf,iBAAiB;EACjB,eAAe;EACf,cAAc;EACd,gBAAgB;EAChB,kBAAkB;EAClB,2BAA2B;AAC7B;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,sCAAsC;EACtC,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,YAAY;EACZ,YAAY;AACd;AACA;EACE,eAAe;EACf,4BAA4B;AAC9B;;AAEA;EACE,eAAe;EACf,8CAA8C;EAC9C,kBAAkB;EAClB,WAAW;EACX,aAAa;AACf;AACA,cAAc;AACd;EACE,YAAY;EACZ,gCAAgC;EAChC,uBAAuB;EACvB,YAAY;EACZ,aAAa;EACb,mBAAmB;EACnB,eAAe;EACf,QAAQ;AACV;;AAEA;EACE,OAAO;EACP,YAAY;EACZ,uBAAuB;EACvB,sBAAsB;EACtB,qBAAqB;AACvB;;AAEA;EACE,gCAAgC;EAChC,kBAAkB;AACpB;;AAEA,iBAAiB;AACjB;EACE,OAAO;EACP,aAAa;EACb,eAAe;EACf,aAAa;EACb,iBAAiB;EACjB,iCAAiC;EACjC,eAAe;EACf,gBAAgB;EAChB,qBAAqB;AACvB;;AAEA;EACE,+BAA+B;EAC/B,qBAAqB;EACrB,OAAO;EACP,aAAa;EACb,WAAW;AACb;;AAEA,YAAY;AACZ;EACE,cAAc;EACd,gBAAgB;EAChB,2BAA2B;EAC3B,gBAAgB;EAChB,gBAAgB;EAChB,gCAAgC;EAChC,gCAAgC;EAChC,YAAY;EACZ,YAAY;EACZ,iBAAiB;EACjB,gBAAgB;EAChB,gBAAgB;EAChB,YAAY;EACZ,sBAAsB;EACtB,gBAAgB;EAChB,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;EAClB,uBAAuB;EACvB,gCAAgC;EAChC,qBAAqB;EACrB,YAAY;EACZ,eAAe;AACjB;;AAEA;EACE,qBAAqB;EACrB,YAAY;AACd;;AAEA,eAAe;AACf;EACE,sBAAsB;EACtB,YAAY;EACZ,YAAY;EACZ,sBAAsB;EACtB,kCAAkC;EAClC,mBAAmB;EACnB,OAAO;EACP,YAAY;EACZ,qBAAqB;EACrB,kBAAkB;AACpB;;AAEA,qEAAqE;AACrE;EACE,aAAa;EACb,sBAAsB;EACtB,gBAAgB;EAChB,YAAY;AACd;;AAEA;;;EAGE,gCAAgC;EAChC,iBAAiB;EACjB,gCAAgC;EAChC,yBAAyB;EACzB,mBAAmB;EACnB,YAAY;EACZ,YAAY;EACZ,qBAAqB;EACrB,eAAe;EACf,+BAA+B;AACjC;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,YAAY;EACZ,UAAU;AACZ;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,WAAW;EACX,mBAAmB;EACnB,iBAAiB;EACjB,iCAAiC;EACjC,aAAa;EACb,SAAS;AACX;;AAEA;EACE,iBAAiB;EACjB,UAAU;EACV,gCAAgC;EAChC,uBAAuB;EACvB,YAAY;EACZ,gBAAgB;EAChB,kBAAkB;EAClB,mBAAmB;EACnB,qBAAqB;EACrB,cAAc;EACd,eAAe;EACf,kBAAkB;EAClB;;qBAEmB;AACrB;;AAEA;;EAEE,gCAAgC;EAChC,mBAAmB;EACnB,eAAe;AACjB;;AAEA;EACE,gBAAgB;EAChB,gCAAgC;EAChC,uBAAuB;EACvB,YAAY;EACZ,YAAY;EACZ,gBAAgB;EAChB,kBAAkB;EAClB,mBAAmB;EACnB,qBAAqB;EACrB,cAAc;EACd,eAAe;EACf,eAAe;EACf,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,YAAY;EACZ;;qBAEmB;AACrB;;AAEA;;EAEE,gCAAgC;EAChC,uBAAuB;EACvB,eAAe;AACjB;;AAEA,eAAe;AACf;EACE,gBAAgB;EAChB,gBAAgB;EAChB,YAAY;EACZ,uBAAuB;EACvB,YAAY;EACZ,sBAAsB;EACtB,gBAAgB;EAChB,OAAO;AACT;;AAEA;EACE,YAAY;EACZ,sBAAsB;AACxB;;AAEA;EACE,gCAAgC;EAChC,kBAAkB;EAClB,gBAAgB;EAChB,kBAAkB;EAClB,QAAQ;EACR,MAAM;EACN,UAAU;EACV,gBAAgB;EAChB,gCAAgC;EAChC,WAAW;EACX,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,cAAc;EACd,gCAAgC;EAChC,gCAAgC;EAChC,gBAAgB;EAChB,aAAa;EACb,UAAU;EACV,YAAY;EACZ,sBAAsB;AACxB;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;EAChB,YAAY;EACZ,sBAAsB;EACtB,kBAAkB;EAClB,UAAU;AACZ;;AAEA;EACE,cAAc;EACd,gCAAgC;EAChC,gCAAgC;EAChC,aAAa;EACb,WAAW;EACX,sBAAsB;EACtB,eAAe;EACf,OAAO;EACP,aAAa;EACb,gBAAgB;AAClB;;AAEA;EACE,aAAa;EACb,gCAAgC;EAChC,gCAAgC;EAChC,aAAa;EACb,WAAW;EACX,sBAAsB;EACtB,eAAe;EACf,OAAO;EACP,aAAa;EACb,gBAAgB;AAClB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,aAAa;EACb,gCAAgC;EAChC,gCAAgC;EAChC,aAAa;EACb,WAAW;EACX,sBAAsB;EACtB,eAAe;EACf,OAAO;EACP,aAAa;EACb,gBAAgB;EAChB,sBAAsB;EACtB,qBAAqB;AACvB;;AAEA;EACE,aAAa;EACb,gCAAgC;EAChC,gCAAgC;EAChC,aAAa;EACb,WAAW;EACX,sBAAsB;EACtB,eAAe;EACf,OAAO;EACP,aAAa;EACb,gBAAgB;EAChB,sBAAsB;EACtB,qBAAqB;AACvB;;AAEA;;EAEE,qBAAqB;EACrB,iBAAiB;EACjB,kBAAkB;AACpB;;AAEA;EACE,aAAa;EACb,QAAQ;EACR,mBAAmB;AACrB;;AAEA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,qBAAqB;EACrB,iBAAiB;EACjB,iBAAiB;EACjB,eAAe;AACjB;;AAEA;EACE,gCAAgC;EAChC,qBAAqB;AACvB;;AAEA;EACE,aAAa;EACb,OAAO;EACP,gBAAgB;AAClB;;AAEA;EACE,aAAa;EACb,gDAAgD;EAChD,SAAS;EACT,YAAY;AACd;;AAEA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,aAAa;EACb,aAAa;EACb,aAAa;EACb,sBAAsB;EACtB,QAAQ;AACV;;AAEA;EACE,eAAe;EACf,iBAAiB;EACjB,qBAAqB;AACvB;;AAEA;;;;;;;;;EASE,WAAW;EACX,sBAAsB;EACtB,gCAAgC;EAChC,sBAAsB;EACtB,qBAAqB;EACrB,8CAA8C;EAC9C,eAAe;AACjB;;AAEA;;;EAGE,iBAAiB;EACjB,gBAAgB;EAChB,YAAY;AACd;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,QAAQ;EACR,eAAe;AACjB;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,eAAe;EACf,qBAAqB;AACvB;;AAEA;;EAEE,eAAe;EACf,qBAAqB;EACrB,yBAAyB;EACzB,gBAAgB;AAClB;;AAEA;;;EAGE,eAAe;EACf,QAAQ;EACR,qCAAqC;EACrC,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,aAAa;EACb,yBAAyB;AAC3B;;AAEA;;;EAGE,wBAAwB;AAC1B;;AAEA;EACE,eAAe;EACf,qBAAqB;EACrB,yBAAyB;EACzB,gBAAgB;AAClB;;AAEA;EACE,uBAAuB;EACvB,gCAAgC;EAChC,gCAAgC;EAChC,aAAa;EACb,aAAa;EACb,sBAAsB;EACtB,SAAS;AACX;;AAEA;EACE,aAAa;EACb,eAAe;EACf,QAAQ;AACV;;AAEA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,qBAAqB;EACrB,gBAAgB;EAChB,eAAe;AACjB;;AAEA;EACE,sCAAsC;AACxC;;AAEA;EACE,aAAa;EACb,mBAAmB;AACrB;;AAEA;EACE,eAAe;EACf,qBAAqB;EACrB,qBAAqB;AACvB;;AAEA;;;;EAIE,SAAS;EACT,qBAAqB;EACrB,sBAAsB;EACtB,gCAAgC;EAChC,sBAAsB;EACtB,qBAAqB;EACrB,gBAAgB;EAChB,YAAY;EACZ,gBAAgB;EAChB,eAAe;AACjB;;AAEA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,qBAAqB;EACrB,aAAa;AACf;;AAEA;EACE,aAAa;EACb,gCAAgC;EAChC,gCAAgC;EAChC,aAAa;EACb,WAAW;EACX,sBAAsB;EACtB,eAAe;EACf,OAAO;EACP,aAAa;EACb,gBAAgB;EAChB,sBAAsB;EACtB,qBAAqB;AACvB;;AAEA;EACE,aAAa;EACb,gDAAgD;EAChD,SAAS;EACT,YAAY;AACd;;AAEA;EACE,aAAa;EACb,oCAAoC;EACpC,SAAS;EACT,qBAAqB;AACvB;;AAEA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,aAAa;EACb,aAAa;AACf;;AAEA;EACE,eAAe;EACf,iBAAiB;EACjB,qBAAqB;EACrB,kBAAkB;AACpB;;AAEA;;;;;;;;EAQE,WAAW;EACX,sBAAsB;EACtB,sBAAsB;EACtB,gCAAgC;EAChC,qBAAqB;EACrB,8CAA8C;EAC9C,eAAe;EACf,eAAe;EACf,kBAAkB;EAClB,YAAY;AACd;;AAEA;;;;;;EAME,gBAAgB;EAChB,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;EACjB,gBAAgB;AAClB;;AAEA;EACE,qBAAqB;EACrB,eAAe;EACf,eAAe;AACjB;;AAEA;EACE,aAAa;EACb,QAAQ;EACR,eAAe;AACjB;;AAEA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,qBAAqB;EACrB,iBAAiB;EACjB,eAAe;AACjB;;AAEA;EACE,sCAAsC;AACxC;;AAEA;EACE,gBAAgB;EAChB,cAAc;EACd,eAAe;AACjB;;AAEA;EACE,mBAAmB;EACnB,YAAY;EACZ,qCAAqC;EACrC,gCAAgC;AAClC;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,WAAW;EACX,sBAAsB;EACtB,sBAAsB;EACtB,gCAAgC;EAChC,qBAAqB;EACrB,8CAA8C;EAC9C,eAAe;EACf,eAAe;EACf,kBAAkB;EAClB,YAAY;AACd;;AAEA;EACE,eAAe;EACf,qBAAqB;AACvB;;AAEA;EACE,WAAW;EACX,yBAAyB;EACzB,8CAA8C;EAC9C,eAAe;AACjB;;AAEA;;EAEE,gCAAgC;EAChC,gBAAgB;EAChB,gBAAgB;EAChB,qBAAqB;AACvB;;AAEA;EACE,gCAAgC;EAChC,qBAAqB;AACvB;;AAEA;EACE,oCAAoC;AACtC;;AAEA;EACE,qBAAqB;EACrB,eAAe;EACf,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,aAAa;EACb,gCAAgC;EAChC,mBAAmB;EACnB,YAAY;AACd;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,WAAW;EACX,gBAAgB;EAChB,sBAAsB;EACtB,gBAAgB;EAChB,sBAAsB;EACtB,gCAAgC;EAChC,qBAAqB;EACrB,8CAA8C;EAC9C,eAAe;EACf,gBAAgB;AAClB;;AAEA;EACE,WAAW;EACX,sBAAsB;EACtB,sBAAsB;EACtB,gCAAgC;EAChC,qBAAqB;EACrB,8CAA8C;EAC9C,eAAe;EACf,gBAAgB;AAClB;;AAEA;EACE,eAAe;EACf,cAAc;EACd,gCAAgC;EAChC,gCAAgC;EAChC,kBAAkB;EAClB,yCAAyC;EACzC,cAAc;EACd,gBAAgB;EAChB,aAAa;EACb,sBAAsB;AACxB;;AAEA;EACE,wBAAwB;AAC1B;;AAEA;EACE,cAAc;EACd,WAAW;EACX,gBAAgB;EAChB,gBAAgB;EAChB,YAAY;EACZ,qBAAqB;EACrB,8CAA8C;EAC9C,eAAe;EACf,iBAAiB;EACjB,eAAe;AACjB;;AAEA;EACE,gCAAgC;EAChC,YAAY;AACd;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;EAClB,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;EAChB,kBAAkB;EAClB,WAAW;EACX,QAAQ;EACR,2BAA2B;EAC3B,eAAe;EACf,qBAAqB;AACvB;;AAEA;EACE,aAAa;EACb,kBAAkB;EAClB,sBAAsB;EACtB,SAAS;EACT,gBAAgB;EAChB,gCAAgC;EAChC,gCAAgC;EAChC,kBAAkB;EAClB,yCAAyC;EACzC,cAAc;EACd,eAAe;AACjB;;AAEA;EACE,UAAU;EACV,uBAAuB;AACzB;;AAEA;EACE,SAAS;EACT,YAAY;AACd;;AAEA;;EAEE,cAAc;AAChB;;AAEA;EACE,aAAa;EACb,gCAAgC;EAChC,gCAAgC;EAChC,aAAa;EACb,WAAW;EACX,sBAAsB;EACtB,eAAe;EACf,OAAO;EACP,aAAa;EACb,gBAAgB;EAChB,sBAAsB;AACxB;;AAEA;EACE,aAAa;EACb,gCAAgC;EAChC,gCAAgC;EAChC,aAAa;EACb,WAAW;EACX,sBAAsB;EACtB,eAAe;EACf,OAAO;EACP,aAAa;EACb,gBAAgB;EAChB,sBAAsB;EACtB,qBAAqB;AACvB;;AAEA;EACE,qBAAqB;EACrB,iBAAiB;EACjB,kBAAkB;AACpB;;AAEA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,YAAY;EACZ,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,iBAAiB;EACjB,sBAAsB;EACtB,gCAAgC;EAChC,sBAAsB;EACtB,qBAAqB;EACrB,8CAA8C;EAC9C,eAAe;EACf,kBAAkB;EAClB,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,QAAQ;AACV;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,gCAAgC;EAChC,UAAU;EACV,gBAAgB;AAClB;;AAEA;;EAEE,gCAAgC;EAChC,gCAAgC;EAChC,qBAAqB;EACrB,gBAAgB;EAChB,eAAe;AACjB;;AAEA;;EAEE,sCAAsC;AACxC;;AAEA;EACE,OAAO;EACP,aAAa;EACb,gBAAgB;EAChB,aAAa;EACb,sBAAsB;EACtB,QAAQ;AACV;;AAEA;EACE,OAAO;EACP,aAAa;EACb,gCAAgC;EAChC,sBAAsB;EACtB,YAAY;AACd;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,sBAAsB;EACtB,gCAAgC;EAChC,yBAAyB;EACzB,qBAAqB;EACrB,8CAA8C;EAC9C,eAAe;EACf,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,QAAQ;AACV;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,WAAW;EACX,iBAAiB;EACjB,sBAAsB;EACtB,gCAAgC;EAChC,sBAAsB;EACtB,qBAAqB;EACrB,8CAA8C;EAC9C,eAAe;AACjB;;AAEA;EACE,2BAA2B;AAC7B;;AAEA;EACE,yBAAyB;EACzB,sBAAsB;EACtB,cAAc;EACd,gBAAgB;EAChB,eAAe;AACjB;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,mBAAmB;EACnB,SAAS;AACX;;AAEA;EACE,OAAO;EACP,sBAAsB;EACtB,gBAAgB;EAChB,sBAAsB;EACtB,gCAAgC;EAChC,qBAAqB;EACrB,8CAA8C;EAC9C,eAAe;AACjB;;AAEA;EACE,oBAAoB;EACpB,mBAAmB;EACnB,QAAQ;EACR,qBAAqB;EACrB,eAAe;EACf,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;EAChB,OAAO;EACP,aAAa;EACb,YAAY;AACd;;AAEA;EACE,WAAW;EACX,yBAAyB;EACzB,mBAAmB;EACnB,eAAe;EACf,qBAAqB;AACvB;;AAEA;EACE,gCAAgC;EAChC,qBAAqB;EACrB,gBAAgB;EAChB,gBAAgB;EAChB,gBAAgB;EAChB,MAAM;EACN,UAAU;EACV,uCAAuC;EACvC,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;AACzB;;AAEA;EACE,eAAe;EACf,iBAAiB;AACnB;;AAEA;EACE,iCAAiC;EACjC,oBAAoB;AACtB;;AAEA,sFAAsF;AACtF;EACE,SAAS;AACX;AACA;EACE,SAAS;AACX;AACA;EACE,SAAS;AACX;AACA;EACE,UAAU;AACZ;AACA;EACE,UAAU;AACZ;AACA;EACE,UAAU;AACZ;AACA;EACE,SAAS;AACX;AACA;EACE,SAAS;AACX;AACA;EACE,SAAS;AACX;AACA;EACE,UAAU;AACZ;;AAEA;EACE,eAAe;EACf,uCAAuC;AACzC;;AAEA;;EAEE,gCAAgC;EAChC,qBAAqB;AACvB;;AAEA;EACE,iCAAiC;EACjC,oBAAoB;AACtB;;AAEA;EACE,oCAAoC;AACtC;;AAEA;EACE,gCAAgC;EAChC,qBAAqB;AACvB;;AAEA;;EAEE,sCAAsC;AACxC;;AAEA;EACE,gBAAgB;EAChB,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;AACzB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,eAAe;EACf,iBAAiB;EACjB,qBAAqB;EACrB,gCAAgC;EAChC,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,aAAa;EACb,eAAe;EACf,QAAQ;EACR,gBAAgB;AAClB;;AAEA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,YAAY;EACZ,gBAAgB;EAChB,eAAe;EACf,kBAAkB;EAClB,eAAe;EACf,iCAAiC;AACnC;;AAEA;EACE,gCAAgC;AAClC;;AAEA;EACE,gBAAgB;EAChB,eAAe;EACf,qBAAqB;AACvB;;AAEA;EACE,SAAS;EACT,kBAAkB;EAClB,iBAAiB;EACjB,YAAY;EACZ,WAAW;EACX,kBAAkB;EAClB,uBAAuB;AACzB;;AAEA;EACE,kBAAkB;EAClB,kBAAkB;EAClB,WAAW;EACX,sBAAsB;EACtB,qBAAqB;EACrB,eAAe;EACf,cAAc;EACd,gCAAgC;EAChC,gCAAgC;EAChC,OAAO;EACP,aAAa;EACb,kBAAkB;AACpB;;AAEA;EACE,cAAc;EACd,iBAAiB;EACjB,gBAAgB;AAClB;;AAEA;EACE,uBAAuB;AACzB;;AAEA;EACE,eAAe;EACf,YAAY;AACd;;AAEA;EACE,YAAY;EACZ,eAAe;EACf,kBAAkB;EAClB,kBAAkB;EAClB,cAAc;EACd,UAAU;AACZ;;AAEA;EACE,gCAAgC;EAChC,iBAAiB;EACjB,mBAAmB;EACnB,gBAAgB;EAChB,UAAU;EACV,iBAAiB;EACjB,gCAAgC;EAChC,aAAa;EACb,aAAa;EACb,UAAU;AACZ;;AAEA;EACE,eAAe;EACf,gCAAgC;EAChC,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;AACpB;;AAEA;EACE,eAAe;EACf,qBAAqB;EACrB,gBAAgB;EAChB,qBAAqB;EACrB,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,eAAe;EACf,qBAAqB;EACrB,gBAAgB;EAChB,qBAAqB;EACrB,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,eAAe;EACf,qBAAqB;EACrB,gBAAgB;EAChB,qBAAqB;EACrB,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,eAAe;EACf,qBAAqB;EACrB,gBAAgB;EAChB,qBAAqB;EACrB,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,YAAY;EACZ,eAAe;EACf,WAAW;AACb;;AAEA;EACE,kBAAkB;EAClB,eAAe;EACf,iBAAiB;EACjB,gCAAgC;AAClC;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,kBAAkB;EAClB,iBAAiB;EACjB,iBAAiB;EACjB,YAAY;EACZ,eAAe;AACjB;;AAEA;EACE,WAAW;EACX,sBAAsB;EACtB,kBAAkB;EAClB,kBAAkB;EAClB,YAAY;EACZ,gCAAgC;EAChC,gCAAgC;EAChC,aAAa;EACb,aAAa;EACb,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,gBAAgB;EAChB,iBAAiB;EACjB,UAAU;EACV,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,gCAAgC;AAClC;AACA;EACE,eAAe;EACf,WAAW;EACX,aAAa;EACb,qBAAqB;AACvB;;AAEA;EACE,YAAY;EACZ,eAAe;EACf,gCAAgC;EAChC,kBAAkB;AACpB;;AAEA,oCAAoC;AACpC;;EAEE,WAAW;EACX,qBAAqB;EACrB,eAAe;EACf,gCAAgC;AAClC;;AAEA;EACE,UAAU;AACZ;;AAEA,uCAAuC;AACvC;EACE,eAAe;EACf,aAAa;EACb,uCAAuC;EACvC,oCAAoC;EACpC,QAAQ;EACR,uBAAuB;EACvB,kBAAkB;EAClB,eAAe;EACf,cAAc;EACd,sBAAsB;EACtB,gCAAgC;AAClC;;AAEA,0CAA0C;AAC1C,qCAAqC;AACrC;EACE,gCAAgC;EAChC,gCAAgC;EAChC,aAAa;EACb,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,UAAU;EACV,sBAAsB;EACtB,kBAAkB;EAClB,mBAAmB;EACnB,cAAc;EACd,gBAAgB;EAChB,sBAAsB;EACtB;;qBAEmB,EAAE,sBAAsB;AAC7C;;AAEA,0DAA0D;AAC1D;EACE,yBAAyB;EACzB,mBAAmB;EACnB;;qBAEmB;AACrB;;AAEA,+CAA+C;AAC/C;;EAEE,gCAAgC,EAAE,oBAAoB;EACtD,mBAAmB;EACnB,eAAe;AACjB;;AAEA;EACE,WAAW;EACX,YAAY;AACd;;AAEA;EACE,cAAc;EACd,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,WAAW;EACX,sBAAsB;EACtB,YAAY;EACZ,gBAAgB;EAChB,cAAc;EACd,eAAe;AACjB;;AAEA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,YAAY;EACZ,kBAAkB;EAClB,uCAAuC;EACvC,UAAU;EACV,YAAY;AACd;;AAEA;EACE,OAAO;EACP,aAAa;EACb,mBAAmB;EACnB,WAAW;EACX,QAAQ;AACV;;AAEA;EACE,WAAW;EACX,aAAa;AACf;;AAEA;EACE,iCAAiC;EACjC,gCAAgC;EAChC;;GAEC;EACD,OAAO;EACP,kBAAkB;EAClB,YAAY;AACd;;AAEA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,8CAA8C;EAC9C,WAAW;EACX,oBAAoB;EACpB,gBAAgB;EAChB,gBAAgB;EAChB,YAAY;EACZ,aAAa;AACf;;AAEA;EACE,+CAA+C;EAC/C,uBAAuB;EACvB,kBAAkB;EAClB,kBAAkB;EAClB,sBAAsB;EACtB,YAAY;EACZ,sBAAsB;EACtB,aAAa;AACf;;AAEA;EACE,kBAAkB;EAClB,QAAQ;EACR,gBAAgB;EAChB,WAAW;EACX,uCAAuC;EACvC,uCAAuC;EACvC,sBAAsB;EACtB,gCAAgC;EAChC,YAAY;EACZ,sBAAsB;EACtB,cAAc;EACd,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,aAAa;EACb,cAAc;EACd,eAAe;EACf,YAAY;EACZ,iBAAiB;AACnB;;AAEA;;EAEE,gCAAgC;AAClC;;AAEA;EACE,YAAY;EACZ,eAAe;AACjB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE;IACE,iBAAiB;IACjB,uBAAuB;EACzB;;EAEA;IACE,aAAa;EACf;AACF;;AAEA;EACE,YAAY;EACZ,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,uBAAuB;EACvB,YAAY;EACZ,sBAAsB;EACtB,YAAY;EACZ,aAAa;EACb,eAAe;AACjB;;AAEA;EACE,YAAY;EACZ,eAAe;AACjB;;AAEA;EACE,cAAc;AAChB;;AAEA;;EAEE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,YAAY;EACZ,YAAY;EACZ,eAAe;EACf,eAAe;EACf,gCAAgC;EAChC,qBAAqB;EACrB,sBAAsB;EACtB,YAAY;EACZ,gCAAgC;EAChC,UAAU;EACV,WAAW;EACX,6BAA6B;EAC7B,oBAAoB;AACtB;;AAEA;EACE,WAAW;EACX,kBAAkB;AACpB;;AAEA;EACE,YAAY;EACZ,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,UAAU;EACV,oBAAoB;AACtB;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB,EAAE,iBAAiB;EACpC,eAAe;AACjB;;AAEA,iCAAiC;AACjC;EACE,aAAa;EACb,eAAe;EACf,MAAM;EACN,OAAO;EACP,WAAW;EACX,YAAY;EACZ,qCAAqC;EACrC,aAAa;EACb,uBAAuB;EACvB,mBAAmB;AACrB;;AAEA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,mBAAmB;EACnB,kBAAkB;EAClB,gBAAgB;EAChB,UAAU;EACV,qBAAqB;EACrB,8CAA8C;AAChD;;AAEA;EACE,eAAe;EACf,qBAAqB;EACrB,iBAAiB;EACjB,kBAAkB;EAClB,kBAAkB;AACpB;;AAEA;EACE,eAAe;EACf,qBAAqB;EACrB,kBAAkB;EAClB,mBAAmB;AACrB;;AAEA;EACE,gCAAgC;EAChC,cAAc;AAChB;;AAEA;EACE,eAAe;EACf,qBAAqB;EACrB,kBAAkB;EAClB,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;EAChB,UAAU;EACV,kBAAkB;AACpB;;AAEA;EACE,cAAc;EACd,eAAe;AACjB;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,cAAc;EACd,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,mBAAmB;AACrB;;AAEA;EACE,iDAAiD;EACjD,YAAY;EACZ,aAAa;AACf;;AAEA;EACE,0CAA0C;EAC1C,cAAc;EACd,2BAA2B;AAC7B;;AAEA;EACE,cAAc;EACd,WAAW;EACX,aAAa;EACb,gCAAgC;EAChC,YAAY;EACZ,YAAY;EACZ,kBAAkB;EAClB,eAAe;EACf,iBAAiB;EACjB,eAAe;EACf,8CAA8C;EAC9C,iCAAiC;AACnC;;AAEA;EACE,gCAAgC;AAClC;;AAEA;EACE,aAAa;EACb,eAAe;EACf,WAAW;EACX,UAAU;EACV,YAAY;EACZ,aAAa;EACb,aAAa;EACb,gCAAgC;EAChC,gCAAgC;EAChC,kBAAkB;EAClB,aAAa;EACb,sBAAsB;EACtB,YAAY;EACZ,8CAA8C;AAChD;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,8BAA8B;EAC9B,eAAe;EACf,qBAAqB;EACrB,kBAAkB;AACpB;;AAEA;EACE,YAAY;EACZ,uBAAuB;EACvB,qBAAqB;EACrB,eAAe;EACf,eAAe;AACjB;;AAEA;EACE,gCAAgC;EAChC,sBAAsB;EACtB,qBAAqB;EACrB,YAAY;EACZ,eAAe;EACf,kBAAkB;EAClB,qBAAqB;AACvB;;AAEA;EACE,gCAAgC;EAChC,sBAAsB;EACtB,aAAa;EACb,gBAAgB;EAChB,YAAY;EACZ,kBAAkB;EAClB,qBAAqB;EACrB,sBAAsB;AACxB;;AAEA;EACE,gCAAgC;EAChC,cAAc;EACd,YAAY;AACd;;AAEA;EACE,WAAW;EACX,sBAAsB;EACtB,YAAY;EACZ,gCAAgC;EAChC,sBAAsB;EACtB,YAAY;AACd;;AAEA;EACE,YAAY;EACZ,oCAAoC;EACpC,aAAa;AACf",sourcesContent:[':root {\n --color-1: #7f80ff;\n --color-2: #2a284a;\n --color-2-hover: #201e3d;\n --color-3: #8a87c0;\n --color-4: #161a2b;\n --color-5: #ccbdde;\n --color-6: #b5b5b5;\n --color-7: #413f6e;\n --sidebar-width: 20%;\n}\n\n/* Page background */\nbody {\n margin: 0;\n background-color: #333333;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100vh;\n font-family: "Courier New", Courier, monospace;\n font-color: --var(--color-5);\n overflow: hidden;\n}\n\n/* Outer container */\n.container_box {\n width: 100%;\n height: 100%;\n border: 3px solid var(--color-3);\n display: flex;\n flex-direction: column;\n padding: 15px;\n box-sizing: border-box;\n background-color: black;\n font-color: var(--color-5);\n scrollbar-color: var(--color-7) black;\n overflow: hidden;\n}\n\n#error-container {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: rgba(180, 25, 25, 0.3);\n padding: 20px;\n border-radius: 10px;\n text-align: center;\n z-index: 1000;\n width: 400px;\n display: none;\n}\n\n#loading-container {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: rgba(22, 26, 43, 0.3);\n padding: 20px;\n border-radius: 10px;\n text-align: center;\n z-index: 1000;\n width: 400px;\n display: none;\n}\n\n.loading::after {\n content: ".";\n animation: dots 1.5s steps(3, end) infinite;\n}\n\n@keyframes dots {\n 0% {\n content: ".";\n }\n 33% {\n content: "..";\n }\n 66% {\n content: "...";\n }\n 100% {\n content: ".";\n }\n}\n\n#loading {\n width: "25%";\n height: "25%";\n}\n\n#welcome {\n margin-top: 20px;\n margin-left: 40px;\n width: 100%;\n justify-content: left;\n font-size: 22px;\n color: var(--color-1);\n}\n/* Top title bar */\n.top_bar {\n height: 40px;\n background-color: var(--color-7);\n display: flex;\n justify-content: center;\n align-items: center;\n border: 1px solid black;\n border-radius: 6px;\n position: relative;\n -webkit-app-region: drag;\n}\n\n#close-btn {\n position: absolute;\n right: 8px;\n background: transparent;\n border: none;\n color: #4a90e2;\n font-size: 18px;\n font-weight: bold;\n cursor: pointer;\n line-height: 1;\n padding: 2px 6px;\n border-radius: 4px;\n -webkit-app-region: no-drag;\n}\n\n#close-btn:hover {\n color: #82b4f0;\n}\n\n.rubik-glitch-regular {\n font-family: "Rubik Glitch", system-ui;\n font-weight: 400;\n font-style: normal;\n}\n\n#psbyline {\n width: 150px;\n height: 30px;\n}\n.titleline {\n font-size: 18pt;\n font-family: "RG", system-ui;\n}\n\n.byline {\n font-size: 10pt;\n font-family: "Courier New", Courier, monospace;\n position: relative;\n left: -84px;\n bottom: -13px;\n}\n/* Entry bar */\n.entry_bar {\n height: 60px;\n background-color: var(--color-2);\n border: 1px solid black;\n padding: 5px;\n display: flex;\n align-items: center;\n margin-top: 2px;\n gap: 8px;\n}\n\n.entry_bar input[type="text"] {\n flex: 1;\n padding: 5px;\n background-color: black;\n border: 1px solid grey;\n color: var(--color-6);\n}\n\nhr {\n border: 4px solid var(--color-2);\n border-radius: 2px;\n}\n\n/* Content area */\n.content_area {\n flex: 1;\n min-height: 0;\n margin-top: 5px;\n display: flex;\n margin-right: 5px;\n font-family: Cantarell, system-ui;\n font-size: 12px;\n overflow: hidden;\n word-break: break-all;\n}\n\n#main_content {\n font-face: Cantarell, system-ui;\n color: var(--color-1);\n flex: 1;\n min-height: 0;\n width: 100%;\n}\n\n/* Sidebar */\n.sidebar {\n display: block;\n position: static;\n width: var(--sidebar-width);\n min-width: 160px;\n max-width: 300px;\n background-color: var(--color-4);\n border: 1px solid var(--color-3);\n padding: 1px;\n color: white;\n margin-right: 1px;\n padding-top: 2px;\n margin-left: 6px;\n height: 100%;\n box-sizing: border-box;\n overflow-y: auto;\n align-items: center;\n}\n\n.sidebar select {\n margin-bottom: 5px;\n background-color: black;\n border: 1px solid var(--color-3);\n color: var(--color-3);\n padding: 5px;\n margin-top: 5px;\n}\n\n.sidebar option {\n color: var(--color-1);\n padding: 5px;\n}\n\n/* Main panel */\n.main_panel {\n background-color: #111;\n color: white;\n padding: 5px;\n box-sizing: border-box;\n font-family: word-break, monospace;\n align-items: center;\n flex: 1;\n min-width: 0;\n justify-items: center;\n overflow-y: hidden;\n}\n\n/* #main is the outer flex column host for the three content panels */\n#main {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n height: 100%;\n}\n\ntable,\nth,\ntd {\n background-color: var(--color-7);\n text-align: right;\n border: 1px solid var(--color-3);\n border-collapse: collapse;\n border-spacing: 3px;\n padding: 6px;\n color: white;\n word-break: break-all;\n font-size: 11px;\n font-face: monospace, monospace;\n}\n\ntable {\n width: 100%;\n}\n\nth {\n color: var(--color-6);\n}\n\ntd {\n color: white;\n width: 30%;\n}\n\nstrong {\n color: white;\n}\n\n.menu_bar {\n width: 100%;\n align-items: center;\n margin-top: -20px;\n margin-left: var(--sidebar-width);\n display: flex;\n gap: 10px;\n}\n\n.menu-btns {\n font-weight: bold;\n width: 98%;\n background-color: var(--color-7);\n border: 2px solid black;\n color: white;\n padding: 5px 0px;\n text-align: center;\n align-items: center;\n text-decoration: none;\n display: block;\n font-size: 14px;\n border-radius: 5px;\n transition:\n background-color 0.3s,\n border-color 0.3s;\n}\n\n.menu-btns:hover,\n.menu-btns:focus {\n background-color: var(--color-2);\n border-color: black;\n cursor: pointer;\n}\n\n.custom-btns {\n max-width: 140px;\n background-color: var(--color-7);\n border: 3px solid black;\n width: 140px;\n color: white;\n padding: 5px 0px;\n text-align: center;\n align-items: center;\n text-decoration: none;\n display: block;\n font-size: 14px;\n margin: 1px 1px;\n cursor: pointer;\n font-weight: bold;\n border-radius: 5px;\n opacity: 0.4;\n transition:\n background-color 0.3s,\n border-color 0.3s;\n}\n\n.custom-btns:hover,\n.custom-btns:focus {\n background-color: var(--color-2);\n border-color: dark-gray;\n cursor: pointer;\n}\n\n/* Status bar */\n#status {\n text-align: left;\n padding: 2px 8px;\n height: 18px;\n background-color: black;\n color: white;\n border: 1px solid grey;\n font-size: small;\n flex: 1;\n}\n\n.active {\n padding: 5px;\n word-break: break-word;\n}\n\n#active-recon {\n background-color: var(--color-7);\n position: absolute;\n margin-top: 10px;\n margin-right: 15px;\n right: 0;\n top: 0;\n width: 28%;\n min-width: 200px;\n border: 1px solid var(--color-3);\n height: 80%;\n color: white;\n overflow-y: auto;\n}\n\n#summary_content {\n display: block;\n border: 1px solid var(--color-3);\n background-color: var(--color-7);\n min-height: 100%;\n padding: 10px;\n width: 95%;\n margin: 10px;\n box-sizing: border-box;\n}\n\n#tab-btns {\n width: 760px;\n}\n\n#rotate-btns {\n position: absolute;\n margin-left: 950px;\n margin-top: 58px;\n width: 120px;\n justify-content: right;\n align-items: right;\n z-index: 5;\n}\n\n#summary_box {\n display: block;\n border: 8px solid var(--color-3);\n background-color: var(--color-4);\n padding: 10px;\n width: 100%;\n box-sizing: border-box;\n margin-top: 2px;\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n}\n\n#stats_box {\n display: none;\n border: 8px solid var(--color-3);\n background-color: var(--color-4);\n padding: 10px;\n width: 100%;\n box-sizing: border-box;\n margin-top: 2px;\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n}\n\n#stats_content {\n color: var(--color-5);\n}\n\n#data_tools_box {\n display: none;\n border: 8px solid var(--color-3);\n background-color: var(--color-4);\n padding: 10px;\n width: 100%;\n box-sizing: border-box;\n margin-top: 2px;\n flex: 1;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n color: var(--color-5);\n}\n\n#crypt_box {\n display: none;\n border: 8px solid var(--color-3);\n background-color: var(--color-4);\n padding: 10px;\n width: 100%;\n box-sizing: border-box;\n margin-top: 2px;\n flex: 1;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n color: var(--color-5);\n}\n\n.keystore-workspace-header,\n.crypt-workspace-header {\n color: var(--color-1);\n font-weight: bold;\n margin-bottom: 8px;\n}\n\n.crypt-subtab-row {\n display: flex;\n gap: 8px;\n margin-bottom: 10px;\n}\n\n.crypt-subtab-btn {\n background-color: var(--color-7);\n border: 1px solid var(--color-3);\n color: var(--color-5);\n font-weight: bold;\n padding: 5px 10px;\n cursor: pointer;\n}\n\n.crypt-subtab-btn.active {\n background-color: var(--color-2);\n color: var(--color-1);\n}\n\n.crypt-subtab-panel {\n min-height: 0;\n flex: 1;\n overflow-y: auto;\n}\n\n.crypt-grid {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: 10px;\n height: 100%;\n}\n\n.crypt-section {\n border: 1px solid var(--color-3);\n background-color: var(--color-7);\n padding: 10px;\n min-height: 0;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.crypt-section-title {\n font-size: 14px;\n font-weight: bold;\n color: var(--color-1);\n}\n\n#crypt-encountered-list,\n#crypt-keystore-list,\n#crypt-keystore-label,\n#crypt-keystore-mode,\n#crypt-keystore-unlock-password,\n#crypt-keystore-manual-uri-input,\n#crypt-cert-input,\n#crypt-key-input,\n#crypt-credential-input {\n width: 100%;\n box-sizing: border-box;\n border: 1px solid var(--color-3);\n background-color: #000;\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 12px;\n}\n\n#crypt-cert-input,\n#crypt-key-input,\n#crypt-credential-input {\n min-height: 120px;\n resize: vertical;\n padding: 6px;\n}\n\n#crypt-encountered-list {\n min-height: 180px;\n}\n\n#crypt-keystore-list {\n min-height: 120px;\n}\n\n#crypt-keystore-label {\n padding: 6px;\n}\n\n.keystore-mode-row {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 12px;\n}\n\n#crypt-keystore-mode {\n padding: 6px;\n}\n\n#crypt-keystore-unlock-status {\n font-size: 12px;\n color: var(--color-6);\n}\n\n#crypt-keystore-unlock-description,\n#crypt-keystore-manual-uri-description {\n font-size: 12px;\n color: var(--color-6);\n overflow-wrap: break-word;\n max-width: 400px;\n}\n\n#save-session-dialog,\n#crypt-keystore-unlock-dialog,\n#crypt-keystore-manual-uri-dialog {\n position: fixed;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.65);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 9999;\n overflow-wrap: break-word;\n}\n\n#save-session-dialog[hidden],\n#crypt-keystore-unlock-dialog[hidden],\n#crypt-keystore-manual-uri-dialog[hidden] {\n display: none !important;\n}\n\n#save-session-dialog-description {\n font-size: 12px;\n color: var(--color-6);\n overflow-wrap: break-word;\n max-width: 400px;\n}\n\n.crypt-keystore-unlock-content {\n width: min(420px, 92vw);\n border: 1px solid var(--color-3);\n background-color: var(--color-4);\n padding: 14px;\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n\n.crypt-actions-row {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n\n.crypt-actions-row button {\n background-color: var(--color-2);\n border: 1px solid var(--color-3);\n color: var(--color-1);\n padding: 4px 8px;\n cursor: pointer;\n}\n\n.crypt-actions-row button:hover {\n background-color: var(--color-2-hover);\n}\n\n.crypt-actions-row button:disabled {\n opacity: 0.55;\n cursor: not-allowed;\n}\n\n#crypt-encountered-details {\n font-size: 12px;\n color: var(--color-6);\n white-space: pre-wrap;\n}\n\n#crypt-cert-preview,\n#crypt-key-preview,\n#crypt-decrypt-preview,\n#crypt-keystore-details {\n margin: 0;\n white-space: pre-wrap;\n word-break: break-word;\n border: 1px solid var(--color-3);\n background-color: #000;\n color: var(--color-6);\n min-height: 90px;\n padding: 6px;\n overflow-y: auto;\n font-size: 12px;\n}\n\n.crypt-placeholder {\n border: 1px solid var(--color-3);\n background-color: var(--color-7);\n color: var(--color-6);\n padding: 12px;\n}\n\n#keystore_box {\n display: none;\n border: 8px solid var(--color-3);\n background-color: var(--color-4);\n padding: 10px;\n width: 100%;\n box-sizing: border-box;\n margin-top: 2px;\n flex: 1;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n color: var(--color-5);\n}\n\n.keystore-grid {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 10px;\n height: 100%;\n}\n\n.data-tools-grid {\n display: grid;\n grid-template-columns: 1fr 1fr 0.6fr;\n gap: 10px;\n color: var(--color-5);\n}\n\n.data-tools-section {\n border: 1px solid var(--color-3);\n background-color: var(--color-7);\n padding: 10px;\n min-height: 0;\n}\n\n.data-tools-title {\n font-size: 14px;\n font-weight: bold;\n color: var(--color-1);\n margin-bottom: 8px;\n}\n\n#data-tools-format,\n#data-tools-input,\n#data-tools-hex-output,\n#data-tools-binary-output,\n#data-tools-decimal-output,\n#data-tools-decimal-integer-output,\n#data-tools-ascii-output,\n#data-tools-base64-output {\n width: 100%;\n box-sizing: border-box;\n background-color: #000;\n border: 1px solid var(--color-3);\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 12px;\n margin-top: 6px;\n margin-bottom: 8px;\n padding: 6px;\n}\n\n#data-tools-hex-output,\n#data-tools-binary-output,\n#data-tools-decimal-output,\n#data-tools-decimal-integer-output,\n#data-tools-ascii-output,\n#data-tools-base64-output {\n min-height: 58px;\n resize: vertical;\n}\n\n#data-tools-input {\n min-height: 450px;\n resize: vertical;\n}\n\n.data-tools-output-label {\n color: var(--color-1);\n font-size: 12px;\n margin-top: 4px;\n}\n\n.data-tools-actions {\n display: flex;\n gap: 8px;\n margin-top: 8px;\n}\n\n.data-tools-actions button {\n background-color: var(--color-2);\n border: 1px solid var(--color-3);\n color: var(--color-5);\n padding: 6px 10px;\n cursor: pointer;\n}\n\n.data-tools-actions button:hover {\n background-color: var(--color-2-hover);\n}\n\n#data-tools-error {\n min-height: 18px;\n color: #ff8f8f;\n margin-top: 8px;\n}\n\n.data-tools-kv {\n margin-bottom: 10px;\n padding: 8px;\n background-color: rgba(0, 0, 0, 0.35);\n border: 1px solid var(--color-3);\n}\n\n.data-tools-proto-section {\n margin-top: 10px;\n}\n\n#data-tools-proto-select {\n width: 100%;\n box-sizing: border-box;\n background-color: #000;\n border: 1px solid var(--color-3);\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 12px;\n margin-top: 6px;\n margin-bottom: 8px;\n padding: 6px;\n}\n\n#data-tools-proto-output {\n margin-top: 8px;\n color: var(--color-5);\n}\n\n.data-tools-proto-table {\n width: 100%;\n border-collapse: collapse;\n font-family: "Courier New", Courier, monospace;\n font-size: 12px;\n}\n\n.data-tools-proto-table th,\n.data-tools-proto-table td {\n border: 1px solid var(--color-3);\n padding: 5px 8px;\n text-align: left;\n word-break: break-all;\n}\n\n.data-tools-proto-table th {\n background-color: var(--color-2);\n color: var(--color-1);\n}\n\n.data-tools-proto-table tr:nth-child(even) td {\n background-color: rgba(0, 0, 0, 0.2);\n}\n\n.data-tools-proto-none {\n color: var(--color-3);\n font-size: 12px;\n font-style: italic;\n}\n\n.data-tools-hashes-section {\n margin-top: 10px;\n}\n\n.data-tools-hashes-grid {\n display: grid;\n grid-template-columns: 120px 1fr;\n align-items: center;\n gap: 4px 8px;\n}\n\n.data-tools-hashes-grid .data-tools-output-label {\n margin-top: 0;\n}\n\n.data-tools-hash-input-reading {\n width: 100%;\n min-height: 48px;\n box-sizing: border-box;\n resize: vertical;\n background-color: #000;\n border: 1px solid var(--color-3);\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 12px;\n padding: 4px 6px;\n}\n\n.data-tools-hash-output {\n width: 100%;\n box-sizing: border-box;\n background-color: #000;\n border: 1px solid var(--color-3);\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 12px;\n padding: 4px 6px;\n}\n\n#convert-context-menu {\n position: fixed;\n z-index: 99999;\n background-color: var(--color-4);\n border: 1px solid var(--color-1);\n border-radius: 6px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);\n padding: 4px 0;\n min-width: 190px;\n display: flex;\n flex-direction: column;\n}\n\n#convert-context-menu[hidden] {\n display: none !important;\n}\n\n#convert-context-menu button {\n display: block;\n width: 100%;\n text-align: left;\n background: none;\n border: none;\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 13px;\n padding: 8px 16px;\n cursor: pointer;\n}\n\n#convert-context-menu button:hover {\n background-color: var(--color-7);\n color: white;\n}\n\n#convert-context-menu .ctx-submenu {\n position: relative;\n}\n\n#convert-context-menu .ctx-branch {\n position: relative;\n padding-right: 26px;\n}\n\n#convert-context-menu .ctx-branch::after {\n content: "\\25B6";\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n font-size: 10px;\n color: var(--color-6);\n}\n\n#convert-context-menu .ctx-submenu-panel {\n display: none;\n position: absolute;\n left: calc(100% - 2px);\n top: -4px;\n min-width: 210px;\n background-color: var(--color-4);\n border: 1px solid var(--color-1);\n border-radius: 6px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);\n padding: 4px 0;\n z-index: 100000;\n}\n\n#convert-context-menu .ctx-submenu.ctx-submenu-flip-x > .ctx-submenu-panel {\n left: auto;\n right: calc(100% - 2px);\n}\n\n#convert-context-menu .ctx-submenu.ctx-submenu-flip-y > .ctx-submenu-panel {\n top: auto;\n bottom: -4px;\n}\n\n#convert-context-menu .ctx-submenu:hover > .ctx-submenu-panel,\n#convert-context-menu .ctx-submenu:focus-within > .ctx-submenu-panel {\n display: block;\n}\n\n#list_box {\n display: none;\n border: 8px solid var(--color-3);\n background-color: var(--color-4);\n padding: 10px;\n width: 100%;\n box-sizing: border-box;\n margin-top: 2px;\n flex: 1;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n}\n\n#notes_box {\n display: none;\n border: 8px solid var(--color-3);\n background-color: var(--color-4);\n padding: 10px;\n width: 100%;\n box-sizing: border-box;\n margin-top: 2px;\n flex: 1;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n color: var(--color-5);\n}\n\n.notes-header {\n color: var(--color-1);\n font-weight: bold;\n margin-bottom: 8px;\n}\n\n#notes-controls {\n border: 1px solid var(--color-3);\n background-color: var(--color-7);\n padding: 8px;\n margin-bottom: 8px;\n}\n\n#notes-new-input {\n width: 100%;\n min-height: 120px;\n box-sizing: border-box;\n border: 1px solid var(--color-3);\n background-color: #000;\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 12px;\n margin-bottom: 8px;\n padding: 6px;\n resize: vertical;\n}\n\n.notes-controls-row {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n#notes-new-color {\n width: 38px;\n height: 28px;\n border: 1px solid var(--color-3);\n padding: 0;\n background: #000;\n}\n\n#notes-add-btn,\n#notes-save-btn {\n background-color: var(--color-2);\n border: 1px solid var(--color-3);\n color: var(--color-1);\n padding: 5px 8px;\n cursor: pointer;\n}\n\n#notes-add-btn:hover,\n#notes-save-btn:hover {\n background-color: var(--color-2-hover);\n}\n\n#notes-list {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.notes-editor-wrap {\n flex: 1;\n min-height: 0;\n border: 1px solid var(--color-3);\n background-color: #000;\n padding: 6px;\n}\n\n#notes-editor {\n width: 100%;\n height: 100%;\n min-height: 420px;\n box-sizing: border-box;\n border: 1px solid var(--color-3);\n background-color: #090909;\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 12px;\n padding: 6px;\n resize: vertical;\n}\n\n#rightside-notes {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n#rightside-notes[hidden] {\n display: none;\n}\n\n#notes-select {\n width: 100%;\n min-height: 210px;\n box-sizing: border-box;\n border: 1px solid var(--color-3);\n background-color: #000;\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 12px;\n}\n\n.notes-sidebar-actions {\n justify-content: flex-start;\n}\n\n#notes-remove-btn {\n background-color: #4d1f1f;\n border: 1px solid #933;\n color: #ffd8d8;\n padding: 5px 8px;\n cursor: pointer;\n}\n\n#list_search_bar {\n margin-bottom: 8px;\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n#list-search {\n flex: 1;\n box-sizing: border-box;\n padding: 6px 8px;\n background-color: #000;\n border: 1px solid var(--color-3);\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n font-size: 13px;\n}\n\n#list-group-streams-wrap {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n color: var(--color-5);\n font-size: 12px;\n white-space: nowrap;\n}\n\n#list_content {\n overflow-y: auto;\n flex: 1;\n min-height: 0;\n height: 100%;\n}\n\n.packet-list-table {\n width: 100%;\n border-collapse: collapse;\n table-layout: fixed;\n font-size: 12px;\n color: var(--color-5);\n}\n\n.packet-list-table thead th {\n background-color: var(--color-2);\n color: var(--color-1);\n padding: 5px 8px;\n text-align: left;\n position: sticky;\n top: 0;\n z-index: 1;\n border-bottom: 2px solid var(--color-3);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.packet-list-table thead th.packet-list-sortable-header {\n cursor: pointer;\n user-select: none;\n}\n\n.packet-list-table thead th.packet-list-sortable-header:focus {\n outline: 1px solid var(--color-5);\n outline-offset: -1px;\n}\n\n/* Column widths: #, bookmark, stream, host, src/dst, ports, transport, app protocol */\n.packet-list-table thead th:nth-child(1) {\n width: 5%;\n}\n.packet-list-table thead th:nth-child(2) {\n width: 5%;\n}\n.packet-list-table thead th:nth-child(3) {\n width: 7%;\n}\n.packet-list-table thead th:nth-child(4) {\n width: 14%;\n}\n.packet-list-table thead th:nth-child(5) {\n width: 12%;\n}\n.packet-list-table thead th:nth-child(6) {\n width: 12%;\n}\n.packet-list-table thead th:nth-child(7) {\n width: 8%;\n}\n.packet-list-table thead th:nth-child(8) {\n width: 8%;\n}\n.packet-list-table thead th:nth-child(9) {\n width: 9%;\n}\n.packet-list-table thead th:nth-child(10) {\n width: 20%;\n}\n\n.packet-list-table tbody tr {\n cursor: pointer;\n border-bottom: 1px solid var(--color-7);\n}\n\n.packet-list-table tbody tr:hover,\n.packet-list-table tbody tr.packet-list-hovered {\n background-color: var(--color-7);\n color: var(--color-1);\n}\n\n.packet-list-table tbody tr.packet-list-hovered:not(.packet-list-selected) {\n outline: 1px solid var(--color-3);\n outline-offset: -1px;\n}\n\n.packet-list-table tbody tr.packet-list-stream-break {\n border-top: 2px solid var(--color-3);\n}\n\n.packet-list-table tbody tr.packet-list-selected {\n background-color: var(--color-2);\n color: var(--color-1);\n}\n\n.packet-list-table tbody tr.packet-list-selected:hover,\n.packet-list-table tbody tr.packet-list-selected.packet-list-hovered {\n background-color: var(--color-2-hover);\n}\n\n.packet-list-table td {\n padding: 4px 8px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.stats-section {\n margin-bottom: 18px;\n}\n\n.stats-section-title {\n font-size: 16px;\n font-weight: bold;\n color: var(--color-1);\n background-color: var(--color-2);\n padding: 4px 8px;\n margin-bottom: 6px;\n}\n\n.stats-tag-list {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n padding: 4px 8px;\n}\n\n.stats-tag {\n background-color: var(--color-7);\n border: 1px solid var(--color-3);\n color: white;\n padding: 3px 8px;\n font-size: 12px;\n border-radius: 3px;\n cursor: pointer;\n transition: background-color 0.2s;\n}\n\n.stats-tag:hover {\n background-color: var(--color-2);\n}\n\n.stats-kv {\n padding: 4px 8px;\n font-size: 13px;\n color: var(--color-6);\n}\n\n#copyright {\n bottom: 0;\n position: absolute;\n text-align: right;\n padding: 5px;\n height: 5px;\n margin-bottom: 5px;\n justify-content: center;\n}\n\n#packetInfoPane {\n overflow-y: scroll;\n overflow-x: hidden;\n width: 100%;\n box-sizing: border-box;\n color: var(--color-1);\n font-size: 13px;\n display: block;\n background-color: var(--color-4);\n border: 8px solid var(--color-3);\n flex: 1;\n min-height: 0;\n position: relative;\n}\n\n#moredata {\n display: block;\n margin-left: 15px;\n margin-top: 10px;\n}\n\n#sidedatatable {\n justify-content: center;\n}\n\n#timestamp {\n font-size: 14px;\n color: white;\n}\n\n#ip2ip {\n color: white;\n font-size: 15px;\n placment: absolute;\n text-align: center;\n display: block;\n width: 90%;\n}\n\n#data-types {\n border: 1px solid var(--color-3);\n margin-left: 15px;\n margin-bottom: 20px;\n margin-top: 20px;\n width: 67%;\n max-width: 1000px;\n background-color: var(--color-7);\n height: 400px;\n display: flex;\n z-index: 1;\n}\n\n.sidebar-header {\n font-size: 18px;\n background-color: var(--color-2);\n color: white;\n font-weight: bold;\n text-align: center;\n}\n\n#mime-type {\n font-size: 14px;\n justify-content: left;\n text-align: left;\n color: var(--color-6);\n margin-top: 10px;\n margin-left: 15px;\n}\n#charset {\n font-size: 14px;\n justify-content: left;\n text-align: left;\n color: var(--color-6);\n margin-top: 10px;\n margin-left: 15px;\n}\n#encoding {\n font-size: 14px;\n justify-content: left;\n text-align: left;\n color: var(--color-6);\n margin-top: 10px;\n margin-left: 15px;\n}\n#language {\n font-size: 14px;\n justify-content: left;\n text-align: left;\n color: var(--color-6);\n margin-top: 10px;\n margin-left: 15px;\n}\n\n#types-list {\n color: white;\n font-size: 14px;\n z-index: -1;\n}\n\n#entropybox {\n text-align: center;\n font-size: 26px;\n font-weight: bold;\n background-color: var(--color-7);\n}\n\n.low {\n color: green;\n}\n\n.med {\n color: orange;\n}\n\n.high {\n color: red;\n}\n\n#file-info {\n position: relative;\n margin-top: 100px;\n margin-left: 15px;\n color: white;\n font-size: 16px;\n}\n\n#packetPayloadPane {\n width: 100%;\n box-sizing: border-box;\n overflow-y: scroll;\n overflow-x: hidden;\n padding: 8px;\n background-color: var(--color-4);\n border: 8px solid var(--color-3);\n margin-top: 0;\n flex: 0 0 40%;\n /* z-index: 4; */\n position: relative;\n}\n#protoInfo {\n margin-top: 10px;\n margin-left: 15px;\n width: 67%;\n max-width: 1000px;\n display: block;\n font-size: 0px;\n border: 1px solid var(--color-3);\n}\n#protoInfoProto {\n font-size: 14px;\n width: 100%;\n display: flex;\n color: var(--color-6);\n}\n\n.PHead {\n color: white;\n font-size: 18px;\n background-color: var(--color-2);\n text-align: center;\n}\n\n/* to main protcol boxes, src/dest */\n#protoInfoSrc,\n#protoInfoDest {\n width: 100%;\n color: var(--color-6);\n font-size: 14px;\n background-color: var(--color-7);\n}\n\n#hexg {\n z-index: 5;\n}\n\n/* this is here to setup the grid bed */\n.hexGrid {\n font-size: 12px;\n display: grid;\n grid-template-columns: repeat(32, 27px);\n grid-template-rows: repeat(32, 27px);\n gap: 1px;\n justify-content: center;\n width: max-content;\n min-width: 100%;\n margin: 0 auto;\n border: 1px solid #ccc;\n background-color: var(--color-7);\n}\n\n/* sets up the boxes on the grid waiting */\n/* to be assigned packet (hex) data */\n.griditem {\n background-color: var(--color-4);\n border: 1px solid var(--color-3);\n display: flex;\n justify-content: center;\n align-items: center;\n width: 27px;\n height: 27px;\n padding: 0;\n font-family: monospace;\n text-align: center;\n white-space: nowrap;\n line-height: 1;\n overflow: hidden;\n box-sizing: border-box;\n transition:\n background-color 0.3s,\n border-color 0.3s; /* Smooth transition */\n}\n\n/* this is for the consecutive ones that are highlighted */\n.griditem.highlight {\n background-color: #413f6e;\n border-color: white;\n transition:\n background-color 0.3s,\n border-color 0.3s;\n}\n\n/* this is for the one right under the cursor */\n.griditem:hover,\n.griditem:focus {\n background-color: var(--color-3); /* Highlight color */\n border-color: white;\n cursor: pointer;\n}\n\n.logo-cont {\n width: 45px;\n height: 52px;\n}\n\n.footer {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n background-color: black;\n width: 100%;\n box-sizing: border-box;\n color: white;\n font-size: small;\n padding: 0 5px;\n margin-top: 4px;\n}\n\n.bmdrop {\n background-color: var(--color-2);\n border: 1px solid var(--color-4);\n padding: 5px;\n position: absolute;\n left: calc(var(--sidebar-width) + 30px);\n top: 165px;\n height: 30px;\n}\n\n#filters-container {\n flex: 1;\n display: flex;\n align-items: center;\n width: auto;\n gap: 8px;\n}\n\n#host_filter {\n width: 60px;\n display: none;\n}\n\n#filterStr-wrap {\n --filter-clear-button-width: 64px;\n --filter-clear-right-offset: 6px;\n --filter-clear-padding: calc(\n var(--filter-clear-button-width) + var(--filter-clear-right-offset) + 6px\n );\n flex: 1;\n position: relative;\n min-width: 0;\n}\n\n#filterStr-highlight {\n position: absolute;\n top: 1px;\n left: 1px;\n right: calc(var(--filter-clear-padding) + 1px);\n bottom: 1px;\n pointer-events: none;\n white-space: pre;\n overflow: hidden;\n padding: 5px;\n font: inherit;\n}\n\n#filterStr {\n width: calc(100% - var(--filter-clear-padding));\n background-color: black;\n color: transparent;\n caret-color: white;\n border: 1px solid grey;\n padding: 5px;\n box-sizing: border-box;\n font: inherit;\n}\n\n#filterStr-clear {\n position: absolute;\n top: 1px;\n margin-top: -2px;\n bottom: 1px;\n right: var(--filter-clear-right-offset);\n width: var(--filter-clear-button-width);\n border: 1px solid grey;\n background-color: var(--color-7);\n color: white;\n box-sizing: border-box;\n padding: 0 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n font: inherit;\n line-height: 1;\n cursor: pointer;\n height: 32px;\n margin-right: 4px;\n}\n\n#filterStr-clear:not(:disabled):hover,\n#filterStr-clear:not(:disabled):focus {\n background-color: var(--color-2);\n}\n\n#filterStr-clear:disabled {\n opacity: 0.6;\n cursor: default;\n}\n\n#filterStr::placeholder {\n color: var(--color-6);\n}\n\n@media (forced-colors: active) {\n #filterStr {\n color: CanvasText;\n caret-color: CanvasText;\n }\n\n #filterStr-highlight {\n display: none;\n }\n}\n\n#filter-history {\n width: 320px;\n position: relative;\n}\n\n#filter-history-select {\n width: 100%;\n background-color: black;\n color: white;\n border: 1px solid grey;\n padding: 5px;\n font: inherit;\n cursor: pointer;\n}\n\n#filter-history-select:disabled {\n opacity: 0.6;\n cursor: default;\n}\n\n.query-token-key {\n color: #b785ff;\n}\n\n.query-token-logic,\n.query-token-paren {\n color: #6ab4ff;\n}\n\n.query-token-operator {\n color: #ffb36b;\n}\n\n.query-token-value {\n color: #ff7d7d;\n}\n\n.query-token-colon {\n color: #6ab4ff;\n}\n\n#payloadascii {\n width: 320px;\n height: 24px;\n position: fixed;\n text-size: 12px;\n background-color: var(--color-4);\n color: var(--color-1);\n font-family: monospace;\n padding: 5px;\n border: 1px solid var(--color-3);\n opacity: 0;\n z-index: 10;\n transition: opacity 0.3s ease;\n pointer-events: none;\n}\n\n#asciiOffset {\n width: 80px;\n position: absolute;\n}\n\n#asciiText {\n color: white;\n width: 250px;\n margin-left: 70px;\n position: absolute;\n text-align: right;\n}\n#payloadascii.visible {\n opacity: 1;\n pointer-events: auto;\n}\n\n.logo-cont img {\n width: 100%;\n height: 100%;\n object-fit: cover; /* or \'contain\' */\n margin-top: 9px;\n}\n\n/* Installation complete screen */\n#install-screen {\n display: none;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.82);\n z-index: 9999;\n justify-content: center;\n align-items: center;\n}\n\n#install-screen-inner {\n background-color: var(--color-4);\n border: 2px solid var(--color-1);\n border-radius: 10px;\n padding: 30px 40px;\n max-width: 600px;\n width: 90%;\n color: var(--color-5);\n font-family: "Courier New", Courier, monospace;\n}\n\n#install-title {\n font-size: 22px;\n color: var(--color-1);\n font-weight: bold;\n text-align: center;\n margin-bottom: 6px;\n}\n\n#install-version {\n font-size: 13px;\n color: var(--color-3);\n text-align: center;\n margin-bottom: 10px;\n}\n\n.install-divider {\n border: 1px solid var(--color-7);\n margin: 12px 0;\n}\n\n#install-files-heading {\n font-size: 14px;\n color: var(--color-6);\n margin-bottom: 8px;\n font-weight: bold;\n}\n\n#install-file-list {\n list-style: none;\n padding: 0;\n margin: 0 0 10px 0;\n}\n\n#install-file-list li {\n padding: 4px 0;\n font-size: 13px;\n}\n\n.install-file-ok {\n color: white;\n}\n\n.install-file-missing {\n color: #e06b6b;\n font-weight: bold;\n}\n\n#install-ollama-status {\n font-size: 13px;\n padding: 8px 10px;\n border-radius: 6px;\n margin-bottom: 18px;\n}\n\n.install-ok {\n /* background-color: rgba(107, 224, 107, 0.12); */\n color: white;\n border: white;\n}\n\n.install-warning {\n background-color: rgba(224, 180, 40, 0.12);\n color: #e0b428;\n border: 1px solid #e0b42844;\n}\n\n#install-continue-btn {\n display: block;\n width: 100%;\n padding: 10px;\n background-color: var(--color-1);\n color: black;\n border: none;\n border-radius: 6px;\n font-size: 15px;\n font-weight: bold;\n cursor: pointer;\n font-family: "Courier New", Courier, monospace;\n transition: background-color 0.2s;\n}\n\n#install-continue-btn:hover {\n background-color: var(--color-3);\n}\n\n#activity-log-panel {\n display: none;\n position: fixed;\n right: 30px;\n top: 120px;\n width: 460px;\n height: 560px;\n z-index: 9000;\n background-color: var(--color-4);\n border: 2px solid var(--color-1);\n border-radius: 8px;\n padding: 10px;\n box-sizing: border-box;\n color: white;\n font-family: "Courier New", Courier, monospace;\n}\n\n#activity-log-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 16px;\n color: var(--color-1);\n margin-bottom: 6px;\n}\n\n#close-log-btn {\n border: none;\n background: transparent;\n color: var(--color-1);\n font-size: 20px;\n cursor: pointer;\n}\n\n#activity-log-path {\n border: 1px solid var(--color-3);\n background-color: #000;\n color: var(--color-6);\n padding: 6px;\n font-size: 12px;\n margin-bottom: 6px;\n word-break: break-all;\n}\n\n#activity-log-entries {\n border: 1px solid var(--color-3);\n background-color: #000;\n height: 410px;\n overflow-y: auto;\n padding: 6px;\n margin-bottom: 6px;\n white-space: pre-wrap;\n word-break: break-word;\n}\n\n.activity-log-entry {\n border-bottom: 1px solid #2f3257;\n padding: 5px 0;\n color: white;\n}\n\n#activity-log-search {\n width: 100%;\n box-sizing: border-box;\n padding: 8px;\n border: 1px solid var(--color-3);\n background-color: #000;\n color: white;\n}\n\n.ctx-divider {\n border: none;\n border-top: 1px solid var(--color-7);\n margin: 4px 0;\n}\n'],sourceRoot:""}]);const s=a},5072(t){"use strict";var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],h=r.base?l[0]+r.base:l[0],u=o[h]||0,c="".concat(h," ").concat(u);o[h]=u+1;var d=n(c),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(f);else{var p=i(f,r);r.byIndex=s,e.splice(s,0,{identifier:c,updater:p,references:1})}a.push(c)}return a}function i(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var o=r(t=t||[],i=i||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=n(o[a]);e[s].references--}for(var l=r(t,i),h=0;h<o.length;h++){var u=n(o[h]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}o=l}}},7659(t){"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},5056(t,e,n){"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},7825(t){"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},1113(t){"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},1423(t){function e(t,e,n){const r=document.getElementById(n);if(!r)return;const i=document.createDocumentFragment(),o=document.createElement("table"),a=document.createElement("tr");for(let t=0;t<e.length;t++){const n=document.createElement("th");n.textContent=e[t],a.appendChild(n)}o.appendChild(a);for(let e=0;e<t.length;e++){const n=t[e],r=document.createElement("tr"),i=Object.values(n);for(let t=0;t<i.length;t++){const e=document.createElement("td");e.textContent=i[t],r.appendChild(e)}o.appendChild(r)}i.appendChild(o),r.appendChild(i)}t.exports={createTable:e,renderDnsTable:function(t){const n=t.DNS;n&&e([{name:"Transaction ID",value:n["Transaction ID"]},{name:"Type",value:n["Is Response"]?"Response":"Query"},{name:"Query Names",value:(n["Query Names"]||[]).join(", ")||"—"},{name:"Answer IPs",value:(n["Answer IPs"]||[]).join(", ")||"—"},{name:"Questions",value:n["Question Count"]},{name:"Answers",value:n["Answer Count"]}],["DNS Field","Value"],"sidedatatable")},renderIcmpTable:function(t,n){"ICMP"===t&&e([{name:"Type",value:n.Type??"—"},{name:"Code",value:n.Code??"—"},{name:"ID",value:n.ID??"—"},{name:"Sequence",value:n.Sequence??"—"}],["ICMP Field","Value"],"sidedatatable")},renderSnmpTable:function(t){const n=t.SNMP;n&&e([{name:"Version",value:n.Version||"—"},{name:"Community",value:n.Community||"—"},{name:"PDU Type",value:n["PDU Type"]||"—"}],["SNMP Field","Value"],"sidedatatable")},renderDhcpTable:function(t){const n=t.DHCP;n&&e([{name:"Message Type",value:n["Message Type"]||"—"},{name:"Transaction ID",value:n["Transaction ID"]||"—"},{name:"Client IP",value:n["Client IP"]||"—"},{name:"Your IP",value:n["Your IP"]||"—"},{name:"Server IP",value:n["Server IP"]||"—"}],["DHCP Field","Value"],"sidedatatable")},renderNtpTable:function(t){const n=t.NTP;n&&e([{name:"Version",value:n.Version??"—"},{name:"Mode",value:n.Mode||"—"},{name:"Stratum",value:n.Stratum??"—"},{name:"Reference ID",value:n["Reference ID"]||"—"},{name:"Leap Indicator",value:n["Leap Indicator"]??"—"}],["NTP Field","Value"],"sidedatatable")},renderSipTable:function(t){const n=t.SIP;n&&e([{name:"Type",value:n.Type||"—"},{name:"Request"===n.Type?"Method":"Status Code",value:n.Method||n["Status Code"]||"—"},{name:"From",value:n.From||"—"},{name:"To",value:n.To||"—"},{name:"Call-ID",value:n["Call-ID"]||"—"}],["SIP Field","Value"],"sidedatatable")},renderHttpTable:function(t){const n=t.HTTP;if(!n)return;const r=[{name:"Type",value:n.Type||"—"}];"Request"===n.Type?r.push({name:"Method",value:n.Method||"—"},{name:"URL",value:n.URL||"—"},{name:"HTTP Version",value:n["HTTP Version"]||"—"},{name:"Host",value:n.Host||"—"},{name:"User-Agent",value:n["User-Agent"]||"—"},{name:"Content-Type",value:n["Content-Type"]||"—"},{name:"Content-Length",value:n["Content-Length"]||"—"},{name:"Referer",value:n.Referer||"—"},{name:"Accept",value:n.Accept||"—"},{name:"Accept-Encoding",value:n["Accept-Encoding"]||"—"},{name:"Connection",value:n.Connection||"—"}):r.push({name:"Status Code",value:n["Status Code"]||"—"},{name:"Status Message",value:n["Status Message"]||"—"},{name:"HTTP Version",value:n["HTTP Version"]||"—"},{name:"Server",value:n.Server||"—"},{name:"Content-Type",value:n["Content-Type"]||"—"},{name:"Content-Length",value:n["Content-Length"]||"—"},{name:"Content-Encoding",value:n["Content-Encoding"]||"—"},{name:"Transfer-Encoding",value:n["Transfer-Encoding"]||"—"},{name:"Connection",value:n.Connection||"—"},{name:"Location",value:n.Location||"—"}),e(r,["HTTP Field","Value"],"sidedatatable")},renderFtpTable:function(t){const n=t.FTP;if(!n)return;const r=[{name:"Type",value:n.Type||"—"}];"Command"===n.Type?r.push({name:"Command",value:n.Command||"—"},{name:"Argument",value:n.Argument||"—"}):r.push({name:"Status Code",value:n["Status Code"]||"—"},{name:"Message",value:n.Message||"—"}),e(r,["FTP Field","Value"],"sidedatatable")},renderSmtpTable:function(t){const n=t.SMTP;if(!n)return;const r=[{name:"Type",value:n.Type||"—"}];"Command"===n.Type?r.push({name:"Command",value:n.Command||"—"},{name:"Argument",value:n.Argument||"—"}):r.push({name:"Status Code",value:n["Status Code"]||"—"},{name:"Message",value:n.Message||"—"}),e(r,["SMTP Field","Value"],"sidedatatable")},renderPop3Table:function(t){const n=t.POP3;if(!n)return;const r=[{name:"Type",value:n.Type||"—"}];"Command"===n.Type?r.push({name:"Command",value:n.Command||"—"},{name:"Argument",value:n.Argument||"—"}):r.push({name:"Status",value:n.Status||"—"},{name:"Message",value:n.Message||"—"}),e(r,["POP3 Field","Value"],"sidedatatable")},renderImapTable:function(t){const n=t.IMAP;if(!n)return;const r=[{name:"Type",value:n.Type||"—"}];"Command"===n.Type?r.push({name:"Tag",value:n.Tag||"—"},{name:"Command",value:n.Command||"—"},{name:"Argument",value:n.Argument||"—"}):"Response"===n.Type?r.push({name:"Tag",value:n.Tag||"—"},{name:"Status",value:n.Status||"—"},{name:"Message",value:n.Message||"—"}):r.push({name:"Status",value:n.Status||"—"},{name:"Info",value:n.Info||"—"}),e(r,["IMAP Field","Value"],"sidedatatable")},renderTelnetTable:function(t){const n=t.Telnet;n&&e([{name:"Negotiations",value:(n.Negotiations||[]).join(", ")||"—"},{name:"Text",value:n["Printable Text"]||"—"}],["Telnet Field","Value"],"sidedatatable")},renderIrcTable:function(t){const n=t.IRC;n&&e([{name:"Command",value:n.Command||"—"},{name:"Prefix",value:n.Prefix||"—"},{name:"Parameters",value:n.Parameters||"—"},{name:"Message Count",value:n["Message Count"]??"—"}],["IRC Field","Value"],"sidedatatable")},renderMtpTable:function(t){const n=t.MTP;n&&e([{name:"Protocol",value:n.Protocol||"—"},{name:"Command",value:n.Command||"—"},{name:"Command ID",value:n["Command ID"]||"—"},{name:"Length",value:n.Length??"—"}],["MTP Field","Value"],"sidedatatable")},renderLdapTable:function(t){const n=t.LDAP;n&&e([{name:"Message ID",value:n["Message ID"]??"—"},{name:"Operation",value:n.Operation||"—"}],["LDAP Field","Value"],"sidedatatable")},renderMysqlTable:function(t){const n=t.MySQL;if(!n)return;const r=[{name:"Type",value:n.Type||"—"},{name:"Sequence",value:n.Sequence??"—"}];"Server Greeting"===n.Type?r.push({name:"Protocol Version",value:n["Protocol Version"]??"—"},{name:"Server Version",value:n["Server Version"]||"—"}):"Command"===n.Type?r.push({name:"Command",value:n.Command||"—"},{name:"Query",value:n.Query||"—"}):"Error"===n.Type&&r.push({name:"Error Code",value:n["Error Code"]??"—"},{name:"Error Message",value:n["Error Message"]||"—"}),e(r,["MySQL Field","Value"],"sidedatatable")},renderPostgresqlTable:function(t){const n=t.PostgreSQL;if(!n)return;const r=[{name:"Type",value:n.Type||"—"},{name:"Direction",value:n.Direction||"—"}];n["Protocol Version"]&&r.push({name:"Protocol Version",value:n["Protocol Version"]}),void 0!==n["Message Length"]&&r.push({name:"Message Length",value:n["Message Length"]}),n.Body&&r.push({name:"Body",value:n.Body}),e(r,["PostgreSQL Field","Value"],"sidedatatable")},renderXmppTable:function(t){const n=t.XMPP;n&&e([{name:"Stanza Type",value:n["Stanza Type"]||"—"},{name:"From",value:n.From||"—"},{name:"To",value:n.To||"—"}],["XMPP Field","Value"],"sidedatatable")},renderSmbTable:function(t){const n=t.SMB;n&&e([{name:"Version",value:n.Version||"—"},{name:"Command",value:n.Command||"—"},{name:"Status",value:n.Status||"—"},{name:"Is Response",value:n["Is Response"]?"Yes":"No"}],["SMB Field","Value"],"sidedatatable")},renderMqttTable:function(t){const n=t.MQTT;if(!n)return;const r=[{name:"Message Type",value:n["Message Type"]||"—"},{name:"QoS",value:n.QoS??"—"},{name:"DUP Flag",value:n["DUP Flag"]?"Yes":"No"},{name:"Retain Flag",value:n["Retain Flag"]?"Yes":"No"}];n.Topic&&r.push({name:"Topic",value:n.Topic}),e(r,["MQTT Field","Value"],"sidedatatable")},renderRtspTable:function(t){const n=t.RTSP;if(!n)return;const r=[{name:"Type",value:n.Type||"—"}];"Request"===n.Type?r.push({name:"Method",value:n.Method||"—"},{name:"URL",value:n.URL||"—"},{name:"RTSP Version",value:n["RTSP Version"]||"—"},{name:"CSeq",value:n.CSeq||"—"},{name:"Session",value:n.Session||"—"},{name:"Transport",value:n.Transport||"—"}):r.push({name:"Status Code",value:n["Status Code"]||"—"},{name:"Status Message",value:n["Status Message"]||"—"},{name:"RTSP Version",value:n["RTSP Version"]||"—"},{name:"CSeq",value:n.CSeq||"—"},{name:"Content-Type",value:n["Content-Type"]||"—"},{name:"Content-Length",value:n["Content-Length"]||"—"}),e(r,["RTSP Field","Value"],"sidedatatable")},renderTftpTable:function(t){const n=t.TFTP;if(!n)return;const r=[{name:"Opcode",value:n.Opcode||"—"}];void 0!==n.Filename&&r.push({name:"Filename",value:n.Filename||"—"},{name:"Mode",value:n.Mode||"—"}),void 0!==n["Block Number"]&&r.push({name:"Block Number",value:n["Block Number"]}),void 0!==n["Data Length"]&&r.push({name:"Data Length",value:n["Data Length"]}),void 0!==n["Error Code"]&&r.push({name:"Error Code",value:n["Error Code"]},{name:"Error Description",value:n["Error Description"]||"—"},{name:"Error Message",value:n["Error Message"]||"—"}),e(r,["TFTP Field","Value"],"sidedatatable")},renderBgpTable:function(t){const n=t.BGP;if(!n)return;const r=[{name:"Message Type",value:n["Message Type"]||"—"},{name:"Message Length",value:n["Message Length"]??"—"}];void 0!==n["BGP Version"]&&r.push({name:"BGP Version",value:n["BGP Version"]},{name:"ASN",value:n.ASN??"—"},{name:"Hold Time",value:n["Hold Time"]??"—"},{name:"Router ID",value:n["Router ID"]||"—"}),void 0!==n["Error Code"]&&r.push({name:"Error Name",value:n["Error Name"]||"—"},{name:"Error Code",value:n["Error Code"]},{name:"Error Subcode",value:n["Error Subcode"]??"—"}),e(r,["BGP Field","Value"],"sidedatatable")},renderHttp2Table:function(t){const n=t.HTTP2;if(!n)return;const r=[{name:"Frame Type",value:n["Frame Type"]||"—"},{name:"Connection Preface",value:n["Connection Preface"]?"Yes":"No"}];void 0!==n["Frame Length"]&&r.push({name:"Frame Length",value:n["Frame Length"]},{name:"Frame Flags",value:n["Frame Flags"]||"—"},{name:"Stream ID",value:n["Stream ID"]??"—"}),e(r,["HTTP/2 Field","Value"],"sidedatatable")},renderNntpTable:function(t){const n=t.NNTP;if(!n)return;const r=[{name:"Type",value:n.Type||"—"}];"Command"===n.Type?r.push({name:"Command",value:n.Command||"—"},{name:"Argument",value:n.Argument||"—"}):r.push({name:"Status Code",value:n["Status Code"]||"—"},{name:"Message",value:n.Message||"—"}),e(r,["NNTP Field","Value"],"sidedatatable")},renderRadiusTable:function(t){const n=t.RADIUS;if(!n)return;const r=[{name:"Code",value:n.Code||"—"},{name:"Identifier",value:n.Identifier??"—"},{name:"Length",value:n.Length??"—"}];(n.Attributes||[]).forEach(t=>{r.push({name:t.Type||"Attr",value:t.Value||"—"})}),e(r,["RADIUS Field","Value"],"sidedatatable")}}},8480(t){const e=/^(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}$/,n=/^0x[0-9a-fA-F]+$/,r=/^([0-9A-Fa-f]{2}([-:])){5}[0-9A-Fa-f]{2}$/,i=/^[\x00-\x7F]*$/,o=(new Map,new Map),a={"==":(t,e)=>t==e,"!=":(t,e)=>t!=e,">=":(t,e)=>t>=e,">":(t,e)=>t>e,"<=":(t,e)=>t<=e,"<":(t,e)=>t<e},s=(t,e,n)=>(a[n]||a["=="])(t,e),l=t=>{const e=Object.keys(t.Host)[0];return`${e}-${t.Host[e][0]["Packet Info"]["Packet Processed"]}`},h=(t,e)=>{const n=new Map;for(const r of t)n.set(e(r),r);return[...n.values()]},u=(t,e,n)=>{const r=new Set(e.map(n));return t.filter(t=>r.has(n(t)))};function c(t){return e.test(t)?"IP":n.test(t)?"HEX":r.test(t)?"MAC":Number.isInteger(t)?"INT":"number"==typeof t?"FLOAT":"string"==typeof t&&i.test(t)?"ASCII":"BIN"}function d(t,e){for(const n in t){if(n===e)return t[n];const r=t[n];if(r&&"object"==typeof r){const t=d(r,e);if(void 0!==t)return t}}}function f(t){const e=[],n=t=>{for(const r in t){const i=t[r];i&&"object"==typeof i&&!Array.isArray(i)?n(i):e.push({[r]:r.toLowerCase().replace(/ /g,"-"),type:c(i)})}};return n(t),e}function p(t){return t.toLowerCase().replace(/[._\s-]+/g,"-")}function m(t,e){switch(e){case"wire-proto":{const e=t?.["Packet Info"]||{},n=e.Protocol;return"string"==typeof n?n.toLowerCase():e.TCP?"tcp":e.UDP?"udp":e.ICMP?"icmp":void 0}case"eth-src-vendor":return t?.["Packet Info"]?.["Ethernet Frame"]?.["MAC Source Vendor"]??t?.["Packet Info"]?.["Ethernet Frame"]?.["ether.src.mac.vendor"];case"mime-type":return t?.["Extra Info"]?.["MIME Type"]??t?.["Extra Info"]?.["payload.mime"];case"dns-qname":{const e=t?.["Extra Info"]?.Traits?.["Network Data"]?.Hostnames?.Hostnames;return[e,d(t,"dns.qname"),d(t,"dns.qnames")].flat().filter(t=>"string"==typeof t)}default:return}}function g(t){const e=[];let n=0;for(;n<t.length;){if(/\s/.test(t[n])){n++;continue}if("("===t[n]){e.push({type:"LPAREN"}),n++;continue}if(")"===t[n]){e.push({type:"RPAREN"}),n++;continue}if(t.startsWith("||",n)){e.push({type:"OR"}),n+=2;continue}if(t.startsWith("&&",n)){e.push({type:"AND"}),n+=2;continue}if("!"===t[n]&&"="!==t[n+1]){e.push({type:"NOT"}),n++;continue}let r=n;for(;r<t.length&&!t.startsWith("||",r)&&!t.startsWith("&&",r)&&("!"!==t[r]||"="===t[r+1])&&"("!==t[r]&&")"!==t[r];)r++;const i=t.slice(n,r).trim();i&&e.push({type:"EXPR",value:i}),n=r}return e}function y(t){const e="string"==typeof t?t.trim():"";if(!e)return!0;const n=g(e);let r=0;function i(){return n[r]}function o(t){const e=n[r];if(t&&(!e||e.type!==t))throw new Error(`Expected ${t} but got ${e?e.type:"EOF"}`);return r++,e}function a(){for(s();i()&&"OR"===i().type;)o("OR"),s()}function s(){for(l();i()&&"AND"===i().type;)o("AND"),l()}function l(){const t=i();if(!t)throw new Error("Unexpected end of query");if("NOT"!==t.type){if("LPAREN"!==t.type){if("EXPR"===t.type)return o("EXPR"),void function(t){if("string"!=typeof t)throw new Error("Filter expression must be text");const e=t.indexOf(":");if(-1===e)throw new Error(`Missing ":" in expression "${t.trim()}"`);const n=t.slice(0,e).trim(),r=t.slice(e+1).trim();if(!n)throw new Error(`Missing filter field before ":" in "${t.trim()}"`);if(!r)throw new Error(`Missing filter value after ":" in "${t.trim()}"`)}(t.value);if("RPAREN"===t.type)throw new Error("Unexpected closing parenthesis");if("AND"===t.type||"OR"===t.type)throw new Error(`Unexpected operator ${t.type}`);throw new Error(`Unexpected token ${t.type}`)}if(o("LPAREN"),"RPAREN"===i()?.type)throw new Error("Empty parentheses are not allowed");if(a(),!i()||"RPAREN"!==i().type)throw new Error("Missing closing parenthesis");o("RPAREN")}else{if(o("NOT"),!i())throw new Error("Expected expression or group after !");l()}}if(a(),r<n.length){const t=n[r];if("RPAREN"===t.type)throw new Error("Unexpected closing parenthesis");throw new Error(`Unexpected token ${t.type}`)}return!0}function b(t,e){const n=g(e),r=function(t){const e="string"==typeof t?JSON.parse(t):t,n=[];if(!e?.Host)return n;for(const t in e.Host){const r=e.Host[t];if(Array.isArray(r))for(const e of r)n.push({Host:{[t]:[e]}})}return n}(t);let i=0;function a(){return n[i]}function y(t){const e=n[i];if(t&&(!e||e.type!==t))throw new Error(`Expected ${t} but got ${e?e.type:"EOF"}`);return i++,e}function b(){let t=v();for(;a()&&"OR"===a().type;){y("OR");const e=v();t=h([...t,...e],l)}return t}function v(){let t=A();for(;a()&&"AND"===a().type;){y("AND");const e=A();t=u(t,e,l)}return t}function A(){const e=a();if(e&&"NOT"===e.type){if(y("NOT"),!a())throw new Error("Expected expression or group after !");const t=A();return((t,e,n)=>{const r=new Set(e.map(n));return t.filter(t=>!r.has(n(t)))})(r,t,l)}if(e&&"LPAREN"===e.type){y("LPAREN");const t=b();return y("RPAREN"),t}return e&&"EXPR"===e.type?(y("EXPR"),function(t,e){const n="string"==typeof t?JSON.parse(t):t,r=[];if(!e||!e.includes(":"))return r;const[i,a]=e.split(":").map(t=>t.trim()),l=p(i),h=[">=","<=",">","<","==","!="].find(t=>a.includes(t)),u=a.replace(h,"").trim(),g=u.toLowerCase(),y=["ASCII","HEX","IP","MAC"].includes(c(u));for(const t in n.Host){const e=n.Host[t],i=e[0];let a=o.get(t);if(!a){const e=f(i);a={normalized:e.map(t=>Object.values(t)[0]),original:e.map(t=>Object.keys(t)[0])},o.set(t,a)}const b=a.normalized.findIndex(t=>p(t)===l),v=-1===b?null:a.original[b];for(const n of e){let e=m(n,l);if(void 0===e&&v&&(e=d(n,v)),void 0===e)continue;let i=!1;if(i=!h&&["dns-qname","eth-src-vendor","mime-type"].includes(l)?(Array.isArray(e)?e:[e]).some(t=>"string"==typeof t&&t.toLowerCase().includes(g)):s(e,u,h||"=="),!i&&y){const t=c(e);["ASCII","HEX","IP","MAC"].includes(t)&&(i=String(e).toLowerCase()===g)}i&&r.push({Host:{[t]:[n]}})}}return r}(t,e.value)):[]}return b()}t.exports={filterPackets:function(t,e){let n;return""===e.trim()?n=b(t,"wire-length:>=0"):(y(e),n=b(t,e)),n.map(t=>{const e=Object.keys(t.Host)[0];return t.Host[e][0]})},getDataType:c,validateFilterSyntax:y}},1653(t){t.exports={initializeLogging:function({logapi:t=null,documentRef:e=document,consoleRef:n=console}){let r="Unavailable";const i=[];function o(t=""){const n=e.getElementById("activity-log-entries");if(!n)return;n.replaceChildren();const r=t.trim().toLowerCase();i.filter(t=>!r||t.message.toLowerCase().includes(r)).forEach(t=>{const r=e.createElement("div");r.className="activity-log-entry",r.textContent=t.message,n.appendChild(r)})}function a(t){if(t&&t.path){r=t.path;const n=e.getElementById("activity-log-path");n&&(n.textContent=`Log file: ${r}`)}}function s(n,r=!0){if("string"!=typeof n||""===n.trim())return;const s=n.trim();i.unshift({message:s}),o(e.getElementById("activity-log-search")?.value||""),r&&t&&t.append(s).then(a)}function l(t){s(`[${(new Date).toISOString()}] [GUI][UI] ${t}`)}function h(t,e){l(`Error context=${t} details="${e&&"object"==typeof e&&"message"in e?e.message:String(e)}"`)}const u=n.log.bind(n);return n.log=(...t)=>{u(...t);const e=function(t){return t.map(t=>function(t){if(t instanceof Error)return t.stack||t.message;if("string"==typeof t)return t;if(void 0===t)return"undefined";try{return JSON.stringify(t)}catch(e){return String(t)}}(t)).join(" ")}(t);e&&function(t){s(`[${(new Date).toISOString()}] [Console][UI] ${t}`)}(e)},{initializeActivityLog:async function(){const n=e.getElementById("activity-log-path"),a=e.getElementById("activity-log-panel"),u=e.getElementById("activity-log-search"),c=e.getElementById("log-btn"),d=e.getElementById("close-log-btn");if(t)try{const[e,a]=await Promise.all([t.getPath(),t.getEntries()]);Array.isArray(a)&&(i.splice(0),a.forEach(t=>{i.push({message:t})}),o()),e&&(r=e,n.textContent=`Log file: ${r}`),t.onEntry(t=>{s(t,!1)})}catch(t){h("activity-log-init",t)}c.addEventListener("click",()=>{"block"===a.style.display?a.style.display="none":a.style.display="block"}),d.addEventListener("click",()=>{a.style.display="none"}),u.addEventListener("input",t=>{o(t.target.value)}),l("PacketSnitch UI session initialized")},writeLogEntry:l,writeBackendErrorLogEntry:function(t){s(`[${(new Date).toISOString()}] [Console][Backend] ${t}`)},logErrorEntry:h}}}},2375(t){t.exports={PANEL_MODULES:["summary-panel","data-panel","stats-panel","list-panel","data-tools-panel","crypt-panel","keystore-panel"]}},7534(t){t.exports={initializeContextMenu:function({documentRef:t=document,windowRef:e=window,convertContextMenuEl:n,getPasteTargetFromContextTarget:r,getTrimmedSelectionText:i,getConversionTextFromTarget:o,detectConvertibleFormats:a,buildContextFilterQueries:s,getCookieJarTextForContextTarget:l,showConvertContextMenu:h,hideConvertContextMenu:u}){t.addEventListener("contextmenu",t=>{const e=t.target,n=r(e),u=i(),c=e?.closest("#packetInfoPane, #packetPayloadPane, #stats_box, #list_box, #notes_box, #data_tools_box, #crypt_box, #keystore_box, #sidedata"),d=Boolean(e?.closest("#hexg"));let f="",p=[];c&&(f=o(e),(f||d)&&(p=f?a(f):[]));const m=c?s(e,u,f):{},g=c?l(e):"";t.preventDefault(),h(t.clientX,t.clientY,f,p,{isHexViewTarget:d,target:e,pasteTarget:n,showCopySelection:Boolean(u),showPaste:Boolean(n),showSaveJson:!0,filterQueries:m,cookieJarText:g,showManualKeystoreUri:Boolean(c)})}),t.addEventListener("click",()=>{u()}),t.addEventListener("mousedown",t=>{0===t.button&&(n.hidden||n.contains(t.target)||u())},!0),t.addEventListener("scroll",()=>{u()}),e.addEventListener("resize",()=>{u()}),t.addEventListener("keydown",t=>{"Escape"!==t.key||n.hidden||u()})}}},4746(t,e,n){t.exports=n(1423)},5864(t,e,n){var r=n(3273).Buffer;const i=n(1027),o=/^[\x09\x0A\x0D\x20-\x7E]*$/;t.exports={id:"crypt",createCryptPanel:function({constants:t,getCapturedPackets:e,getJsonCapture:n,setActiveMainTab:a,setActiveCryptSubtab:s,statusUpdate:l,writeLogEntry:h,doError:u,logErrorEntry:c,filterInputEl:d,syncFilterHighlight:f,runFilterQuery:p,addSessionKeystoreEntry:m,getFirstLineOrFallback:g,sendDecryptedToConv:y}){const{MAIN_TAB_CRYPT:b,CRYPT_SSL_SUBTAB:v,CRYPT_PGP_SUBTAB:A,CRYPT_OPENSSH_SUBTAB:w,SESSION_KEYCHAIN_LABEL:E,STRICT_IPV4_REGEX:M}=t;let C=[],_=-1,x=null;function B(t,e,n,r){const i=(t||"").trim();if(!i)return`No ${e.toLowerCase()} loaded.`;const o=i.split(/\r?\n/),a=i.match(/-----BEGIN ([^-]+)-----/),s=i.match(/-----END ([^-]+)-----/),l=a?a[1]:"Plain text",h=!r||a&&r.test(l);return[`${e} loaded from ${n}.`,`Bytes: ${(new TextEncoder).encode(i).length}`,`Lines: ${o.length}`,`Detected block type: ${l}`,a&&s?`PEM boundaries: ${a[1]} ... ${s[1]}`:"PEM boundaries not detected",h?"Format check: looks valid for this input type":"Format check: unexpected block type for this input"].join("\n")}function k(t){const e=document.getElementById("crypt-encountered-details");if(!t)return void(e.textContent="Select an encountered SSL/TLS item to inspect.");const n=t.encryptedWith.length?t.encryptedWith.join(", "):"Unavailable";e.textContent=[`Host: ${t.host}`,`Packet: ${t.packetIndex}`,`Protocol: ${t.protocol}`,`Path: ${t.srcIp}:${t.srcPort} -> ${t.dstIp}:${t.dstPort}`,`Encrypted: ${t.encrypted}`,`SSL/TLS Version: ${t.sslVersion}`,`Algorithms: ${n}`].join("\n")}function S(){const t=document.getElementById("crypt-encountered-list");if(C=function(){const t=[],n=e();if(!n||"object"!=typeof n||!n.Host)return t;for(const e of Object.keys(n.Host)){const r=n.Host[e];Array.isArray(r)&&r.forEach(n=>{const r=n?.["Packet Info"],i=n?.["Extra Info"],o=i?.Traits?.["Server Info"],a=o?.["Encryption Data"];if(!r||!o||!a||"N/A"===a)return;const s=r.Protocol||"Unknown",l=r[s]||{},h=a["Encrypted With"],u=Array.isArray(h)?h.filter(Boolean):h?[String(h)]:[];t.push({host:e,packetIndex:r.Index??"?",protocol:s,srcIp:r?.IP?.["Source IP"]??"N/A",dstIp:r?.IP?.["Destination IP"]??"N/A",srcPort:l?.["Source port"]??"N/A",dstPort:l?.["Destination port"]??"N/A",encrypted:o.Encrypted??"Unknown",sslVersion:a["SSL Version"]??"Unknown",sslCert:a["SSL Cert"]??"",encryptedWith:u})})}return t.sort((t,e)=>{const n=Number(t.packetIndex),r=Number(e.packetIndex);return Number.isFinite(n)&&Number.isFinite(r)?n-r:String(t.packetIndex).localeCompare(String(e.packetIndex))})}(),t.replaceChildren(),_=-1,0===C.length){const e=document.createElement("option");return e.textContent="No SSL/TLS encryption encountered in loaded capture.",e.disabled=!0,t.appendChild(e),k(null),void T()}C.forEach((e,n)=>{const r=document.createElement("option");r.value=String(n);const i=e.encryptedWith.length?e.encryptedWith[0]:"Unknown cipher";r.textContent=`#${e.packetIndex} ${e.sslVersion} ${e.srcIp}:${e.srcPort} -> ${e.dstIp}:${e.dstPort} (${i})`,t.appendChild(r)}),t.selectedIndex=0,_=0,k(C[0]),T()}function I(t){const e=document.getElementById("crypt-send-decrypted-conv-btn");e&&(e.disabled=!t)}function T(){const t=document.getElementById("crypt-decrypt-preview");t&&(t.textContent="No decrypted TLS/SSL output yet."),x=null,I(!1)}function P(t){s(t);const e=t===v,n=t===A,r=t===w;document.getElementById("crypt-subtab-ssl").classList.toggle("active",e),document.getElementById("crypt-subtab-pgp").classList.toggle("active",n),document.getElementById("crypt-subtab-openssh").classList.toggle("active",r),document.getElementById("crypt-ssl-panel").hidden=!e,document.getElementById("crypt-pgp-panel").hidden=!n,document.getElementById("crypt-openssh-panel").hidden=!r}function R(t,e){const n=document.getElementById("crypt-cert-input"),r=document.getElementById("crypt-cert-preview"),i=(t||"").trim();n.value=i,r.textContent=B(i,"Certificate",e,/CERTIFICATE/i),i&&(l(`Status: Certificate loaded from ${e}`),h(`Crypt certificate loaded source="${e}"`),e!==E&&m({type:"certificate",label:g("crypt-cert-preview",`Certificate-${(new Date).toISOString()}`),source:`cert-tab ${e}`,content:i,summary:"Imported into cert tab"}))}return{setCryptSubtab:P,showCryptWorkspace:function(t=v){if(a(b),""===n())return l("Status: No JSON file loaded, please upload a file first"),void u("Please upload a JSON file before accessing crypt tools.");l("Status: Displaying crypt workspace"),h("User opened crypt workspace"),document.getElementById("prev-btn").style.display="none",document.getElementById("next-btn").style.display="none",document.getElementById("packetInfoPane").style.display="none",document.getElementById("packetPayloadPane").style.display="none",document.getElementById("summary_box").style.display="none",document.getElementById("stats_box").style.display="none",document.getElementById("data_tools_box").style.display="none",document.getElementById("list_box").style.display="none",document.getElementById("notes_box").style.display="none",document.getElementById("keystore_box").style.display="none",document.getElementById("rightside").style.display="none",document.getElementById("crypt_box").style.display="flex",P(t),S()},refreshCryptEncounteredEntries:S,readCryptTextFile:function(t,e){const n=t.files?.[0];if(!n)return;const r=new FileReader;r.onload=()=>e(String(r.result||""),`file ${n.name}`),r.onerror=t=>{c("crypt-file-read",t),u("Could not read selected crypt file.")},r.readAsText(n)},applyCryptCertificateText:R,applyCryptPrivateKeyText:function(t,e){const n=document.getElementById("crypt-key-input"),r=document.getElementById("crypt-key-preview"),i=(t||"").trim();n.value=i,r.textContent=B(i,"Private key",e,/(PRIVATE KEY|OPENSSH)/i),i&&(l(`Status: Private key loaded from ${e}`),h(`Crypt private key loaded source="${e}"`),e!==E&&m({type:"private-key",label:g("crypt-key-preview",`Private-key-${(new Date).toISOString()}`),source:`cert-tab ${e}`,content:i,summary:"Imported into cert tab"}))},applyCryptFilterForActiveEntry:function(){if(_<0||!C[_])return void l("Status: Select an encountered SSL/TLS entry first");const t=C[_];if(!M.test(String(t.srcIp||""))||!M.test(String(t.dstIp||"")))return void l("Status: Cannot build filter query for non-IPv4 packet endpoints");const e=`ip.src.addr: ${t.srcIp} && ip.dst.addr: ${t.dstIp}`;d.value=e,f(),p(e),h(`Crypt filter applied query="${e}"`)},loadEncounteredCertificateIntoCrypt:function(){if(_<0||!C[_])return void l("Status: Select an encountered SSL/TLS entry first");const t=C[_];t.sslCert&&"Not available"!==t.sslCert?R(String(t.sslCert),`encountered packet #${t.packetIndex}`):l("Status: No certificate text available for selected entry")},selectEncounteredEntry:function(t){Number.isFinite(t)&&C[t]&&(_=t,k(C[t]),T())},decryptActiveEntryWithLoadedKey:function(){if(_<0||!C[_])return void l("Status: Select an encountered SSL/TLS entry first");const t=String(document.getElementById("crypt-key-input")?.value||"").trim();if(!t)return void l("Status: Load a private key from keychain or file first");const n=String(document.getElementById("crypt-cert-input")?.value||"").trim(),a=function(t,e){const n=String(t||"").trim();if(!n)return{matched:!0};if("function"!=typeof i.X509Certificate||"function"!=typeof i.createPublicKey)return{matched:null,reason:"Certificate/key pair validation is unavailable in this runtime."};try{return{matched:i.createPublicKey(new i.X509Certificate(n).publicKey).export({type:"spki",format:"pem"}).toString()===i.createPublicKey(e).export({type:"spki",format:"pem"}).toString()}}catch(t){return c("crypt-cert-key-check",t),{matched:null,reason:"Certificate/key pair validation failed and was skipped."}}}(n,t);n&&!1===a.matched&&l("Status: Loaded certificate does not match private key (continuing with key)"),n&&null===a.matched&&a.reason&&h(`Crypt cert/key check skipped: ${a.reason}`);const s=C[_],d=function(t){const n=e()?.Host?.[t.host];if(!Array.isArray(n))return"";const r=n.find(e=>{const n=e?.["Packet Info"]?.Index;return String(n)===String(t.packetIndex)});return String(r?.["Packet Info"]?.["Raw data"]?.Payload?.["Hex Encoded"]||"")}(s).replace(/[^0-9A-Fa-f]/g,"");if(d)if(d.length%2==0)try{const e=function(t,e){const n=function(t){const e=[t];if(t.length>5&&t[0]>=20&&t[0]<=23){const n=t[3]<<8|t[4],r=5+n;if(n>0&&r<=t.length){const n=t.subarray(5,r);if(e.push(n),n.length>6&&16===n[0]){const t=n.subarray(4);if(e.push(t),t.length>2){const n=t[0]<<8|t[1];n>0&&n+2<=t.length&&e.push(t.subarray(2,2+n))}}}}return e}(t),r=[{name:"RSA-OAEP-SHA256",options:{padding:i.constants.RSA_PKCS1_OAEP_PADDING,oaepHash:"sha256"}},{name:"RSA-PKCS1-v1_5",options:{padding:i.constants.RSA_PKCS1_PADDING}}],o=[];for(const t of n)for(const n of r)try{return i.privateDecrypt({key:e,...n.options},t)}catch(t){o.push(`${n.name}: ${t.message}`)}const a=[...new Set(o)].slice(0,8).join("; ");throw new Error(`No TLS decrypt attempt succeeded with the loaded key (${a})`)}(r.from(d,"hex"),t);!function(t,e){const n=document.getElementById("crypt-decrypt-preview"),r=e.toString("hex"),i=e.toString("utf8"),a=o.test(i)?i.slice(0,1024):i.slice(0,1024).replace(/[^\x09\x0A\x0D\x20-\x7E]/g,".");n.textContent=[`Decrypted payload for packet #${t.packetIndex}`,`Bytes: ${e.length}`,"","ASCII / UTF-8 preview:",a||"(no printable output)","","Hex:",r||"(empty)"].join("\n"),x={sourceLabel:`packet #${t.packetIndex}`,hexValue:r,utf8Value:i},I(!0)}(s,e),l(`Status: Decrypted TLS/SSL payload for packet #${s.packetIndex}`),h(`Crypt decrypted payload packet_index=${s.packetIndex}`)}catch(t){T(),c("crypt-tls-decrypt",t),u("Could not decrypt selected TLS/SSL payload with the loaded private key.")}else u("Selected payload is not valid hex data.");else l("Status: Selected packet has no payload to decrypt")},sendDecryptedPayloadToConvTab:function(){x?(y(x),l(`Status: Sent decrypted payload from ${x.sourceLabel} to Conv`),h(`Crypt decrypted payload sent to Conv source="${x.sourceLabel}"`)):l("Status: Decrypt data first before sending to Conv")},clearCryptDecryptionOutput:T}}}},3508(t){t.exports={createDataPanel:function(t){const{constants:e,documentRef:n,statusUpdate:r,writeLogEntry:i,doError:o,getIsFileLoaded:a,getJsonCapture:s,getHostFilterValue:l,getHostsList:h,getFilterInputValue:u,getFilteredPackets:c,getPacketsForHost:d,setActiveMainTab:f,handlePacketNavigation:p,getIndex:m,setIndex:g,setActivePacketCursor:y,setCurrentIp:b,setCurrentPacketKey:v,getCurrentPacketKey:A,syncBookmarkDropdown:w,infoPanel:E,popHexGrid:M,populateDataTypes:C}=t,{MAIN_TAB_DATA:_}=e;function x(t){const e=d(),n=m();if(!e||!e[n])return;const r=e[n]["Packet Info"],o=l()||"Unknown host",a=r?.IP?.["Source IP"]||"Unknown source",s=r?.IP?.["Destination IP"]||"Unknown destination";i(`Displayed packet action=${t} host=${o} packet=${r?.Index??n} source=${a} destination=${s} timeframe=${r?.["Packet Timestamp"]||"Unknown time"}`)}function B(){if(f(_),r(`Status: Displaying packet information for ${l()}`),""==s())return r("Status: No JSON file loaded, please upload a file first"),void o("No file loaded! Upload one of JSON or PCAP first!");n.getElementById("prev-btn").style.display="block",n.getElementById("next-btn").style.display="block",n.getElementById("welcome").style.display="none",""==n.getElementById("host_filter").value&&(n.getElementById("host_filter").value=h()[1]);const t=""!==u().trim(),e=c(),i=d(),a=Array.isArray(e)&&(t||i===e);p(a?"filtered":"first-load")}function k(){if(r("Status: Displaying capture analysis summary"),!a())return r("Status: No JSON file loaded, please upload a file first"),void o("No file loaded! Upload one of JSON or PCAP first!");let t=m();const e=d();if(t>0){t-=1,g(t),y(t);const n=e[t]["Packet Info"].IP["Source IP"],r=n+":"+e[t]["Packet Info"].Index;b(n),v(r),w(r),E(e),M(e[t]["Packet Info"]["Raw data"].Payload["Hex Encoded"]),C(e),x("prev")}}function S(){if(r("Status: Displaying capture analysis summary"),!a())return r("Status: No JSON file loaded, please upload a file first"),void o("No file loaded! Upload one of JSON or PCAP first!");let t=m();const e=d();if(t<e.length-1){t+=1,g(t),y(t);const n=e[t]["Packet Info"].IP["Source IP"],r=n+":"+e[t]["Packet Info"].Index;b(n),v(r)}w(A()),E(e),M(e[t]["Packet Info"]["Raw data"].Payload["Hex Encoded"]),C(e),x("next")}return{initializeDataView:B,bindDataPanelEvents:function(){n.getElementById("data-btn").addEventListener("click",()=>{a()?B():o("Please upload a JSON file before accessing host data.")}),n.getElementById("prev-btn").addEventListener("click",k),n.getElementById("next-btn").addEventListener("click",S)},logCurrentPacketDisplay:x}}}},9738(t,e,n){const r=n(5654),{sha3_256:i,sha3_512:o}=n(4862),a=n(8725),s=new TextEncoder,l=/^[0-9a-fA-F]{2}$/,h="conversions",u="hashes",c="decodes",d=[h,u,c],f=["data-tools-md5-output","data-tools-sha1-output","data-tools-sha256-output","data-tools-sha384-output","data-tools-sha512-output","data-tools-sha3-256-output","data-tools-sha3-512-output","data-tools-ripemd160-output","data-tools-whirlpool-output"];let p=h,m=null,g=()=>{},y=()=>{},b=()=>{};function v(t,e){if(!e||""===e.trim())throw new Error("Enter input data first.");if("hex"===t){const t=e.replace(/0x/gi,"").replace(/[\s,:;-]+/g,"").trim();if(!t)throw new Error("No hex bytes were found.");if(!/^[0-9a-fA-F]+$/.test(t))throw new Error("Hex input can only contain 0-9 and A-F.");if(t.length%2!=0)throw new Error("Hex input must contain an even number of characters.");const n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=parseInt(t.slice(e,e+2),16);return n}if("binary"===t){const t=e.replace(/\s+/g,"");if(!t)throw new Error("No binary bits were found.");if(!/^[01]+$/.test(t))throw new Error("Binary input can only contain 0 and 1.");if(t.length%8!=0)throw new Error("Binary input must be grouped into full 8-bit bytes.");const n=new Uint8Array(t.length/8);for(let e=0;e<t.length;e+=8)n[e/8]=parseInt(t.slice(e,e+8),2);return n}if("base64"===t){const t=e.trim().replace(/^data:[^;]+;base64,/i,"").replace(/\s+/g,"");if(!t)throw new Error("No base64 content was found.");let n="";try{n=atob(t)}catch{throw new Error("Invalid base64 input.")}const r=new Uint8Array(n.length);for(let t=0;t<n.length;t++)r[t]=n.charCodeAt(t);return r}if("decimal"===t){const t=e.split(/[\s,]+/).filter(Boolean);if(!t.length)throw new Error("No decimal byte values were found.");const n=t.map(t=>{const e=Number(t);if(!/^\d+$/.test(t)||e>255)throw new Error("Each decimal value must be a non-negative integer between 0 and 255.");return e});return Uint8Array.from(n)}return(new TextEncoder).encode(e)}function A(t){return[...t].map(t=>t>=32&&t<=126?String.fromCharCode(t):".").join("")}function w(t){const e=r.lib.WordArray.create(t),n=function(t){let e="";for(let n=0;n<t.length;n+=32768){const r=t.subarray(n,n+32768);e+=String.fromCharCode(...r)}return e}(t);document.getElementById("data-tools-md5-output").value=r.MD5(e).toString(r.enc.Hex),document.getElementById("data-tools-sha1-output").value=r.SHA1(e).toString(r.enc.Hex),document.getElementById("data-tools-sha256-output").value=r.SHA256(e).toString(r.enc.Hex),document.getElementById("data-tools-sha384-output").value=r.SHA384(e).toString(r.enc.Hex),document.getElementById("data-tools-sha512-output").value=r.SHA512(e).toString(r.enc.Hex),document.getElementById("data-tools-sha3-256-output").value=i(t),document.getElementById("data-tools-sha3-512-output").value=o(t),document.getElementById("data-tools-ripemd160-output").value=r.RIPEMD160(e).toString(r.enc.Hex);const s=t.length>0?a.encSync(n,"hex"):"";document.getElementById("data-tools-whirlpool-output").value=s}function E(){document.getElementById("data-tools-hex-output").value="",document.getElementById("data-tools-binary-output").value="",document.getElementById("data-tools-decimal-output").value="",document.getElementById("data-tools-decimal-integer-output").value="",document.getElementById("data-tools-ascii-output").value="",document.getElementById("data-tools-base64-output").value="",document.getElementById("data-tools-byte-length").textContent="Byte Length: 0",document.getElementById("data-tools-mime-type").textContent="MIME Type: Unknown",document.getElementById("data-tools-entropy").textContent="Shannon Entropy: 0.00 (Low)",function(){document.getElementById("data-tools-hash-input-reading").value="";for(const t of f)document.getElementById(t).value=""}(),function(){const t=document.getElementById("data-tools-proto-output");t&&(t.innerHTML="")}()}function M(t){const e=new TextDecoder("utf-8",{fatal:!1}).decode(t).split(/\r?\n/);if(!e.length)return null;const n=e[0].trim(),r=n.match(/^([A-Z]+)\s+(\S+)\s+(HTTP\/[\d.]+)$/),i=n.match(/^(HTTP\/[\d.]+)\s+(\d{3})\s*(.*)/);if(!r&&!i)return null;const o=e.findIndex((t,e)=>e>0&&""===t.trim()),a=e.slice(1,o>0?o:e.length),s={};a.forEach(t=>{const e=t.indexOf(":");e>0&&(s[t.slice(0,e).trim()]=t.slice(e+1).trim())});const l=[];if(r?(l.push({name:"Type",value:"Request"},{name:"Method",value:r[1]},{name:"URL",value:r[2]},{name:"Version",value:r[3]}),["Host","User-Agent","Content-Type","Content-Length","Accept","Accept-Encoding","Connection","Authorization","Referer","Cookie"].forEach(t=>{s[t]&&l.push({name:t,value:s[t]})})):(l.push({name:"Type",value:"Response"},{name:"Version",value:i[1]},{name:"Status Code",value:i[2]},{name:"Status Message",value:i[3]||"—"}),["Server","Content-Type","Content-Length","Content-Encoding","Transfer-Encoding","Connection","Location","Set-Cookie","Cache-Control","Date"].forEach(t=>{s[t]&&l.push({name:t,value:s[t]})})),o>0&&o<e.length-1){const t=e.slice(o+1).join("\n").trim();t&&l.push({name:"Body (preview)",value:t.length>200?t.slice(0,200)+"…":t})}return{protocol:"HTTP",fields:l}}function C(t){const e=document.getElementById("data-tools-proto-select"),n=e?e.value:"auto";let r=n;"auto"===r&&(r=function(t){const e=new TextDecoder("utf-8",{fatal:!1}).decode(t.slice(0,256));if(/^SSH-/.test(e))return"ssh";if(/^(GET|POST|PUT|DELETE|HEAD|OPTIONS|PATCH|CONNECT|TRACE)\s/.test(e)||/^HTTP\/[\d.]+ \d{3}/.test(e))return"http";if(/^(HELO|EHLO|MAIL FROM|RCPT TO|DATA|QUIT)\b/i.test(e)||/^\d{3}[\s-]/.test(e))return"smtp";if(/^\+OK/.test(e)||/^-ERR/.test(e)||/^(USER|PASS|STAT|LIST|RETR|DELE|QUIT)\b/i.test(e))return"pop3";if(/^\* /.test(e)||/^\+ /.test(e)||/^\S+ (OK|NO|BAD|PREAUTH|BYE)\b/i.test(e)||/^\S+ (SELECT|LOGIN|FETCH|AUTHENTICATE)\b/i.test(e))return"imap";const n=new Set([240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]);for(let e=0;e+1<t.length;e++)if(255===t[e]&&n.has(t[e+1]))return"telnet";return null}(t));let i=null;switch(r){case"http":i=M(t);break;case"telnet":i=function(t){const e={0:"Binary",1:"Echo",3:"Suppress Go Ahead",5:"Status",24:"Terminal Type",31:"Window Size",32:"Terminal Speed",34:"Linemode",39:"New Environment"},n=[];let r="",i=0,o=!1;for(;i<t.length;)if(255===t[i]){if(o=!0,i++,i>=t.length)break;const r=t[i++];if(251===r||252===r||253===r||254===r){if(i<t.length){const o=t[i++],a=251===r?"WILL":252===r?"WONT":253===r?"DO":"DONT";n.push(`${a} ${e[o]??`Option ${o}`}`)}}else if(250===r)for(;i<t.length;){if(255===t[i]&&i+1<t.length&&240===t[i+1]){i+=2;break}i++}}else{const e=t[i++];e>=32&&e<127?r+=String.fromCharCode(e):10===e?r+="\n":13===e&&(r+="\r")}if(!o&&!r.trim())return null;const a=[];if(n.length&&a.push({name:"Negotiations",value:n.join(", ")}),r.trim()){const t=r.trim();a.push({name:"Text",value:t.length>500?t.slice(0,500)+"…":t})}return a.length?{protocol:"Telnet",fields:a}:null}(t);break;case"ssh":i=function(t){const e=new TextDecoder("utf-8",{fatal:!1}).decode(t.slice(0,512)),n=e.match(/^SSH-([\S]+)\r?\n/);if(!n)return null;const r=n[1],i=r.indexOf("-"),o=[{name:"Protocol Version",value:i>=0?r.slice(0,i):r},{name:"Software Version",value:i>=0?r.slice(i+1):"—"}],a=e.indexOf("\n");return a>0&&t.length>a+1&&o.push({name:"Additional Data",value:t.length-a-1+" bytes (key exchange)"}),{protocol:"SSH / OpenSSH",fields:o}}(t);break;case"pop3":i=function(t){const e=new TextDecoder("utf-8",{fatal:!1}).decode(t).split(/\r?\n/).filter(t=>t.trim());if(!e.length)return null;const n=new Set(["USER","PASS","STAT","LIST","RETR","DELE","NOOP","RSET","QUIT","APOP","TOP","UIDL"]),r=[];let i=!1;for(const t of e){if(t.startsWith("+OK")){r.push({name:"Response",value:"+OK"});const e=t.slice(3).trim();e&&r.push({name:"Message",value:e}),i=!0}else if(t.startsWith("-ERR")){r.push({name:"Response",value:"-ERR"});const e=t.slice(4).trim();e&&r.push({name:"Error",value:e}),i=!0}else{const e=t.split(/\s+/),o=e[0].toUpperCase();n.has(o)&&(r.push({name:"Command",value:o}),e.length>1&&r.push({name:"Argument",value:e.slice(1).join(" ")}),i=!0)}if(r.length>=10)break}return i?{protocol:"POP3",fields:r}:null}(t);break;case"imap":i=function(t){const e=new TextDecoder("utf-8",{fatal:!1}).decode(t).split(/\r?\n/).filter(t=>t.trim());if(!e.length)return null;const n=new Set(["OK","NO","BAD","PREAUTH","BYE"]),r=new Set(["CAPABILITY","NOOP","LOGOUT","AUTHENTICATE","LOGIN","SELECT","EXAMINE","CREATE","DELETE","RENAME","SUBSCRIBE","UNSUBSCRIBE","LIST","LSUB","STATUS","APPEND","CHECK","CLOSE","EXPUNGE","SEARCH","FETCH","STORE","COPY","UID","IDLE"]),i=[];let o=!1;for(const t of e){if(t.startsWith("* ")){const e=t.slice(2).trim();i.push({name:"Untagged",value:e.length>100?e.slice(0,100)+"…":e}),o=!0}else if(t.startsWith("+ "))i.push({name:"Continuation",value:t.slice(2).trim()}),o=!0;else{const e=t.match(/^(\S+)\s+(\S+)\s*(.*)/);if(e){const t=e[1],a=e[2].toUpperCase(),s=e[3];if(n.has(a)){const e=`${a} ${s}`.trim();i.push({name:`[${t}] Status`,value:e.length>100?e.slice(0,100)+"…":e}),o=!0}else r.has(a)&&(i.push({name:`[${t}] Command`,value:a}),s&&i.push({name:"Arguments",value:s.length>100?s.slice(0,100)+"…":s}),o=!0)}}if(i.length>=12)break}return o?{protocol:"IMAP",fields:i}:null}(t);break;case"smtp":i=function(t){const e=new TextDecoder("utf-8",{fatal:!1}).decode(t).split(/\r?\n/).filter(t=>t.trim());if(!e.length)return null;const n=new Set(["HELO","EHLO","MAIL","RCPT","DATA","RSET","VRFY","EXPN","NOOP","QUIT","AUTH","STARTTLS"]),r=[];let i=!1;for(const t of e){const e=t.match(/^(\d{3})([\s-])(.*)/);if(e){const t=`Response ${e[1]}${"-"===e[2]?" (cont.)":""}`;r.push({name:t,value:e[3]}),i=!0}else{const e=t.split(/\s+/),o=e[0].toUpperCase();if(n.has(o)){if(r.push({name:"Command",value:o}),e.length>1){const t=e.slice(1).join(" ");r.push({name:"Argument",value:t.length>100?t.slice(0,100)+"…":t})}i=!0}}if(r.length>=12)break}return i?{protocol:"SMTP",fields:r}:null}(t);break;default:r=null}!function(t,e,n){const r=document.getElementById("data-tools-proto-output");if(!r)return;if(m=t||null,r.innerHTML="",!t){const t=document.createElement("span");return t.className="data-tools-proto-none",t.textContent="auto"===e?"No known protocol detected":`Could not decode as ${(n||e).toUpperCase()}`,void r.appendChild(t)}const i=document.createElement("table");i.className="data-tools-proto-table";const o=document.createElement("tr"),a=document.createElement("th");a.textContent=`${t.protocol} Field`;const s=document.createElement("th");s.textContent="Value",o.appendChild(a),o.appendChild(s),i.appendChild(o),t.fields.forEach(t=>{const e=document.createElement("tr"),n=document.createElement("td");n.textContent=t.name;const r=document.createElement("td");r.textContent=t.value,e.appendChild(n),e.appendChild(r),i.appendChild(e)}),r.appendChild(i)}(i,n,r)}function _(t){p=t;const e=t===h,n=t===u,r=t===c;document.getElementById("conv-subtab-conversions").classList.toggle("active",e),document.getElementById("conv-subtab-hashes").classList.toggle("active",n),document.getElementById("conv-subtab-decodes").classList.toggle("active",r),document.getElementById("conv-conversions-panel").hidden=!e,document.getElementById("conv-hashes-panel").hidden=!n,document.getElementById("conv-decodes-panel").hidden=!r}t.exports={id:"data-tools",initConvPanel:function({writeLogEntry:t,statusUpdate:e,setActiveMainTab:n}){g=t,y=e,b=n},CONV_CONVERSIONS_SUBTAB:h,CONV_HASHES_SUBTAB:u,CONV_DECODES_SUBTAB:c,VALID_CONV_SUBTABS:d,DATA_TOOLS_CONTEXT_BASE64_MIN_LENGTH:12,DATA_TOOLS_TEXT_MIME_PRINTABLE_THRESHOLD:.9,DATA_TOOLS_ENTROPY_HIGH_THRESHOLD:6.8,DATA_TOOLS_ENTROPY_MEDIUM_THRESHOLD:4.5,DATA_TOOLS_MAX_DECIMAL_INTEGER_BYTES:4096,getActiveConvSubtab:function(){return p},getActiveDataToolsProtoResult:function(){return m},parseDataToolsInput:v,bytesToPrintableAscii:A,decodeHttpFromBytes:M,resetDataToolsOutputs:E,runProtoDecoder:C,runDataToolsConversion:function(){const t=document.getElementById("data-tools-input"),e=document.getElementById("data-tools-format"),n=document.getElementById("data-tools-error");try{const r=v(e.value,t.value),i=[...r].map(t=>t.toString(16).padStart(2,"0").toUpperCase()).join(" "),o=[...r].map(t=>t.toString(2).padStart(8,"0")).join(" "),a=[...r].join(" "),s=A(r),l=function(t){let e="";return t.forEach(t=>{e+=String.fromCharCode(t)}),btoa(e)}(r),h=function(t){if(!t.length)return 0;const e=new Array(256).fill(0);t.forEach(t=>{e[t]+=1});let n=0;return e.forEach(e=>{if(!e)return;const r=e/t.length;n-=r*Math.log2(r)}),n}(r),u=function(t){return t>=6.8?"High":t>=4.5?"Medium":"Low"}(h),c=r.length>4096?"Input exceeds 4096 bytes for decimal integer display":function(t){let e=0n;return t.forEach(t=>{e=(e<<8n)+BigInt(t)}),e.toString(10)}(r);document.getElementById("data-tools-hex-output").value=i,document.getElementById("data-tools-binary-output").value=o,document.getElementById("data-tools-decimal-output").value=a,document.getElementById("data-tools-decimal-integer-output").value=c,document.getElementById("data-tools-ascii-output").value=s,document.getElementById("data-tools-base64-output").value=l,document.getElementById("data-tools-byte-length").textContent=`Byte Length: ${r.length}`,document.getElementById("data-tools-mime-type").textContent=`MIME Type: ${function(t){if(!t||!t.length)return"application/octet-stream";const e=e=>e.every((e,n)=>t[n]===e);if(e([137,80,78,71]))return"image/png";if(e([255,216,255]))return"image/jpeg";if(e([71,73,70,56]))return"image/gif";if(e([37,80,68,70]))return"application/pdf";if(e([80,75,3,4]))return"application/zip";if(e([31,139]))return"application/gzip";if(e([127,69,76,70]))return"application/x-elf";const n=(new TextDecoder).decode(t),r=n.trim();if(r.startsWith("{")||r.startsWith("["))try{return JSON.parse(r),"application/json"}catch{}const i=[...n].filter(t=>{const e=t.charCodeAt(0);return e>=32&&e<=126||"\n"===t||"\r"===t||"\t"===t}).length;return n.length>0&&i/n.length>.9?"text/plain; charset=utf-8":"application/octet-stream"}(r)}`,document.getElementById("data-tools-entropy").textContent=`Shannon Entropy: ${h.toFixed(2)} (${u})`,n.textContent="",function(t){document.getElementById("data-tools-hash-input-reading").value=function(t){return[...t].map(t=>92===t?"\\\\":10===t?"\\n":13===t?"\\r":9===t?"\\t":t>=32&&t<=126?String.fromCharCode(t):`\\x${t.toString(16).padStart(2,"0").toUpperCase()}`).join("")}(t)}(r),w(r),C(r)}catch(t){E(),n.textContent=t&&"object"==typeof t&&"message"in t?t.message:String(t)}},runDataToolsHashesFromInput:function(){w(function(t){const e=[];let n=0;const r=r=>{r<=n||e.push(...s.encode(t.slice(n,r)))};for(let i=0;i<t.length;i++){if("\\"!==t[i])continue;r(i);const o=t[i+1];"n"===o?(e.push(10),i+=1):"r"===o?(e.push(13),i+=1):"t"===o?(e.push(9),i+=1):"\\"===o?(e.push(92),i+=1):"x"===o&&i+3<t.length&&l.test(t.slice(i+2,i+4))?(e.push(parseInt(t.slice(i+2,i+4),16)),i+=3):e.push(92),n=i+1}return r(t.length),new Uint8Array(e)}(document.getElementById("data-tools-hash-input-reading").value))},showDataTools:function(t=h){b("data-tools"),y("Status: Displaying data conversion tools"),g("User opened data conversion tools view"),document.getElementById("packetInfoPane").style.display="none",document.getElementById("packetPayloadPane").style.display="none",document.getElementById("summary_box").style.display="none",document.getElementById("stats_box").style.display="none",document.getElementById("list_box").style.display="none",document.getElementById("crypt_box").style.display="none",document.getElementById("keystore_box").style.display="none",document.getElementById("rightside").style.display="none",document.getElementById("data_tools_box").style.display="flex",_(t)},setConvSubtab:_}},9873(t){t.exports={initializeInstallScreen:function({installapi:t,documentRef:e}){t&&t.checkFirstRun().then(t=>{t&&t.isFirstRun&&function(t,e){const n=e.getElementById("install-screen");if(!n)return;e.getElementById("install-version").textContent="Version "+t.version;const r=e.getElementById("install-file-list");r.innerHTML="",t.installedFiles.forEach(t=>{const n=e.createElement("li");n.className=t.exists?"install-file-ok":"install-file-missing",n.textContent=(t.exists?"✓ ":"✗ ")+t.name,t.exists||(n.title="Not found at: "+t.path),r.appendChild(n)});const i=e.getElementById("install-ollama-status");t.ollamaInstalled?(i.textContent="✓ Ollama is installed. LLM summarisation is available.",i.className="install-ok"):(i.textContent="⚠ Ollama is not installed. LLM packet summarisation will be unavailable. Install Ollama from https://ollama.com to enable this feature.",i.className="install-warning"),n.style.display="flex"}(t,e)});const n=e.getElementById("install-continue-btn");n&&n.addEventListener("click",()=>{t?t.dismissFirstRun().then(()=>{e.getElementById("install-screen").style.display="none"}):e.getElementById("install-screen").style.display="none"})}}},8388(t){const e="entries",n="default",r="session",i="persistent",o="session keychain",a=["password","passwd","passphrase","secret","credential","token","authorization","auth","username","user","login","apikey","api_key","api-key","cookie","session","sessionid","set_cookie","set-cookie"],s=["encrypted","length","checksum","version","port","ip","mac","ttl","window","sequence","ack","timestamp","frame","packet"];t.exports={id:"keystore",createKeystorePanel:function({statusUpdate:t,writeLogEntry:l,doError:h,logErrorEntry:u,getCapturedPackets:c,getJsonCapture:d,setActiveMainTab:f,MAIN_TAB_KEYSTORE:p,parseDataToolsInput:m,decodeHttpFromBytes:g,extractCookieJarEntriesFromHttpFields:y,getTrimmedSelectionText:b,hideConvertContextMenu:v,getActiveContextConversionText:A,getApplyCryptCertificateText:w,getApplyCryptPrivateKeyText:E,openExternalUrl:M}){let C=[],_=[],x=r,B=null,k=null,S="unlock",I=null,T=r;function P(){if(window.crypto&&"function"==typeof window.crypto.randomUUID)return window.crypto.randomUUID();if(window.crypto&&"function"==typeof window.crypto.getRandomValues){const t=window.crypto.getRandomValues(new Uint8Array(16)),e=Array.from(t,t=>t.toString(16).padStart(2,"0")).join("");return`${Date.now()}-${e}`}return`${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function R(t){return window.btoa(Array.from(t,t=>String.fromCharCode(t)).join(""))}function L(t){const e=window.atob(t),n=new Uint8Array(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return n}async function N(t){return window.crypto.subtle.importKey("raw",(new TextEncoder).encode(t),{name:"PBKDF2"},!1,["deriveKey"])}async function O(t,e,n){const r="string"==typeof t?await N(t):t;return window.crypto.subtle.deriveKey({name:"PBKDF2",salt:e,iterations:6e5,hash:"SHA-256"},r,{name:"AES-GCM",length:256},!1,[n])}async function j(t,e){const n=await O(e,L(t.salt),"decrypt"),r=await window.crypto.subtle.decrypt({name:"AES-GCM",iv:L(t.iv)},n,L(t.encryptedContent));return(new TextDecoder).decode(new Uint8Array(r))}function q(){return new Promise((t,n)=>{const r=window.indexedDB.open("packetsnitch-crypt-keystore",1);r.onerror=()=>n(r.error),r.onupgradeneeded=()=>{const t=r.result;t.objectStoreNames.contains(e)||t.createObjectStore(e)},r.onsuccess=()=>t(r.result)})}async function D(){try{const r=await q(),i=r.transaction(e,"readonly").objectStore(e),o=await(t=i.get(n),new Promise((e,n)=>{t.onerror=()=>n(t.error),t.onsuccess=()=>e(t.result)}));return r.close(),o||null}catch(t){return u("crypt-keystore-load",t),null}var t}function U(t){if(!t||"object"!=typeof t)return null;const e="string"==typeof t.content?t.content:t.encryptedContent&&t.salt&&t.iv?null:"";return{id:t.id||P(),type:String(t.type||"secret"),label:String(t.label||"Untitled"),source:String(t.source||"manual"),content:e,encryptedContent:t.encryptedContent?String(t.encryptedContent):"",salt:t.salt?String(t.salt):"",iv:t.iv?String(t.iv):"",summary:String(t.summary||""),createdAt:String(t.createdAt||(new Date).toISOString())}}async function z(t,r){const i=await async function(t,e){const n=window.crypto.getRandomValues(new Uint8Array(16)),r=window.crypto.getRandomValues(new Uint8Array(12)),i=await O(e,n,"encrypt"),o=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:r},i,(new TextEncoder).encode(t));return{encryptedContent:R(new Uint8Array(o)),salt:R(n),iv:R(r)}}(JSON.stringify(t),r);await async function(t){try{const r=await q(),i=r.transaction(e,"readwrite");i.objectStore(e).put(t,n),await function(t){return new Promise((e,n)=>{t.oncomplete=()=>e(),t.onerror=()=>n(t.error),t.onabort=()=>n(t.error)})}(i),r.close()}catch(t){u("crypt-keystore-save",t),h("Could not save the persistent local keystore.")}}({schemaVersion:2,encryptedPayload:i.encryptedContent,salt:i.salt,iv:i.iv,updatedAt:(new Date).toISOString()})}function H(){return x===r?_:C}function F(){return x===r?o:"persistent keychain"}function $(t){const e=Z(t);if(!e)return"";try{const t=new URL(e);if("http:"===t.protocol||"https:"===t.protocol)return t.href}catch{return""}return""}function W(t=null){const e=x===i,n=document.getElementById("crypt-save-cert-keystore-btn"),r=document.getElementById("crypt-save-key-keystore-btn"),o=document.getElementById("crypt-save-secret-keystore-btn"),a=document.getElementById("crypt-send-to-persistent-btn"),s=document.getElementById("crypt-delete-keystore-entry-btn"),l=document.getElementById("crypt-open-link-btn");var h;n.disabled=!e,r.disabled=!e,o.disabled=!e,a.disabled=e,s.disabled=!e,l&&(l.disabled=(h=t,!$(h?.content))),document.getElementById("crypt-keystore-unlock-status").textContent=e?"Persistent keychain is unlocked for this app session.":"Session keychain is auto-populated from decodable packet secrets and cert-tab imports."}function Y(t){const e=document.getElementById("crypt-keystore-details");if(!t)return e.textContent=`No entries available in ${F()}.`,void W(null);e.textContent=[`Keychain: ${F()}`,`Type: ${t.type}`,`Label: ${t.label}`,`Source: ${t.source}`,void 0!==t.packetIndex?`Packet: ${t.packetIndex}`:null,`Saved: ${t.createdAt}`,t.summary?`Summary: ${t.summary}`:"Summary: n/a"].filter(Boolean).join("\n"),W(t)}function K(){const t=document.getElementById("crypt-keystore-list"),e=H();if(t.replaceChildren(),!e.length){const e=document.createElement("option");return e.textContent=`No entries in ${F()}.`,e.disabled=!0,t.appendChild(e),void Y(null)}e.forEach((e,n)=>{const r=document.createElement("option");r.value=String(n),r.textContent=`[${e.type}] ${e.label}`,t.appendChild(r)}),t.selectedIndex=0,Y(e[0])}function Z(t){return null==t?"":("string"==typeof t?t:"number"==typeof t?String(t):"").replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g,"").trim()}function V(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=Math.imul(e,16777619);return(e>>>0).toString(16)}function X(t){return String(t||"").trim().replace(/[),.;!?]+$/g,"")}function J(t){const e=String(t||"").toLowerCase();return e.includes("cert")?"certificate":e.includes("private")&&e.includes("key")||e.includes("key")?"private-key":"secret"}function G(t,e,n=""){if(t&&"object"==typeof t)for(const[r,i]of Object.entries(t)){const t=n?`${n}.${r}`:r;i&&"object"==typeof i?G(i,e,t):e(t,i)}}function Q(){const t=[],e=new Set,n=c()?.Host;if(!n||"object"!=typeof n)return t;const r=({type:n="secret",label:r,source:i,content:o,summary:a,packetIndex:s,protocol:l})=>{const h=Z(o);if(!h)return;const u=`${n}|${r}|${V(h)}`;e.has(u)||(e.add(u),t.push({id:P(),type:n,label:r||`${n}-${(new Date).toISOString()}`,source:i||"session-auto",content:h,summary:a||"",packetIndex:s??"?",protocol:l||"Unknown",createdAt:(new Date).toISOString()}))};return Object.entries(n).forEach(([t,e])=>{Array.isArray(e)&&e.forEach(e=>{const n=e?.["Packet Info"]||{},i=n?.Protocol??"Unknown",o=n?.["Transport Layer"]||n?.[i]||{},l=e?.["Extra Info"]||{},h=n?.Index??"?";[o,l].forEach(e=>{G(e,(e,n)=>{const o=Z(n);if(o&&function(t){const e=Z(t);if(!e)return[];const n=/\b[a-z][a-z0-9+.-]*:[^\s<>"']+/gi,r=new Set;let i;for(;null!==(i=n.exec(e));){const t=X(i[0]);if(t)try{const e=new URL(t);e.protocol&&r.add(e.href)}catch{continue}}return Array.from(r)}(o).forEach(n=>{const o=/^https?:\/\//i.test(n)?"url":"uri";r({type:o,label:`${o.toUpperCase()} ${n}`,source:"session-auto-uri",content:n,summary:`Host ${t} packet #${h} ${e}`,packetIndex:h,protocol:i})}),!function(t){if(!t)return!1;const e=t.toLowerCase();return!s.some(t=>e.includes(t))&&a.some(t=>e.includes(t))}(e))return;if(!o)return;const l=function(t){if(!t||!/^basic\s+/i.test(t))return"";const e=t.replace(/^basic\s+/i,"").trim();if(!e)return"";try{const t=window.atob(e);return t.includes(":")?t.trim():""}catch(t){return u("crypt-keystore-basic-auth-decode",t),""}}(o),c=l||o;r({type:J(e),label:`${i} ${e}`,source:"session-auto-decoded",content:c,summary:`Host ${t} packet #${h}`,packetIndex:h,protocol:i})})});const c=n?.["Raw data"]?.Payload?.["Hex Encoded"];if("string"==typeof c&&c.trim())try{const e=m("hex",c),n=g(e);"HTTP"===n?.protocol&&y(n.fields).forEach(e=>{const n=e.indexOf("="),i=(n>=0?e.slice(0,n).trim():"")||`packet-${h}-${V(e)}`;r({type:"cookie",label:`HTTP Cookie ${i}`,source:"session-auto-cookie-jar",content:e,summary:`Host ${t} packet #${h}`,packetIndex:h,protocol:"HTTP"})})}catch(t){u("crypt-keystore-cookie-auto",t)}})}),t.sort((t,e)=>{const n=Number(t.packetIndex),r=Number(e.packetIndex);return Number.isFinite(n)&&Number.isFinite(r)?n-r:String(t.packetIndex).localeCompare(String(e.packetIndex))})}function tt({type:t,label:e,source:n,content:i,summary:o,packetIndex:a}){const s=Z(i);s&&(_.some(n=>n.type===t&&n.label===e&&Z(n.content)===s)||(_.unshift({id:P(),type:t,label:e?.trim()?e.trim():`${t}-${(new Date).toISOString()}`,source:n||"session-auto",content:s,summary:o||"",packetIndex:a??"?",createdAt:(new Date).toISOString()}),x===r&&K()))}async function et({type:e,label:n,source:r,content:o,summary:a},{force:s=!1}={}){if(!s&&x!==i)return void t("Status: Switch to persistent keychain to save entries");if(!B)return void h("Persistent keychain is locked. Reopen the keychain tab with password.");const c=(o||"").trim();if(!c)return void t("Status: No content available to save");const d={id:P(),type:e,label:n?.trim()?n.trim():`${e}-${(new Date).toISOString()}`,source:r,content:c,summary:a||"",createdAt:(new Date).toISOString()};C.unshift(d);try{await z(C,B)}catch(t){return u("crypt-keystore-save",t),void h("Could not save the persistent keychain.")}K(),t(`Status: Saved ${e} in persistent keychain`),l(`Crypt keystore entry added type=${e} label="${d.label}"`)}function nt(t){const e=document.getElementById("crypt-keystore-unlock-dialog"),n=document.getElementById("crypt-keystore-unlock-password"),r=document.getElementById("crypt-keystore-unlock-password-confirm");if(e&&(e.hidden=!0),n&&(n.value=""),r&&(r.value=""),!k)return;const i=k;k=null,i(t)}function rt(t){const e=document.getElementById("crypt-keystore-manual-uri-dialog"),n=document.getElementById("crypt-keystore-manual-uri-input");if(e&&(e.hidden=!0),n&&(n.value=""),!I)return;const r=I;I=null,r({value:t,mode:T})}return{addSessionKeystoreEntry:tt,addCryptKeystoreEntry:et,loadSelectedCryptKeystoreEntry:async function(){const e=document.getElementById("crypt-keystore-list"),n=Number(e.value),r=H();if(!Number.isFinite(n)||!r[n])return void t("Status: Select a keystore entry first");const i=r[n];let o=Z(i.content);if(!o&&i.encryptedContent&&i.salt&&i.iv){if(!B)return void h("Persistent keychain is locked. Reopen keychain with password.");try{o=await j(i,B)}catch(t){return u("crypt-keystore-decrypt",t),void h("Could not decrypt keystore entry with current password.")}}o?(Y(i),document.getElementById("crypt-keystore-label").value=i.label,"certificate"===i.type?w()(o,F()):"private-key"===i.type?E()(o,F()):document.getElementById("crypt-credential-input").value=o,t(`Status: Loaded keystore entry "${i.label}"`)):t("Status: Selected entry has no decodable content")},deleteSelectedCryptKeystoreEntry:async function(){if(x!==i)return void t("Status: Session keychain entries are auto-managed");const e=document.getElementById("crypt-keystore-list"),n=Number(e.value);if(!Number.isFinite(n)||!C[n])return void t("Status: Select a keystore entry first");if(!B)return void h("Persistent keychain is locked. Reopen keychain with password.");const[r]=C.splice(n,1);try{await z(C,B)}catch(t){return u("crypt-keystore-save",t),void h("Could not save the persistent keychain.")}K(),t(`Status: Deleted keystore entry "${r.label}"`),l(`Crypt keystore entry deleted type=${r.type} label="${r.label}"`)},sendSelectedSessionEntryToPersistent:async function(){if(x!==r)return void t("Status: Switch to session keychain to send temporary entries");if(!B)return void h("Persistent keychain is locked. Reopen keychain with password.");const e=document.getElementById("crypt-keystore-list"),n=Number(e.value);if(!Number.isFinite(n)||!_[n])return void t("Status: Select a session keychain entry first");const i=_[n],o=Z(i.content);if(o)if(C.some(t=>t.type===i.type&&t.label===i.label&&Z(t.content)===o))t("Status: Entry is already stored in persistent keychain");else{C.unshift({id:P(),type:i.type,label:i.label,source:`bookmarked from ${i.source||"session-auto"}`,content:o,summary:i.summary||"Bookmarked from session keychain",createdAt:(new Date).toISOString()});try{await z(C,B)}catch(t){return u("crypt-keystore-save",t),void h("Could not save selected entry to persistent keychain.")}t(`Status: Sent "${i.label}" to persistent keychain`),l(`Session keychain entry persisted label="${i.label}"`)}else t("Status: Selected session entry has no content to persist")},showKeystoreWorkspace:function(){if(f(p),""===d())return t("Status: No JSON file loaded, please upload a file first"),void h("Please upload a JSON file before accessing the keystore.");B?(t("Status: Displaying keychain manager"),l("User opened keystore workspace"),document.getElementById("prev-btn").style.display="none",document.getElementById("next-btn").style.display="none",document.getElementById("packetInfoPane").style.display="none",document.getElementById("packetPayloadPane").style.display="none",document.getElementById("summary_box").style.display="none",document.getElementById("stats_box").style.display="none",document.getElementById("data_tools_box").style.display="none",document.getElementById("list_box").style.display="none",document.getElementById("notes_box").style.display="none",document.getElementById("crypt_box").style.display="none",document.getElementById("rightside").style.display="none",document.getElementById("keystore_box").style.display="flex",document.getElementById("crypt-keystore-mode").value=x,K()):h("Please unlock the keychain with password first.")},renderCryptKeystoreList:K,renderCryptKeystoreDetails:Y,addToKeystoreFromContextMenu:async function(e,n){const i=(b()||A()).trim();v(),i?n===r?(tt({type:e,label:"",source:"context-menu",content:i,summary:""}),t(`Status: Saved ${e} in session keychain`),l(`Context menu keystore entry added type=${e} mode=session`)):await et({type:e,label:"",source:"context-menu",content:i,summary:""},{force:!0}):t("Status: No text to add to keystore")},addManualUriToKeystoreFromContextMenu:async function(e){v();const n=await function(t){const e=document.getElementById("crypt-keystore-manual-uri-dialog"),n=document.getElementById("crypt-keystore-manual-uri-description"),o=document.getElementById("crypt-keystore-manual-uri-input");if(!e||!n||!o)return Promise.resolve(null);if(I){const t=I;I=null,t(null)}T=t===i?i:r;const a=T===i?"persistent keychain":"session keychain";return n.textContent=`Enter URI/URL to add to the ${a}.`,e.hidden=!1,o.value="",o.focus(),new Promise(t=>{I=t})}(e);if(!n)return;const o=X(n.value);if(!o)return void t("Status: No URI/URL provided");let a;try{a=new URL(o)}catch{return void t("Status: Invalid URI/URL")}const s=a.href,h=/^https?:$/i.test(a.protocol)?"url":"uri",u={type:h,label:`${h.toUpperCase()} ${s}`,source:"context-menu-manual-uri",content:s,summary:"Manual URI/URL entry from context menu"};if(n.mode===r)return tt(u),t(`Status: Saved ${h} in session keychain`),void l(`Manual context URI saved mode=session type=${h}`);await et(u,{force:!0})},openSelectedKeystoreLinkInBrowser:async function(){const e=document.getElementById("crypt-keystore-list"),n=Number(e.value),r=H();if(!Number.isFinite(n)||!r[n])return void t("Status: Select a keystore entry first");const i=r[n],o=$(i.content);if(!o)return void t("Status: Selected entry is not an openable web link");if("function"!=typeof M)return void h("External browser opening is unavailable in this environment.");const a=await M(o);if(a?.success)return t("Status: Opened link in external browser"),void l(`Keystore link opened in browser label="${i.label}"`);const s=a&&"object"==typeof a&&"error"in a?a.error:"unknown";h("Could not open the selected link in browser."),u("crypt-keystore-open-link",s||"unknown"),t("Status: Could not open selected link – "+(s||"unknown"))},unlockPersistentKeystoreAndLoad:async function(){if(!window.crypto||!window.crypto.subtle)return h("WebCrypto API is unavailable; cannot unlock keychain."),!1;if(B)return!0;const e=await D(),n=!e,r=await function(t="unlock"){const e=document.getElementById("crypt-keystore-unlock-dialog"),n=document.getElementById("crypt-keystore-unlock-password"),r=document.getElementById("crypt-keystore-unlock-password-confirm");return e&&n&&r?(function(t){S="setup"===t?"setup":"unlock";const e="setup"===S,n=document.getElementById("crypt-keystore-unlock-title"),r=document.getElementById("crypt-keystore-unlock-description"),i=document.getElementById("crypt-keystore-unlock-password"),o=document.getElementById("crypt-keystore-unlock-password-confirm"),a=document.getElementById("crypt-keystore-unlock-confirm-btn");n&&(n.textContent=e?"Set Keychain Password":"Unlock Keychain"),r&&(r.textContent=e?"Create the initial password for the persistent keychain (minimum 8 characters). You will only be asked when selecting the keychain tab.":"Enter password to unlock the persistent keychain."),i&&(i.placeholder=e?"Create keychain password":"Enter keychain password"),o&&(o.hidden=!e,o.placeholder="Confirm keychain password"),a&&(a.textContent=e?"Set password":"Unlock")}(t),e.hidden=!1,n.value="",r.value="",n.focus(),new Promise(t=>{k=t})):Promise.resolve(null)}(n?"setup":"unlock"),i=(r?.password||"").trim();if(!i)return t("Status: Keychain remains locked"),!1;if(i.length<8)return h("Keychain password must be at least 8 characters."),!1;if(n&&i!==String(r?.confirmPassword||"").trim())return h("Keychain password confirmation does not match."),!1;try{const r=await N(i);return n?(C=[],await z([],r),t("Status: Keychain password set"),l("Persistent keychain password initialized")):(C=await async function(t,e){const n=void 0===e?await D():e;if(!n)return[];if(2===n?.schemaVersion&&n?.encryptedPayload&&n?.salt&&n?.iv){const e=await j({encryptedContent:String(n.encryptedPayload),salt:String(n.salt),iv:String(n.iv)},t),r=JSON.parse(e);return Array.isArray(r)?r.map(U).filter(Boolean):[]}const r=Array.isArray(n?.entries)?n.entries.map(U).filter(Boolean):[];return await z(r,t),r}(r,e),t("Status: Keychain unlocked"),l("Persistent keychain unlocked")),B=r,!0}catch(t){return u("crypt-keystore-unlock",t),h(n?"Could not initialize persistent keychain.":"Could not unlock persistent keychain. Verify password."),!1}},submitKeystoreUnlockDialog:function(){const t=document.getElementById("crypt-keystore-unlock-password"),e=document.getElementById("crypt-keystore-unlock-password-confirm");nt({password:t?.value||"",confirmPassword:e?.value||"",mode:S})},resolveKeystoreUnlockPassword:nt,submitManualUriFromContextMenuDialog:function(){const t=document.getElementById("crypt-keystore-manual-uri-input");rt(t?.value||"")},resolveManualUriFromContextMenuDialog:rt,getActiveCryptKeystoreEntries:H,setActiveMode(t){x=t,K()},getSessionKeychainEntries:()=>_,getKeystoreMode:()=>x,isUnlocked:()=>!!B,restoreSessionState(t,e){_=t,e!==r&&e!==i||(x=e)},rebuildSessionEntries:()=>(_=Q(),_.length),resetKeystoreState(){x=r,_=[],C=[],B=null,k=null,S="unlock",I=null,T=r,K()}}},CRYPT_KEYSTORE_MODE_SESSION:r,CRYPT_KEYSTORE_MODE_PERSISTENT:i,SESSION_KEYCHAIN_LABEL:o}},3284(t){t.exports={id:"list",createListPanel:function({constants:t,getJsonCapture:e,getCapturedPackets:n,getBookmarkList:r,setActiveMainTab:i,statusUpdate:o,writeLogEntry:a,hostFilterEl:s,filterInputEl:l,syncFilterHighlight:h,runFilterQuery:u,getFilteredPackets:c,setPacketsForHost:d,setIndex:f,setCurrentIp:p,setCurrentPacketKey:m,syncBookmarkDropdown:g,setActivePacketCursor:y,showAllData:b,infoPanel:v,popHexGrid:A,populateDataTypes:w}){const{MAIN_TAB_LIST:E}=t;return{showPacketList:function(){if(i(E),""===e())return void o("Status: No JSON file loaded, please upload a file first");o("Status: Displaying packet list"),a("User opened packet list view"),document.getElementById("packetInfoPane").style.display="none",document.getElementById("packetPayloadPane").style.display="none",document.getElementById("prev-btn").style.display="none",document.getElementById("next-btn").style.display="none",document.getElementById("summary_box").style.display="none",document.getElementById("stats_box").style.display="none",document.getElementById("data_tools_box").style.display="none",document.getElementById("crypt_box").style.display="none",document.getElementById("keystore_box").style.display="none",document.getElementById("notes_box").style.display="none",document.getElementById("rightside").style.display="none",document.getElementById("list_box").style.display="flex";const t=document.getElementById("list_content"),M=document.getElementById("list-search"),C=document.getElementById("list-group-streams"),_=[{label:"#",key:"idx"},{label:"★",key:"isBookmarked"},{label:"Stream",key:"streamOrder"},{label:"Host",key:"host"},{label:"Src IP",key:"srcIp"},{label:"Dst IP",key:"dstIp"},{label:"Src Port",key:"srcPort"},{label:"Dst Port",key:"dstPort"},{label:"Transport",key:"transport"},{label:"App Protocol",key:"appProto"}],x={key:"idx",direction:"asc"};function B(e){t.replaceChildren();const i=n();if(!i||!i.Host)return void(t.textContent="No packet data available.");const E=Object.keys(i.Host).sort(),M=e?e.toLowerCase():"",C=[],k=t=>{const e=t?.Protocol||"Unknown",n=t?.[e]||{},r=t?.IP?.["Source IP"]??"",i=t?.IP?.["Destination IP"]??"",o=`${r}:${n?.["Source port"]??""}`,a=`${i}:${n?.["Destination port"]??""}`,[s,l]=[o,a].sort();return`${e}|${s}|${l}`};for(const t of E){const e=i.Host[t];Array.isArray(e)&&e.forEach((e,n)=>{const i=e?.["Packet Info"],o=e?.["Extra Info"];if(!i)return;const a=i.Index??n+1,s=i?.IP?.["Source IP"]??"",l=i?.IP?.["Destination IP"]??"",h=i.Protocol||"TCP",u=i[h]||null,c=u?.["Source port"]??"",d=u?.["Destination port"]??"",f=o?.Traits?.["Network Data"],p=f?.["Port Protocol"]??f?.["Port Protcol"]??"",m=s+":"+i.Index,g=r().includes(m),y=k(i);M&&![t,s,l,String(c),String(d),h,p].join(" ").toLowerCase().includes(M)||C.push({idx:a,host:t,srcIp:s,dstIp:l,srcPort:c,dstPort:d,transport:h,appProto:p,pktIdx:n,pi:i,streamKey:y,isBookmarked:g})})}const S=new Map;let I=1;C.forEach(t=>{S.has(t.streamKey)||S.set(t.streamKey,I++),t.streamOrder=S.get(t.streamKey),t.streamLabel=`S${t.streamOrder}`});const T=document.getElementById("list-group-streams")?.checked,P="asc"===x.direction?1:-1,R=(t,e)=>String(t??"").localeCompare(String(e??""));C.sort((t,e)=>{if(T&&"streamOrder"!==x.key){const n=t.streamOrder-e.streamOrder;if(0!==n)return n}const n=((t,e,n)=>{switch(n){case"idx":case"streamOrder":return Number(t[n])-Number(e[n]);case"isBookmarked":return Number(t.isBookmarked)-Number(e.isBookmarked);case"srcPort":case"dstPort":return((t,e)=>{const n=Number(t),r=Number(e),i=Number.isFinite(n),o=Number.isFinite(r);return i&&o?n-r:R(t,e)})(t[n],e[n]);default:return R(t[n],e[n])}})(t,e,x.key);return 0!==n?n*P:Number(t.idx)-Number(e.idx)});const L=document.createElement("table");L.className="packet-list-table";const N=document.createElement("thead"),O=document.createElement("tr");_.forEach(t=>{const e=document.createElement("th"),n=x.key===t.key,r=n?"asc"===x.direction?" ▲":" ▼":"";e.textContent=t.label+r,e.classList.add("packet-list-sortable-header"),e.tabIndex=0,e.title=`Sort by ${t.label}`,e.setAttribute("aria-sort",n?"asc"===x.direction?"ascending":"descending":"none");const i=()=>{x.key===t.key?x.direction="asc"===x.direction?"desc":"asc":(x.key=t.key,x.direction="asc"),B(document.getElementById("list-search")?.value||"")};e.addEventListener("click",i),e.addEventListener("keydown",t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),i())}),O.appendChild(e)}),N.appendChild(O),L.appendChild(N);const j=document.createElement("tbody");if(0===C.length){const t=document.createElement("tr"),n=document.createElement("td");n.colSpan=_.length,n.textContent=e?"No packets match the filter.":"No packets available.",n.style.textAlign="center",n.style.padding="12px",t.appendChild(n),j.appendChild(t)}else{let t="";C.forEach(e=>{const r=document.createElement("tr");r.dataset.host=e.host,r.dataset.pktIdx=e.pktIdx,r.dataset.stream=e.streamLabel,T&&""!==t&&t!==e.streamLabel&&r.classList.add("packet-list-stream-break"),t=e.streamLabel,[e.idx,e.isBookmarked?"★":"",e.streamLabel,e.host,e.srcIp,e.dstIp,e.srcPort,e.dstPort,e.transport,e.appProto].forEach(t=>{const e=document.createElement("td");e.textContent=t??"",r.appendChild(e)}),r.addEventListener("mouseenter",()=>{r.classList.add("packet-list-hovered")}),r.addEventListener("mouseleave",()=>{r.classList.remove("packet-list-hovered")}),r.addEventListener("click",()=>{j.querySelectorAll(".packet-list-selected").forEach(t=>t.classList.remove("packet-list-selected")),r.classList.add("packet-list-selected"),s.value=e.host,document.getElementById("target_hosts").value=e.host,p(e.srcIp),m(e.srcIp+":"+e.pi.Index),g(e.srcIp+":"+e.pi.Index),a(`Packet list row selected host=${e.host} index=${e.pi.Index}`);const t=function(t,e,n,r,i){if(!e||!n)return null;const o=(t||"").toLowerCase();return""===r||null==r||""===i||null==i||"tcp"!==o&&"udp"!==o?`(ip.src.addr: ${e} && ip.dst.addr: ${n}) || (ip.src.addr: ${n} && ip.dst.addr: ${e})`:`(ip.src.addr: ${e} && ip.dst.addr: ${n} && ${o}.src.port: ${r} && ${o}.dst.port: ${i}) || (ip.src.addr: ${n} && ip.dst.addr: ${e} && ${o}.src.port: ${i} && ${o}.dst.port: ${r})`}(e.transport,e.srcIp,e.dstIp,e.srcPort,e.dstPort);if(t)l.value=t,h(),u(t),d(c());else{const t=n().Host[e.host];d(t),f(e.pktIdx),y(e.pktIdx),document.getElementById("list_box").style.display="none",document.getElementById("data_tools_box").style.display="none",document.getElementById("crypt_box").style.display="none",document.getElementById("keystore_box").style.display="none",document.getElementById("notes_box").style.display="none",document.getElementById("packetInfoPane").style.display="block",document.getElementById("packetPayloadPane").style.display="block";const r=document.getElementById("rightside-data"),i=document.getElementById("rightside-notes");r&&(r.hidden=!1),i&&(i.hidden=!0),b(),v(t);const o=t[e.pktIdx]?.["Packet Info"]?.["Raw data"]?.Payload?.["Hex Encoded"];o&&A(o),w(t)}o("Status: Displaying packet "+e.pi.Index+" for host "+e.host)}),j.appendChild(r)})}L.appendChild(j),t.appendChild(L)}B(M.value);const k=M.cloneNode(!0);if(M.parentNode.replaceChild(k,M),k.addEventListener("input",()=>B(k.value)),C){const t=C.cloneNode(!0);C.parentNode.replaceChild(t,C),t.addEventListener("change",()=>B(k.value))}}}}}},7119(t){function e(t,e={}){if(null==t)return null;const{stripNonPrintable:n=!1}=e;let r="string"==typeof t?t:String(t);return n&&(r=r.replace(/[\x00-\x1F\x7F]/g,"")),r=r.trim(),r||null}function n(t){if(null==t)return null;if("number"==typeof t)return Number.isFinite(t)?t:null;const n=e(t);return n&&/^\d+$/.test(n)?Number(n):null}function r({documentRef:t,title:n,items:r,queryBuilder:i,onQuery:o}){if(!r||0===r.length)return null;const a=Array.from(new Set(r.filter(t=>null!=t&&("string"!=typeof t||null!==e(t)))));if(0===a.length)return null;const s=t.createElement("div");s.className="stats-section";const l=t.createElement("div");l.className="stats-section-title",l.textContent=n,s.appendChild(l);const h=t.createElement("div");return h.className="stats-tag-list",a.forEach(e=>{const n=t.createElement("span");n.className="stats-tag",n.textContent=e,n.title="Click to filter packets by this value",i&&n.addEventListener("click",()=>{const t=i(e);t&&"function"==typeof o&&o(t)}),h.appendChild(n)}),s.appendChild(h),s}t.exports={id:"stats",createStatsPanel:function(t){const{documentRef:i,statusUpdate:o,writeLogEntry:a,setActiveMainTab:s,mainTabStats:l,getJsonCapture:h,getCapturedPackets:u,filterInputEl:c,syncFilterHighlight:d,runFilterQuery:f,getFilteredPackets:p,setPacketsForHost:m}=t;function g(t){c.value=t,d(),a(`Stats tag clicked query="${t}"`),f(t);const e=p();Array.isArray(e)&&e.length>0&&m(e)}return{showStats:function(){if(s(l),""===h())return void o("Status: No JSON file loaded, please upload a file first");o("Status: Displaying capture statistics"),a("User opened capture stats view"),i.getElementById("packetInfoPane").style.display="none",i.getElementById("packetPayloadPane").style.display="none",i.getElementById("prev-btn").style.display="none",i.getElementById("next-btn").style.display="none",i.getElementById("summary_box").style.display="none",i.getElementById("list_box").style.display="none",i.getElementById("notes_box").style.display="none",i.getElementById("data_tools_box").style.display="none",i.getElementById("crypt_box").style.display="none",i.getElementById("keystore_box").style.display="none",i.getElementById("stats_box").style.display="block",i.getElementById("rightside").style.display="none";const t=i.getElementById("stats_content");t.replaceChildren();const c=function(t){const r=new Set,i=new Set,o=new Set,a=new Set,s=new Set,l=new Set,h=new Map,u=new Set,c=new Set;let d=0,f=0,p=0;if(!t||!t.Host)return null;for(const m of Object.keys(t.Host)){const g=e(m);g&&o.add(g);const y=t.Host[m];if(Array.isArray(y))for(const t of y){p++;const m=t?.["Packet Info"],g=t?.["Extra Info"];if(!m||!g)continue;const y=e(m.Protocol);y&&i.add(y);const b=e(m?.IP?.["Source IP"]),v=e(m?.IP?.["Destination IP"]);b&&o.add(b),v&&o.add(v);const A=m?.["Ethernet Frame"];if(A){const t=e(A["MAC Source Vendor"]),n=e(A["MAC Destination Vendor"]);t&&s.add(t),n&&s.add(n)}const w=g?.Traits?.["Network Data"];if(w){const t=e(w["Port Protocol"]??w["Port Protcol"]);t&&"Unknown"!==t&&r.add(t);const i=y?m[y]:null;if(i){const t=n(i["Source port"]),e=n(i["Destination port"]);null!==t&&a.add(t),null!==e&&a.add(e)}const o=w?.Hostnames?.Hostnames;Array.isArray(o)&&o.forEach(t=>{const n=e(t);n&&u.add(n)});for(const t of["Source IP","Destination IP"]){const n=w?.[t]?.Location,r=e(n?.City),i=e(n?.Country);if(r&&i){const t=`${r}, ${i}`;h.set(t,(h.get(t)||0)+1)}}}const E=e(g?.["MIME Type"]);E&&l.add(E);const M=g?.["Data Types"];Array.isArray(M)&&M.forEach(t=>{const n=e(t,{stripNonPrintable:!0});n&&c.add(n)});const C=g?.Traits?.["Server Info"]?.["Encryption Data"];C&&"N/A"!==C?d++:f++}}return{protocols:[...r].sort(),transportProtocols:[...i].sort(),hosts:[...o].sort(),ports:[...a].sort((t,e)=>t-e),macVendors:[...s].filter(t=>"N/A"!==t).sort(),mimeTypes:[...l].sort(),locations:[...h.entries()].sort((t,e)=>e[1]-t[1]),hostnames:[...u].sort(),dataTypes:[...c].sort(),encryptedCount:d,unencryptedCount:f,totalPackets:p}}(u());if(!c)return void(t.textContent="No packet data available.");const d=i.createElement("div");d.className="stats-section";const f=i.createElement("div");f.className="stats-section-title",f.textContent="Capture Overview",d.appendChild(f),[`Total Packets: ${c.totalPackets}`,`Unique Hosts Targeted: ${c.hosts.length}`,`Encrypted Packets: ${c.encryptedCount}`,`Unencrypted Packets: ${c.unencryptedCount}`,`Unique Protocols: ${c.protocols.length}`,`Unique Locations: ${c.locations.length}`].forEach(t=>{const e=i.createElement("div");e.className="stats-kv",e.textContent=t,d.appendChild(e)}),t.appendChild(d);const p=r({documentRef:i,title:"Application Protocols",items:c.protocols,queryBuilder:t=>`tcp.proto: ${t.toLowerCase()}`,onQuery:g});p&&t.appendChild(p);const m=r({documentRef:i,title:"Transport Protocols",items:c.transportProtocols,queryBuilder:t=>`wire.proto: ${t.toLowerCase()}`,onQuery:g});m&&t.appendChild(m);const y=r({documentRef:i,title:"All Hosts Addressed",items:c.hosts,queryBuilder:t=>`ip.src.addr: ${t} || ip.dst.addr: ${t}`,onQuery:g});y&&t.appendChild(y);const b=r({documentRef:i,title:"Hostnames (DNS)",items:c.hostnames,queryBuilder:t=>`dns.qname: ${t}`,onQuery:g});if(b&&t.appendChild(b),c.locations.length>0){const e=c.locations.map(([t,e])=>`${t} (${e})`),n=r({documentRef:i,title:"Physical Locations",items:e});n&&t.appendChild(n)}const v=r({documentRef:i,title:"Ports Seen",items:c.ports.map(String),queryBuilder:t=>`tcp.src.port: ${t} || tcp.dst.port: ${t}`,onQuery:g});v&&t.appendChild(v);const A=r({documentRef:i,title:"MAC Vendors",items:c.macVendors,queryBuilder:t=>`eth.src.vendor: ${t}`,onQuery:g});A&&t.appendChild(A);const w=r({documentRef:i,title:"MIME Types",items:c.mimeTypes,queryBuilder:t=>`mime.type: ${t}`,onQuery:g});w&&t.appendChild(w);const E=r({documentRef:i,title:"Data Types",items:c.dataTypes});E&&t.appendChild(E)}}}}},8612(t){t.exports={createSummaryPanel:function({documentRef:t,getJsonCapture:e,getFinalSummary:n,setActiveMainTab:r,mainTabSummary:i,statusUpdate:o,fileLoaded:a}){function s(){r(i),o("Status: Displaying capture analysis summary");const s=e();""!==s&&null!=s?(t.getElementById("packetInfoPane").style.display="none",t.getElementById("packetPayloadPane").style.display="none",t.getElementById("prev-btn").style.display="none",t.getElementById("next-btn").style.display="none",t.getElementById("stats_box").style.display="none",t.getElementById("data_tools_box").style.display="none",t.getElementById("crypt_box").style.display="none",t.getElementById("keystore_box").style.display="none",t.getElementById("list_box").style.display="none",t.getElementById("notes_box").style.display="none",t.getElementById("rightside").style.display="none",t.getElementById("summary_content").textContent=n()||"No LLM summary available.",t.getElementById("summary_box").style.display="block",a(!0)):o("Status: No JSON file loaded, please upload a file first")}const l=t.getElementById("summary-btn");return l&&l.addEventListener("click",s),{showSummary:s,showSummaryLoading:function(){const e=t.getElementById("summary_content");e&&(e.innerHTML='<span id="loaderdots" class="loading" role="status" aria-live="polite">Loading</span>')},clearSummaryContent:function(){const e=t.getElementById("summary_content");e&&(e.textContent="")}}}}},8982(){},7790(){},3776(){},1638(){},2668(){},7965(){},477(){},6089(){},9368(){},2307(){},1069(){},5340(){},9838(){},5394(){},5248(){},8957(t,e,n){"use strict";var r=n(8692),i="undefined"==typeof globalThis?n.g:globalThis;t.exports=function(){for(var t=[],e=0;e<r.length;e++)"function"==typeof i[r[e]]&&(t[t.length]=r[e]);return t}},3219(t){"use strict";t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},2951(t){"use strict";t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},4589(t){"use strict";t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},3241(t){"use strict";t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},1636(t){"use strict";t.exports={rE:"6.6.1"}},5579(t){"use strict";t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},8330(t){"use strict";t.exports={rE:"1.5.605"}}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={id:t,loaded:!1,exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),void 0!==__webpack_require__&&(__webpack_require__.ab="/native_modules/"),__webpack_require__.nc=void 0;var __webpack_exports__={};(()=>{"use strict";var t=__webpack_require__(5072),e=__webpack_require__.n(t),n=__webpack_require__(7825),r=__webpack_require__.n(n),i=__webpack_require__(7659),o=__webpack_require__.n(i),a=__webpack_require__(5056),s=__webpack_require__.n(a),l=__webpack_require__(540),h=__webpack_require__.n(l),u=__webpack_require__(1113),c=__webpack_require__.n(u),d=__webpack_require__(1958),f={};f.styleTagTransform=c(),f.setAttributes=s(),f.insert=o().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=h(),e()(d.A,f),d.A&&d.A.locals&&d.A.locals,__webpack_require__(2375),__webpack_require__(4746),__webpack_require__(8612),__webpack_require__(3508),__webpack_require__(7119),__webpack_require__(3284),__webpack_require__(9738),__webpack_require__(5864),__webpack_require__(8388);const p=__webpack_require__(5654),{sha3_256:m,sha3_512:g}=__webpack_require__(4862),y=__webpack_require__(8725),{filterPackets:b,validateFilterSyntax:v}=__webpack_require__(8480),{initializeLogging:A}=__webpack_require__(1653),{initializeContextMenu:w}=__webpack_require__(7534),{createTable:E,renderDnsTable:M,renderIcmpTable:C,renderSnmpTable:_,renderDhcpTable:x,renderNtpTable:B,renderSipTable:k,renderHttpTable:S,renderFtpTable:I,renderSmtpTable:T,renderPop3Table:P,renderImapTable:R,renderTelnetTable:L,renderIrcTable:N,renderMtpTable:O,renderLdapTable:j,renderMysqlTable:q,renderPostgresqlTable:D,renderXmppTable:U,renderSmbTable:z,renderMqttTable:H,renderRtspTable:F,renderTftpTable:$,renderBgpTable:W,renderHttp2Table:Y,renderNntpTable:K,renderRadiusTable:Z}=__webpack_require__(4746),{createCryptPanel:V}=__webpack_require__(5864),{createKeystorePanel:X,CRYPT_KEYSTORE_MODE_SESSION:J,CRYPT_KEYSTORE_MODE_PERSISTENT:G,SESSION_KEYCHAIN_LABEL:Q}=__webpack_require__(8388),{createStatsPanel:tt}=__webpack_require__(7119),{createListPanel:et}=__webpack_require__(3284),{createSummaryPanel:nt}=__webpack_require__(8612),{initializeInstallScreen:rt}=__webpack_require__(9873),{createDataPanel:it}=__webpack_require__(3508),ot=__webpack_require__(8330).rE,{initConvPanel:at,CONV_CONVERSIONS_SUBTAB:st,CONV_HASHES_SUBTAB:lt,CONV_DECODES_SUBTAB:ht,VALID_CONV_SUBTABS:ut,DATA_TOOLS_CONTEXT_BASE64_MIN_LENGTH:ct,DATA_TOOLS_TEXT_MIME_PRINTABLE_THRESHOLD:dt,DATA_TOOLS_ENTROPY_HIGH_THRESHOLD:ft,DATA_TOOLS_ENTROPY_MEDIUM_THRESHOLD:pt,DATA_TOOLS_MAX_DECIMAL_INTEGER_BYTES:mt,getActiveConvSubtab:gt,getActiveDataToolsProtoResult:yt,setConvSubtab:bt,runDataToolsHashesFromInput:vt}=__webpack_require__(9738),At={};function wt(t){return At[t]||(At[t]=document.getElementById(t)),At[t]}const Et="Capture Data",Mt="Session State",Ct="summary",_t="data",xt="stats",Bt="list",kt="notes",St="data-tools",It="crypt",Tt="keystore",Pt="#4caf50";let Rt,Lt={},Nt="",Ot="";const jt=wt("status");let qt=["0.0.0.0"];const Dt=wt("host_filter");let Ut,zt,Ht,Ft,$t=[],Wt=0,Yt=0,Kt=[],Zt={},Vt=!1;const Xt=wt("filterStr"),Jt=wt("filterStr-highlight"),Gt=wt("filterStr-clear"),Qt=wt("filter-history-select"),te=[],ee=/\b(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}\b/,ne=/\b([0-9A-Fa-f]{2}([-:])){5}[0-9A-Fa-f]{2}\b/,re=/^[\w.+-]+\/[\w.+-]+$/,ie="ssl",oe="pgp",ae="openssh",se=[Ct,_t,xt,Bt,kt,St,It,Tt],le=[ie,oe,ae];let he,ue=Ct,ce=ie,de=null,fe=[],pe=null,me=0;rt({installapi:window.installapi,documentRef:document});const{initializeActivityLog:ge,writeLogEntry:ye,writeBackendErrorLogEntry:be,logErrorEntry:ve}=A({logapi:window.logapi,documentRef:document,consoleRef:console}),{showStats:Ae}=tt({documentRef:document,statusUpdate:Je,writeLogEntry:ye,setActiveMainTab:t=>{ue=t},mainTabStats:xt,getJsonCapture:()=>Nt,getCapturedPackets:()=>Lt,filterInputEl:Xt,syncFilterHighlight:Te,runFilterQuery:Oe,getFilteredPackets:()=>zt,setPacketsForHost:t=>{$t=t}}),we=nt({documentRef:document,getJsonCapture:()=>Nt,getFinalSummary:()=>Ot,setActiveMainTab:t=>{ue=t},mainTabSummary:Ct,statusUpdate:Je,fileLoaded:ke}),{showSummary:Ee,showSummaryLoading:Me,clearSummaryContent:Ce}=we,{initializeDataView:_e,bindDataPanelEvents:xe,logCurrentPacketDisplay:Be}=it({constants:{MAIN_TAB_DATA:_t},documentRef:document,statusUpdate:Je,writeLogEntry:ye,doError:fr,getIsFileLoaded:()=>Vt,getJsonCapture:()=>Nt,getHostFilterValue:()=>Dt.value,getHostsList:()=>qt,getFilterInputValue:()=>Xt.value,getFilteredPackets:()=>zt,getPacketsForHost:()=>$t,setActiveMainTab:t=>{ue=t},handlePacketNavigation:(t,e)=>ar(t,e),getIndex:()=>Wt,setIndex:t=>{Wt=t},setActivePacketCursor:Vn,setCurrentIp:t=>{Rt=t},setCurrentPacketKey:t=>{Ht=t},getCurrentPacketKey:()=>Ht,syncBookmarkDropdown:ir,infoPanel:dr,popHexGrid:cr,populateDataTypes:sr});function ke(t){if(Vt=t,t){const t=performance.now();document.getElementById("load-time").textContent="Load time: "+((t-Ft)/1e3).toFixed(2)+" seconds",Xt.disabled=!1,Qt.disabled=!1,document.getElementById("summary-btn").style.opacity="1",document.getElementById("data-btn").style.opacity="1",document.getElementById("data-tools-btn").style.opacity="1",document.getElementById("crypt-btn").style.opacity="1",document.getElementById("keystore-btn").style.opacity="1",document.getElementById("tab-btns").style.opacity="1",document.getElementById("prev-btn").style.opacity="1",document.getElementById("next-btn").style.opacity="1",document.getElementById("log-btn").style.opacity="1",document.getElementById("stats-btn").style.opacity="1",document.getElementById("list-btn").style.opacity="1",document.getElementById("notes-btn").style.opacity="1",document.getElementById("json-lab").style.display="none",document.getElementById("pcap-lab").style.display="none",document.getElementById("llm-toggle").style.display="none",ye(`Initial file load completed seconds=${((t-Ft)/1e3).toFixed(2)}`)}else Xt.disabled=!0,Qt.disabled=!0,document.getElementById("json-lab").style.display="block",document.getElementById("pcap-lab").style.display="block",document.getElementById("log-btn").style.opacity="0",document.getElementById("stats-btn").style.opacity="0",document.getElementById("list-btn").style.opacity="0",document.getElementById("notes-btn").style.opacity="0",document.getElementById("crypt-btn").style.opacity="0",document.getElementById("keystore-btn").style.opacity="0";Re()}function Se(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Ie(t){if(!t)return"";const e=t.indexOf(":");if(-1===e)return`<span class="query-token-value">${Se(t)}</span>`;const n=t.slice(0,e),r=t.slice(e+1),i=r.match(/^(\s*)(>=|<=|==|!=|>|<)(\s*)(.*)$/);let o="";return o=i?Se(i[1])+`<span class="query-token-operator">${Se(i[2])}</span>`+Se(i[3])+`<span class="query-token-value">${Se(i[4])}</span>`:`<span class="query-token-value">${Se(r)}</span>`,`<span class="query-token-key">${Se(n)}</span><span class="query-token-colon">:</span>`+o}function Te(){Jt.innerHTML=function(t){const e=t||"";if(!e)return" ";const n=/(\|\||&&|\(|\)|!(?!=))/g;let r=0,i="",o=n.exec(e);for(;null!==o;){i+=Ie(e.slice(r,o.index));const t=o[0];i+=`<span class="query-token-${"("===t||")"===t?"paren":"logic"}">${Se(t)}</span>`,r=n.lastIndex,o=n.exec(e)}return i+=Ie(e.slice(r)),i}(Xt.value),Pe(),Re()}function Pe(){Jt.scrollLeft=Xt.scrollLeft}function Re(){Gt.disabled=!Le()}function Le(){return!Xt.disabled&&""!==Xt.value.trim()}function Ne(){Qt.replaceChildren();const t=document.createElement("option");t.value="",t.textContent=te.length?"Previous queries":"No previous queries",t.selected=!0,Qt.appendChild(t),te.forEach(t=>{const e=document.createElement("option");e.value=t,e.textContent=t,e.title=t,Qt.appendChild(e)}),Qt.value="",Qt.disabled=!Vt}function Oe(t,e={}){const{trackHistory:n=!0}=e;try{v(t)}catch(e){return ve("filter-syntax",e),ye(`User query rejected query="${t}"`),fr(`Invalid filter syntax: ${e.message}`),void Je("Status: Invalid filter syntax")}n&&function(t){const e=t.trim();if(!e)return;const n=te.indexOf(e);-1!==n&&te.splice(n,1),te.unshift(e),Ne()}(t),zt=b(Lt,t),ye(`User executed query="${t}"`),void 0===zt||0===zt.length?(fr("No packets match the filter criteria!"),Je("Status: No packets match the filter criteria"),document.getElementById("data-types").style.display="none",document.getElementById("protoInfo").style.display="none",document.getElementById("timestamp").style.display="none",document.getElementById("rightside").style.display="none",document.getElementById("active-recon").style.display="none",document.getElementById("prev-btn").style.opacity="0",document.getElementById("next-btn").style.opacity="0",cr("00".repeat(1)),Je("Status: No packets match the filter criteria"),ye("User query returned 0 packets")):(Je("Status: Displaying "+zt.length+" packets matching filter"),ye(`User query returned packets=${zt.length}`),ar("filtered",null))}function je(t,e){try{return JSON.parse(JSON.stringify(t))}catch{return e}}function qe(t){const e="string"==typeof t?t.trim().toLowerCase():"";return/^#[0-9a-f]{6}$/.test(e)?e:Pt}function De(){return globalThis.crypto&&"function"==typeof globalThis.crypto.randomUUID?globalThis.crypto.randomUUID():(me+=1,`note-${Date.now()}-${me}`)}function Ue(){return fe.find(t=>t.id===pe)||null}function ze(){const t=document.getElementById("notes-select"),e=document.getElementById("notes-editor"),n=document.getElementById("notes-new-color");if(!t||!e||!n)return;if(t.replaceChildren(),!fe.length)return pe=null,e.value="",void(e.disabled=!0);Ue()||(pe=fe[0].id),fe.forEach((e,n)=>{const r=document.createElement("option"),i=String(e.text||"").replace(/\s+/g," ").trim();r.value=e.id,r.textContent=`${n+1}. ${i||"(empty note)"}`,r.style.borderLeft=`8px solid ${qe(e.color)}`,t.appendChild(r)}),t.value=pe;const r=Ue();e.disabled=!r,e.value=r?r.text:"",n.value=r?qe(r.color):Pt}function He(t,e=Pt,n="manual"){const r="string"==typeof t?t.trim():String(t||"").trim();if(!r)return Je("Status: No note text to add"),!1;const i=function(t="",e=Pt){return{id:De(),text:"string"==typeof t?t:String(t||""),color:qe(e)}}(r,e);return fe.unshift(i),pe=i.id,ze(),Je("Status: Note added"),ye(`Note added source=${n} length=${r.length}`),!0}function Fe(){const t=Ue();if(!t)return void Je("Status: No note selected to remove");const e=fe.findIndex(e=>e.id===t.id);fe=fe.filter(e=>e.id!==t.id),pe=0===fe.length?null:e>=fe.length?fe[fe.length-1].id:fe[Math.max(0,e)].id,ze(),Je("Status: Note removed"),ye(`Note removed id=${t.id}`)}function $e(){const t=[["Hex","data-tools-hex-output"],["Binary","data-tools-binary-output"],["Decimal bytes","data-tools-decimal-output"],["Decimal integer","data-tools-decimal-integer-output"],["ASCII","data-tools-ascii-output"],["Base64","data-tools-base64-output"]].map(([t,e])=>{const n=document.getElementById(e)?.value?.trim()||"";return n?`${t}: ${n}`:""}).filter(Boolean);return t.length>0?t.join("\n"):""}function We(){const t=[["Input","data-tools-hash-input-reading"],["MD5","data-tools-md5-output"],["SHA-1","data-tools-sha1-output"],["SHA-256","data-tools-sha256-output"],["SHA-384","data-tools-sha384-output"],["SHA-512","data-tools-sha512-output"],["SHA3-256","data-tools-sha3-256-output"],["SHA3-512","data-tools-sha3-512-output"],["RIPEMD-160","data-tools-ripemd160-output"],["Whirlpool","data-tools-whirlpool-output"]].map(([t,e])=>{const n=document.getElementById(e)?.value?.trim()||"";return n?`${t}: ${n}`:""}).filter(Boolean);return t.length>0?t.join("\n"):""}function Ye(t,e){Nn(),He(t,Pt,e)&&sn()}function Ke(t){if(!t||"object"!=typeof t)return null;const e=t[Et]&&"object"==typeof t[Et],n=e?t[Et]:t,r=e&&t[Mt]?t[Mt]:null;return n&&"object"==typeof n&&n.Host&&"object"==typeof n.Host?{captureData:n,sessionState:r&&"object"==typeof r?r:null}:null}function Ze(){const t=document.getElementById("list-search"),e=document.getElementById("list-group-streams");return{schemaVersion:1,savedAt:(new Date).toISOString(),currentFilterQuery:Xt.value||"",filterHistory:[...te],currentPacketKey:Ht||null,activePacketCursor:Zn(),packetViewMode:Array.isArray(zt)&&zt.length>0&&$t===zt?"filtered":"host",selectedHost:document.getElementById("target_hosts")?.value||Dt.value||"",bookmarkList:[...Kt],sessionKeychainEntries:je(he.getSessionKeychainEntries(),[]),keystoreMode:he.getKeystoreMode(),notes:je(fe,[]),tabs:{main:ue,conv:gt(),crypt:ce,listSearch:t?t.value:"",listGroupStreams:!!e&&Boolean(e.checked)}}}async function Ve(t="manual-save"){if(!Lt||!Lt.Host||"object"!=typeof Lt.Host)return Je("Status: No data loaded to save"),{success:!1,error:"No loaded capture"};const e=JSON.stringify({[Et]:Lt,[Mt]:Ze()},null,2),n=await window.saveapi.saveJson(e);if(n.canceled)Je("Status: Save cancelled");else if(n.success)Je("Status: Session saved successfully"),ye(`Session saved source=${t}`);else{const t=n&&"object"==typeof n&&"error"in n?n.error:"unknown";fr("Save failed"),ve("save-session",t||"unknown"),Je("Status: Save failed – "+(t||"unknown error")),console.error("Save failed:",t)}return n}function Xe(t){let e=null;const n=new FileReader;function r(){wt("target_hosts").hidden=!1,wt("summary-btn").style.display="block",qt=["0.0.0.0"];const t=wt("target_hosts");for(;t.options.length>0;)t.remove(0);Kt=[],fe=[],pe=null,ze();const n=document.getElementById("selectBookmark");for(;n.options.length>1;)n.remove(1);for(const e in Lt.Host){qt.push(e);const n=document.createElement("option");n.textContent=e,n.value=e,t.appendChild(n),Vt=!0}ye("Hosts targeted discovered count="+(qt.length-1));const r=he.rebuildSessionEntries();ye(`Session keychain auto-populated entries=${r}`);const i=function(){if(!Lt||"object"!=typeof Lt)return null;const t=[];if(!Lt.Host)return null;for(const e of Object.keys(Lt.Host)){const n=Lt.Host[e];Array.isArray(n)&&n.forEach(e=>{const n=e?.["Packet Info"]?.["Packet Timestamp"];n&&t.push(n)})}if(0===t.length)return null;const e=t.map(t=>({raw:t,value:Date.parse(t)})).filter(t=>!Number.isNaN(t.value)).sort((t,e)=>t.value-e.value);return e.length<1?null:{first:e[0].raw,last:e[e.length-1].raw}}();i&&ye(`Packet timeframe start="${i.first}" end="${i.last}"`),ye(`Total packet count=${or()}`),Ee(),_e(),e&&function(t){if(!t||"object"!=typeof t)return;const e=Array.isArray(t.filterHistory)?t.filterHistory.filter(t=>"string"==typeof t).map(t=>t.trim()).filter(Boolean):[];te.splice(0,te.length,...e),Ne();const n=Array.isArray(t.bookmarkList)?t.bookmarkList.filter(t=>"string"==typeof t&&""!==t.trim()):[];Kt=n,function(){const t=document.getElementById("selectBookmark");for(;t.options.length>1;)t.remove(1);Kt.forEach(e=>{t.appendChild(new Option(e,e))})}();const r=Array.isArray(t.sessionKeychainEntries)?t.sessionKeychainEntries.filter(t=>t&&"object"==typeof t):[];he.restoreSessionState(je(r,[]),t.keystoreMode);const i=Array.isArray(t.notes)?t.notes.filter(t=>t&&"object"==typeof t).map(t=>({id:"string"==typeof t.id&&t.id.trim()?t.id:De(),text:"string"==typeof t.text?t.text:String(t.text||""),color:qe(t.color)})):[];fe=i,pe=fe.length>0?fe[0].id:null,ze();const o=String(t.selectedHost||"").trim();if(o&&Lt?.Host?.[o]){const t=document.getElementById("target_hosts");t&&(t.value=o),Dt.value=o}const a="string"==typeof t.currentFilterQuery?t.currentFilterQuery:"";Xt.value=a,Te(),a.trim()?Oe(a,{trackHistory:!1}):(zt=[],document.getElementById("filter-returned").textContent="Filtered Packets: 0"),Ht="string"==typeof t.currentPacketKey?t.currentPacketKey:null,Vn(t.activePacketCursor),ar("filtered"===t.packetViewMode&&Array.isArray(zt)&&zt.length>0?"filtered":"first-load");const s=t.tabs&&"object"==typeof t.tabs?t.tabs:{},l="string"==typeof s.main&&se.includes(s.main)?s.main:_t,h=ut.includes(s.conv)?s.conv:st,u=le.includes(s.crypt)?s.crypt:ie;if(l===Ct)Ee();else if(l===xt)Ae();else if(l===Bt){En();const t=document.getElementById("list-search"),e=document.getElementById("list-group-streams");t&&"string"==typeof s.listSearch&&(t.value=s.listSearch,t.dispatchEvent(new Event("input"))),e&&"boolean"==typeof s.listGroupStreams&&(e.checked=s.listGroupStreams,e.dispatchEvent(new Event("change")))}else l===kt?sn():l===St?an(h):l===It?yn(u):l===Tt&&he.isUnlocked()?he.showKeystoreWorkspace():_e();l!==St&&bt(h),l!==It&&un(u),ye("Session state restored from JSON"),Je("Status: Session restored")}(e)}n.onload=t=>{if(wt("main"),0==function(t){try{return JSON.parse(t),!0}catch(t){return!1}}(t.target.result))return console.log("Invalid JSON file"),fr("Invalid JSON file, please upload a valid JSON capture!"),void ke(!1);ke(!0),Ut=t.target.result,wt("error-container").style.display="none";const n=t.target.result.length;if(n>1048576)Je("Status: Parsing large file ("+(n/1024/1024).toFixed(2)+"MB)..."),function(t,e=65536){return new Promise((n,r)=>{try{if(t.length<2*e)return void n(JSON.parse(t));let i=0;const o=t.length;let a="";const s=[];let l=!1,h=!1;function u(){const r=Math.min(i+e,o);for(;i<r;i++){const e=t[i];h?h=!1:"\\"===e?h=!0:'"'===e?l=!l:l||("{"===e||"["===e?s.push(e):"}"!==e&&"]"!==e||s.pop()),a+=e}i<o?setTimeout(u,0):n(JSON.parse(a))}setTimeout(u,0)}catch(c){r(c)}})}(t.target.result).then(t=>{const n=Ke(t);if(!n)return fr("Invalid JSON file, please upload a valid capture/session file!"),void ke(!1);Lt=n.captureData,e=n.sessionState,Nt=JSON.stringify(Lt,null,2),Ot=Lt["Final Summary"]??"",r()}).catch(t=>{console.error("JSON parse error:",t),ve("json-parse",t),fr("Error parsing JSON file!")});else{const n=Ke(JSON.parse(t.target.result));if(!n)return fr("Invalid JSON file, please upload a valid capture/session file!"),void ke(!1);Lt=n.captureData,e=n.sessionState,Nt=JSON.stringify(Lt,null,2),Ot=Lt["Final Summary"]??"",r()}},n.onerror=t=>{jt.textContent="Status: Error reading file: "+t,ve("file-read",t),fr("Error reading file!")},n.readAsText(t)}function Je(t){jt.textContent=t,setTimeout(()=>{jt.textContent="PacketSnitch "+ot+": Ready"},6e3)}function Ge(t,e){if(!e||""===e.trim())throw new Error("Enter input data first.");if("hex"===t){const t=e.replace(/0x/gi,"").replace(/[\s,:;-]+/g,"").trim();if(!t)throw new Error("No hex bytes were found.");if(!/^[0-9a-fA-F]+$/.test(t))throw new Error("Hex input can only contain 0-9 and A-F.");if(t.length%2!=0)throw new Error("Hex input must contain an even number of characters.");const n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=parseInt(t.slice(e,e+2),16);return n}if("binary"===t){const t=e.replace(/\s+/g,"");if(!t)throw new Error("No binary bits were found.");if(!/^[01]+$/.test(t))throw new Error("Binary input can only contain 0 and 1.");if(t.length%8!=0)throw new Error("Binary input must be grouped into full 8-bit bytes.");const n=new Uint8Array(t.length/8);for(let e=0;e<t.length;e+=8)n[e/8]=parseInt(t.slice(e,e+8),2);return n}if("base64"===t){const t=e.trim().replace(/^data:[^;]+;base64,/i,"").replace(/\s+/g,"");if(!t)throw new Error("No base64 content was found.");let n="";try{n=atob(t)}catch{throw new Error("Invalid base64 input.")}const r=new Uint8Array(n.length);for(let t=0;t<n.length;t++)r[t]=n.charCodeAt(t);return r}if("decimal"===t){const t=e.split(/[\s,]+/).filter(Boolean);if(!t.length)throw new Error("No decimal byte values were found.");const n=t.map(t=>{const e=Number(t);if(!/^\d+$/.test(t)||e>255)throw new Error("Each decimal value must be a non-negative integer between 0 and 255.");return e});return Uint8Array.from(n)}return(new TextEncoder).encode(e)}function Qe(t){return[...t].map(t=>t>=32&&t<=126?String.fromCharCode(t):".").join("")}function tn(){document.getElementById("data-tools-hex-output").value="",document.getElementById("data-tools-binary-output").value="",document.getElementById("data-tools-decimal-output").value="",document.getElementById("data-tools-decimal-integer-output").value="",document.getElementById("data-tools-ascii-output").value="",document.getElementById("data-tools-base64-output").value="",document.getElementById("data-tools-byte-length").textContent="Byte Length: 0",document.getElementById("data-tools-mime-type").textContent="MIME Type: Unknown",document.getElementById("data-tools-entropy").textContent="Shannon Entropy: 0.00 (Low)",function(){for(const t of en)document.getElementById(t).value=""}(),function(){const t=document.getElementById("data-tools-proto-output");t&&(t.innerHTML="")}()}xe(),ge(),cr("00".repeat(256)),document.getElementById("json-upload").addEventListener("change",function(t){const e=t.target.files[0];e&&(Ft=performance.now(),Je("Processing file: "+e.name),ye(`User selected JSON file name=${e.name} size_bytes=${e.size}`),Xe(e),Vt=!0,t.target.value="")}),document.getElementById("pcap-filename").addEventListener("click",function(t){window.getfileapi.selectFile().then(t=>{t&&(ye(`User selected PCAP file path=${t}`),window.fsize.getFSize().then(t=>{const e=(t/1024).toFixed(2);document.getElementById("pcap-size").textContent=`PCAP size: ${e}kb`,ye(`Capture size recorded bytes=${t} kilobytes=${e}`)}).catch(t=>{console.error("Error fetching file size:",t),ve("file-size-fetch",t)}),function(t){document.getElementById("loading-container").style.display="block",Me(),document.getElementById("status").textContent="Status: Running snitch backend, this may take a few minutes...",document.getElementById("error-container").style.display="none",Ft=performance.now();const e=document.getElementById("use-llm").checked;ye(`Backend analysis started file=${"string"==typeof t?t:t?.name||"unknown"} llm_enabled=${e}`),window.snitchapi.runBackendCommand(t,e).then(t=>{}).catch(t=>{fr("Backend run error!",{backend:!0}),ve("backend-run",t)})}(t))}).catch(t=>{fr("Error selecting PCAP file!"),ve("pcap-select",t)})}),wt("prev-btn"),wt("next-btn"),wt("summary-btn"),wt("data-btn"),wt("setBookmark"),wt("target_hosts").addEventListener("change",function(){const t=wt("target_hosts").value;let e=wt("host_filter");zt=[],ye(`Host target changed host=${t}`),e.value!==t&&(e.value=t)}),wt("target_hosts").addEventListener("click",function(){const t=wt("target_hosts").value;zt=b(Lt,"ip.src.addr: "+t+"|| ip.dst.addr: "+t),ye(`Host target clicked host=${t} packets_returned=${zt.length}`),ar("filtered",null)});const en=["data-tools-md5-output","data-tools-sha1-output","data-tools-sha256-output","data-tools-sha384-output","data-tools-sha512-output","data-tools-sha3-256-output","data-tools-sha3-512-output","data-tools-ripemd160-output","data-tools-whirlpool-output"];function nn(){const t=document.getElementById("data-tools-input"),e=document.getElementById("data-tools-format"),n=document.getElementById("data-tools-error");try{const r=Ge(e.value,t.value),i=[...r].map(t=>t.toString(16).padStart(2,"0").toUpperCase()).join(" "),o=[...r].map(t=>t.toString(2).padStart(8,"0")).join(" "),a=[...r].join(" "),s=Qe(r),l=function(t){let e="";return t.forEach(t=>{e+=String.fromCharCode(t)}),btoa(e)}(r),h=function(t){if(!t.length)return 0;const e=new Array(256).fill(0);t.forEach(t=>{e[t]+=1});let n=0;return e.forEach(e=>{if(!e)return;const r=e/t.length;n-=r*Math.log2(r)}),n}(r),u=function(t){return t>=ft?"High":t>=pt?"Medium":"Low"}(h),c=r.length>mt?`Input exceeds ${mt} bytes for decimal integer display`:function(t){let e=0n;return t.forEach(t=>{e=(e<<8n)+BigInt(t)}),e.toString(10)}(r);document.getElementById("data-tools-hex-output").value=i,document.getElementById("data-tools-binary-output").value=o,document.getElementById("data-tools-decimal-output").value=a,document.getElementById("data-tools-decimal-integer-output").value=c,document.getElementById("data-tools-ascii-output").value=s,document.getElementById("data-tools-base64-output").value=l,document.getElementById("data-tools-byte-length").textContent=`Byte Length: ${r.length}`,document.getElementById("data-tools-mime-type").textContent=`MIME Type: ${function(t){if(!t||!t.length)return"application/octet-stream";const e=e=>e.every((e,n)=>t[n]===e);if(e([137,80,78,71]))return"image/png";if(e([255,216,255]))return"image/jpeg";if(e([71,73,70,56]))return"image/gif";if(e([37,80,68,70]))return"application/pdf";if(e([80,75,3,4]))return"application/zip";if(e([31,139]))return"application/gzip";if(e([127,69,76,70]))return"application/x-elf";const n=(new TextDecoder).decode(t),r=n.trim();if(r.startsWith("{")||r.startsWith("["))try{return JSON.parse(r),"application/json"}catch{}const i=[...n].filter(t=>{const e=t.charCodeAt(0);return e>=32&&e<=126||"\n"===t||"\r"===t||"\t"===t}).length;return n.length>0&&i/n.length>dt?"text/plain; charset=utf-8":"application/octet-stream"}(r)}`,document.getElementById("data-tools-entropy").textContent=`Shannon Entropy: ${h.toFixed(2)} (${u})`,n.textContent="",function(t){const e=p.lib.WordArray.create(t),n=function(t){let e="";for(let n=0;n<t.length;n+=32768){const r=t.subarray(n,n+32768);e+=String.fromCharCode(...r)}return e}(t);document.getElementById("data-tools-md5-output").value=p.MD5(e).toString(p.enc.Hex),document.getElementById("data-tools-sha1-output").value=p.SHA1(e).toString(p.enc.Hex),document.getElementById("data-tools-sha256-output").value=p.SHA256(e).toString(p.enc.Hex),document.getElementById("data-tools-sha384-output").value=p.SHA384(e).toString(p.enc.Hex),document.getElementById("data-tools-sha512-output").value=p.SHA512(e).toString(p.enc.Hex),document.getElementById("data-tools-sha3-256-output").value=m(t),document.getElementById("data-tools-sha3-512-output").value=g(t),document.getElementById("data-tools-ripemd160-output").value=p.RIPEMD160(e).toString(p.enc.Hex);const r=t.length>0?y.encSync(n,"hex"):"";document.getElementById("data-tools-whirlpool-output").value=r}(r),on(r)}catch(t){tn(),n.textContent=t&&"object"==typeof t&&"message"in t?t.message:String(t)}}function rn(t){const e=new TextDecoder("utf-8",{fatal:!1}).decode(t).split(/\r?\n/);if(!e.length)return null;const n=e[0].trim(),r=n.match(/^([A-Z]+)\s+(\S+)\s+(HTTP\/[\d.]+)$/),i=n.match(/^(HTTP\/[\d.]+)\s+(\d{3})\s*(.*)/);if(!r&&!i)return null;const o=e.findIndex((t,e)=>e>0&&""===t.trim()),a=e.slice(1,o>0?o:e.length),s={};a.forEach(t=>{const e=t.indexOf(":");e>0&&(s[t.slice(0,e).trim()]=t.slice(e+1).trim())});const l=[];if(r?(l.push({name:"Type",value:"Request"},{name:"Method",value:r[1]},{name:"URL",value:r[2]},{name:"Version",value:r[3]}),["Host","User-Agent","Content-Type","Content-Length","Accept","Accept-Encoding","Connection","Authorization","Referer","Cookie"].forEach(t=>{s[t]&&l.push({name:t,value:s[t]})})):(l.push({name:"Type",value:"Response"},{name:"Version",value:i[1]},{name:"Status Code",value:i[2]},{name:"Status Message",value:i[3]||"—"}),["Server","Content-Type","Content-Length","Content-Encoding","Transfer-Encoding","Connection","Location","Set-Cookie","Cache-Control","Date"].forEach(t=>{s[t]&&l.push({name:t,value:s[t]})})),o>0&&o<e.length-1){const t=e.slice(o+1).join("\n").trim();t&&l.push({name:"Body (preview)",value:t.length>200?t.slice(0,200)+"…":t})}return{protocol:"HTTP",fields:l}}function on(t){const e=document.getElementById("data-tools-proto-select"),n=e?e.value:"auto";let r=n;"auto"===r&&(r=function(t){const e=new TextDecoder("utf-8",{fatal:!1}).decode(t.slice(0,256));if(/^SSH-/.test(e))return"ssh";if(/^(GET|POST|PUT|DELETE|HEAD|OPTIONS|PATCH|CONNECT|TRACE)\s/.test(e)||/^HTTP\/[\d.]+ \d{3}/.test(e))return"http";if(/^(HELO|EHLO|MAIL FROM|RCPT TO|DATA|QUIT)\b/i.test(e)||/^\d{3}[\s-]/.test(e))return"smtp";if(/^\+OK/.test(e)||/^-ERR/.test(e)||/^(USER|PASS|STAT|LIST|RETR|DELE|QUIT)\b/i.test(e))return"pop3";if(/^\* /.test(e)||/^\+ /.test(e)||/^\S+ (OK|NO|BAD|PREAUTH|BYE)\b/i.test(e)||/^\S+ (SELECT|LOGIN|FETCH|AUTHENTICATE)\b/i.test(e))return"imap";const n=new Set([240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]);for(let e=0;e+1<t.length;e++)if(255===t[e]&&n.has(t[e+1]))return"telnet";return null}(t));let i=null;switch(r){case"http":i=rn(t);break;case"telnet":i=function(t){const e={0:"Binary",1:"Echo",3:"Suppress Go Ahead",5:"Status",24:"Terminal Type",31:"Window Size",32:"Terminal Speed",34:"Linemode",39:"New Environment"},n=[];let r="",i=0,o=!1;for(;i<t.length;)if(255===t[i]){if(o=!0,i++,i>=t.length)break;const r=t[i++];if(251===r||252===r||253===r||254===r){if(i<t.length){const o=t[i++],a=251===r?"WILL":252===r?"WONT":253===r?"DO":"DONT";n.push(`${a} ${e[o]??`Option ${o}`}`)}}else if(250===r)for(;i<t.length;){if(255===t[i]&&i+1<t.length&&240===t[i+1]){i+=2;break}i++}}else{const e=t[i++];e>=32&&e<127?r+=String.fromCharCode(e):10===e?r+="\n":13===e&&(r+="\r")}if(!o&&!r.trim())return null;const a=[];if(n.length&&a.push({name:"Negotiations",value:n.join(", ")}),r.trim()){const t=r.trim();a.push({name:"Text",value:t.length>500?t.slice(0,500)+"…":t})}return a.length?{protocol:"Telnet",fields:a}:null}(t);break;case"ssh":i=function(t){const e=new TextDecoder("utf-8",{fatal:!1}).decode(t.slice(0,512)),n=e.match(/^SSH-([\S]+)\r?\n/);if(!n)return null;const r=n[1],i=r.indexOf("-"),o=[{name:"Protocol Version",value:i>=0?r.slice(0,i):r},{name:"Software Version",value:i>=0?r.slice(i+1):"—"}],a=e.indexOf("\n");return a>0&&t.length>a+1&&o.push({name:"Additional Data",value:t.length-a-1+" bytes (key exchange)"}),{protocol:"SSH / OpenSSH",fields:o}}(t);break;case"pop3":i=function(t){const e=new TextDecoder("utf-8",{fatal:!1}).decode(t).split(/\r?\n/).filter(t=>t.trim());if(!e.length)return null;const n=new Set(["USER","PASS","STAT","LIST","RETR","DELE","NOOP","RSET","QUIT","APOP","TOP","UIDL"]),r=[];let i=!1;for(const t of e){if(t.startsWith("+OK")){r.push({name:"Response",value:"+OK"});const e=t.slice(3).trim();e&&r.push({name:"Message",value:e}),i=!0}else if(t.startsWith("-ERR")){r.push({name:"Response",value:"-ERR"});const e=t.slice(4).trim();e&&r.push({name:"Error",value:e}),i=!0}else{const e=t.split(/\s+/),o=e[0].toUpperCase();n.has(o)&&(r.push({name:"Command",value:o}),e.length>1&&r.push({name:"Argument",value:e.slice(1).join(" ")}),i=!0)}if(r.length>=10)break}return i?{protocol:"POP3",fields:r}:null}(t);break;case"imap":i=function(t){const e=new TextDecoder("utf-8",{fatal:!1}).decode(t).split(/\r?\n/).filter(t=>t.trim());if(!e.length)return null;const n=new Set(["OK","NO","BAD","PREAUTH","BYE"]),r=new Set(["CAPABILITY","NOOP","LOGOUT","AUTHENTICATE","LOGIN","SELECT","EXAMINE","CREATE","DELETE","RENAME","SUBSCRIBE","UNSUBSCRIBE","LIST","LSUB","STATUS","APPEND","CHECK","CLOSE","EXPUNGE","SEARCH","FETCH","STORE","COPY","UID","IDLE"]),i=[];let o=!1;for(const t of e){if(t.startsWith("* ")){const e=t.slice(2).trim();i.push({name:"Untagged",value:e.length>100?e.slice(0,100)+"…":e}),o=!0}else if(t.startsWith("+ "))i.push({name:"Continuation",value:t.slice(2).trim()}),o=!0;else{const e=t.match(/^(\S+)\s+(\S+)\s*(.*)/);if(e){const t=e[1],a=e[2].toUpperCase(),s=e[3];if(n.has(a)){const e=`${a} ${s}`.trim();i.push({name:`[${t}] Status`,value:e.length>100?e.slice(0,100)+"…":e}),o=!0}else r.has(a)&&(i.push({name:`[${t}] Command`,value:a}),s&&i.push({name:"Arguments",value:s.length>100?s.slice(0,100)+"…":s}),o=!0)}}if(i.length>=12)break}return o?{protocol:"IMAP",fields:i}:null}(t);break;case"smtp":i=function(t){const e=new TextDecoder("utf-8",{fatal:!1}).decode(t).split(/\r?\n/).filter(t=>t.trim());if(!e.length)return null;const n=new Set(["HELO","EHLO","MAIL","RCPT","DATA","RSET","VRFY","EXPN","NOOP","QUIT","AUTH","STARTTLS"]),r=[];let i=!1;for(const t of e){const e=t.match(/^(\d{3})([\s-])(.*)/);if(e){const t=`Response ${e[1]}${"-"===e[2]?" (cont.)":""}`;r.push({name:t,value:e[3]}),i=!0}else{const e=t.split(/\s+/),o=e[0].toUpperCase();if(n.has(o)){if(r.push({name:"Command",value:o}),e.length>1){const t=e.slice(1).join(" ");r.push({name:"Argument",value:t.length>100?t.slice(0,100)+"…":t})}i=!0}}if(r.length>=12)break}return i?{protocol:"SMTP",fields:r}:null}(t);break;default:r=null}!function(t,e,n){const r=document.getElementById("data-tools-proto-output");if(!r)return;if(de=t||null,r.innerHTML="",!t){const t=document.createElement("span");return t.className="data-tools-proto-none",t.textContent="auto"===e?"No known protocol detected":`Could not decode as ${(n||e).toUpperCase()}`,void r.appendChild(t)}const i=document.createElement("table");i.className="data-tools-proto-table";const o=document.createElement("tr"),a=document.createElement("th");a.textContent=`${t.protocol} Field`;const s=document.createElement("th");s.textContent="Value",o.appendChild(a),o.appendChild(s),i.appendChild(o),t.fields.forEach(t=>{const e=document.createElement("tr"),n=document.createElement("td");n.textContent=t.name;const r=document.createElement("td");r.textContent=t.value,e.appendChild(n),e.appendChild(r),i.appendChild(e)}),r.appendChild(i)}(i,n,r)}function an(t=st){ue=St,Je("Status: Displaying data conversion tools"),ye("User opened data conversion tools view"),document.getElementById("prev-btn").style.display="none",document.getElementById("next-btn").style.display="none",document.getElementById("packetInfoPane").style.display="none",document.getElementById("packetPayloadPane").style.display="none",document.getElementById("summary_box").style.display="none",document.getElementById("stats_box").style.display="none",document.getElementById("list_box").style.display="none",document.getElementById("notes_box").style.display="none",document.getElementById("crypt_box").style.display="none",document.getElementById("keystore_box").style.display="none",document.getElementById("rightside").style.display="none",document.getElementById("data_tools_box").style.display="flex",bt(t)}function sn(){ue=kt,Je("Status: Displaying session notes"),ye("User opened notes workspace"),document.getElementById("prev-btn").style.display="none",document.getElementById("next-btn").style.display="none",document.getElementById("packetInfoPane").style.display="none",document.getElementById("packetPayloadPane").style.display="none",document.getElementById("summary_box").style.display="none",document.getElementById("stats_box").style.display="none",document.getElementById("list_box").style.display="none",document.getElementById("data_tools_box").style.display="none",document.getElementById("crypt_box").style.display="none",document.getElementById("keystore_box").style.display="none",document.getElementById("notes_box").style.display="flex",document.getElementById("rightside").style.display="block";const t=document.getElementById("rightside-data"),e=document.getElementById("rightside-notes");t&&(t.hidden=!0),e&&(e.hidden=!1),ze()}function ln(t,e=""){const n=document.getElementById(t)?.textContent||"",r=n.split("\n")[0]?.trim();return r||e}const hn=V({constants:{MAIN_TAB_CRYPT:It,CRYPT_SSL_SUBTAB:ie,CRYPT_PGP_SUBTAB:oe,CRYPT_OPENSSH_SUBTAB:ae,SESSION_KEYCHAIN_LABEL:Q,STRICT_IPV4_REGEX:/^(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}$/},getCapturedPackets:()=>Lt,getJsonCapture:()=>Nt,setActiveMainTab:t=>{ue=t},setActiveCryptSubtab:t=>{ce=t},statusUpdate:Je,writeLogEntry:ye,doError:fr,logErrorEntry:ve,filterInputEl:Xt,syncFilterHighlight:Te,runFilterQuery:Oe,addSessionKeystoreEntry:(...t)=>he.addSessionKeystoreEntry(...t),getFirstLineOrFallback:ln,sendDecryptedToConv:({hexValue:t,utf8Value:e,sourceLabel:n})=>{const r=document.getElementById("data-tools-input"),i=document.getElementById("data-tools-format"),o=String(t||"").trim(),a=String(e||"");o?(r.value=o,i.value="hex"):(r.value=a,i.value="ascii"),an(st),nn()}}),{setCryptSubtab:un,applyCryptCertificateText:cn,applyCryptPrivateKeyText:dn,readCryptTextFile:fn,applyCryptFilterForActiveEntry:pn,loadEncounteredCertificateIntoCrypt:mn,refreshCryptEncounteredEntries:gn,showCryptWorkspace:yn,decryptActiveEntryWithLoadedKey:bn,sendDecryptedPayloadToConvTab:vn,clearCryptDecryptionOutput:An}=hn,wn=et({constants:{MAIN_TAB_LIST:Bt},getJsonCapture:()=>Nt,getCapturedPackets:()=>Lt,getBookmarkList:()=>Kt,setActiveMainTab:t=>{ue=t},statusUpdate:Je,writeLogEntry:ye,hostFilterEl:Dt,filterInputEl:Xt,syncFilterHighlight:Te,runFilterQuery:Oe,getFilteredPackets:()=>zt,setPacketsForHost:t=>{$t=t},setIndex:t=>{Wt=t},setCurrentIp:t=>{Rt=t},setCurrentPacketKey:t=>{Ht=t},syncBookmarkDropdown:ir,setActivePacketCursor:Vn,showAllData:pr,infoPanel:dr,popHexGrid:cr,populateDataTypes:sr}),{showPacketList:En}=wn;let Mn="",Cn=null,_n=null,xn={},Bn="";const kn=wt("convert-context-menu"),Sn={copy:wt("ctx-copy"),paste:wt("ctx-paste"),saveJson:wt("ctx-save-json"),exportPacket:wt("ctx-export-packet"),exportPayload:wt("ctx-export-payload"),hex:wt("convert-context-hex"),binary:wt("convert-context-binary"),base64:wt("convert-context-base64"),decimal:wt("convert-context-decimal"),ascii:wt("convert-context-ascii"),loadCursorAscii:wt("convert-context-load-cursor-ascii"),loadPayload:wt("convert-context-load-payload"),copyHex:wt("convert-context-copy-hex"),copyAscii:wt("convert-context-copy-ascii"),copyRaw:wt("convert-context-copy-raw"),filterIp:wt("ctx-filter-ip"),filterPort:wt("ctx-filter-port"),filterMac:wt("ctx-filter-mac"),filterProtocol:wt("ctx-filter-protocol"),filterMime:wt("ctx-filter-mime"),filterOrIp:wt("ctx-filter-or-ip"),filterOrPort:wt("ctx-filter-or-port"),filterOrMac:wt("ctx-filter-or-mac"),filterOrProtocol:wt("ctx-filter-or-protocol"),filterOrMime:wt("ctx-filter-or-mime"),filterNotIp:wt("ctx-filter-not-ip"),filterNotPort:wt("ctx-filter-not-port"),filterNotMac:wt("ctx-filter-not-mac"),filterNotProtocol:wt("ctx-filter-not-protocol"),filterNotMime:wt("ctx-filter-not-mime"),filterParenOpen:wt("ctx-filter-paren-open"),filterParenClose:wt("ctx-filter-paren-close"),filterParenWrap:wt("ctx-filter-paren-wrap"),filterClearIp:wt("ctx-filter-clear-ip"),filterClearPort:wt("ctx-filter-clear-port"),filterClearMac:wt("ctx-filter-clear-mac"),filterClearProtocol:wt("ctx-filter-clear-protocol"),filterClearMime:wt("ctx-filter-clear-mime"),keystorePasswordSession:wt("ctx-keystore-password-session"),keystorePasswordPersistent:wt("ctx-keystore-password-persistent"),keystoreKeySession:wt("ctx-keystore-key-session"),keystoreKeyPersistent:wt("ctx-keystore-key-persistent"),keystoreCertSession:wt("ctx-keystore-cert-session"),keystoreCertPersistent:wt("ctx-keystore-cert-persistent"),keystoreCookieSession:wt("ctx-keystore-cookie-session"),keystoreCookiePersistent:wt("ctx-keystore-cookie-persistent"),keystoreUriSession:wt("ctx-keystore-uri-session"),keystoreUriPersistent:wt("ctx-keystore-uri-persistent"),copyCookieJar:wt("ctx-copy-cookie-jar"),saveCookieJar:wt("ctx-save-cookie-jar"),notesSendData:wt("ctx-notes-send-data"),notesSendConvOutput:wt("ctx-notes-send-conv-output"),notesSendConvHashes:wt("ctx-notes-send-conv-hashes"),httpFileSave:wt("ctx-http-file-save"),httpFileLoad:wt("ctx-http-file-load"),httpFilePreview:wt("ctx-http-file-preview")},In={copy:wt("ctx-copy-submenu"),convert:wt("ctx-convert-submenu"),filter:wt("ctx-filter-submenu"),filterAnd:wt("ctx-filter-and-submenu"),filterOr:wt("ctx-filter-or-submenu"),filterNot:wt("ctx-filter-not-submenu"),filterParentheses:wt("ctx-filter-parentheses-submenu"),filterClear:wt("ctx-filter-clear-submenu"),notes:wt("ctx-notes-submenu"),export:wt("ctx-export-submenu"),keystore:wt("ctx-keystore-submenu"),keystorePassword:wt("ctx-keystore-password-submenu"),keystoreKey:wt("ctx-keystore-key-submenu"),keystoreCert:wt("ctx-keystore-cert-submenu"),keystoreCookie:wt("ctx-keystore-cookie-submenu"),keystoreUri:wt("ctx-keystore-uri-submenu"),httpFile:wt("ctx-http-file-submenu")},Tn=wt("convert-context-divider"),Pn=wt("convert-context-save-divider"),Rn=Array.from(kn.querySelectorAll(".ctx-submenu"));function Ln(){Rn.forEach(t=>{t.classList.remove("ctx-submenu-flip-x","ctx-submenu-flip-y")})}function Nn(){Mn="",Cn=null,_n=null,xn={},Bn="",Ln(),kn.hidden=!0}function On(t){return null==t?"":String(t).replace(/\s+/g," ").trim()}function jn(t){const e=On(t).match(ee);return e?e[0]:""}function qn(t,e=!1){const n=On(t),r=n.match(/\b(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}:(\d{1,5})\b/);if(r){const t=Number.parseInt(r[4],10);return t>=0&&t<=65535?String(t):""}if(!e)return"";if(!n.match(/^\d{1,5}$/))return"";const i=Number.parseInt(n,10);return i>=0&&i<=65535?String(i):""}function Dn(t){const e=On(t).match(ne);return e?e[0].toLowerCase():""}function Un(t){const e=On(t).replace(/^mime(?:\s+type)?\s*:\s*/i,"").trim();if(!e)return"";const n=e.split(";")[0].trim();return re.test(n)?n.toLowerCase():""}function zn(t){const e=On(t).replace(/^protocol(?:\s+name)?\s*:\s*/i,"").replace(/^app(?:lication)?\s+protocol\s*:\s*/i,"").replace(/^transport\s+protocol\s*:\s*/i,"").trim();return e&&e.match(/^[a-z][a-z0-9+_-]*$/i)?e.toLowerCase():""}function Hn(t){return On(t).replace(/[^a-zA-Z0-9:./+-]/g,"").trim()}function Fn(){return window.getSelection()?.toString().trim()||""}function $n(t){if(!Array.isArray(t))return[];const e=[],n=t=>{const n="string"==typeof t?t.trim():String(t||"").trim();n&&n.includes("=")&&(e.includes(n)||e.push(n))};return t.forEach(t=>{const e=String(t?.name||"").trim().toLowerCase(),r="string"==typeof t?.value?t.value.trim():"";r&&("cookie"!==e?"set-cookie"===e&&n(r):function(t){if("string"!=typeof t||!t.trim())return[];const e=[];let n="",r=!1,i=!1;for(const o of t)if(i)n+=o,i=!1;else if("\\"===o&&r)n+=o,i=!0;else if('"'!==o){if(";"===o&&!r){const t=n.trim();t&&e.push(t),n="";continue}n+=o}else r=!r,n+=o;const o=n.trim();return o&&e.push(o),e}(r).forEach(t=>{n(t)}))}),e}function Wn(t){return $n(t).join("\n")}function Yn(t){if(!Mn)return;const e=document.getElementById("data-tools-input"),n=document.getElementById("data-tools-format");e.value=Mn,n.value=t,an(),nn(),Nn(),ye(`Context conversion loaded format=${t}`)}function Kn(t,e){if(e<0||!t)return null;const n=hr(t);let r="";for(let t=e;t<n.length&&lr(n.charCodeAt(t));t++)r+=n[t];if(r)return{value:r,format:"ascii"};const i=2*e,o=t.slice(i,i+2);return 2===o.length&&/^[0-9A-Fa-f]{2}$/.test(o)?{value:o.toUpperCase(),format:"hex"}:null}function Zn(){return Number.isInteger(Yt)&&Yt>=0?Yt:null}function Vn(t){const e=Number.parseInt(t,10);return Yt=Number.isNaN(e)||e<0?null:e,Yt}function Xn(){const t=Zn(),e=$t?.[t]?.["Packet Info"]?.["Raw data"]?.Payload?.["Hex Encoded"];return"string"==typeof e?e:""}function Jn(){return function(t){if(!t)return"";const e=t.toLowerCase().indexOf("0d0a0d0a");if(-1===e)return"";const n=e+8;return n>=t.length?"":t.slice(n)}(Xn())}function Gn(t,e){return!Number.isInteger(e)||e<0?null:t?.[e]||null}async function Qn(t,e){if(t){try{await navigator.clipboard.writeText(t)}catch{const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-9999px",document.body.appendChild(e),e.focus(),e.select(),document.execCommand("copy"),document.body.removeChild(e)}Je(`Status: Copied ${e} to clipboard`),ye(`Copied ${e} length=${t.length}`)}else Je(`Status: No ${e.toLowerCase()} available to copy`)}function tr(){const t=function(){const t=Zn();if(null===t)return null;const e=$t?.[t]?.["Packet Info"];if(!e)return null;const n=e.Protocol||"TCP";return e[n]?.HTTP||null}();return t&&t["Content-Type"]||"application/octet-stream"}function er(t,e="&&",n=!1){const r=xn[t];if(Nn(),!r)return void Je("Status: No matching filter value found for this selection");if("&&"!==e&&"||"!==e)return void Je("Status: Could not add filter query — please try again");const i=n?`!(${r})`:r,o=Xt.value.trim(),a=n?i:i.includes("||")||i.includes("&&")?`(${i})`:i;o?/(?:\|\||&&)\s*$/.test(o)?Xt.value=`${o} ${a}`:Xt.value=`${o} ${e} ${a}`:Xt.value=i,Te(),Xt.focus(),Je("Status: Filter query populated — press Enter to apply"),ye(`Context menu filter populated type=${t} negated=${n} query="${Xt.value}"`)}function nr(t){const e=xn[t];Nn(),e?(Xt.value=e,Te(),Xt.focus(),Je("Status: Filter query populated — press Enter to apply"),ye(`Context menu filter cleared and populated type=${t} query="${Xt.value}"`)):Je("Status: No matching filter value found for this selection")}function rr(t){Nn(),"("===t||")"===t?(Xt.value=`${Xt.value}${t}`,Te(),Xt.focus(),Je("Status: Filter query updated — press Enter to apply"),ye(`Context menu filter appended token="${t}" query="${Xt.value}"`)):Je("Status: Could not append parenthesis — please try again")}function ir(t){document.getElementById("selectBookmark").value=Kt.includes(t)?t:""}function or(){let t=0;if(null==Lt.Host)return 0;for(const e in Lt.Host)t+=Lt.Host[e].length;return t}function ar(t,e){ue=_t;const n=Ht,r=Zn();document.getElementById("prev-btn").style.display="block",document.getElementById("next-btn").style.display="block",document.getElementById("loading-container").style.display="none",document.getElementById("summary_box").style.display="none",document.getElementById("stats_box").style.display="none",document.getElementById("list_box").style.display="none",document.getElementById("notes_box").style.display="none",document.getElementById("data_tools_box").style.display="none",document.getElementById("crypt_box").style.display="none",document.getElementById("keystore_box").style.display="none",document.getElementById("packetInfoPane").style.display="block",document.getElementById("packetPayloadPane").style.display="block",document.getElementById("welcome").style.display="none",pr();const i=document.getElementById("rightside-data"),o=document.getElementById("rightside-notes");i&&(i.hidden=!1),o&&(o.hidden=!0),document.getElementById("total-packets").innerHTML="Total Packets: "+or(),void 0===t&&ar("first-load");let a=Lt.Host[Dt.value];if("filtered"===t&&(a=[],document.getElementById("filter-returned").textContent="Filtered Packets: "+zt.length,a=zt,ye(`Filtered packet navigation packets_returned=${a.length}`)),"bookmark"===t)null==e.Host||null==e.Packet?(Je("Status: Invalid bookmark data, reverting to first packet"),fr("Invalid bookmark data, missing host or packet index!"),ar("first-load")):(Wt=e.Packet-1,Vn(Wt),Je("Navigating to bookmark: "+e.Host+" packet "+e.Packet),ye(`Navigating bookmark host=${e.Host} packet=${e.Packet}`));else{const t=function(t,e){if(!Array.isArray(t)||!e||"string"!=typeof e)return-1;const n=e.lastIndexOf(":");if(n<0)return-1;const r=e.slice(0,n),i=e.slice(n+1);return t.findIndex(t=>{const e=t?.["Packet Info"];if(!e)return!1;const n=e?.IP?.["Source IP"],o=e?.Index;return String(n)===r&&String(o)===i})}(a,n);Wt=t>=0?t:Number.isInteger(r)&&r>=0&&r<a?.length?r:0,Vn(Wt)}if(a&&0!==a.length){if(null==a||0!=a.length&&null!=a[0]||(Je("Status: No packet information found for this host"),document.getElementById("main").innerHTML="Please select a json file!"),null==a||null==a[Wt])return Je("Status: No packet information found for this host"),void fr("No packet information found for this host!");{Rt=a[Wt]["Packet Info"].IP["Source IP"],Ht=Rt+":"+a[Wt]["Packet Info"].Index,ir(Ht),console.log(a[Wt]);const e=a[Wt]["Packet Info"]["Raw data"].Payload["Hex Encoded"];dr(a),cr(e),sr(a),Be(t||"first-load")}}else Je("Status: No packets")}function sr(t){const e=document.getElementById("types-list");e.textContent="";const n=document.getElementById("mime-type"),r=(document.getElementById("charset"),document.getElementById("encoding")),i=document.getElementById("language");r.textContent="",i.textContent="";let o="",a="";$t=t;let s=JSON.parse(JSON.stringify($t[Wt]["Extra Info"].Traits.Characters.Charset));"Unavailable for high entropy data"==$t[Wt]["Extra Info"].Traits.Characters.Encoding?o=JSON.parse(JSON.stringify($t[Wt]["Extra Info"].Traits.Characters.Encoding)):(o=JSON.stringify($t[Wt]["Extra Info"].Traits.Characters.Encoding.encoding),a=JSON.stringify($t[Wt]["Extra Info"].Traits.Characters.Encoding.language));const l=JSON.parse(JSON.stringify($t[Wt]["Extra Info"]["MIME Type"]));let h=JSON.parse(JSON.stringify($t[Wt]["Extra Info"]["Data Types"])),u="";if("N/A"!=$t[Wt]["Extra Info"].Traits["Server Info"]["Encryption Data"]&&null!=$t[Wt]["Extra Info"].Traits["Server Info"]["Encryption Data"]){u=$t[Wt]["Extra Info"].Traits["Server Info"]["Encryption Data"]["SSL Version"];const t=$t[Wt]["Extra Info"].Traits["Network Data"]["Port Protcol"];h=[],h.push(u+" encrypted stream"),h.push(t+" protocol data")}n.textContent="MIME type: "+l,s=""==s?"Unknown":s,o=""==o?"Unknown":o,void 0!==o&&(r.textContent="Payload Encoding: "+o.replace(/"/g,"")),void 0!==a&&(i.textContent="Payload Language: "+a.replace(/"/g,"")),h.forEach(t=>{const n=document.createElement("li");n.textContent=t,e.appendChild(n)})}function lr(t){return t>=32&&t<=126}function hr(t){let e="";for(let n=0;n<t.length;n+=2)e+=String.fromCharCode(parseInt(t.substr(n,2),16));return e}function ur(t,e){return t.length<=e?t:t.slice(0,e)}function cr(t){const e=document.getElementById("payloadascii"),n=hr(t);document.getElementById("hexg").textContent="";const r=document.getElementById("hexg");(t.toUpperCase().match(/.{1,2}/g)||[]).forEach((t,e)=>{const n=document.createElement("div");n.classList.add("griditem"),n.textContent=t,n.dataset.byteIndex=String(e),r.appendChild(n)}),document.querySelectorAll(".griditem").forEach((t,r)=>{t.addEventListener("mouseenter",i=>{const o=document.getElementById("asciiOffset"),a=document.getElementById("asciiText");e.style.top=i.clientY+18+"px",e.style.left=i.clientX+18+"px",e.classList.add("visible"),a.innerHTML="";const s=function(t){let e="";for(let r=t;r<n.length&&lr(n.charCodeAt(r));r++)e+=String.fromCharCode(n.charCodeAt(r));return e}(r);window.currentPrintableSequence=s,a.textContent+=ur(s,32);for(let t=0;t<ur(s,32).length;t++)document.querySelectorAll(".griditem")[r+t].classList.add("highlight");const l=parseInt(ur(s,32).length,10).toString(16).padStart(2,"0").toUpperCase(),h=r.toString(16).padStart(4,"0").toUpperCase();0==s.length&&(a.textContent="0x"+t.textContent),o.textContent="0x"+h+":"+l})}),document.querySelectorAll(".griditem").forEach(t=>{t.addEventListener("mouseleave",()=>{e.classList.remove("visible"),document.querySelectorAll(".griditem").forEach(t=>t.classList.remove("highlight"))})})}function dr(t){const e=document.getElementById("packetInfoPane");document.getElementById("rightside").style.display="block",document.getElementById("leftside").style.display="block",e.innerHTML,e.style.display="block";const n=t[Wt];let r=n["Packet Info"],i=n["Extra Info"],o=r["Packet Timestamp"],a=r.IP["IP Checksum"];const s=r.Protocol||"TCP",l=r[s]||{},h="TCP"===s?l["TCP checksum"]:"UDP"===s?l["UDP checksum"]:"ICMP"===s?l["ICMP Checksum"]:"N/A",u="TCP"===s?l["TCP layer length"]:"UDP"===s?l["UDP length"]:"ICMP"===s?l["Wire length"]:"N/A",c="TCP"===s&&l["TCP Flag Data"]?l["TCP Flag Data"].Flags:"N/A",d=r.IP["Source IP"]+":"+(l["Source port"]??"?"),f=r.IP["Destination IP"]+":"+(l["Destination port"]??"?"),p="object"==typeof r["Ethernet Frame"]&&null!==r["Ethernet Frame"]?r["Ethernet Frame"]:{},m=p["MAC Source"]??"N/A",g=p["MAC Destination"]??"N/A",y=p["MAC Source Vendor"]??"N/A",b=p["MAC Destination Vendor"]??"N/A",v=r.IP["IP layer length"],A=l["Wire length"],w=r["Raw data"]["Payload Length"];let V="",X="",J="";"N/A"==i.Traits["Server Info"]["Encryption Data"]||0==i.Traits["Server Info"].hasOwnProperty("Encryption Data")?(V="Not encrypted",X="Not encrypted",J=""):(V=i.Traits["Server Info"]["Encryption Data"]["SSL Cert"]??"Not available",X=i.Traits["Server Info"]["Encryption Data"]["SSL Version"]??"Not available",J=i.Traits["Server Info"]["Encryption Data"]["Encrypted With"].join("<br>Extra algo info: ")??"No algorithm information available");const G=i.Decompressed.Decompressed;let Q;Q=null==i.Traits["Network Data"].Hostnames.Hostnames?"localhost":"localhost<br>"+i.Traits["Network Data"].Hostnames.Hostnames.join("<br>");const tt=function(t){const e=/\b((25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)\.){3}(25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)\b/;return t.filter(t=>!e.test(t))}(Q.split("<br>")).join("<br>");Q=""==tt?"localhost":tt;const et=i.Traits["Server Info"]["Page Title"],nt=(i.Traits["Server Info"].Encrypted,i.Traits["Network Data"]["Port Protcol"]),rt=i.Traits["Network Data"]["Port Description"],it=i.Traits["Network Data"]["Source IP"].Class,ot=i.Traits["Network Data"]["Destination IP"].Class;document.getElementById("sidedatatable").textContent="",document.getElementById("protoInfoSrc").textContent="Source",document.getElementById("protoInfoDest").textContent="Destination",document.getElementById("comp").textContent="Unknown",(0==G||null==G)&&i["Data Types"].forEach(t=>{(t.includes("Zlib")||t.includes("zlib"))&&(document.getElementById("comp").textContent="Compressed with zlib",console.log("Data type identified: "+t)),(t.includes("Gzip")||t.includes("gzip"))&&(document.getElementById("comp").textContent="Compressed with gzip"),t.includes("Zip")&&(document.getElementById("comp").textContent="Compressed with zip")}),1==G&&(document.getElementById("comp").textContent="Not regonized as compressed data"),document.getElementById("website").textContent=null==et||"N/A"==et?"Not available for this server":et;const at=Q.replace(/(<br\s*\/?>\s*)+/gi,"<br>");document.getElementById("dns").innerHTML=at,document.getElementById("crypt").innerHTML=null==J||""==J?"Not encrypted":"Encrypted with: "+X+"<br>"+J,document.getElementById("protocols").innerHTML="Unknown"==nt?"Unknown":"Protocol Name: "+nt+"<br>Protocol Description: "+rt,E([{name:"IP Checksum",value:a},{name:s+" Checksum",value:h},{name:"Flags",value:c},{name:"IP Length",value:v},{name:s+" Length",value:u},{name:"Wire Length",value:A},{name:"Payload Length",value:w}],["Protocol data","Details"],"sidedatatable"),M(l),C(s,l),_(l),x(l),B(l),k(l),S(l),Y(l),I(l),T(l),P(l),R(l),L(l),N(l),O(l),j(l),q(l),D(l),U(l),z(l),H(l),F(l),$(l),W(l),K(l),Z(l);const st=["Packet","Data"];E([{name:"IP:Port",value:d},{name:"MAC",value:m},{name:"MAC Vendor",value:y},{name:"Network Class",value:it}],st,"protoInfoSrc"),E([{name:"IP:Port",value:f},{name:"MAC",value:g},{name:"MAC Vendor",value:b},{name:"Network Class",value:ot}],st,"protoInfoDest");const lt=i.Traits["Shannon Entropy"];document.getElementById("timestamp").textContent="Timestamp "+o,document.getElementById("sideloctable").textContent="",document.getElementById("entropybox").textContent="९ "+lt.toFixed(2);if(document.getElementById("entropybox").className=lt>=6.8?"high":lt>=4.5?"med":"low",document.querySelectorAll("table tr td:nth-child(1), table tr th:nth-child(1)").forEach(t=>{t.style.width="23%"}),null==i.Traits["Network Data"]["Source IP"].Location.City)E([{name:"Location",value:"Localnet"}],["Source Host","Location"],"sideloctable");else{const t=[{name:"Country",value:i.Traits["Network Data"]["Source IP"].Location.Country},{name:"City",value:i.Traits["Network Data"]["Source IP"].Location.City},{name:"Timezone",value:i.Traits["Network Data"]["Source IP"].Location["Time Zone"]}];E(t,["Source Host","Location"],"sideloctable")}if(null==i.Traits["Network Data"]["Destination IP"].Location.City)E([{name:"Location",value:"Localnet"}],["Destination Host","Location"],"sideloctable");else{const t=[{name:"Country",value:i.Traits["Network Data"]["Destination IP"].Location.Country},{name:"City",value:i.Traits["Network Data"]["Destination IP"].Location.City},{name:"Timezone",value:i.Traits["Network Data"]["Destination IP"].Location["Time Zone"]}];E(t,["Destination Host","Location"],"sideloctable")}}function fr(t,{backend:e=!1}={}){console.error("Error from backend:",t),e?be(`Error shown message="${t}"`):ye(`Error shown message="${t}"`);const n=document.getElementById("loading-container"),r=document.getElementById("error-container");Ce(),n.style.display="none",r.style.display="block",r.textContent=t,r.addEventListener("click",()=>{r.style.display="none",n.style.display="none"})}function pr(){document.getElementById("prev-btn").style.opacity="1",document.getElementById("next-btn").style.opacity="1",document.getElementById("data-types").style.display="block",document.getElementById("protoInfo").style.display="block",document.getElementById("timestamp").style.display="block",document.getElementById("rightside").style.display="block",document.getElementById("active-recon").style.display="block",document.getElementById("hexg").hidden=!1,document.getElementById("error-container").style.display="none"}he=X({statusUpdate:Je,writeLogEntry:ye,doError:fr,logErrorEntry:ve,getCapturedPackets:()=>Lt,getJsonCapture:()=>Nt,setActiveMainTab:t=>{ue=t},MAIN_TAB_KEYSTORE:Tt,parseDataToolsInput:Ge,decodeHttpFromBytes:rn,extractCookieJarEntriesFromHttpFields:$n,getTrimmedSelectionText:Fn,hideConvertContextMenu:Nn,getActiveContextConversionText:()=>Mn,getApplyCryptCertificateText:()=>cn,getApplyCryptPrivateKeyText:()=>dn,openExternalUrl:t=>window.browserapi.openExternalUrl(t)}),at({writeLogEntry:ye,statusUpdate:Je,setActiveMainTab:t=>{ue=t}}),function(){const t=document.getElementById("notes-add-btn"),e=document.getElementById("notes-remove-btn"),n=document.getElementById("notes-save-btn"),r=document.getElementById("notes-new-input"),i=document.getElementById("notes-new-color"),o=document.getElementById("notes-select"),a=document.getElementById("notes-editor");t&&e&&n&&r&&i&&o&&a&&(i.value=Pt,t.addEventListener("click",()=>{He(r.value,i.value,"notes-panel")&&(r.value="",r.focus())}),n.addEventListener("click",()=>{!async function(){const t=Array.isArray(fe)&&0!==fe.length?fe.map((t,e)=>{const n=String(t.text||"").trim();return[`Note ${e+1}`,`Color: ${qe(t.color)}`,n].join("\n")}).join("\n\n---\n\n"):"";if(!t)return void Je("Status: No notes available to save");const e=await window.saveapi.saveNotes(t);if(e?.canceled)Je("Status: Save cancelled");else if(e?.success)Je("Status: Notes saved successfully"),ye(`Notes saved entries=${fe.length}`);else{const t=e&&"object"==typeof e&&"error"in e?e.error:"unknown";fr("Notes save failed"),ve("save-notes",t||"unknown"),Je("Status: Notes save failed – "+(t||"unknown error"))}}()}),e.addEventListener("click",Fe),r.addEventListener("keydown",t=>{(t.ctrlKey||t.metaKey)&&"Enter"===t.key&&(t.preventDefault(),He(r.value,i.value,"notes-panel")&&(r.value="",r.focus()))}),o.addEventListener("change",()=>{pe=o.value||null,ze()}),a.addEventListener("input",()=>{const t=Ue();if(!t)return;t.text=a.value;const e=o.options[o.selectedIndex]||null;if(e){const n=String(t.text||"").replace(/\s+/g," ").trim();e.textContent=`${o.selectedIndex+1}. ${n||"(empty note)"}`}}),i.addEventListener("input",()=>{const t=Ue();if(!t)return;t.color=qe(i.value);const e=o.options[o.selectedIndex]||null;e&&(e.style.borderLeft=`8px solid ${t.color}`)}),ze())}(),document.getElementById("close-btn").addEventListener("click",()=>{!async function(){const t=await async function(){if(!Vt||!Lt||!Lt.Host)return"discard";const t=document.getElementById("save-session-dialog");return t?(t.hidden=!1,new Promise(e=>{function n(n){t.hidden=!0,document.getElementById("save-session-save-btn").removeEventListener("click",r),document.getElementById("save-session-discard-btn").removeEventListener("click",i),document.getElementById("save-session-cancel-btn").removeEventListener("click",o),e(n)}function r(){n("save")}function i(){n("discard")}function o(){n("cancel")}document.getElementById("save-session-save-btn").addEventListener("click",r),document.getElementById("save-session-discard-btn").addEventListener("click",i),document.getElementById("save-session-cancel-btn").addEventListener("click",o)})):window.confirm("Save session before exit?")?"save":"cancel"}();if("cancel"!==t){if("save"===t){const t=await Ve("exit-prompt");if(!t?.success)return void Je(t?.canceled?"Status: Exit cancelled":"Status: Exit cancelled due to save failure")}window.quitapi.quitApp()}else Je("Status: Exit cancelled")}()}),document.getElementById("stats-btn").addEventListener("click",function(){Vt?Ae():fr("Please upload a JSON file before accessing packet statistics.")}),document.getElementById("data-tools-btn").addEventListener("click",function(){an()}),document.getElementById("crypt-btn").addEventListener("click",function(){Vt?yn():fr("Please upload a JSON file before accessing crypt tools.")}),document.getElementById("keystore-btn").addEventListener("click",async function(){Vt?await he.unlockPersistentKeystoreAndLoad()&&he.showKeystoreWorkspace():fr("Please upload a JSON file before accessing the keystore.")}),document.getElementById("crypt-keystore-unlock-confirm-btn").addEventListener("click",he.submitKeystoreUnlockDialog),document.getElementById("crypt-keystore-unlock-cancel-btn").addEventListener("click",()=>he.resolveKeystoreUnlockPassword(null)),document.getElementById("crypt-keystore-unlock-password").addEventListener("keydown",t=>{"Enter"===t.key&&he.submitKeystoreUnlockDialog()}),document.getElementById("crypt-keystore-unlock-password-confirm").addEventListener("keydown",t=>{"Enter"===t.key&&he.submitKeystoreUnlockDialog()}),document.getElementById("crypt-keystore-manual-uri-confirm-btn").addEventListener("click",he.submitManualUriFromContextMenuDialog),document.getElementById("crypt-keystore-manual-uri-cancel-btn").addEventListener("click",()=>he.resolveManualUriFromContextMenuDialog(null)),document.getElementById("crypt-keystore-manual-uri-input").addEventListener("keydown",t=>{"Enter"===t.key&&he.submitManualUriFromContextMenuDialog()}),document.getElementById("list-btn").addEventListener("click",function(){Vt?En():fr("Please upload a JSON file before accessing the packet list.")}),document.getElementById("notes-btn").addEventListener("click",function(){Vt?sn():fr("Please upload a JSON file before accessing notes.")}),document.getElementById("conv-subtab-conversions").addEventListener("click",()=>bt(st)),document.getElementById("conv-subtab-hashes").addEventListener("click",()=>bt(lt)),document.getElementById("conv-subtab-decodes").addEventListener("click",()=>bt(ht)),document.getElementById("crypt-subtab-ssl").addEventListener("click",()=>un(ie)),document.getElementById("crypt-subtab-pgp").addEventListener("click",()=>un(oe)),document.getElementById("crypt-subtab-openssh").addEventListener("click",()=>un(ae)),document.getElementById("crypt-refresh-btn").addEventListener("click",()=>{gn()}),document.getElementById("crypt-encountered-list").addEventListener("change",function(){const t=Number(this.value);hn.selectEncounteredEntry(t)}),document.getElementById("crypt-apply-filter-btn").addEventListener("click",pn),document.getElementById("crypt-load-encountered-cert-btn").addEventListener("click",mn),document.getElementById("crypt-load-cert-file-btn").addEventListener("click",()=>document.getElementById("crypt-cert-file-input").click()),document.getElementById("crypt-cert-file-input").addEventListener("change",function(){fn(this,cn),this.value=""}),document.getElementById("crypt-use-cert-input-btn").addEventListener("click",()=>cn(document.getElementById("crypt-cert-input").value,"pasted text")),document.getElementById("crypt-clear-cert-btn").addEventListener("click",()=>{cn("","cleared")}),document.getElementById("crypt-load-key-file-btn").addEventListener("click",()=>document.getElementById("crypt-key-file-input").click()),document.getElementById("crypt-key-file-input").addEventListener("change",function(){fn(this,dn),this.value=""}),document.getElementById("crypt-use-key-input-btn").addEventListener("click",()=>dn(document.getElementById("crypt-key-input").value,"pasted text")),document.getElementById("crypt-clear-key-btn").addEventListener("click",()=>{dn("","cleared")}),document.getElementById("crypt-decrypt-entry-btn").addEventListener("click",bn),document.getElementById("crypt-send-decrypted-conv-btn").addEventListener("click",vn),document.getElementById("crypt-clear-decrypted-btn").addEventListener("click",An),document.getElementById("crypt-save-cert-keystore-btn").addEventListener("click",()=>{he.addCryptKeystoreEntry({type:"certificate",label:document.getElementById("crypt-keystore-label").value,source:"crypt-certificate-loader",content:document.getElementById("crypt-cert-input").value,summary:ln("crypt-cert-preview","Certificate from loader")})}),document.getElementById("crypt-save-key-keystore-btn").addEventListener("click",()=>{he.addCryptKeystoreEntry({type:"private-key",label:document.getElementById("crypt-keystore-label").value,source:"crypt-private-key-loader",content:document.getElementById("crypt-key-input").value,summary:ln("crypt-key-preview","Private key from loader")})}),document.getElementById("crypt-save-secret-keystore-btn").addEventListener("click",()=>{he.addCryptKeystoreEntry({type:"secret",label:document.getElementById("crypt-keystore-label").value,source:"crypt-secret-input",content:document.getElementById("crypt-credential-input").value,summary:"Manual secret/credential entry"})}),document.getElementById("crypt-keystore-mode").addEventListener("change",function(){const t=String(this.value||J);he.setActiveMode(t===G?G:J)}),document.getElementById("crypt-keystore-list").addEventListener("change",function(){const t=he.getActiveCryptKeystoreEntries(),e=Number(this.value);Number.isFinite(e)&&t[e]&&he.renderCryptKeystoreDetails(t[e])}),document.getElementById("crypt-load-keystore-entry-btn").addEventListener("click",()=>{he.loadSelectedCryptKeystoreEntry()}),document.getElementById("crypt-send-to-persistent-btn").addEventListener("click",()=>{he.sendSelectedSessionEntryToPersistent()}),document.getElementById("crypt-delete-keystore-entry-btn").addEventListener("click",()=>{he.deleteSelectedCryptKeystoreEntry()}),document.getElementById("crypt-open-link-btn").addEventListener("click",()=>{he.openSelectedKeystoreLinkInBrowser()}),document.getElementById("data-tools-convert-btn").addEventListener("click",nn),document.getElementById("data-tools-hash-input-reading").addEventListener("input",vt),document.getElementById("data-tools-clear-btn").addEventListener("click",()=>{document.getElementById("data-tools-input").value="",document.getElementById("data-tools-error").textContent="",tn()}),document.getElementById("data-tools-proto-select").addEventListener("change",()=>{const t=document.getElementById("data-tools-input"),e=document.getElementById("data-tools-format");if(t.value.trim())try{on(Ge(e.value,t.value))}catch{}}),Sn.hex.addEventListener("click",()=>Yn("hex")),Sn.binary.addEventListener("click",()=>Yn("binary")),Sn.base64.addEventListener("click",()=>Yn("base64")),Sn.decimal.addEventListener("click",()=>Yn("decimal")),Sn.ascii.addEventListener("click",()=>Yn("ascii")),Sn.loadPayload.addEventListener("click",()=>{!function(){const t=Xn();if(Nn(),!t)return void Je("Status: No raw payload available to load");const e=document.getElementById("data-tools-input"),n=document.getElementById("data-tools-format");e.value=t,n.value="hex",an(),nn(),ye("Context conversion loaded raw payload into Conv tab")}()}),Sn.loadCursorAscii.addEventListener("click",()=>{!function(){const t=Kn(Xn(),Number.parseInt(Cn?.dataset?.byteIndex??"-1",10));if(Nn(),!t)return void Je("Status: No cursor ASCII value available to load");const e=document.getElementById("data-tools-input"),n=document.getElementById("data-tools-format");e.value=t.value,n.value=t.format,an(),nn(),ye(`Context conversion loaded cursor ASCII into Conv tab format=${t.format}`)}()}),Sn.copyHex.addEventListener("click",()=>{!async function(){const t=Xn(),e=Cn?.classList?.contains("griditem")?Cn.textContent.trim():t;await Qn(e,"Hex"),Nn()}()}),Sn.copyAscii.addEventListener("click",()=>{!async function(){const t=Xn(),e=Number.parseInt(Cn?.dataset?.byteIndex??"-1",10),n=t?Qe(Ge("hex",t)):"",r=Cn?.classList?.contains("griditem")?function(t,e){if(e<0)return"";const n=hr(t);let r="";for(let t=e;t<n.length&&lr(n.charCodeAt(t));t++)r+=n[t];if(r.length>0)return r;const i=n.charCodeAt(e);return Number.isNaN(i)?"":lr(i)?n[e]:"."}(t,e):n;await Qn(r,"ASCII"),Nn()}()}),Sn.copyRaw.addEventListener("click",()=>{!async function(){await Qn(Xn(),"Raw payload"),Nn()}()}),Sn.filterIp.addEventListener("click",()=>{er("ip","&&")}),Sn.filterPort.addEventListener("click",()=>{er("port","&&")}),Sn.filterMac.addEventListener("click",()=>{er("mac","&&")}),Sn.filterProtocol.addEventListener("click",()=>{er("protocol","&&")}),Sn.filterMime.addEventListener("click",()=>{er("mime","&&")}),Sn.filterOrIp.addEventListener("click",()=>{er("ip","||")}),Sn.filterOrPort.addEventListener("click",()=>{er("port","||")}),Sn.filterOrMac.addEventListener("click",()=>{er("mac","||")}),Sn.filterOrProtocol.addEventListener("click",()=>{er("protocol","||")}),Sn.filterOrMime.addEventListener("click",()=>{er("mime","||")}),Sn.filterNotIp.addEventListener("click",()=>{er("ip","&&",!0)}),Sn.filterNotPort.addEventListener("click",()=>{er("port","&&",!0)}),Sn.filterNotMac.addEventListener("click",()=>{er("mac","&&",!0)}),Sn.filterNotProtocol.addEventListener("click",()=>{er("protocol","&&",!0)}),Sn.filterNotMime.addEventListener("click",()=>{er("mime","&&",!0)}),Sn.filterParenOpen.addEventListener("click",()=>{rr("(")}),Sn.filterParenClose.addEventListener("click",()=>{rr(")")}),Sn.filterParenWrap.addEventListener("click",()=>{!function(){Nn();const t=Xt.value.trim();t?(Xt.value=`(${t})`,Te(),Xt.focus(),Je("Status: Filter query updated — press Enter to apply"),ye(`Context menu filter wrapped query="${Xt.value}"`)):Je("Status: No filter query available to wrap")}()}),Sn.filterClearIp.addEventListener("click",()=>{nr("ip")}),Sn.filterClearPort.addEventListener("click",()=>{nr("port")}),Sn.filterClearMac.addEventListener("click",()=>{nr("mac")}),Sn.filterClearProtocol.addEventListener("click",()=>{nr("protocol")}),Sn.filterClearMime.addEventListener("click",()=>{nr("mime")}),Sn.copy.addEventListener("click",function(){const t=Fn();Nn(),t?navigator.clipboard.writeText(t).then(()=>{Je("Status: Copied selected text to clipboard"),ye(`Copied selected text length=${t.length}`)}).catch(t=>{console.error("Copy failed:",t),Je("Status: Copy failed – clipboard access denied")}):Je("Status: No text selected to copy")}),Sn.copyCookieJar.addEventListener("click",async function(){const t=Bn;Nn(),await Qn(t,"Cookie Jar")}),Sn.paste.addEventListener("click",function(){const t=_n;Nn(),t?navigator.clipboard.readText().then(e=>{if("INPUT"===t.tagName||"TEXTAREA"===t.tagName){const n="number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd,r=n?t.selectionStart:t.value.length,i=n?t.selectionEnd:t.value.length,o=t.value;return t.value=o.substring(0,r)+e+o.substring(i),n&&(t.selectionStart=t.selectionEnd=r+e.length),void t.dispatchEvent(new Event("input",{bubbles:!0}))}if(t.isContentEditable){t.focus();const n=window.getSelection();if(n&&n.rangeCount>0){const t=n.getRangeAt(0);t.deleteContents();const r=document.createTextNode(e);t.insertNode(r),t.setStartAfter(r),t.setEndAfter(r),n.removeAllRanges(),n.addRange(t)}else t.textContent=(t.textContent||"")+e;t.dispatchEvent(new Event("input",{bubbles:!0}))}}).catch(t=>{console.error("Paste failed:",t),Je("Status: Paste failed – clipboard access denied")}):Je("Status: Paste unavailable for this target")}),Sn.notesSendData.addEventListener("click",()=>{Ye(Fn()||Mn,"context-data")}),Sn.notesSendConvOutput.addEventListener("click",()=>{Ye($e(),"context-conv-output")}),Sn.notesSendConvHashes.addEventListener("click",()=>{Ye(We(),"context-conv-hashes")}),Sn.keystorePasswordSession.addEventListener("click",()=>{he.addToKeystoreFromContextMenu("password",J)}),Sn.keystorePasswordPersistent.addEventListener("click",()=>{he.addToKeystoreFromContextMenu("password",G)}),Sn.keystoreKeySession.addEventListener("click",()=>{he.addToKeystoreFromContextMenu("key",J)}),Sn.keystoreKeyPersistent.addEventListener("click",()=>{he.addToKeystoreFromContextMenu("key",G)}),Sn.keystoreCertSession.addEventListener("click",()=>{he.addToKeystoreFromContextMenu("cert",J)}),Sn.keystoreCertPersistent.addEventListener("click",()=>{he.addToKeystoreFromContextMenu("cert",G)}),Sn.keystoreCookieSession.addEventListener("click",()=>{he.addToKeystoreFromContextMenu("cookie",J)}),Sn.keystoreCookiePersistent.addEventListener("click",()=>{he.addToKeystoreFromContextMenu("cookie",G)}),Sn.keystoreUriSession.addEventListener("click",()=>{he.addManualUriToKeystoreFromContextMenu(J)}),Sn.keystoreUriPersistent.addEventListener("click",()=>{he.addManualUriToKeystoreFromContextMenu(G)}),Sn.saveJson.addEventListener("click",function(){Nn(),Ve("context-menu")}),Sn.exportPacket.addEventListener("click",function(){Nn();const t=Gn($t,Zn());t?window.saveapi.savePacket(t).then(t=>{if(t.canceled)Je("Status: Export cancelled");else if(t.success)Je("Status: Packet exported successfully"),ye("Context menu packet export completed");else{const e=t&&"object"==typeof t&&"error"in t?t.error:"unknown";fr("Packet export failed"),ve("export-packet",e||"unknown"),Je("Status: Packet export failed – "+(e||"unknown error")),console.error("Packet export failed:",e)}}):Je("Status: No packet selected to export")}),Sn.exportPayload.addEventListener("click",function(){Nn();const t=Xn();t?window.saveapi.savePayload(t).then(t=>{if(t.canceled)Je("Status: Export cancelled");else if(t.success)Je("Status: Payload exported successfully"),ye("Context menu payload export completed");else{const e=t&&"object"==typeof t&&"error"in t?t.error:"unknown";fr("Payload export failed"),ve("export-payload",e||"unknown"),Je("Status: Payload export failed – "+(e||"unknown error")),console.error("Payload export failed:",e)}}):Je("Status: No payload available to export")}),Sn.saveCookieJar.addEventListener("click",function(){const t=Bn;Nn(),t?window.saveapi.saveCookieJar(t).then(t=>{if(t.canceled)Je("Status: Save cancelled");else if(t.success)Je("Status: Cookie jar saved successfully"),ye("Context menu cookie jar save completed");else{const e=t&&"object"==typeof t&&"error"in t?t.error:"unknown";fr("Cookie jar save failed"),ve("save-cookie-jar",e||"unknown"),Je("Status: Cookie jar save failed – "+(e||"unknown error")),console.error("Cookie jar save failed:",e)}}):Je("Status: No cookie jar available to save")}),Sn.httpFileSave.addEventListener("click",function(){Nn();const t=Jn();if(!t)return void Je("Status: No HTTP body available to save");const e=tr();window.saveapi.saveHttpBody(t,e).then(t=>{if(t.canceled)Je("Status: Save cancelled");else if(t.success)Je("Status: HTTP body saved successfully"),ye("Context menu HTTP body save completed");else{const e=t&&"object"==typeof t&&"error"in t?t.error:"unknown";fr("HTTP body save failed"),ve("http-body-save",e||"unknown"),Je("Status: HTTP body save failed – "+(e||"unknown error")),console.error("HTTP body save failed:",e)}})}),Sn.httpFileLoad.addEventListener("click",function(){const t=Jn();if(Nn(),!t)return void Je("Status: No HTTP body available to load");const e=document.getElementById("data-tools-input"),n=document.getElementById("data-tools-format");e.value=t,n.value="hex",an(),nn(),ye("Context menu loaded HTTP body into Conv tab")}),Sn.httpFilePreview.addEventListener("click",function(){Nn();const t=Jn();if(!t)return void Je("Status: No HTTP body available to preview");const e=tr();window.previewapi.previewHttpBody(t,e).then(t=>{if(t.success)Je("Status: HTTP body opened in browser"),ye("Context menu HTTP body browser preview launched");else{const e=t&&"object"==typeof t&&"error"in t?t.error:"unknown";fr("HTTP body preview failed"),ve("http-body-preview",e||"unknown"),Je("Status: HTTP body preview failed – "+(e||"unknown error")),console.error("HTTP body preview failed:",e)}})}),document.getElementById("selectBookmark").addEventListener("change",function(){const t=document.getElementById("selectBookmark").value.split(":")[0];Wt=document.getElementById("selectBookmark").value.split(":")[1],Vn(Wt),$t=Lt.Host[t],Zt.Host=t,Zt.Packet=Wt,Dt.value=t,null==t||null==Wt?(Je("Invalid bookmark selection, missing host or packet index"),fr("Invalid bookmark selection, missing host or packet index!")):document.getElementById("target_hosts").value=t,ar("bookmark",Zt)}),document.getElementById("setBookmark").addEventListener("click",function(){Kt.includes(Ht)||null!=Ht&&(Kt.push(Ht),document.getElementById("selectBookmark").appendChild(new Option(Ht,Ht)),ye(`Bookmark added key=${Ht}`))}),document.getElementById("save-json-btn").addEventListener("click",function(){Ve("sidebar-button")}),window.jsonapi.onJsonData(t=>{document.getElementById("loading-container").style.display="block",document.getElementById("error-container").style.display="none",Je("Loaded data from backend, processing..."),ye("Backend JSON payload received for processing"),Xe(new File([t],"capture.json",{type:"application/json"})),document.getElementById("loading-container").style.display="none";const e=performance.now();document.getElementById("load-time").textContent="Load time: "+((e-Ft)/1e3).toFixed(2)+" seconds"}),document.getElementById("filterStr").addEventListener("keydown",function(t){"Enter"===t.key&&(Oe(Xt.value),Qt.value="")}),Gt.addEventListener("click",function(){Le()&&(Xt.value="",Te(),Qt.value="",Xt.focus(),Oe(""))}),w({documentRef:document,windowRef:window,convertContextMenuEl:kn,getPasteTargetFromContextTarget:function(t){if(!(t instanceof Element))return null;const e=t.closest('input, textarea, [contenteditable="true"], [contenteditable=""]');if(!e)return null;if("readOnly"in e&&e.readOnly)return null;if("disabled"in e&&e.disabled)return null;if("INPUT"===e.tagName){const t=new Set(["button","checkbox","color","file","hidden","image","radio","range","reset","submit"]),n=(e.type||"text").toLowerCase();if(t.has(n))return null}return e},getTrimmedSelectionText:Fn,getConversionTextFromTarget:function(t){const e=window.getSelection()?.toString().trim();if(e)return e;const n=t&&"value"in t&&"string"==typeof t.value?t.value.trim():"";if(n)return n;if(t?.classList?.contains("griditem"))return t.textContent.trim();const r=t?.textContent?t.textContent.trim():"";if(!r)return"";if(r.includes(":")){const t=r.split(":")[0]?.trim();if(/^[A-Za-z][\w\s-]*$/.test(t)){const t=r.split(":").slice(1).join(":").trim();if(t)return t}}return r},detectConvertibleFormats:function(t){const e=[],n=t.trim();if(!n)return e;const r=t=>{try{return Ge(t,n),!0}catch{return!1}};return r("hex")&&e.push("hex"),r("binary")&&e.push("binary"),r("decimal")&&e.push("decimal"),function(t){const e=t.replace(/\s+/g,"");return e.length>=ct&&e.length%4==0&&/^[A-Za-z0-9+/]*={0,2}$/.test(e)&&e.replace(/=/g,"").length>0}(n)&&r("base64")&&e.push("base64"),e.length>0&&e.push("ascii"),e},buildContextFilterQueries:function(t,e,n){const r=[],i=t=>{const e=On(t);e&&(r.includes(e)||r.push(e))};i(e),i(n);let o="",a=!1;const s=t?.closest?.("tr");if(s){const t=s.querySelectorAll("td");o=On(t[0]?.textContent);const e=On(t[1]?.textContent);if(i(e),a=/\bport\b/i.test(o),/^ip\s*:?\s*port$/i.test(o)&&e){const t=e.match(/^\[([^\]]+)\]:(\d{1,5})$/);if(t)i(t[1]),i(t[2]);else{const t=e.match(/^((?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}):(\d{1,5})$/);if(t)i(t[1]),i(t[2]);else{const t=e.lastIndexOf(":");if(t>0){const n=e.slice(t+1).trim();/^\d{1,5}$/.test(n)&&i(n)}}}}}const l={},h=/^network\s+class$/i.test(o);for(const t of r){if(!l.ip){const e=jn(t);if(e){const t=Hn(e);l.ip=`ip.src.addr: ${t} || ip.dst.addr: ${t}`}}if(!l.port){const e=qn(t,a);if(e){const t=Hn(e);l.port=`tcp.src.port: ${t} || tcp.dst.port: ${t} || udp.src.port: ${t} || udp.dst.port: ${t}`}}if(!l.mac){const e=Dn(t);if(e){const t=Hn(e);l.mac=`ether.src.mac.addr: ${t} || ether.dst.mac.addr: ${t}`}}if(!l.protocol&&!h){const e=zn(t);if(e){const t=Hn(e);l.protocol=`wire.proto: ${t} || tcp.proto: ${t}`}}if(!l.mime){const e=Un(t);if(e){const t=Hn(e);l.mime=`mime.type: ${t}`}}}return l},getCookieJarTextForContextTarget:function(t){if(t?.closest?.("#data-tools-proto-output")){const t="HTTP"===yt()?.protocol?Wn(yt().fields):"";if(t)return t}return function(){const t=Xn();if(!t)return"";try{const e=rn(Ge("hex",t));return"HTTP"===e?.protocol?Wn(e.fields):""}catch{return""}}()},showConvertContextMenu:function(t,e,n,r,{isHexViewTarget:i=!1,target:o=null,pasteTarget:a=null,showCopySelection:s=!1,showPaste:l=!0,showSaveJson:h=!0,filterQueries:u={},cookieJarText:c="",showManualKeystoreUri:d=!1}={}){Mn=n,Cn=o,_n=a,xn=u,Bn=c,Sn.copy.style.display=s?"block":"none",Sn.paste.style.display=l?"block":"none",Sn.saveJson.style.display=h?"block":"none";const f=Boolean(Gn($t,Zn())),p=Xn(),m=Boolean(p),g=Boolean(Jn());Sn.exportPacket.style.display=f?"block":"none",Sn.exportPayload.style.display=m?"block":"none",Sn.httpFileSave.style.display=g?"block":"none",Sn.httpFileLoad.style.display=g?"block":"none",Sn.httpFilePreview.style.display=g?"block":"none",["hex","binary","base64","decimal","ascii"].forEach(t=>{Sn[t].style.display=r.includes(t)?"block":"none"}),Sn.copyHex.style.display=i?"block":"none",Sn.copyAscii.style.display=i?"block":"none",Sn.copyRaw.style.display=i?"block":"none",Sn.copyCookieJar.style.display=c?"block":"none",Sn.saveCookieJar.style.display=c?"block":"none",Sn.loadPayload.style.display=m?"block":"none";const y=Number.parseInt(o?.dataset?.byteIndex??"-1",10),b=Boolean(o?.classList?.contains("griditem")&&Kn(p,y));Sn.loadCursorAscii.style.display=b?"block":"none",Sn.filterIp.style.display=u.ip?"block":"none",Sn.filterPort.style.display=u.port?"block":"none",Sn.filterMac.style.display=u.mac?"block":"none",Sn.filterProtocol.style.display=u.protocol?"block":"none",Sn.filterMime.style.display=u.mime?"block":"none",Sn.filterOrIp.style.display=u.ip?"block":"none",Sn.filterOrPort.style.display=u.port?"block":"none",Sn.filterOrMac.style.display=u.mac?"block":"none",Sn.filterOrProtocol.style.display=u.protocol?"block":"none",Sn.filterOrMime.style.display=u.mime?"block":"none",Sn.filterNotIp.style.display=u.ip?"block":"none",Sn.filterNotPort.style.display=u.port?"block":"none",Sn.filterNotMac.style.display=u.mac?"block":"none",Sn.filterNotProtocol.style.display=u.protocol?"block":"none",Sn.filterNotMime.style.display=u.mime?"block":"none",Sn.filterParenOpen.style.display="block",Sn.filterParenClose.style.display="block",Sn.filterParenWrap.style.display="block",Sn.filterClearIp.style.display=u.ip?"block":"none",Sn.filterClearPort.style.display=u.port?"block":"none",Sn.filterClearMac.style.display=u.mac?"block":"none",Sn.filterClearProtocol.style.display=u.protocol?"block":"none",Sn.filterClearMime.style.display=u.mime?"block":"none";const v=Boolean(c),A=Boolean(n&&n.trim()||Fn()),w=Boolean($e()),E=Boolean(We());Sn.notesSendData.style.display=A?"block":"none",Sn.notesSendConvOutput.style.display=w?"block":"none",Sn.notesSendConvHashes.style.display=E?"block":"none";const M=A||w||E,C=s||i||v,_=C||l,x=_,B=r.length>0||m||b,k=Object.values(u).some(Boolean),S=s||Boolean(n),I=S||d,T=h||f||m||v;if(In.copy.style.display=C?"block":"none",In.convert.style.display=B?"block":"none",In.filter.style.display=k?"block":"none",In.filterAnd.style.display=k?"block":"none",In.filterOr.style.display=k?"block":"none",In.filterNot.style.display=k?"block":"none",In.filterParentheses.style.display=k?"block":"none",In.filterClear.style.display=k?"block":"none",In.notes.style.display=M?"block":"none",In.keystore.style.display=I?"block":"none",In.keystorePassword.style.display=S?"block":"none",In.keystoreKey.style.display=S?"block":"none",In.keystoreCert.style.display=S?"block":"none",In.keystoreCookie.style.display=S?"block":"none",In.keystoreUri.style.display=d?"block":"none",In.export.style.display=T?"block":"none",In.httpFile.style.display=g?"block":"none",!(x||B||i||k||v||M||I||T||g))return void Nn();Tn.style.display=_&&(B||i||k||T||g)?"block":"none",Pn.style.display=(T||g)&&(_||B||i||k||v||I)?"block":"none",kn.hidden=!1;const P=kn.offsetWidth,R=kn.offsetHeight,L=Math.max(8,Math.min(t,window.innerWidth-P-8)),N=Math.max(8,Math.min(e,window.innerHeight-R-8));kn.style.left=`${L}px`,kn.style.top=`${N}px`,Ln(),Rn.forEach(t=>{if("none"===t.style.display)return;const e=t.querySelector(":scope > .ctx-submenu-panel");if(!e)return;const n=[];let r=t.parentElement;for(;r&&r!==kn;)r.classList.contains("ctx-submenu-panel")&&"block"!==r.style.display&&(n.push({el:r,previousDisplay:r.style.display,previousVisibility:r.style.visibility,previousPointerEvents:r.style.pointerEvents}),r.style.display="block",r.style.visibility="hidden",r.style.pointerEvents="none"),r=r.parentElement;const i=e.style.display,o=e.style.visibility,a=e.style.pointerEvents;e.style.display="block",e.style.visibility="hidden",e.style.pointerEvents="none";const s=t.getBoundingClientRect(),l=e.getBoundingClientRect(),h=s.right+l.width>window.innerWidth-8,u=s.top+l.height>window.innerHeight-8,c=s.bottom-l.height>=8;h&&t.classList.add("ctx-submenu-flip-x"),u&&c&&t.classList.add("ctx-submenu-flip-y"),e.style.display=i,e.style.visibility=o,e.style.pointerEvents=a;for(let t=n.length-1;t>=0;t--){const e=n[t];e.el.style.display=e.previousDisplay,e.el.style.visibility=e.previousVisibility,e.el.style.pointerEvents=e.previousPointerEvents}})},hideConvertContextMenu:Nn}),Xt.addEventListener("input",Te),Xt.addEventListener("scroll",Pe),Qt.addEventListener("change",()=>{const t=Qt.value;t&&(Xt.value=t,Te(),Oe(t),Qt.value="")}),Ne(),Te(),window.onerror=(t,e,n,r,i)=>{fr(t+" at "+e+":"+n+":"+r)},window.onunhandledrejection=t=>{fr("Unhandled promise error! "+t.reason)},window.api.onError(t=>{console.error("Error from backend:",t),fr(t,{backend:!0})}),onload=function(){Nn(),he.resetKeystoreState(),un(ie),bt(st),document.getElementById("packetInfoPane").style.display="none",document.getElementById("packetPayloadPane").style.display="none",document.getElementById("rightside").style.display="none";const t=document.getElementById("rightside-data"),e=document.getElementById("rightside-notes");t&&(t.hidden=!1),e&&(e.hidden=!0),document.getElementById("leftside").style.display="none",document.getElementById("loading-container").style.display="none"}})()})();
|
|
3
|
+
//# sourceMappingURL=index.js.map
|