From b8c94a4769fb8ba44899cb9bac8c3435ad484a57 Mon Sep 17 00:00:00 2001 From: govinda777 Date: Tue, 26 Nov 2024 01:02:25 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20govinda7?= =?UTF-8?q?77/Xperience@376e702f25be19528fc15c6d7b1b21b1b068a1ff=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/{index-v381RADj.js => index-MtxTNZxh.js} | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename assets/{index-v381RADj.js => index-MtxTNZxh.js} (96%) diff --git a/assets/index-v381RADj.js b/assets/index-MtxTNZxh.js similarity index 96% rename from assets/index-v381RADj.js rename to assets/index-MtxTNZxh.js index 2c87568..6f6b9ad 100644 --- a/assets/index-v381RADj.js +++ b/assets/index-MtxTNZxh.js @@ -29,7 +29,7 @@ Use Chrome, Firefox or Internet Explorer 11`)}var nt=requireSafeBuffer$1().Buffe `))):wr=zt.stylize("[Circular]","special")),sr(fr)){if(er&&rr.match(/^\d+$/))return wr;fr=JSON.stringify(""+rr),fr.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(fr=fr.slice(1,-1),fr=zt.stylize(fr,"name")):(fr=fr.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),fr=zt.stylize(fr,"string"))}return fr+": "+wr}function Dt(zt,yr,vr){var hr=zt.reduce(function(rr,er){return er.indexOf(` `)>=0,rr+er.replace(/\u001b\[\d\d?m/g,"").length+1},0);return hr>60?vr[0]+(yr===""?"":yr+` `)+" "+zt.join(`, - `)+" "+vr[1]:vr[0]+yr+" "+zt.join(", ")+" "+vr[1]}d.types=requireTypes();function Tt(zt){return Array.isArray(zt)}d.isArray=Tt;function qt(zt){return typeof zt=="boolean"}d.isBoolean=qt;function jt(zt){return zt===null}d.isNull=jt;function Lt(zt){return zt==null}d.isNullOrUndefined=Lt;function Gt(zt){return typeof zt=="number"}d.isNumber=Gt;function Qt(zt){return typeof zt=="string"}d.isString=Qt;function tr(zt){return typeof zt=="symbol"}d.isSymbol=tr;function sr(zt){return zt===void 0}d.isUndefined=sr;function ar(zt){return _r(zt)&&_t(zt)==="[object RegExp]"}d.isRegExp=ar,d.types.isRegExp=ar;function _r(zt){return typeof zt=="object"&&zt!==null}d.isObject=_r;function Jt(zt){return _r(zt)&&_t(zt)==="[object Date]"}d.isDate=Jt,d.types.isDate=Jt;function Rt(zt){return _r(zt)&&(_t(zt)==="[object Error]"||zt instanceof Error)}d.isError=Rt,d.types.isNativeError=Rt;function Ct(zt){return typeof zt=="function"}d.isFunction=Ct;function yt(zt){return zt===null||typeof zt=="boolean"||typeof zt=="number"||typeof zt=="string"||typeof zt=="symbol"||typeof zt>"u"}d.isPrimitive=yt,d.isBuffer=requireIsBufferBrowser();function _t(zt){return Object.prototype.toString.call(zt)}function $t(zt){return zt<10?"0"+zt.toString(10):zt.toString(10)}var At=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function It(){var zt=new Date,yr=[$t(zt.getHours()),$t(zt.getMinutes()),$t(zt.getSeconds())].join(":");return[zt.getDate(),At[zt.getMonth()],yr].join(" ")}d.log=function(){console.log("%s - %s",It(),d.format.apply(d,arguments))},d.inherits=requireInherits_browser(),d._extend=function(zt,yr){if(!yr||!_r(yr))return zt;for(var vr=Object.keys(yr),hr=vr.length;hr--;)zt[vr[hr]]=yr[vr[hr]];return zt};function Bt(zt,yr){return Object.prototype.hasOwnProperty.call(zt,yr)}var Pt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;d.promisify=function(yr){if(typeof yr!="function")throw new TypeError('The "original" argument must be of type Function');if(Pt&&yr[Pt]){var vr=yr[Pt];if(typeof vr!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(vr,Pt,{value:vr,enumerable:!1,writable:!1,configurable:!0}),vr}function vr(){for(var hr,rr,er=new Promise(function(nr,ir){hr=nr,rr=ir}),fr=[],wr=0;wr0?this.tail.next=Tt:this.head=Tt,this.tail=Tt,++this.length}},{key:"unshift",value:function(Dt){var Tt={data:Dt,next:this.head};this.length===0&&(this.tail=Tt),this.head=Tt,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Dt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Dt}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Dt){if(this.length===0)return"";for(var Tt=this.head,qt=""+Tt.data;Tt=Tt.next;)qt+=Dt+Tt.data;return qt}},{key:"concat",value:function(Dt){if(this.length===0)return vt.alloc(0);for(var Tt=vt.allocUnsafe(Dt>>>0),qt=this.head,jt=0;qt;)xt(qt.data,Tt,jt),jt+=qt.data.length,qt=qt.next;return Tt}},{key:"consume",value:function(Dt,Tt){var qt;return DtLt.length?Lt.length:Dt;if(Gt===Lt.length?jt+=Lt:jt+=Lt.slice(0,Dt),Dt-=Gt,Dt===0){Gt===Lt.length?(++qt,Tt.next?this.head=Tt.next:this.head=this.tail=null):(this.head=Tt,Tt.data=Lt.slice(Gt));break}++qt}return this.length-=qt,jt}},{key:"_getBuffer",value:function(Dt){var Tt=vt.allocUnsafe(Dt),qt=this.head,jt=1;for(qt.data.copy(Tt),Dt-=qt.data.length;qt=qt.next;){var Lt=qt.data,Gt=Dt>Lt.length?Lt.length:Dt;if(Lt.copy(Tt,Tt.length-Dt,0,Gt),Dt-=Gt,Dt===0){Gt===Lt.length?(++jt,qt.next?this.head=qt.next:this.head=this.tail=null):(this.head=qt,qt.data=Lt.slice(Gt));break}++jt}return this.length-=jt,Tt}},{key:wt,value:function(Dt,Tt){return bt(this,b(b({},Tt),{},{depth:0,customInspect:!1}))}}]),Et}(),buffer_list}var destroy_1$1,hasRequiredDestroy$1;function requireDestroy$1(){if(hasRequiredDestroy$1)return destroy_1$1;hasRequiredDestroy$1=1;function d(ft,ht){var gt=this,vt=this._readableState&&this._readableState.destroyed,mt=this._writableState&&this._writableState.destroyed;return vt||mt?(ht?ht(ft):ft&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process$1.nextTick(st,this,ft)):process$1.nextTick(st,this,ft)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ft||null,function(bt){!ht&&bt?gt._writableState?gt._writableState.errorEmitted?process$1.nextTick(tt,gt):(gt._writableState.errorEmitted=!0,process$1.nextTick(b,gt,bt)):process$1.nextTick(b,gt,bt):ht?(process$1.nextTick(tt,gt),ht(bt)):process$1.nextTick(tt,gt)}),this)}function b(ft,ht){st(ft,ht),tt(ft)}function tt(ft){ft._writableState&&!ft._writableState.emitClose||ft._readableState&&!ft._readableState.emitClose||ft.emit("close")}function nt(){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)}function st(ft,ht){ft.emit("error",ht)}function ot(ft,ht){var gt=ft._readableState,vt=ft._writableState;gt&>.autoDestroy||vt&&vt.autoDestroy?ft.destroy(ht):ft.emit("error",ht)}return destroy_1$1={destroy:d,undestroy:nt,errorOrDestroy:ot},destroy_1$1}var errorsBrowser={},hasRequiredErrorsBrowser;function requireErrorsBrowser(){if(hasRequiredErrorsBrowser)return errorsBrowser;hasRequiredErrorsBrowser=1;function d(ht,gt){ht.prototype=Object.create(gt.prototype),ht.prototype.constructor=ht,ht.__proto__=gt}var b={};function tt(ht,gt,vt){vt||(vt=Error);function mt(wt,xt,Et){return typeof gt=="string"?gt:gt(wt,xt,Et)}var bt=function(wt){d(xt,wt);function xt(Et,kt,Dt){return wt.call(this,mt(Et,kt,Dt))||this}return xt}(vt);bt.prototype.name=vt.name,bt.prototype.code=ht,b[ht]=bt}function nt(ht,gt){if(Array.isArray(ht)){var vt=ht.length;return ht=ht.map(function(mt){return String(mt)}),vt>2?"one of ".concat(gt," ").concat(ht.slice(0,vt-1).join(", "),", or ")+ht[vt-1]:vt===2?"one of ".concat(gt," ").concat(ht[0]," or ").concat(ht[1]):"of ".concat(gt," ").concat(ht[0])}else return"of ".concat(gt," ").concat(String(ht))}function st(ht,gt,vt){return ht.substr(0,gt.length)===gt}function ot(ht,gt,vt){return(vt===void 0||vt>ht.length)&&(vt=ht.length),ht.substring(vt-gt.length,vt)===gt}function ft(ht,gt,vt){return typeof vt!="number"&&(vt=0),vt+gt.length>ht.length?!1:ht.indexOf(gt,vt)!==-1}return tt("ERR_INVALID_OPT_VALUE",function(ht,gt){return'The value "'+gt+'" is invalid for option "'+ht+'"'},TypeError),tt("ERR_INVALID_ARG_TYPE",function(ht,gt,vt){var mt;typeof gt=="string"&&st(gt,"not ")?(mt="must not be",gt=gt.replace(/^not /,"")):mt="must be";var bt;if(ot(ht," argument"))bt="The ".concat(ht," ").concat(mt," ").concat(nt(gt,"type"));else{var wt=ft(ht,".")?"property":"argument";bt='The "'.concat(ht,'" ').concat(wt," ").concat(mt," ").concat(nt(gt,"type"))}return bt+=". Received type ".concat(typeof vt),bt},TypeError),tt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),tt("ERR_METHOD_NOT_IMPLEMENTED",function(ht){return"The "+ht+" method is not implemented"}),tt("ERR_STREAM_PREMATURE_CLOSE","Premature close"),tt("ERR_STREAM_DESTROYED",function(ht){return"Cannot call "+ht+" after a stream was destroyed"}),tt("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),tt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),tt("ERR_STREAM_WRITE_AFTER_END","write after end"),tt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),tt("ERR_UNKNOWN_ENCODING",function(ht){return"Unknown encoding: "+ht},TypeError),tt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=b,errorsBrowser}var state,hasRequiredState;function requireState(){if(hasRequiredState)return state;hasRequiredState=1;var d=requireErrorsBrowser().codes.ERR_INVALID_OPT_VALUE;function b(nt,st,ot){return nt.highWaterMark!=null?nt.highWaterMark:st?nt[ot]:null}function tt(nt,st,ot,ft){var ht=b(st,ft,ot);if(ht!=null){if(!(isFinite(ht)&&Math.floor(ht)===ht)||ht<0){var gt=ft?ot:"highWaterMark";throw new d(gt,ht)}return Math.floor(ht)}return nt.objectMode?16:16*1024}return state={getHighWaterMark:tt},state}var browser$b,hasRequiredBrowser$a;function requireBrowser$a(){if(hasRequiredBrowser$a)return browser$b;hasRequiredBrowser$a=1,browser$b=d;function d(tt,nt){if(b("noDeprecation"))return tt;var st=!1;function ot(){if(!st){if(b("throwDeprecation"))throw new Error(nt);b("traceDeprecation")?console.trace(nt):console.warn(nt),st=!0}return tt.apply(this,arguments)}return ot}function b(tt){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var nt=commonjsGlobal.localStorage[tt];return nt==null?!1:String(nt).toLowerCase()==="true"}return browser$b}var _stream_writable$1,hasRequired_stream_writable$1;function require_stream_writable$1(){if(hasRequired_stream_writable$1)return _stream_writable$1;hasRequired_stream_writable$1=1,_stream_writable$1=sr;function d(hr){var rr=this;this.next=null,this.entry=null,this.finish=function(){vr(rr,hr)}}var b;sr.WritableState=Qt;var tt={deprecate:requireBrowser$a()},nt=requireStreamBrowser$1(),st=require$$1$3.Buffer,ot=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function ft(hr){return st.from(hr)}function ht(hr){return st.isBuffer(hr)||hr instanceof ot}var gt=requireDestroy$1(),vt=requireState(),mt=vt.getHighWaterMark,bt=requireErrorsBrowser().codes,wt=bt.ERR_INVALID_ARG_TYPE,xt=bt.ERR_METHOD_NOT_IMPLEMENTED,Et=bt.ERR_MULTIPLE_CALLBACK,kt=bt.ERR_STREAM_CANNOT_PIPE,Dt=bt.ERR_STREAM_DESTROYED,Tt=bt.ERR_STREAM_NULL_VALUES,qt=bt.ERR_STREAM_WRITE_AFTER_END,jt=bt.ERR_UNKNOWN_ENCODING,Lt=gt.errorOrDestroy;requireInherits_browser()(sr,nt);function Gt(){}function Qt(hr,rr,er){b=b||require_stream_duplex$1(),hr=hr||{},typeof er!="boolean"&&(er=rr instanceof b),this.objectMode=!!hr.objectMode,er&&(this.objectMode=this.objectMode||!!hr.writableObjectMode),this.highWaterMark=mt(this,hr,"writableHighWaterMark",er),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var fr=hr.decodeStrings===!1;this.decodeStrings=!fr,this.defaultEncoding=hr.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(wr){$t(rr,wr)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=hr.emitClose!==!1,this.autoDestroy=!!hr.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new d(this)}Qt.prototype.getBuffer=function(){for(var rr=this.bufferedRequest,er=[];rr;)er.push(rr),rr=rr.next;return er},function(){try{Object.defineProperty(Qt.prototype,"buffer",{get:tt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var tr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(tr=Function.prototype[Symbol.hasInstance],Object.defineProperty(sr,Symbol.hasInstance,{value:function(rr){return tr.call(this,rr)?!0:this!==sr?!1:rr&&rr._writableState instanceof Qt}})):tr=function(rr){return rr instanceof this};function sr(hr){b=b||require_stream_duplex$1();var rr=this instanceof b;if(!rr&&!tr.call(sr,this))return new sr(hr);this._writableState=new Qt(hr,this,rr),this.writable=!0,hr&&(typeof hr.write=="function"&&(this._write=hr.write),typeof hr.writev=="function"&&(this._writev=hr.writev),typeof hr.destroy=="function"&&(this._destroy=hr.destroy),typeof hr.final=="function"&&(this._final=hr.final)),nt.call(this)}sr.prototype.pipe=function(){Lt(this,new kt)};function ar(hr,rr){var er=new qt;Lt(hr,er),process$1.nextTick(rr,er)}function _r(hr,rr,er,fr){var wr;return er===null?wr=new Tt:typeof er!="string"&&!rr.objectMode&&(wr=new wt("chunk",["string","Buffer"],er)),wr?(Lt(hr,wr),process$1.nextTick(fr,wr),!1):!0}sr.prototype.write=function(hr,rr,er){var fr=this._writableState,wr=!1,nr=!fr.objectMode&&ht(hr);return nr&&!st.isBuffer(hr)&&(hr=ft(hr)),typeof rr=="function"&&(er=rr,rr=null),nr?rr="buffer":rr||(rr=fr.defaultEncoding),typeof er!="function"&&(er=Gt),fr.ending?ar(this,er):(nr||_r(this,fr,hr,er))&&(fr.pendingcb++,wr=Rt(this,fr,nr,hr,rr,er)),wr},sr.prototype.cork=function(){this._writableState.corked++},sr.prototype.uncork=function(){var hr=this._writableState;hr.corked&&(hr.corked--,!hr.writing&&!hr.corked&&!hr.bufferProcessing&&hr.bufferedRequest&&Bt(this,hr))},sr.prototype.setDefaultEncoding=function(rr){if(typeof rr=="string"&&(rr=rr.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((rr+"").toLowerCase())>-1))throw new jt(rr);return this._writableState.defaultEncoding=rr,this},Object.defineProperty(sr.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Jt(hr,rr,er){return!hr.objectMode&&hr.decodeStrings!==!1&&typeof rr=="string"&&(rr=st.from(rr,er)),rr}Object.defineProperty(sr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Rt(hr,rr,er,fr,wr,nr){if(!er){var ir=Jt(rr,fr,wr);fr!==ir&&(er=!0,wr="buffer",fr=ir)}var Br=rr.objectMode?1:fr.length;rr.length+=Br;var Ir=rr.length>5===6?2:Tt>>4===14?3:Tt>>3===30?4:Tt>>6===2?-1:-2}function ft(Tt,qt,jt){var Lt=qt.length-1;if(Lt=0?(Gt>0&&(Tt.lastNeed=Gt-1),Gt):--Lt=0?(Gt>0&&(Tt.lastNeed=Gt-2),Gt):--Lt=0?(Gt>0&&(Gt===2?Gt=0:Tt.lastNeed=Gt-3),Gt):0))}function ht(Tt,qt,jt){if((qt[0]&192)!==128)return Tt.lastNeed=0,"�";if(Tt.lastNeed>1&&qt.length>1){if((qt[1]&192)!==128)return Tt.lastNeed=1,"�";if(Tt.lastNeed>2&&qt.length>2&&(qt[2]&192)!==128)return Tt.lastNeed=2,"�"}}function gt(Tt){var qt=this.lastTotal-this.lastNeed,jt=ht(this,Tt);if(jt!==void 0)return jt;if(this.lastNeed<=Tt.length)return Tt.copy(this.lastChar,qt,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Tt.copy(this.lastChar,qt,0,Tt.length),this.lastNeed-=Tt.length}function vt(Tt,qt){var jt=ft(this,Tt,qt);if(!this.lastNeed)return Tt.toString("utf8",qt);this.lastTotal=jt;var Lt=Tt.length-(jt-this.lastNeed);return Tt.copy(this.lastChar,0,Lt),Tt.toString("utf8",qt,Lt)}function mt(Tt){var qt=Tt&&Tt.length?this.write(Tt):"";return this.lastNeed?qt+"�":qt}function bt(Tt,qt){if((Tt.length-qt)%2===0){var jt=Tt.toString("utf16le",qt);if(jt){var Lt=jt.charCodeAt(jt.length-1);if(Lt>=55296&&Lt<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Tt[Tt.length-2],this.lastChar[1]=Tt[Tt.length-1],jt.slice(0,-1)}return jt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Tt[Tt.length-1],Tt.toString("utf16le",qt,Tt.length-1)}function wt(Tt){var qt=Tt&&Tt.length?this.write(Tt):"";if(this.lastNeed){var jt=this.lastTotal-this.lastNeed;return qt+this.lastChar.toString("utf16le",0,jt)}return qt}function xt(Tt,qt){var jt=(Tt.length-qt)%3;return jt===0?Tt.toString("base64",qt):(this.lastNeed=3-jt,this.lastTotal=3,jt===1?this.lastChar[0]=Tt[Tt.length-1]:(this.lastChar[0]=Tt[Tt.length-2],this.lastChar[1]=Tt[Tt.length-1]),Tt.toString("base64",qt,Tt.length-jt))}function Et(Tt){var qt=Tt&&Tt.length?this.write(Tt):"";return this.lastNeed?qt+this.lastChar.toString("base64",0,3-this.lastNeed):qt}function kt(Tt){return Tt.toString(this.encoding)}function Dt(Tt){return Tt&&Tt.length?this.write(Tt):""}return string_decoder}var endOfStream,hasRequiredEndOfStream;function requireEndOfStream(){if(hasRequiredEndOfStream)return endOfStream;hasRequiredEndOfStream=1;var d=requireErrorsBrowser().codes.ERR_STREAM_PREMATURE_CLOSE;function b(ot){var ft=!1;return function(){if(!ft){ft=!0;for(var ht=arguments.length,gt=new Array(ht),vt=0;vt0)if(typeof ir!="string"&&!Jr.objectMode&&Object.getPrototypeOf(ir)!==nt.prototype&&(ir=ot(ir)),Ir)Jr.endEmitted?Gt(nr,new Tt):Jt(nr,Jr,ir,!0);else if(Jr.ended)Gt(nr,new kt);else{if(Jr.destroyed)return!1;Jr.reading=!1,Jr.decoder&&!Br?(ir=Jr.decoder.write(ir),Jr.objectMode||ir.length!==0?Jt(nr,Jr,ir,!1):Bt(nr,Jr)):Jt(nr,Jr,ir,!1)}else Ir||(Jr.reading=!1,Bt(nr,Jr))}return!Jr.ended&&(Jr.length=Ct?nr=Ct:(nr--,nr|=nr>>>1,nr|=nr>>>2,nr|=nr>>>4,nr|=nr>>>8,nr|=nr>>>16,nr++),nr}function _t(nr,ir){return nr<=0||ir.length===0&&ir.ended?0:ir.objectMode?1:nr!==nr?ir.flowing&&ir.length?ir.buffer.head.data.length:ir.length:(nr>ir.highWaterMark&&(ir.highWaterMark=yt(nr)),nr<=ir.length?nr:ir.ended?ir.length:(ir.needReadable=!0,0))}ar.prototype.read=function(nr){gt("read",nr),nr=parseInt(nr,10);var ir=this._readableState,Br=nr;if(nr!==0&&(ir.emittedReadable=!1),nr===0&&ir.needReadable&&((ir.highWaterMark!==0?ir.length>=ir.highWaterMark:ir.length>0)||ir.ended))return gt("read: emitReadable",ir.length,ir.ended),ir.length===0&&ir.ended?er(this):At(this),null;if(nr=_t(nr,ir),nr===0&&ir.ended)return ir.length===0&&er(this),null;var Ir=ir.needReadable;gt("need readable",Ir),(ir.length===0||ir.length-nr0?Dr=rr(nr,ir):Dr=null,Dr===null?(ir.needReadable=ir.length<=ir.highWaterMark,nr=0):(ir.length-=nr,ir.awaitDrain=0),ir.length===0&&(ir.ended||(ir.needReadable=!0),Br!==nr&&ir.ended&&er(this)),Dr!==null&&this.emit("data",Dr),Dr};function $t(nr,ir){if(gt("onEofChunk"),!ir.ended){if(ir.decoder){var Br=ir.decoder.end();Br&&Br.length&&(ir.buffer.push(Br),ir.length+=ir.objectMode?1:Br.length)}ir.ended=!0,ir.sync?At(nr):(ir.needReadable=!1,ir.emittedReadable||(ir.emittedReadable=!0,It(nr)))}}function At(nr){var ir=nr._readableState;gt("emitReadable",ir.needReadable,ir.emittedReadable),ir.needReadable=!1,ir.emittedReadable||(gt("emitReadable",ir.flowing),ir.emittedReadable=!0,process$1.nextTick(It,nr))}function It(nr){var ir=nr._readableState;gt("emitReadable_",ir.destroyed,ir.length,ir.ended),!ir.destroyed&&(ir.length||ir.ended)&&(nr.emit("readable"),ir.emittedReadable=!1),ir.needReadable=!ir.flowing&&!ir.ended&&ir.length<=ir.highWaterMark,hr(nr)}function Bt(nr,ir){ir.readingMore||(ir.readingMore=!0,process$1.nextTick(Pt,nr,ir))}function Pt(nr,ir){for(;!ir.reading&&!ir.ended&&(ir.length1&&wr(Ir.pipes,nr)!==-1)&&!hn&&(gt("false write response, pause",Ir.awaitDrain),Ir.awaitDrain++),Br.pause())}function yn(xr){gt("onerror",xr),dr(),nr.removeListener("error",yn),b(nr,"error")===0&&Gt(nr,xr)}tr(nr,"error",yn);function rn(){nr.removeListener("finish",Ar),dr()}nr.once("close",rn);function Ar(){gt("onfinish"),nr.removeListener("close",rn),dr()}nr.once("finish",Ar);function dr(){gt("unpipe"),Br.unpipe(nr)}return nr.emit("pipe",Br),Ir.flowing||(gt("pipe resume"),Br.resume()),nr};function Ot(nr){return function(){var Br=nr._readableState;gt("pipeOnDrain",Br.awaitDrain),Br.awaitDrain&&Br.awaitDrain--,Br.awaitDrain===0&&b(nr,"data")&&(Br.flowing=!0,hr(nr))}}ar.prototype.unpipe=function(nr){var ir=this._readableState,Br={hasUnpiped:!1};if(ir.pipesCount===0)return this;if(ir.pipesCount===1)return nr&&nr!==ir.pipes?this:(nr||(nr=ir.pipes),ir.pipes=null,ir.pipesCount=0,ir.flowing=!1,nr&&nr.emit("unpipe",this,Br),this);if(!nr){var Ir=ir.pipes,Dr=ir.pipesCount;ir.pipes=null,ir.pipesCount=0,ir.flowing=!1;for(var Jr=0;Jr0,Ir.flowing!==!1&&this.resume()):nr==="readable"&&!Ir.endEmitted&&!Ir.readableListening&&(Ir.readableListening=Ir.needReadable=!0,Ir.flowing=!1,Ir.emittedReadable=!1,gt("on readable",Ir.length,Ir.reading),Ir.length?At(this):Ir.reading||process$1.nextTick(zt,this)),Br},ar.prototype.addListener=ar.prototype.on,ar.prototype.removeListener=function(nr,ir){var Br=tt.prototype.removeListener.call(this,nr,ir);return nr==="readable"&&process$1.nextTick(Mt,this),Br},ar.prototype.removeAllListeners=function(nr){var ir=tt.prototype.removeAllListeners.apply(this,arguments);return(nr==="readable"||nr===void 0)&&process$1.nextTick(Mt,this),ir};function Mt(nr){var ir=nr._readableState;ir.readableListening=nr.listenerCount("readable")>0,ir.resumeScheduled&&!ir.paused?ir.flowing=!0:nr.listenerCount("data")>0&&nr.resume()}function zt(nr){gt("readable nexttick read 0"),nr.read(0)}ar.prototype.resume=function(){var nr=this._readableState;return nr.flowing||(gt("resume"),nr.flowing=!nr.readableListening,yr(this,nr)),nr.paused=!1,this};function yr(nr,ir){ir.resumeScheduled||(ir.resumeScheduled=!0,process$1.nextTick(vr,nr,ir))}function vr(nr,ir){gt("resume",ir.reading),ir.reading||nr.read(0),ir.resumeScheduled=!1,nr.emit("resume"),hr(nr),ir.flowing&&!ir.reading&&nr.read(0)}ar.prototype.pause=function(){return gt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(gt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function hr(nr){var ir=nr._readableState;for(gt("flow",ir.flowing);ir.flowing&&nr.read()!==null;);}ar.prototype.wrap=function(nr){var ir=this,Br=this._readableState,Ir=!1;nr.on("end",function(){if(gt("wrapped end"),Br.decoder&&!Br.ended){var Yr=Br.decoder.end();Yr&&Yr.length&&ir.push(Yr)}ir.push(null)}),nr.on("data",function(Yr){if(gt("wrapped data"),Br.decoder&&(Yr=Br.decoder.write(Yr)),!(Br.objectMode&&Yr==null)&&!(!Br.objectMode&&(!Yr||!Yr.length))){var Wr=ir.push(Yr);Wr||(Ir=!0,nr.pause())}});for(var Dr in nr)this[Dr]===void 0&&typeof nr[Dr]=="function"&&(this[Dr]=function(Wr){return function(){return nr[Wr].apply(nr,arguments)}}(Dr));for(var Jr=0;Jr=ir.length?(ir.decoder?Br=ir.buffer.join(""):ir.buffer.length===1?Br=ir.buffer.first():Br=ir.buffer.concat(ir.length),ir.buffer.clear()):Br=ir.buffer.consume(nr,ir.decoder),Br}function er(nr){var ir=nr._readableState;gt("endReadable",ir.endEmitted),ir.endEmitted||(ir.ended=!0,process$1.nextTick(fr,ir,nr))}function fr(nr,ir){if(gt("endReadableNT",nr.endEmitted,nr.length),!nr.endEmitted&&nr.length===0&&(nr.endEmitted=!0,ir.readable=!1,ir.emit("end"),nr.autoDestroy)){var Br=ir._writableState;(!Br||Br.autoDestroy&&Br.finished)&&ir.destroy()}}typeof Symbol=="function"&&(ar.from=function(nr,ir){return Lt===void 0&&(Lt=requireFromBrowser()),Lt(ar,nr,ir)});function wr(nr,ir){for(var Br=0,Ir=nr.length;Br0;return ht(qt,Lt,Gt,function(Qt){Dt||(Dt=Qt),Qt&&Tt.forEach(gt),!Lt&&(Tt.forEach(gt),kt(Dt))})});return xt.reduce(vt)}return pipeline_1=bt,pipeline_1}var hasRequiredReadableBrowser$1;function requireReadableBrowser$1(){return hasRequiredReadableBrowser$1||(hasRequiredReadableBrowser$1=1,function(d,b){b=d.exports=require_stream_readable$1(),b.Stream=b,b.Readable=b,b.Writable=require_stream_writable$1(),b.Duplex=require_stream_duplex$1(),b.Transform=require_stream_transform$1(),b.PassThrough=require_stream_passthrough$1(),b.finished=requireEndOfStream(),b.pipeline=requirePipeline()}(readableBrowser$1,readableBrowser$1.exports)),readableBrowser$1.exports}var hashBase$1,hasRequiredHashBase$1;function requireHashBase$1(){if(hasRequiredHashBase$1)return hashBase$1;hasRequiredHashBase$1=1;var d=requireSafeBuffer$1().Buffer,b=requireReadableBrowser$1().Transform,tt=requireInherits_browser();function nt(ot,ft){if(!d.isBuffer(ot)&&typeof ot!="string")throw new TypeError(ft+" must be a string or a buffer")}function st(ot){b.call(this),this._block=d.allocUnsafe(ot),this._blockSize=ot,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return tt(st,b),st.prototype._transform=function(ot,ft,ht){var gt=null;try{this.update(ot,ft)}catch(vt){gt=vt}ht(gt)},st.prototype._flush=function(ot){var ft=null;try{this.push(this.digest())}catch(ht){ft=ht}ot(ft)},st.prototype.update=function(ot,ft){if(nt(ot,"Data"),this._finalized)throw new Error("Digest already called");d.isBuffer(ot)||(ot=d.from(ot,ft));for(var ht=this._block,gt=0;this._blockOffset+ot.length-gt>=this._blockSize;){for(var vt=this._blockOffset;vt0;++mt)this._length[mt]+=bt,bt=this._length[mt]/4294967296|0,bt>0&&(this._length[mt]-=4294967296*bt);return this},st.prototype._update=function(){throw new Error("_update is not implemented")},st.prototype.digest=function(ot){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var ft=this._digest();ot!==void 0&&(ft=ft.toString(ot)),this._block.fill(0),this._blockOffset=0;for(var ht=0;ht<4;++ht)this._length[ht]=0;return ft},st.prototype._digest=function(){throw new Error("_digest is not implemented")},hashBase$1=st,hashBase$1}var md5_js,hasRequiredMd5_js;function requireMd5_js(){if(hasRequiredMd5_js)return md5_js;hasRequiredMd5_js=1;var d=requireInherits_browser(),b=requireHashBase$1(),tt=requireSafeBuffer$1().Buffer,nt=new Array(16);function st(){b.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}d(st,b),st.prototype._update=function(){for(var mt=nt,bt=0;bt<16;++bt)mt[bt]=this._block.readInt32LE(bt*4);var wt=this._a,xt=this._b,Et=this._c,kt=this._d;wt=ft(wt,xt,Et,kt,mt[0],3614090360,7),kt=ft(kt,wt,xt,Et,mt[1],3905402710,12),Et=ft(Et,kt,wt,xt,mt[2],606105819,17),xt=ft(xt,Et,kt,wt,mt[3],3250441966,22),wt=ft(wt,xt,Et,kt,mt[4],4118548399,7),kt=ft(kt,wt,xt,Et,mt[5],1200080426,12),Et=ft(Et,kt,wt,xt,mt[6],2821735955,17),xt=ft(xt,Et,kt,wt,mt[7],4249261313,22),wt=ft(wt,xt,Et,kt,mt[8],1770035416,7),kt=ft(kt,wt,xt,Et,mt[9],2336552879,12),Et=ft(Et,kt,wt,xt,mt[10],4294925233,17),xt=ft(xt,Et,kt,wt,mt[11],2304563134,22),wt=ft(wt,xt,Et,kt,mt[12],1804603682,7),kt=ft(kt,wt,xt,Et,mt[13],4254626195,12),Et=ft(Et,kt,wt,xt,mt[14],2792965006,17),xt=ft(xt,Et,kt,wt,mt[15],1236535329,22),wt=ht(wt,xt,Et,kt,mt[1],4129170786,5),kt=ht(kt,wt,xt,Et,mt[6],3225465664,9),Et=ht(Et,kt,wt,xt,mt[11],643717713,14),xt=ht(xt,Et,kt,wt,mt[0],3921069994,20),wt=ht(wt,xt,Et,kt,mt[5],3593408605,5),kt=ht(kt,wt,xt,Et,mt[10],38016083,9),Et=ht(Et,kt,wt,xt,mt[15],3634488961,14),xt=ht(xt,Et,kt,wt,mt[4],3889429448,20),wt=ht(wt,xt,Et,kt,mt[9],568446438,5),kt=ht(kt,wt,xt,Et,mt[14],3275163606,9),Et=ht(Et,kt,wt,xt,mt[3],4107603335,14),xt=ht(xt,Et,kt,wt,mt[8],1163531501,20),wt=ht(wt,xt,Et,kt,mt[13],2850285829,5),kt=ht(kt,wt,xt,Et,mt[2],4243563512,9),Et=ht(Et,kt,wt,xt,mt[7],1735328473,14),xt=ht(xt,Et,kt,wt,mt[12],2368359562,20),wt=gt(wt,xt,Et,kt,mt[5],4294588738,4),kt=gt(kt,wt,xt,Et,mt[8],2272392833,11),Et=gt(Et,kt,wt,xt,mt[11],1839030562,16),xt=gt(xt,Et,kt,wt,mt[14],4259657740,23),wt=gt(wt,xt,Et,kt,mt[1],2763975236,4),kt=gt(kt,wt,xt,Et,mt[4],1272893353,11),Et=gt(Et,kt,wt,xt,mt[7],4139469664,16),xt=gt(xt,Et,kt,wt,mt[10],3200236656,23),wt=gt(wt,xt,Et,kt,mt[13],681279174,4),kt=gt(kt,wt,xt,Et,mt[0],3936430074,11),Et=gt(Et,kt,wt,xt,mt[3],3572445317,16),xt=gt(xt,Et,kt,wt,mt[6],76029189,23),wt=gt(wt,xt,Et,kt,mt[9],3654602809,4),kt=gt(kt,wt,xt,Et,mt[12],3873151461,11),Et=gt(Et,kt,wt,xt,mt[15],530742520,16),xt=gt(xt,Et,kt,wt,mt[2],3299628645,23),wt=vt(wt,xt,Et,kt,mt[0],4096336452,6),kt=vt(kt,wt,xt,Et,mt[7],1126891415,10),Et=vt(Et,kt,wt,xt,mt[14],2878612391,15),xt=vt(xt,Et,kt,wt,mt[5],4237533241,21),wt=vt(wt,xt,Et,kt,mt[12],1700485571,6),kt=vt(kt,wt,xt,Et,mt[3],2399980690,10),Et=vt(Et,kt,wt,xt,mt[10],4293915773,15),xt=vt(xt,Et,kt,wt,mt[1],2240044497,21),wt=vt(wt,xt,Et,kt,mt[8],1873313359,6),kt=vt(kt,wt,xt,Et,mt[15],4264355552,10),Et=vt(Et,kt,wt,xt,mt[6],2734768916,15),xt=vt(xt,Et,kt,wt,mt[13],1309151649,21),wt=vt(wt,xt,Et,kt,mt[4],4149444226,6),kt=vt(kt,wt,xt,Et,mt[11],3174756917,10),Et=vt(Et,kt,wt,xt,mt[2],718787259,15),xt=vt(xt,Et,kt,wt,mt[9],3951481745,21),this._a=this._a+wt|0,this._b=this._b+xt|0,this._c=this._c+Et|0,this._d=this._d+kt|0},st.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 mt=tt.allocUnsafe(16);return mt.writeInt32LE(this._a,0),mt.writeInt32LE(this._b,4),mt.writeInt32LE(this._c,8),mt.writeInt32LE(this._d,12),mt};function ot(mt,bt){return mt<>>32-bt}function ft(mt,bt,wt,xt,Et,kt,Dt){return ot(mt+(bt&wt|~bt&xt)+Et+kt|0,Dt)+bt|0}function ht(mt,bt,wt,xt,Et,kt,Dt){return ot(mt+(bt&xt|wt&~xt)+Et+kt|0,Dt)+bt|0}function gt(mt,bt,wt,xt,Et,kt,Dt){return ot(mt+(bt^wt^xt)+Et+kt|0,Dt)+bt|0}function vt(mt,bt,wt,xt,Et,kt,Dt){return ot(mt+(wt^(bt|~xt))+Et+kt|0,Dt)+bt|0}return md5_js=st,md5_js}var hashBase,hasRequiredHashBase;function requireHashBase(){if(hasRequiredHashBase)return hashBase;hasRequiredHashBase=1;var d=requireSafeBuffer$1().Buffer,b=requireReadableBrowser$1().Transform,tt=requireInherits_browser();function nt(ot,ft){if(!d.isBuffer(ot)&&typeof ot!="string")throw new TypeError(ft+" must be a string or a buffer")}function st(ot){b.call(this),this._block=d.allocUnsafe(ot),this._blockSize=ot,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return tt(st,b),st.prototype._transform=function(ot,ft,ht){var gt=null;try{this.update(ot,ft)}catch(vt){gt=vt}ht(gt)},st.prototype._flush=function(ot){var ft=null;try{this.push(this.digest())}catch(ht){ft=ht}ot(ft)},st.prototype.update=function(ot,ft){if(nt(ot,"Data"),this._finalized)throw new Error("Digest already called");d.isBuffer(ot)||(ot=d.from(ot,ft));for(var ht=this._block,gt=0;this._blockOffset+ot.length-gt>=this._blockSize;){for(var vt=this._blockOffset;vt0;++mt)this._length[mt]+=bt,bt=this._length[mt]/4294967296|0,bt>0&&(this._length[mt]-=4294967296*bt);return this},st.prototype._update=function(){throw new Error("_update is not implemented")},st.prototype.digest=function(ot){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var ft=this._digest();ot!==void 0&&(ft=ft.toString(ot)),this._block.fill(0),this._blockOffset=0;for(var ht=0;ht<4;++ht)this._length[ht]=0;return ft},st.prototype._digest=function(){throw new Error("_digest is not implemented")},hashBase=st,hashBase}var ripemd160,hasRequiredRipemd160;function requireRipemd160(){if(hasRequiredRipemd160)return ripemd160;hasRequiredRipemd160=1;var d=require$$1$3.Buffer,b=requireInherits_browser(),tt=requireHashBase(),nt=new Array(16),st=[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],ot=[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],ft=[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],ht=[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],gt=[0,1518500249,1859775393,2400959708,2840853838],vt=[1352829926,1548603684,1836072691,2053994217,0];function mt(){tt.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}b(mt,tt),mt.prototype._update=function(){for(var Tt=nt,qt=0;qt<16;++qt)Tt[qt]=this._block.readInt32LE(qt*4);for(var jt=this._a|0,Lt=this._b|0,Gt=this._c|0,Qt=this._d|0,tr=this._e|0,sr=this._a|0,ar=this._b|0,_r=this._c|0,Jt=this._d|0,Rt=this._e|0,Ct=0;Ct<80;Ct+=1){var yt,_t;Ct<16?(yt=wt(jt,Lt,Gt,Qt,tr,Tt[st[Ct]],gt[0],ft[Ct]),_t=Dt(sr,ar,_r,Jt,Rt,Tt[ot[Ct]],vt[0],ht[Ct])):Ct<32?(yt=xt(jt,Lt,Gt,Qt,tr,Tt[st[Ct]],gt[1],ft[Ct]),_t=kt(sr,ar,_r,Jt,Rt,Tt[ot[Ct]],vt[1],ht[Ct])):Ct<48?(yt=Et(jt,Lt,Gt,Qt,tr,Tt[st[Ct]],gt[2],ft[Ct]),_t=Et(sr,ar,_r,Jt,Rt,Tt[ot[Ct]],vt[2],ht[Ct])):Ct<64?(yt=kt(jt,Lt,Gt,Qt,tr,Tt[st[Ct]],gt[3],ft[Ct]),_t=xt(sr,ar,_r,Jt,Rt,Tt[ot[Ct]],vt[3],ht[Ct])):(yt=Dt(jt,Lt,Gt,Qt,tr,Tt[st[Ct]],gt[4],ft[Ct]),_t=wt(sr,ar,_r,Jt,Rt,Tt[ot[Ct]],vt[4],ht[Ct])),jt=tr,tr=Qt,Qt=bt(Gt,10),Gt=Lt,Lt=yt,sr=Rt,Rt=Jt,Jt=bt(_r,10),_r=ar,ar=_t}var $t=this._b+Gt+Jt|0;this._b=this._c+Qt+Rt|0,this._c=this._d+tr+sr|0,this._d=this._e+jt+ar|0,this._e=this._a+Lt+_r|0,this._a=$t},mt.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 Tt=d.alloc?d.alloc(20):new d(20);return Tt.writeInt32LE(this._a,0),Tt.writeInt32LE(this._b,4),Tt.writeInt32LE(this._c,8),Tt.writeInt32LE(this._d,12),Tt.writeInt32LE(this._e,16),Tt};function bt(Tt,qt){return Tt<>>32-qt}function wt(Tt,qt,jt,Lt,Gt,Qt,tr,sr){return bt(Tt+(qt^jt^Lt)+Qt+tr|0,sr)+Gt|0}function xt(Tt,qt,jt,Lt,Gt,Qt,tr,sr){return bt(Tt+(qt&jt|~qt&Lt)+Qt+tr|0,sr)+Gt|0}function Et(Tt,qt,jt,Lt,Gt,Qt,tr,sr){return bt(Tt+((qt|~jt)^Lt)+Qt+tr|0,sr)+Gt|0}function kt(Tt,qt,jt,Lt,Gt,Qt,tr,sr){return bt(Tt+(qt&Lt|jt&~Lt)+Qt+tr|0,sr)+Gt|0}function Dt(Tt,qt,jt,Lt,Gt,Qt,tr,sr){return bt(Tt+(qt^(jt|~Lt))+Qt+tr|0,sr)+Gt|0}return ripemd160=mt,ripemd160}var sha_js={exports:{}},hash$2,hasRequiredHash$1;function requireHash$1(){if(hasRequiredHash$1)return hash$2;hasRequiredHash$1=1;var d=requireSafeBuffer$1().Buffer;function b(tt,nt){this._block=d.alloc(tt),this._finalSize=nt,this._blockSize=tt,this._len=0}return b.prototype.update=function(tt,nt){typeof tt=="string"&&(nt=nt||"utf8",tt=d.from(tt,nt));for(var st=this._block,ot=this._blockSize,ft=tt.length,ht=this._len,gt=0;gt=this._finalSize&&(this._update(this._block),this._block.fill(0));var st=this._len*8;if(st<=4294967295)this._block.writeUInt32BE(st,this._blockSize-4);else{var ot=(st&4294967295)>>>0,ft=(st-ot)/4294967296;this._block.writeUInt32BE(ft,this._blockSize-8),this._block.writeUInt32BE(ot,this._blockSize-4)}this._update(this._block);var ht=this._hash();return tt?ht.toString(tt):ht},b.prototype._update=function(){throw new Error("_update must be implemented by subclass")},hash$2=b,hash$2}var sha$2,hasRequiredSha$1;function requireSha$1(){if(hasRequiredSha$1)return sha$2;hasRequiredSha$1=1;var d=requireInherits_browser(),b=requireHash$1(),tt=requireSafeBuffer$1().Buffer,nt=[1518500249,1859775393,-1894007588,-899497514],st=new Array(80);function ot(){this.init(),this._w=st,b.call(this,64,56)}d(ot,b),ot.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function ft(vt){return vt<<5|vt>>>27}function ht(vt){return vt<<30|vt>>>2}function gt(vt,mt,bt,wt){return vt===0?mt&bt|~mt&wt:vt===2?mt&bt|mt&wt|bt&wt:mt^bt^wt}return ot.prototype._update=function(vt){for(var mt=this._w,bt=this._a|0,wt=this._b|0,xt=this._c|0,Et=this._d|0,kt=this._e|0,Dt=0;Dt<16;++Dt)mt[Dt]=vt.readInt32BE(Dt*4);for(;Dt<80;++Dt)mt[Dt]=mt[Dt-3]^mt[Dt-8]^mt[Dt-14]^mt[Dt-16];for(var Tt=0;Tt<80;++Tt){var qt=~~(Tt/20),jt=ft(bt)+gt(qt,wt,xt,Et)+kt+mt[Tt]+nt[qt]|0;kt=Et,Et=xt,xt=ht(wt),wt=bt,bt=jt}this._a=bt+this._a|0,this._b=wt+this._b|0,this._c=xt+this._c|0,this._d=Et+this._d|0,this._e=kt+this._e|0},ot.prototype._hash=function(){var vt=tt.allocUnsafe(20);return vt.writeInt32BE(this._a|0,0),vt.writeInt32BE(this._b|0,4),vt.writeInt32BE(this._c|0,8),vt.writeInt32BE(this._d|0,12),vt.writeInt32BE(this._e|0,16),vt},sha$2=ot,sha$2}var sha1,hasRequiredSha1;function requireSha1(){if(hasRequiredSha1)return sha1;hasRequiredSha1=1;var d=requireInherits_browser(),b=requireHash$1(),tt=requireSafeBuffer$1().Buffer,nt=[1518500249,1859775393,-1894007588,-899497514],st=new Array(80);function ot(){this.init(),this._w=st,b.call(this,64,56)}d(ot,b),ot.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function ft(mt){return mt<<1|mt>>>31}function ht(mt){return mt<<5|mt>>>27}function gt(mt){return mt<<30|mt>>>2}function vt(mt,bt,wt,xt){return mt===0?bt&wt|~bt&xt:mt===2?bt&wt|bt&xt|wt&xt:bt^wt^xt}return ot.prototype._update=function(mt){for(var bt=this._w,wt=this._a|0,xt=this._b|0,Et=this._c|0,kt=this._d|0,Dt=this._e|0,Tt=0;Tt<16;++Tt)bt[Tt]=mt.readInt32BE(Tt*4);for(;Tt<80;++Tt)bt[Tt]=ft(bt[Tt-3]^bt[Tt-8]^bt[Tt-14]^bt[Tt-16]);for(var qt=0;qt<80;++qt){var jt=~~(qt/20),Lt=ht(wt)+vt(jt,xt,Et,kt)+Dt+bt[qt]+nt[jt]|0;Dt=kt,kt=Et,Et=gt(xt),xt=wt,wt=Lt}this._a=wt+this._a|0,this._b=xt+this._b|0,this._c=Et+this._c|0,this._d=kt+this._d|0,this._e=Dt+this._e|0},ot.prototype._hash=function(){var mt=tt.allocUnsafe(20);return mt.writeInt32BE(this._a|0,0),mt.writeInt32BE(this._b|0,4),mt.writeInt32BE(this._c|0,8),mt.writeInt32BE(this._d|0,12),mt.writeInt32BE(this._e|0,16),mt},sha1=ot,sha1}var sha256$5,hasRequiredSha256;function requireSha256(){if(hasRequiredSha256)return sha256$5;hasRequiredSha256=1;var d=requireInherits_browser(),b=requireHash$1(),tt=requireSafeBuffer$1().Buffer,nt=[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],st=new Array(64);function ot(){this.init(),this._w=st,b.call(this,64,56)}d(ot,b),ot.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};function ft(wt,xt,Et){return Et^wt&(xt^Et)}function ht(wt,xt,Et){return wt&xt|Et&(wt|xt)}function gt(wt){return(wt>>>2|wt<<30)^(wt>>>13|wt<<19)^(wt>>>22|wt<<10)}function vt(wt){return(wt>>>6|wt<<26)^(wt>>>11|wt<<21)^(wt>>>25|wt<<7)}function mt(wt){return(wt>>>7|wt<<25)^(wt>>>18|wt<<14)^wt>>>3}function bt(wt){return(wt>>>17|wt<<15)^(wt>>>19|wt<<13)^wt>>>10}return ot.prototype._update=function(wt){for(var xt=this._w,Et=this._a|0,kt=this._b|0,Dt=this._c|0,Tt=this._d|0,qt=this._e|0,jt=this._f|0,Lt=this._g|0,Gt=this._h|0,Qt=0;Qt<16;++Qt)xt[Qt]=wt.readInt32BE(Qt*4);for(;Qt<64;++Qt)xt[Qt]=bt(xt[Qt-2])+xt[Qt-7]+mt(xt[Qt-15])+xt[Qt-16]|0;for(var tr=0;tr<64;++tr){var sr=Gt+vt(qt)+ft(qt,jt,Lt)+nt[tr]+xt[tr]|0,ar=gt(Et)+ht(Et,kt,Dt)|0;Gt=Lt,Lt=jt,jt=qt,qt=Tt+sr|0,Tt=Dt,Dt=kt,kt=Et,Et=sr+ar|0}this._a=Et+this._a|0,this._b=kt+this._b|0,this._c=Dt+this._c|0,this._d=Tt+this._d|0,this._e=qt+this._e|0,this._f=jt+this._f|0,this._g=Lt+this._g|0,this._h=Gt+this._h|0},ot.prototype._hash=function(){var wt=tt.allocUnsafe(32);return wt.writeInt32BE(this._a,0),wt.writeInt32BE(this._b,4),wt.writeInt32BE(this._c,8),wt.writeInt32BE(this._d,12),wt.writeInt32BE(this._e,16),wt.writeInt32BE(this._f,20),wt.writeInt32BE(this._g,24),wt.writeInt32BE(this._h,28),wt},sha256$5=ot,sha256$5}var sha224$1,hasRequiredSha224;function requireSha224(){if(hasRequiredSha224)return sha224$1;hasRequiredSha224=1;var d=requireInherits_browser(),b=requireSha256(),tt=requireHash$1(),nt=requireSafeBuffer$1().Buffer,st=new Array(64);function ot(){this.init(),this._w=st,tt.call(this,64,56)}return d(ot,b),ot.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},ot.prototype._hash=function(){var ft=nt.allocUnsafe(28);return ft.writeInt32BE(this._a,0),ft.writeInt32BE(this._b,4),ft.writeInt32BE(this._c,8),ft.writeInt32BE(this._d,12),ft.writeInt32BE(this._e,16),ft.writeInt32BE(this._f,20),ft.writeInt32BE(this._g,24),ft},sha224$1=ot,sha224$1}var sha512$5,hasRequiredSha512;function requireSha512(){if(hasRequiredSha512)return sha512$5;hasRequiredSha512=1;var d=requireInherits_browser(),b=requireHash$1(),tt=requireSafeBuffer$1().Buffer,nt=[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],st=new Array(160);function ot(){this.init(),this._w=st,b.call(this,128,112)}d(ot,b),ot.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};function ft(kt,Dt,Tt){return Tt^kt&(Dt^Tt)}function ht(kt,Dt,Tt){return kt&Dt|Tt&(kt|Dt)}function gt(kt,Dt){return(kt>>>28|Dt<<4)^(Dt>>>2|kt<<30)^(Dt>>>7|kt<<25)}function vt(kt,Dt){return(kt>>>14|Dt<<18)^(kt>>>18|Dt<<14)^(Dt>>>9|kt<<23)}function mt(kt,Dt){return(kt>>>1|Dt<<31)^(kt>>>8|Dt<<24)^kt>>>7}function bt(kt,Dt){return(kt>>>1|Dt<<31)^(kt>>>8|Dt<<24)^(kt>>>7|Dt<<25)}function wt(kt,Dt){return(kt>>>19|Dt<<13)^(Dt>>>29|kt<<3)^kt>>>6}function xt(kt,Dt){return(kt>>>19|Dt<<13)^(Dt>>>29|kt<<3)^(kt>>>6|Dt<<26)}function Et(kt,Dt){return kt>>>0
>>0?1:0}return ot.prototype._update=function(kt){for(var Dt=this._w,Tt=this._ah|0,qt=this._bh|0,jt=this._ch|0,Lt=this._dh|0,Gt=this._eh|0,Qt=this._fh|0,tr=this._gh|0,sr=this._hh|0,ar=this._al|0,_r=this._bl|0,Jt=this._cl|0,Rt=this._dl|0,Ct=this._el|0,yt=this._fl|0,_t=this._gl|0,$t=this._hl|0,At=0;At<32;At+=2)Dt[At]=kt.readInt32BE(At*4),Dt[At+1]=kt.readInt32BE(At*4+4);for(;At<160;At+=2){var It=Dt[At-30],Bt=Dt[At-15*2+1],Pt=mt(It,Bt),Ot=bt(Bt,It);It=Dt[At-2*2],Bt=Dt[At-2*2+1];var Mt=wt(It,Bt),zt=xt(Bt,It),yr=Dt[At-7*2],vr=Dt[At-7*2+1],hr=Dt[At-16*2],rr=Dt[At-16*2+1],er=Ot+vr|0,fr=Pt+yr+Et(er,Ot)|0;er=er+zt|0,fr=fr+Mt+Et(er,zt)|0,er=er+rr|0,fr=fr+hr+Et(er,rr)|0,Dt[At]=fr,Dt[At+1]=er}for(var wr=0;wr<160;wr+=2){fr=Dt[wr],er=Dt[wr+1];var nr=ht(Tt,qt,jt),ir=ht(ar,_r,Jt),Br=gt(Tt,ar),Ir=gt(ar,Tt),Dr=vt(Gt,Ct),Jr=vt(Ct,Gt),Yr=nt[wr],Wr=nt[wr+1],Or=ft(Gt,Qt,tr),hn=ft(Ct,yt,_t),nn=$t+Jr|0,kn=sr+Dr+Et(nn,$t)|0;nn=nn+hn|0,kn=kn+Or+Et(nn,hn)|0,nn=nn+Wr|0,kn=kn+Yr+Et(nn,Wr)|0,nn=nn+er|0,kn=kn+fr+Et(nn,er)|0;var yn=Ir+ir|0,rn=Br+nr+Et(yn,Ir)|0;sr=tr,$t=_t,tr=Qt,_t=yt,Qt=Gt,yt=Ct,Ct=Rt+nn|0,Gt=Lt+kn+Et(Ct,Rt)|0,Lt=jt,Rt=Jt,jt=qt,Jt=_r,qt=Tt,_r=ar,ar=nn+yn|0,Tt=kn+rn+Et(ar,nn)|0}this._al=this._al+ar|0,this._bl=this._bl+_r|0,this._cl=this._cl+Jt|0,this._dl=this._dl+Rt|0,this._el=this._el+Ct|0,this._fl=this._fl+yt|0,this._gl=this._gl+_t|0,this._hl=this._hl+$t|0,this._ah=this._ah+Tt+Et(this._al,ar)|0,this._bh=this._bh+qt+Et(this._bl,_r)|0,this._ch=this._ch+jt+Et(this._cl,Jt)|0,this._dh=this._dh+Lt+Et(this._dl,Rt)|0,this._eh=this._eh+Gt+Et(this._el,Ct)|0,this._fh=this._fh+Qt+Et(this._fl,yt)|0,this._gh=this._gh+tr+Et(this._gl,_t)|0,this._hh=this._hh+sr+Et(this._hl,$t)|0},ot.prototype._hash=function(){var kt=tt.allocUnsafe(64);function Dt(Tt,qt,jt){kt.writeInt32BE(Tt,jt),kt.writeInt32BE(qt,jt+4)}return Dt(this._ah,this._al,0),Dt(this._bh,this._bl,8),Dt(this._ch,this._cl,16),Dt(this._dh,this._dl,24),Dt(this._eh,this._el,32),Dt(this._fh,this._fl,40),Dt(this._gh,this._gl,48),Dt(this._hh,this._hl,56),kt},sha512$5=ot,sha512$5}var sha384$1,hasRequiredSha384;function requireSha384(){if(hasRequiredSha384)return sha384$1;hasRequiredSha384=1;var d=requireInherits_browser(),b=requireSha512(),tt=requireHash$1(),nt=requireSafeBuffer$1().Buffer,st=new Array(160);function ot(){this.init(),this._w=st,tt.call(this,128,112)}return d(ot,b),ot.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},ot.prototype._hash=function(){var ft=nt.allocUnsafe(48);function ht(gt,vt,mt){ft.writeInt32BE(gt,mt),ft.writeInt32BE(vt,mt+4)}return ht(this._ah,this._al,0),ht(this._bh,this._bl,8),ht(this._ch,this._cl,16),ht(this._dh,this._dl,24),ht(this._eh,this._el,32),ht(this._fh,this._fl,40),ft},sha384$1=ot,sha384$1}var hasRequiredSha_js;function requireSha_js(){if(hasRequiredSha_js)return sha_js.exports;hasRequiredSha_js=1;var d=sha_js.exports=function(tt){tt=tt.toLowerCase();var nt=d[tt];if(!nt)throw new Error(tt+" is not supported (we accept pull requests)");return new nt};return d.sha=requireSha$1(),d.sha1=requireSha1(),d.sha224=requireSha224(),d.sha256=requireSha256(),d.sha384=requireSha384(),d.sha512=requireSha512(),sha_js.exports}var streamBrowserify,hasRequiredStreamBrowserify;function requireStreamBrowserify(){if(hasRequiredStreamBrowserify)return streamBrowserify;hasRequiredStreamBrowserify=1,streamBrowserify=tt;var d=requireEvents().EventEmitter,b=requireInherits_browser();b(tt,d),tt.Readable=require_stream_readable$1(),tt.Writable=require_stream_writable$1(),tt.Duplex=require_stream_duplex$1(),tt.Transform=require_stream_transform$1(),tt.PassThrough=require_stream_passthrough$1(),tt.finished=requireEndOfStream(),tt.pipeline=requirePipeline(),tt.Stream=tt;function tt(){d.call(this)}return tt.prototype.pipe=function(nt,st){var ot=this;function ft(xt){nt.writable&&nt.write(xt)===!1&&ot.pause&&ot.pause()}ot.on("data",ft);function ht(){ot.readable&&ot.resume&&ot.resume()}nt.on("drain",ht),!nt._isStdio&&(!st||st.end!==!1)&&(ot.on("end",vt),ot.on("close",mt));var gt=!1;function vt(){gt||(gt=!0,nt.end())}function mt(){gt||(gt=!0,typeof nt.destroy=="function"&&nt.destroy())}function bt(xt){if(wt(),d.listenerCount(this,"error")===0)throw xt}ot.on("error",bt),nt.on("error",bt);function wt(){ot.removeListener("data",ft),nt.removeListener("drain",ht),ot.removeListener("end",vt),ot.removeListener("close",mt),ot.removeListener("error",bt),nt.removeListener("error",bt),ot.removeListener("end",wt),ot.removeListener("close",wt),nt.removeListener("close",wt)}return ot.on("end",wt),ot.on("close",wt),nt.on("close",wt),nt.emit("pipe",ot),nt},streamBrowserify}var cipherBase,hasRequiredCipherBase;function requireCipherBase(){if(hasRequiredCipherBase)return cipherBase;hasRequiredCipherBase=1;var d=requireSafeBuffer$1().Buffer,b=requireStreamBrowserify().Transform,tt=requireString_decoder().StringDecoder,nt=requireInherits_browser();function st(ot){b.call(this),this.hashMode=typeof ot=="string",this.hashMode?this[ot]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}return nt(st,b),st.prototype.update=function(ot,ft,ht){typeof ot=="string"&&(ot=d.from(ot,ft));var gt=this._update(ot);return this.hashMode?this:(ht&&(gt=this._toString(gt,ht)),gt)},st.prototype.setAutoPadding=function(){},st.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},st.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},st.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},st.prototype._transform=function(ot,ft,ht){var gt;try{this.hashMode?this._update(ot):this.push(this._update(ot))}catch(vt){gt=vt}finally{ht(gt)}},st.prototype._flush=function(ot){var ft;try{this.push(this.__final())}catch(ht){ft=ht}ot(ft)},st.prototype._finalOrDigest=function(ot){var ft=this.__final()||d.alloc(0);return ot&&(ft=this._toString(ft,ot,!0)),ft},st.prototype._toString=function(ot,ft,ht){if(this._decoder||(this._decoder=new tt(ft),this._encoding=ft),this._encoding!==ft)throw new Error("can't switch encodings");var gt=this._decoder.write(ot);return ht&&(gt+=this._decoder.end()),gt},cipherBase=st,cipherBase}var browser$a,hasRequiredBrowser$9;function requireBrowser$9(){if(hasRequiredBrowser$9)return browser$a;hasRequiredBrowser$9=1;var d=requireInherits_browser(),b=requireMd5_js(),tt=requireRipemd160(),nt=requireSha_js(),st=requireCipherBase();function ot(ft){st.call(this,"digest"),this._hash=ft}return d(ot,st),ot.prototype._update=function(ft){this._hash.update(ft)},ot.prototype._final=function(){return this._hash.digest()},browser$a=function(ht){return ht=ht.toLowerCase(),ht==="md5"?new b:ht==="rmd160"||ht==="ripemd160"?new tt:new ot(nt(ht))},browser$a}var legacy,hasRequiredLegacy;function requireLegacy(){if(hasRequiredLegacy)return legacy;hasRequiredLegacy=1;var d=requireInherits_browser(),b=requireSafeBuffer$1().Buffer,tt=requireCipherBase(),nt=b.alloc(128),st=64;function ot(ft,ht){tt.call(this,"digest"),typeof ht=="string"&&(ht=b.from(ht)),this._alg=ft,this._key=ht,ht.length>st?ht=ft(ht):ht.lengthbt){var wt=vt==="rmd160"?new ot:ft(vt);mt=wt.update(mt).digest()}else mt.lengthd||tt!==tt)throw new TypeError("Bad key length")},precondition}var defaultEncoding_1,hasRequiredDefaultEncoding;function requireDefaultEncoding(){if(hasRequiredDefaultEncoding)return defaultEncoding_1;hasRequiredDefaultEncoding=1;var d;if(commonjsGlobal.process&&commonjsGlobal.process.browser)d="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var b=parseInt(process$1.version.split(".")[0].slice(1),10);d=b>=6?"utf-8":"binary"}else d="utf-8";return defaultEncoding_1=d,defaultEncoding_1}var toBuffer,hasRequiredToBuffer;function requireToBuffer(){if(hasRequiredToBuffer)return toBuffer;hasRequiredToBuffer=1;var d=requireSafeBuffer$1().Buffer;return toBuffer=function(b,tt,nt){if(d.isBuffer(b))return b;if(typeof b=="string")return d.from(b,tt);if(ArrayBuffer.isView(b))return d.from(b.buffer);throw new TypeError(nt+" must be a string, a Buffer, a typed array or a DataView")},toBuffer}var syncBrowser,hasRequiredSyncBrowser;function requireSyncBrowser(){if(hasRequiredSyncBrowser)return syncBrowser;hasRequiredSyncBrowser=1;var d=requireMd5(),b=requireRipemd160(),tt=requireSha_js(),nt=requireSafeBuffer$1().Buffer,st=requirePrecondition(),ot=requireDefaultEncoding(),ft=requireToBuffer(),ht=nt.alloc(128),gt={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function vt(wt,xt,Et){var kt=mt(wt),Dt=wt==="sha512"||wt==="sha384"?128:64;xt.length>Dt?xt=kt(xt):xt.length>>0},utils$c.writeUInt32BE=function(st,ot,ft){st[0+ft]=ot>>>24,st[1+ft]=ot>>>16&255,st[2+ft]=ot>>>8&255,st[3+ft]=ot&255},utils$c.ip=function(st,ot,ft,ht){for(var gt=0,vt=0,mt=6;mt>=0;mt-=2){for(var bt=0;bt<=24;bt+=8)gt<<=1,gt|=ot>>>bt+mt&1;for(var bt=0;bt<=24;bt+=8)gt<<=1,gt|=st>>>bt+mt&1}for(var mt=6;mt>=0;mt-=2){for(var bt=1;bt<=25;bt+=8)vt<<=1,vt|=ot>>>bt+mt&1;for(var bt=1;bt<=25;bt+=8)vt<<=1,vt|=st>>>bt+mt&1}ft[ht+0]=gt>>>0,ft[ht+1]=vt>>>0},utils$c.rip=function(st,ot,ft,ht){for(var gt=0,vt=0,mt=0;mt<4;mt++)for(var bt=24;bt>=0;bt-=8)gt<<=1,gt|=ot>>>bt+mt&1,gt<<=1,gt|=st>>>bt+mt&1;for(var mt=4;mt<8;mt++)for(var bt=24;bt>=0;bt-=8)vt<<=1,vt|=ot>>>bt+mt&1,vt<<=1,vt|=st>>>bt+mt&1;ft[ht+0]=gt>>>0,ft[ht+1]=vt>>>0},utils$c.pc1=function(st,ot,ft,ht){for(var gt=0,vt=0,mt=7;mt>=5;mt--){for(var bt=0;bt<=24;bt+=8)gt<<=1,gt|=ot>>bt+mt&1;for(var bt=0;bt<=24;bt+=8)gt<<=1,gt|=st>>bt+mt&1}for(var bt=0;bt<=24;bt+=8)gt<<=1,gt|=ot>>bt+mt&1;for(var mt=1;mt<=3;mt++){for(var bt=0;bt<=24;bt+=8)vt<<=1,vt|=ot>>bt+mt&1;for(var bt=0;bt<=24;bt+=8)vt<<=1,vt|=st>>bt+mt&1}for(var bt=0;bt<=24;bt+=8)vt<<=1,vt|=st>>bt+mt&1;ft[ht+0]=gt>>>0,ft[ht+1]=vt>>>0},utils$c.r28shl=function(st,ot){return st<>>28-ot};var d=[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];utils$c.pc2=function(st,ot,ft,ht){for(var gt=0,vt=0,mt=d.length>>>1,bt=0;bt>>d[bt]&1;for(var bt=mt;bt>>d[bt]&1;ft[ht+0]=gt>>>0,ft[ht+1]=vt>>>0},utils$c.expand=function(st,ot,ft){var ht=0,gt=0;ht=(st&1)<<5|st>>>27;for(var vt=23;vt>=15;vt-=4)ht<<=6,ht|=st>>>vt&63;for(var vt=11;vt>=3;vt-=4)gt|=st>>>vt&63,gt<<=6;gt|=(st&31)<<1|st>>>31,ot[ft+0]=ht>>>0,ot[ft+1]=gt>>>0};var b=[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];utils$c.substitute=function(st,ot){for(var ft=0,ht=0;ht<4;ht++){var gt=st>>>18-ht*6&63,vt=b[ht*64+gt];ft<<=4,ft|=vt}for(var ht=0;ht<4;ht++){var gt=ot>>>18-ht*6&63,vt=b[4*64+ht*64+gt];ft<<=4,ft|=vt}return ft>>>0};var tt=[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];return utils$c.permute=function(st){for(var ot=0,ft=0;ft>>tt[ft]&1;return ot>>>0},utils$c.padSplit=function(st,ot,ft){for(var ht=st.toString(2);ht.length0;ft--)st+=this._buffer(nt,st),ot+=this._flushBuffer(ht,ot);return st+=this._buffer(nt,st),ht},b.prototype.final=function(nt){var st;nt&&(st=this.update(nt));var ot;return this.type==="encrypt"?ot=this._finalEncrypt():ot=this._finalDecrypt(),st?st.concat(ot):ot},b.prototype._pad=function(nt,st){if(st===0)return!1;for(;st>>1];mt=tt.r28shl(mt,xt),bt=tt.r28shl(bt,xt),tt.pc2(mt,bt,gt.keys,wt)}},ot.prototype._update=function(gt,vt,mt,bt){var wt=this._desState,xt=tt.readUInt32BE(gt,vt),Et=tt.readUInt32BE(gt,vt+4);tt.ip(xt,Et,wt.tmp,0),xt=wt.tmp[0],Et=wt.tmp[1],this.type==="encrypt"?this._encrypt(wt,xt,Et,wt.tmp,0):this._decrypt(wt,xt,Et,wt.tmp,0),xt=wt.tmp[0],Et=wt.tmp[1],tt.writeUInt32BE(mt,xt,bt),tt.writeUInt32BE(mt,Et,bt+4)},ot.prototype._pad=function(gt,vt){if(this.padding===!1)return!1;for(var mt=gt.length-vt,bt=vt;bt>>0,xt=Lt}tt.rip(Et,xt,bt,wt)},ot.prototype._decrypt=function(gt,vt,mt,bt,wt){for(var xt=mt,Et=vt,kt=gt.keys.length-2;kt>=0;kt-=2){var Dt=gt.keys[kt],Tt=gt.keys[kt+1];tt.expand(xt,gt.tmp,0),Dt^=gt.tmp[0],Tt^=gt.tmp[1];var qt=tt.substitute(Dt,Tt),jt=tt.permute(qt),Lt=xt;xt=(Et^jt)>>>0,Et=Lt}tt.rip(xt,Et,bt,wt)},des}var cbc$1={},hasRequiredCbc$1;function requireCbc$1(){if(hasRequiredCbc$1)return cbc$1;hasRequiredCbc$1=1;var d=requireMinimalisticAssert(),b=requireInherits_browser(),tt={};function nt(ot){d.equal(ot.length,8,"Invalid IV length"),this.iv=new Array(8);for(var ft=0;ft>ht%8,nt._prev=tt(nt._prev,ot?mt:bt);return vt}function tt(nt,st){var ot=nt.length,ft=-1,ht=d.allocUnsafe(nt.length);for(nt=d.concat([nt,d.from([st])]);++ft>7;return ht}return cfb1.encrypt=function(nt,st,ot){for(var ft=st.length,ht=d.allocUnsafe(ft),gt=-1;++gt>>24]^xt[Tt>>>16&255]^Et[qt>>>8&255]^kt[jt&255]^gt[sr++],Gt=wt[Tt>>>24]^xt[qt>>>16&255]^Et[jt>>>8&255]^kt[Dt&255]^gt[sr++],Qt=wt[qt>>>24]^xt[jt>>>16&255]^Et[Dt>>>8&255]^kt[Tt&255]^gt[sr++],tr=wt[jt>>>24]^xt[Dt>>>16&255]^Et[Tt>>>8&255]^kt[qt&255]^gt[sr++],Dt=Lt,Tt=Gt,qt=Qt,jt=tr;return Lt=(mt[Dt>>>24]<<24|mt[Tt>>>16&255]<<16|mt[qt>>>8&255]<<8|mt[jt&255])^gt[sr++],Gt=(mt[Tt>>>24]<<24|mt[qt>>>16&255]<<16|mt[jt>>>8&255]<<8|mt[Dt&255])^gt[sr++],Qt=(mt[qt>>>24]<<24|mt[jt>>>16&255]<<16|mt[Dt>>>8&255]<<8|mt[Tt&255])^gt[sr++],tr=(mt[jt>>>24]<<24|mt[Dt>>>16&255]<<16|mt[Tt>>>8&255]<<8|mt[qt&255])^gt[sr++],Lt=Lt>>>0,Gt=Gt>>>0,Qt=Qt>>>0,tr=tr>>>0,[Lt,Gt,Qt,tr]}var st=[0,1,2,4,8,16,32,64,128,27,54],ot=function(){for(var ht=new Array(256),gt=0;gt<256;gt++)gt<128?ht[gt]=gt<<1:ht[gt]=gt<<1^283;for(var vt=[],mt=[],bt=[[],[],[],[]],wt=[[],[],[],[]],xt=0,Et=0,kt=0;kt<256;++kt){var Dt=Et^Et<<1^Et<<2^Et<<3^Et<<4;Dt=Dt>>>8^Dt&255^99,vt[xt]=Dt,mt[Dt]=xt;var Tt=ht[xt],qt=ht[Tt],jt=ht[qt],Lt=ht[Dt]*257^Dt*16843008;bt[0][xt]=Lt<<24|Lt>>>8,bt[1][xt]=Lt<<16|Lt>>>16,bt[2][xt]=Lt<<8|Lt>>>24,bt[3][xt]=Lt,Lt=jt*16843009^qt*65537^Tt*257^xt*16843008,wt[0][Dt]=Lt<<24|Lt>>>8,wt[1][Dt]=Lt<<16|Lt>>>16,wt[2][Dt]=Lt<<8|Lt>>>24,wt[3][Dt]=Lt,xt===0?xt=Et=1:(xt=Tt^ht[ht[ht[jt^Tt]]],Et^=ht[ht[Et]])}return{SBOX:vt,INV_SBOX:mt,SUB_MIX:bt,INV_SUB_MIX:wt}}();function ft(ht){this._key=b(ht),this._reset()}return ft.blockSize=4*4,ft.keySize=256/8,ft.prototype.blockSize=ft.blockSize,ft.prototype.keySize=ft.keySize,ft.prototype._reset=function(){for(var ht=this._key,gt=ht.length,vt=gt+6,mt=(vt+1)*4,bt=[],wt=0;wt>>24,xt=ot.SBOX[xt>>>24]<<24|ot.SBOX[xt>>>16&255]<<16|ot.SBOX[xt>>>8&255]<<8|ot.SBOX[xt&255],xt^=st[wt/gt|0]<<24):gt>6&&wt%gt===4&&(xt=ot.SBOX[xt>>>24]<<24|ot.SBOX[xt>>>16&255]<<16|ot.SBOX[xt>>>8&255]<<8|ot.SBOX[xt&255]),bt[wt]=bt[wt-gt]^xt}for(var Et=[],kt=0;kt>>24]]^ot.INV_SUB_MIX[1][ot.SBOX[Tt>>>16&255]]^ot.INV_SUB_MIX[2][ot.SBOX[Tt>>>8&255]]^ot.INV_SUB_MIX[3][ot.SBOX[Tt&255]]}this._nRounds=vt,this._keySchedule=bt,this._invKeySchedule=Et},ft.prototype.encryptBlockRaw=function(ht){return ht=b(ht),nt(ht,this._keySchedule,ot.SUB_MIX,ot.SBOX,this._nRounds)},ft.prototype.encryptBlock=function(ht){var gt=this.encryptBlockRaw(ht),vt=d.allocUnsafe(16);return vt.writeUInt32BE(gt[0],0),vt.writeUInt32BE(gt[1],4),vt.writeUInt32BE(gt[2],8),vt.writeUInt32BE(gt[3],12),vt},ft.prototype.decryptBlock=function(ht){ht=b(ht);var gt=ht[1];ht[1]=ht[3],ht[3]=gt;var vt=nt(ht,this._invKeySchedule,ot.INV_SUB_MIX,ot.INV_SBOX,this._nRounds),mt=d.allocUnsafe(16);return mt.writeUInt32BE(vt[0],0),mt.writeUInt32BE(vt[3],4),mt.writeUInt32BE(vt[2],8),mt.writeUInt32BE(vt[1],12),mt},ft.prototype.scrub=function(){tt(this._keySchedule),tt(this._invKeySchedule),tt(this._key)},aes.AES=ft,aes}var ghash,hasRequiredGhash;function requireGhash(){if(hasRequiredGhash)return ghash;hasRequiredGhash=1;var d=requireSafeBuffer$1().Buffer,b=d.alloc(16,0);function tt(ot){return[ot.readUInt32BE(0),ot.readUInt32BE(4),ot.readUInt32BE(8),ot.readUInt32BE(12)]}function nt(ot){var ft=d.allocUnsafe(16);return ft.writeUInt32BE(ot[0]>>>0,0),ft.writeUInt32BE(ot[1]>>>0,4),ft.writeUInt32BE(ot[2]>>>0,8),ft.writeUInt32BE(ot[3]>>>0,12),ft}function st(ot){this.h=ot,this.state=d.alloc(16,0),this.cache=d.allocUnsafe(0)}return st.prototype.ghash=function(ot){for(var ft=-1;++ft0;ht--)ot[ht]=ot[ht]>>>1|(ot[ht-1]&1)<<31;ot[0]=ot[0]>>>1,vt&&(ot[0]=ot[0]^225<<24)}this.state=nt(ft)},st.prototype.update=function(ot){this.cache=d.concat([this.cache,ot]);for(var ft;this.cache.length>=16;)ft=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(ft)},st.prototype.final=function(ot,ft){return this.cache.length&&this.ghash(d.concat([this.cache,b],16)),this.ghash(nt([0,ot,0,ft])),this.state},ghash=st,ghash}var authCipher,hasRequiredAuthCipher;function requireAuthCipher(){if(hasRequiredAuthCipher)return authCipher;hasRequiredAuthCipher=1;var d=requireAes(),b=requireSafeBuffer$1().Buffer,tt=requireCipherBase(),nt=requireInherits_browser(),st=requireGhash(),ot=requireBufferXor(),ft=requireIncr32();function ht(mt,bt){var wt=0;mt.length!==bt.length&&wt++;for(var xt=Math.min(mt.length,bt.length),Et=0;Et0||ft>0;){var bt=new b;bt.update(mt),bt.update(nt),st&&bt.update(st),mt=bt.digest();var wt=0;if(ht>0){var xt=gt.length-ht;wt=Math.min(ht,mt.length),mt.copy(gt,xt,0,wt),ht-=wt}if(wt0){var Et=vt.length-ft,kt=Math.min(ft,mt.length-wt);mt.copy(vt,Et,wt,wt+kt),ft-=kt}}return mt.fill(0),{key:gt,iv:vt}}return evp_bytestokey=tt,evp_bytestokey}var hasRequiredEncrypter;function requireEncrypter(){if(hasRequiredEncrypter)return encrypter;hasRequiredEncrypter=1;var d=requireModes$1(),b=requireAuthCipher(),tt=requireSafeBuffer$1().Buffer,nt=requireStreamCipher(),st=requireCipherBase(),ot=requireAes(),ft=requireEvp_bytestokey(),ht=requireInherits_browser();function gt(xt,Et,kt){st.call(this),this._cache=new mt,this._cipher=new ot.AES(Et),this._prev=tt.from(kt),this._mode=xt,this._autopadding=!0}ht(gt,st),gt.prototype._update=function(xt){this._cache.add(xt);for(var Et,kt,Dt=[];Et=this._cache.get();)kt=this._mode.encrypt(this,Et),Dt.push(kt);return tt.concat(Dt)};var vt=tt.alloc(16,16);gt.prototype._final=function(){var xt=this._cache.flush();if(this._autopadding)return xt=this._mode.encrypt(this,xt),this._cipher.scrub(),xt;if(!xt.equals(vt))throw this._cipher.scrub(),new Error("data not multiple of block length")},gt.prototype.setAutoPadding=function(xt){return this._autopadding=!!xt,this};function mt(){this.cache=tt.allocUnsafe(0)}mt.prototype.add=function(xt){this.cache=tt.concat([this.cache,xt])},mt.prototype.get=function(){if(this.cache.length>15){var xt=this.cache.slice(0,16);return this.cache=this.cache.slice(16),xt}return null},mt.prototype.flush=function(){for(var xt=16-this.cache.length,Et=tt.allocUnsafe(xt),kt=-1;++kt16)return Et=this.cache.slice(0,16),this.cache=this.cache.slice(16),Et}else if(this.cache.length>=16)return Et=this.cache.slice(0,16),this.cache=this.cache.slice(16),Et;return null},vt.prototype.flush=function(){if(this.cache.length)return this.cache};function mt(xt){var Et=xt[15];if(Et<1||Et>16)throw new Error("unable to decrypt data");for(var kt=-1;++kt0?Rt:Ct},ot.min=function(Rt,Ct){return Rt.cmp(Ct)<0?Rt:Ct},ot.prototype._init=function(Rt,Ct,yt){if(typeof Rt=="number")return this._initNumber(Rt,Ct,yt);if(typeof Rt=="object")return this._initArray(Rt,Ct,yt);Ct==="hex"&&(Ct=16),nt(Ct===(Ct|0)&&Ct>=2&&Ct<=36),Rt=Rt.toString().replace(/\s+/g,"");var _t=0;Rt[0]==="-"&&(_t++,this.negative=1),_t=0;_t-=3)At=Rt[_t]|Rt[_t-1]<<8|Rt[_t-2]<<16,this.words[$t]|=At<>>26-It&67108863,It+=24,It>=26&&(It-=26,$t++);else if(yt==="le")for(_t=0,$t=0;_t>>26-It&67108863,It+=24,It>=26&&(It-=26,$t++);return this.strip()};function ht(Jt,Rt){var Ct=Jt.charCodeAt(Rt);return Ct>=65&&Ct<=70?Ct-55:Ct>=97&&Ct<=102?Ct-87:Ct-48&15}function gt(Jt,Rt,Ct){var yt=ht(Jt,Ct);return Ct-1>=Rt&&(yt|=ht(Jt,Ct-1)<<4),yt}ot.prototype._parseHex=function(Rt,Ct,yt){this.length=Math.ceil((Rt.length-Ct)/6),this.words=new Array(this.length);for(var _t=0;_t=Ct;_t-=2)It=gt(Rt,Ct,_t)<<$t,this.words[At]|=It&67108863,$t>=18?($t-=18,At+=1,this.words[At]|=It>>>26):$t+=8;else{var Bt=Rt.length-Ct;for(_t=Bt%2===0?Ct+1:Ct;_t=18?($t-=18,At+=1,this.words[At]|=It>>>26):$t+=8}this.strip()};function vt(Jt,Rt,Ct,yt){for(var _t=0,$t=Math.min(Jt.length,Ct),At=Rt;At<$t;At++){var It=Jt.charCodeAt(At)-48;_t*=yt,It>=49?_t+=It-49+10:It>=17?_t+=It-17+10:_t+=It}return _t}ot.prototype._parseBase=function(Rt,Ct,yt){this.words=[0],this.length=1;for(var _t=0,$t=1;$t<=67108863;$t*=Ct)_t++;_t--,$t=$t/Ct|0;for(var At=Rt.length-yt,It=At%_t,Bt=Math.min(At,At-It)+yt,Pt=0,Ot=yt;Ot1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},ot.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},ot.prototype.inspect=function(){return(this.red?""};var mt=["","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"],bt=[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],wt=[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];ot.prototype.toString=function(Rt,Ct){Rt=Rt||10,Ct=Ct|0||1;var yt;if(Rt===16||Rt==="hex"){yt="";for(var _t=0,$t=0,At=0;At>>24-_t&16777215,$t!==0||At!==this.length-1?yt=mt[6-Bt.length]+Bt+yt:yt=Bt+yt,_t+=2,_t>=26&&(_t-=26,At--)}for($t!==0&&(yt=$t.toString(16)+yt);yt.length%Ct!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}if(Rt===(Rt|0)&&Rt>=2&&Rt<=36){var Pt=bt[Rt],Ot=wt[Rt];yt="";var Mt=this.clone();for(Mt.negative=0;!Mt.isZero();){var zt=Mt.modn(Ot).toString(Rt);Mt=Mt.idivn(Ot),Mt.isZero()?yt=zt+yt:yt=mt[Pt-zt.length]+zt+yt}for(this.isZero()&&(yt="0"+yt);yt.length%Ct!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}nt(!1,"Base should be between 2 and 36")},ot.prototype.toNumber=function(){var Rt=this.words[0];return this.length===2?Rt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Rt+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Rt:Rt},ot.prototype.toJSON=function(){return this.toString(16)},ot.prototype.toBuffer=function(Rt,Ct){return nt(typeof ft<"u"),this.toArrayLike(ft,Rt,Ct)},ot.prototype.toArray=function(Rt,Ct){return this.toArrayLike(Array,Rt,Ct)},ot.prototype.toArrayLike=function(Rt,Ct,yt){var _t=this.byteLength(),$t=yt||Math.max(1,_t);nt(_t<=$t,"byte array longer than desired length"),nt($t>0,"Requested array length <= 0"),this.strip();var At=Ct==="le",It=new Rt($t),Bt,Pt,Ot=this.clone();if(At){for(Pt=0;!Ot.isZero();Pt++)Bt=Ot.andln(255),Ot.iushrn(8),It[Pt]=Bt;for(;Pt<$t;Pt++)It[Pt]=0}else{for(Pt=0;Pt<$t-_t;Pt++)It[Pt]=0;for(Pt=0;!Ot.isZero();Pt++)Bt=Ot.andln(255),Ot.iushrn(8),It[$t-Pt-1]=Bt}return It},Math.clz32?ot.prototype._countBits=function(Rt){return 32-Math.clz32(Rt)}:ot.prototype._countBits=function(Rt){var Ct=Rt,yt=0;return Ct>=4096&&(yt+=13,Ct>>>=13),Ct>=64&&(yt+=7,Ct>>>=7),Ct>=8&&(yt+=4,Ct>>>=4),Ct>=2&&(yt+=2,Ct>>>=2),yt+Ct},ot.prototype._zeroBits=function(Rt){if(Rt===0)return 26;var Ct=Rt,yt=0;return Ct&8191||(yt+=13,Ct>>>=13),Ct&127||(yt+=7,Ct>>>=7),Ct&15||(yt+=4,Ct>>>=4),Ct&3||(yt+=2,Ct>>>=2),Ct&1||yt++,yt},ot.prototype.bitLength=function(){var Rt=this.words[this.length-1],Ct=this._countBits(Rt);return(this.length-1)*26+Ct};function xt(Jt){for(var Rt=new Array(Jt.bitLength()),Ct=0;Ct>>_t}return Rt}ot.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Rt=0,Ct=0;CtRt.length?this.clone().ior(Rt):Rt.clone().ior(this)},ot.prototype.uor=function(Rt){return this.length>Rt.length?this.clone().iuor(Rt):Rt.clone().iuor(this)},ot.prototype.iuand=function(Rt){var Ct;this.length>Rt.length?Ct=Rt:Ct=this;for(var yt=0;ytRt.length?this.clone().iand(Rt):Rt.clone().iand(this)},ot.prototype.uand=function(Rt){return this.length>Rt.length?this.clone().iuand(Rt):Rt.clone().iuand(this)},ot.prototype.iuxor=function(Rt){var Ct,yt;this.length>Rt.length?(Ct=this,yt=Rt):(Ct=Rt,yt=this);for(var _t=0;_tRt.length?this.clone().ixor(Rt):Rt.clone().ixor(this)},ot.prototype.uxor=function(Rt){return this.length>Rt.length?this.clone().iuxor(Rt):Rt.clone().iuxor(this)},ot.prototype.inotn=function(Rt){nt(typeof Rt=="number"&&Rt>=0);var Ct=Math.ceil(Rt/26)|0,yt=Rt%26;this._expand(Ct),yt>0&&Ct--;for(var _t=0;_t0&&(this.words[_t]=~this.words[_t]&67108863>>26-yt),this.strip()},ot.prototype.notn=function(Rt){return this.clone().inotn(Rt)},ot.prototype.setn=function(Rt,Ct){nt(typeof Rt=="number"&&Rt>=0);var yt=Rt/26|0,_t=Rt%26;return this._expand(yt+1),Ct?this.words[yt]=this.words[yt]|1<<_t:this.words[yt]=this.words[yt]&~(1<<_t),this.strip()},ot.prototype.iadd=function(Rt){var Ct;if(this.negative!==0&&Rt.negative===0)return this.negative=0,Ct=this.isub(Rt),this.negative^=1,this._normSign();if(this.negative===0&&Rt.negative!==0)return Rt.negative=0,Ct=this.isub(Rt),Rt.negative=1,Ct._normSign();var yt,_t;this.length>Rt.length?(yt=this,_t=Rt):(yt=Rt,_t=this);for(var $t=0,At=0;At<_t.length;At++)Ct=(yt.words[At]|0)+(_t.words[At]|0)+$t,this.words[At]=Ct&67108863,$t=Ct>>>26;for(;$t!==0&&At>>26;if(this.length=yt.length,$t!==0)this.words[this.length]=$t,this.length++;else if(yt!==this)for(;AtRt.length?this.clone().iadd(Rt):Rt.clone().iadd(this)},ot.prototype.isub=function(Rt){if(Rt.negative!==0){Rt.negative=0;var Ct=this.iadd(Rt);return Rt.negative=1,Ct._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Rt),this.negative=1,this._normSign();var yt=this.cmp(Rt);if(yt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var _t,$t;yt>0?(_t=this,$t=Rt):(_t=Rt,$t=this);for(var At=0,It=0;It<$t.length;It++)Ct=(_t.words[It]|0)-($t.words[It]|0)+At,At=Ct>>26,this.words[It]=Ct&67108863;for(;At!==0&&It<_t.length;It++)Ct=(_t.words[It]|0)+At,At=Ct>>26,this.words[It]=Ct&67108863;if(At===0&&It<_t.length&&_t!==this)for(;It<_t.length;It++)this.words[It]=_t.words[It];return this.length=Math.max(this.length,It),_t!==this&&(this.negative=1),this.strip()},ot.prototype.sub=function(Rt){return this.clone().isub(Rt)};function Et(Jt,Rt,Ct){Ct.negative=Rt.negative^Jt.negative;var yt=Jt.length+Rt.length|0;Ct.length=yt,yt=yt-1|0;var _t=Jt.words[0]|0,$t=Rt.words[0]|0,At=_t*$t,It=At&67108863,Bt=At/67108864|0;Ct.words[0]=It;for(var Pt=1;Pt>>26,Mt=Bt&67108863,zt=Math.min(Pt,Rt.length-1),yr=Math.max(0,Pt-Jt.length+1);yr<=zt;yr++){var vr=Pt-yr|0;_t=Jt.words[vr]|0,$t=Rt.words[yr]|0,At=_t*$t+Mt,Ot+=At/67108864|0,Mt=At&67108863}Ct.words[Pt]=Mt|0,Bt=Ot|0}return Bt!==0?Ct.words[Pt]=Bt|0:Ct.length--,Ct.strip()}var kt=function(Rt,Ct,yt){var _t=Rt.words,$t=Ct.words,At=yt.words,It=0,Bt,Pt,Ot,Mt=_t[0]|0,zt=Mt&8191,yr=Mt>>>13,vr=_t[1]|0,hr=vr&8191,rr=vr>>>13,er=_t[2]|0,fr=er&8191,wr=er>>>13,nr=_t[3]|0,ir=nr&8191,Br=nr>>>13,Ir=_t[4]|0,Dr=Ir&8191,Jr=Ir>>>13,Yr=_t[5]|0,Wr=Yr&8191,Or=Yr>>>13,hn=_t[6]|0,nn=hn&8191,kn=hn>>>13,yn=_t[7]|0,rn=yn&8191,Ar=yn>>>13,dr=_t[8]|0,xr=dr&8191,Mr=dr>>>13,Tr=_t[9]|0,Yt=Tr&8191,Wt=Tr>>>13,Vt=$t[0]|0,or=Vt&8191,Cr=Vt>>>13,Rr=$t[1]|0,$r=Rr&8191,Hr=Rr>>>13,Nr=$t[2]|0,Ur=Nr&8191,_n=Nr>>>13,tn=$t[3]|0,gn=tn&8191,qn=tn>>>13,En=$t[4]|0,vn=En&8191,On=En>>>13,In=$t[5]|0,Mn=In&8191,Fn=In>>>13,Un=$t[6]|0,wn=Un&8191,Kn=Un>>>13,Ut=$t[7]|0,Ft=Ut&8191,Ht=Ut>>>13,St=$t[8]|0,Kt=St&8191,gr=St>>>13,br=$t[9]|0,kr=br&8191,Pr=br>>>13;yt.negative=Rt.negative^Ct.negative,yt.length=19,Bt=Math.imul(zt,or),Pt=Math.imul(zt,Cr),Pt=Pt+Math.imul(yr,or)|0,Ot=Math.imul(yr,Cr);var jr=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(jr>>>26)|0,jr&=67108863,Bt=Math.imul(hr,or),Pt=Math.imul(hr,Cr),Pt=Pt+Math.imul(rr,or)|0,Ot=Math.imul(rr,Cr),Bt=Bt+Math.imul(zt,$r)|0,Pt=Pt+Math.imul(zt,Hr)|0,Pt=Pt+Math.imul(yr,$r)|0,Ot=Ot+Math.imul(yr,Hr)|0;var qr=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(qr>>>26)|0,qr&=67108863,Bt=Math.imul(fr,or),Pt=Math.imul(fr,Cr),Pt=Pt+Math.imul(wr,or)|0,Ot=Math.imul(wr,Cr),Bt=Bt+Math.imul(hr,$r)|0,Pt=Pt+Math.imul(hr,Hr)|0,Pt=Pt+Math.imul(rr,$r)|0,Ot=Ot+Math.imul(rr,Hr)|0,Bt=Bt+Math.imul(zt,Ur)|0,Pt=Pt+Math.imul(zt,_n)|0,Pt=Pt+Math.imul(yr,Ur)|0,Ot=Ot+Math.imul(yr,_n)|0;var Sn=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(Sn>>>26)|0,Sn&=67108863,Bt=Math.imul(ir,or),Pt=Math.imul(ir,Cr),Pt=Pt+Math.imul(Br,or)|0,Ot=Math.imul(Br,Cr),Bt=Bt+Math.imul(fr,$r)|0,Pt=Pt+Math.imul(fr,Hr)|0,Pt=Pt+Math.imul(wr,$r)|0,Ot=Ot+Math.imul(wr,Hr)|0,Bt=Bt+Math.imul(hr,Ur)|0,Pt=Pt+Math.imul(hr,_n)|0,Pt=Pt+Math.imul(rr,Ur)|0,Ot=Ot+Math.imul(rr,_n)|0,Bt=Bt+Math.imul(zt,gn)|0,Pt=Pt+Math.imul(zt,qn)|0,Pt=Pt+Math.imul(yr,gn)|0,Ot=Ot+Math.imul(yr,qn)|0;var Vr=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,Bt=Math.imul(Dr,or),Pt=Math.imul(Dr,Cr),Pt=Pt+Math.imul(Jr,or)|0,Ot=Math.imul(Jr,Cr),Bt=Bt+Math.imul(ir,$r)|0,Pt=Pt+Math.imul(ir,Hr)|0,Pt=Pt+Math.imul(Br,$r)|0,Ot=Ot+Math.imul(Br,Hr)|0,Bt=Bt+Math.imul(fr,Ur)|0,Pt=Pt+Math.imul(fr,_n)|0,Pt=Pt+Math.imul(wr,Ur)|0,Ot=Ot+Math.imul(wr,_n)|0,Bt=Bt+Math.imul(hr,gn)|0,Pt=Pt+Math.imul(hr,qn)|0,Pt=Pt+Math.imul(rr,gn)|0,Ot=Ot+Math.imul(rr,qn)|0,Bt=Bt+Math.imul(zt,vn)|0,Pt=Pt+Math.imul(zt,On)|0,Pt=Pt+Math.imul(yr,vn)|0,Ot=Ot+Math.imul(yr,On)|0;var an=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(an>>>26)|0,an&=67108863,Bt=Math.imul(Wr,or),Pt=Math.imul(Wr,Cr),Pt=Pt+Math.imul(Or,or)|0,Ot=Math.imul(Or,Cr),Bt=Bt+Math.imul(Dr,$r)|0,Pt=Pt+Math.imul(Dr,Hr)|0,Pt=Pt+Math.imul(Jr,$r)|0,Ot=Ot+Math.imul(Jr,Hr)|0,Bt=Bt+Math.imul(ir,Ur)|0,Pt=Pt+Math.imul(ir,_n)|0,Pt=Pt+Math.imul(Br,Ur)|0,Ot=Ot+Math.imul(Br,_n)|0,Bt=Bt+Math.imul(fr,gn)|0,Pt=Pt+Math.imul(fr,qn)|0,Pt=Pt+Math.imul(wr,gn)|0,Ot=Ot+Math.imul(wr,qn)|0,Bt=Bt+Math.imul(hr,vn)|0,Pt=Pt+Math.imul(hr,On)|0,Pt=Pt+Math.imul(rr,vn)|0,Ot=Ot+Math.imul(rr,On)|0,Bt=Bt+Math.imul(zt,Mn)|0,Pt=Pt+Math.imul(zt,Fn)|0,Pt=Pt+Math.imul(yr,Mn)|0,Ot=Ot+Math.imul(yr,Fn)|0;var sn=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(sn>>>26)|0,sn&=67108863,Bt=Math.imul(nn,or),Pt=Math.imul(nn,Cr),Pt=Pt+Math.imul(kn,or)|0,Ot=Math.imul(kn,Cr),Bt=Bt+Math.imul(Wr,$r)|0,Pt=Pt+Math.imul(Wr,Hr)|0,Pt=Pt+Math.imul(Or,$r)|0,Ot=Ot+Math.imul(Or,Hr)|0,Bt=Bt+Math.imul(Dr,Ur)|0,Pt=Pt+Math.imul(Dr,_n)|0,Pt=Pt+Math.imul(Jr,Ur)|0,Ot=Ot+Math.imul(Jr,_n)|0,Bt=Bt+Math.imul(ir,gn)|0,Pt=Pt+Math.imul(ir,qn)|0,Pt=Pt+Math.imul(Br,gn)|0,Ot=Ot+Math.imul(Br,qn)|0,Bt=Bt+Math.imul(fr,vn)|0,Pt=Pt+Math.imul(fr,On)|0,Pt=Pt+Math.imul(wr,vn)|0,Ot=Ot+Math.imul(wr,On)|0,Bt=Bt+Math.imul(hr,Mn)|0,Pt=Pt+Math.imul(hr,Fn)|0,Pt=Pt+Math.imul(rr,Mn)|0,Ot=Ot+Math.imul(rr,Fn)|0,Bt=Bt+Math.imul(zt,wn)|0,Pt=Pt+Math.imul(zt,Kn)|0,Pt=Pt+Math.imul(yr,wn)|0,Ot=Ot+Math.imul(yr,Kn)|0;var pn=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(pn>>>26)|0,pn&=67108863,Bt=Math.imul(rn,or),Pt=Math.imul(rn,Cr),Pt=Pt+Math.imul(Ar,or)|0,Ot=Math.imul(Ar,Cr),Bt=Bt+Math.imul(nn,$r)|0,Pt=Pt+Math.imul(nn,Hr)|0,Pt=Pt+Math.imul(kn,$r)|0,Ot=Ot+Math.imul(kn,Hr)|0,Bt=Bt+Math.imul(Wr,Ur)|0,Pt=Pt+Math.imul(Wr,_n)|0,Pt=Pt+Math.imul(Or,Ur)|0,Ot=Ot+Math.imul(Or,_n)|0,Bt=Bt+Math.imul(Dr,gn)|0,Pt=Pt+Math.imul(Dr,qn)|0,Pt=Pt+Math.imul(Jr,gn)|0,Ot=Ot+Math.imul(Jr,qn)|0,Bt=Bt+Math.imul(ir,vn)|0,Pt=Pt+Math.imul(ir,On)|0,Pt=Pt+Math.imul(Br,vn)|0,Ot=Ot+Math.imul(Br,On)|0,Bt=Bt+Math.imul(fr,Mn)|0,Pt=Pt+Math.imul(fr,Fn)|0,Pt=Pt+Math.imul(wr,Mn)|0,Ot=Ot+Math.imul(wr,Fn)|0,Bt=Bt+Math.imul(hr,wn)|0,Pt=Pt+Math.imul(hr,Kn)|0,Pt=Pt+Math.imul(rr,wn)|0,Ot=Ot+Math.imul(rr,Kn)|0,Bt=Bt+Math.imul(zt,Ft)|0,Pt=Pt+Math.imul(zt,Ht)|0,Pt=Pt+Math.imul(yr,Ft)|0,Ot=Ot+Math.imul(yr,Ht)|0;var dn=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(dn>>>26)|0,dn&=67108863,Bt=Math.imul(xr,or),Pt=Math.imul(xr,Cr),Pt=Pt+Math.imul(Mr,or)|0,Ot=Math.imul(Mr,Cr),Bt=Bt+Math.imul(rn,$r)|0,Pt=Pt+Math.imul(rn,Hr)|0,Pt=Pt+Math.imul(Ar,$r)|0,Ot=Ot+Math.imul(Ar,Hr)|0,Bt=Bt+Math.imul(nn,Ur)|0,Pt=Pt+Math.imul(nn,_n)|0,Pt=Pt+Math.imul(kn,Ur)|0,Ot=Ot+Math.imul(kn,_n)|0,Bt=Bt+Math.imul(Wr,gn)|0,Pt=Pt+Math.imul(Wr,qn)|0,Pt=Pt+Math.imul(Or,gn)|0,Ot=Ot+Math.imul(Or,qn)|0,Bt=Bt+Math.imul(Dr,vn)|0,Pt=Pt+Math.imul(Dr,On)|0,Pt=Pt+Math.imul(Jr,vn)|0,Ot=Ot+Math.imul(Jr,On)|0,Bt=Bt+Math.imul(ir,Mn)|0,Pt=Pt+Math.imul(ir,Fn)|0,Pt=Pt+Math.imul(Br,Mn)|0,Ot=Ot+Math.imul(Br,Fn)|0,Bt=Bt+Math.imul(fr,wn)|0,Pt=Pt+Math.imul(fr,Kn)|0,Pt=Pt+Math.imul(wr,wn)|0,Ot=Ot+Math.imul(wr,Kn)|0,Bt=Bt+Math.imul(hr,Ft)|0,Pt=Pt+Math.imul(hr,Ht)|0,Pt=Pt+Math.imul(rr,Ft)|0,Ot=Ot+Math.imul(rr,Ht)|0,Bt=Bt+Math.imul(zt,Kt)|0,Pt=Pt+Math.imul(zt,gr)|0,Pt=Pt+Math.imul(yr,Kt)|0,Ot=Ot+Math.imul(yr,gr)|0;var ln=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(ln>>>26)|0,ln&=67108863,Bt=Math.imul(Yt,or),Pt=Math.imul(Yt,Cr),Pt=Pt+Math.imul(Wt,or)|0,Ot=Math.imul(Wt,Cr),Bt=Bt+Math.imul(xr,$r)|0,Pt=Pt+Math.imul(xr,Hr)|0,Pt=Pt+Math.imul(Mr,$r)|0,Ot=Ot+Math.imul(Mr,Hr)|0,Bt=Bt+Math.imul(rn,Ur)|0,Pt=Pt+Math.imul(rn,_n)|0,Pt=Pt+Math.imul(Ar,Ur)|0,Ot=Ot+Math.imul(Ar,_n)|0,Bt=Bt+Math.imul(nn,gn)|0,Pt=Pt+Math.imul(nn,qn)|0,Pt=Pt+Math.imul(kn,gn)|0,Ot=Ot+Math.imul(kn,qn)|0,Bt=Bt+Math.imul(Wr,vn)|0,Pt=Pt+Math.imul(Wr,On)|0,Pt=Pt+Math.imul(Or,vn)|0,Ot=Ot+Math.imul(Or,On)|0,Bt=Bt+Math.imul(Dr,Mn)|0,Pt=Pt+Math.imul(Dr,Fn)|0,Pt=Pt+Math.imul(Jr,Mn)|0,Ot=Ot+Math.imul(Jr,Fn)|0,Bt=Bt+Math.imul(ir,wn)|0,Pt=Pt+Math.imul(ir,Kn)|0,Pt=Pt+Math.imul(Br,wn)|0,Ot=Ot+Math.imul(Br,Kn)|0,Bt=Bt+Math.imul(fr,Ft)|0,Pt=Pt+Math.imul(fr,Ht)|0,Pt=Pt+Math.imul(wr,Ft)|0,Ot=Ot+Math.imul(wr,Ht)|0,Bt=Bt+Math.imul(hr,Kt)|0,Pt=Pt+Math.imul(hr,gr)|0,Pt=Pt+Math.imul(rr,Kt)|0,Ot=Ot+Math.imul(rr,gr)|0,Bt=Bt+Math.imul(zt,kr)|0,Pt=Pt+Math.imul(zt,Pr)|0,Pt=Pt+Math.imul(yr,kr)|0,Ot=Ot+Math.imul(yr,Pr)|0;var fn=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(fn>>>26)|0,fn&=67108863,Bt=Math.imul(Yt,$r),Pt=Math.imul(Yt,Hr),Pt=Pt+Math.imul(Wt,$r)|0,Ot=Math.imul(Wt,Hr),Bt=Bt+Math.imul(xr,Ur)|0,Pt=Pt+Math.imul(xr,_n)|0,Pt=Pt+Math.imul(Mr,Ur)|0,Ot=Ot+Math.imul(Mr,_n)|0,Bt=Bt+Math.imul(rn,gn)|0,Pt=Pt+Math.imul(rn,qn)|0,Pt=Pt+Math.imul(Ar,gn)|0,Ot=Ot+Math.imul(Ar,qn)|0,Bt=Bt+Math.imul(nn,vn)|0,Pt=Pt+Math.imul(nn,On)|0,Pt=Pt+Math.imul(kn,vn)|0,Ot=Ot+Math.imul(kn,On)|0,Bt=Bt+Math.imul(Wr,Mn)|0,Pt=Pt+Math.imul(Wr,Fn)|0,Pt=Pt+Math.imul(Or,Mn)|0,Ot=Ot+Math.imul(Or,Fn)|0,Bt=Bt+Math.imul(Dr,wn)|0,Pt=Pt+Math.imul(Dr,Kn)|0,Pt=Pt+Math.imul(Jr,wn)|0,Ot=Ot+Math.imul(Jr,Kn)|0,Bt=Bt+Math.imul(ir,Ft)|0,Pt=Pt+Math.imul(ir,Ht)|0,Pt=Pt+Math.imul(Br,Ft)|0,Ot=Ot+Math.imul(Br,Ht)|0,Bt=Bt+Math.imul(fr,Kt)|0,Pt=Pt+Math.imul(fr,gr)|0,Pt=Pt+Math.imul(wr,Kt)|0,Ot=Ot+Math.imul(wr,gr)|0,Bt=Bt+Math.imul(hr,kr)|0,Pt=Pt+Math.imul(hr,Pr)|0,Pt=Pt+Math.imul(rr,kr)|0,Ot=Ot+Math.imul(rr,Pr)|0;var un=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(un>>>26)|0,un&=67108863,Bt=Math.imul(Yt,Ur),Pt=Math.imul(Yt,_n),Pt=Pt+Math.imul(Wt,Ur)|0,Ot=Math.imul(Wt,_n),Bt=Bt+Math.imul(xr,gn)|0,Pt=Pt+Math.imul(xr,qn)|0,Pt=Pt+Math.imul(Mr,gn)|0,Ot=Ot+Math.imul(Mr,qn)|0,Bt=Bt+Math.imul(rn,vn)|0,Pt=Pt+Math.imul(rn,On)|0,Pt=Pt+Math.imul(Ar,vn)|0,Ot=Ot+Math.imul(Ar,On)|0,Bt=Bt+Math.imul(nn,Mn)|0,Pt=Pt+Math.imul(nn,Fn)|0,Pt=Pt+Math.imul(kn,Mn)|0,Ot=Ot+Math.imul(kn,Fn)|0,Bt=Bt+Math.imul(Wr,wn)|0,Pt=Pt+Math.imul(Wr,Kn)|0,Pt=Pt+Math.imul(Or,wn)|0,Ot=Ot+Math.imul(Or,Kn)|0,Bt=Bt+Math.imul(Dr,Ft)|0,Pt=Pt+Math.imul(Dr,Ht)|0,Pt=Pt+Math.imul(Jr,Ft)|0,Ot=Ot+Math.imul(Jr,Ht)|0,Bt=Bt+Math.imul(ir,Kt)|0,Pt=Pt+Math.imul(ir,gr)|0,Pt=Pt+Math.imul(Br,Kt)|0,Ot=Ot+Math.imul(Br,gr)|0,Bt=Bt+Math.imul(fr,kr)|0,Pt=Pt+Math.imul(fr,Pr)|0,Pt=Pt+Math.imul(wr,kr)|0,Ot=Ot+Math.imul(wr,Pr)|0;var Zr=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,Bt=Math.imul(Yt,gn),Pt=Math.imul(Yt,qn),Pt=Pt+Math.imul(Wt,gn)|0,Ot=Math.imul(Wt,qn),Bt=Bt+Math.imul(xr,vn)|0,Pt=Pt+Math.imul(xr,On)|0,Pt=Pt+Math.imul(Mr,vn)|0,Ot=Ot+Math.imul(Mr,On)|0,Bt=Bt+Math.imul(rn,Mn)|0,Pt=Pt+Math.imul(rn,Fn)|0,Pt=Pt+Math.imul(Ar,Mn)|0,Ot=Ot+Math.imul(Ar,Fn)|0,Bt=Bt+Math.imul(nn,wn)|0,Pt=Pt+Math.imul(nn,Kn)|0,Pt=Pt+Math.imul(kn,wn)|0,Ot=Ot+Math.imul(kn,Kn)|0,Bt=Bt+Math.imul(Wr,Ft)|0,Pt=Pt+Math.imul(Wr,Ht)|0,Pt=Pt+Math.imul(Or,Ft)|0,Ot=Ot+Math.imul(Or,Ht)|0,Bt=Bt+Math.imul(Dr,Kt)|0,Pt=Pt+Math.imul(Dr,gr)|0,Pt=Pt+Math.imul(Jr,Kt)|0,Ot=Ot+Math.imul(Jr,gr)|0,Bt=Bt+Math.imul(ir,kr)|0,Pt=Pt+Math.imul(ir,Pr)|0,Pt=Pt+Math.imul(Br,kr)|0,Ot=Ot+Math.imul(Br,Pr)|0;var Qr=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,Bt=Math.imul(Yt,vn),Pt=Math.imul(Yt,On),Pt=Pt+Math.imul(Wt,vn)|0,Ot=Math.imul(Wt,On),Bt=Bt+Math.imul(xr,Mn)|0,Pt=Pt+Math.imul(xr,Fn)|0,Pt=Pt+Math.imul(Mr,Mn)|0,Ot=Ot+Math.imul(Mr,Fn)|0,Bt=Bt+Math.imul(rn,wn)|0,Pt=Pt+Math.imul(rn,Kn)|0,Pt=Pt+Math.imul(Ar,wn)|0,Ot=Ot+Math.imul(Ar,Kn)|0,Bt=Bt+Math.imul(nn,Ft)|0,Pt=Pt+Math.imul(nn,Ht)|0,Pt=Pt+Math.imul(kn,Ft)|0,Ot=Ot+Math.imul(kn,Ht)|0,Bt=Bt+Math.imul(Wr,Kt)|0,Pt=Pt+Math.imul(Wr,gr)|0,Pt=Pt+Math.imul(Or,Kt)|0,Ot=Ot+Math.imul(Or,gr)|0,Bt=Bt+Math.imul(Dr,kr)|0,Pt=Pt+Math.imul(Dr,Pr)|0,Pt=Pt+Math.imul(Jr,kr)|0,Ot=Ot+Math.imul(Jr,Pr)|0;var Fr=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,Bt=Math.imul(Yt,Mn),Pt=Math.imul(Yt,Fn),Pt=Pt+Math.imul(Wt,Mn)|0,Ot=Math.imul(Wt,Fn),Bt=Bt+Math.imul(xr,wn)|0,Pt=Pt+Math.imul(xr,Kn)|0,Pt=Pt+Math.imul(Mr,wn)|0,Ot=Ot+Math.imul(Mr,Kn)|0,Bt=Bt+Math.imul(rn,Ft)|0,Pt=Pt+Math.imul(rn,Ht)|0,Pt=Pt+Math.imul(Ar,Ft)|0,Ot=Ot+Math.imul(Ar,Ht)|0,Bt=Bt+Math.imul(nn,Kt)|0,Pt=Pt+Math.imul(nn,gr)|0,Pt=Pt+Math.imul(kn,Kt)|0,Ot=Ot+Math.imul(kn,gr)|0,Bt=Bt+Math.imul(Wr,kr)|0,Pt=Pt+Math.imul(Wr,Pr)|0,Pt=Pt+Math.imul(Or,kr)|0,Ot=Ot+Math.imul(Or,Pr)|0;var Gr=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,Bt=Math.imul(Yt,wn),Pt=Math.imul(Yt,Kn),Pt=Pt+Math.imul(Wt,wn)|0,Ot=Math.imul(Wt,Kn),Bt=Bt+Math.imul(xr,Ft)|0,Pt=Pt+Math.imul(xr,Ht)|0,Pt=Pt+Math.imul(Mr,Ft)|0,Ot=Ot+Math.imul(Mr,Ht)|0,Bt=Bt+Math.imul(rn,Kt)|0,Pt=Pt+Math.imul(rn,gr)|0,Pt=Pt+Math.imul(Ar,Kt)|0,Ot=Ot+Math.imul(Ar,gr)|0,Bt=Bt+Math.imul(nn,kr)|0,Pt=Pt+Math.imul(nn,Pr)|0,Pt=Pt+Math.imul(kn,kr)|0,Ot=Ot+Math.imul(kn,Pr)|0;var pr=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(pr>>>26)|0,pr&=67108863,Bt=Math.imul(Yt,Ft),Pt=Math.imul(Yt,Ht),Pt=Pt+Math.imul(Wt,Ft)|0,Ot=Math.imul(Wt,Ht),Bt=Bt+Math.imul(xr,Kt)|0,Pt=Pt+Math.imul(xr,gr)|0,Pt=Pt+Math.imul(Mr,Kt)|0,Ot=Ot+Math.imul(Mr,gr)|0,Bt=Bt+Math.imul(rn,kr)|0,Pt=Pt+Math.imul(rn,Pr)|0,Pt=Pt+Math.imul(Ar,kr)|0,Ot=Ot+Math.imul(Ar,Pr)|0;var Nt=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,Bt=Math.imul(Yt,Kt),Pt=Math.imul(Yt,gr),Pt=Pt+Math.imul(Wt,Kt)|0,Ot=Math.imul(Wt,gr),Bt=Bt+Math.imul(xr,kr)|0,Pt=Pt+Math.imul(xr,Pr)|0,Pt=Pt+Math.imul(Mr,kr)|0,Ot=Ot+Math.imul(Mr,Pr)|0;var Zt=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,Bt=Math.imul(Yt,kr),Pt=Math.imul(Yt,Pr),Pt=Pt+Math.imul(Wt,kr)|0,Ot=Math.imul(Wt,Pr);var Xt=(It+Bt|0)+((Pt&8191)<<13)|0;return It=(Ot+(Pt>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,At[0]=jr,At[1]=qr,At[2]=Sn,At[3]=Vr,At[4]=an,At[5]=sn,At[6]=pn,At[7]=dn,At[8]=ln,At[9]=fn,At[10]=un,At[11]=Zr,At[12]=Qr,At[13]=Fr,At[14]=Gr,At[15]=pr,At[16]=Nt,At[17]=Zt,At[18]=Xt,It!==0&&(At[19]=It,yt.length++),yt};Math.imul||(kt=Et);function Dt(Jt,Rt,Ct){Ct.negative=Rt.negative^Jt.negative,Ct.length=Jt.length+Rt.length;for(var yt=0,_t=0,$t=0;$t>>26)|0,_t+=At>>>26,At&=67108863}Ct.words[$t]=It,yt=At,At=_t}return yt!==0?Ct.words[$t]=yt:Ct.length--,Ct.strip()}function Tt(Jt,Rt,Ct){var yt=new qt;return yt.mulp(Jt,Rt,Ct)}ot.prototype.mulTo=function(Rt,Ct){var yt,_t=this.length+Rt.length;return this.length===10&&Rt.length===10?yt=kt(this,Rt,Ct):_t<63?yt=Et(this,Rt,Ct):_t<1024?yt=Dt(this,Rt,Ct):yt=Tt(this,Rt,Ct),yt};function qt(Jt,Rt){this.x=Jt,this.y=Rt}qt.prototype.makeRBT=function(Rt){for(var Ct=new Array(Rt),yt=ot.prototype._countBits(Rt)-1,_t=0;_t>=1;return _t},qt.prototype.permute=function(Rt,Ct,yt,_t,$t,At){for(var It=0;It>>1)$t++;return 1<<$t+1+_t},qt.prototype.conjugate=function(Rt,Ct,yt){if(!(yt<=1))for(var _t=0;_t>>13,yt[2*At+1]=$t&8191,$t=$t>>>13;for(At=2*Ct;At<_t;++At)yt[At]=0;nt($t===0),nt(($t&-8192)===0)},qt.prototype.stub=function(Rt){for(var Ct=new Array(Rt),yt=0;yt>=26,Ct+=_t/67108864|0,Ct+=$t>>>26,this.words[yt]=$t&67108863}return Ct!==0&&(this.words[yt]=Ct,this.length++),this},ot.prototype.muln=function(Rt){return this.clone().imuln(Rt)},ot.prototype.sqr=function(){return this.mul(this)},ot.prototype.isqr=function(){return this.imul(this.clone())},ot.prototype.pow=function(Rt){var Ct=xt(Rt);if(Ct.length===0)return new ot(1);for(var yt=this,_t=0;_t=0);var Ct=Rt%26,yt=(Rt-Ct)/26,_t=67108863>>>26-Ct<<26-Ct,$t;if(Ct!==0){var At=0;for($t=0;$t>>26-Ct}At&&(this.words[$t]=At,this.length++)}if(yt!==0){for($t=this.length-1;$t>=0;$t--)this.words[$t+yt]=this.words[$t];for($t=0;$t=0);var _t;Ct?_t=(Ct-Ct%26)/26:_t=0;var $t=Rt%26,At=Math.min((Rt-$t)/26,this.length),It=67108863^67108863>>>$t<<$t,Bt=yt;if(_t-=At,_t=Math.max(0,_t),Bt){for(var Pt=0;PtAt)for(this.length-=At,Pt=0;Pt=0&&(Ot!==0||Pt>=_t);Pt--){var Mt=this.words[Pt]|0;this.words[Pt]=Ot<<26-$t|Mt>>>$t,Ot=Mt&It}return Bt&&Ot!==0&&(Bt.words[Bt.length++]=Ot),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},ot.prototype.ishrn=function(Rt,Ct,yt){return nt(this.negative===0),this.iushrn(Rt,Ct,yt)},ot.prototype.shln=function(Rt){return this.clone().ishln(Rt)},ot.prototype.ushln=function(Rt){return this.clone().iushln(Rt)},ot.prototype.shrn=function(Rt){return this.clone().ishrn(Rt)},ot.prototype.ushrn=function(Rt){return this.clone().iushrn(Rt)},ot.prototype.testn=function(Rt){nt(typeof Rt=="number"&&Rt>=0);var Ct=Rt%26,yt=(Rt-Ct)/26,_t=1<=0);var Ct=Rt%26,yt=(Rt-Ct)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=yt)return this;if(Ct!==0&&yt++,this.length=Math.min(yt,this.length),Ct!==0){var _t=67108863^67108863>>>Ct<=67108864;Ct++)this.words[Ct]-=67108864,Ct===this.length-1?this.words[Ct+1]=1:this.words[Ct+1]++;return this.length=Math.max(this.length,Ct+1),this},ot.prototype.isubn=function(Rt){if(nt(typeof Rt=="number"),nt(Rt<67108864),Rt<0)return this.iaddn(-Rt);if(this.negative!==0)return this.negative=0,this.iaddn(Rt),this.negative=1,this;if(this.words[0]-=Rt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Ct=0;Ct>26)-(Bt/67108864|0),this.words[$t+yt]=At&67108863}for(;$t>26,this.words[$t+yt]=At&67108863;if(It===0)return this.strip();for(nt(It===-1),It=0,$t=0;$t>26,this.words[$t]=At&67108863;return this.negative=1,this.strip()},ot.prototype._wordDiv=function(Rt,Ct){var yt=this.length-Rt.length,_t=this.clone(),$t=Rt,At=$t.words[$t.length-1]|0,It=this._countBits(At);yt=26-It,yt!==0&&($t=$t.ushln(yt),_t.iushln(yt),At=$t.words[$t.length-1]|0);var Bt=_t.length-$t.length,Pt;if(Ct!=="mod"){Pt=new ot(null),Pt.length=Bt+1,Pt.words=new Array(Pt.length);for(var Ot=0;Ot=0;zt--){var yr=(_t.words[$t.length+zt]|0)*67108864+(_t.words[$t.length+zt-1]|0);for(yr=Math.min(yr/At|0,67108863),_t._ishlnsubmul($t,yr,zt);_t.negative!==0;)yr--,_t.negative=0,_t._ishlnsubmul($t,1,zt),_t.isZero()||(_t.negative^=1);Pt&&(Pt.words[zt]=yr)}return Pt&&Pt.strip(),_t.strip(),Ct!=="div"&&yt!==0&&_t.iushrn(yt),{div:Pt||null,mod:_t}},ot.prototype.divmod=function(Rt,Ct,yt){if(nt(!Rt.isZero()),this.isZero())return{div:new ot(0),mod:new ot(0)};var _t,$t,At;return this.negative!==0&&Rt.negative===0?(At=this.neg().divmod(Rt,Ct),Ct!=="mod"&&(_t=At.div.neg()),Ct!=="div"&&($t=At.mod.neg(),yt&&$t.negative!==0&&$t.iadd(Rt)),{div:_t,mod:$t}):this.negative===0&&Rt.negative!==0?(At=this.divmod(Rt.neg(),Ct),Ct!=="mod"&&(_t=At.div.neg()),{div:_t,mod:At.mod}):this.negative&Rt.negative?(At=this.neg().divmod(Rt.neg(),Ct),Ct!=="div"&&($t=At.mod.neg(),yt&&$t.negative!==0&&$t.isub(Rt)),{div:At.div,mod:$t}):Rt.length>this.length||this.cmp(Rt)<0?{div:new ot(0),mod:this}:Rt.length===1?Ct==="div"?{div:this.divn(Rt.words[0]),mod:null}:Ct==="mod"?{div:null,mod:new ot(this.modn(Rt.words[0]))}:{div:this.divn(Rt.words[0]),mod:new ot(this.modn(Rt.words[0]))}:this._wordDiv(Rt,Ct)},ot.prototype.div=function(Rt){return this.divmod(Rt,"div",!1).div},ot.prototype.mod=function(Rt){return this.divmod(Rt,"mod",!1).mod},ot.prototype.umod=function(Rt){return this.divmod(Rt,"mod",!0).mod},ot.prototype.divRound=function(Rt){var Ct=this.divmod(Rt);if(Ct.mod.isZero())return Ct.div;var yt=Ct.div.negative!==0?Ct.mod.isub(Rt):Ct.mod,_t=Rt.ushrn(1),$t=Rt.andln(1),At=yt.cmp(_t);return At<0||$t===1&&At===0?Ct.div:Ct.div.negative!==0?Ct.div.isubn(1):Ct.div.iaddn(1)},ot.prototype.modn=function(Rt){nt(Rt<=67108863);for(var Ct=(1<<26)%Rt,yt=0,_t=this.length-1;_t>=0;_t--)yt=(Ct*yt+(this.words[_t]|0))%Rt;return yt},ot.prototype.idivn=function(Rt){nt(Rt<=67108863);for(var Ct=0,yt=this.length-1;yt>=0;yt--){var _t=(this.words[yt]|0)+Ct*67108864;this.words[yt]=_t/Rt|0,Ct=_t%Rt}return this.strip()},ot.prototype.divn=function(Rt){return this.clone().idivn(Rt)},ot.prototype.egcd=function(Rt){nt(Rt.negative===0),nt(!Rt.isZero());var Ct=this,yt=Rt.clone();Ct.negative!==0?Ct=Ct.umod(Rt):Ct=Ct.clone();for(var _t=new ot(1),$t=new ot(0),At=new ot(0),It=new ot(1),Bt=0;Ct.isEven()&&yt.isEven();)Ct.iushrn(1),yt.iushrn(1),++Bt;for(var Pt=yt.clone(),Ot=Ct.clone();!Ct.isZero();){for(var Mt=0,zt=1;!(Ct.words[0]&zt)&&Mt<26;++Mt,zt<<=1);if(Mt>0)for(Ct.iushrn(Mt);Mt-- >0;)(_t.isOdd()||$t.isOdd())&&(_t.iadd(Pt),$t.isub(Ot)),_t.iushrn(1),$t.iushrn(1);for(var yr=0,vr=1;!(yt.words[0]&vr)&&yr<26;++yr,vr<<=1);if(yr>0)for(yt.iushrn(yr);yr-- >0;)(At.isOdd()||It.isOdd())&&(At.iadd(Pt),It.isub(Ot)),At.iushrn(1),It.iushrn(1);Ct.cmp(yt)>=0?(Ct.isub(yt),_t.isub(At),$t.isub(It)):(yt.isub(Ct),At.isub(_t),It.isub($t))}return{a:At,b:It,gcd:yt.iushln(Bt)}},ot.prototype._invmp=function(Rt){nt(Rt.negative===0),nt(!Rt.isZero());var Ct=this,yt=Rt.clone();Ct.negative!==0?Ct=Ct.umod(Rt):Ct=Ct.clone();for(var _t=new ot(1),$t=new ot(0),At=yt.clone();Ct.cmpn(1)>0&&yt.cmpn(1)>0;){for(var It=0,Bt=1;!(Ct.words[0]&Bt)&&It<26;++It,Bt<<=1);if(It>0)for(Ct.iushrn(It);It-- >0;)_t.isOdd()&&_t.iadd(At),_t.iushrn(1);for(var Pt=0,Ot=1;!(yt.words[0]&Ot)&&Pt<26;++Pt,Ot<<=1);if(Pt>0)for(yt.iushrn(Pt);Pt-- >0;)$t.isOdd()&&$t.iadd(At),$t.iushrn(1);Ct.cmp(yt)>=0?(Ct.isub(yt),_t.isub($t)):(yt.isub(Ct),$t.isub(_t))}var Mt;return Ct.cmpn(1)===0?Mt=_t:Mt=$t,Mt.cmpn(0)<0&&Mt.iadd(Rt),Mt},ot.prototype.gcd=function(Rt){if(this.isZero())return Rt.abs();if(Rt.isZero())return this.abs();var Ct=this.clone(),yt=Rt.clone();Ct.negative=0,yt.negative=0;for(var _t=0;Ct.isEven()&&yt.isEven();_t++)Ct.iushrn(1),yt.iushrn(1);do{for(;Ct.isEven();)Ct.iushrn(1);for(;yt.isEven();)yt.iushrn(1);var $t=Ct.cmp(yt);if($t<0){var At=Ct;Ct=yt,yt=At}else if($t===0||yt.cmpn(1)===0)break;Ct.isub(yt)}while(!0);return yt.iushln(_t)},ot.prototype.invm=function(Rt){return this.egcd(Rt).a.umod(Rt)},ot.prototype.isEven=function(){return(this.words[0]&1)===0},ot.prototype.isOdd=function(){return(this.words[0]&1)===1},ot.prototype.andln=function(Rt){return this.words[0]&Rt},ot.prototype.bincn=function(Rt){nt(typeof Rt=="number");var Ct=Rt%26,yt=(Rt-Ct)/26,_t=1<>>26,It&=67108863,this.words[At]=It}return $t!==0&&(this.words[At]=$t,this.length++),this},ot.prototype.isZero=function(){return this.length===1&&this.words[0]===0},ot.prototype.cmpn=function(Rt){var Ct=Rt<0;if(this.negative!==0&&!Ct)return-1;if(this.negative===0&&Ct)return 1;this.strip();var yt;if(this.length>1)yt=1;else{Ct&&(Rt=-Rt),nt(Rt<=67108863,"Number is too big");var _t=this.words[0]|0;yt=_t===Rt?0:_tRt.length)return 1;if(this.length=0;yt--){var _t=this.words[yt]|0,$t=Rt.words[yt]|0;if(_t!==$t){_t<$t?Ct=-1:_t>$t&&(Ct=1);break}}return Ct},ot.prototype.gtn=function(Rt){return this.cmpn(Rt)===1},ot.prototype.gt=function(Rt){return this.cmp(Rt)===1},ot.prototype.gten=function(Rt){return this.cmpn(Rt)>=0},ot.prototype.gte=function(Rt){return this.cmp(Rt)>=0},ot.prototype.ltn=function(Rt){return this.cmpn(Rt)===-1},ot.prototype.lt=function(Rt){return this.cmp(Rt)===-1},ot.prototype.lten=function(Rt){return this.cmpn(Rt)<=0},ot.prototype.lte=function(Rt){return this.cmp(Rt)<=0},ot.prototype.eqn=function(Rt){return this.cmpn(Rt)===0},ot.prototype.eq=function(Rt){return this.cmp(Rt)===0},ot.red=function(Rt){return new ar(Rt)},ot.prototype.toRed=function(Rt){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),Rt.convertTo(this)._forceRed(Rt)},ot.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},ot.prototype._forceRed=function(Rt){return this.red=Rt,this},ot.prototype.forceRed=function(Rt){return nt(!this.red,"Already a number in reduction context"),this._forceRed(Rt)},ot.prototype.redAdd=function(Rt){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,Rt)},ot.prototype.redIAdd=function(Rt){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Rt)},ot.prototype.redSub=function(Rt){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,Rt)},ot.prototype.redISub=function(Rt){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,Rt)},ot.prototype.redShl=function(Rt){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,Rt)},ot.prototype.redMul=function(Rt){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Rt),this.red.mul(this,Rt)},ot.prototype.redIMul=function(Rt){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Rt),this.red.imul(this,Rt)},ot.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},ot.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},ot.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},ot.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},ot.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},ot.prototype.redPow=function(Rt){return nt(this.red&&!Rt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Rt)};var jt={k256:null,p224:null,p192:null,p25519:null};function Lt(Jt,Rt){this.name=Jt,this.p=new ot(Rt,16),this.n=this.p.bitLength(),this.k=new ot(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Lt.prototype._tmp=function(){var Rt=new ot(null);return Rt.words=new Array(Math.ceil(this.n/13)),Rt},Lt.prototype.ireduce=function(Rt){var Ct=Rt,yt;do this.split(Ct,this.tmp),Ct=this.imulK(Ct),Ct=Ct.iadd(this.tmp),yt=Ct.bitLength();while(yt>this.n);var _t=yt0?Ct.isub(this.p):Ct.strip!==void 0?Ct.strip():Ct._strip(),Ct},Lt.prototype.split=function(Rt,Ct){Rt.iushrn(this.n,0,Ct)},Lt.prototype.imulK=function(Rt){return Rt.imul(this.k)};function Gt(){Lt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}st(Gt,Lt),Gt.prototype.split=function(Rt,Ct){for(var yt=4194303,_t=Math.min(Rt.length,9),$t=0;$t<_t;$t++)Ct.words[$t]=Rt.words[$t];if(Ct.length=_t,Rt.length<=9){Rt.words[0]=0,Rt.length=1;return}var At=Rt.words[9];for(Ct.words[Ct.length++]=At&yt,$t=10;$t>>22,At=It}At>>>=22,Rt.words[$t-10]=At,At===0&&Rt.length>10?Rt.length-=10:Rt.length-=9},Gt.prototype.imulK=function(Rt){Rt.words[Rt.length]=0,Rt.words[Rt.length+1]=0,Rt.length+=2;for(var Ct=0,yt=0;yt>>=26,Rt.words[yt]=$t,Ct=_t}return Ct!==0&&(Rt.words[Rt.length++]=Ct),Rt},ot._prime=function(Rt){if(jt[Rt])return jt[Rt];var Ct;if(Rt==="k256")Ct=new Gt;else if(Rt==="p224")Ct=new Qt;else if(Rt==="p192")Ct=new tr;else if(Rt==="p25519")Ct=new sr;else throw new Error("Unknown prime "+Rt);return jt[Rt]=Ct,Ct};function ar(Jt){if(typeof Jt=="string"){var Rt=ot._prime(Jt);this.m=Rt.p,this.prime=Rt}else nt(Jt.gtn(1),"modulus must be greater than 1"),this.m=Jt,this.prime=null}ar.prototype._verify1=function(Rt){nt(Rt.negative===0,"red works only with positives"),nt(Rt.red,"red works only with red numbers")},ar.prototype._verify2=function(Rt,Ct){nt((Rt.negative|Ct.negative)===0,"red works only with positives"),nt(Rt.red&&Rt.red===Ct.red,"red works only with red numbers")},ar.prototype.imod=function(Rt){return this.prime?this.prime.ireduce(Rt)._forceRed(this):Rt.umod(this.m)._forceRed(this)},ar.prototype.neg=function(Rt){return Rt.isZero()?Rt.clone():this.m.sub(Rt)._forceRed(this)},ar.prototype.add=function(Rt,Ct){this._verify2(Rt,Ct);var yt=Rt.add(Ct);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt._forceRed(this)},ar.prototype.iadd=function(Rt,Ct){this._verify2(Rt,Ct);var yt=Rt.iadd(Ct);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt},ar.prototype.sub=function(Rt,Ct){this._verify2(Rt,Ct);var yt=Rt.sub(Ct);return yt.cmpn(0)<0&&yt.iadd(this.m),yt._forceRed(this)},ar.prototype.isub=function(Rt,Ct){this._verify2(Rt,Ct);var yt=Rt.isub(Ct);return yt.cmpn(0)<0&&yt.iadd(this.m),yt},ar.prototype.shl=function(Rt,Ct){return this._verify1(Rt),this.imod(Rt.ushln(Ct))},ar.prototype.imul=function(Rt,Ct){return this._verify2(Rt,Ct),this.imod(Rt.imul(Ct))},ar.prototype.mul=function(Rt,Ct){return this._verify2(Rt,Ct),this.imod(Rt.mul(Ct))},ar.prototype.isqr=function(Rt){return this.imul(Rt,Rt.clone())},ar.prototype.sqr=function(Rt){return this.mul(Rt,Rt)},ar.prototype.sqrt=function(Rt){if(Rt.isZero())return Rt.clone();var Ct=this.m.andln(3);if(nt(Ct%2===1),Ct===3){var yt=this.m.add(new ot(1)).iushrn(2);return this.pow(Rt,yt)}for(var _t=this.m.subn(1),$t=0;!_t.isZero()&&_t.andln(1)===0;)$t++,_t.iushrn(1);nt(!_t.isZero());var At=new ot(1).toRed(this),It=At.redNeg(),Bt=this.m.subn(1).iushrn(1),Pt=this.m.bitLength();for(Pt=new ot(2*Pt*Pt).toRed(this);this.pow(Pt,Bt).cmp(It)!==0;)Pt.redIAdd(It);for(var Ot=this.pow(Pt,_t),Mt=this.pow(Rt,_t.addn(1).iushrn(1)),zt=this.pow(Rt,_t),yr=$t;zt.cmp(At)!==0;){for(var vr=zt,hr=0;vr.cmp(At)!==0;hr++)vr=vr.redSqr();nt(hr=0;$t--){for(var Ot=Ct.words[$t],Mt=Pt-1;Mt>=0;Mt--){var zt=Ot>>Mt&1;if(At!==_t[0]&&(At=this.sqr(At)),zt===0&&It===0){Bt=0;continue}It<<=1,It|=zt,Bt++,!(Bt!==yt&&($t!==0||Mt!==0))&&(At=this.mul(At,_t[It]),Bt=0,It=0)}Pt=26}return At},ar.prototype.convertTo=function(Rt){var Ct=Rt.umod(this.m);return Ct===Rt?Ct.clone():Ct},ar.prototype.convertFrom=function(Rt){var Ct=Rt.clone();return Ct.red=null,Ct},ot.mont=function(Rt){return new _r(Rt)};function _r(Jt){ar.call(this,Jt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new ot(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)}st(_r,ar),_r.prototype.convertTo=function(Rt){return this.imod(Rt.ushln(this.shift))},_r.prototype.convertFrom=function(Rt){var Ct=this.imod(Rt.mul(this.rinv));return Ct.red=null,Ct},_r.prototype.imul=function(Rt,Ct){if(Rt.isZero()||Ct.isZero())return Rt.words[0]=0,Rt.length=1,Rt;var yt=Rt.imul(Ct),_t=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$t=yt.isub(_t).iushrn(this.shift),At=$t;return $t.cmp(this.m)>=0?At=$t.isub(this.m):$t.cmpn(0)<0&&(At=$t.iadd(this.m)),At._forceRed(this)},_r.prototype.mul=function(Rt,Ct){if(Rt.isZero()||Ct.isZero())return new ot(0)._forceRed(this);var yt=Rt.mul(Ct),_t=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$t=yt.isub(_t).iushrn(this.shift),At=$t;return $t.cmp(this.m)>=0?At=$t.isub(this.m):$t.cmpn(0)<0&&(At=$t.iadd(this.m)),At._forceRed(this)},_r.prototype.invm=function(Rt){var Ct=this.imod(Rt._invmp(this.m).mul(this.r2));return Ct._forceRed(this)}})(d,commonjsGlobal)}(bn$2)),bn$2.exports}var brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var d;brorand.exports=function(st){return d||(d=new b(null)),d.generate(st)};function b(nt){this.rand=nt}if(brorand.exports.Rand=b,b.prototype.generate=function(st){return this._rand(st)},b.prototype._rand=function(st){if(this.rand.getBytes)return this.rand.getBytes(st);for(var ot=new Uint8Array(st),ft=0;ft=0);return ht},tt.prototype._randrange=function(st,ot){var ft=ot.sub(st);return st.add(this._randbelow(ft))},tt.prototype.test=function(st,ot,ft){var ht=st.bitLength(),gt=d.mont(st),vt=new d(1).toRed(gt);ot||(ot=Math.max(1,ht/48|0));for(var mt=st.subn(1),bt=0;!mt.testn(bt);bt++);for(var wt=st.shrn(bt),xt=mt.toRed(gt),Et=!0;ot>0;ot--){var kt=this._randrange(new d(2),mt);ft&&ft(kt);var Dt=kt.toRed(gt).redPow(wt);if(!(Dt.cmp(vt)===0||Dt.cmp(xt)===0)){for(var Tt=1;Tt0;ot--){var xt=this._randrange(new d(2),vt),Et=st.gcd(xt);if(Et.cmpn(1)!==0)return Et;var kt=xt.toRed(ht).redPow(bt);if(!(kt.cmp(gt)===0||kt.cmp(wt)===0)){for(var Dt=1;DtTt;)jt.ishrn(1);if(jt.isEven()&&jt.iadd(ot),jt.testn(1)||jt.iadd(ft),qt.cmp(ft)){if(!qt.cmp(ht))for(;jt.mod(gt).cmp(vt);)jt.iadd(bt)}else for(;jt.mod(tt).cmp(mt);)jt.iadd(bt);if(Lt=jt.shrn(1),Et(Lt)&&Et(jt)&&kt(Lt)&&kt(jt)&&st.test(Lt)&&st.test(jt))return jt}}return generatePrime}const 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"},require$$1$2={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh$1,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh$1;hasRequiredDh=1;var d=requireBn$2(),b=requireMr(),tt=new b,nt=new d(24),st=new d(11),ot=new d(10),ft=new d(3),ht=new d(7),gt=requireGeneratePrime(),vt=requireBrowser$b();dh$1=Et;function mt(Dt,Tt){return Tt=Tt||"utf8",Buffer.isBuffer(Dt)||(Dt=new Buffer(Dt,Tt)),this._pub=new d(Dt),this}function bt(Dt,Tt){return Tt=Tt||"utf8",Buffer.isBuffer(Dt)||(Dt=new Buffer(Dt,Tt)),this._priv=new d(Dt),this}var wt={};function xt(Dt,Tt){var qt=Tt.toString("hex"),jt=[qt,Dt.toString(16)].join("_");if(jt in wt)return wt[jt];var Lt=0;if(Dt.isEven()||!gt.simpleSieve||!gt.fermatTest(Dt)||!tt.test(Dt))return Lt+=1,qt==="02"||qt==="05"?Lt+=8:Lt+=4,wt[jt]=Lt,Lt;tt.test(Dt.shrn(1))||(Lt+=2);var Gt;switch(qt){case"02":Dt.mod(nt).cmp(st)&&(Lt+=8);break;case"05":Gt=Dt.mod(ot),Gt.cmp(ft)&&Gt.cmp(ht)&&(Lt+=8);break;default:Lt+=4}return wt[jt]=Lt,Lt}function Et(Dt,Tt,qt){this.setGenerator(Tt),this.__prime=new d(Dt),this._prime=d.mont(this.__prime),this._primeLen=Dt.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,qt?(this.setPublicKey=mt,this.setPrivateKey=bt):this._primeCode=8}Object.defineProperty(Et.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=xt(this.__prime,this.__gen)),this._primeCode}}),Et.prototype.generateKeys=function(){return this._priv||(this._priv=new d(vt(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},Et.prototype.computeSecret=function(Dt){Dt=new d(Dt),Dt=Dt.toRed(this._prime);var Tt=Dt.redPow(this._priv).fromRed(),qt=new Buffer(Tt.toArray()),jt=this.getPrime();if(qt.length"u"||!process$1.version||process$1.version.indexOf("v0.")===0||process$1.version.indexOf("v1.")===0&&process$1.version.indexOf("v1.8.")!==0?processNextickArgs.exports={nextTick:d}:processNextickArgs.exports=process$1;function d(b,tt,nt,st){if(typeof b!="function")throw new TypeError('"callback" argument must be a function');var ot=arguments.length,ft,ht;switch(ot){case 0:case 1:return process$1.nextTick(b);case 2:return process$1.nextTick(function(){b.call(null,tt)});case 3:return process$1.nextTick(function(){b.call(null,tt,nt)});case 4:return process$1.nextTick(function(){b.call(null,tt,nt,st)});default:for(ft=new Array(ot-1),ht=0;ht"u"}util$1.isPrimitive=xt,util$1.isBuffer=require$$1$3.Buffer.isBuffer;function Et(kt){return Object.prototype.toString.call(kt)}return util$1}var BufferList={exports:{}},hasRequiredBufferList;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,function(d){function b(ot,ft){if(!(ot instanceof ft))throw new TypeError("Cannot call a class as a function")}var tt=requireSafeBuffer().Buffer,nt=requireUtil$1();function st(ot,ft,ht){ot.copy(ft,ht)}d.exports=function(){function ot(){b(this,ot),this.head=null,this.tail=null,this.length=0}return ot.prototype.push=function(ht){var gt={data:ht,next:null};this.length>0?this.tail.next=gt:this.head=gt,this.tail=gt,++this.length},ot.prototype.unshift=function(ht){var gt={data:ht,next:this.head};this.length===0&&(this.tail=gt),this.head=gt,++this.length},ot.prototype.shift=function(){if(this.length!==0){var ht=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,ht}},ot.prototype.clear=function(){this.head=this.tail=null,this.length=0},ot.prototype.join=function(ht){if(this.length===0)return"";for(var gt=this.head,vt=""+gt.data;gt=gt.next;)vt+=ht+gt.data;return vt},ot.prototype.concat=function(ht){if(this.length===0)return tt.alloc(0);for(var gt=tt.allocUnsafe(ht>>>0),vt=this.head,mt=0;vt;)st(vt.data,gt,mt),mt+=vt.data.length,vt=vt.next;return gt},ot}(),nt&&nt.inspect&&nt.inspect.custom&&(d.exports.prototype[nt.inspect.custom]=function(){var ot=nt.inspect({length:this.length});return this.constructor.name+" "+ot})}(BufferList)),BufferList.exports}var destroy_1,hasRequiredDestroy;function requireDestroy(){if(hasRequiredDestroy)return destroy_1;hasRequiredDestroy=1;var d=requireProcessNextickArgs();function b(st,ot){var ft=this,ht=this._readableState&&this._readableState.destroyed,gt=this._writableState&&this._writableState.destroyed;return ht||gt?(ot?ot(st):st&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,d.nextTick(nt,this,st)):d.nextTick(nt,this,st)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(st||null,function(vt){!ot&&vt?ft._writableState?ft._writableState.errorEmitted||(ft._writableState.errorEmitted=!0,d.nextTick(nt,ft,vt)):d.nextTick(nt,ft,vt):ot&&ot(vt)}),this)}function tt(){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)}function nt(st,ot){st.emit("error",ot)}return destroy_1={destroy:b,undestroy:tt},destroy_1}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1;var d=requireProcessNextickArgs();_stream_writable=kt;function b(At){var It=this;this.next=null,this.entry=null,this.finish=function(){$t(It,At)}}var tt=!process$1.browser&&["v0.10","v0.9."].indexOf(process$1.version.slice(0,5))>-1?setImmediate:d.nextTick,nt;kt.WritableState=xt;var st=Object.create(requireUtil());st.inherits=requireInherits_browser();var ot={deprecate:requireBrowser$a()},ft=requireStreamBrowser(),ht=requireSafeBuffer().Buffer,gt=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function vt(At){return ht.from(At)}function mt(At){return ht.isBuffer(At)||At instanceof gt}var bt=requireDestroy();st.inherits(kt,ft);function wt(){}function xt(At,It){nt=nt||require_stream_duplex(),At=At||{};var Bt=It instanceof nt;this.objectMode=!!At.objectMode,Bt&&(this.objectMode=this.objectMode||!!At.writableObjectMode);var Pt=At.highWaterMark,Ot=At.writableHighWaterMark,Mt=this.objectMode?16:16*1024;Pt||Pt===0?this.highWaterMark=Pt:Bt&&(Ot||Ot===0)?this.highWaterMark=Ot:this.highWaterMark=Mt,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 zt=At.decodeStrings===!1;this.decodeStrings=!zt,this.defaultEncoding=At.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(yr){tr(It,yr)},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 b(this)}xt.prototype.getBuffer=function(){for(var It=this.bufferedRequest,Bt=[];It;)Bt.push(It),It=It.next;return Bt},function(){try{Object.defineProperty(xt.prototype,"buffer",{get:ot.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var Et;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Et=Function.prototype[Symbol.hasInstance],Object.defineProperty(kt,Symbol.hasInstance,{value:function(At){return Et.call(this,At)?!0:this!==kt?!1:At&&At._writableState instanceof xt}})):Et=function(At){return At instanceof this};function kt(At){if(nt=nt||require_stream_duplex(),!Et.call(kt,this)&&!(this instanceof nt))return new kt(At);this._writableState=new xt(At,this),this.writable=!0,At&&(typeof At.write=="function"&&(this._write=At.write),typeof At.writev=="function"&&(this._writev=At.writev),typeof At.destroy=="function"&&(this._destroy=At.destroy),typeof At.final=="function"&&(this._final=At.final)),ft.call(this)}kt.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Dt(At,It){var Bt=new Error("write after end");At.emit("error",Bt),d.nextTick(It,Bt)}function Tt(At,It,Bt,Pt){var Ot=!0,Mt=!1;return Bt===null?Mt=new TypeError("May not write null values to stream"):typeof Bt!="string"&&Bt!==void 0&&!It.objectMode&&(Mt=new TypeError("Invalid non-string/buffer chunk")),Mt&&(At.emit("error",Mt),d.nextTick(Pt,Mt),Ot=!1),Ot}kt.prototype.write=function(At,It,Bt){var Pt=this._writableState,Ot=!1,Mt=!Pt.objectMode&&mt(At);return Mt&&!ht.isBuffer(At)&&(At=vt(At)),typeof It=="function"&&(Bt=It,It=null),Mt?It="buffer":It||(It=Pt.defaultEncoding),typeof Bt!="function"&&(Bt=wt),Pt.ended?Dt(this,Bt):(Mt||Tt(this,Pt,At,Bt))&&(Pt.pendingcb++,Ot=jt(this,Pt,Mt,At,It,Bt)),Ot},kt.prototype.cork=function(){var At=this._writableState;At.corked++},kt.prototype.uncork=function(){var At=this._writableState;At.corked&&(At.corked--,!At.writing&&!At.corked&&!At.bufferProcessing&&At.bufferedRequest&&_r(this,At))},kt.prototype.setDefaultEncoding=function(It){if(typeof It=="string"&&(It=It.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((It+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+It);return this._writableState.defaultEncoding=It,this};function qt(At,It,Bt){return!At.objectMode&&At.decodeStrings!==!1&&typeof It=="string"&&(It=ht.from(It,Bt)),It}Object.defineProperty(kt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function jt(At,It,Bt,Pt,Ot,Mt){if(!Bt){var zt=qt(It,Pt,Ot);Pt!==zt&&(Bt=!0,Ot="buffer",Pt=zt)}var yr=It.objectMode?1:Pt.length;It.length+=yr;var vr=It.length0?(typeof er!="string"&&!ir.objectMode&&Object.getPrototypeOf(er)!==ot.prototype&&(er=ht(er)),wr?ir.endEmitted?rr.emit("error",new Error("stream.unshift() after end event")):Lt(rr,ir,er,!0):ir.ended?rr.emit("error",new Error("stream.push() after EOF")):(ir.reading=!1,ir.decoder&&!fr?(er=ir.decoder.write(er),ir.objectMode||er.length!==0?Lt(rr,ir,er,!1):Ct(rr,ir)):Lt(rr,ir,er,!1))):wr||(ir.reading=!1)}return Qt(ir)}function Lt(rr,er,fr,wr){er.flowing&&er.length===0&&!er.sync?(rr.emit("data",fr),rr.read(0)):(er.length+=er.objectMode?1:fr.length,wr?er.buffer.unshift(fr):er.buffer.push(fr),er.needReadable&&Jt(rr)),Ct(rr,er)}function Gt(rr,er){var fr;return!gt(er)&&typeof er!="string"&&er!==void 0&&!rr.objectMode&&(fr=new TypeError("Invalid non-string/buffer chunk")),fr}function Qt(rr){return!rr.ended&&(rr.needReadable||rr.length=tr?rr=tr:(rr--,rr|=rr>>>1,rr|=rr>>>2,rr|=rr>>>4,rr|=rr>>>8,rr|=rr>>>16,rr++),rr}function ar(rr,er){return rr<=0||er.length===0&&er.ended?0:er.objectMode?1:rr!==rr?er.flowing&&er.length?er.buffer.head.data.length:er.length:(rr>er.highWaterMark&&(er.highWaterMark=sr(rr)),rr<=er.length?rr:er.ended?er.length:(er.needReadable=!0,0))}qt.prototype.read=function(rr){bt("read",rr),rr=parseInt(rr,10);var er=this._readableState,fr=rr;if(rr!==0&&(er.emittedReadable=!1),rr===0&&er.needReadable&&(er.length>=er.highWaterMark||er.ended))return bt("read: emitReadable",er.length,er.ended),er.length===0&&er.ended?yr(this):Jt(this),null;if(rr=ar(rr,er),rr===0&&er.ended)return er.length===0&&yr(this),null;var wr=er.needReadable;bt("need readable",wr),(er.length===0||er.length-rr0?nr=Pt(rr,er):nr=null,nr===null?(er.needReadable=!0,rr=0):er.length-=rr,er.length===0&&(er.ended||(er.needReadable=!0),fr!==rr&&er.ended&&yr(this)),nr!==null&&this.emit("data",nr),nr};function _r(rr,er){if(!er.ended){if(er.decoder){var fr=er.decoder.end();fr&&fr.length&&(er.buffer.push(fr),er.length+=er.objectMode?1:fr.length)}er.ended=!0,Jt(rr)}}function Jt(rr){var er=rr._readableState;er.needReadable=!1,er.emittedReadable||(bt("emitReadable",er.flowing),er.emittedReadable=!0,er.sync?d.nextTick(Rt,rr):Rt(rr))}function Rt(rr){bt("emit readable"),rr.emit("readable"),Bt(rr)}function Ct(rr,er){er.readingMore||(er.readingMore=!0,d.nextTick(yt,rr,er))}function yt(rr,er){for(var fr=er.length;!er.reading&&!er.flowing&&!er.ended&&er.length1&&hr(wr.pipes,rr)!==-1)&&!Jr&&(bt("false write response, pause",wr.awaitDrain),wr.awaitDrain++,Wr=!0),fr.pause())}function hn(rn){bt("onerror",rn),yn(),rr.removeListener("error",hn),nt(rr,"error")===0&&rr.emit("error",rn)}Dt(rr,"error",hn);function nn(){rr.removeListener("finish",kn),yn()}rr.once("close",nn);function kn(){bt("onfinish"),rr.removeListener("close",nn),yn()}rr.once("finish",kn);function yn(){bt("unpipe"),fr.unpipe(rr)}return rr.emit("pipe",fr),wr.flowing||(bt("pipe resume"),fr.resume()),rr};function _t(rr){return function(){var er=rr._readableState;bt("pipeOnDrain",er.awaitDrain),er.awaitDrain&&er.awaitDrain--,er.awaitDrain===0&&nt(rr,"data")&&(er.flowing=!0,Bt(rr))}}qt.prototype.unpipe=function(rr){var er=this._readableState,fr={hasUnpiped:!1};if(er.pipesCount===0)return this;if(er.pipesCount===1)return rr&&rr!==er.pipes?this:(rr||(rr=er.pipes),er.pipes=null,er.pipesCount=0,er.flowing=!1,rr&&rr.emit("unpipe",this,fr),this);if(!rr){var wr=er.pipes,nr=er.pipesCount;er.pipes=null,er.pipesCount=0,er.flowing=!1;for(var ir=0;ir=er.length?(er.decoder?fr=er.buffer.join(""):er.buffer.length===1?fr=er.buffer.head.data:fr=er.buffer.concat(er.length),er.buffer.clear()):fr=Ot(rr,er.buffer,er.decoder),fr}function Ot(rr,er,fr){var wr;return rrir.length?ir.length:rr;if(Br===ir.length?nr+=ir:nr+=ir.slice(0,rr),rr-=Br,rr===0){Br===ir.length?(++wr,fr.next?er.head=fr.next:er.head=er.tail=null):(er.head=fr,fr.data=ir.slice(Br));break}++wr}return er.length-=wr,nr}function zt(rr,er){var fr=ot.allocUnsafe(rr),wr=er.head,nr=1;for(wr.data.copy(fr),rr-=wr.data.length;wr=wr.next;){var ir=wr.data,Br=rr>ir.length?ir.length:rr;if(ir.copy(fr,fr.length-rr,0,Br),rr-=Br,rr===0){Br===ir.length?(++nr,wr.next?er.head=wr.next:er.head=er.tail=null):(er.head=wr,wr.data=ir.slice(Br));break}++nr}return er.length-=nr,fr}function yr(rr){var er=rr._readableState;if(er.length>0)throw new Error('"endReadable()" called on non-empty stream');er.endEmitted||(er.ended=!0,d.nextTick(vr,er,rr))}function vr(rr,er){!rr.endEmitted&&rr.length===0&&(rr.endEmitted=!0,er.readable=!1,er.emit("end"))}function hr(rr,er){for(var fr=0,wr=rr.length;fr0?yt:_t},ot.min=function(yt,_t){return yt.cmp(_t)<0?yt:_t},ot.prototype._init=function(yt,_t,$t){if(typeof yt=="number")return this._initNumber(yt,_t,$t);if(typeof yt=="object")return this._initArray(yt,_t,$t);_t==="hex"&&(_t=16),nt(_t===(_t|0)&&_t>=2&&_t<=36),yt=yt.toString().replace(/\s+/g,"");var At=0;yt[0]==="-"&&(At++,this.negative=1),At=0;At-=3)Bt=yt[At]|yt[At-1]<<8|yt[At-2]<<16,this.words[It]|=Bt<>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,It++);else if($t==="le")for(At=0,It=0;At>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,It++);return this._strip()};function ht(Ct,yt){var _t=Ct.charCodeAt(yt);if(_t>=48&&_t<=57)return _t-48;if(_t>=65&&_t<=70)return _t-55;if(_t>=97&&_t<=102)return _t-87;nt(!1,"Invalid character in "+Ct)}function gt(Ct,yt,_t){var $t=ht(Ct,_t);return _t-1>=yt&&($t|=ht(Ct,_t-1)<<4),$t}ot.prototype._parseHex=function(yt,_t,$t){this.length=Math.ceil((yt.length-_t)/6),this.words=new Array(this.length);for(var At=0;At=_t;At-=2)Pt=gt(yt,_t,At)<=18?(It-=18,Bt+=1,this.words[Bt]|=Pt>>>26):It+=8;else{var Ot=yt.length-_t;for(At=Ot%2===0?_t+1:_t;At=18?(It-=18,Bt+=1,this.words[Bt]|=Pt>>>26):It+=8}this._strip()};function vt(Ct,yt,_t,$t){for(var At=0,It=0,Bt=Math.min(Ct.length,_t),Pt=yt;Pt=49?It=Ot-49+10:Ot>=17?It=Ot-17+10:It=Ot,nt(Ot>=0&&It<$t,"Invalid character"),At+=It}return At}ot.prototype._parseBase=function(yt,_t,$t){this.words=[0],this.length=1;for(var At=0,It=1;It<=67108863;It*=_t)At++;At--,It=It/_t|0;for(var Bt=yt.length-$t,Pt=Bt%At,Ot=Math.min(Bt,Bt-Pt)+$t,Mt=0,zt=$t;zt1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},ot.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{ot.prototype[Symbol.for("nodejs.util.inspect.custom")]=bt}catch{ot.prototype.inspect=bt}else ot.prototype.inspect=bt;function bt(){return(this.red?""}var wt=["","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"],xt=[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],Et=[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];ot.prototype.toString=function(yt,_t){yt=yt||10,_t=_t|0||1;var $t;if(yt===16||yt==="hex"){$t="";for(var At=0,It=0,Bt=0;Bt>>24-At&16777215,At+=2,At>=26&&(At-=26,Bt--),It!==0||Bt!==this.length-1?$t=wt[6-Ot.length]+Ot+$t:$t=Ot+$t}for(It!==0&&($t=It.toString(16)+$t);$t.length%_t!==0;)$t="0"+$t;return this.negative!==0&&($t="-"+$t),$t}if(yt===(yt|0)&&yt>=2&&yt<=36){var Mt=xt[yt],zt=Et[yt];$t="";var yr=this.clone();for(yr.negative=0;!yr.isZero();){var vr=yr.modrn(zt).toString(yt);yr=yr.idivn(zt),yr.isZero()?$t=vr+$t:$t=wt[Mt-vr.length]+vr+$t}for(this.isZero()&&($t="0"+$t);$t.length%_t!==0;)$t="0"+$t;return this.negative!==0&&($t="-"+$t),$t}nt(!1,"Base should be between 2 and 36")},ot.prototype.toNumber=function(){var yt=this.words[0];return this.length===2?yt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?yt+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-yt:yt},ot.prototype.toJSON=function(){return this.toString(16,2)},ft&&(ot.prototype.toBuffer=function(yt,_t){return this.toArrayLike(ft,yt,_t)}),ot.prototype.toArray=function(yt,_t){return this.toArrayLike(Array,yt,_t)};var kt=function(yt,_t){return yt.allocUnsafe?yt.allocUnsafe(_t):new yt(_t)};ot.prototype.toArrayLike=function(yt,_t,$t){this._strip();var At=this.byteLength(),It=$t||Math.max(1,At);nt(At<=It,"byte array longer than desired length"),nt(It>0,"Requested array length <= 0");var Bt=kt(yt,It),Pt=_t==="le"?"LE":"BE";return this["_toArrayLike"+Pt](Bt,At),Bt},ot.prototype._toArrayLikeLE=function(yt,_t){for(var $t=0,At=0,It=0,Bt=0;It>8&255),$t>16&255),Bt===6?($t>24&255),At=0,Bt=0):(At=Pt>>>24,Bt+=2)}if($t=0&&(yt[$t--]=Pt>>8&255),$t>=0&&(yt[$t--]=Pt>>16&255),Bt===6?($t>=0&&(yt[$t--]=Pt>>24&255),At=0,Bt=0):(At=Pt>>>24,Bt+=2)}if($t>=0)for(yt[$t--]=At;$t>=0;)yt[$t--]=0},Math.clz32?ot.prototype._countBits=function(yt){return 32-Math.clz32(yt)}:ot.prototype._countBits=function(yt){var _t=yt,$t=0;return _t>=4096&&($t+=13,_t>>>=13),_t>=64&&($t+=7,_t>>>=7),_t>=8&&($t+=4,_t>>>=4),_t>=2&&($t+=2,_t>>>=2),$t+_t},ot.prototype._zeroBits=function(yt){if(yt===0)return 26;var _t=yt,$t=0;return _t&8191||($t+=13,_t>>>=13),_t&127||($t+=7,_t>>>=7),_t&15||($t+=4,_t>>>=4),_t&3||($t+=2,_t>>>=2),_t&1||$t++,$t},ot.prototype.bitLength=function(){var yt=this.words[this.length-1],_t=this._countBits(yt);return(this.length-1)*26+_t};function Dt(Ct){for(var yt=new Array(Ct.bitLength()),_t=0;_t>>At&1}return yt}ot.prototype.zeroBits=function(){if(this.isZero())return 0;for(var yt=0,_t=0;_tyt.length?this.clone().ior(yt):yt.clone().ior(this)},ot.prototype.uor=function(yt){return this.length>yt.length?this.clone().iuor(yt):yt.clone().iuor(this)},ot.prototype.iuand=function(yt){var _t;this.length>yt.length?_t=yt:_t=this;for(var $t=0;$t<_t.length;$t++)this.words[$t]=this.words[$t]&yt.words[$t];return this.length=_t.length,this._strip()},ot.prototype.iand=function(yt){return nt((this.negative|yt.negative)===0),this.iuand(yt)},ot.prototype.and=function(yt){return this.length>yt.length?this.clone().iand(yt):yt.clone().iand(this)},ot.prototype.uand=function(yt){return this.length>yt.length?this.clone().iuand(yt):yt.clone().iuand(this)},ot.prototype.iuxor=function(yt){var _t,$t;this.length>yt.length?(_t=this,$t=yt):(_t=yt,$t=this);for(var At=0;At<$t.length;At++)this.words[At]=_t.words[At]^$t.words[At];if(this!==_t)for(;At<_t.length;At++)this.words[At]=_t.words[At];return this.length=_t.length,this._strip()},ot.prototype.ixor=function(yt){return nt((this.negative|yt.negative)===0),this.iuxor(yt)},ot.prototype.xor=function(yt){return this.length>yt.length?this.clone().ixor(yt):yt.clone().ixor(this)},ot.prototype.uxor=function(yt){return this.length>yt.length?this.clone().iuxor(yt):yt.clone().iuxor(this)},ot.prototype.inotn=function(yt){nt(typeof yt=="number"&&yt>=0);var _t=Math.ceil(yt/26)|0,$t=yt%26;this._expand(_t),$t>0&&_t--;for(var At=0;At<_t;At++)this.words[At]=~this.words[At]&67108863;return $t>0&&(this.words[At]=~this.words[At]&67108863>>26-$t),this._strip()},ot.prototype.notn=function(yt){return this.clone().inotn(yt)},ot.prototype.setn=function(yt,_t){nt(typeof yt=="number"&&yt>=0);var $t=yt/26|0,At=yt%26;return this._expand($t+1),_t?this.words[$t]=this.words[$t]|1<yt.length?($t=this,At=yt):($t=yt,At=this);for(var It=0,Bt=0;Bt>>26;for(;It!==0&&Bt<$t.length;Bt++)_t=($t.words[Bt]|0)+It,this.words[Bt]=_t&67108863,It=_t>>>26;if(this.length=$t.length,It!==0)this.words[this.length]=It,this.length++;else if($t!==this)for(;Bt<$t.length;Bt++)this.words[Bt]=$t.words[Bt];return this},ot.prototype.add=function(yt){var _t;return yt.negative!==0&&this.negative===0?(yt.negative=0,_t=this.sub(yt),yt.negative^=1,_t):yt.negative===0&&this.negative!==0?(this.negative=0,_t=yt.sub(this),this.negative=1,_t):this.length>yt.length?this.clone().iadd(yt):yt.clone().iadd(this)},ot.prototype.isub=function(yt){if(yt.negative!==0){yt.negative=0;var _t=this.iadd(yt);return yt.negative=1,_t._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(yt),this.negative=1,this._normSign();var $t=this.cmp(yt);if($t===0)return this.negative=0,this.length=1,this.words[0]=0,this;var At,It;$t>0?(At=this,It=yt):(At=yt,It=this);for(var Bt=0,Pt=0;Pt>26,this.words[Pt]=_t&67108863;for(;Bt!==0&&Pt>26,this.words[Pt]=_t&67108863;if(Bt===0&&Pt>>26,yr=Ot&67108863,vr=Math.min(Mt,yt.length-1),hr=Math.max(0,Mt-Ct.length+1);hr<=vr;hr++){var rr=Mt-hr|0;At=Ct.words[rr]|0,It=yt.words[hr]|0,Bt=At*It+yr,zt+=Bt/67108864|0,yr=Bt&67108863}_t.words[Mt]=yr|0,Ot=zt|0}return Ot!==0?_t.words[Mt]=Ot|0:_t.length--,_t._strip()}var qt=function(yt,_t,$t){var At=yt.words,It=_t.words,Bt=$t.words,Pt=0,Ot,Mt,zt,yr=At[0]|0,vr=yr&8191,hr=yr>>>13,rr=At[1]|0,er=rr&8191,fr=rr>>>13,wr=At[2]|0,nr=wr&8191,ir=wr>>>13,Br=At[3]|0,Ir=Br&8191,Dr=Br>>>13,Jr=At[4]|0,Yr=Jr&8191,Wr=Jr>>>13,Or=At[5]|0,hn=Or&8191,nn=Or>>>13,kn=At[6]|0,yn=kn&8191,rn=kn>>>13,Ar=At[7]|0,dr=Ar&8191,xr=Ar>>>13,Mr=At[8]|0,Tr=Mr&8191,Yt=Mr>>>13,Wt=At[9]|0,Vt=Wt&8191,or=Wt>>>13,Cr=It[0]|0,Rr=Cr&8191,$r=Cr>>>13,Hr=It[1]|0,Nr=Hr&8191,Ur=Hr>>>13,_n=It[2]|0,tn=_n&8191,gn=_n>>>13,qn=It[3]|0,En=qn&8191,vn=qn>>>13,On=It[4]|0,In=On&8191,Mn=On>>>13,Fn=It[5]|0,Un=Fn&8191,wn=Fn>>>13,Kn=It[6]|0,Ut=Kn&8191,Ft=Kn>>>13,Ht=It[7]|0,St=Ht&8191,Kt=Ht>>>13,gr=It[8]|0,br=gr&8191,kr=gr>>>13,Pr=It[9]|0,jr=Pr&8191,qr=Pr>>>13;$t.negative=yt.negative^_t.negative,$t.length=19,Ot=Math.imul(vr,Rr),Mt=Math.imul(vr,$r),Mt=Mt+Math.imul(hr,Rr)|0,zt=Math.imul(hr,$r);var Sn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Sn>>>26)|0,Sn&=67108863,Ot=Math.imul(er,Rr),Mt=Math.imul(er,$r),Mt=Mt+Math.imul(fr,Rr)|0,zt=Math.imul(fr,$r),Ot=Ot+Math.imul(vr,Nr)|0,Mt=Mt+Math.imul(vr,Ur)|0,Mt=Mt+Math.imul(hr,Nr)|0,zt=zt+Math.imul(hr,Ur)|0;var Vr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,Ot=Math.imul(nr,Rr),Mt=Math.imul(nr,$r),Mt=Mt+Math.imul(ir,Rr)|0,zt=Math.imul(ir,$r),Ot=Ot+Math.imul(er,Nr)|0,Mt=Mt+Math.imul(er,Ur)|0,Mt=Mt+Math.imul(fr,Nr)|0,zt=zt+Math.imul(fr,Ur)|0,Ot=Ot+Math.imul(vr,tn)|0,Mt=Mt+Math.imul(vr,gn)|0,Mt=Mt+Math.imul(hr,tn)|0,zt=zt+Math.imul(hr,gn)|0;var an=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(an>>>26)|0,an&=67108863,Ot=Math.imul(Ir,Rr),Mt=Math.imul(Ir,$r),Mt=Mt+Math.imul(Dr,Rr)|0,zt=Math.imul(Dr,$r),Ot=Ot+Math.imul(nr,Nr)|0,Mt=Mt+Math.imul(nr,Ur)|0,Mt=Mt+Math.imul(ir,Nr)|0,zt=zt+Math.imul(ir,Ur)|0,Ot=Ot+Math.imul(er,tn)|0,Mt=Mt+Math.imul(er,gn)|0,Mt=Mt+Math.imul(fr,tn)|0,zt=zt+Math.imul(fr,gn)|0,Ot=Ot+Math.imul(vr,En)|0,Mt=Mt+Math.imul(vr,vn)|0,Mt=Mt+Math.imul(hr,En)|0,zt=zt+Math.imul(hr,vn)|0;var sn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(sn>>>26)|0,sn&=67108863,Ot=Math.imul(Yr,Rr),Mt=Math.imul(Yr,$r),Mt=Mt+Math.imul(Wr,Rr)|0,zt=Math.imul(Wr,$r),Ot=Ot+Math.imul(Ir,Nr)|0,Mt=Mt+Math.imul(Ir,Ur)|0,Mt=Mt+Math.imul(Dr,Nr)|0,zt=zt+Math.imul(Dr,Ur)|0,Ot=Ot+Math.imul(nr,tn)|0,Mt=Mt+Math.imul(nr,gn)|0,Mt=Mt+Math.imul(ir,tn)|0,zt=zt+Math.imul(ir,gn)|0,Ot=Ot+Math.imul(er,En)|0,Mt=Mt+Math.imul(er,vn)|0,Mt=Mt+Math.imul(fr,En)|0,zt=zt+Math.imul(fr,vn)|0,Ot=Ot+Math.imul(vr,In)|0,Mt=Mt+Math.imul(vr,Mn)|0,Mt=Mt+Math.imul(hr,In)|0,zt=zt+Math.imul(hr,Mn)|0;var pn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(pn>>>26)|0,pn&=67108863,Ot=Math.imul(hn,Rr),Mt=Math.imul(hn,$r),Mt=Mt+Math.imul(nn,Rr)|0,zt=Math.imul(nn,$r),Ot=Ot+Math.imul(Yr,Nr)|0,Mt=Mt+Math.imul(Yr,Ur)|0,Mt=Mt+Math.imul(Wr,Nr)|0,zt=zt+Math.imul(Wr,Ur)|0,Ot=Ot+Math.imul(Ir,tn)|0,Mt=Mt+Math.imul(Ir,gn)|0,Mt=Mt+Math.imul(Dr,tn)|0,zt=zt+Math.imul(Dr,gn)|0,Ot=Ot+Math.imul(nr,En)|0,Mt=Mt+Math.imul(nr,vn)|0,Mt=Mt+Math.imul(ir,En)|0,zt=zt+Math.imul(ir,vn)|0,Ot=Ot+Math.imul(er,In)|0,Mt=Mt+Math.imul(er,Mn)|0,Mt=Mt+Math.imul(fr,In)|0,zt=zt+Math.imul(fr,Mn)|0,Ot=Ot+Math.imul(vr,Un)|0,Mt=Mt+Math.imul(vr,wn)|0,Mt=Mt+Math.imul(hr,Un)|0,zt=zt+Math.imul(hr,wn)|0;var dn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(dn>>>26)|0,dn&=67108863,Ot=Math.imul(yn,Rr),Mt=Math.imul(yn,$r),Mt=Mt+Math.imul(rn,Rr)|0,zt=Math.imul(rn,$r),Ot=Ot+Math.imul(hn,Nr)|0,Mt=Mt+Math.imul(hn,Ur)|0,Mt=Mt+Math.imul(nn,Nr)|0,zt=zt+Math.imul(nn,Ur)|0,Ot=Ot+Math.imul(Yr,tn)|0,Mt=Mt+Math.imul(Yr,gn)|0,Mt=Mt+Math.imul(Wr,tn)|0,zt=zt+Math.imul(Wr,gn)|0,Ot=Ot+Math.imul(Ir,En)|0,Mt=Mt+Math.imul(Ir,vn)|0,Mt=Mt+Math.imul(Dr,En)|0,zt=zt+Math.imul(Dr,vn)|0,Ot=Ot+Math.imul(nr,In)|0,Mt=Mt+Math.imul(nr,Mn)|0,Mt=Mt+Math.imul(ir,In)|0,zt=zt+Math.imul(ir,Mn)|0,Ot=Ot+Math.imul(er,Un)|0,Mt=Mt+Math.imul(er,wn)|0,Mt=Mt+Math.imul(fr,Un)|0,zt=zt+Math.imul(fr,wn)|0,Ot=Ot+Math.imul(vr,Ut)|0,Mt=Mt+Math.imul(vr,Ft)|0,Mt=Mt+Math.imul(hr,Ut)|0,zt=zt+Math.imul(hr,Ft)|0;var ln=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(ln>>>26)|0,ln&=67108863,Ot=Math.imul(dr,Rr),Mt=Math.imul(dr,$r),Mt=Mt+Math.imul(xr,Rr)|0,zt=Math.imul(xr,$r),Ot=Ot+Math.imul(yn,Nr)|0,Mt=Mt+Math.imul(yn,Ur)|0,Mt=Mt+Math.imul(rn,Nr)|0,zt=zt+Math.imul(rn,Ur)|0,Ot=Ot+Math.imul(hn,tn)|0,Mt=Mt+Math.imul(hn,gn)|0,Mt=Mt+Math.imul(nn,tn)|0,zt=zt+Math.imul(nn,gn)|0,Ot=Ot+Math.imul(Yr,En)|0,Mt=Mt+Math.imul(Yr,vn)|0,Mt=Mt+Math.imul(Wr,En)|0,zt=zt+Math.imul(Wr,vn)|0,Ot=Ot+Math.imul(Ir,In)|0,Mt=Mt+Math.imul(Ir,Mn)|0,Mt=Mt+Math.imul(Dr,In)|0,zt=zt+Math.imul(Dr,Mn)|0,Ot=Ot+Math.imul(nr,Un)|0,Mt=Mt+Math.imul(nr,wn)|0,Mt=Mt+Math.imul(ir,Un)|0,zt=zt+Math.imul(ir,wn)|0,Ot=Ot+Math.imul(er,Ut)|0,Mt=Mt+Math.imul(er,Ft)|0,Mt=Mt+Math.imul(fr,Ut)|0,zt=zt+Math.imul(fr,Ft)|0,Ot=Ot+Math.imul(vr,St)|0,Mt=Mt+Math.imul(vr,Kt)|0,Mt=Mt+Math.imul(hr,St)|0,zt=zt+Math.imul(hr,Kt)|0;var fn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(fn>>>26)|0,fn&=67108863,Ot=Math.imul(Tr,Rr),Mt=Math.imul(Tr,$r),Mt=Mt+Math.imul(Yt,Rr)|0,zt=Math.imul(Yt,$r),Ot=Ot+Math.imul(dr,Nr)|0,Mt=Mt+Math.imul(dr,Ur)|0,Mt=Mt+Math.imul(xr,Nr)|0,zt=zt+Math.imul(xr,Ur)|0,Ot=Ot+Math.imul(yn,tn)|0,Mt=Mt+Math.imul(yn,gn)|0,Mt=Mt+Math.imul(rn,tn)|0,zt=zt+Math.imul(rn,gn)|0,Ot=Ot+Math.imul(hn,En)|0,Mt=Mt+Math.imul(hn,vn)|0,Mt=Mt+Math.imul(nn,En)|0,zt=zt+Math.imul(nn,vn)|0,Ot=Ot+Math.imul(Yr,In)|0,Mt=Mt+Math.imul(Yr,Mn)|0,Mt=Mt+Math.imul(Wr,In)|0,zt=zt+Math.imul(Wr,Mn)|0,Ot=Ot+Math.imul(Ir,Un)|0,Mt=Mt+Math.imul(Ir,wn)|0,Mt=Mt+Math.imul(Dr,Un)|0,zt=zt+Math.imul(Dr,wn)|0,Ot=Ot+Math.imul(nr,Ut)|0,Mt=Mt+Math.imul(nr,Ft)|0,Mt=Mt+Math.imul(ir,Ut)|0,zt=zt+Math.imul(ir,Ft)|0,Ot=Ot+Math.imul(er,St)|0,Mt=Mt+Math.imul(er,Kt)|0,Mt=Mt+Math.imul(fr,St)|0,zt=zt+Math.imul(fr,Kt)|0,Ot=Ot+Math.imul(vr,br)|0,Mt=Mt+Math.imul(vr,kr)|0,Mt=Mt+Math.imul(hr,br)|0,zt=zt+Math.imul(hr,kr)|0;var un=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(un>>>26)|0,un&=67108863,Ot=Math.imul(Vt,Rr),Mt=Math.imul(Vt,$r),Mt=Mt+Math.imul(or,Rr)|0,zt=Math.imul(or,$r),Ot=Ot+Math.imul(Tr,Nr)|0,Mt=Mt+Math.imul(Tr,Ur)|0,Mt=Mt+Math.imul(Yt,Nr)|0,zt=zt+Math.imul(Yt,Ur)|0,Ot=Ot+Math.imul(dr,tn)|0,Mt=Mt+Math.imul(dr,gn)|0,Mt=Mt+Math.imul(xr,tn)|0,zt=zt+Math.imul(xr,gn)|0,Ot=Ot+Math.imul(yn,En)|0,Mt=Mt+Math.imul(yn,vn)|0,Mt=Mt+Math.imul(rn,En)|0,zt=zt+Math.imul(rn,vn)|0,Ot=Ot+Math.imul(hn,In)|0,Mt=Mt+Math.imul(hn,Mn)|0,Mt=Mt+Math.imul(nn,In)|0,zt=zt+Math.imul(nn,Mn)|0,Ot=Ot+Math.imul(Yr,Un)|0,Mt=Mt+Math.imul(Yr,wn)|0,Mt=Mt+Math.imul(Wr,Un)|0,zt=zt+Math.imul(Wr,wn)|0,Ot=Ot+Math.imul(Ir,Ut)|0,Mt=Mt+Math.imul(Ir,Ft)|0,Mt=Mt+Math.imul(Dr,Ut)|0,zt=zt+Math.imul(Dr,Ft)|0,Ot=Ot+Math.imul(nr,St)|0,Mt=Mt+Math.imul(nr,Kt)|0,Mt=Mt+Math.imul(ir,St)|0,zt=zt+Math.imul(ir,Kt)|0,Ot=Ot+Math.imul(er,br)|0,Mt=Mt+Math.imul(er,kr)|0,Mt=Mt+Math.imul(fr,br)|0,zt=zt+Math.imul(fr,kr)|0,Ot=Ot+Math.imul(vr,jr)|0,Mt=Mt+Math.imul(vr,qr)|0,Mt=Mt+Math.imul(hr,jr)|0,zt=zt+Math.imul(hr,qr)|0;var Zr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,Ot=Math.imul(Vt,Nr),Mt=Math.imul(Vt,Ur),Mt=Mt+Math.imul(or,Nr)|0,zt=Math.imul(or,Ur),Ot=Ot+Math.imul(Tr,tn)|0,Mt=Mt+Math.imul(Tr,gn)|0,Mt=Mt+Math.imul(Yt,tn)|0,zt=zt+Math.imul(Yt,gn)|0,Ot=Ot+Math.imul(dr,En)|0,Mt=Mt+Math.imul(dr,vn)|0,Mt=Mt+Math.imul(xr,En)|0,zt=zt+Math.imul(xr,vn)|0,Ot=Ot+Math.imul(yn,In)|0,Mt=Mt+Math.imul(yn,Mn)|0,Mt=Mt+Math.imul(rn,In)|0,zt=zt+Math.imul(rn,Mn)|0,Ot=Ot+Math.imul(hn,Un)|0,Mt=Mt+Math.imul(hn,wn)|0,Mt=Mt+Math.imul(nn,Un)|0,zt=zt+Math.imul(nn,wn)|0,Ot=Ot+Math.imul(Yr,Ut)|0,Mt=Mt+Math.imul(Yr,Ft)|0,Mt=Mt+Math.imul(Wr,Ut)|0,zt=zt+Math.imul(Wr,Ft)|0,Ot=Ot+Math.imul(Ir,St)|0,Mt=Mt+Math.imul(Ir,Kt)|0,Mt=Mt+Math.imul(Dr,St)|0,zt=zt+Math.imul(Dr,Kt)|0,Ot=Ot+Math.imul(nr,br)|0,Mt=Mt+Math.imul(nr,kr)|0,Mt=Mt+Math.imul(ir,br)|0,zt=zt+Math.imul(ir,kr)|0,Ot=Ot+Math.imul(er,jr)|0,Mt=Mt+Math.imul(er,qr)|0,Mt=Mt+Math.imul(fr,jr)|0,zt=zt+Math.imul(fr,qr)|0;var Qr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,Ot=Math.imul(Vt,tn),Mt=Math.imul(Vt,gn),Mt=Mt+Math.imul(or,tn)|0,zt=Math.imul(or,gn),Ot=Ot+Math.imul(Tr,En)|0,Mt=Mt+Math.imul(Tr,vn)|0,Mt=Mt+Math.imul(Yt,En)|0,zt=zt+Math.imul(Yt,vn)|0,Ot=Ot+Math.imul(dr,In)|0,Mt=Mt+Math.imul(dr,Mn)|0,Mt=Mt+Math.imul(xr,In)|0,zt=zt+Math.imul(xr,Mn)|0,Ot=Ot+Math.imul(yn,Un)|0,Mt=Mt+Math.imul(yn,wn)|0,Mt=Mt+Math.imul(rn,Un)|0,zt=zt+Math.imul(rn,wn)|0,Ot=Ot+Math.imul(hn,Ut)|0,Mt=Mt+Math.imul(hn,Ft)|0,Mt=Mt+Math.imul(nn,Ut)|0,zt=zt+Math.imul(nn,Ft)|0,Ot=Ot+Math.imul(Yr,St)|0,Mt=Mt+Math.imul(Yr,Kt)|0,Mt=Mt+Math.imul(Wr,St)|0,zt=zt+Math.imul(Wr,Kt)|0,Ot=Ot+Math.imul(Ir,br)|0,Mt=Mt+Math.imul(Ir,kr)|0,Mt=Mt+Math.imul(Dr,br)|0,zt=zt+Math.imul(Dr,kr)|0,Ot=Ot+Math.imul(nr,jr)|0,Mt=Mt+Math.imul(nr,qr)|0,Mt=Mt+Math.imul(ir,jr)|0,zt=zt+Math.imul(ir,qr)|0;var Fr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,Ot=Math.imul(Vt,En),Mt=Math.imul(Vt,vn),Mt=Mt+Math.imul(or,En)|0,zt=Math.imul(or,vn),Ot=Ot+Math.imul(Tr,In)|0,Mt=Mt+Math.imul(Tr,Mn)|0,Mt=Mt+Math.imul(Yt,In)|0,zt=zt+Math.imul(Yt,Mn)|0,Ot=Ot+Math.imul(dr,Un)|0,Mt=Mt+Math.imul(dr,wn)|0,Mt=Mt+Math.imul(xr,Un)|0,zt=zt+Math.imul(xr,wn)|0,Ot=Ot+Math.imul(yn,Ut)|0,Mt=Mt+Math.imul(yn,Ft)|0,Mt=Mt+Math.imul(rn,Ut)|0,zt=zt+Math.imul(rn,Ft)|0,Ot=Ot+Math.imul(hn,St)|0,Mt=Mt+Math.imul(hn,Kt)|0,Mt=Mt+Math.imul(nn,St)|0,zt=zt+Math.imul(nn,Kt)|0,Ot=Ot+Math.imul(Yr,br)|0,Mt=Mt+Math.imul(Yr,kr)|0,Mt=Mt+Math.imul(Wr,br)|0,zt=zt+Math.imul(Wr,kr)|0,Ot=Ot+Math.imul(Ir,jr)|0,Mt=Mt+Math.imul(Ir,qr)|0,Mt=Mt+Math.imul(Dr,jr)|0,zt=zt+Math.imul(Dr,qr)|0;var Gr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,Ot=Math.imul(Vt,In),Mt=Math.imul(Vt,Mn),Mt=Mt+Math.imul(or,In)|0,zt=Math.imul(or,Mn),Ot=Ot+Math.imul(Tr,Un)|0,Mt=Mt+Math.imul(Tr,wn)|0,Mt=Mt+Math.imul(Yt,Un)|0,zt=zt+Math.imul(Yt,wn)|0,Ot=Ot+Math.imul(dr,Ut)|0,Mt=Mt+Math.imul(dr,Ft)|0,Mt=Mt+Math.imul(xr,Ut)|0,zt=zt+Math.imul(xr,Ft)|0,Ot=Ot+Math.imul(yn,St)|0,Mt=Mt+Math.imul(yn,Kt)|0,Mt=Mt+Math.imul(rn,St)|0,zt=zt+Math.imul(rn,Kt)|0,Ot=Ot+Math.imul(hn,br)|0,Mt=Mt+Math.imul(hn,kr)|0,Mt=Mt+Math.imul(nn,br)|0,zt=zt+Math.imul(nn,kr)|0,Ot=Ot+Math.imul(Yr,jr)|0,Mt=Mt+Math.imul(Yr,qr)|0,Mt=Mt+Math.imul(Wr,jr)|0,zt=zt+Math.imul(Wr,qr)|0;var pr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(pr>>>26)|0,pr&=67108863,Ot=Math.imul(Vt,Un),Mt=Math.imul(Vt,wn),Mt=Mt+Math.imul(or,Un)|0,zt=Math.imul(or,wn),Ot=Ot+Math.imul(Tr,Ut)|0,Mt=Mt+Math.imul(Tr,Ft)|0,Mt=Mt+Math.imul(Yt,Ut)|0,zt=zt+Math.imul(Yt,Ft)|0,Ot=Ot+Math.imul(dr,St)|0,Mt=Mt+Math.imul(dr,Kt)|0,Mt=Mt+Math.imul(xr,St)|0,zt=zt+Math.imul(xr,Kt)|0,Ot=Ot+Math.imul(yn,br)|0,Mt=Mt+Math.imul(yn,kr)|0,Mt=Mt+Math.imul(rn,br)|0,zt=zt+Math.imul(rn,kr)|0,Ot=Ot+Math.imul(hn,jr)|0,Mt=Mt+Math.imul(hn,qr)|0,Mt=Mt+Math.imul(nn,jr)|0,zt=zt+Math.imul(nn,qr)|0;var Nt=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,Ot=Math.imul(Vt,Ut),Mt=Math.imul(Vt,Ft),Mt=Mt+Math.imul(or,Ut)|0,zt=Math.imul(or,Ft),Ot=Ot+Math.imul(Tr,St)|0,Mt=Mt+Math.imul(Tr,Kt)|0,Mt=Mt+Math.imul(Yt,St)|0,zt=zt+Math.imul(Yt,Kt)|0,Ot=Ot+Math.imul(dr,br)|0,Mt=Mt+Math.imul(dr,kr)|0,Mt=Mt+Math.imul(xr,br)|0,zt=zt+Math.imul(xr,kr)|0,Ot=Ot+Math.imul(yn,jr)|0,Mt=Mt+Math.imul(yn,qr)|0,Mt=Mt+Math.imul(rn,jr)|0,zt=zt+Math.imul(rn,qr)|0;var Zt=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,Ot=Math.imul(Vt,St),Mt=Math.imul(Vt,Kt),Mt=Mt+Math.imul(or,St)|0,zt=Math.imul(or,Kt),Ot=Ot+Math.imul(Tr,br)|0,Mt=Mt+Math.imul(Tr,kr)|0,Mt=Mt+Math.imul(Yt,br)|0,zt=zt+Math.imul(Yt,kr)|0,Ot=Ot+Math.imul(dr,jr)|0,Mt=Mt+Math.imul(dr,qr)|0,Mt=Mt+Math.imul(xr,jr)|0,zt=zt+Math.imul(xr,qr)|0;var Xt=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,Ot=Math.imul(Vt,br),Mt=Math.imul(Vt,kr),Mt=Mt+Math.imul(or,br)|0,zt=Math.imul(or,kr),Ot=Ot+Math.imul(Tr,jr)|0,Mt=Mt+Math.imul(Tr,qr)|0,Mt=Mt+Math.imul(Yt,jr)|0,zt=zt+Math.imul(Yt,qr)|0;var cr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(cr>>>26)|0,cr&=67108863,Ot=Math.imul(Vt,jr),Mt=Math.imul(Vt,qr),Mt=Mt+Math.imul(or,jr)|0,zt=Math.imul(or,qr);var ur=(Pt+Ot|0)+((Mt&8191)<<13)|0;return Pt=(zt+(Mt>>>13)|0)+(ur>>>26)|0,ur&=67108863,Bt[0]=Sn,Bt[1]=Vr,Bt[2]=an,Bt[3]=sn,Bt[4]=pn,Bt[5]=dn,Bt[6]=ln,Bt[7]=fn,Bt[8]=un,Bt[9]=Zr,Bt[10]=Qr,Bt[11]=Fr,Bt[12]=Gr,Bt[13]=pr,Bt[14]=Nt,Bt[15]=Zt,Bt[16]=Xt,Bt[17]=cr,Bt[18]=ur,Pt!==0&&(Bt[19]=Pt,$t.length++),$t};Math.imul||(qt=Tt);function jt(Ct,yt,_t){_t.negative=yt.negative^Ct.negative,_t.length=Ct.length+yt.length;for(var $t=0,At=0,It=0;It<_t.length-1;It++){var Bt=At;At=0;for(var Pt=$t&67108863,Ot=Math.min(It,yt.length-1),Mt=Math.max(0,It-Ct.length+1);Mt<=Ot;Mt++){var zt=It-Mt,yr=Ct.words[zt]|0,vr=yt.words[Mt]|0,hr=yr*vr,rr=hr&67108863;Bt=Bt+(hr/67108864|0)|0,rr=rr+Pt|0,Pt=rr&67108863,Bt=Bt+(rr>>>26)|0,At+=Bt>>>26,Bt&=67108863}_t.words[It]=Pt,$t=Bt,Bt=At}return $t!==0?_t.words[It]=$t:_t.length--,_t._strip()}function Lt(Ct,yt,_t){return jt(Ct,yt,_t)}ot.prototype.mulTo=function(yt,_t){var $t,At=this.length+yt.length;return this.length===10&&yt.length===10?$t=qt(this,yt,_t):At<63?$t=Tt(this,yt,_t):At<1024?$t=jt(this,yt,_t):$t=Lt(this,yt,_t),$t},ot.prototype.mul=function(yt){var _t=new ot(null);return _t.words=new Array(this.length+yt.length),this.mulTo(yt,_t)},ot.prototype.mulf=function(yt){var _t=new ot(null);return _t.words=new Array(this.length+yt.length),Lt(this,yt,_t)},ot.prototype.imul=function(yt){return this.clone().mulTo(yt,this)},ot.prototype.imuln=function(yt){var _t=yt<0;_t&&(yt=-yt),nt(typeof yt=="number"),nt(yt<67108864);for(var $t=0,At=0;At>=26,$t+=It/67108864|0,$t+=Bt>>>26,this.words[At]=Bt&67108863}return $t!==0&&(this.words[At]=$t,this.length++),_t?this.ineg():this},ot.prototype.muln=function(yt){return this.clone().imuln(yt)},ot.prototype.sqr=function(){return this.mul(this)},ot.prototype.isqr=function(){return this.imul(this.clone())},ot.prototype.pow=function(yt){var _t=Dt(yt);if(_t.length===0)return new ot(1);for(var $t=this,At=0;At<_t.length&&_t[At]===0;At++,$t=$t.sqr());if(++At<_t.length)for(var It=$t.sqr();At<_t.length;At++,It=It.sqr())_t[At]!==0&&($t=$t.mul(It));return $t},ot.prototype.iushln=function(yt){nt(typeof yt=="number"&&yt>=0);var _t=yt%26,$t=(yt-_t)/26,At=67108863>>>26-_t<<26-_t,It;if(_t!==0){var Bt=0;for(It=0;It>>26-_t}Bt&&(this.words[It]=Bt,this.length++)}if($t!==0){for(It=this.length-1;It>=0;It--)this.words[It+$t]=this.words[It];for(It=0;It<$t;It++)this.words[It]=0;this.length+=$t}return this._strip()},ot.prototype.ishln=function(yt){return nt(this.negative===0),this.iushln(yt)},ot.prototype.iushrn=function(yt,_t,$t){nt(typeof yt=="number"&&yt>=0);var At;_t?At=(_t-_t%26)/26:At=0;var It=yt%26,Bt=Math.min((yt-It)/26,this.length),Pt=67108863^67108863>>>It<Bt)for(this.length-=Bt,Mt=0;Mt=0&&(zt!==0||Mt>=At);Mt--){var yr=this.words[Mt]|0;this.words[Mt]=zt<<26-It|yr>>>It,zt=yr&Pt}return Ot&&zt!==0&&(Ot.words[Ot.length++]=zt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},ot.prototype.ishrn=function(yt,_t,$t){return nt(this.negative===0),this.iushrn(yt,_t,$t)},ot.prototype.shln=function(yt){return this.clone().ishln(yt)},ot.prototype.ushln=function(yt){return this.clone().iushln(yt)},ot.prototype.shrn=function(yt){return this.clone().ishrn(yt)},ot.prototype.ushrn=function(yt){return this.clone().iushrn(yt)},ot.prototype.testn=function(yt){nt(typeof yt=="number"&&yt>=0);var _t=yt%26,$t=(yt-_t)/26,At=1<<_t;if(this.length<=$t)return!1;var It=this.words[$t];return!!(It&At)},ot.prototype.imaskn=function(yt){nt(typeof yt=="number"&&yt>=0);var _t=yt%26,$t=(yt-_t)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=$t)return this;if(_t!==0&&$t++,this.length=Math.min($t,this.length),_t!==0){var At=67108863^67108863>>>_t<<_t;this.words[this.length-1]&=At}return this._strip()},ot.prototype.maskn=function(yt){return this.clone().imaskn(yt)},ot.prototype.iaddn=function(yt){return nt(typeof yt=="number"),nt(yt<67108864),yt<0?this.isubn(-yt):this.negative!==0?this.length===1&&(this.words[0]|0)<=yt?(this.words[0]=yt-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(yt),this.negative=1,this):this._iaddn(yt)},ot.prototype._iaddn=function(yt){this.words[0]+=yt;for(var _t=0;_t=67108864;_t++)this.words[_t]-=67108864,_t===this.length-1?this.words[_t+1]=1:this.words[_t+1]++;return this.length=Math.max(this.length,_t+1),this},ot.prototype.isubn=function(yt){if(nt(typeof yt=="number"),nt(yt<67108864),yt<0)return this.iaddn(-yt);if(this.negative!==0)return this.negative=0,this.iaddn(yt),this.negative=1,this;if(this.words[0]-=yt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _t=0;_t>26)-(Ot/67108864|0),this.words[It+$t]=Bt&67108863}for(;It>26,this.words[It+$t]=Bt&67108863;if(Pt===0)return this._strip();for(nt(Pt===-1),Pt=0,It=0;It>26,this.words[It]=Bt&67108863;return this.negative=1,this._strip()},ot.prototype._wordDiv=function(yt,_t){var $t=this.length-yt.length,At=this.clone(),It=yt,Bt=It.words[It.length-1]|0,Pt=this._countBits(Bt);$t=26-Pt,$t!==0&&(It=It.ushln($t),At.iushln($t),Bt=It.words[It.length-1]|0);var Ot=At.length-It.length,Mt;if(_t!=="mod"){Mt=new ot(null),Mt.length=Ot+1,Mt.words=new Array(Mt.length);for(var zt=0;zt=0;vr--){var hr=(At.words[It.length+vr]|0)*67108864+(At.words[It.length+vr-1]|0);for(hr=Math.min(hr/Bt|0,67108863),At._ishlnsubmul(It,hr,vr);At.negative!==0;)hr--,At.negative=0,At._ishlnsubmul(It,1,vr),At.isZero()||(At.negative^=1);Mt&&(Mt.words[vr]=hr)}return Mt&&Mt._strip(),At._strip(),_t!=="div"&&$t!==0&&At.iushrn($t),{div:Mt||null,mod:At}},ot.prototype.divmod=function(yt,_t,$t){if(nt(!yt.isZero()),this.isZero())return{div:new ot(0),mod:new ot(0)};var At,It,Bt;return this.negative!==0&&yt.negative===0?(Bt=this.neg().divmod(yt,_t),_t!=="mod"&&(At=Bt.div.neg()),_t!=="div"&&(It=Bt.mod.neg(),$t&&It.negative!==0&&It.iadd(yt)),{div:At,mod:It}):this.negative===0&&yt.negative!==0?(Bt=this.divmod(yt.neg(),_t),_t!=="mod"&&(At=Bt.div.neg()),{div:At,mod:Bt.mod}):this.negative&yt.negative?(Bt=this.neg().divmod(yt.neg(),_t),_t!=="div"&&(It=Bt.mod.neg(),$t&&It.negative!==0&&It.isub(yt)),{div:Bt.div,mod:It}):yt.length>this.length||this.cmp(yt)<0?{div:new ot(0),mod:this}:yt.length===1?_t==="div"?{div:this.divn(yt.words[0]),mod:null}:_t==="mod"?{div:null,mod:new ot(this.modrn(yt.words[0]))}:{div:this.divn(yt.words[0]),mod:new ot(this.modrn(yt.words[0]))}:this._wordDiv(yt,_t)},ot.prototype.div=function(yt){return this.divmod(yt,"div",!1).div},ot.prototype.mod=function(yt){return this.divmod(yt,"mod",!1).mod},ot.prototype.umod=function(yt){return this.divmod(yt,"mod",!0).mod},ot.prototype.divRound=function(yt){var _t=this.divmod(yt);if(_t.mod.isZero())return _t.div;var $t=_t.div.negative!==0?_t.mod.isub(yt):_t.mod,At=yt.ushrn(1),It=yt.andln(1),Bt=$t.cmp(At);return Bt<0||It===1&&Bt===0?_t.div:_t.div.negative!==0?_t.div.isubn(1):_t.div.iaddn(1)},ot.prototype.modrn=function(yt){var _t=yt<0;_t&&(yt=-yt),nt(yt<=67108863);for(var $t=(1<<26)%yt,At=0,It=this.length-1;It>=0;It--)At=($t*At+(this.words[It]|0))%yt;return _t?-At:At},ot.prototype.modn=function(yt){return this.modrn(yt)},ot.prototype.idivn=function(yt){var _t=yt<0;_t&&(yt=-yt),nt(yt<=67108863);for(var $t=0,At=this.length-1;At>=0;At--){var It=(this.words[At]|0)+$t*67108864;this.words[At]=It/yt|0,$t=It%yt}return this._strip(),_t?this.ineg():this},ot.prototype.divn=function(yt){return this.clone().idivn(yt)},ot.prototype.egcd=function(yt){nt(yt.negative===0),nt(!yt.isZero());var _t=this,$t=yt.clone();_t.negative!==0?_t=_t.umod(yt):_t=_t.clone();for(var At=new ot(1),It=new ot(0),Bt=new ot(0),Pt=new ot(1),Ot=0;_t.isEven()&&$t.isEven();)_t.iushrn(1),$t.iushrn(1),++Ot;for(var Mt=$t.clone(),zt=_t.clone();!_t.isZero();){for(var yr=0,vr=1;!(_t.words[0]&vr)&&yr<26;++yr,vr<<=1);if(yr>0)for(_t.iushrn(yr);yr-- >0;)(At.isOdd()||It.isOdd())&&(At.iadd(Mt),It.isub(zt)),At.iushrn(1),It.iushrn(1);for(var hr=0,rr=1;!($t.words[0]&rr)&&hr<26;++hr,rr<<=1);if(hr>0)for($t.iushrn(hr);hr-- >0;)(Bt.isOdd()||Pt.isOdd())&&(Bt.iadd(Mt),Pt.isub(zt)),Bt.iushrn(1),Pt.iushrn(1);_t.cmp($t)>=0?(_t.isub($t),At.isub(Bt),It.isub(Pt)):($t.isub(_t),Bt.isub(At),Pt.isub(It))}return{a:Bt,b:Pt,gcd:$t.iushln(Ot)}},ot.prototype._invmp=function(yt){nt(yt.negative===0),nt(!yt.isZero());var _t=this,$t=yt.clone();_t.negative!==0?_t=_t.umod(yt):_t=_t.clone();for(var At=new ot(1),It=new ot(0),Bt=$t.clone();_t.cmpn(1)>0&&$t.cmpn(1)>0;){for(var Pt=0,Ot=1;!(_t.words[0]&Ot)&&Pt<26;++Pt,Ot<<=1);if(Pt>0)for(_t.iushrn(Pt);Pt-- >0;)At.isOdd()&&At.iadd(Bt),At.iushrn(1);for(var Mt=0,zt=1;!($t.words[0]&zt)&&Mt<26;++Mt,zt<<=1);if(Mt>0)for($t.iushrn(Mt);Mt-- >0;)It.isOdd()&&It.iadd(Bt),It.iushrn(1);_t.cmp($t)>=0?(_t.isub($t),At.isub(It)):($t.isub(_t),It.isub(At))}var yr;return _t.cmpn(1)===0?yr=At:yr=It,yr.cmpn(0)<0&&yr.iadd(yt),yr},ot.prototype.gcd=function(yt){if(this.isZero())return yt.abs();if(yt.isZero())return this.abs();var _t=this.clone(),$t=yt.clone();_t.negative=0,$t.negative=0;for(var At=0;_t.isEven()&&$t.isEven();At++)_t.iushrn(1),$t.iushrn(1);do{for(;_t.isEven();)_t.iushrn(1);for(;$t.isEven();)$t.iushrn(1);var It=_t.cmp($t);if(It<0){var Bt=_t;_t=$t,$t=Bt}else if(It===0||$t.cmpn(1)===0)break;_t.isub($t)}while(!0);return $t.iushln(At)},ot.prototype.invm=function(yt){return this.egcd(yt).a.umod(yt)},ot.prototype.isEven=function(){return(this.words[0]&1)===0},ot.prototype.isOdd=function(){return(this.words[0]&1)===1},ot.prototype.andln=function(yt){return this.words[0]&yt},ot.prototype.bincn=function(yt){nt(typeof yt=="number");var _t=yt%26,$t=(yt-_t)/26,At=1<<_t;if(this.length<=$t)return this._expand($t+1),this.words[$t]|=At,this;for(var It=At,Bt=$t;It!==0&&Bt>>26,Pt&=67108863,this.words[Bt]=Pt}return It!==0&&(this.words[Bt]=It,this.length++),this},ot.prototype.isZero=function(){return this.length===1&&this.words[0]===0},ot.prototype.cmpn=function(yt){var _t=yt<0;if(this.negative!==0&&!_t)return-1;if(this.negative===0&&_t)return 1;this._strip();var $t;if(this.length>1)$t=1;else{_t&&(yt=-yt),nt(yt<=67108863,"Number is too big");var At=this.words[0]|0;$t=At===yt?0:Atyt.length)return 1;if(this.length=0;$t--){var At=this.words[$t]|0,It=yt.words[$t]|0;if(At!==It){AtIt&&(_t=1);break}}return _t},ot.prototype.gtn=function(yt){return this.cmpn(yt)===1},ot.prototype.gt=function(yt){return this.cmp(yt)===1},ot.prototype.gten=function(yt){return this.cmpn(yt)>=0},ot.prototype.gte=function(yt){return this.cmp(yt)>=0},ot.prototype.ltn=function(yt){return this.cmpn(yt)===-1},ot.prototype.lt=function(yt){return this.cmp(yt)===-1},ot.prototype.lten=function(yt){return this.cmpn(yt)<=0},ot.prototype.lte=function(yt){return this.cmp(yt)<=0},ot.prototype.eqn=function(yt){return this.cmpn(yt)===0},ot.prototype.eq=function(yt){return this.cmp(yt)===0},ot.red=function(yt){return new Jt(yt)},ot.prototype.toRed=function(yt){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),yt.convertTo(this)._forceRed(yt)},ot.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},ot.prototype._forceRed=function(yt){return this.red=yt,this},ot.prototype.forceRed=function(yt){return nt(!this.red,"Already a number in reduction context"),this._forceRed(yt)},ot.prototype.redAdd=function(yt){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,yt)},ot.prototype.redIAdd=function(yt){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,yt)},ot.prototype.redSub=function(yt){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,yt)},ot.prototype.redISub=function(yt){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,yt)},ot.prototype.redShl=function(yt){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,yt)},ot.prototype.redMul=function(yt){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,yt),this.red.mul(this,yt)},ot.prototype.redIMul=function(yt){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,yt),this.red.imul(this,yt)},ot.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},ot.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},ot.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},ot.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},ot.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},ot.prototype.redPow=function(yt){return nt(this.red&&!yt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,yt)};var Gt={k256:null,p224:null,p192:null,p25519:null};function Qt(Ct,yt){this.name=Ct,this.p=new ot(yt,16),this.n=this.p.bitLength(),this.k=new ot(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Qt.prototype._tmp=function(){var yt=new ot(null);return yt.words=new Array(Math.ceil(this.n/13)),yt},Qt.prototype.ireduce=function(yt){var _t=yt,$t;do this.split(_t,this.tmp),_t=this.imulK(_t),_t=_t.iadd(this.tmp),$t=_t.bitLength();while($t>this.n);var At=$t0?_t.isub(this.p):_t.strip!==void 0?_t.strip():_t._strip(),_t},Qt.prototype.split=function(yt,_t){yt.iushrn(this.n,0,_t)},Qt.prototype.imulK=function(yt){return yt.imul(this.k)};function tr(){Qt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}st(tr,Qt),tr.prototype.split=function(yt,_t){for(var $t=4194303,At=Math.min(yt.length,9),It=0;It>>22,Bt=Pt}Bt>>>=22,yt.words[It-10]=Bt,Bt===0&&yt.length>10?yt.length-=10:yt.length-=9},tr.prototype.imulK=function(yt){yt.words[yt.length]=0,yt.words[yt.length+1]=0,yt.length+=2;for(var _t=0,$t=0;$t>>=26,yt.words[$t]=It,_t=At}return _t!==0&&(yt.words[yt.length++]=_t),yt},ot._prime=function(yt){if(Gt[yt])return Gt[yt];var _t;if(yt==="k256")_t=new tr;else if(yt==="p224")_t=new sr;else if(yt==="p192")_t=new ar;else if(yt==="p25519")_t=new _r;else throw new Error("Unknown prime "+yt);return Gt[yt]=_t,_t};function Jt(Ct){if(typeof Ct=="string"){var yt=ot._prime(Ct);this.m=yt.p,this.prime=yt}else nt(Ct.gtn(1),"modulus must be greater than 1"),this.m=Ct,this.prime=null}Jt.prototype._verify1=function(yt){nt(yt.negative===0,"red works only with positives"),nt(yt.red,"red works only with red numbers")},Jt.prototype._verify2=function(yt,_t){nt((yt.negative|_t.negative)===0,"red works only with positives"),nt(yt.red&&yt.red===_t.red,"red works only with red numbers")},Jt.prototype.imod=function(yt){return this.prime?this.prime.ireduce(yt)._forceRed(this):(mt(yt,yt.umod(this.m)._forceRed(this)),yt)},Jt.prototype.neg=function(yt){return yt.isZero()?yt.clone():this.m.sub(yt)._forceRed(this)},Jt.prototype.add=function(yt,_t){this._verify2(yt,_t);var $t=yt.add(_t);return $t.cmp(this.m)>=0&&$t.isub(this.m),$t._forceRed(this)},Jt.prototype.iadd=function(yt,_t){this._verify2(yt,_t);var $t=yt.iadd(_t);return $t.cmp(this.m)>=0&&$t.isub(this.m),$t},Jt.prototype.sub=function(yt,_t){this._verify2(yt,_t);var $t=yt.sub(_t);return $t.cmpn(0)<0&&$t.iadd(this.m),$t._forceRed(this)},Jt.prototype.isub=function(yt,_t){this._verify2(yt,_t);var $t=yt.isub(_t);return $t.cmpn(0)<0&&$t.iadd(this.m),$t},Jt.prototype.shl=function(yt,_t){return this._verify1(yt),this.imod(yt.ushln(_t))},Jt.prototype.imul=function(yt,_t){return this._verify2(yt,_t),this.imod(yt.imul(_t))},Jt.prototype.mul=function(yt,_t){return this._verify2(yt,_t),this.imod(yt.mul(_t))},Jt.prototype.isqr=function(yt){return this.imul(yt,yt.clone())},Jt.prototype.sqr=function(yt){return this.mul(yt,yt)},Jt.prototype.sqrt=function(yt){if(yt.isZero())return yt.clone();var _t=this.m.andln(3);if(nt(_t%2===1),_t===3){var $t=this.m.add(new ot(1)).iushrn(2);return this.pow(yt,$t)}for(var At=this.m.subn(1),It=0;!At.isZero()&&At.andln(1)===0;)It++,At.iushrn(1);nt(!At.isZero());var Bt=new ot(1).toRed(this),Pt=Bt.redNeg(),Ot=this.m.subn(1).iushrn(1),Mt=this.m.bitLength();for(Mt=new ot(2*Mt*Mt).toRed(this);this.pow(Mt,Ot).cmp(Pt)!==0;)Mt.redIAdd(Pt);for(var zt=this.pow(Mt,At),yr=this.pow(yt,At.addn(1).iushrn(1)),vr=this.pow(yt,At),hr=It;vr.cmp(Bt)!==0;){for(var rr=vr,er=0;rr.cmp(Bt)!==0;er++)rr=rr.redSqr();nt(er=0;It--){for(var zt=_t.words[It],yr=Mt-1;yr>=0;yr--){var vr=zt>>yr&1;if(Bt!==At[0]&&(Bt=this.sqr(Bt)),vr===0&&Pt===0){Ot=0;continue}Pt<<=1,Pt|=vr,Ot++,!(Ot!==$t&&(It!==0||yr!==0))&&(Bt=this.mul(Bt,At[Pt]),Ot=0,Pt=0)}Mt=26}return Bt},Jt.prototype.convertTo=function(yt){var _t=yt.umod(this.m);return _t===yt?_t.clone():_t},Jt.prototype.convertFrom=function(yt){var _t=yt.clone();return _t.red=null,_t},ot.mont=function(yt){return new Rt(yt)};function Rt(Ct){Jt.call(this,Ct),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new ot(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)}st(Rt,Jt),Rt.prototype.convertTo=function(yt){return this.imod(yt.ushln(this.shift))},Rt.prototype.convertFrom=function(yt){var _t=this.imod(yt.mul(this.rinv));return _t.red=null,_t},Rt.prototype.imul=function(yt,_t){if(yt.isZero()||_t.isZero())return yt.words[0]=0,yt.length=1,yt;var $t=yt.imul(_t),At=$t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),It=$t.isub(At).iushrn(this.shift),Bt=It;return It.cmp(this.m)>=0?Bt=It.isub(this.m):It.cmpn(0)<0&&(Bt=It.iadd(this.m)),Bt._forceRed(this)},Rt.prototype.mul=function(yt,_t){if(yt.isZero()||_t.isZero())return new ot(0)._forceRed(this);var $t=yt.mul(_t),At=$t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),It=$t.isub(At).iushrn(this.shift),Bt=It;return It.cmp(this.m)>=0?Bt=It.isub(this.m):It.cmpn(0)<0&&(Bt=It.iadd(this.m)),Bt._forceRed(this)},Rt.prototype.invm=function(yt){var _t=this.imod(yt._invmp(this.m).mul(this.r2));return _t._forceRed(this)}})(d,commonjsGlobal)}(bn$1)),bn$1.exports}var browserifyRsa,hasRequiredBrowserifyRsa;function requireBrowserifyRsa(){if(hasRequiredBrowserifyRsa)return browserifyRsa;hasRequiredBrowserifyRsa=1;var d=requireBn$1(),b=requireBrowser$b(),tt=requireSafeBuffer$1().Buffer;function nt(ft){var ht=ft.modulus.byteLength(),gt;do gt=new d(b(ht));while(gt.cmp(ft.modulus)>=0||!gt.umod(ft.prime1)||!gt.umod(ft.prime2));return gt}function st(ft){var ht=nt(ft),gt=ht.toRed(d.mont(ft.modulus)).redPow(new d(ft.publicExponent)).fromRed();return{blinder:gt,unblinder:ht.invm(ft.modulus)}}function ot(ft,ht){var gt=st(ht),vt=ht.modulus.byteLength(),mt=new d(ft).mul(gt.blinder).umod(ht.modulus),bt=mt.toRed(d.mont(ht.prime1)),wt=mt.toRed(d.mont(ht.prime2)),xt=ht.coefficient,Et=ht.prime1,kt=ht.prime2,Dt=bt.redPow(ht.exponent1).fromRed(),Tt=wt.redPow(ht.exponent2).fromRed(),qt=Dt.isub(Tt).imul(xt).umod(Et).imul(kt);return Tt.iadd(qt).imul(gt.unblinder).umod(ht.modulus).toArrayLike(tt,"be",vt)}return ot.getr=nt,browserifyRsa=ot,browserifyRsa}var elliptic={};const name$2="elliptic",version$3="6.6.1",description$1="EC cryptography",main$2="lib/elliptic.js",files$2=["lib"],scripts$2={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository$2={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author$2="Fedor Indutny ",license$2="MIT",bugs$1={url:"https://github.com/indutny/elliptic/issues"},homepage$1="https://github.com/indutny/elliptic",devDependencies$2={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies$2={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0={name:name$2,version:version$3,description:description$1,main:main$2,files:files$2,scripts:scripts$2,repository:repository$2,keywords,author:author$2,license:license$2,bugs:bugs$1,homepage:homepage$1,devDependencies:devDependencies$2,dependencies:dependencies$2};var utils$b={},utils$a={},hasRequiredUtils$2;function requireUtils$2(){return hasRequiredUtils$2||(hasRequiredUtils$2=1,function(d){var b=d;function tt(ot,ft){if(Array.isArray(ot))return ot.slice();if(!ot)return[];var ht=[];if(typeof ot!="string"){for(var gt=0;gt>8,bt=vt&255;mt?ht.push(mt,bt):ht.push(bt)}return ht}b.toArray=tt;function nt(ot){return ot.length===1?"0"+ot:ot}b.zero2=nt;function st(ot){for(var ft="",ht=0;ht(kt>>1)-1?Tt=(kt>>1)-qt:Tt=qt,Dt.isubn(Tt)):Tt=0,xt[Et]=Tt,Dt.iushrn(1)}return xt}b.getNAF=ot;function ft(mt,bt){var wt=[[],[]];mt=mt.clone(),bt=bt.clone();for(var xt=0,Et=0,kt;mt.cmpn(-xt)>0||bt.cmpn(-Et)>0;){var Dt=mt.andln(3)+xt&3,Tt=bt.andln(3)+Et&3;Dt===3&&(Dt=-1),Tt===3&&(Tt=-1);var qt;Dt&1?(kt=mt.andln(7)+xt&7,(kt===3||kt===5)&&Tt===2?qt=-Dt:qt=Dt):qt=0,wt[0].push(qt);var jt;Tt&1?(kt=bt.andln(7)+Et&7,(kt===3||kt===5)&&Dt===2?jt=-Tt:jt=Tt):jt=0,wt[1].push(jt),2*xt===qt+1&&(xt=1-xt),2*Et===jt+1&&(Et=1-Et),mt.iushrn(1),bt.iushrn(1)}return wt}b.getJSF=ft;function ht(mt,bt,wt){var xt="_"+bt;mt.prototype[bt]=function(){return this[xt]!==void 0?this[xt]:this[xt]=wt.call(this)}}b.cachedProperty=ht;function gt(mt){return typeof mt=="string"?b.toArray(mt,"hex"):mt}b.parseBytes=gt;function vt(mt){return new tt(mt,"hex","le")}b.intFromLE=vt}(utils$b)),utils$b}var curve={},base$1,hasRequiredBase$1;function requireBase$1(){if(hasRequiredBase$1)return base$1;hasRequiredBase$1=1;var d=requireBn$2(),b=requireUtils$1(),tt=b.getNAF,nt=b.getJSF,st=b.assert;function ot(ht,gt){this.type=ht,this.p=new d(gt.p,16),this.red=gt.prime?d.red(gt.prime):d.mont(this.p),this.zero=new d(0).toRed(this.red),this.one=new d(1).toRed(this.red),this.two=new d(2).toRed(this.red),this.n=gt.n&&new d(gt.n,16),this.g=gt.g&&this.pointFromJSON(gt.g,gt.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 vt=this.n&&this.p.div(this.n);!vt||vt.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}base$1=ot,ot.prototype.point=function(){throw new Error("Not implemented")},ot.prototype.validate=function(){throw new Error("Not implemented")},ot.prototype._fixedNafMul=function(gt,vt){st(gt.precomputed);var mt=gt._getDoubles(),bt=tt(vt,1,this._bitLength),wt=(1<=Et;Dt--)kt=(kt<<1)+bt[Dt];xt.push(kt)}for(var Tt=this.jpoint(null,null,null),qt=this.jpoint(null,null,null),jt=wt;jt>0;jt--){for(Et=0;Et=0;kt--){for(var Dt=0;kt>=0&&xt[kt]===0;kt--)Dt++;if(kt>=0&&Dt++,Et=Et.dblp(Dt),kt<0)break;var Tt=xt[kt];st(Tt!==0),gt.type==="affine"?Tt>0?Et=Et.mixedAdd(wt[Tt-1>>1]):Et=Et.mixedAdd(wt[-Tt-1>>1].neg()):Tt>0?Et=Et.add(wt[Tt-1>>1]):Et=Et.add(wt[-Tt-1>>1].neg())}return gt.type==="affine"?Et.toP():Et},ot.prototype._wnafMulAdd=function(gt,vt,mt,bt,wt){var xt=this._wnafT1,Et=this._wnafT2,kt=this._wnafT3,Dt=0,Tt,qt,jt;for(Tt=0;Tt=1;Tt-=2){var Gt=Tt-1,Qt=Tt;if(xt[Gt]!==1||xt[Qt]!==1){kt[Gt]=tt(mt[Gt],xt[Gt],this._bitLength),kt[Qt]=tt(mt[Qt],xt[Qt],this._bitLength),Dt=Math.max(kt[Gt].length,Dt),Dt=Math.max(kt[Qt].length,Dt);continue}var tr=[vt[Gt],null,null,vt[Qt]];vt[Gt].y.cmp(vt[Qt].y)===0?(tr[1]=vt[Gt].add(vt[Qt]),tr[2]=vt[Gt].toJ().mixedAdd(vt[Qt].neg())):vt[Gt].y.cmp(vt[Qt].y.redNeg())===0?(tr[1]=vt[Gt].toJ().mixedAdd(vt[Qt]),tr[2]=vt[Gt].add(vt[Qt].neg())):(tr[1]=vt[Gt].toJ().mixedAdd(vt[Qt]),tr[2]=vt[Gt].toJ().mixedAdd(vt[Qt].neg()));var sr=[-3,-1,-5,-7,0,7,5,1,3],ar=nt(mt[Gt],mt[Qt]);for(Dt=Math.max(ar[0].length,Dt),kt[Gt]=new Array(Dt),kt[Qt]=new Array(Dt),qt=0;qt=0;Tt--){for(var yt=0;Tt>=0;){var _t=!0;for(qt=0;qt=0&&yt++,Rt=Rt.dblp(yt),Tt<0)break;for(qt=0;qt0?jt=Et[qt][$t-1>>1]:$t<0&&(jt=Et[qt][-$t-1>>1].neg()),jt.type==="affine"?Rt=Rt.mixedAdd(jt):Rt=Rt.add(jt))}}for(Tt=0;Tt=Math.ceil((gt.bitLength()+1)/vt.step):!1},ft.prototype._getDoubles=function(gt,vt){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var mt=[this],bt=this,wt=0;wt=0&&(Gt=Tt,Qt=qt),jt.negative&&(jt=jt.neg(),Lt=Lt.neg()),Gt.negative&&(Gt=Gt.neg(),Qt=Qt.neg()),[{a:jt,b:Lt},{a:Gt,b:Qt}]},ot.prototype._endoSplit=function(vt){var mt=this.endo.basis,bt=mt[0],wt=mt[1],xt=wt.b.mul(vt).divRound(this.n),Et=bt.b.neg().mul(vt).divRound(this.n),kt=xt.mul(bt.a),Dt=Et.mul(wt.a),Tt=xt.mul(bt.b),qt=Et.mul(wt.b),jt=vt.sub(kt).sub(Dt),Lt=Tt.add(qt).neg();return{k1:jt,k2:Lt}},ot.prototype.pointFromX=function(vt,mt){vt=new b(vt,16),vt.red||(vt=vt.toRed(this.red));var bt=vt.redSqr().redMul(vt).redIAdd(vt.redMul(this.a)).redIAdd(this.b),wt=bt.redSqrt();if(wt.redSqr().redSub(bt).cmp(this.zero)!==0)throw new Error("invalid point");var xt=wt.fromRed().isOdd();return(mt&&!xt||!mt&&xt)&&(wt=wt.redNeg()),this.point(vt,wt)},ot.prototype.validate=function(vt){if(vt.inf)return!0;var mt=vt.x,bt=vt.y,wt=this.a.redMul(mt),xt=mt.redSqr().redMul(mt).redIAdd(wt).redIAdd(this.b);return bt.redSqr().redISub(xt).cmpn(0)===0},ot.prototype._endoWnafMulAdd=function(vt,mt,bt){for(var wt=this._endoWnafT1,xt=this._endoWnafT2,Et=0;Et":""},ft.prototype.isInfinity=function(){return this.inf},ft.prototype.add=function(vt){if(this.inf)return vt;if(vt.inf)return this;if(this.eq(vt))return this.dbl();if(this.neg().eq(vt))return this.curve.point(null,null);if(this.x.cmp(vt.x)===0)return this.curve.point(null,null);var mt=this.y.redSub(vt.y);mt.cmpn(0)!==0&&(mt=mt.redMul(this.x.redSub(vt.x).redInvm()));var bt=mt.redSqr().redISub(this.x).redISub(vt.x),wt=mt.redMul(this.x.redSub(bt)).redISub(this.y);return this.curve.point(bt,wt)},ft.prototype.dbl=function(){if(this.inf)return this;var vt=this.y.redAdd(this.y);if(vt.cmpn(0)===0)return this.curve.point(null,null);var mt=this.curve.a,bt=this.x.redSqr(),wt=vt.redInvm(),xt=bt.redAdd(bt).redIAdd(bt).redIAdd(mt).redMul(wt),Et=xt.redSqr().redISub(this.x.redAdd(this.x)),kt=xt.redMul(this.x.redSub(Et)).redISub(this.y);return this.curve.point(Et,kt)},ft.prototype.getX=function(){return this.x.fromRed()},ft.prototype.getY=function(){return this.y.fromRed()},ft.prototype.mul=function(vt){return vt=new b(vt,16),this.isInfinity()?this:this._hasDoubles(vt)?this.curve._fixedNafMul(this,vt):this.curve.endo?this.curve._endoWnafMulAdd([this],[vt]):this.curve._wnafMul(this,vt)},ft.prototype.mulAdd=function(vt,mt,bt){var wt=[this,mt],xt=[vt,bt];return this.curve.endo?this.curve._endoWnafMulAdd(wt,xt):this.curve._wnafMulAdd(1,wt,xt,2)},ft.prototype.jmulAdd=function(vt,mt,bt){var wt=[this,mt],xt=[vt,bt];return this.curve.endo?this.curve._endoWnafMulAdd(wt,xt,!0):this.curve._wnafMulAdd(1,wt,xt,2,!0)},ft.prototype.eq=function(vt){return this===vt||this.inf===vt.inf&&(this.inf||this.x.cmp(vt.x)===0&&this.y.cmp(vt.y)===0)},ft.prototype.neg=function(vt){if(this.inf)return this;var mt=this.curve.point(this.x,this.y.redNeg());if(vt&&this.precomputed){var bt=this.precomputed,wt=function(xt){return xt.neg()};mt.precomputed={naf:bt.naf&&{wnd:bt.naf.wnd,points:bt.naf.points.map(wt)},doubles:bt.doubles&&{step:bt.doubles.step,points:bt.doubles.points.map(wt)}}}return mt},ft.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var vt=this.curve.jpoint(this.x,this.y,this.curve.one);return vt};function ht(gt,vt,mt,bt){nt.BasePoint.call(this,gt,"jacobian"),vt===null&&mt===null&&bt===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new b(0)):(this.x=new b(vt,16),this.y=new b(mt,16),this.z=new b(bt,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}return tt(ht,nt.BasePoint),ot.prototype.jpoint=function(vt,mt,bt){return new ht(this,vt,mt,bt)},ht.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var vt=this.z.redInvm(),mt=vt.redSqr(),bt=this.x.redMul(mt),wt=this.y.redMul(mt).redMul(vt);return this.curve.point(bt,wt)},ht.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},ht.prototype.add=function(vt){if(this.isInfinity())return vt;if(vt.isInfinity())return this;var mt=vt.z.redSqr(),bt=this.z.redSqr(),wt=this.x.redMul(mt),xt=vt.x.redMul(bt),Et=this.y.redMul(mt.redMul(vt.z)),kt=vt.y.redMul(bt.redMul(this.z)),Dt=wt.redSub(xt),Tt=Et.redSub(kt);if(Dt.cmpn(0)===0)return Tt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var qt=Dt.redSqr(),jt=qt.redMul(Dt),Lt=wt.redMul(qt),Gt=Tt.redSqr().redIAdd(jt).redISub(Lt).redISub(Lt),Qt=Tt.redMul(Lt.redISub(Gt)).redISub(Et.redMul(jt)),tr=this.z.redMul(vt.z).redMul(Dt);return this.curve.jpoint(Gt,Qt,tr)},ht.prototype.mixedAdd=function(vt){if(this.isInfinity())return vt.toJ();if(vt.isInfinity())return this;var mt=this.z.redSqr(),bt=this.x,wt=vt.x.redMul(mt),xt=this.y,Et=vt.y.redMul(mt).redMul(this.z),kt=bt.redSub(wt),Dt=xt.redSub(Et);if(kt.cmpn(0)===0)return Dt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Tt=kt.redSqr(),qt=Tt.redMul(kt),jt=bt.redMul(Tt),Lt=Dt.redSqr().redIAdd(qt).redISub(jt).redISub(jt),Gt=Dt.redMul(jt.redISub(Lt)).redISub(xt.redMul(qt)),Qt=this.z.redMul(kt);return this.curve.jpoint(Lt,Gt,Qt)},ht.prototype.dblp=function(vt){if(vt===0)return this;if(this.isInfinity())return this;if(!vt)return this.dbl();var mt;if(this.curve.zeroA||this.curve.threeA){var bt=this;for(mt=0;mt=0)return!1;if(bt.redIAdd(xt),this.x.cmp(bt)===0)return!0}},ht.prototype.inspect=function(){return this.isInfinity()?"":""},ht.prototype.isInfinity=function(){return this.z.cmpn(0)===0},short}var mont,hasRequiredMont;function requireMont(){if(hasRequiredMont)return mont;hasRequiredMont=1;var d=requireBn$2(),b=requireInherits_browser(),tt=requireBase$1(),nt=requireUtils$1();function st(ft){tt.call(this,"mont",ft),this.a=new d(ft.a,16).toRed(this.red),this.b=new d(ft.b,16).toRed(this.red),this.i4=new d(4).toRed(this.red).redInvm(),this.two=new d(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}b(st,tt),mont=st,st.prototype.validate=function(ht){var gt=ht.normalize().x,vt=gt.redSqr(),mt=vt.redMul(gt).redAdd(vt.redMul(this.a)).redAdd(gt),bt=mt.redSqrt();return bt.redSqr().cmp(mt)===0};function ot(ft,ht,gt){tt.BasePoint.call(this,ft,"projective"),ht===null&>===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new d(ht,16),this.z=new d(gt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return b(ot,tt.BasePoint),st.prototype.decodePoint=function(ht,gt){return this.point(nt.toArray(ht,gt),1)},st.prototype.point=function(ht,gt){return new ot(this,ht,gt)},st.prototype.pointFromJSON=function(ht){return ot.fromJSON(this,ht)},ot.prototype.precompute=function(){},ot.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},ot.fromJSON=function(ht,gt){return new ot(ht,gt[0],gt[1]||ht.one)},ot.prototype.inspect=function(){return this.isInfinity()?"":""},ot.prototype.isInfinity=function(){return this.z.cmpn(0)===0},ot.prototype.dbl=function(){var ht=this.x.redAdd(this.z),gt=ht.redSqr(),vt=this.x.redSub(this.z),mt=vt.redSqr(),bt=gt.redSub(mt),wt=gt.redMul(mt),xt=bt.redMul(mt.redAdd(this.curve.a24.redMul(bt)));return this.curve.point(wt,xt)},ot.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},ot.prototype.diffAdd=function(ht,gt){var vt=this.x.redAdd(this.z),mt=this.x.redSub(this.z),bt=ht.x.redAdd(ht.z),wt=ht.x.redSub(ht.z),xt=wt.redMul(vt),Et=bt.redMul(mt),kt=gt.z.redMul(xt.redAdd(Et).redSqr()),Dt=gt.x.redMul(xt.redISub(Et).redSqr());return this.curve.point(kt,Dt)},ot.prototype.mul=function(ht){for(var gt=ht.clone(),vt=this,mt=this.curve.point(null,null),bt=this,wt=[];gt.cmpn(0)!==0;gt.iushrn(1))wt.push(gt.andln(1));for(var xt=wt.length-1;xt>=0;xt--)wt[xt]===0?(vt=vt.diffAdd(mt,bt),mt=mt.dbl()):(mt=vt.diffAdd(mt,bt),vt=vt.dbl());return mt},ot.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},ot.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},ot.prototype.eq=function(ht){return this.getX().cmp(ht.getX())===0},ot.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},ot.prototype.getX=function(){return this.normalize(),this.x.fromRed()},mont}var edwards,hasRequiredEdwards;function requireEdwards(){if(hasRequiredEdwards)return edwards;hasRequiredEdwards=1;var d=requireUtils$1(),b=requireBn$2(),tt=requireInherits_browser(),nt=requireBase$1(),st=d.assert;function ot(ht){this.twisted=(ht.a|0)!==1,this.mOneA=this.twisted&&(ht.a|0)===-1,this.extended=this.mOneA,nt.call(this,"edwards",ht),this.a=new b(ht.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new b(ht.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new b(ht.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),st(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(ht.c|0)===1}tt(ot,nt),edwards=ot,ot.prototype._mulA=function(gt){return this.mOneA?gt.redNeg():this.a.redMul(gt)},ot.prototype._mulC=function(gt){return this.oneC?gt:this.c.redMul(gt)},ot.prototype.jpoint=function(gt,vt,mt,bt){return this.point(gt,vt,mt,bt)},ot.prototype.pointFromX=function(gt,vt){gt=new b(gt,16),gt.red||(gt=gt.toRed(this.red));var mt=gt.redSqr(),bt=this.c2.redSub(this.a.redMul(mt)),wt=this.one.redSub(this.c2.redMul(this.d).redMul(mt)),xt=bt.redMul(wt.redInvm()),Et=xt.redSqrt();if(Et.redSqr().redSub(xt).cmp(this.zero)!==0)throw new Error("invalid point");var kt=Et.fromRed().isOdd();return(vt&&!kt||!vt&&kt)&&(Et=Et.redNeg()),this.point(gt,Et)},ot.prototype.pointFromY=function(gt,vt){gt=new b(gt,16),gt.red||(gt=gt.toRed(this.red));var mt=gt.redSqr(),bt=mt.redSub(this.c2),wt=mt.redMul(this.d).redMul(this.c2).redSub(this.a),xt=bt.redMul(wt.redInvm());if(xt.cmp(this.zero)===0){if(vt)throw new Error("invalid point");return this.point(this.zero,gt)}var Et=xt.redSqrt();if(Et.redSqr().redSub(xt).cmp(this.zero)!==0)throw new Error("invalid point");return Et.fromRed().isOdd()!==vt&&(Et=Et.redNeg()),this.point(Et,gt)},ot.prototype.validate=function(gt){if(gt.isInfinity())return!0;gt.normalize();var vt=gt.x.redSqr(),mt=gt.y.redSqr(),bt=vt.redMul(this.a).redAdd(mt),wt=this.c2.redMul(this.one.redAdd(this.d.redMul(vt).redMul(mt)));return bt.cmp(wt)===0};function ft(ht,gt,vt,mt,bt){nt.BasePoint.call(this,ht,"projective"),gt===null&&vt===null&&mt===null?(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 b(gt,16),this.y=new b(vt,16),this.z=mt?new b(mt,16):this.curve.one,this.t=bt&&new b(bt,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()))))}return tt(ft,nt.BasePoint),ot.prototype.pointFromJSON=function(gt){return ft.fromJSON(this,gt)},ot.prototype.point=function(gt,vt,mt,bt){return new ft(this,gt,vt,mt,bt)},ft.fromJSON=function(gt,vt){return new ft(gt,vt[0],vt[1],vt[2])},ft.prototype.inspect=function(){return this.isInfinity()?"":""},ft.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},ft.prototype._extDbl=function(){var gt=this.x.redSqr(),vt=this.y.redSqr(),mt=this.z.redSqr();mt=mt.redIAdd(mt);var bt=this.curve._mulA(gt),wt=this.x.redAdd(this.y).redSqr().redISub(gt).redISub(vt),xt=bt.redAdd(vt),Et=xt.redSub(mt),kt=bt.redSub(vt),Dt=wt.redMul(Et),Tt=xt.redMul(kt),qt=wt.redMul(kt),jt=Et.redMul(xt);return this.curve.point(Dt,Tt,jt,qt)},ft.prototype._projDbl=function(){var gt=this.x.redAdd(this.y).redSqr(),vt=this.x.redSqr(),mt=this.y.redSqr(),bt,wt,xt,Et,kt,Dt;if(this.curve.twisted){Et=this.curve._mulA(vt);var Tt=Et.redAdd(mt);this.zOne?(bt=gt.redSub(vt).redSub(mt).redMul(Tt.redSub(this.curve.two)),wt=Tt.redMul(Et.redSub(mt)),xt=Tt.redSqr().redSub(Tt).redSub(Tt)):(kt=this.z.redSqr(),Dt=Tt.redSub(kt).redISub(kt),bt=gt.redSub(vt).redISub(mt).redMul(Dt),wt=Tt.redMul(Et.redSub(mt)),xt=Tt.redMul(Dt))}else Et=vt.redAdd(mt),kt=this.curve._mulC(this.z).redSqr(),Dt=Et.redSub(kt).redSub(kt),bt=this.curve._mulC(gt.redISub(Et)).redMul(Dt),wt=this.curve._mulC(Et).redMul(vt.redISub(mt)),xt=Et.redMul(Dt);return this.curve.point(bt,wt,xt)},ft.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},ft.prototype._extAdd=function(gt){var vt=this.y.redSub(this.x).redMul(gt.y.redSub(gt.x)),mt=this.y.redAdd(this.x).redMul(gt.y.redAdd(gt.x)),bt=this.t.redMul(this.curve.dd).redMul(gt.t),wt=this.z.redMul(gt.z.redAdd(gt.z)),xt=mt.redSub(vt),Et=wt.redSub(bt),kt=wt.redAdd(bt),Dt=mt.redAdd(vt),Tt=xt.redMul(Et),qt=kt.redMul(Dt),jt=xt.redMul(Dt),Lt=Et.redMul(kt);return this.curve.point(Tt,qt,Lt,jt)},ft.prototype._projAdd=function(gt){var vt=this.z.redMul(gt.z),mt=vt.redSqr(),bt=this.x.redMul(gt.x),wt=this.y.redMul(gt.y),xt=this.curve.d.redMul(bt).redMul(wt),Et=mt.redSub(xt),kt=mt.redAdd(xt),Dt=this.x.redAdd(this.y).redMul(gt.x.redAdd(gt.y)).redISub(bt).redISub(wt),Tt=vt.redMul(Et).redMul(Dt),qt,jt;return this.curve.twisted?(qt=vt.redMul(kt).redMul(wt.redSub(this.curve._mulA(bt))),jt=Et.redMul(kt)):(qt=vt.redMul(kt).redMul(wt.redSub(bt)),jt=this.curve._mulC(Et).redMul(kt)),this.curve.point(Tt,qt,jt)},ft.prototype.add=function(gt){return this.isInfinity()?gt:gt.isInfinity()?this:this.curve.extended?this._extAdd(gt):this._projAdd(gt)},ft.prototype.mul=function(gt){return this._hasDoubles(gt)?this.curve._fixedNafMul(this,gt):this.curve._wnafMul(this,gt)},ft.prototype.mulAdd=function(gt,vt,mt){return this.curve._wnafMulAdd(1,[this,vt],[gt,mt],2,!1)},ft.prototype.jmulAdd=function(gt,vt,mt){return this.curve._wnafMulAdd(1,[this,vt],[gt,mt],2,!0)},ft.prototype.normalize=function(){if(this.zOne)return this;var gt=this.z.redInvm();return this.x=this.x.redMul(gt),this.y=this.y.redMul(gt),this.t&&(this.t=this.t.redMul(gt)),this.z=this.curve.one,this.zOne=!0,this},ft.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},ft.prototype.getX=function(){return this.normalize(),this.x.fromRed()},ft.prototype.getY=function(){return this.normalize(),this.y.fromRed()},ft.prototype.eq=function(gt){return this===gt||this.getX().cmp(gt.getX())===0&&this.getY().cmp(gt.getY())===0},ft.prototype.eqXToP=function(gt){var vt=gt.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(vt)===0)return!0;for(var mt=gt.clone(),bt=this.curve.redN.redMul(this.z);;){if(mt.iadd(this.curve.n),mt.cmp(this.curve.p)>=0)return!1;if(vt.redIAdd(bt),this.x.cmp(vt)===0)return!0}},ft.prototype.toP=ft.prototype.normalize,ft.prototype.mixedAdd=ft.prototype.add,edwards}var hasRequiredCurve;function requireCurve(){return hasRequiredCurve||(hasRequiredCurve=1,function(d){var b=d;b.base=requireBase$1(),b.short=requireShort(),b.mont=requireMont(),b.edwards=requireEdwards()}(curve)),curve}var curves={},hash$1={},utils$9={},hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils$9;hasRequiredUtils=1;var d=requireMinimalisticAssert(),b=requireInherits_browser();utils$9.inherits=b;function tt(Rt,Ct){return(Rt.charCodeAt(Ct)&64512)!==55296||Ct<0||Ct+1>=Rt.length?!1:(Rt.charCodeAt(Ct+1)&64512)===56320}function nt(Rt,Ct){if(Array.isArray(Rt))return Rt.slice();if(!Rt)return[];var yt=[];if(typeof Rt=="string")if(Ct){if(Ct==="hex")for(Rt=Rt.replace(/[^a-z0-9]+/ig,""),Rt.length%2!==0&&(Rt="0"+Rt),$t=0;$t>6|192,yt[_t++]=At&63|128):tt(Rt,$t)?(At=65536+((At&1023)<<10)+(Rt.charCodeAt(++$t)&1023),yt[_t++]=At>>18|240,yt[_t++]=At>>12&63|128,yt[_t++]=At>>6&63|128,yt[_t++]=At&63|128):(yt[_t++]=At>>12|224,yt[_t++]=At>>6&63|128,yt[_t++]=At&63|128)}else for($t=0;$t>>24|Rt>>>8&65280|Rt<<8&16711680|(Rt&255)<<24;return Ct>>>0}utils$9.htonl=ot;function ft(Rt,Ct){for(var yt="",_t=0;_t>>0}return At}utils$9.join32=vt;function mt(Rt,Ct){for(var yt=new Array(Rt.length*4),_t=0,$t=0;_t>>24,yt[$t+1]=At>>>16&255,yt[$t+2]=At>>>8&255,yt[$t+3]=At&255):(yt[$t+3]=At>>>24,yt[$t+2]=At>>>16&255,yt[$t+1]=At>>>8&255,yt[$t]=At&255)}return yt}utils$9.split32=mt;function bt(Rt,Ct){return Rt>>>Ct|Rt<<32-Ct}utils$9.rotr32=bt;function wt(Rt,Ct){return Rt<>>32-Ct}utils$9.rotl32=wt;function xt(Rt,Ct){return Rt+Ct>>>0}utils$9.sum32=xt;function Et(Rt,Ct,yt){return Rt+Ct+yt>>>0}utils$9.sum32_3=Et;function kt(Rt,Ct,yt,_t){return Rt+Ct+yt+_t>>>0}utils$9.sum32_4=kt;function Dt(Rt,Ct,yt,_t,$t){return Rt+Ct+yt+_t+$t>>>0}utils$9.sum32_5=Dt;function Tt(Rt,Ct,yt,_t){var $t=Rt[Ct],At=Rt[Ct+1],It=_t+At>>>0,Bt=(It<_t?1:0)+yt+$t;Rt[Ct]=Bt>>>0,Rt[Ct+1]=It}utils$9.sum64=Tt;function qt(Rt,Ct,yt,_t){var $t=Ct+_t>>>0,At=($t>>0}utils$9.sum64_hi=qt;function jt(Rt,Ct,yt,_t){var $t=Ct+_t;return $t>>>0}utils$9.sum64_lo=jt;function Lt(Rt,Ct,yt,_t,$t,At,It,Bt){var Pt=0,Ot=Ct;Ot=Ot+_t>>>0,Pt+=Ot>>0,Pt+=Ot>>0,Pt+=Ot>>0}utils$9.sum64_4_hi=Lt;function Gt(Rt,Ct,yt,_t,$t,At,It,Bt){var Pt=Ct+_t+At+Bt;return Pt>>>0}utils$9.sum64_4_lo=Gt;function Qt(Rt,Ct,yt,_t,$t,At,It,Bt,Pt,Ot){var Mt=0,zt=Ct;zt=zt+_t>>>0,Mt+=zt>>0,Mt+=zt>>0,Mt+=zt>>0,Mt+=zt>>0}utils$9.sum64_5_hi=Qt;function tr(Rt,Ct,yt,_t,$t,At,It,Bt,Pt,Ot){var Mt=Ct+_t+At+Bt+Ot;return Mt>>>0}utils$9.sum64_5_lo=tr;function sr(Rt,Ct,yt){var _t=Ct<<32-yt|Rt>>>yt;return _t>>>0}utils$9.rotr64_hi=sr;function ar(Rt,Ct,yt){var _t=Rt<<32-yt|Ct>>>yt;return _t>>>0}utils$9.rotr64_lo=ar;function _r(Rt,Ct,yt){return Rt>>>yt}utils$9.shr64_hi=_r;function Jt(Rt,Ct,yt){var _t=Rt<<32-yt|Ct>>>yt;return _t>>>0}return utils$9.shr64_lo=Jt,utils$9}var common$3={},hasRequiredCommon$1;function requireCommon$1(){if(hasRequiredCommon$1)return common$3;hasRequiredCommon$1=1;var d=requireUtils(),b=requireMinimalisticAssert();function tt(){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}return common$3.BlockHash=tt,tt.prototype.update=function(st,ot){if(st=d.toArray(st,ot),this.pending?this.pending=this.pending.concat(st):this.pending=st,this.pendingTotal+=st.length,this.pending.length>=this._delta8){st=this.pending;var ft=st.length%this._delta8;this.pending=st.slice(st.length-ft,st.length),this.pending.length===0&&(this.pending=null),st=d.join32(st,0,st.length-ft,this.endian);for(var ht=0;ht>>24&255,ht[gt++]=st>>>16&255,ht[gt++]=st>>>8&255,ht[gt++]=st&255}else for(ht[gt++]=st&255,ht[gt++]=st>>>8&255,ht[gt++]=st>>>16&255,ht[gt++]=st>>>24&255,ht[gt++]=0,ht[gt++]=0,ht[gt++]=0,ht[gt++]=0,vt=8;vt>>3}common$2.g0_256=gt;function vt(mt){return b(mt,17)^b(mt,19)^mt>>>10}return common$2.g1_256=vt,common$2}var _1,hasRequired_1;function require_1(){if(hasRequired_1)return _1;hasRequired_1=1;var d=requireUtils(),b=requireCommon$1(),tt=requireCommon(),nt=d.rotl32,st=d.sum32,ot=d.sum32_5,ft=tt.ft_1,ht=b.BlockHash,gt=[1518500249,1859775393,2400959708,3395469782];function vt(){if(!(this instanceof vt))return new vt;ht.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return d.inherits(vt,ht),_1=vt,vt.blockSize=512,vt.outSize=160,vt.hmacStrength=80,vt.padLength=64,vt.prototype._update=function(bt,wt){for(var xt=this.W,Et=0;Et<16;Et++)xt[Et]=bt[wt+Et];for(;Etthis.blockSize&&(st=new this.Hash().update(st).digest()),b(st.length<=this.blockSize);for(var ot=st.length;ot=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(ot,ft,ht)}return hmacDrbg=nt,nt.prototype._init=function(ot,ft,ht){var gt=ot.concat(ft).concat(ht);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var vt=0;vt=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(ot.concat(ht||[])),this._reseed=1},nt.prototype.generate=function(ot,ft,ht,gt){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof ft!="string"&&(gt=ht,ht=ft,ft=null),ht&&(ht=b.toArray(ht,gt||"hex"),this._update(ht));for(var vt=[];vt.length"},key$1}var signature$1,hasRequiredSignature$1;function requireSignature$1(){if(hasRequiredSignature$1)return signature$1;hasRequiredSignature$1=1;var d=requireBn$2(),b=requireUtils$1(),tt=b.assert;function nt(gt,vt){if(gt instanceof nt)return gt;this._importDER(gt,vt)||(tt(gt.r&>.s,"Signature without r or s"),this.r=new d(gt.r,16),this.s=new d(gt.s,16),gt.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=gt.recoveryParam)}signature$1=nt;function st(){this.place=0}function ot(gt,vt){var mt=gt[vt.place++];if(!(mt&128))return mt;var bt=mt&15;if(bt===0||bt>4||gt[vt.place]===0)return!1;for(var wt=0,xt=0,Et=vt.place;xt>>=0;return wt<=127?!1:(vt.place=Et,wt)}function ft(gt){for(var vt=0,mt=gt.length-1;!gt[vt]&&!(gt[vt+1]&128)&&vt>>3);for(gt.push(mt|128);--mt;)gt.push(vt>>>(mt<<3)&255);gt.push(vt)}return nt.prototype.toDER=function(vt){var mt=this.r.toArray(),bt=this.s.toArray();for(mt[0]&128&&(mt=[0].concat(mt)),bt[0]&128&&(bt=[0].concat(bt)),mt=ft(mt),bt=ft(bt);!bt[0]&&!(bt[1]&128);)bt=bt.slice(1);var wt=[2];ht(wt,mt.length),wt=wt.concat(mt),wt.push(2),ht(wt,bt.length);var xt=wt.concat(bt),Et=[48];return ht(Et,xt.length),Et=Et.concat(xt),b.encode(Et,vt)},signature$1}var ec$1,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec$1;hasRequiredEc=1;var d=requireBn$2(),b=requireHmacDrbg(),tt=requireUtils$1(),nt=requireCurves(),st=requireBrorand(),ot=tt.assert,ft=requireKey$1(),ht=requireSignature$1();function gt(vt){if(!(this instanceof gt))return new gt(vt);typeof vt=="string"&&(ot(Object.prototype.hasOwnProperty.call(nt,vt),"Unknown curve "+vt),vt=nt[vt]),vt instanceof nt.PresetCurve&&(vt={curve:vt}),this.curve=vt.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=vt.curve.g,this.g.precompute(vt.curve.n.bitLength()+1),this.hash=vt.hash||vt.curve.hash}return ec$1=gt,gt.prototype.keyPair=function(mt){return new ft(this,mt)},gt.prototype.keyFromPrivate=function(mt,bt){return ft.fromPrivate(this,mt,bt)},gt.prototype.keyFromPublic=function(mt,bt){return ft.fromPublic(this,mt,bt)},gt.prototype.genKeyPair=function(mt){mt||(mt={});for(var bt=new b({hash:this.hash,pers:mt.pers,persEnc:mt.persEnc||"utf8",entropy:mt.entropy||st(this.hash.hmacStrength),entropyEnc:mt.entropy&&mt.entropyEnc||"utf8",nonce:this.n.toArray()}),wt=this.n.byteLength(),xt=this.n.sub(new d(2));;){var Et=new d(bt.generate(wt));if(!(Et.cmp(xt)>0))return Et.iaddn(1),this.keyFromPrivate(Et)}},gt.prototype._truncateToN=function(mt,bt,wt){var xt;if(d.isBN(mt)||typeof mt=="number")mt=new d(mt,16),xt=mt.byteLength();else if(typeof mt=="object")xt=mt.length,mt=new d(mt,16);else{var Et=mt.toString();xt=Et.length+1>>>1,mt=new d(Et,16)}typeof wt!="number"&&(wt=xt*8);var kt=wt-this.n.bitLength();return kt>0&&(mt=mt.ushrn(kt)),!bt&&mt.cmp(this.n)>=0?mt.sub(this.n):mt},gt.prototype.sign=function(mt,bt,wt,xt){if(typeof wt=="object"&&(xt=wt,wt=null),xt||(xt={}),typeof mt!="string"&&typeof mt!="number"&&!d.isBN(mt)){ot(typeof mt=="object"&&mt&&typeof mt.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),ot(mt.length>>>0===mt.length);for(var Et=0;Et=0)){var Qt=this.g.mul(Gt);if(!Qt.isInfinity()){var tr=Qt.getX(),sr=tr.umod(this.n);if(sr.cmpn(0)!==0){var ar=Gt.invm(this.n).mul(sr.mul(bt.getPrivate()).iadd(mt));if(ar=ar.umod(this.n),ar.cmpn(0)!==0){var _r=(Qt.getY().isOdd()?1:0)|(tr.cmp(sr)!==0?2:0);return xt.canonical&&ar.cmp(this.nh)>0&&(ar=this.n.sub(ar),_r^=1),new ht({r:sr,s:ar,recoveryParam:_r})}}}}}},gt.prototype.verify=function(mt,bt,wt,xt,Et){Et||(Et={}),mt=this._truncateToN(mt,!1,Et.msgBitLength),wt=this.keyFromPublic(wt,xt),bt=new ht(bt,"hex");var kt=bt.r,Dt=bt.s;if(kt.cmpn(1)<0||kt.cmp(this.n)>=0||Dt.cmpn(1)<0||Dt.cmp(this.n)>=0)return!1;var Tt=Dt.invm(this.n),qt=Tt.mul(mt).umod(this.n),jt=Tt.mul(kt).umod(this.n),Lt;return this.curve._maxwellTrick?(Lt=this.g.jmulAdd(qt,wt.getPublic(),jt),Lt.isInfinity()?!1:Lt.eqXToP(kt)):(Lt=this.g.mulAdd(qt,wt.getPublic(),jt),Lt.isInfinity()?!1:Lt.getX().umod(this.n).cmp(kt)===0)},gt.prototype.recoverPubKey=function(vt,mt,bt,wt){ot((3&bt)===bt,"The recovery param is more than two bits"),mt=new ht(mt,wt);var xt=this.n,Et=new d(vt),kt=mt.r,Dt=mt.s,Tt=bt&1,qt=bt>>1;if(kt.cmp(this.curve.p.umod(this.curve.n))>=0&&qt)throw new Error("Unable to find sencond key candinate");qt?kt=this.curve.pointFromX(kt.add(this.curve.n),Tt):kt=this.curve.pointFromX(kt,Tt);var jt=mt.r.invm(xt),Lt=xt.sub(Et).mul(jt).umod(xt),Gt=Dt.mul(jt).umod(xt);return this.g.mulAdd(Lt,kt,Gt)},gt.prototype.getKeyRecoveryParam=function(vt,mt,bt,wt){if(mt=new ht(mt,wt),mt.recoveryParam!==null)return mt.recoveryParam;for(var xt=0;xt<4;xt++){var Et;try{Et=this.recoverPubKey(vt,mt,xt)}catch{continue}if(Et.eq(bt))return xt}throw new Error("Unable to find valid recovery factor")},ec$1}var key,hasRequiredKey;function requireKey(){if(hasRequiredKey)return key;hasRequiredKey=1;var d=requireUtils$1(),b=d.assert,tt=d.parseBytes,nt=d.cachedProperty;function st(ot,ft){this.eddsa=ot,this._secret=tt(ft.secret),ot.isPoint(ft.pub)?this._pub=ft.pub:this._pubBytes=tt(ft.pub)}return st.fromPublic=function(ft,ht){return ht instanceof st?ht:new st(ft,{pub:ht})},st.fromSecret=function(ft,ht){return ht instanceof st?ht:new st(ft,{secret:ht})},st.prototype.secret=function(){return this._secret},nt(st,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),nt(st,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),nt(st,"privBytes",function(){var ft=this.eddsa,ht=this.hash(),gt=ft.encodingLength-1,vt=ht.slice(0,ft.encodingLength);return vt[0]&=248,vt[gt]&=127,vt[gt]|=64,vt}),nt(st,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),nt(st,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),nt(st,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),st.prototype.sign=function(ft){return b(this._secret,"KeyPair can only verify"),this.eddsa.sign(ft,this)},st.prototype.verify=function(ft,ht){return this.eddsa.verify(ft,ht,this)},st.prototype.getSecret=function(ft){return b(this._secret,"KeyPair is public only"),d.encode(this.secret(),ft)},st.prototype.getPublic=function(ft){return d.encode(this.pubBytes(),ft)},key=st,key}var signature,hasRequiredSignature;function requireSignature(){if(hasRequiredSignature)return signature;hasRequiredSignature=1;var d=requireBn$2(),b=requireUtils$1(),tt=b.assert,nt=b.cachedProperty,st=b.parseBytes;function ot(ft,ht){this.eddsa=ft,typeof ht!="object"&&(ht=st(ht)),Array.isArray(ht)&&(tt(ht.length===ft.encodingLength*2,"Signature has invalid size"),ht={R:ht.slice(0,ft.encodingLength),S:ht.slice(ft.encodingLength)}),tt(ht.R&&ht.S,"Signature without R or S"),ft.isPoint(ht.R)&&(this._R=ht.R),ht.S instanceof d&&(this._S=ht.S),this._Rencoded=Array.isArray(ht.R)?ht.R:ht.Rencoded,this._Sencoded=Array.isArray(ht.S)?ht.S:ht.Sencoded}return nt(ot,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),nt(ot,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),nt(ot,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),nt(ot,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),ot.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},ot.prototype.toHex=function(){return b.encode(this.toBytes(),"hex").toUpperCase()},signature=ot,signature}var eddsa,hasRequiredEddsa;function requireEddsa(){if(hasRequiredEddsa)return eddsa;hasRequiredEddsa=1;var d=requireHash(),b=requireCurves(),tt=requireUtils$1(),nt=tt.assert,st=tt.parseBytes,ot=requireKey(),ft=requireSignature();function ht(gt){if(nt(gt==="ed25519","only tested with ed25519 so far"),!(this instanceof ht))return new ht(gt);gt=b[gt].curve,this.curve=gt,this.g=gt.g,this.g.precompute(gt.n.bitLength()+1),this.pointClass=gt.point().constructor,this.encodingLength=Math.ceil(gt.n.bitLength()/8),this.hash=d.sha512}return eddsa=ht,ht.prototype.sign=function(vt,mt){vt=st(vt);var bt=this.keyFromSecret(mt),wt=this.hashInt(bt.messagePrefix(),vt),xt=this.g.mul(wt),Et=this.encodePoint(xt),kt=this.hashInt(Et,bt.pubBytes(),vt).mul(bt.priv()),Dt=wt.add(kt).umod(this.curve.n);return this.makeSignature({R:xt,S:Dt,Rencoded:Et})},ht.prototype.verify=function(vt,mt,bt){if(vt=st(vt),mt=this.makeSignature(mt),mt.S().gte(mt.eddsa.curve.n)||mt.S().isNeg())return!1;var wt=this.keyFromPublic(bt),xt=this.hashInt(mt.Rencoded(),wt.pubBytes(),vt),Et=this.g.mul(mt.S()),kt=mt.R().add(wt.pub().mul(xt));return kt.eq(Et)},ht.prototype.hashInt=function(){for(var vt=this.hash(),mt=0;mt0?yt:_t},ot.min=function(yt,_t){return yt.cmp(_t)<0?yt:_t},ot.prototype._init=function(yt,_t,$t){if(typeof yt=="number")return this._initNumber(yt,_t,$t);if(typeof yt=="object")return this._initArray(yt,_t,$t);_t==="hex"&&(_t=16),nt(_t===(_t|0)&&_t>=2&&_t<=36),yt=yt.toString().replace(/\s+/g,"");var At=0;yt[0]==="-"&&(At++,this.negative=1),At=0;At-=3)Bt=yt[At]|yt[At-1]<<8|yt[At-2]<<16,this.words[It]|=Bt<>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,It++);else if($t==="le")for(At=0,It=0;At>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,It++);return this._strip()};function ht(Ct,yt){var _t=Ct.charCodeAt(yt);if(_t>=48&&_t<=57)return _t-48;if(_t>=65&&_t<=70)return _t-55;if(_t>=97&&_t<=102)return _t-87;nt(!1,"Invalid character in "+Ct)}function gt(Ct,yt,_t){var $t=ht(Ct,_t);return _t-1>=yt&&($t|=ht(Ct,_t-1)<<4),$t}ot.prototype._parseHex=function(yt,_t,$t){this.length=Math.ceil((yt.length-_t)/6),this.words=new Array(this.length);for(var At=0;At=_t;At-=2)Pt=gt(yt,_t,At)<=18?(It-=18,Bt+=1,this.words[Bt]|=Pt>>>26):It+=8;else{var Ot=yt.length-_t;for(At=Ot%2===0?_t+1:_t;At=18?(It-=18,Bt+=1,this.words[Bt]|=Pt>>>26):It+=8}this._strip()};function vt(Ct,yt,_t,$t){for(var At=0,It=0,Bt=Math.min(Ct.length,_t),Pt=yt;Pt=49?It=Ot-49+10:Ot>=17?It=Ot-17+10:It=Ot,nt(Ot>=0&&It<$t,"Invalid character"),At+=It}return At}ot.prototype._parseBase=function(yt,_t,$t){this.words=[0],this.length=1;for(var At=0,It=1;It<=67108863;It*=_t)At++;At--,It=It/_t|0;for(var Bt=yt.length-$t,Pt=Bt%At,Ot=Math.min(Bt,Bt-Pt)+$t,Mt=0,zt=$t;zt1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},ot.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{ot.prototype[Symbol.for("nodejs.util.inspect.custom")]=bt}catch{ot.prototype.inspect=bt}else ot.prototype.inspect=bt;function bt(){return(this.red?""}var wt=["","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"],xt=[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],Et=[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];ot.prototype.toString=function(yt,_t){yt=yt||10,_t=_t|0||1;var $t;if(yt===16||yt==="hex"){$t="";for(var At=0,It=0,Bt=0;Bt>>24-At&16777215,At+=2,At>=26&&(At-=26,Bt--),It!==0||Bt!==this.length-1?$t=wt[6-Ot.length]+Ot+$t:$t=Ot+$t}for(It!==0&&($t=It.toString(16)+$t);$t.length%_t!==0;)$t="0"+$t;return this.negative!==0&&($t="-"+$t),$t}if(yt===(yt|0)&&yt>=2&&yt<=36){var Mt=xt[yt],zt=Et[yt];$t="";var yr=this.clone();for(yr.negative=0;!yr.isZero();){var vr=yr.modrn(zt).toString(yt);yr=yr.idivn(zt),yr.isZero()?$t=vr+$t:$t=wt[Mt-vr.length]+vr+$t}for(this.isZero()&&($t="0"+$t);$t.length%_t!==0;)$t="0"+$t;return this.negative!==0&&($t="-"+$t),$t}nt(!1,"Base should be between 2 and 36")},ot.prototype.toNumber=function(){var yt=this.words[0];return this.length===2?yt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?yt+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-yt:yt},ot.prototype.toJSON=function(){return this.toString(16,2)},ft&&(ot.prototype.toBuffer=function(yt,_t){return this.toArrayLike(ft,yt,_t)}),ot.prototype.toArray=function(yt,_t){return this.toArrayLike(Array,yt,_t)};var kt=function(yt,_t){return yt.allocUnsafe?yt.allocUnsafe(_t):new yt(_t)};ot.prototype.toArrayLike=function(yt,_t,$t){this._strip();var At=this.byteLength(),It=$t||Math.max(1,At);nt(At<=It,"byte array longer than desired length"),nt(It>0,"Requested array length <= 0");var Bt=kt(yt,It),Pt=_t==="le"?"LE":"BE";return this["_toArrayLike"+Pt](Bt,At),Bt},ot.prototype._toArrayLikeLE=function(yt,_t){for(var $t=0,At=0,It=0,Bt=0;It>8&255),$t>16&255),Bt===6?($t>24&255),At=0,Bt=0):(At=Pt>>>24,Bt+=2)}if($t=0&&(yt[$t--]=Pt>>8&255),$t>=0&&(yt[$t--]=Pt>>16&255),Bt===6?($t>=0&&(yt[$t--]=Pt>>24&255),At=0,Bt=0):(At=Pt>>>24,Bt+=2)}if($t>=0)for(yt[$t--]=At;$t>=0;)yt[$t--]=0},Math.clz32?ot.prototype._countBits=function(yt){return 32-Math.clz32(yt)}:ot.prototype._countBits=function(yt){var _t=yt,$t=0;return _t>=4096&&($t+=13,_t>>>=13),_t>=64&&($t+=7,_t>>>=7),_t>=8&&($t+=4,_t>>>=4),_t>=2&&($t+=2,_t>>>=2),$t+_t},ot.prototype._zeroBits=function(yt){if(yt===0)return 26;var _t=yt,$t=0;return _t&8191||($t+=13,_t>>>=13),_t&127||($t+=7,_t>>>=7),_t&15||($t+=4,_t>>>=4),_t&3||($t+=2,_t>>>=2),_t&1||$t++,$t},ot.prototype.bitLength=function(){var yt=this.words[this.length-1],_t=this._countBits(yt);return(this.length-1)*26+_t};function Dt(Ct){for(var yt=new Array(Ct.bitLength()),_t=0;_t>>At&1}return yt}ot.prototype.zeroBits=function(){if(this.isZero())return 0;for(var yt=0,_t=0;_tyt.length?this.clone().ior(yt):yt.clone().ior(this)},ot.prototype.uor=function(yt){return this.length>yt.length?this.clone().iuor(yt):yt.clone().iuor(this)},ot.prototype.iuand=function(yt){var _t;this.length>yt.length?_t=yt:_t=this;for(var $t=0;$t<_t.length;$t++)this.words[$t]=this.words[$t]&yt.words[$t];return this.length=_t.length,this._strip()},ot.prototype.iand=function(yt){return nt((this.negative|yt.negative)===0),this.iuand(yt)},ot.prototype.and=function(yt){return this.length>yt.length?this.clone().iand(yt):yt.clone().iand(this)},ot.prototype.uand=function(yt){return this.length>yt.length?this.clone().iuand(yt):yt.clone().iuand(this)},ot.prototype.iuxor=function(yt){var _t,$t;this.length>yt.length?(_t=this,$t=yt):(_t=yt,$t=this);for(var At=0;At<$t.length;At++)this.words[At]=_t.words[At]^$t.words[At];if(this!==_t)for(;At<_t.length;At++)this.words[At]=_t.words[At];return this.length=_t.length,this._strip()},ot.prototype.ixor=function(yt){return nt((this.negative|yt.negative)===0),this.iuxor(yt)},ot.prototype.xor=function(yt){return this.length>yt.length?this.clone().ixor(yt):yt.clone().ixor(this)},ot.prototype.uxor=function(yt){return this.length>yt.length?this.clone().iuxor(yt):yt.clone().iuxor(this)},ot.prototype.inotn=function(yt){nt(typeof yt=="number"&&yt>=0);var _t=Math.ceil(yt/26)|0,$t=yt%26;this._expand(_t),$t>0&&_t--;for(var At=0;At<_t;At++)this.words[At]=~this.words[At]&67108863;return $t>0&&(this.words[At]=~this.words[At]&67108863>>26-$t),this._strip()},ot.prototype.notn=function(yt){return this.clone().inotn(yt)},ot.prototype.setn=function(yt,_t){nt(typeof yt=="number"&&yt>=0);var $t=yt/26|0,At=yt%26;return this._expand($t+1),_t?this.words[$t]=this.words[$t]|1<yt.length?($t=this,At=yt):($t=yt,At=this);for(var It=0,Bt=0;Bt>>26;for(;It!==0&&Bt<$t.length;Bt++)_t=($t.words[Bt]|0)+It,this.words[Bt]=_t&67108863,It=_t>>>26;if(this.length=$t.length,It!==0)this.words[this.length]=It,this.length++;else if($t!==this)for(;Bt<$t.length;Bt++)this.words[Bt]=$t.words[Bt];return this},ot.prototype.add=function(yt){var _t;return yt.negative!==0&&this.negative===0?(yt.negative=0,_t=this.sub(yt),yt.negative^=1,_t):yt.negative===0&&this.negative!==0?(this.negative=0,_t=yt.sub(this),this.negative=1,_t):this.length>yt.length?this.clone().iadd(yt):yt.clone().iadd(this)},ot.prototype.isub=function(yt){if(yt.negative!==0){yt.negative=0;var _t=this.iadd(yt);return yt.negative=1,_t._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(yt),this.negative=1,this._normSign();var $t=this.cmp(yt);if($t===0)return this.negative=0,this.length=1,this.words[0]=0,this;var At,It;$t>0?(At=this,It=yt):(At=yt,It=this);for(var Bt=0,Pt=0;Pt>26,this.words[Pt]=_t&67108863;for(;Bt!==0&&Pt>26,this.words[Pt]=_t&67108863;if(Bt===0&&Pt>>26,yr=Ot&67108863,vr=Math.min(Mt,yt.length-1),hr=Math.max(0,Mt-Ct.length+1);hr<=vr;hr++){var rr=Mt-hr|0;At=Ct.words[rr]|0,It=yt.words[hr]|0,Bt=At*It+yr,zt+=Bt/67108864|0,yr=Bt&67108863}_t.words[Mt]=yr|0,Ot=zt|0}return Ot!==0?_t.words[Mt]=Ot|0:_t.length--,_t._strip()}var qt=function(yt,_t,$t){var At=yt.words,It=_t.words,Bt=$t.words,Pt=0,Ot,Mt,zt,yr=At[0]|0,vr=yr&8191,hr=yr>>>13,rr=At[1]|0,er=rr&8191,fr=rr>>>13,wr=At[2]|0,nr=wr&8191,ir=wr>>>13,Br=At[3]|0,Ir=Br&8191,Dr=Br>>>13,Jr=At[4]|0,Yr=Jr&8191,Wr=Jr>>>13,Or=At[5]|0,hn=Or&8191,nn=Or>>>13,kn=At[6]|0,yn=kn&8191,rn=kn>>>13,Ar=At[7]|0,dr=Ar&8191,xr=Ar>>>13,Mr=At[8]|0,Tr=Mr&8191,Yt=Mr>>>13,Wt=At[9]|0,Vt=Wt&8191,or=Wt>>>13,Cr=It[0]|0,Rr=Cr&8191,$r=Cr>>>13,Hr=It[1]|0,Nr=Hr&8191,Ur=Hr>>>13,_n=It[2]|0,tn=_n&8191,gn=_n>>>13,qn=It[3]|0,En=qn&8191,vn=qn>>>13,On=It[4]|0,In=On&8191,Mn=On>>>13,Fn=It[5]|0,Un=Fn&8191,wn=Fn>>>13,Kn=It[6]|0,Ut=Kn&8191,Ft=Kn>>>13,Ht=It[7]|0,St=Ht&8191,Kt=Ht>>>13,gr=It[8]|0,br=gr&8191,kr=gr>>>13,Pr=It[9]|0,jr=Pr&8191,qr=Pr>>>13;$t.negative=yt.negative^_t.negative,$t.length=19,Ot=Math.imul(vr,Rr),Mt=Math.imul(vr,$r),Mt=Mt+Math.imul(hr,Rr)|0,zt=Math.imul(hr,$r);var Sn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Sn>>>26)|0,Sn&=67108863,Ot=Math.imul(er,Rr),Mt=Math.imul(er,$r),Mt=Mt+Math.imul(fr,Rr)|0,zt=Math.imul(fr,$r),Ot=Ot+Math.imul(vr,Nr)|0,Mt=Mt+Math.imul(vr,Ur)|0,Mt=Mt+Math.imul(hr,Nr)|0,zt=zt+Math.imul(hr,Ur)|0;var Vr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,Ot=Math.imul(nr,Rr),Mt=Math.imul(nr,$r),Mt=Mt+Math.imul(ir,Rr)|0,zt=Math.imul(ir,$r),Ot=Ot+Math.imul(er,Nr)|0,Mt=Mt+Math.imul(er,Ur)|0,Mt=Mt+Math.imul(fr,Nr)|0,zt=zt+Math.imul(fr,Ur)|0,Ot=Ot+Math.imul(vr,tn)|0,Mt=Mt+Math.imul(vr,gn)|0,Mt=Mt+Math.imul(hr,tn)|0,zt=zt+Math.imul(hr,gn)|0;var an=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(an>>>26)|0,an&=67108863,Ot=Math.imul(Ir,Rr),Mt=Math.imul(Ir,$r),Mt=Mt+Math.imul(Dr,Rr)|0,zt=Math.imul(Dr,$r),Ot=Ot+Math.imul(nr,Nr)|0,Mt=Mt+Math.imul(nr,Ur)|0,Mt=Mt+Math.imul(ir,Nr)|0,zt=zt+Math.imul(ir,Ur)|0,Ot=Ot+Math.imul(er,tn)|0,Mt=Mt+Math.imul(er,gn)|0,Mt=Mt+Math.imul(fr,tn)|0,zt=zt+Math.imul(fr,gn)|0,Ot=Ot+Math.imul(vr,En)|0,Mt=Mt+Math.imul(vr,vn)|0,Mt=Mt+Math.imul(hr,En)|0,zt=zt+Math.imul(hr,vn)|0;var sn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(sn>>>26)|0,sn&=67108863,Ot=Math.imul(Yr,Rr),Mt=Math.imul(Yr,$r),Mt=Mt+Math.imul(Wr,Rr)|0,zt=Math.imul(Wr,$r),Ot=Ot+Math.imul(Ir,Nr)|0,Mt=Mt+Math.imul(Ir,Ur)|0,Mt=Mt+Math.imul(Dr,Nr)|0,zt=zt+Math.imul(Dr,Ur)|0,Ot=Ot+Math.imul(nr,tn)|0,Mt=Mt+Math.imul(nr,gn)|0,Mt=Mt+Math.imul(ir,tn)|0,zt=zt+Math.imul(ir,gn)|0,Ot=Ot+Math.imul(er,En)|0,Mt=Mt+Math.imul(er,vn)|0,Mt=Mt+Math.imul(fr,En)|0,zt=zt+Math.imul(fr,vn)|0,Ot=Ot+Math.imul(vr,In)|0,Mt=Mt+Math.imul(vr,Mn)|0,Mt=Mt+Math.imul(hr,In)|0,zt=zt+Math.imul(hr,Mn)|0;var pn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(pn>>>26)|0,pn&=67108863,Ot=Math.imul(hn,Rr),Mt=Math.imul(hn,$r),Mt=Mt+Math.imul(nn,Rr)|0,zt=Math.imul(nn,$r),Ot=Ot+Math.imul(Yr,Nr)|0,Mt=Mt+Math.imul(Yr,Ur)|0,Mt=Mt+Math.imul(Wr,Nr)|0,zt=zt+Math.imul(Wr,Ur)|0,Ot=Ot+Math.imul(Ir,tn)|0,Mt=Mt+Math.imul(Ir,gn)|0,Mt=Mt+Math.imul(Dr,tn)|0,zt=zt+Math.imul(Dr,gn)|0,Ot=Ot+Math.imul(nr,En)|0,Mt=Mt+Math.imul(nr,vn)|0,Mt=Mt+Math.imul(ir,En)|0,zt=zt+Math.imul(ir,vn)|0,Ot=Ot+Math.imul(er,In)|0,Mt=Mt+Math.imul(er,Mn)|0,Mt=Mt+Math.imul(fr,In)|0,zt=zt+Math.imul(fr,Mn)|0,Ot=Ot+Math.imul(vr,Un)|0,Mt=Mt+Math.imul(vr,wn)|0,Mt=Mt+Math.imul(hr,Un)|0,zt=zt+Math.imul(hr,wn)|0;var dn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(dn>>>26)|0,dn&=67108863,Ot=Math.imul(yn,Rr),Mt=Math.imul(yn,$r),Mt=Mt+Math.imul(rn,Rr)|0,zt=Math.imul(rn,$r),Ot=Ot+Math.imul(hn,Nr)|0,Mt=Mt+Math.imul(hn,Ur)|0,Mt=Mt+Math.imul(nn,Nr)|0,zt=zt+Math.imul(nn,Ur)|0,Ot=Ot+Math.imul(Yr,tn)|0,Mt=Mt+Math.imul(Yr,gn)|0,Mt=Mt+Math.imul(Wr,tn)|0,zt=zt+Math.imul(Wr,gn)|0,Ot=Ot+Math.imul(Ir,En)|0,Mt=Mt+Math.imul(Ir,vn)|0,Mt=Mt+Math.imul(Dr,En)|0,zt=zt+Math.imul(Dr,vn)|0,Ot=Ot+Math.imul(nr,In)|0,Mt=Mt+Math.imul(nr,Mn)|0,Mt=Mt+Math.imul(ir,In)|0,zt=zt+Math.imul(ir,Mn)|0,Ot=Ot+Math.imul(er,Un)|0,Mt=Mt+Math.imul(er,wn)|0,Mt=Mt+Math.imul(fr,Un)|0,zt=zt+Math.imul(fr,wn)|0,Ot=Ot+Math.imul(vr,Ut)|0,Mt=Mt+Math.imul(vr,Ft)|0,Mt=Mt+Math.imul(hr,Ut)|0,zt=zt+Math.imul(hr,Ft)|0;var ln=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(ln>>>26)|0,ln&=67108863,Ot=Math.imul(dr,Rr),Mt=Math.imul(dr,$r),Mt=Mt+Math.imul(xr,Rr)|0,zt=Math.imul(xr,$r),Ot=Ot+Math.imul(yn,Nr)|0,Mt=Mt+Math.imul(yn,Ur)|0,Mt=Mt+Math.imul(rn,Nr)|0,zt=zt+Math.imul(rn,Ur)|0,Ot=Ot+Math.imul(hn,tn)|0,Mt=Mt+Math.imul(hn,gn)|0,Mt=Mt+Math.imul(nn,tn)|0,zt=zt+Math.imul(nn,gn)|0,Ot=Ot+Math.imul(Yr,En)|0,Mt=Mt+Math.imul(Yr,vn)|0,Mt=Mt+Math.imul(Wr,En)|0,zt=zt+Math.imul(Wr,vn)|0,Ot=Ot+Math.imul(Ir,In)|0,Mt=Mt+Math.imul(Ir,Mn)|0,Mt=Mt+Math.imul(Dr,In)|0,zt=zt+Math.imul(Dr,Mn)|0,Ot=Ot+Math.imul(nr,Un)|0,Mt=Mt+Math.imul(nr,wn)|0,Mt=Mt+Math.imul(ir,Un)|0,zt=zt+Math.imul(ir,wn)|0,Ot=Ot+Math.imul(er,Ut)|0,Mt=Mt+Math.imul(er,Ft)|0,Mt=Mt+Math.imul(fr,Ut)|0,zt=zt+Math.imul(fr,Ft)|0,Ot=Ot+Math.imul(vr,St)|0,Mt=Mt+Math.imul(vr,Kt)|0,Mt=Mt+Math.imul(hr,St)|0,zt=zt+Math.imul(hr,Kt)|0;var fn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(fn>>>26)|0,fn&=67108863,Ot=Math.imul(Tr,Rr),Mt=Math.imul(Tr,$r),Mt=Mt+Math.imul(Yt,Rr)|0,zt=Math.imul(Yt,$r),Ot=Ot+Math.imul(dr,Nr)|0,Mt=Mt+Math.imul(dr,Ur)|0,Mt=Mt+Math.imul(xr,Nr)|0,zt=zt+Math.imul(xr,Ur)|0,Ot=Ot+Math.imul(yn,tn)|0,Mt=Mt+Math.imul(yn,gn)|0,Mt=Mt+Math.imul(rn,tn)|0,zt=zt+Math.imul(rn,gn)|0,Ot=Ot+Math.imul(hn,En)|0,Mt=Mt+Math.imul(hn,vn)|0,Mt=Mt+Math.imul(nn,En)|0,zt=zt+Math.imul(nn,vn)|0,Ot=Ot+Math.imul(Yr,In)|0,Mt=Mt+Math.imul(Yr,Mn)|0,Mt=Mt+Math.imul(Wr,In)|0,zt=zt+Math.imul(Wr,Mn)|0,Ot=Ot+Math.imul(Ir,Un)|0,Mt=Mt+Math.imul(Ir,wn)|0,Mt=Mt+Math.imul(Dr,Un)|0,zt=zt+Math.imul(Dr,wn)|0,Ot=Ot+Math.imul(nr,Ut)|0,Mt=Mt+Math.imul(nr,Ft)|0,Mt=Mt+Math.imul(ir,Ut)|0,zt=zt+Math.imul(ir,Ft)|0,Ot=Ot+Math.imul(er,St)|0,Mt=Mt+Math.imul(er,Kt)|0,Mt=Mt+Math.imul(fr,St)|0,zt=zt+Math.imul(fr,Kt)|0,Ot=Ot+Math.imul(vr,br)|0,Mt=Mt+Math.imul(vr,kr)|0,Mt=Mt+Math.imul(hr,br)|0,zt=zt+Math.imul(hr,kr)|0;var un=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(un>>>26)|0,un&=67108863,Ot=Math.imul(Vt,Rr),Mt=Math.imul(Vt,$r),Mt=Mt+Math.imul(or,Rr)|0,zt=Math.imul(or,$r),Ot=Ot+Math.imul(Tr,Nr)|0,Mt=Mt+Math.imul(Tr,Ur)|0,Mt=Mt+Math.imul(Yt,Nr)|0,zt=zt+Math.imul(Yt,Ur)|0,Ot=Ot+Math.imul(dr,tn)|0,Mt=Mt+Math.imul(dr,gn)|0,Mt=Mt+Math.imul(xr,tn)|0,zt=zt+Math.imul(xr,gn)|0,Ot=Ot+Math.imul(yn,En)|0,Mt=Mt+Math.imul(yn,vn)|0,Mt=Mt+Math.imul(rn,En)|0,zt=zt+Math.imul(rn,vn)|0,Ot=Ot+Math.imul(hn,In)|0,Mt=Mt+Math.imul(hn,Mn)|0,Mt=Mt+Math.imul(nn,In)|0,zt=zt+Math.imul(nn,Mn)|0,Ot=Ot+Math.imul(Yr,Un)|0,Mt=Mt+Math.imul(Yr,wn)|0,Mt=Mt+Math.imul(Wr,Un)|0,zt=zt+Math.imul(Wr,wn)|0,Ot=Ot+Math.imul(Ir,Ut)|0,Mt=Mt+Math.imul(Ir,Ft)|0,Mt=Mt+Math.imul(Dr,Ut)|0,zt=zt+Math.imul(Dr,Ft)|0,Ot=Ot+Math.imul(nr,St)|0,Mt=Mt+Math.imul(nr,Kt)|0,Mt=Mt+Math.imul(ir,St)|0,zt=zt+Math.imul(ir,Kt)|0,Ot=Ot+Math.imul(er,br)|0,Mt=Mt+Math.imul(er,kr)|0,Mt=Mt+Math.imul(fr,br)|0,zt=zt+Math.imul(fr,kr)|0,Ot=Ot+Math.imul(vr,jr)|0,Mt=Mt+Math.imul(vr,qr)|0,Mt=Mt+Math.imul(hr,jr)|0,zt=zt+Math.imul(hr,qr)|0;var Zr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,Ot=Math.imul(Vt,Nr),Mt=Math.imul(Vt,Ur),Mt=Mt+Math.imul(or,Nr)|0,zt=Math.imul(or,Ur),Ot=Ot+Math.imul(Tr,tn)|0,Mt=Mt+Math.imul(Tr,gn)|0,Mt=Mt+Math.imul(Yt,tn)|0,zt=zt+Math.imul(Yt,gn)|0,Ot=Ot+Math.imul(dr,En)|0,Mt=Mt+Math.imul(dr,vn)|0,Mt=Mt+Math.imul(xr,En)|0,zt=zt+Math.imul(xr,vn)|0,Ot=Ot+Math.imul(yn,In)|0,Mt=Mt+Math.imul(yn,Mn)|0,Mt=Mt+Math.imul(rn,In)|0,zt=zt+Math.imul(rn,Mn)|0,Ot=Ot+Math.imul(hn,Un)|0,Mt=Mt+Math.imul(hn,wn)|0,Mt=Mt+Math.imul(nn,Un)|0,zt=zt+Math.imul(nn,wn)|0,Ot=Ot+Math.imul(Yr,Ut)|0,Mt=Mt+Math.imul(Yr,Ft)|0,Mt=Mt+Math.imul(Wr,Ut)|0,zt=zt+Math.imul(Wr,Ft)|0,Ot=Ot+Math.imul(Ir,St)|0,Mt=Mt+Math.imul(Ir,Kt)|0,Mt=Mt+Math.imul(Dr,St)|0,zt=zt+Math.imul(Dr,Kt)|0,Ot=Ot+Math.imul(nr,br)|0,Mt=Mt+Math.imul(nr,kr)|0,Mt=Mt+Math.imul(ir,br)|0,zt=zt+Math.imul(ir,kr)|0,Ot=Ot+Math.imul(er,jr)|0,Mt=Mt+Math.imul(er,qr)|0,Mt=Mt+Math.imul(fr,jr)|0,zt=zt+Math.imul(fr,qr)|0;var Qr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,Ot=Math.imul(Vt,tn),Mt=Math.imul(Vt,gn),Mt=Mt+Math.imul(or,tn)|0,zt=Math.imul(or,gn),Ot=Ot+Math.imul(Tr,En)|0,Mt=Mt+Math.imul(Tr,vn)|0,Mt=Mt+Math.imul(Yt,En)|0,zt=zt+Math.imul(Yt,vn)|0,Ot=Ot+Math.imul(dr,In)|0,Mt=Mt+Math.imul(dr,Mn)|0,Mt=Mt+Math.imul(xr,In)|0,zt=zt+Math.imul(xr,Mn)|0,Ot=Ot+Math.imul(yn,Un)|0,Mt=Mt+Math.imul(yn,wn)|0,Mt=Mt+Math.imul(rn,Un)|0,zt=zt+Math.imul(rn,wn)|0,Ot=Ot+Math.imul(hn,Ut)|0,Mt=Mt+Math.imul(hn,Ft)|0,Mt=Mt+Math.imul(nn,Ut)|0,zt=zt+Math.imul(nn,Ft)|0,Ot=Ot+Math.imul(Yr,St)|0,Mt=Mt+Math.imul(Yr,Kt)|0,Mt=Mt+Math.imul(Wr,St)|0,zt=zt+Math.imul(Wr,Kt)|0,Ot=Ot+Math.imul(Ir,br)|0,Mt=Mt+Math.imul(Ir,kr)|0,Mt=Mt+Math.imul(Dr,br)|0,zt=zt+Math.imul(Dr,kr)|0,Ot=Ot+Math.imul(nr,jr)|0,Mt=Mt+Math.imul(nr,qr)|0,Mt=Mt+Math.imul(ir,jr)|0,zt=zt+Math.imul(ir,qr)|0;var Fr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,Ot=Math.imul(Vt,En),Mt=Math.imul(Vt,vn),Mt=Mt+Math.imul(or,En)|0,zt=Math.imul(or,vn),Ot=Ot+Math.imul(Tr,In)|0,Mt=Mt+Math.imul(Tr,Mn)|0,Mt=Mt+Math.imul(Yt,In)|0,zt=zt+Math.imul(Yt,Mn)|0,Ot=Ot+Math.imul(dr,Un)|0,Mt=Mt+Math.imul(dr,wn)|0,Mt=Mt+Math.imul(xr,Un)|0,zt=zt+Math.imul(xr,wn)|0,Ot=Ot+Math.imul(yn,Ut)|0,Mt=Mt+Math.imul(yn,Ft)|0,Mt=Mt+Math.imul(rn,Ut)|0,zt=zt+Math.imul(rn,Ft)|0,Ot=Ot+Math.imul(hn,St)|0,Mt=Mt+Math.imul(hn,Kt)|0,Mt=Mt+Math.imul(nn,St)|0,zt=zt+Math.imul(nn,Kt)|0,Ot=Ot+Math.imul(Yr,br)|0,Mt=Mt+Math.imul(Yr,kr)|0,Mt=Mt+Math.imul(Wr,br)|0,zt=zt+Math.imul(Wr,kr)|0,Ot=Ot+Math.imul(Ir,jr)|0,Mt=Mt+Math.imul(Ir,qr)|0,Mt=Mt+Math.imul(Dr,jr)|0,zt=zt+Math.imul(Dr,qr)|0;var Gr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,Ot=Math.imul(Vt,In),Mt=Math.imul(Vt,Mn),Mt=Mt+Math.imul(or,In)|0,zt=Math.imul(or,Mn),Ot=Ot+Math.imul(Tr,Un)|0,Mt=Mt+Math.imul(Tr,wn)|0,Mt=Mt+Math.imul(Yt,Un)|0,zt=zt+Math.imul(Yt,wn)|0,Ot=Ot+Math.imul(dr,Ut)|0,Mt=Mt+Math.imul(dr,Ft)|0,Mt=Mt+Math.imul(xr,Ut)|0,zt=zt+Math.imul(xr,Ft)|0,Ot=Ot+Math.imul(yn,St)|0,Mt=Mt+Math.imul(yn,Kt)|0,Mt=Mt+Math.imul(rn,St)|0,zt=zt+Math.imul(rn,Kt)|0,Ot=Ot+Math.imul(hn,br)|0,Mt=Mt+Math.imul(hn,kr)|0,Mt=Mt+Math.imul(nn,br)|0,zt=zt+Math.imul(nn,kr)|0,Ot=Ot+Math.imul(Yr,jr)|0,Mt=Mt+Math.imul(Yr,qr)|0,Mt=Mt+Math.imul(Wr,jr)|0,zt=zt+Math.imul(Wr,qr)|0;var pr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(pr>>>26)|0,pr&=67108863,Ot=Math.imul(Vt,Un),Mt=Math.imul(Vt,wn),Mt=Mt+Math.imul(or,Un)|0,zt=Math.imul(or,wn),Ot=Ot+Math.imul(Tr,Ut)|0,Mt=Mt+Math.imul(Tr,Ft)|0,Mt=Mt+Math.imul(Yt,Ut)|0,zt=zt+Math.imul(Yt,Ft)|0,Ot=Ot+Math.imul(dr,St)|0,Mt=Mt+Math.imul(dr,Kt)|0,Mt=Mt+Math.imul(xr,St)|0,zt=zt+Math.imul(xr,Kt)|0,Ot=Ot+Math.imul(yn,br)|0,Mt=Mt+Math.imul(yn,kr)|0,Mt=Mt+Math.imul(rn,br)|0,zt=zt+Math.imul(rn,kr)|0,Ot=Ot+Math.imul(hn,jr)|0,Mt=Mt+Math.imul(hn,qr)|0,Mt=Mt+Math.imul(nn,jr)|0,zt=zt+Math.imul(nn,qr)|0;var Nt=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,Ot=Math.imul(Vt,Ut),Mt=Math.imul(Vt,Ft),Mt=Mt+Math.imul(or,Ut)|0,zt=Math.imul(or,Ft),Ot=Ot+Math.imul(Tr,St)|0,Mt=Mt+Math.imul(Tr,Kt)|0,Mt=Mt+Math.imul(Yt,St)|0,zt=zt+Math.imul(Yt,Kt)|0,Ot=Ot+Math.imul(dr,br)|0,Mt=Mt+Math.imul(dr,kr)|0,Mt=Mt+Math.imul(xr,br)|0,zt=zt+Math.imul(xr,kr)|0,Ot=Ot+Math.imul(yn,jr)|0,Mt=Mt+Math.imul(yn,qr)|0,Mt=Mt+Math.imul(rn,jr)|0,zt=zt+Math.imul(rn,qr)|0;var Zt=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,Ot=Math.imul(Vt,St),Mt=Math.imul(Vt,Kt),Mt=Mt+Math.imul(or,St)|0,zt=Math.imul(or,Kt),Ot=Ot+Math.imul(Tr,br)|0,Mt=Mt+Math.imul(Tr,kr)|0,Mt=Mt+Math.imul(Yt,br)|0,zt=zt+Math.imul(Yt,kr)|0,Ot=Ot+Math.imul(dr,jr)|0,Mt=Mt+Math.imul(dr,qr)|0,Mt=Mt+Math.imul(xr,jr)|0,zt=zt+Math.imul(xr,qr)|0;var Xt=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,Ot=Math.imul(Vt,br),Mt=Math.imul(Vt,kr),Mt=Mt+Math.imul(or,br)|0,zt=Math.imul(or,kr),Ot=Ot+Math.imul(Tr,jr)|0,Mt=Mt+Math.imul(Tr,qr)|0,Mt=Mt+Math.imul(Yt,jr)|0,zt=zt+Math.imul(Yt,qr)|0;var cr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(cr>>>26)|0,cr&=67108863,Ot=Math.imul(Vt,jr),Mt=Math.imul(Vt,qr),Mt=Mt+Math.imul(or,jr)|0,zt=Math.imul(or,qr);var ur=(Pt+Ot|0)+((Mt&8191)<<13)|0;return Pt=(zt+(Mt>>>13)|0)+(ur>>>26)|0,ur&=67108863,Bt[0]=Sn,Bt[1]=Vr,Bt[2]=an,Bt[3]=sn,Bt[4]=pn,Bt[5]=dn,Bt[6]=ln,Bt[7]=fn,Bt[8]=un,Bt[9]=Zr,Bt[10]=Qr,Bt[11]=Fr,Bt[12]=Gr,Bt[13]=pr,Bt[14]=Nt,Bt[15]=Zt,Bt[16]=Xt,Bt[17]=cr,Bt[18]=ur,Pt!==0&&(Bt[19]=Pt,$t.length++),$t};Math.imul||(qt=Tt);function jt(Ct,yt,_t){_t.negative=yt.negative^Ct.negative,_t.length=Ct.length+yt.length;for(var $t=0,At=0,It=0;It<_t.length-1;It++){var Bt=At;At=0;for(var Pt=$t&67108863,Ot=Math.min(It,yt.length-1),Mt=Math.max(0,It-Ct.length+1);Mt<=Ot;Mt++){var zt=It-Mt,yr=Ct.words[zt]|0,vr=yt.words[Mt]|0,hr=yr*vr,rr=hr&67108863;Bt=Bt+(hr/67108864|0)|0,rr=rr+Pt|0,Pt=rr&67108863,Bt=Bt+(rr>>>26)|0,At+=Bt>>>26,Bt&=67108863}_t.words[It]=Pt,$t=Bt,Bt=At}return $t!==0?_t.words[It]=$t:_t.length--,_t._strip()}function Lt(Ct,yt,_t){return jt(Ct,yt,_t)}ot.prototype.mulTo=function(yt,_t){var $t,At=this.length+yt.length;return this.length===10&&yt.length===10?$t=qt(this,yt,_t):At<63?$t=Tt(this,yt,_t):At<1024?$t=jt(this,yt,_t):$t=Lt(this,yt,_t),$t},ot.prototype.mul=function(yt){var _t=new ot(null);return _t.words=new Array(this.length+yt.length),this.mulTo(yt,_t)},ot.prototype.mulf=function(yt){var _t=new ot(null);return _t.words=new Array(this.length+yt.length),Lt(this,yt,_t)},ot.prototype.imul=function(yt){return this.clone().mulTo(yt,this)},ot.prototype.imuln=function(yt){var _t=yt<0;_t&&(yt=-yt),nt(typeof yt=="number"),nt(yt<67108864);for(var $t=0,At=0;At>=26,$t+=It/67108864|0,$t+=Bt>>>26,this.words[At]=Bt&67108863}return $t!==0&&(this.words[At]=$t,this.length++),_t?this.ineg():this},ot.prototype.muln=function(yt){return this.clone().imuln(yt)},ot.prototype.sqr=function(){return this.mul(this)},ot.prototype.isqr=function(){return this.imul(this.clone())},ot.prototype.pow=function(yt){var _t=Dt(yt);if(_t.length===0)return new ot(1);for(var $t=this,At=0;At<_t.length&&_t[At]===0;At++,$t=$t.sqr());if(++At<_t.length)for(var It=$t.sqr();At<_t.length;At++,It=It.sqr())_t[At]!==0&&($t=$t.mul(It));return $t},ot.prototype.iushln=function(yt){nt(typeof yt=="number"&&yt>=0);var _t=yt%26,$t=(yt-_t)/26,At=67108863>>>26-_t<<26-_t,It;if(_t!==0){var Bt=0;for(It=0;It>>26-_t}Bt&&(this.words[It]=Bt,this.length++)}if($t!==0){for(It=this.length-1;It>=0;It--)this.words[It+$t]=this.words[It];for(It=0;It<$t;It++)this.words[It]=0;this.length+=$t}return this._strip()},ot.prototype.ishln=function(yt){return nt(this.negative===0),this.iushln(yt)},ot.prototype.iushrn=function(yt,_t,$t){nt(typeof yt=="number"&&yt>=0);var At;_t?At=(_t-_t%26)/26:At=0;var It=yt%26,Bt=Math.min((yt-It)/26,this.length),Pt=67108863^67108863>>>It<Bt)for(this.length-=Bt,Mt=0;Mt=0&&(zt!==0||Mt>=At);Mt--){var yr=this.words[Mt]|0;this.words[Mt]=zt<<26-It|yr>>>It,zt=yr&Pt}return Ot&&zt!==0&&(Ot.words[Ot.length++]=zt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},ot.prototype.ishrn=function(yt,_t,$t){return nt(this.negative===0),this.iushrn(yt,_t,$t)},ot.prototype.shln=function(yt){return this.clone().ishln(yt)},ot.prototype.ushln=function(yt){return this.clone().iushln(yt)},ot.prototype.shrn=function(yt){return this.clone().ishrn(yt)},ot.prototype.ushrn=function(yt){return this.clone().iushrn(yt)},ot.prototype.testn=function(yt){nt(typeof yt=="number"&&yt>=0);var _t=yt%26,$t=(yt-_t)/26,At=1<<_t;if(this.length<=$t)return!1;var It=this.words[$t];return!!(It&At)},ot.prototype.imaskn=function(yt){nt(typeof yt=="number"&&yt>=0);var _t=yt%26,$t=(yt-_t)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=$t)return this;if(_t!==0&&$t++,this.length=Math.min($t,this.length),_t!==0){var At=67108863^67108863>>>_t<<_t;this.words[this.length-1]&=At}return this._strip()},ot.prototype.maskn=function(yt){return this.clone().imaskn(yt)},ot.prototype.iaddn=function(yt){return nt(typeof yt=="number"),nt(yt<67108864),yt<0?this.isubn(-yt):this.negative!==0?this.length===1&&(this.words[0]|0)<=yt?(this.words[0]=yt-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(yt),this.negative=1,this):this._iaddn(yt)},ot.prototype._iaddn=function(yt){this.words[0]+=yt;for(var _t=0;_t=67108864;_t++)this.words[_t]-=67108864,_t===this.length-1?this.words[_t+1]=1:this.words[_t+1]++;return this.length=Math.max(this.length,_t+1),this},ot.prototype.isubn=function(yt){if(nt(typeof yt=="number"),nt(yt<67108864),yt<0)return this.iaddn(-yt);if(this.negative!==0)return this.negative=0,this.iaddn(yt),this.negative=1,this;if(this.words[0]-=yt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _t=0;_t>26)-(Ot/67108864|0),this.words[It+$t]=Bt&67108863}for(;It>26,this.words[It+$t]=Bt&67108863;if(Pt===0)return this._strip();for(nt(Pt===-1),Pt=0,It=0;It>26,this.words[It]=Bt&67108863;return this.negative=1,this._strip()},ot.prototype._wordDiv=function(yt,_t){var $t=this.length-yt.length,At=this.clone(),It=yt,Bt=It.words[It.length-1]|0,Pt=this._countBits(Bt);$t=26-Pt,$t!==0&&(It=It.ushln($t),At.iushln($t),Bt=It.words[It.length-1]|0);var Ot=At.length-It.length,Mt;if(_t!=="mod"){Mt=new ot(null),Mt.length=Ot+1,Mt.words=new Array(Mt.length);for(var zt=0;zt=0;vr--){var hr=(At.words[It.length+vr]|0)*67108864+(At.words[It.length+vr-1]|0);for(hr=Math.min(hr/Bt|0,67108863),At._ishlnsubmul(It,hr,vr);At.negative!==0;)hr--,At.negative=0,At._ishlnsubmul(It,1,vr),At.isZero()||(At.negative^=1);Mt&&(Mt.words[vr]=hr)}return Mt&&Mt._strip(),At._strip(),_t!=="div"&&$t!==0&&At.iushrn($t),{div:Mt||null,mod:At}},ot.prototype.divmod=function(yt,_t,$t){if(nt(!yt.isZero()),this.isZero())return{div:new ot(0),mod:new ot(0)};var At,It,Bt;return this.negative!==0&&yt.negative===0?(Bt=this.neg().divmod(yt,_t),_t!=="mod"&&(At=Bt.div.neg()),_t!=="div"&&(It=Bt.mod.neg(),$t&&It.negative!==0&&It.iadd(yt)),{div:At,mod:It}):this.negative===0&&yt.negative!==0?(Bt=this.divmod(yt.neg(),_t),_t!=="mod"&&(At=Bt.div.neg()),{div:At,mod:Bt.mod}):this.negative&yt.negative?(Bt=this.neg().divmod(yt.neg(),_t),_t!=="div"&&(It=Bt.mod.neg(),$t&&It.negative!==0&&It.isub(yt)),{div:Bt.div,mod:It}):yt.length>this.length||this.cmp(yt)<0?{div:new ot(0),mod:this}:yt.length===1?_t==="div"?{div:this.divn(yt.words[0]),mod:null}:_t==="mod"?{div:null,mod:new ot(this.modrn(yt.words[0]))}:{div:this.divn(yt.words[0]),mod:new ot(this.modrn(yt.words[0]))}:this._wordDiv(yt,_t)},ot.prototype.div=function(yt){return this.divmod(yt,"div",!1).div},ot.prototype.mod=function(yt){return this.divmod(yt,"mod",!1).mod},ot.prototype.umod=function(yt){return this.divmod(yt,"mod",!0).mod},ot.prototype.divRound=function(yt){var _t=this.divmod(yt);if(_t.mod.isZero())return _t.div;var $t=_t.div.negative!==0?_t.mod.isub(yt):_t.mod,At=yt.ushrn(1),It=yt.andln(1),Bt=$t.cmp(At);return Bt<0||It===1&&Bt===0?_t.div:_t.div.negative!==0?_t.div.isubn(1):_t.div.iaddn(1)},ot.prototype.modrn=function(yt){var _t=yt<0;_t&&(yt=-yt),nt(yt<=67108863);for(var $t=(1<<26)%yt,At=0,It=this.length-1;It>=0;It--)At=($t*At+(this.words[It]|0))%yt;return _t?-At:At},ot.prototype.modn=function(yt){return this.modrn(yt)},ot.prototype.idivn=function(yt){var _t=yt<0;_t&&(yt=-yt),nt(yt<=67108863);for(var $t=0,At=this.length-1;At>=0;At--){var It=(this.words[At]|0)+$t*67108864;this.words[At]=It/yt|0,$t=It%yt}return this._strip(),_t?this.ineg():this},ot.prototype.divn=function(yt){return this.clone().idivn(yt)},ot.prototype.egcd=function(yt){nt(yt.negative===0),nt(!yt.isZero());var _t=this,$t=yt.clone();_t.negative!==0?_t=_t.umod(yt):_t=_t.clone();for(var At=new ot(1),It=new ot(0),Bt=new ot(0),Pt=new ot(1),Ot=0;_t.isEven()&&$t.isEven();)_t.iushrn(1),$t.iushrn(1),++Ot;for(var Mt=$t.clone(),zt=_t.clone();!_t.isZero();){for(var yr=0,vr=1;!(_t.words[0]&vr)&&yr<26;++yr,vr<<=1);if(yr>0)for(_t.iushrn(yr);yr-- >0;)(At.isOdd()||It.isOdd())&&(At.iadd(Mt),It.isub(zt)),At.iushrn(1),It.iushrn(1);for(var hr=0,rr=1;!($t.words[0]&rr)&&hr<26;++hr,rr<<=1);if(hr>0)for($t.iushrn(hr);hr-- >0;)(Bt.isOdd()||Pt.isOdd())&&(Bt.iadd(Mt),Pt.isub(zt)),Bt.iushrn(1),Pt.iushrn(1);_t.cmp($t)>=0?(_t.isub($t),At.isub(Bt),It.isub(Pt)):($t.isub(_t),Bt.isub(At),Pt.isub(It))}return{a:Bt,b:Pt,gcd:$t.iushln(Ot)}},ot.prototype._invmp=function(yt){nt(yt.negative===0),nt(!yt.isZero());var _t=this,$t=yt.clone();_t.negative!==0?_t=_t.umod(yt):_t=_t.clone();for(var At=new ot(1),It=new ot(0),Bt=$t.clone();_t.cmpn(1)>0&&$t.cmpn(1)>0;){for(var Pt=0,Ot=1;!(_t.words[0]&Ot)&&Pt<26;++Pt,Ot<<=1);if(Pt>0)for(_t.iushrn(Pt);Pt-- >0;)At.isOdd()&&At.iadd(Bt),At.iushrn(1);for(var Mt=0,zt=1;!($t.words[0]&zt)&&Mt<26;++Mt,zt<<=1);if(Mt>0)for($t.iushrn(Mt);Mt-- >0;)It.isOdd()&&It.iadd(Bt),It.iushrn(1);_t.cmp($t)>=0?(_t.isub($t),At.isub(It)):($t.isub(_t),It.isub(At))}var yr;return _t.cmpn(1)===0?yr=At:yr=It,yr.cmpn(0)<0&&yr.iadd(yt),yr},ot.prototype.gcd=function(yt){if(this.isZero())return yt.abs();if(yt.isZero())return this.abs();var _t=this.clone(),$t=yt.clone();_t.negative=0,$t.negative=0;for(var At=0;_t.isEven()&&$t.isEven();At++)_t.iushrn(1),$t.iushrn(1);do{for(;_t.isEven();)_t.iushrn(1);for(;$t.isEven();)$t.iushrn(1);var It=_t.cmp($t);if(It<0){var Bt=_t;_t=$t,$t=Bt}else if(It===0||$t.cmpn(1)===0)break;_t.isub($t)}while(!0);return $t.iushln(At)},ot.prototype.invm=function(yt){return this.egcd(yt).a.umod(yt)},ot.prototype.isEven=function(){return(this.words[0]&1)===0},ot.prototype.isOdd=function(){return(this.words[0]&1)===1},ot.prototype.andln=function(yt){return this.words[0]&yt},ot.prototype.bincn=function(yt){nt(typeof yt=="number");var _t=yt%26,$t=(yt-_t)/26,At=1<<_t;if(this.length<=$t)return this._expand($t+1),this.words[$t]|=At,this;for(var It=At,Bt=$t;It!==0&&Bt>>26,Pt&=67108863,this.words[Bt]=Pt}return It!==0&&(this.words[Bt]=It,this.length++),this},ot.prototype.isZero=function(){return this.length===1&&this.words[0]===0},ot.prototype.cmpn=function(yt){var _t=yt<0;if(this.negative!==0&&!_t)return-1;if(this.negative===0&&_t)return 1;this._strip();var $t;if(this.length>1)$t=1;else{_t&&(yt=-yt),nt(yt<=67108863,"Number is too big");var At=this.words[0]|0;$t=At===yt?0:Atyt.length)return 1;if(this.length=0;$t--){var At=this.words[$t]|0,It=yt.words[$t]|0;if(At!==It){AtIt&&(_t=1);break}}return _t},ot.prototype.gtn=function(yt){return this.cmpn(yt)===1},ot.prototype.gt=function(yt){return this.cmp(yt)===1},ot.prototype.gten=function(yt){return this.cmpn(yt)>=0},ot.prototype.gte=function(yt){return this.cmp(yt)>=0},ot.prototype.ltn=function(yt){return this.cmpn(yt)===-1},ot.prototype.lt=function(yt){return this.cmp(yt)===-1},ot.prototype.lten=function(yt){return this.cmpn(yt)<=0},ot.prototype.lte=function(yt){return this.cmp(yt)<=0},ot.prototype.eqn=function(yt){return this.cmpn(yt)===0},ot.prototype.eq=function(yt){return this.cmp(yt)===0},ot.red=function(yt){return new Jt(yt)},ot.prototype.toRed=function(yt){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),yt.convertTo(this)._forceRed(yt)},ot.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},ot.prototype._forceRed=function(yt){return this.red=yt,this},ot.prototype.forceRed=function(yt){return nt(!this.red,"Already a number in reduction context"),this._forceRed(yt)},ot.prototype.redAdd=function(yt){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,yt)},ot.prototype.redIAdd=function(yt){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,yt)},ot.prototype.redSub=function(yt){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,yt)},ot.prototype.redISub=function(yt){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,yt)},ot.prototype.redShl=function(yt){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,yt)},ot.prototype.redMul=function(yt){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,yt),this.red.mul(this,yt)},ot.prototype.redIMul=function(yt){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,yt),this.red.imul(this,yt)},ot.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},ot.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},ot.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},ot.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},ot.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},ot.prototype.redPow=function(yt){return nt(this.red&&!yt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,yt)};var Gt={k256:null,p224:null,p192:null,p25519:null};function Qt(Ct,yt){this.name=Ct,this.p=new ot(yt,16),this.n=this.p.bitLength(),this.k=new ot(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Qt.prototype._tmp=function(){var yt=new ot(null);return yt.words=new Array(Math.ceil(this.n/13)),yt},Qt.prototype.ireduce=function(yt){var _t=yt,$t;do this.split(_t,this.tmp),_t=this.imulK(_t),_t=_t.iadd(this.tmp),$t=_t.bitLength();while($t>this.n);var At=$t0?_t.isub(this.p):_t.strip!==void 0?_t.strip():_t._strip(),_t},Qt.prototype.split=function(yt,_t){yt.iushrn(this.n,0,_t)},Qt.prototype.imulK=function(yt){return yt.imul(this.k)};function tr(){Qt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}st(tr,Qt),tr.prototype.split=function(yt,_t){for(var $t=4194303,At=Math.min(yt.length,9),It=0;It>>22,Bt=Pt}Bt>>>=22,yt.words[It-10]=Bt,Bt===0&&yt.length>10?yt.length-=10:yt.length-=9},tr.prototype.imulK=function(yt){yt.words[yt.length]=0,yt.words[yt.length+1]=0,yt.length+=2;for(var _t=0,$t=0;$t>>=26,yt.words[$t]=It,_t=At}return _t!==0&&(yt.words[yt.length++]=_t),yt},ot._prime=function(yt){if(Gt[yt])return Gt[yt];var _t;if(yt==="k256")_t=new tr;else if(yt==="p224")_t=new sr;else if(yt==="p192")_t=new ar;else if(yt==="p25519")_t=new _r;else throw new Error("Unknown prime "+yt);return Gt[yt]=_t,_t};function Jt(Ct){if(typeof Ct=="string"){var yt=ot._prime(Ct);this.m=yt.p,this.prime=yt}else nt(Ct.gtn(1),"modulus must be greater than 1"),this.m=Ct,this.prime=null}Jt.prototype._verify1=function(yt){nt(yt.negative===0,"red works only with positives"),nt(yt.red,"red works only with red numbers")},Jt.prototype._verify2=function(yt,_t){nt((yt.negative|_t.negative)===0,"red works only with positives"),nt(yt.red&&yt.red===_t.red,"red works only with red numbers")},Jt.prototype.imod=function(yt){return this.prime?this.prime.ireduce(yt)._forceRed(this):(mt(yt,yt.umod(this.m)._forceRed(this)),yt)},Jt.prototype.neg=function(yt){return yt.isZero()?yt.clone():this.m.sub(yt)._forceRed(this)},Jt.prototype.add=function(yt,_t){this._verify2(yt,_t);var $t=yt.add(_t);return $t.cmp(this.m)>=0&&$t.isub(this.m),$t._forceRed(this)},Jt.prototype.iadd=function(yt,_t){this._verify2(yt,_t);var $t=yt.iadd(_t);return $t.cmp(this.m)>=0&&$t.isub(this.m),$t},Jt.prototype.sub=function(yt,_t){this._verify2(yt,_t);var $t=yt.sub(_t);return $t.cmpn(0)<0&&$t.iadd(this.m),$t._forceRed(this)},Jt.prototype.isub=function(yt,_t){this._verify2(yt,_t);var $t=yt.isub(_t);return $t.cmpn(0)<0&&$t.iadd(this.m),$t},Jt.prototype.shl=function(yt,_t){return this._verify1(yt),this.imod(yt.ushln(_t))},Jt.prototype.imul=function(yt,_t){return this._verify2(yt,_t),this.imod(yt.imul(_t))},Jt.prototype.mul=function(yt,_t){return this._verify2(yt,_t),this.imod(yt.mul(_t))},Jt.prototype.isqr=function(yt){return this.imul(yt,yt.clone())},Jt.prototype.sqr=function(yt){return this.mul(yt,yt)},Jt.prototype.sqrt=function(yt){if(yt.isZero())return yt.clone();var _t=this.m.andln(3);if(nt(_t%2===1),_t===3){var $t=this.m.add(new ot(1)).iushrn(2);return this.pow(yt,$t)}for(var At=this.m.subn(1),It=0;!At.isZero()&&At.andln(1)===0;)It++,At.iushrn(1);nt(!At.isZero());var Bt=new ot(1).toRed(this),Pt=Bt.redNeg(),Ot=this.m.subn(1).iushrn(1),Mt=this.m.bitLength();for(Mt=new ot(2*Mt*Mt).toRed(this);this.pow(Mt,Ot).cmp(Pt)!==0;)Mt.redIAdd(Pt);for(var zt=this.pow(Mt,At),yr=this.pow(yt,At.addn(1).iushrn(1)),vr=this.pow(yt,At),hr=It;vr.cmp(Bt)!==0;){for(var rr=vr,er=0;rr.cmp(Bt)!==0;er++)rr=rr.redSqr();nt(er=0;It--){for(var zt=_t.words[It],yr=Mt-1;yr>=0;yr--){var vr=zt>>yr&1;if(Bt!==At[0]&&(Bt=this.sqr(Bt)),vr===0&&Pt===0){Ot=0;continue}Pt<<=1,Pt|=vr,Ot++,!(Ot!==$t&&(It!==0||yr!==0))&&(Bt=this.mul(Bt,At[Pt]),Ot=0,Pt=0)}Mt=26}return Bt},Jt.prototype.convertTo=function(yt){var _t=yt.umod(this.m);return _t===yt?_t.clone():_t},Jt.prototype.convertFrom=function(yt){var _t=yt.clone();return _t.red=null,_t},ot.mont=function(yt){return new Rt(yt)};function Rt(Ct){Jt.call(this,Ct),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new ot(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)}st(Rt,Jt),Rt.prototype.convertTo=function(yt){return this.imod(yt.ushln(this.shift))},Rt.prototype.convertFrom=function(yt){var _t=this.imod(yt.mul(this.rinv));return _t.red=null,_t},Rt.prototype.imul=function(yt,_t){if(yt.isZero()||_t.isZero())return yt.words[0]=0,yt.length=1,yt;var $t=yt.imul(_t),At=$t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),It=$t.isub(At).iushrn(this.shift),Bt=It;return It.cmp(this.m)>=0?Bt=It.isub(this.m):It.cmpn(0)<0&&(Bt=It.iadd(this.m)),Bt._forceRed(this)},Rt.prototype.mul=function(yt,_t){if(yt.isZero()||_t.isZero())return new ot(0)._forceRed(this);var $t=yt.mul(_t),At=$t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),It=$t.isub(At).iushrn(this.shift),Bt=It;return It.cmp(this.m)>=0?Bt=It.isub(this.m):It.cmpn(0)<0&&(Bt=It.iadd(this.m)),Bt._forceRed(this)},Rt.prototype.invm=function(yt){var _t=this.imod(yt._invmp(this.m).mul(this.r2));return _t._forceRed(this)}})(d,commonjsGlobal)}(bn)),bn.exports}var asn1$1={},asn1={},api={},vmBrowserify={},hasRequiredVmBrowserify;function requireVmBrowserify(){return hasRequiredVmBrowserify||(hasRequiredVmBrowserify=1,function(exports){var indexOf=function(d,b){if(d.indexOf)return d.indexOf(b);for(var tt=0;tt"u"}d.isPrimitive=yt,d.isBuffer=requireIsBufferBrowser();function _t(zt){return Object.prototype.toString.call(zt)}function $t(zt){return zt<10?"0"+zt.toString(10):zt.toString(10)}var At=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function It(){var zt=new Date,yr=[$t(zt.getHours()),$t(zt.getMinutes()),$t(zt.getSeconds())].join(":");return[zt.getDate(),At[zt.getMonth()],yr].join(" ")}d.log=function(){console.log("%s - %s",It(),d.format.apply(d,arguments))},d.inherits=requireInherits_browser(),d._extend=function(zt,yr){if(!yr||!_r(yr))return zt;for(var vr=Object.keys(yr),hr=vr.length;hr--;)zt[vr[hr]]=yr[vr[hr]];return zt};function Bt(zt,yr){return Object.prototype.hasOwnProperty.call(zt,yr)}var Pt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;d.promisify=function(yr){if(typeof yr!="function")throw new TypeError('The "original" argument must be of type Function');if(Pt&&yr[Pt]){var vr=yr[Pt];if(typeof vr!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(vr,Pt,{value:vr,enumerable:!1,writable:!1,configurable:!0}),vr}function vr(){for(var hr,rr,er=new Promise(function(nr,ir){hr=nr,rr=ir}),fr=[],wr=0;wr0?this.tail.next=Tt:this.head=Tt,this.tail=Tt,++this.length}},{key:"unshift",value:function(Dt){var Tt={data:Dt,next:this.head};this.length===0&&(this.tail=Tt),this.head=Tt,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Dt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Dt}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Dt){if(this.length===0)return"";for(var Tt=this.head,qt=""+Tt.data;Tt=Tt.next;)qt+=Dt+Tt.data;return qt}},{key:"concat",value:function(Dt){if(this.length===0)return vt.alloc(0);for(var Tt=vt.allocUnsafe(Dt>>>0),qt=this.head,jt=0;qt;)xt(qt.data,Tt,jt),jt+=qt.data.length,qt=qt.next;return Tt}},{key:"consume",value:function(Dt,Tt){var qt;return DtLt.length?Lt.length:Dt;if(Gt===Lt.length?jt+=Lt:jt+=Lt.slice(0,Dt),Dt-=Gt,Dt===0){Gt===Lt.length?(++qt,Tt.next?this.head=Tt.next:this.head=this.tail=null):(this.head=Tt,Tt.data=Lt.slice(Gt));break}++qt}return this.length-=qt,jt}},{key:"_getBuffer",value:function(Dt){var Tt=vt.allocUnsafe(Dt),qt=this.head,jt=1;for(qt.data.copy(Tt),Dt-=qt.data.length;qt=qt.next;){var Lt=qt.data,Gt=Dt>Lt.length?Lt.length:Dt;if(Lt.copy(Tt,Tt.length-Dt,0,Gt),Dt-=Gt,Dt===0){Gt===Lt.length?(++jt,qt.next?this.head=qt.next:this.head=this.tail=null):(this.head=qt,qt.data=Lt.slice(Gt));break}++jt}return this.length-=jt,Tt}},{key:wt,value:function(Dt,Tt){return bt(this,b(b({},Tt),{},{depth:0,customInspect:!1}))}}]),Et}(),buffer_list}var destroy_1$1,hasRequiredDestroy$1;function requireDestroy$1(){if(hasRequiredDestroy$1)return destroy_1$1;hasRequiredDestroy$1=1;function d(ft,ht){var gt=this,vt=this._readableState&&this._readableState.destroyed,mt=this._writableState&&this._writableState.destroyed;return vt||mt?(ht?ht(ft):ft&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process$1.nextTick(st,this,ft)):process$1.nextTick(st,this,ft)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ft||null,function(bt){!ht&&bt?gt._writableState?gt._writableState.errorEmitted?process$1.nextTick(tt,gt):(gt._writableState.errorEmitted=!0,process$1.nextTick(b,gt,bt)):process$1.nextTick(b,gt,bt):ht?(process$1.nextTick(tt,gt),ht(bt)):process$1.nextTick(tt,gt)}),this)}function b(ft,ht){st(ft,ht),tt(ft)}function tt(ft){ft._writableState&&!ft._writableState.emitClose||ft._readableState&&!ft._readableState.emitClose||ft.emit("close")}function nt(){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)}function st(ft,ht){ft.emit("error",ht)}function ot(ft,ht){var gt=ft._readableState,vt=ft._writableState;gt&>.autoDestroy||vt&&vt.autoDestroy?ft.destroy(ht):ft.emit("error",ht)}return destroy_1$1={destroy:d,undestroy:nt,errorOrDestroy:ot},destroy_1$1}var errorsBrowser={},hasRequiredErrorsBrowser;function requireErrorsBrowser(){if(hasRequiredErrorsBrowser)return errorsBrowser;hasRequiredErrorsBrowser=1;function d(ht,gt){ht.prototype=Object.create(gt.prototype),ht.prototype.constructor=ht,ht.__proto__=gt}var b={};function tt(ht,gt,vt){vt||(vt=Error);function mt(wt,xt,Et){return typeof gt=="string"?gt:gt(wt,xt,Et)}var bt=function(wt){d(xt,wt);function xt(Et,kt,Dt){return wt.call(this,mt(Et,kt,Dt))||this}return xt}(vt);bt.prototype.name=vt.name,bt.prototype.code=ht,b[ht]=bt}function nt(ht,gt){if(Array.isArray(ht)){var vt=ht.length;return ht=ht.map(function(mt){return String(mt)}),vt>2?"one of ".concat(gt," ").concat(ht.slice(0,vt-1).join(", "),", or ")+ht[vt-1]:vt===2?"one of ".concat(gt," ").concat(ht[0]," or ").concat(ht[1]):"of ".concat(gt," ").concat(ht[0])}else return"of ".concat(gt," ").concat(String(ht))}function st(ht,gt,vt){return ht.substr(0,gt.length)===gt}function ot(ht,gt,vt){return(vt===void 0||vt>ht.length)&&(vt=ht.length),ht.substring(vt-gt.length,vt)===gt}function ft(ht,gt,vt){return typeof vt!="number"&&(vt=0),vt+gt.length>ht.length?!1:ht.indexOf(gt,vt)!==-1}return tt("ERR_INVALID_OPT_VALUE",function(ht,gt){return'The value "'+gt+'" is invalid for option "'+ht+'"'},TypeError),tt("ERR_INVALID_ARG_TYPE",function(ht,gt,vt){var mt;typeof gt=="string"&&st(gt,"not ")?(mt="must not be",gt=gt.replace(/^not /,"")):mt="must be";var bt;if(ot(ht," argument"))bt="The ".concat(ht," ").concat(mt," ").concat(nt(gt,"type"));else{var wt=ft(ht,".")?"property":"argument";bt='The "'.concat(ht,'" ').concat(wt," ").concat(mt," ").concat(nt(gt,"type"))}return bt+=". Received type ".concat(typeof vt),bt},TypeError),tt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),tt("ERR_METHOD_NOT_IMPLEMENTED",function(ht){return"The "+ht+" method is not implemented"}),tt("ERR_STREAM_PREMATURE_CLOSE","Premature close"),tt("ERR_STREAM_DESTROYED",function(ht){return"Cannot call "+ht+" after a stream was destroyed"}),tt("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),tt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),tt("ERR_STREAM_WRITE_AFTER_END","write after end"),tt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),tt("ERR_UNKNOWN_ENCODING",function(ht){return"Unknown encoding: "+ht},TypeError),tt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=b,errorsBrowser}var state,hasRequiredState;function requireState(){if(hasRequiredState)return state;hasRequiredState=1;var d=requireErrorsBrowser().codes.ERR_INVALID_OPT_VALUE;function b(nt,st,ot){return nt.highWaterMark!=null?nt.highWaterMark:st?nt[ot]:null}function tt(nt,st,ot,ft){var ht=b(st,ft,ot);if(ht!=null){if(!(isFinite(ht)&&Math.floor(ht)===ht)||ht<0){var gt=ft?ot:"highWaterMark";throw new d(gt,ht)}return Math.floor(ht)}return nt.objectMode?16:16*1024}return state={getHighWaterMark:tt},state}var browser$b,hasRequiredBrowser$a;function requireBrowser$a(){if(hasRequiredBrowser$a)return browser$b;hasRequiredBrowser$a=1,browser$b=d;function d(tt,nt){if(b("noDeprecation"))return tt;var st=!1;function ot(){if(!st){if(b("throwDeprecation"))throw new Error(nt);b("traceDeprecation")?console.trace(nt):console.warn(nt),st=!0}return tt.apply(this,arguments)}return ot}function b(tt){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var nt=commonjsGlobal.localStorage[tt];return nt==null?!1:String(nt).toLowerCase()==="true"}return browser$b}var _stream_writable$1,hasRequired_stream_writable$1;function require_stream_writable$1(){if(hasRequired_stream_writable$1)return _stream_writable$1;hasRequired_stream_writable$1=1,_stream_writable$1=sr;function d(hr){var rr=this;this.next=null,this.entry=null,this.finish=function(){vr(rr,hr)}}var b;sr.WritableState=Qt;var tt={deprecate:requireBrowser$a()},nt=requireStreamBrowser$1(),st=require$$1$3.Buffer,ot=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function ft(hr){return st.from(hr)}function ht(hr){return st.isBuffer(hr)||hr instanceof ot}var gt=requireDestroy$1(),vt=requireState(),mt=vt.getHighWaterMark,bt=requireErrorsBrowser().codes,wt=bt.ERR_INVALID_ARG_TYPE,xt=bt.ERR_METHOD_NOT_IMPLEMENTED,Et=bt.ERR_MULTIPLE_CALLBACK,kt=bt.ERR_STREAM_CANNOT_PIPE,Dt=bt.ERR_STREAM_DESTROYED,Tt=bt.ERR_STREAM_NULL_VALUES,qt=bt.ERR_STREAM_WRITE_AFTER_END,jt=bt.ERR_UNKNOWN_ENCODING,Lt=gt.errorOrDestroy;requireInherits_browser()(sr,nt);function Gt(){}function Qt(hr,rr,er){b=b||require_stream_duplex$1(),hr=hr||{},typeof er!="boolean"&&(er=rr instanceof b),this.objectMode=!!hr.objectMode,er&&(this.objectMode=this.objectMode||!!hr.writableObjectMode),this.highWaterMark=mt(this,hr,"writableHighWaterMark",er),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var fr=hr.decodeStrings===!1;this.decodeStrings=!fr,this.defaultEncoding=hr.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(wr){$t(rr,wr)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=hr.emitClose!==!1,this.autoDestroy=!!hr.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new d(this)}Qt.prototype.getBuffer=function(){for(var rr=this.bufferedRequest,er=[];rr;)er.push(rr),rr=rr.next;return er},function(){try{Object.defineProperty(Qt.prototype,"buffer",{get:tt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var tr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(tr=Function.prototype[Symbol.hasInstance],Object.defineProperty(sr,Symbol.hasInstance,{value:function(rr){return tr.call(this,rr)?!0:this!==sr?!1:rr&&rr._writableState instanceof Qt}})):tr=function(rr){return rr instanceof this};function sr(hr){b=b||require_stream_duplex$1();var rr=this instanceof b;if(!rr&&!tr.call(sr,this))return new sr(hr);this._writableState=new Qt(hr,this,rr),this.writable=!0,hr&&(typeof hr.write=="function"&&(this._write=hr.write),typeof hr.writev=="function"&&(this._writev=hr.writev),typeof hr.destroy=="function"&&(this._destroy=hr.destroy),typeof hr.final=="function"&&(this._final=hr.final)),nt.call(this)}sr.prototype.pipe=function(){Lt(this,new kt)};function ar(hr,rr){var er=new qt;Lt(hr,er),process$1.nextTick(rr,er)}function _r(hr,rr,er,fr){var wr;return er===null?wr=new Tt:typeof er!="string"&&!rr.objectMode&&(wr=new wt("chunk",["string","Buffer"],er)),wr?(Lt(hr,wr),process$1.nextTick(fr,wr),!1):!0}sr.prototype.write=function(hr,rr,er){var fr=this._writableState,wr=!1,nr=!fr.objectMode&&ht(hr);return nr&&!st.isBuffer(hr)&&(hr=ft(hr)),typeof rr=="function"&&(er=rr,rr=null),nr?rr="buffer":rr||(rr=fr.defaultEncoding),typeof er!="function"&&(er=Gt),fr.ending?ar(this,er):(nr||_r(this,fr,hr,er))&&(fr.pendingcb++,wr=Rt(this,fr,nr,hr,rr,er)),wr},sr.prototype.cork=function(){this._writableState.corked++},sr.prototype.uncork=function(){var hr=this._writableState;hr.corked&&(hr.corked--,!hr.writing&&!hr.corked&&!hr.bufferProcessing&&hr.bufferedRequest&&Bt(this,hr))},sr.prototype.setDefaultEncoding=function(rr){if(typeof rr=="string"&&(rr=rr.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((rr+"").toLowerCase())>-1))throw new jt(rr);return this._writableState.defaultEncoding=rr,this},Object.defineProperty(sr.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Jt(hr,rr,er){return!hr.objectMode&&hr.decodeStrings!==!1&&typeof rr=="string"&&(rr=st.from(rr,er)),rr}Object.defineProperty(sr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Rt(hr,rr,er,fr,wr,nr){if(!er){var ir=Jt(rr,fr,wr);fr!==ir&&(er=!0,wr="buffer",fr=ir)}var Br=rr.objectMode?1:fr.length;rr.length+=Br;var Ir=rr.length>5===6?2:Tt>>4===14?3:Tt>>3===30?4:Tt>>6===2?-1:-2}function ft(Tt,qt,jt){var Lt=qt.length-1;if(Lt=0?(Gt>0&&(Tt.lastNeed=Gt-1),Gt):--Lt=0?(Gt>0&&(Tt.lastNeed=Gt-2),Gt):--Lt=0?(Gt>0&&(Gt===2?Gt=0:Tt.lastNeed=Gt-3),Gt):0))}function ht(Tt,qt,jt){if((qt[0]&192)!==128)return Tt.lastNeed=0,"�";if(Tt.lastNeed>1&&qt.length>1){if((qt[1]&192)!==128)return Tt.lastNeed=1,"�";if(Tt.lastNeed>2&&qt.length>2&&(qt[2]&192)!==128)return Tt.lastNeed=2,"�"}}function gt(Tt){var qt=this.lastTotal-this.lastNeed,jt=ht(this,Tt);if(jt!==void 0)return jt;if(this.lastNeed<=Tt.length)return Tt.copy(this.lastChar,qt,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Tt.copy(this.lastChar,qt,0,Tt.length),this.lastNeed-=Tt.length}function vt(Tt,qt){var jt=ft(this,Tt,qt);if(!this.lastNeed)return Tt.toString("utf8",qt);this.lastTotal=jt;var Lt=Tt.length-(jt-this.lastNeed);return Tt.copy(this.lastChar,0,Lt),Tt.toString("utf8",qt,Lt)}function mt(Tt){var qt=Tt&&Tt.length?this.write(Tt):"";return this.lastNeed?qt+"�":qt}function bt(Tt,qt){if((Tt.length-qt)%2===0){var jt=Tt.toString("utf16le",qt);if(jt){var Lt=jt.charCodeAt(jt.length-1);if(Lt>=55296&&Lt<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Tt[Tt.length-2],this.lastChar[1]=Tt[Tt.length-1],jt.slice(0,-1)}return jt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Tt[Tt.length-1],Tt.toString("utf16le",qt,Tt.length-1)}function wt(Tt){var qt=Tt&&Tt.length?this.write(Tt):"";if(this.lastNeed){var jt=this.lastTotal-this.lastNeed;return qt+this.lastChar.toString("utf16le",0,jt)}return qt}function xt(Tt,qt){var jt=(Tt.length-qt)%3;return jt===0?Tt.toString("base64",qt):(this.lastNeed=3-jt,this.lastTotal=3,jt===1?this.lastChar[0]=Tt[Tt.length-1]:(this.lastChar[0]=Tt[Tt.length-2],this.lastChar[1]=Tt[Tt.length-1]),Tt.toString("base64",qt,Tt.length-jt))}function Et(Tt){var qt=Tt&&Tt.length?this.write(Tt):"";return this.lastNeed?qt+this.lastChar.toString("base64",0,3-this.lastNeed):qt}function kt(Tt){return Tt.toString(this.encoding)}function Dt(Tt){return Tt&&Tt.length?this.write(Tt):""}return string_decoder}var endOfStream,hasRequiredEndOfStream;function requireEndOfStream(){if(hasRequiredEndOfStream)return endOfStream;hasRequiredEndOfStream=1;var d=requireErrorsBrowser().codes.ERR_STREAM_PREMATURE_CLOSE;function b(ot){var ft=!1;return function(){if(!ft){ft=!0;for(var ht=arguments.length,gt=new Array(ht),vt=0;vt0)if(typeof ir!="string"&&!Jr.objectMode&&Object.getPrototypeOf(ir)!==nt.prototype&&(ir=ot(ir)),Ir)Jr.endEmitted?Gt(nr,new Tt):Jt(nr,Jr,ir,!0);else if(Jr.ended)Gt(nr,new kt);else{if(Jr.destroyed)return!1;Jr.reading=!1,Jr.decoder&&!Br?(ir=Jr.decoder.write(ir),Jr.objectMode||ir.length!==0?Jt(nr,Jr,ir,!1):Bt(nr,Jr)):Jt(nr,Jr,ir,!1)}else Ir||(Jr.reading=!1,Bt(nr,Jr))}return!Jr.ended&&(Jr.length=Ct?nr=Ct:(nr--,nr|=nr>>>1,nr|=nr>>>2,nr|=nr>>>4,nr|=nr>>>8,nr|=nr>>>16,nr++),nr}function _t(nr,ir){return nr<=0||ir.length===0&&ir.ended?0:ir.objectMode?1:nr!==nr?ir.flowing&&ir.length?ir.buffer.head.data.length:ir.length:(nr>ir.highWaterMark&&(ir.highWaterMark=yt(nr)),nr<=ir.length?nr:ir.ended?ir.length:(ir.needReadable=!0,0))}ar.prototype.read=function(nr){gt("read",nr),nr=parseInt(nr,10);var ir=this._readableState,Br=nr;if(nr!==0&&(ir.emittedReadable=!1),nr===0&&ir.needReadable&&((ir.highWaterMark!==0?ir.length>=ir.highWaterMark:ir.length>0)||ir.ended))return gt("read: emitReadable",ir.length,ir.ended),ir.length===0&&ir.ended?er(this):At(this),null;if(nr=_t(nr,ir),nr===0&&ir.ended)return ir.length===0&&er(this),null;var Ir=ir.needReadable;gt("need readable",Ir),(ir.length===0||ir.length-nr0?Dr=rr(nr,ir):Dr=null,Dr===null?(ir.needReadable=ir.length<=ir.highWaterMark,nr=0):(ir.length-=nr,ir.awaitDrain=0),ir.length===0&&(ir.ended||(ir.needReadable=!0),Br!==nr&&ir.ended&&er(this)),Dr!==null&&this.emit("data",Dr),Dr};function $t(nr,ir){if(gt("onEofChunk"),!ir.ended){if(ir.decoder){var Br=ir.decoder.end();Br&&Br.length&&(ir.buffer.push(Br),ir.length+=ir.objectMode?1:Br.length)}ir.ended=!0,ir.sync?At(nr):(ir.needReadable=!1,ir.emittedReadable||(ir.emittedReadable=!0,It(nr)))}}function At(nr){var ir=nr._readableState;gt("emitReadable",ir.needReadable,ir.emittedReadable),ir.needReadable=!1,ir.emittedReadable||(gt("emitReadable",ir.flowing),ir.emittedReadable=!0,process$1.nextTick(It,nr))}function It(nr){var ir=nr._readableState;gt("emitReadable_",ir.destroyed,ir.length,ir.ended),!ir.destroyed&&(ir.length||ir.ended)&&(nr.emit("readable"),ir.emittedReadable=!1),ir.needReadable=!ir.flowing&&!ir.ended&&ir.length<=ir.highWaterMark,hr(nr)}function Bt(nr,ir){ir.readingMore||(ir.readingMore=!0,process$1.nextTick(Pt,nr,ir))}function Pt(nr,ir){for(;!ir.reading&&!ir.ended&&(ir.length1&&wr(Ir.pipes,nr)!==-1)&&!hn&&(gt("false write response, pause",Ir.awaitDrain),Ir.awaitDrain++),Br.pause())}function yn(xr){gt("onerror",xr),dr(),nr.removeListener("error",yn),b(nr,"error")===0&&Gt(nr,xr)}tr(nr,"error",yn);function rn(){nr.removeListener("finish",Ar),dr()}nr.once("close",rn);function Ar(){gt("onfinish"),nr.removeListener("close",rn),dr()}nr.once("finish",Ar);function dr(){gt("unpipe"),Br.unpipe(nr)}return nr.emit("pipe",Br),Ir.flowing||(gt("pipe resume"),Br.resume()),nr};function Ot(nr){return function(){var Br=nr._readableState;gt("pipeOnDrain",Br.awaitDrain),Br.awaitDrain&&Br.awaitDrain--,Br.awaitDrain===0&&b(nr,"data")&&(Br.flowing=!0,hr(nr))}}ar.prototype.unpipe=function(nr){var ir=this._readableState,Br={hasUnpiped:!1};if(ir.pipesCount===0)return this;if(ir.pipesCount===1)return nr&&nr!==ir.pipes?this:(nr||(nr=ir.pipes),ir.pipes=null,ir.pipesCount=0,ir.flowing=!1,nr&&nr.emit("unpipe",this,Br),this);if(!nr){var Ir=ir.pipes,Dr=ir.pipesCount;ir.pipes=null,ir.pipesCount=0,ir.flowing=!1;for(var Jr=0;Jr0,Ir.flowing!==!1&&this.resume()):nr==="readable"&&!Ir.endEmitted&&!Ir.readableListening&&(Ir.readableListening=Ir.needReadable=!0,Ir.flowing=!1,Ir.emittedReadable=!1,gt("on readable",Ir.length,Ir.reading),Ir.length?At(this):Ir.reading||process$1.nextTick(zt,this)),Br},ar.prototype.addListener=ar.prototype.on,ar.prototype.removeListener=function(nr,ir){var Br=tt.prototype.removeListener.call(this,nr,ir);return nr==="readable"&&process$1.nextTick(Mt,this),Br},ar.prototype.removeAllListeners=function(nr){var ir=tt.prototype.removeAllListeners.apply(this,arguments);return(nr==="readable"||nr===void 0)&&process$1.nextTick(Mt,this),ir};function Mt(nr){var ir=nr._readableState;ir.readableListening=nr.listenerCount("readable")>0,ir.resumeScheduled&&!ir.paused?ir.flowing=!0:nr.listenerCount("data")>0&&nr.resume()}function zt(nr){gt("readable nexttick read 0"),nr.read(0)}ar.prototype.resume=function(){var nr=this._readableState;return nr.flowing||(gt("resume"),nr.flowing=!nr.readableListening,yr(this,nr)),nr.paused=!1,this};function yr(nr,ir){ir.resumeScheduled||(ir.resumeScheduled=!0,process$1.nextTick(vr,nr,ir))}function vr(nr,ir){gt("resume",ir.reading),ir.reading||nr.read(0),ir.resumeScheduled=!1,nr.emit("resume"),hr(nr),ir.flowing&&!ir.reading&&nr.read(0)}ar.prototype.pause=function(){return gt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(gt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function hr(nr){var ir=nr._readableState;for(gt("flow",ir.flowing);ir.flowing&&nr.read()!==null;);}ar.prototype.wrap=function(nr){var ir=this,Br=this._readableState,Ir=!1;nr.on("end",function(){if(gt("wrapped end"),Br.decoder&&!Br.ended){var Yr=Br.decoder.end();Yr&&Yr.length&&ir.push(Yr)}ir.push(null)}),nr.on("data",function(Yr){if(gt("wrapped data"),Br.decoder&&(Yr=Br.decoder.write(Yr)),!(Br.objectMode&&Yr==null)&&!(!Br.objectMode&&(!Yr||!Yr.length))){var Wr=ir.push(Yr);Wr||(Ir=!0,nr.pause())}});for(var Dr in nr)this[Dr]===void 0&&typeof nr[Dr]=="function"&&(this[Dr]=function(Wr){return function(){return nr[Wr].apply(nr,arguments)}}(Dr));for(var Jr=0;Jr=ir.length?(ir.decoder?Br=ir.buffer.join(""):ir.buffer.length===1?Br=ir.buffer.first():Br=ir.buffer.concat(ir.length),ir.buffer.clear()):Br=ir.buffer.consume(nr,ir.decoder),Br}function er(nr){var ir=nr._readableState;gt("endReadable",ir.endEmitted),ir.endEmitted||(ir.ended=!0,process$1.nextTick(fr,ir,nr))}function fr(nr,ir){if(gt("endReadableNT",nr.endEmitted,nr.length),!nr.endEmitted&&nr.length===0&&(nr.endEmitted=!0,ir.readable=!1,ir.emit("end"),nr.autoDestroy)){var Br=ir._writableState;(!Br||Br.autoDestroy&&Br.finished)&&ir.destroy()}}typeof Symbol=="function"&&(ar.from=function(nr,ir){return Lt===void 0&&(Lt=requireFromBrowser()),Lt(ar,nr,ir)});function wr(nr,ir){for(var Br=0,Ir=nr.length;Br0;return ht(qt,Lt,Gt,function(Qt){Dt||(Dt=Qt),Qt&&Tt.forEach(gt),!Lt&&(Tt.forEach(gt),kt(Dt))})});return xt.reduce(vt)}return pipeline_1=bt,pipeline_1}var hasRequiredReadableBrowser$1;function requireReadableBrowser$1(){return hasRequiredReadableBrowser$1||(hasRequiredReadableBrowser$1=1,function(d,b){b=d.exports=require_stream_readable$1(),b.Stream=b,b.Readable=b,b.Writable=require_stream_writable$1(),b.Duplex=require_stream_duplex$1(),b.Transform=require_stream_transform$1(),b.PassThrough=require_stream_passthrough$1(),b.finished=requireEndOfStream(),b.pipeline=requirePipeline()}(readableBrowser$1,readableBrowser$1.exports)),readableBrowser$1.exports}var hashBase$1,hasRequiredHashBase$1;function requireHashBase$1(){if(hasRequiredHashBase$1)return hashBase$1;hasRequiredHashBase$1=1;var d=requireSafeBuffer$1().Buffer,b=requireReadableBrowser$1().Transform,tt=requireInherits_browser();function nt(ot,ft){if(!d.isBuffer(ot)&&typeof ot!="string")throw new TypeError(ft+" must be a string or a buffer")}function st(ot){b.call(this),this._block=d.allocUnsafe(ot),this._blockSize=ot,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return tt(st,b),st.prototype._transform=function(ot,ft,ht){var gt=null;try{this.update(ot,ft)}catch(vt){gt=vt}ht(gt)},st.prototype._flush=function(ot){var ft=null;try{this.push(this.digest())}catch(ht){ft=ht}ot(ft)},st.prototype.update=function(ot,ft){if(nt(ot,"Data"),this._finalized)throw new Error("Digest already called");d.isBuffer(ot)||(ot=d.from(ot,ft));for(var ht=this._block,gt=0;this._blockOffset+ot.length-gt>=this._blockSize;){for(var vt=this._blockOffset;vt0;++mt)this._length[mt]+=bt,bt=this._length[mt]/4294967296|0,bt>0&&(this._length[mt]-=4294967296*bt);return this},st.prototype._update=function(){throw new Error("_update is not implemented")},st.prototype.digest=function(ot){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var ft=this._digest();ot!==void 0&&(ft=ft.toString(ot)),this._block.fill(0),this._blockOffset=0;for(var ht=0;ht<4;++ht)this._length[ht]=0;return ft},st.prototype._digest=function(){throw new Error("_digest is not implemented")},hashBase$1=st,hashBase$1}var md5_js,hasRequiredMd5_js;function requireMd5_js(){if(hasRequiredMd5_js)return md5_js;hasRequiredMd5_js=1;var d=requireInherits_browser(),b=requireHashBase$1(),tt=requireSafeBuffer$1().Buffer,nt=new Array(16);function st(){b.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}d(st,b),st.prototype._update=function(){for(var mt=nt,bt=0;bt<16;++bt)mt[bt]=this._block.readInt32LE(bt*4);var wt=this._a,xt=this._b,Et=this._c,kt=this._d;wt=ft(wt,xt,Et,kt,mt[0],3614090360,7),kt=ft(kt,wt,xt,Et,mt[1],3905402710,12),Et=ft(Et,kt,wt,xt,mt[2],606105819,17),xt=ft(xt,Et,kt,wt,mt[3],3250441966,22),wt=ft(wt,xt,Et,kt,mt[4],4118548399,7),kt=ft(kt,wt,xt,Et,mt[5],1200080426,12),Et=ft(Et,kt,wt,xt,mt[6],2821735955,17),xt=ft(xt,Et,kt,wt,mt[7],4249261313,22),wt=ft(wt,xt,Et,kt,mt[8],1770035416,7),kt=ft(kt,wt,xt,Et,mt[9],2336552879,12),Et=ft(Et,kt,wt,xt,mt[10],4294925233,17),xt=ft(xt,Et,kt,wt,mt[11],2304563134,22),wt=ft(wt,xt,Et,kt,mt[12],1804603682,7),kt=ft(kt,wt,xt,Et,mt[13],4254626195,12),Et=ft(Et,kt,wt,xt,mt[14],2792965006,17),xt=ft(xt,Et,kt,wt,mt[15],1236535329,22),wt=ht(wt,xt,Et,kt,mt[1],4129170786,5),kt=ht(kt,wt,xt,Et,mt[6],3225465664,9),Et=ht(Et,kt,wt,xt,mt[11],643717713,14),xt=ht(xt,Et,kt,wt,mt[0],3921069994,20),wt=ht(wt,xt,Et,kt,mt[5],3593408605,5),kt=ht(kt,wt,xt,Et,mt[10],38016083,9),Et=ht(Et,kt,wt,xt,mt[15],3634488961,14),xt=ht(xt,Et,kt,wt,mt[4],3889429448,20),wt=ht(wt,xt,Et,kt,mt[9],568446438,5),kt=ht(kt,wt,xt,Et,mt[14],3275163606,9),Et=ht(Et,kt,wt,xt,mt[3],4107603335,14),xt=ht(xt,Et,kt,wt,mt[8],1163531501,20),wt=ht(wt,xt,Et,kt,mt[13],2850285829,5),kt=ht(kt,wt,xt,Et,mt[2],4243563512,9),Et=ht(Et,kt,wt,xt,mt[7],1735328473,14),xt=ht(xt,Et,kt,wt,mt[12],2368359562,20),wt=gt(wt,xt,Et,kt,mt[5],4294588738,4),kt=gt(kt,wt,xt,Et,mt[8],2272392833,11),Et=gt(Et,kt,wt,xt,mt[11],1839030562,16),xt=gt(xt,Et,kt,wt,mt[14],4259657740,23),wt=gt(wt,xt,Et,kt,mt[1],2763975236,4),kt=gt(kt,wt,xt,Et,mt[4],1272893353,11),Et=gt(Et,kt,wt,xt,mt[7],4139469664,16),xt=gt(xt,Et,kt,wt,mt[10],3200236656,23),wt=gt(wt,xt,Et,kt,mt[13],681279174,4),kt=gt(kt,wt,xt,Et,mt[0],3936430074,11),Et=gt(Et,kt,wt,xt,mt[3],3572445317,16),xt=gt(xt,Et,kt,wt,mt[6],76029189,23),wt=gt(wt,xt,Et,kt,mt[9],3654602809,4),kt=gt(kt,wt,xt,Et,mt[12],3873151461,11),Et=gt(Et,kt,wt,xt,mt[15],530742520,16),xt=gt(xt,Et,kt,wt,mt[2],3299628645,23),wt=vt(wt,xt,Et,kt,mt[0],4096336452,6),kt=vt(kt,wt,xt,Et,mt[7],1126891415,10),Et=vt(Et,kt,wt,xt,mt[14],2878612391,15),xt=vt(xt,Et,kt,wt,mt[5],4237533241,21),wt=vt(wt,xt,Et,kt,mt[12],1700485571,6),kt=vt(kt,wt,xt,Et,mt[3],2399980690,10),Et=vt(Et,kt,wt,xt,mt[10],4293915773,15),xt=vt(xt,Et,kt,wt,mt[1],2240044497,21),wt=vt(wt,xt,Et,kt,mt[8],1873313359,6),kt=vt(kt,wt,xt,Et,mt[15],4264355552,10),Et=vt(Et,kt,wt,xt,mt[6],2734768916,15),xt=vt(xt,Et,kt,wt,mt[13],1309151649,21),wt=vt(wt,xt,Et,kt,mt[4],4149444226,6),kt=vt(kt,wt,xt,Et,mt[11],3174756917,10),Et=vt(Et,kt,wt,xt,mt[2],718787259,15),xt=vt(xt,Et,kt,wt,mt[9],3951481745,21),this._a=this._a+wt|0,this._b=this._b+xt|0,this._c=this._c+Et|0,this._d=this._d+kt|0},st.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 mt=tt.allocUnsafe(16);return mt.writeInt32LE(this._a,0),mt.writeInt32LE(this._b,4),mt.writeInt32LE(this._c,8),mt.writeInt32LE(this._d,12),mt};function ot(mt,bt){return mt<>>32-bt}function ft(mt,bt,wt,xt,Et,kt,Dt){return ot(mt+(bt&wt|~bt&xt)+Et+kt|0,Dt)+bt|0}function ht(mt,bt,wt,xt,Et,kt,Dt){return ot(mt+(bt&xt|wt&~xt)+Et+kt|0,Dt)+bt|0}function gt(mt,bt,wt,xt,Et,kt,Dt){return ot(mt+(bt^wt^xt)+Et+kt|0,Dt)+bt|0}function vt(mt,bt,wt,xt,Et,kt,Dt){return ot(mt+(wt^(bt|~xt))+Et+kt|0,Dt)+bt|0}return md5_js=st,md5_js}var hashBase,hasRequiredHashBase;function requireHashBase(){if(hasRequiredHashBase)return hashBase;hasRequiredHashBase=1;var d=requireSafeBuffer$1().Buffer,b=requireReadableBrowser$1().Transform,tt=requireInherits_browser();function nt(ot,ft){if(!d.isBuffer(ot)&&typeof ot!="string")throw new TypeError(ft+" must be a string or a buffer")}function st(ot){b.call(this),this._block=d.allocUnsafe(ot),this._blockSize=ot,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return tt(st,b),st.prototype._transform=function(ot,ft,ht){var gt=null;try{this.update(ot,ft)}catch(vt){gt=vt}ht(gt)},st.prototype._flush=function(ot){var ft=null;try{this.push(this.digest())}catch(ht){ft=ht}ot(ft)},st.prototype.update=function(ot,ft){if(nt(ot,"Data"),this._finalized)throw new Error("Digest already called");d.isBuffer(ot)||(ot=d.from(ot,ft));for(var ht=this._block,gt=0;this._blockOffset+ot.length-gt>=this._blockSize;){for(var vt=this._blockOffset;vt0;++mt)this._length[mt]+=bt,bt=this._length[mt]/4294967296|0,bt>0&&(this._length[mt]-=4294967296*bt);return this},st.prototype._update=function(){throw new Error("_update is not implemented")},st.prototype.digest=function(ot){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var ft=this._digest();ot!==void 0&&(ft=ft.toString(ot)),this._block.fill(0),this._blockOffset=0;for(var ht=0;ht<4;++ht)this._length[ht]=0;return ft},st.prototype._digest=function(){throw new Error("_digest is not implemented")},hashBase=st,hashBase}var ripemd160,hasRequiredRipemd160;function requireRipemd160(){if(hasRequiredRipemd160)return ripemd160;hasRequiredRipemd160=1;var d=require$$1$3.Buffer,b=requireInherits_browser(),tt=requireHashBase(),nt=new Array(16),st=[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],ot=[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],ft=[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],ht=[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],gt=[0,1518500249,1859775393,2400959708,2840853838],vt=[1352829926,1548603684,1836072691,2053994217,0];function mt(){tt.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}b(mt,tt),mt.prototype._update=function(){for(var Tt=nt,qt=0;qt<16;++qt)Tt[qt]=this._block.readInt32LE(qt*4);for(var jt=this._a|0,Lt=this._b|0,Gt=this._c|0,Qt=this._d|0,tr=this._e|0,sr=this._a|0,ar=this._b|0,_r=this._c|0,Jt=this._d|0,Rt=this._e|0,Ct=0;Ct<80;Ct+=1){var yt,_t;Ct<16?(yt=wt(jt,Lt,Gt,Qt,tr,Tt[st[Ct]],gt[0],ft[Ct]),_t=Dt(sr,ar,_r,Jt,Rt,Tt[ot[Ct]],vt[0],ht[Ct])):Ct<32?(yt=xt(jt,Lt,Gt,Qt,tr,Tt[st[Ct]],gt[1],ft[Ct]),_t=kt(sr,ar,_r,Jt,Rt,Tt[ot[Ct]],vt[1],ht[Ct])):Ct<48?(yt=Et(jt,Lt,Gt,Qt,tr,Tt[st[Ct]],gt[2],ft[Ct]),_t=Et(sr,ar,_r,Jt,Rt,Tt[ot[Ct]],vt[2],ht[Ct])):Ct<64?(yt=kt(jt,Lt,Gt,Qt,tr,Tt[st[Ct]],gt[3],ft[Ct]),_t=xt(sr,ar,_r,Jt,Rt,Tt[ot[Ct]],vt[3],ht[Ct])):(yt=Dt(jt,Lt,Gt,Qt,tr,Tt[st[Ct]],gt[4],ft[Ct]),_t=wt(sr,ar,_r,Jt,Rt,Tt[ot[Ct]],vt[4],ht[Ct])),jt=tr,tr=Qt,Qt=bt(Gt,10),Gt=Lt,Lt=yt,sr=Rt,Rt=Jt,Jt=bt(_r,10),_r=ar,ar=_t}var $t=this._b+Gt+Jt|0;this._b=this._c+Qt+Rt|0,this._c=this._d+tr+sr|0,this._d=this._e+jt+ar|0,this._e=this._a+Lt+_r|0,this._a=$t},mt.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 Tt=d.alloc?d.alloc(20):new d(20);return Tt.writeInt32LE(this._a,0),Tt.writeInt32LE(this._b,4),Tt.writeInt32LE(this._c,8),Tt.writeInt32LE(this._d,12),Tt.writeInt32LE(this._e,16),Tt};function bt(Tt,qt){return Tt<>>32-qt}function wt(Tt,qt,jt,Lt,Gt,Qt,tr,sr){return bt(Tt+(qt^jt^Lt)+Qt+tr|0,sr)+Gt|0}function xt(Tt,qt,jt,Lt,Gt,Qt,tr,sr){return bt(Tt+(qt&jt|~qt&Lt)+Qt+tr|0,sr)+Gt|0}function Et(Tt,qt,jt,Lt,Gt,Qt,tr,sr){return bt(Tt+((qt|~jt)^Lt)+Qt+tr|0,sr)+Gt|0}function kt(Tt,qt,jt,Lt,Gt,Qt,tr,sr){return bt(Tt+(qt&Lt|jt&~Lt)+Qt+tr|0,sr)+Gt|0}function Dt(Tt,qt,jt,Lt,Gt,Qt,tr,sr){return bt(Tt+(qt^(jt|~Lt))+Qt+tr|0,sr)+Gt|0}return ripemd160=mt,ripemd160}var sha_js={exports:{}},hash$2,hasRequiredHash$1;function requireHash$1(){if(hasRequiredHash$1)return hash$2;hasRequiredHash$1=1;var d=requireSafeBuffer$1().Buffer;function b(tt,nt){this._block=d.alloc(tt),this._finalSize=nt,this._blockSize=tt,this._len=0}return b.prototype.update=function(tt,nt){typeof tt=="string"&&(nt=nt||"utf8",tt=d.from(tt,nt));for(var st=this._block,ot=this._blockSize,ft=tt.length,ht=this._len,gt=0;gt=this._finalSize&&(this._update(this._block),this._block.fill(0));var st=this._len*8;if(st<=4294967295)this._block.writeUInt32BE(st,this._blockSize-4);else{var ot=(st&4294967295)>>>0,ft=(st-ot)/4294967296;this._block.writeUInt32BE(ft,this._blockSize-8),this._block.writeUInt32BE(ot,this._blockSize-4)}this._update(this._block);var ht=this._hash();return tt?ht.toString(tt):ht},b.prototype._update=function(){throw new Error("_update must be implemented by subclass")},hash$2=b,hash$2}var sha$2,hasRequiredSha$1;function requireSha$1(){if(hasRequiredSha$1)return sha$2;hasRequiredSha$1=1;var d=requireInherits_browser(),b=requireHash$1(),tt=requireSafeBuffer$1().Buffer,nt=[1518500249,1859775393,-1894007588,-899497514],st=new Array(80);function ot(){this.init(),this._w=st,b.call(this,64,56)}d(ot,b),ot.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function ft(vt){return vt<<5|vt>>>27}function ht(vt){return vt<<30|vt>>>2}function gt(vt,mt,bt,wt){return vt===0?mt&bt|~mt&wt:vt===2?mt&bt|mt&wt|bt&wt:mt^bt^wt}return ot.prototype._update=function(vt){for(var mt=this._w,bt=this._a|0,wt=this._b|0,xt=this._c|0,Et=this._d|0,kt=this._e|0,Dt=0;Dt<16;++Dt)mt[Dt]=vt.readInt32BE(Dt*4);for(;Dt<80;++Dt)mt[Dt]=mt[Dt-3]^mt[Dt-8]^mt[Dt-14]^mt[Dt-16];for(var Tt=0;Tt<80;++Tt){var qt=~~(Tt/20),jt=ft(bt)+gt(qt,wt,xt,Et)+kt+mt[Tt]+nt[qt]|0;kt=Et,Et=xt,xt=ht(wt),wt=bt,bt=jt}this._a=bt+this._a|0,this._b=wt+this._b|0,this._c=xt+this._c|0,this._d=Et+this._d|0,this._e=kt+this._e|0},ot.prototype._hash=function(){var vt=tt.allocUnsafe(20);return vt.writeInt32BE(this._a|0,0),vt.writeInt32BE(this._b|0,4),vt.writeInt32BE(this._c|0,8),vt.writeInt32BE(this._d|0,12),vt.writeInt32BE(this._e|0,16),vt},sha$2=ot,sha$2}var sha1,hasRequiredSha1;function requireSha1(){if(hasRequiredSha1)return sha1;hasRequiredSha1=1;var d=requireInherits_browser(),b=requireHash$1(),tt=requireSafeBuffer$1().Buffer,nt=[1518500249,1859775393,-1894007588,-899497514],st=new Array(80);function ot(){this.init(),this._w=st,b.call(this,64,56)}d(ot,b),ot.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function ft(mt){return mt<<1|mt>>>31}function ht(mt){return mt<<5|mt>>>27}function gt(mt){return mt<<30|mt>>>2}function vt(mt,bt,wt,xt){return mt===0?bt&wt|~bt&xt:mt===2?bt&wt|bt&xt|wt&xt:bt^wt^xt}return ot.prototype._update=function(mt){for(var bt=this._w,wt=this._a|0,xt=this._b|0,Et=this._c|0,kt=this._d|0,Dt=this._e|0,Tt=0;Tt<16;++Tt)bt[Tt]=mt.readInt32BE(Tt*4);for(;Tt<80;++Tt)bt[Tt]=ft(bt[Tt-3]^bt[Tt-8]^bt[Tt-14]^bt[Tt-16]);for(var qt=0;qt<80;++qt){var jt=~~(qt/20),Lt=ht(wt)+vt(jt,xt,Et,kt)+Dt+bt[qt]+nt[jt]|0;Dt=kt,kt=Et,Et=gt(xt),xt=wt,wt=Lt}this._a=wt+this._a|0,this._b=xt+this._b|0,this._c=Et+this._c|0,this._d=kt+this._d|0,this._e=Dt+this._e|0},ot.prototype._hash=function(){var mt=tt.allocUnsafe(20);return mt.writeInt32BE(this._a|0,0),mt.writeInt32BE(this._b|0,4),mt.writeInt32BE(this._c|0,8),mt.writeInt32BE(this._d|0,12),mt.writeInt32BE(this._e|0,16),mt},sha1=ot,sha1}var sha256$5,hasRequiredSha256;function requireSha256(){if(hasRequiredSha256)return sha256$5;hasRequiredSha256=1;var d=requireInherits_browser(),b=requireHash$1(),tt=requireSafeBuffer$1().Buffer,nt=[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],st=new Array(64);function ot(){this.init(),this._w=st,b.call(this,64,56)}d(ot,b),ot.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};function ft(wt,xt,Et){return Et^wt&(xt^Et)}function ht(wt,xt,Et){return wt&xt|Et&(wt|xt)}function gt(wt){return(wt>>>2|wt<<30)^(wt>>>13|wt<<19)^(wt>>>22|wt<<10)}function vt(wt){return(wt>>>6|wt<<26)^(wt>>>11|wt<<21)^(wt>>>25|wt<<7)}function mt(wt){return(wt>>>7|wt<<25)^(wt>>>18|wt<<14)^wt>>>3}function bt(wt){return(wt>>>17|wt<<15)^(wt>>>19|wt<<13)^wt>>>10}return ot.prototype._update=function(wt){for(var xt=this._w,Et=this._a|0,kt=this._b|0,Dt=this._c|0,Tt=this._d|0,qt=this._e|0,jt=this._f|0,Lt=this._g|0,Gt=this._h|0,Qt=0;Qt<16;++Qt)xt[Qt]=wt.readInt32BE(Qt*4);for(;Qt<64;++Qt)xt[Qt]=bt(xt[Qt-2])+xt[Qt-7]+mt(xt[Qt-15])+xt[Qt-16]|0;for(var tr=0;tr<64;++tr){var sr=Gt+vt(qt)+ft(qt,jt,Lt)+nt[tr]+xt[tr]|0,ar=gt(Et)+ht(Et,kt,Dt)|0;Gt=Lt,Lt=jt,jt=qt,qt=Tt+sr|0,Tt=Dt,Dt=kt,kt=Et,Et=sr+ar|0}this._a=Et+this._a|0,this._b=kt+this._b|0,this._c=Dt+this._c|0,this._d=Tt+this._d|0,this._e=qt+this._e|0,this._f=jt+this._f|0,this._g=Lt+this._g|0,this._h=Gt+this._h|0},ot.prototype._hash=function(){var wt=tt.allocUnsafe(32);return wt.writeInt32BE(this._a,0),wt.writeInt32BE(this._b,4),wt.writeInt32BE(this._c,8),wt.writeInt32BE(this._d,12),wt.writeInt32BE(this._e,16),wt.writeInt32BE(this._f,20),wt.writeInt32BE(this._g,24),wt.writeInt32BE(this._h,28),wt},sha256$5=ot,sha256$5}var sha224$1,hasRequiredSha224;function requireSha224(){if(hasRequiredSha224)return sha224$1;hasRequiredSha224=1;var d=requireInherits_browser(),b=requireSha256(),tt=requireHash$1(),nt=requireSafeBuffer$1().Buffer,st=new Array(64);function ot(){this.init(),this._w=st,tt.call(this,64,56)}return d(ot,b),ot.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},ot.prototype._hash=function(){var ft=nt.allocUnsafe(28);return ft.writeInt32BE(this._a,0),ft.writeInt32BE(this._b,4),ft.writeInt32BE(this._c,8),ft.writeInt32BE(this._d,12),ft.writeInt32BE(this._e,16),ft.writeInt32BE(this._f,20),ft.writeInt32BE(this._g,24),ft},sha224$1=ot,sha224$1}var sha512$5,hasRequiredSha512;function requireSha512(){if(hasRequiredSha512)return sha512$5;hasRequiredSha512=1;var d=requireInherits_browser(),b=requireHash$1(),tt=requireSafeBuffer$1().Buffer,nt=[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],st=new Array(160);function ot(){this.init(),this._w=st,b.call(this,128,112)}d(ot,b),ot.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};function ft(kt,Dt,Tt){return Tt^kt&(Dt^Tt)}function ht(kt,Dt,Tt){return kt&Dt|Tt&(kt|Dt)}function gt(kt,Dt){return(kt>>>28|Dt<<4)^(Dt>>>2|kt<<30)^(Dt>>>7|kt<<25)}function vt(kt,Dt){return(kt>>>14|Dt<<18)^(kt>>>18|Dt<<14)^(Dt>>>9|kt<<23)}function mt(kt,Dt){return(kt>>>1|Dt<<31)^(kt>>>8|Dt<<24)^kt>>>7}function bt(kt,Dt){return(kt>>>1|Dt<<31)^(kt>>>8|Dt<<24)^(kt>>>7|Dt<<25)}function wt(kt,Dt){return(kt>>>19|Dt<<13)^(Dt>>>29|kt<<3)^kt>>>6}function xt(kt,Dt){return(kt>>>19|Dt<<13)^(Dt>>>29|kt<<3)^(kt>>>6|Dt<<26)}function Et(kt,Dt){return kt>>>0
>>0?1:0}return ot.prototype._update=function(kt){for(var Dt=this._w,Tt=this._ah|0,qt=this._bh|0,jt=this._ch|0,Lt=this._dh|0,Gt=this._eh|0,Qt=this._fh|0,tr=this._gh|0,sr=this._hh|0,ar=this._al|0,_r=this._bl|0,Jt=this._cl|0,Rt=this._dl|0,Ct=this._el|0,yt=this._fl|0,_t=this._gl|0,$t=this._hl|0,At=0;At<32;At+=2)Dt[At]=kt.readInt32BE(At*4),Dt[At+1]=kt.readInt32BE(At*4+4);for(;At<160;At+=2){var It=Dt[At-30],Bt=Dt[At-15*2+1],Pt=mt(It,Bt),Ot=bt(Bt,It);It=Dt[At-2*2],Bt=Dt[At-2*2+1];var Mt=wt(It,Bt),zt=xt(Bt,It),yr=Dt[At-7*2],vr=Dt[At-7*2+1],hr=Dt[At-16*2],rr=Dt[At-16*2+1],er=Ot+vr|0,fr=Pt+yr+Et(er,Ot)|0;er=er+zt|0,fr=fr+Mt+Et(er,zt)|0,er=er+rr|0,fr=fr+hr+Et(er,rr)|0,Dt[At]=fr,Dt[At+1]=er}for(var wr=0;wr<160;wr+=2){fr=Dt[wr],er=Dt[wr+1];var nr=ht(Tt,qt,jt),ir=ht(ar,_r,Jt),Br=gt(Tt,ar),Ir=gt(ar,Tt),Dr=vt(Gt,Ct),Jr=vt(Ct,Gt),Yr=nt[wr],Wr=nt[wr+1],Or=ft(Gt,Qt,tr),hn=ft(Ct,yt,_t),nn=$t+Jr|0,kn=sr+Dr+Et(nn,$t)|0;nn=nn+hn|0,kn=kn+Or+Et(nn,hn)|0,nn=nn+Wr|0,kn=kn+Yr+Et(nn,Wr)|0,nn=nn+er|0,kn=kn+fr+Et(nn,er)|0;var yn=Ir+ir|0,rn=Br+nr+Et(yn,Ir)|0;sr=tr,$t=_t,tr=Qt,_t=yt,Qt=Gt,yt=Ct,Ct=Rt+nn|0,Gt=Lt+kn+Et(Ct,Rt)|0,Lt=jt,Rt=Jt,jt=qt,Jt=_r,qt=Tt,_r=ar,ar=nn+yn|0,Tt=kn+rn+Et(ar,nn)|0}this._al=this._al+ar|0,this._bl=this._bl+_r|0,this._cl=this._cl+Jt|0,this._dl=this._dl+Rt|0,this._el=this._el+Ct|0,this._fl=this._fl+yt|0,this._gl=this._gl+_t|0,this._hl=this._hl+$t|0,this._ah=this._ah+Tt+Et(this._al,ar)|0,this._bh=this._bh+qt+Et(this._bl,_r)|0,this._ch=this._ch+jt+Et(this._cl,Jt)|0,this._dh=this._dh+Lt+Et(this._dl,Rt)|0,this._eh=this._eh+Gt+Et(this._el,Ct)|0,this._fh=this._fh+Qt+Et(this._fl,yt)|0,this._gh=this._gh+tr+Et(this._gl,_t)|0,this._hh=this._hh+sr+Et(this._hl,$t)|0},ot.prototype._hash=function(){var kt=tt.allocUnsafe(64);function Dt(Tt,qt,jt){kt.writeInt32BE(Tt,jt),kt.writeInt32BE(qt,jt+4)}return Dt(this._ah,this._al,0),Dt(this._bh,this._bl,8),Dt(this._ch,this._cl,16),Dt(this._dh,this._dl,24),Dt(this._eh,this._el,32),Dt(this._fh,this._fl,40),Dt(this._gh,this._gl,48),Dt(this._hh,this._hl,56),kt},sha512$5=ot,sha512$5}var sha384$1,hasRequiredSha384;function requireSha384(){if(hasRequiredSha384)return sha384$1;hasRequiredSha384=1;var d=requireInherits_browser(),b=requireSha512(),tt=requireHash$1(),nt=requireSafeBuffer$1().Buffer,st=new Array(160);function ot(){this.init(),this._w=st,tt.call(this,128,112)}return d(ot,b),ot.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},ot.prototype._hash=function(){var ft=nt.allocUnsafe(48);function ht(gt,vt,mt){ft.writeInt32BE(gt,mt),ft.writeInt32BE(vt,mt+4)}return ht(this._ah,this._al,0),ht(this._bh,this._bl,8),ht(this._ch,this._cl,16),ht(this._dh,this._dl,24),ht(this._eh,this._el,32),ht(this._fh,this._fl,40),ft},sha384$1=ot,sha384$1}var hasRequiredSha_js;function requireSha_js(){if(hasRequiredSha_js)return sha_js.exports;hasRequiredSha_js=1;var d=sha_js.exports=function(tt){tt=tt.toLowerCase();var nt=d[tt];if(!nt)throw new Error(tt+" is not supported (we accept pull requests)");return new nt};return d.sha=requireSha$1(),d.sha1=requireSha1(),d.sha224=requireSha224(),d.sha256=requireSha256(),d.sha384=requireSha384(),d.sha512=requireSha512(),sha_js.exports}var streamBrowserify,hasRequiredStreamBrowserify;function requireStreamBrowserify(){if(hasRequiredStreamBrowserify)return streamBrowserify;hasRequiredStreamBrowserify=1,streamBrowserify=tt;var d=requireEvents().EventEmitter,b=requireInherits_browser();b(tt,d),tt.Readable=require_stream_readable$1(),tt.Writable=require_stream_writable$1(),tt.Duplex=require_stream_duplex$1(),tt.Transform=require_stream_transform$1(),tt.PassThrough=require_stream_passthrough$1(),tt.finished=requireEndOfStream(),tt.pipeline=requirePipeline(),tt.Stream=tt;function tt(){d.call(this)}return tt.prototype.pipe=function(nt,st){var ot=this;function ft(xt){nt.writable&&nt.write(xt)===!1&&ot.pause&&ot.pause()}ot.on("data",ft);function ht(){ot.readable&&ot.resume&&ot.resume()}nt.on("drain",ht),!nt._isStdio&&(!st||st.end!==!1)&&(ot.on("end",vt),ot.on("close",mt));var gt=!1;function vt(){gt||(gt=!0,nt.end())}function mt(){gt||(gt=!0,typeof nt.destroy=="function"&&nt.destroy())}function bt(xt){if(wt(),d.listenerCount(this,"error")===0)throw xt}ot.on("error",bt),nt.on("error",bt);function wt(){ot.removeListener("data",ft),nt.removeListener("drain",ht),ot.removeListener("end",vt),ot.removeListener("close",mt),ot.removeListener("error",bt),nt.removeListener("error",bt),ot.removeListener("end",wt),ot.removeListener("close",wt),nt.removeListener("close",wt)}return ot.on("end",wt),ot.on("close",wt),nt.on("close",wt),nt.emit("pipe",ot),nt},streamBrowserify}var cipherBase,hasRequiredCipherBase;function requireCipherBase(){if(hasRequiredCipherBase)return cipherBase;hasRequiredCipherBase=1;var d=requireSafeBuffer$1().Buffer,b=requireStreamBrowserify().Transform,tt=requireString_decoder().StringDecoder,nt=requireInherits_browser();function st(ot){b.call(this),this.hashMode=typeof ot=="string",this.hashMode?this[ot]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}return nt(st,b),st.prototype.update=function(ot,ft,ht){typeof ot=="string"&&(ot=d.from(ot,ft));var gt=this._update(ot);return this.hashMode?this:(ht&&(gt=this._toString(gt,ht)),gt)},st.prototype.setAutoPadding=function(){},st.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},st.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},st.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},st.prototype._transform=function(ot,ft,ht){var gt;try{this.hashMode?this._update(ot):this.push(this._update(ot))}catch(vt){gt=vt}finally{ht(gt)}},st.prototype._flush=function(ot){var ft;try{this.push(this.__final())}catch(ht){ft=ht}ot(ft)},st.prototype._finalOrDigest=function(ot){var ft=this.__final()||d.alloc(0);return ot&&(ft=this._toString(ft,ot,!0)),ft},st.prototype._toString=function(ot,ft,ht){if(this._decoder||(this._decoder=new tt(ft),this._encoding=ft),this._encoding!==ft)throw new Error("can't switch encodings");var gt=this._decoder.write(ot);return ht&&(gt+=this._decoder.end()),gt},cipherBase=st,cipherBase}var browser$a,hasRequiredBrowser$9;function requireBrowser$9(){if(hasRequiredBrowser$9)return browser$a;hasRequiredBrowser$9=1;var d=requireInherits_browser(),b=requireMd5_js(),tt=requireRipemd160(),nt=requireSha_js(),st=requireCipherBase();function ot(ft){st.call(this,"digest"),this._hash=ft}return d(ot,st),ot.prototype._update=function(ft){this._hash.update(ft)},ot.prototype._final=function(){return this._hash.digest()},browser$a=function(ht){return ht=ht.toLowerCase(),ht==="md5"?new b:ht==="rmd160"||ht==="ripemd160"?new tt:new ot(nt(ht))},browser$a}var legacy,hasRequiredLegacy;function requireLegacy(){if(hasRequiredLegacy)return legacy;hasRequiredLegacy=1;var d=requireInherits_browser(),b=requireSafeBuffer$1().Buffer,tt=requireCipherBase(),nt=b.alloc(128),st=64;function ot(ft,ht){tt.call(this,"digest"),typeof ht=="string"&&(ht=b.from(ht)),this._alg=ft,this._key=ht,ht.length>st?ht=ft(ht):ht.lengthbt){var wt=vt==="rmd160"?new ot:ft(vt);mt=wt.update(mt).digest()}else mt.lengthd||tt!==tt)throw new TypeError("Bad key length")},precondition}var defaultEncoding_1,hasRequiredDefaultEncoding;function requireDefaultEncoding(){if(hasRequiredDefaultEncoding)return defaultEncoding_1;hasRequiredDefaultEncoding=1;var d;if(commonjsGlobal.process&&commonjsGlobal.process.browser)d="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var b=parseInt(process$1.version.split(".")[0].slice(1),10);d=b>=6?"utf-8":"binary"}else d="utf-8";return defaultEncoding_1=d,defaultEncoding_1}var toBuffer,hasRequiredToBuffer;function requireToBuffer(){if(hasRequiredToBuffer)return toBuffer;hasRequiredToBuffer=1;var d=requireSafeBuffer$1().Buffer;return toBuffer=function(b,tt,nt){if(d.isBuffer(b))return b;if(typeof b=="string")return d.from(b,tt);if(ArrayBuffer.isView(b))return d.from(b.buffer);throw new TypeError(nt+" must be a string, a Buffer, a typed array or a DataView")},toBuffer}var syncBrowser,hasRequiredSyncBrowser;function requireSyncBrowser(){if(hasRequiredSyncBrowser)return syncBrowser;hasRequiredSyncBrowser=1;var d=requireMd5(),b=requireRipemd160(),tt=requireSha_js(),nt=requireSafeBuffer$1().Buffer,st=requirePrecondition(),ot=requireDefaultEncoding(),ft=requireToBuffer(),ht=nt.alloc(128),gt={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function vt(wt,xt,Et){var kt=mt(wt),Dt=wt==="sha512"||wt==="sha384"?128:64;xt.length>Dt?xt=kt(xt):xt.length>>0},utils$c.writeUInt32BE=function(st,ot,ft){st[0+ft]=ot>>>24,st[1+ft]=ot>>>16&255,st[2+ft]=ot>>>8&255,st[3+ft]=ot&255},utils$c.ip=function(st,ot,ft,ht){for(var gt=0,vt=0,mt=6;mt>=0;mt-=2){for(var bt=0;bt<=24;bt+=8)gt<<=1,gt|=ot>>>bt+mt&1;for(var bt=0;bt<=24;bt+=8)gt<<=1,gt|=st>>>bt+mt&1}for(var mt=6;mt>=0;mt-=2){for(var bt=1;bt<=25;bt+=8)vt<<=1,vt|=ot>>>bt+mt&1;for(var bt=1;bt<=25;bt+=8)vt<<=1,vt|=st>>>bt+mt&1}ft[ht+0]=gt>>>0,ft[ht+1]=vt>>>0},utils$c.rip=function(st,ot,ft,ht){for(var gt=0,vt=0,mt=0;mt<4;mt++)for(var bt=24;bt>=0;bt-=8)gt<<=1,gt|=ot>>>bt+mt&1,gt<<=1,gt|=st>>>bt+mt&1;for(var mt=4;mt<8;mt++)for(var bt=24;bt>=0;bt-=8)vt<<=1,vt|=ot>>>bt+mt&1,vt<<=1,vt|=st>>>bt+mt&1;ft[ht+0]=gt>>>0,ft[ht+1]=vt>>>0},utils$c.pc1=function(st,ot,ft,ht){for(var gt=0,vt=0,mt=7;mt>=5;mt--){for(var bt=0;bt<=24;bt+=8)gt<<=1,gt|=ot>>bt+mt&1;for(var bt=0;bt<=24;bt+=8)gt<<=1,gt|=st>>bt+mt&1}for(var bt=0;bt<=24;bt+=8)gt<<=1,gt|=ot>>bt+mt&1;for(var mt=1;mt<=3;mt++){for(var bt=0;bt<=24;bt+=8)vt<<=1,vt|=ot>>bt+mt&1;for(var bt=0;bt<=24;bt+=8)vt<<=1,vt|=st>>bt+mt&1}for(var bt=0;bt<=24;bt+=8)vt<<=1,vt|=st>>bt+mt&1;ft[ht+0]=gt>>>0,ft[ht+1]=vt>>>0},utils$c.r28shl=function(st,ot){return st<>>28-ot};var d=[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];utils$c.pc2=function(st,ot,ft,ht){for(var gt=0,vt=0,mt=d.length>>>1,bt=0;bt>>d[bt]&1;for(var bt=mt;bt>>d[bt]&1;ft[ht+0]=gt>>>0,ft[ht+1]=vt>>>0},utils$c.expand=function(st,ot,ft){var ht=0,gt=0;ht=(st&1)<<5|st>>>27;for(var vt=23;vt>=15;vt-=4)ht<<=6,ht|=st>>>vt&63;for(var vt=11;vt>=3;vt-=4)gt|=st>>>vt&63,gt<<=6;gt|=(st&31)<<1|st>>>31,ot[ft+0]=ht>>>0,ot[ft+1]=gt>>>0};var b=[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];utils$c.substitute=function(st,ot){for(var ft=0,ht=0;ht<4;ht++){var gt=st>>>18-ht*6&63,vt=b[ht*64+gt];ft<<=4,ft|=vt}for(var ht=0;ht<4;ht++){var gt=ot>>>18-ht*6&63,vt=b[4*64+ht*64+gt];ft<<=4,ft|=vt}return ft>>>0};var tt=[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];return utils$c.permute=function(st){for(var ot=0,ft=0;ft>>tt[ft]&1;return ot>>>0},utils$c.padSplit=function(st,ot,ft){for(var ht=st.toString(2);ht.length0;ft--)st+=this._buffer(nt,st),ot+=this._flushBuffer(ht,ot);return st+=this._buffer(nt,st),ht},b.prototype.final=function(nt){var st;nt&&(st=this.update(nt));var ot;return this.type==="encrypt"?ot=this._finalEncrypt():ot=this._finalDecrypt(),st?st.concat(ot):ot},b.prototype._pad=function(nt,st){if(st===0)return!1;for(;st>>1];mt=tt.r28shl(mt,xt),bt=tt.r28shl(bt,xt),tt.pc2(mt,bt,gt.keys,wt)}},ot.prototype._update=function(gt,vt,mt,bt){var wt=this._desState,xt=tt.readUInt32BE(gt,vt),Et=tt.readUInt32BE(gt,vt+4);tt.ip(xt,Et,wt.tmp,0),xt=wt.tmp[0],Et=wt.tmp[1],this.type==="encrypt"?this._encrypt(wt,xt,Et,wt.tmp,0):this._decrypt(wt,xt,Et,wt.tmp,0),xt=wt.tmp[0],Et=wt.tmp[1],tt.writeUInt32BE(mt,xt,bt),tt.writeUInt32BE(mt,Et,bt+4)},ot.prototype._pad=function(gt,vt){if(this.padding===!1)return!1;for(var mt=gt.length-vt,bt=vt;bt>>0,xt=Lt}tt.rip(Et,xt,bt,wt)},ot.prototype._decrypt=function(gt,vt,mt,bt,wt){for(var xt=mt,Et=vt,kt=gt.keys.length-2;kt>=0;kt-=2){var Dt=gt.keys[kt],Tt=gt.keys[kt+1];tt.expand(xt,gt.tmp,0),Dt^=gt.tmp[0],Tt^=gt.tmp[1];var qt=tt.substitute(Dt,Tt),jt=tt.permute(qt),Lt=xt;xt=(Et^jt)>>>0,Et=Lt}tt.rip(xt,Et,bt,wt)},des}var cbc$1={},hasRequiredCbc$1;function requireCbc$1(){if(hasRequiredCbc$1)return cbc$1;hasRequiredCbc$1=1;var d=requireMinimalisticAssert(),b=requireInherits_browser(),tt={};function nt(ot){d.equal(ot.length,8,"Invalid IV length"),this.iv=new Array(8);for(var ft=0;ft>ht%8,nt._prev=tt(nt._prev,ot?mt:bt);return vt}function tt(nt,st){var ot=nt.length,ft=-1,ht=d.allocUnsafe(nt.length);for(nt=d.concat([nt,d.from([st])]);++ft>7;return ht}return cfb1.encrypt=function(nt,st,ot){for(var ft=st.length,ht=d.allocUnsafe(ft),gt=-1;++gt>>24]^xt[Tt>>>16&255]^Et[qt>>>8&255]^kt[jt&255]^gt[sr++],Gt=wt[Tt>>>24]^xt[qt>>>16&255]^Et[jt>>>8&255]^kt[Dt&255]^gt[sr++],Qt=wt[qt>>>24]^xt[jt>>>16&255]^Et[Dt>>>8&255]^kt[Tt&255]^gt[sr++],tr=wt[jt>>>24]^xt[Dt>>>16&255]^Et[Tt>>>8&255]^kt[qt&255]^gt[sr++],Dt=Lt,Tt=Gt,qt=Qt,jt=tr;return Lt=(mt[Dt>>>24]<<24|mt[Tt>>>16&255]<<16|mt[qt>>>8&255]<<8|mt[jt&255])^gt[sr++],Gt=(mt[Tt>>>24]<<24|mt[qt>>>16&255]<<16|mt[jt>>>8&255]<<8|mt[Dt&255])^gt[sr++],Qt=(mt[qt>>>24]<<24|mt[jt>>>16&255]<<16|mt[Dt>>>8&255]<<8|mt[Tt&255])^gt[sr++],tr=(mt[jt>>>24]<<24|mt[Dt>>>16&255]<<16|mt[Tt>>>8&255]<<8|mt[qt&255])^gt[sr++],Lt=Lt>>>0,Gt=Gt>>>0,Qt=Qt>>>0,tr=tr>>>0,[Lt,Gt,Qt,tr]}var st=[0,1,2,4,8,16,32,64,128,27,54],ot=function(){for(var ht=new Array(256),gt=0;gt<256;gt++)gt<128?ht[gt]=gt<<1:ht[gt]=gt<<1^283;for(var vt=[],mt=[],bt=[[],[],[],[]],wt=[[],[],[],[]],xt=0,Et=0,kt=0;kt<256;++kt){var Dt=Et^Et<<1^Et<<2^Et<<3^Et<<4;Dt=Dt>>>8^Dt&255^99,vt[xt]=Dt,mt[Dt]=xt;var Tt=ht[xt],qt=ht[Tt],jt=ht[qt],Lt=ht[Dt]*257^Dt*16843008;bt[0][xt]=Lt<<24|Lt>>>8,bt[1][xt]=Lt<<16|Lt>>>16,bt[2][xt]=Lt<<8|Lt>>>24,bt[3][xt]=Lt,Lt=jt*16843009^qt*65537^Tt*257^xt*16843008,wt[0][Dt]=Lt<<24|Lt>>>8,wt[1][Dt]=Lt<<16|Lt>>>16,wt[2][Dt]=Lt<<8|Lt>>>24,wt[3][Dt]=Lt,xt===0?xt=Et=1:(xt=Tt^ht[ht[ht[jt^Tt]]],Et^=ht[ht[Et]])}return{SBOX:vt,INV_SBOX:mt,SUB_MIX:bt,INV_SUB_MIX:wt}}();function ft(ht){this._key=b(ht),this._reset()}return ft.blockSize=4*4,ft.keySize=256/8,ft.prototype.blockSize=ft.blockSize,ft.prototype.keySize=ft.keySize,ft.prototype._reset=function(){for(var ht=this._key,gt=ht.length,vt=gt+6,mt=(vt+1)*4,bt=[],wt=0;wt>>24,xt=ot.SBOX[xt>>>24]<<24|ot.SBOX[xt>>>16&255]<<16|ot.SBOX[xt>>>8&255]<<8|ot.SBOX[xt&255],xt^=st[wt/gt|0]<<24):gt>6&&wt%gt===4&&(xt=ot.SBOX[xt>>>24]<<24|ot.SBOX[xt>>>16&255]<<16|ot.SBOX[xt>>>8&255]<<8|ot.SBOX[xt&255]),bt[wt]=bt[wt-gt]^xt}for(var Et=[],kt=0;kt>>24]]^ot.INV_SUB_MIX[1][ot.SBOX[Tt>>>16&255]]^ot.INV_SUB_MIX[2][ot.SBOX[Tt>>>8&255]]^ot.INV_SUB_MIX[3][ot.SBOX[Tt&255]]}this._nRounds=vt,this._keySchedule=bt,this._invKeySchedule=Et},ft.prototype.encryptBlockRaw=function(ht){return ht=b(ht),nt(ht,this._keySchedule,ot.SUB_MIX,ot.SBOX,this._nRounds)},ft.prototype.encryptBlock=function(ht){var gt=this.encryptBlockRaw(ht),vt=d.allocUnsafe(16);return vt.writeUInt32BE(gt[0],0),vt.writeUInt32BE(gt[1],4),vt.writeUInt32BE(gt[2],8),vt.writeUInt32BE(gt[3],12),vt},ft.prototype.decryptBlock=function(ht){ht=b(ht);var gt=ht[1];ht[1]=ht[3],ht[3]=gt;var vt=nt(ht,this._invKeySchedule,ot.INV_SUB_MIX,ot.INV_SBOX,this._nRounds),mt=d.allocUnsafe(16);return mt.writeUInt32BE(vt[0],0),mt.writeUInt32BE(vt[3],4),mt.writeUInt32BE(vt[2],8),mt.writeUInt32BE(vt[1],12),mt},ft.prototype.scrub=function(){tt(this._keySchedule),tt(this._invKeySchedule),tt(this._key)},aes.AES=ft,aes}var ghash,hasRequiredGhash;function requireGhash(){if(hasRequiredGhash)return ghash;hasRequiredGhash=1;var d=requireSafeBuffer$1().Buffer,b=d.alloc(16,0);function tt(ot){return[ot.readUInt32BE(0),ot.readUInt32BE(4),ot.readUInt32BE(8),ot.readUInt32BE(12)]}function nt(ot){var ft=d.allocUnsafe(16);return ft.writeUInt32BE(ot[0]>>>0,0),ft.writeUInt32BE(ot[1]>>>0,4),ft.writeUInt32BE(ot[2]>>>0,8),ft.writeUInt32BE(ot[3]>>>0,12),ft}function st(ot){this.h=ot,this.state=d.alloc(16,0),this.cache=d.allocUnsafe(0)}return st.prototype.ghash=function(ot){for(var ft=-1;++ft0;ht--)ot[ht]=ot[ht]>>>1|(ot[ht-1]&1)<<31;ot[0]=ot[0]>>>1,vt&&(ot[0]=ot[0]^225<<24)}this.state=nt(ft)},st.prototype.update=function(ot){this.cache=d.concat([this.cache,ot]);for(var ft;this.cache.length>=16;)ft=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(ft)},st.prototype.final=function(ot,ft){return this.cache.length&&this.ghash(d.concat([this.cache,b],16)),this.ghash(nt([0,ot,0,ft])),this.state},ghash=st,ghash}var authCipher,hasRequiredAuthCipher;function requireAuthCipher(){if(hasRequiredAuthCipher)return authCipher;hasRequiredAuthCipher=1;var d=requireAes(),b=requireSafeBuffer$1().Buffer,tt=requireCipherBase(),nt=requireInherits_browser(),st=requireGhash(),ot=requireBufferXor(),ft=requireIncr32();function ht(mt,bt){var wt=0;mt.length!==bt.length&&wt++;for(var xt=Math.min(mt.length,bt.length),Et=0;Et0||ft>0;){var bt=new b;bt.update(mt),bt.update(nt),st&&bt.update(st),mt=bt.digest();var wt=0;if(ht>0){var xt=gt.length-ht;wt=Math.min(ht,mt.length),mt.copy(gt,xt,0,wt),ht-=wt}if(wt0){var Et=vt.length-ft,kt=Math.min(ft,mt.length-wt);mt.copy(vt,Et,wt,wt+kt),ft-=kt}}return mt.fill(0),{key:gt,iv:vt}}return evp_bytestokey=tt,evp_bytestokey}var hasRequiredEncrypter;function requireEncrypter(){if(hasRequiredEncrypter)return encrypter;hasRequiredEncrypter=1;var d=requireModes$1(),b=requireAuthCipher(),tt=requireSafeBuffer$1().Buffer,nt=requireStreamCipher(),st=requireCipherBase(),ot=requireAes(),ft=requireEvp_bytestokey(),ht=requireInherits_browser();function gt(xt,Et,kt){st.call(this),this._cache=new mt,this._cipher=new ot.AES(Et),this._prev=tt.from(kt),this._mode=xt,this._autopadding=!0}ht(gt,st),gt.prototype._update=function(xt){this._cache.add(xt);for(var Et,kt,Dt=[];Et=this._cache.get();)kt=this._mode.encrypt(this,Et),Dt.push(kt);return tt.concat(Dt)};var vt=tt.alloc(16,16);gt.prototype._final=function(){var xt=this._cache.flush();if(this._autopadding)return xt=this._mode.encrypt(this,xt),this._cipher.scrub(),xt;if(!xt.equals(vt))throw this._cipher.scrub(),new Error("data not multiple of block length")},gt.prototype.setAutoPadding=function(xt){return this._autopadding=!!xt,this};function mt(){this.cache=tt.allocUnsafe(0)}mt.prototype.add=function(xt){this.cache=tt.concat([this.cache,xt])},mt.prototype.get=function(){if(this.cache.length>15){var xt=this.cache.slice(0,16);return this.cache=this.cache.slice(16),xt}return null},mt.prototype.flush=function(){for(var xt=16-this.cache.length,Et=tt.allocUnsafe(xt),kt=-1;++kt16)return Et=this.cache.slice(0,16),this.cache=this.cache.slice(16),Et}else if(this.cache.length>=16)return Et=this.cache.slice(0,16),this.cache=this.cache.slice(16),Et;return null},vt.prototype.flush=function(){if(this.cache.length)return this.cache};function mt(xt){var Et=xt[15];if(Et<1||Et>16)throw new Error("unable to decrypt data");for(var kt=-1;++kt0?Rt:Ct},ot.min=function(Rt,Ct){return Rt.cmp(Ct)<0?Rt:Ct},ot.prototype._init=function(Rt,Ct,yt){if(typeof Rt=="number")return this._initNumber(Rt,Ct,yt);if(typeof Rt=="object")return this._initArray(Rt,Ct,yt);Ct==="hex"&&(Ct=16),nt(Ct===(Ct|0)&&Ct>=2&&Ct<=36),Rt=Rt.toString().replace(/\s+/g,"");var _t=0;Rt[0]==="-"&&(_t++,this.negative=1),_t=0;_t-=3)At=Rt[_t]|Rt[_t-1]<<8|Rt[_t-2]<<16,this.words[$t]|=At<>>26-It&67108863,It+=24,It>=26&&(It-=26,$t++);else if(yt==="le")for(_t=0,$t=0;_t>>26-It&67108863,It+=24,It>=26&&(It-=26,$t++);return this.strip()};function ht(Jt,Rt){var Ct=Jt.charCodeAt(Rt);return Ct>=65&&Ct<=70?Ct-55:Ct>=97&&Ct<=102?Ct-87:Ct-48&15}function gt(Jt,Rt,Ct){var yt=ht(Jt,Ct);return Ct-1>=Rt&&(yt|=ht(Jt,Ct-1)<<4),yt}ot.prototype._parseHex=function(Rt,Ct,yt){this.length=Math.ceil((Rt.length-Ct)/6),this.words=new Array(this.length);for(var _t=0;_t=Ct;_t-=2)It=gt(Rt,Ct,_t)<<$t,this.words[At]|=It&67108863,$t>=18?($t-=18,At+=1,this.words[At]|=It>>>26):$t+=8;else{var Bt=Rt.length-Ct;for(_t=Bt%2===0?Ct+1:Ct;_t=18?($t-=18,At+=1,this.words[At]|=It>>>26):$t+=8}this.strip()};function vt(Jt,Rt,Ct,yt){for(var _t=0,$t=Math.min(Jt.length,Ct),At=Rt;At<$t;At++){var It=Jt.charCodeAt(At)-48;_t*=yt,It>=49?_t+=It-49+10:It>=17?_t+=It-17+10:_t+=It}return _t}ot.prototype._parseBase=function(Rt,Ct,yt){this.words=[0],this.length=1;for(var _t=0,$t=1;$t<=67108863;$t*=Ct)_t++;_t--,$t=$t/Ct|0;for(var At=Rt.length-yt,It=At%_t,Bt=Math.min(At,At-It)+yt,Pt=0,Ot=yt;Ot1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},ot.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},ot.prototype.inspect=function(){return(this.red?""};var mt=["","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"],bt=[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],wt=[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];ot.prototype.toString=function(Rt,Ct){Rt=Rt||10,Ct=Ct|0||1;var yt;if(Rt===16||Rt==="hex"){yt="";for(var _t=0,$t=0,At=0;At>>24-_t&16777215,$t!==0||At!==this.length-1?yt=mt[6-Bt.length]+Bt+yt:yt=Bt+yt,_t+=2,_t>=26&&(_t-=26,At--)}for($t!==0&&(yt=$t.toString(16)+yt);yt.length%Ct!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}if(Rt===(Rt|0)&&Rt>=2&&Rt<=36){var Pt=bt[Rt],Ot=wt[Rt];yt="";var Mt=this.clone();for(Mt.negative=0;!Mt.isZero();){var zt=Mt.modn(Ot).toString(Rt);Mt=Mt.idivn(Ot),Mt.isZero()?yt=zt+yt:yt=mt[Pt-zt.length]+zt+yt}for(this.isZero()&&(yt="0"+yt);yt.length%Ct!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}nt(!1,"Base should be between 2 and 36")},ot.prototype.toNumber=function(){var Rt=this.words[0];return this.length===2?Rt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Rt+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Rt:Rt},ot.prototype.toJSON=function(){return this.toString(16)},ot.prototype.toBuffer=function(Rt,Ct){return nt(typeof ft<"u"),this.toArrayLike(ft,Rt,Ct)},ot.prototype.toArray=function(Rt,Ct){return this.toArrayLike(Array,Rt,Ct)},ot.prototype.toArrayLike=function(Rt,Ct,yt){var _t=this.byteLength(),$t=yt||Math.max(1,_t);nt(_t<=$t,"byte array longer than desired length"),nt($t>0,"Requested array length <= 0"),this.strip();var At=Ct==="le",It=new Rt($t),Bt,Pt,Ot=this.clone();if(At){for(Pt=0;!Ot.isZero();Pt++)Bt=Ot.andln(255),Ot.iushrn(8),It[Pt]=Bt;for(;Pt<$t;Pt++)It[Pt]=0}else{for(Pt=0;Pt<$t-_t;Pt++)It[Pt]=0;for(Pt=0;!Ot.isZero();Pt++)Bt=Ot.andln(255),Ot.iushrn(8),It[$t-Pt-1]=Bt}return It},Math.clz32?ot.prototype._countBits=function(Rt){return 32-Math.clz32(Rt)}:ot.prototype._countBits=function(Rt){var Ct=Rt,yt=0;return Ct>=4096&&(yt+=13,Ct>>>=13),Ct>=64&&(yt+=7,Ct>>>=7),Ct>=8&&(yt+=4,Ct>>>=4),Ct>=2&&(yt+=2,Ct>>>=2),yt+Ct},ot.prototype._zeroBits=function(Rt){if(Rt===0)return 26;var Ct=Rt,yt=0;return Ct&8191||(yt+=13,Ct>>>=13),Ct&127||(yt+=7,Ct>>>=7),Ct&15||(yt+=4,Ct>>>=4),Ct&3||(yt+=2,Ct>>>=2),Ct&1||yt++,yt},ot.prototype.bitLength=function(){var Rt=this.words[this.length-1],Ct=this._countBits(Rt);return(this.length-1)*26+Ct};function xt(Jt){for(var Rt=new Array(Jt.bitLength()),Ct=0;Ct>>_t}return Rt}ot.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Rt=0,Ct=0;CtRt.length?this.clone().ior(Rt):Rt.clone().ior(this)},ot.prototype.uor=function(Rt){return this.length>Rt.length?this.clone().iuor(Rt):Rt.clone().iuor(this)},ot.prototype.iuand=function(Rt){var Ct;this.length>Rt.length?Ct=Rt:Ct=this;for(var yt=0;ytRt.length?this.clone().iand(Rt):Rt.clone().iand(this)},ot.prototype.uand=function(Rt){return this.length>Rt.length?this.clone().iuand(Rt):Rt.clone().iuand(this)},ot.prototype.iuxor=function(Rt){var Ct,yt;this.length>Rt.length?(Ct=this,yt=Rt):(Ct=Rt,yt=this);for(var _t=0;_tRt.length?this.clone().ixor(Rt):Rt.clone().ixor(this)},ot.prototype.uxor=function(Rt){return this.length>Rt.length?this.clone().iuxor(Rt):Rt.clone().iuxor(this)},ot.prototype.inotn=function(Rt){nt(typeof Rt=="number"&&Rt>=0);var Ct=Math.ceil(Rt/26)|0,yt=Rt%26;this._expand(Ct),yt>0&&Ct--;for(var _t=0;_t0&&(this.words[_t]=~this.words[_t]&67108863>>26-yt),this.strip()},ot.prototype.notn=function(Rt){return this.clone().inotn(Rt)},ot.prototype.setn=function(Rt,Ct){nt(typeof Rt=="number"&&Rt>=0);var yt=Rt/26|0,_t=Rt%26;return this._expand(yt+1),Ct?this.words[yt]=this.words[yt]|1<<_t:this.words[yt]=this.words[yt]&~(1<<_t),this.strip()},ot.prototype.iadd=function(Rt){var Ct;if(this.negative!==0&&Rt.negative===0)return this.negative=0,Ct=this.isub(Rt),this.negative^=1,this._normSign();if(this.negative===0&&Rt.negative!==0)return Rt.negative=0,Ct=this.isub(Rt),Rt.negative=1,Ct._normSign();var yt,_t;this.length>Rt.length?(yt=this,_t=Rt):(yt=Rt,_t=this);for(var $t=0,At=0;At<_t.length;At++)Ct=(yt.words[At]|0)+(_t.words[At]|0)+$t,this.words[At]=Ct&67108863,$t=Ct>>>26;for(;$t!==0&&At>>26;if(this.length=yt.length,$t!==0)this.words[this.length]=$t,this.length++;else if(yt!==this)for(;AtRt.length?this.clone().iadd(Rt):Rt.clone().iadd(this)},ot.prototype.isub=function(Rt){if(Rt.negative!==0){Rt.negative=0;var Ct=this.iadd(Rt);return Rt.negative=1,Ct._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Rt),this.negative=1,this._normSign();var yt=this.cmp(Rt);if(yt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var _t,$t;yt>0?(_t=this,$t=Rt):(_t=Rt,$t=this);for(var At=0,It=0;It<$t.length;It++)Ct=(_t.words[It]|0)-($t.words[It]|0)+At,At=Ct>>26,this.words[It]=Ct&67108863;for(;At!==0&&It<_t.length;It++)Ct=(_t.words[It]|0)+At,At=Ct>>26,this.words[It]=Ct&67108863;if(At===0&&It<_t.length&&_t!==this)for(;It<_t.length;It++)this.words[It]=_t.words[It];return this.length=Math.max(this.length,It),_t!==this&&(this.negative=1),this.strip()},ot.prototype.sub=function(Rt){return this.clone().isub(Rt)};function Et(Jt,Rt,Ct){Ct.negative=Rt.negative^Jt.negative;var yt=Jt.length+Rt.length|0;Ct.length=yt,yt=yt-1|0;var _t=Jt.words[0]|0,$t=Rt.words[0]|0,At=_t*$t,It=At&67108863,Bt=At/67108864|0;Ct.words[0]=It;for(var Pt=1;Pt>>26,Mt=Bt&67108863,zt=Math.min(Pt,Rt.length-1),yr=Math.max(0,Pt-Jt.length+1);yr<=zt;yr++){var vr=Pt-yr|0;_t=Jt.words[vr]|0,$t=Rt.words[yr]|0,At=_t*$t+Mt,Ot+=At/67108864|0,Mt=At&67108863}Ct.words[Pt]=Mt|0,Bt=Ot|0}return Bt!==0?Ct.words[Pt]=Bt|0:Ct.length--,Ct.strip()}var kt=function(Rt,Ct,yt){var _t=Rt.words,$t=Ct.words,At=yt.words,It=0,Bt,Pt,Ot,Mt=_t[0]|0,zt=Mt&8191,yr=Mt>>>13,vr=_t[1]|0,hr=vr&8191,rr=vr>>>13,er=_t[2]|0,fr=er&8191,wr=er>>>13,nr=_t[3]|0,ir=nr&8191,Br=nr>>>13,Ir=_t[4]|0,Dr=Ir&8191,Jr=Ir>>>13,Yr=_t[5]|0,Wr=Yr&8191,Or=Yr>>>13,hn=_t[6]|0,nn=hn&8191,kn=hn>>>13,yn=_t[7]|0,rn=yn&8191,Ar=yn>>>13,dr=_t[8]|0,xr=dr&8191,Mr=dr>>>13,Tr=_t[9]|0,Yt=Tr&8191,Wt=Tr>>>13,Vt=$t[0]|0,or=Vt&8191,Cr=Vt>>>13,Rr=$t[1]|0,$r=Rr&8191,Hr=Rr>>>13,Nr=$t[2]|0,Ur=Nr&8191,_n=Nr>>>13,tn=$t[3]|0,gn=tn&8191,qn=tn>>>13,En=$t[4]|0,vn=En&8191,On=En>>>13,In=$t[5]|0,Mn=In&8191,Fn=In>>>13,Un=$t[6]|0,wn=Un&8191,Kn=Un>>>13,Ut=$t[7]|0,Ft=Ut&8191,Ht=Ut>>>13,St=$t[8]|0,Kt=St&8191,gr=St>>>13,br=$t[9]|0,kr=br&8191,Pr=br>>>13;yt.negative=Rt.negative^Ct.negative,yt.length=19,Bt=Math.imul(zt,or),Pt=Math.imul(zt,Cr),Pt=Pt+Math.imul(yr,or)|0,Ot=Math.imul(yr,Cr);var jr=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(jr>>>26)|0,jr&=67108863,Bt=Math.imul(hr,or),Pt=Math.imul(hr,Cr),Pt=Pt+Math.imul(rr,or)|0,Ot=Math.imul(rr,Cr),Bt=Bt+Math.imul(zt,$r)|0,Pt=Pt+Math.imul(zt,Hr)|0,Pt=Pt+Math.imul(yr,$r)|0,Ot=Ot+Math.imul(yr,Hr)|0;var qr=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(qr>>>26)|0,qr&=67108863,Bt=Math.imul(fr,or),Pt=Math.imul(fr,Cr),Pt=Pt+Math.imul(wr,or)|0,Ot=Math.imul(wr,Cr),Bt=Bt+Math.imul(hr,$r)|0,Pt=Pt+Math.imul(hr,Hr)|0,Pt=Pt+Math.imul(rr,$r)|0,Ot=Ot+Math.imul(rr,Hr)|0,Bt=Bt+Math.imul(zt,Ur)|0,Pt=Pt+Math.imul(zt,_n)|0,Pt=Pt+Math.imul(yr,Ur)|0,Ot=Ot+Math.imul(yr,_n)|0;var Sn=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(Sn>>>26)|0,Sn&=67108863,Bt=Math.imul(ir,or),Pt=Math.imul(ir,Cr),Pt=Pt+Math.imul(Br,or)|0,Ot=Math.imul(Br,Cr),Bt=Bt+Math.imul(fr,$r)|0,Pt=Pt+Math.imul(fr,Hr)|0,Pt=Pt+Math.imul(wr,$r)|0,Ot=Ot+Math.imul(wr,Hr)|0,Bt=Bt+Math.imul(hr,Ur)|0,Pt=Pt+Math.imul(hr,_n)|0,Pt=Pt+Math.imul(rr,Ur)|0,Ot=Ot+Math.imul(rr,_n)|0,Bt=Bt+Math.imul(zt,gn)|0,Pt=Pt+Math.imul(zt,qn)|0,Pt=Pt+Math.imul(yr,gn)|0,Ot=Ot+Math.imul(yr,qn)|0;var Vr=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,Bt=Math.imul(Dr,or),Pt=Math.imul(Dr,Cr),Pt=Pt+Math.imul(Jr,or)|0,Ot=Math.imul(Jr,Cr),Bt=Bt+Math.imul(ir,$r)|0,Pt=Pt+Math.imul(ir,Hr)|0,Pt=Pt+Math.imul(Br,$r)|0,Ot=Ot+Math.imul(Br,Hr)|0,Bt=Bt+Math.imul(fr,Ur)|0,Pt=Pt+Math.imul(fr,_n)|0,Pt=Pt+Math.imul(wr,Ur)|0,Ot=Ot+Math.imul(wr,_n)|0,Bt=Bt+Math.imul(hr,gn)|0,Pt=Pt+Math.imul(hr,qn)|0,Pt=Pt+Math.imul(rr,gn)|0,Ot=Ot+Math.imul(rr,qn)|0,Bt=Bt+Math.imul(zt,vn)|0,Pt=Pt+Math.imul(zt,On)|0,Pt=Pt+Math.imul(yr,vn)|0,Ot=Ot+Math.imul(yr,On)|0;var an=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(an>>>26)|0,an&=67108863,Bt=Math.imul(Wr,or),Pt=Math.imul(Wr,Cr),Pt=Pt+Math.imul(Or,or)|0,Ot=Math.imul(Or,Cr),Bt=Bt+Math.imul(Dr,$r)|0,Pt=Pt+Math.imul(Dr,Hr)|0,Pt=Pt+Math.imul(Jr,$r)|0,Ot=Ot+Math.imul(Jr,Hr)|0,Bt=Bt+Math.imul(ir,Ur)|0,Pt=Pt+Math.imul(ir,_n)|0,Pt=Pt+Math.imul(Br,Ur)|0,Ot=Ot+Math.imul(Br,_n)|0,Bt=Bt+Math.imul(fr,gn)|0,Pt=Pt+Math.imul(fr,qn)|0,Pt=Pt+Math.imul(wr,gn)|0,Ot=Ot+Math.imul(wr,qn)|0,Bt=Bt+Math.imul(hr,vn)|0,Pt=Pt+Math.imul(hr,On)|0,Pt=Pt+Math.imul(rr,vn)|0,Ot=Ot+Math.imul(rr,On)|0,Bt=Bt+Math.imul(zt,Mn)|0,Pt=Pt+Math.imul(zt,Fn)|0,Pt=Pt+Math.imul(yr,Mn)|0,Ot=Ot+Math.imul(yr,Fn)|0;var sn=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(sn>>>26)|0,sn&=67108863,Bt=Math.imul(nn,or),Pt=Math.imul(nn,Cr),Pt=Pt+Math.imul(kn,or)|0,Ot=Math.imul(kn,Cr),Bt=Bt+Math.imul(Wr,$r)|0,Pt=Pt+Math.imul(Wr,Hr)|0,Pt=Pt+Math.imul(Or,$r)|0,Ot=Ot+Math.imul(Or,Hr)|0,Bt=Bt+Math.imul(Dr,Ur)|0,Pt=Pt+Math.imul(Dr,_n)|0,Pt=Pt+Math.imul(Jr,Ur)|0,Ot=Ot+Math.imul(Jr,_n)|0,Bt=Bt+Math.imul(ir,gn)|0,Pt=Pt+Math.imul(ir,qn)|0,Pt=Pt+Math.imul(Br,gn)|0,Ot=Ot+Math.imul(Br,qn)|0,Bt=Bt+Math.imul(fr,vn)|0,Pt=Pt+Math.imul(fr,On)|0,Pt=Pt+Math.imul(wr,vn)|0,Ot=Ot+Math.imul(wr,On)|0,Bt=Bt+Math.imul(hr,Mn)|0,Pt=Pt+Math.imul(hr,Fn)|0,Pt=Pt+Math.imul(rr,Mn)|0,Ot=Ot+Math.imul(rr,Fn)|0,Bt=Bt+Math.imul(zt,wn)|0,Pt=Pt+Math.imul(zt,Kn)|0,Pt=Pt+Math.imul(yr,wn)|0,Ot=Ot+Math.imul(yr,Kn)|0;var pn=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(pn>>>26)|0,pn&=67108863,Bt=Math.imul(rn,or),Pt=Math.imul(rn,Cr),Pt=Pt+Math.imul(Ar,or)|0,Ot=Math.imul(Ar,Cr),Bt=Bt+Math.imul(nn,$r)|0,Pt=Pt+Math.imul(nn,Hr)|0,Pt=Pt+Math.imul(kn,$r)|0,Ot=Ot+Math.imul(kn,Hr)|0,Bt=Bt+Math.imul(Wr,Ur)|0,Pt=Pt+Math.imul(Wr,_n)|0,Pt=Pt+Math.imul(Or,Ur)|0,Ot=Ot+Math.imul(Or,_n)|0,Bt=Bt+Math.imul(Dr,gn)|0,Pt=Pt+Math.imul(Dr,qn)|0,Pt=Pt+Math.imul(Jr,gn)|0,Ot=Ot+Math.imul(Jr,qn)|0,Bt=Bt+Math.imul(ir,vn)|0,Pt=Pt+Math.imul(ir,On)|0,Pt=Pt+Math.imul(Br,vn)|0,Ot=Ot+Math.imul(Br,On)|0,Bt=Bt+Math.imul(fr,Mn)|0,Pt=Pt+Math.imul(fr,Fn)|0,Pt=Pt+Math.imul(wr,Mn)|0,Ot=Ot+Math.imul(wr,Fn)|0,Bt=Bt+Math.imul(hr,wn)|0,Pt=Pt+Math.imul(hr,Kn)|0,Pt=Pt+Math.imul(rr,wn)|0,Ot=Ot+Math.imul(rr,Kn)|0,Bt=Bt+Math.imul(zt,Ft)|0,Pt=Pt+Math.imul(zt,Ht)|0,Pt=Pt+Math.imul(yr,Ft)|0,Ot=Ot+Math.imul(yr,Ht)|0;var dn=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(dn>>>26)|0,dn&=67108863,Bt=Math.imul(xr,or),Pt=Math.imul(xr,Cr),Pt=Pt+Math.imul(Mr,or)|0,Ot=Math.imul(Mr,Cr),Bt=Bt+Math.imul(rn,$r)|0,Pt=Pt+Math.imul(rn,Hr)|0,Pt=Pt+Math.imul(Ar,$r)|0,Ot=Ot+Math.imul(Ar,Hr)|0,Bt=Bt+Math.imul(nn,Ur)|0,Pt=Pt+Math.imul(nn,_n)|0,Pt=Pt+Math.imul(kn,Ur)|0,Ot=Ot+Math.imul(kn,_n)|0,Bt=Bt+Math.imul(Wr,gn)|0,Pt=Pt+Math.imul(Wr,qn)|0,Pt=Pt+Math.imul(Or,gn)|0,Ot=Ot+Math.imul(Or,qn)|0,Bt=Bt+Math.imul(Dr,vn)|0,Pt=Pt+Math.imul(Dr,On)|0,Pt=Pt+Math.imul(Jr,vn)|0,Ot=Ot+Math.imul(Jr,On)|0,Bt=Bt+Math.imul(ir,Mn)|0,Pt=Pt+Math.imul(ir,Fn)|0,Pt=Pt+Math.imul(Br,Mn)|0,Ot=Ot+Math.imul(Br,Fn)|0,Bt=Bt+Math.imul(fr,wn)|0,Pt=Pt+Math.imul(fr,Kn)|0,Pt=Pt+Math.imul(wr,wn)|0,Ot=Ot+Math.imul(wr,Kn)|0,Bt=Bt+Math.imul(hr,Ft)|0,Pt=Pt+Math.imul(hr,Ht)|0,Pt=Pt+Math.imul(rr,Ft)|0,Ot=Ot+Math.imul(rr,Ht)|0,Bt=Bt+Math.imul(zt,Kt)|0,Pt=Pt+Math.imul(zt,gr)|0,Pt=Pt+Math.imul(yr,Kt)|0,Ot=Ot+Math.imul(yr,gr)|0;var ln=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(ln>>>26)|0,ln&=67108863,Bt=Math.imul(Yt,or),Pt=Math.imul(Yt,Cr),Pt=Pt+Math.imul(Wt,or)|0,Ot=Math.imul(Wt,Cr),Bt=Bt+Math.imul(xr,$r)|0,Pt=Pt+Math.imul(xr,Hr)|0,Pt=Pt+Math.imul(Mr,$r)|0,Ot=Ot+Math.imul(Mr,Hr)|0,Bt=Bt+Math.imul(rn,Ur)|0,Pt=Pt+Math.imul(rn,_n)|0,Pt=Pt+Math.imul(Ar,Ur)|0,Ot=Ot+Math.imul(Ar,_n)|0,Bt=Bt+Math.imul(nn,gn)|0,Pt=Pt+Math.imul(nn,qn)|0,Pt=Pt+Math.imul(kn,gn)|0,Ot=Ot+Math.imul(kn,qn)|0,Bt=Bt+Math.imul(Wr,vn)|0,Pt=Pt+Math.imul(Wr,On)|0,Pt=Pt+Math.imul(Or,vn)|0,Ot=Ot+Math.imul(Or,On)|0,Bt=Bt+Math.imul(Dr,Mn)|0,Pt=Pt+Math.imul(Dr,Fn)|0,Pt=Pt+Math.imul(Jr,Mn)|0,Ot=Ot+Math.imul(Jr,Fn)|0,Bt=Bt+Math.imul(ir,wn)|0,Pt=Pt+Math.imul(ir,Kn)|0,Pt=Pt+Math.imul(Br,wn)|0,Ot=Ot+Math.imul(Br,Kn)|0,Bt=Bt+Math.imul(fr,Ft)|0,Pt=Pt+Math.imul(fr,Ht)|0,Pt=Pt+Math.imul(wr,Ft)|0,Ot=Ot+Math.imul(wr,Ht)|0,Bt=Bt+Math.imul(hr,Kt)|0,Pt=Pt+Math.imul(hr,gr)|0,Pt=Pt+Math.imul(rr,Kt)|0,Ot=Ot+Math.imul(rr,gr)|0,Bt=Bt+Math.imul(zt,kr)|0,Pt=Pt+Math.imul(zt,Pr)|0,Pt=Pt+Math.imul(yr,kr)|0,Ot=Ot+Math.imul(yr,Pr)|0;var fn=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(fn>>>26)|0,fn&=67108863,Bt=Math.imul(Yt,$r),Pt=Math.imul(Yt,Hr),Pt=Pt+Math.imul(Wt,$r)|0,Ot=Math.imul(Wt,Hr),Bt=Bt+Math.imul(xr,Ur)|0,Pt=Pt+Math.imul(xr,_n)|0,Pt=Pt+Math.imul(Mr,Ur)|0,Ot=Ot+Math.imul(Mr,_n)|0,Bt=Bt+Math.imul(rn,gn)|0,Pt=Pt+Math.imul(rn,qn)|0,Pt=Pt+Math.imul(Ar,gn)|0,Ot=Ot+Math.imul(Ar,qn)|0,Bt=Bt+Math.imul(nn,vn)|0,Pt=Pt+Math.imul(nn,On)|0,Pt=Pt+Math.imul(kn,vn)|0,Ot=Ot+Math.imul(kn,On)|0,Bt=Bt+Math.imul(Wr,Mn)|0,Pt=Pt+Math.imul(Wr,Fn)|0,Pt=Pt+Math.imul(Or,Mn)|0,Ot=Ot+Math.imul(Or,Fn)|0,Bt=Bt+Math.imul(Dr,wn)|0,Pt=Pt+Math.imul(Dr,Kn)|0,Pt=Pt+Math.imul(Jr,wn)|0,Ot=Ot+Math.imul(Jr,Kn)|0,Bt=Bt+Math.imul(ir,Ft)|0,Pt=Pt+Math.imul(ir,Ht)|0,Pt=Pt+Math.imul(Br,Ft)|0,Ot=Ot+Math.imul(Br,Ht)|0,Bt=Bt+Math.imul(fr,Kt)|0,Pt=Pt+Math.imul(fr,gr)|0,Pt=Pt+Math.imul(wr,Kt)|0,Ot=Ot+Math.imul(wr,gr)|0,Bt=Bt+Math.imul(hr,kr)|0,Pt=Pt+Math.imul(hr,Pr)|0,Pt=Pt+Math.imul(rr,kr)|0,Ot=Ot+Math.imul(rr,Pr)|0;var un=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(un>>>26)|0,un&=67108863,Bt=Math.imul(Yt,Ur),Pt=Math.imul(Yt,_n),Pt=Pt+Math.imul(Wt,Ur)|0,Ot=Math.imul(Wt,_n),Bt=Bt+Math.imul(xr,gn)|0,Pt=Pt+Math.imul(xr,qn)|0,Pt=Pt+Math.imul(Mr,gn)|0,Ot=Ot+Math.imul(Mr,qn)|0,Bt=Bt+Math.imul(rn,vn)|0,Pt=Pt+Math.imul(rn,On)|0,Pt=Pt+Math.imul(Ar,vn)|0,Ot=Ot+Math.imul(Ar,On)|0,Bt=Bt+Math.imul(nn,Mn)|0,Pt=Pt+Math.imul(nn,Fn)|0,Pt=Pt+Math.imul(kn,Mn)|0,Ot=Ot+Math.imul(kn,Fn)|0,Bt=Bt+Math.imul(Wr,wn)|0,Pt=Pt+Math.imul(Wr,Kn)|0,Pt=Pt+Math.imul(Or,wn)|0,Ot=Ot+Math.imul(Or,Kn)|0,Bt=Bt+Math.imul(Dr,Ft)|0,Pt=Pt+Math.imul(Dr,Ht)|0,Pt=Pt+Math.imul(Jr,Ft)|0,Ot=Ot+Math.imul(Jr,Ht)|0,Bt=Bt+Math.imul(ir,Kt)|0,Pt=Pt+Math.imul(ir,gr)|0,Pt=Pt+Math.imul(Br,Kt)|0,Ot=Ot+Math.imul(Br,gr)|0,Bt=Bt+Math.imul(fr,kr)|0,Pt=Pt+Math.imul(fr,Pr)|0,Pt=Pt+Math.imul(wr,kr)|0,Ot=Ot+Math.imul(wr,Pr)|0;var Zr=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,Bt=Math.imul(Yt,gn),Pt=Math.imul(Yt,qn),Pt=Pt+Math.imul(Wt,gn)|0,Ot=Math.imul(Wt,qn),Bt=Bt+Math.imul(xr,vn)|0,Pt=Pt+Math.imul(xr,On)|0,Pt=Pt+Math.imul(Mr,vn)|0,Ot=Ot+Math.imul(Mr,On)|0,Bt=Bt+Math.imul(rn,Mn)|0,Pt=Pt+Math.imul(rn,Fn)|0,Pt=Pt+Math.imul(Ar,Mn)|0,Ot=Ot+Math.imul(Ar,Fn)|0,Bt=Bt+Math.imul(nn,wn)|0,Pt=Pt+Math.imul(nn,Kn)|0,Pt=Pt+Math.imul(kn,wn)|0,Ot=Ot+Math.imul(kn,Kn)|0,Bt=Bt+Math.imul(Wr,Ft)|0,Pt=Pt+Math.imul(Wr,Ht)|0,Pt=Pt+Math.imul(Or,Ft)|0,Ot=Ot+Math.imul(Or,Ht)|0,Bt=Bt+Math.imul(Dr,Kt)|0,Pt=Pt+Math.imul(Dr,gr)|0,Pt=Pt+Math.imul(Jr,Kt)|0,Ot=Ot+Math.imul(Jr,gr)|0,Bt=Bt+Math.imul(ir,kr)|0,Pt=Pt+Math.imul(ir,Pr)|0,Pt=Pt+Math.imul(Br,kr)|0,Ot=Ot+Math.imul(Br,Pr)|0;var Qr=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,Bt=Math.imul(Yt,vn),Pt=Math.imul(Yt,On),Pt=Pt+Math.imul(Wt,vn)|0,Ot=Math.imul(Wt,On),Bt=Bt+Math.imul(xr,Mn)|0,Pt=Pt+Math.imul(xr,Fn)|0,Pt=Pt+Math.imul(Mr,Mn)|0,Ot=Ot+Math.imul(Mr,Fn)|0,Bt=Bt+Math.imul(rn,wn)|0,Pt=Pt+Math.imul(rn,Kn)|0,Pt=Pt+Math.imul(Ar,wn)|0,Ot=Ot+Math.imul(Ar,Kn)|0,Bt=Bt+Math.imul(nn,Ft)|0,Pt=Pt+Math.imul(nn,Ht)|0,Pt=Pt+Math.imul(kn,Ft)|0,Ot=Ot+Math.imul(kn,Ht)|0,Bt=Bt+Math.imul(Wr,Kt)|0,Pt=Pt+Math.imul(Wr,gr)|0,Pt=Pt+Math.imul(Or,Kt)|0,Ot=Ot+Math.imul(Or,gr)|0,Bt=Bt+Math.imul(Dr,kr)|0,Pt=Pt+Math.imul(Dr,Pr)|0,Pt=Pt+Math.imul(Jr,kr)|0,Ot=Ot+Math.imul(Jr,Pr)|0;var Fr=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,Bt=Math.imul(Yt,Mn),Pt=Math.imul(Yt,Fn),Pt=Pt+Math.imul(Wt,Mn)|0,Ot=Math.imul(Wt,Fn),Bt=Bt+Math.imul(xr,wn)|0,Pt=Pt+Math.imul(xr,Kn)|0,Pt=Pt+Math.imul(Mr,wn)|0,Ot=Ot+Math.imul(Mr,Kn)|0,Bt=Bt+Math.imul(rn,Ft)|0,Pt=Pt+Math.imul(rn,Ht)|0,Pt=Pt+Math.imul(Ar,Ft)|0,Ot=Ot+Math.imul(Ar,Ht)|0,Bt=Bt+Math.imul(nn,Kt)|0,Pt=Pt+Math.imul(nn,gr)|0,Pt=Pt+Math.imul(kn,Kt)|0,Ot=Ot+Math.imul(kn,gr)|0,Bt=Bt+Math.imul(Wr,kr)|0,Pt=Pt+Math.imul(Wr,Pr)|0,Pt=Pt+Math.imul(Or,kr)|0,Ot=Ot+Math.imul(Or,Pr)|0;var Gr=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,Bt=Math.imul(Yt,wn),Pt=Math.imul(Yt,Kn),Pt=Pt+Math.imul(Wt,wn)|0,Ot=Math.imul(Wt,Kn),Bt=Bt+Math.imul(xr,Ft)|0,Pt=Pt+Math.imul(xr,Ht)|0,Pt=Pt+Math.imul(Mr,Ft)|0,Ot=Ot+Math.imul(Mr,Ht)|0,Bt=Bt+Math.imul(rn,Kt)|0,Pt=Pt+Math.imul(rn,gr)|0,Pt=Pt+Math.imul(Ar,Kt)|0,Ot=Ot+Math.imul(Ar,gr)|0,Bt=Bt+Math.imul(nn,kr)|0,Pt=Pt+Math.imul(nn,Pr)|0,Pt=Pt+Math.imul(kn,kr)|0,Ot=Ot+Math.imul(kn,Pr)|0;var pr=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(pr>>>26)|0,pr&=67108863,Bt=Math.imul(Yt,Ft),Pt=Math.imul(Yt,Ht),Pt=Pt+Math.imul(Wt,Ft)|0,Ot=Math.imul(Wt,Ht),Bt=Bt+Math.imul(xr,Kt)|0,Pt=Pt+Math.imul(xr,gr)|0,Pt=Pt+Math.imul(Mr,Kt)|0,Ot=Ot+Math.imul(Mr,gr)|0,Bt=Bt+Math.imul(rn,kr)|0,Pt=Pt+Math.imul(rn,Pr)|0,Pt=Pt+Math.imul(Ar,kr)|0,Ot=Ot+Math.imul(Ar,Pr)|0;var Nt=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,Bt=Math.imul(Yt,Kt),Pt=Math.imul(Yt,gr),Pt=Pt+Math.imul(Wt,Kt)|0,Ot=Math.imul(Wt,gr),Bt=Bt+Math.imul(xr,kr)|0,Pt=Pt+Math.imul(xr,Pr)|0,Pt=Pt+Math.imul(Mr,kr)|0,Ot=Ot+Math.imul(Mr,Pr)|0;var Zt=(It+Bt|0)+((Pt&8191)<<13)|0;It=(Ot+(Pt>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,Bt=Math.imul(Yt,kr),Pt=Math.imul(Yt,Pr),Pt=Pt+Math.imul(Wt,kr)|0,Ot=Math.imul(Wt,Pr);var Xt=(It+Bt|0)+((Pt&8191)<<13)|0;return It=(Ot+(Pt>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,At[0]=jr,At[1]=qr,At[2]=Sn,At[3]=Vr,At[4]=an,At[5]=sn,At[6]=pn,At[7]=dn,At[8]=ln,At[9]=fn,At[10]=un,At[11]=Zr,At[12]=Qr,At[13]=Fr,At[14]=Gr,At[15]=pr,At[16]=Nt,At[17]=Zt,At[18]=Xt,It!==0&&(At[19]=It,yt.length++),yt};Math.imul||(kt=Et);function Dt(Jt,Rt,Ct){Ct.negative=Rt.negative^Jt.negative,Ct.length=Jt.length+Rt.length;for(var yt=0,_t=0,$t=0;$t>>26)|0,_t+=At>>>26,At&=67108863}Ct.words[$t]=It,yt=At,At=_t}return yt!==0?Ct.words[$t]=yt:Ct.length--,Ct.strip()}function Tt(Jt,Rt,Ct){var yt=new qt;return yt.mulp(Jt,Rt,Ct)}ot.prototype.mulTo=function(Rt,Ct){var yt,_t=this.length+Rt.length;return this.length===10&&Rt.length===10?yt=kt(this,Rt,Ct):_t<63?yt=Et(this,Rt,Ct):_t<1024?yt=Dt(this,Rt,Ct):yt=Tt(this,Rt,Ct),yt};function qt(Jt,Rt){this.x=Jt,this.y=Rt}qt.prototype.makeRBT=function(Rt){for(var Ct=new Array(Rt),yt=ot.prototype._countBits(Rt)-1,_t=0;_t>=1;return _t},qt.prototype.permute=function(Rt,Ct,yt,_t,$t,At){for(var It=0;It>>1)$t++;return 1<<$t+1+_t},qt.prototype.conjugate=function(Rt,Ct,yt){if(!(yt<=1))for(var _t=0;_t>>13,yt[2*At+1]=$t&8191,$t=$t>>>13;for(At=2*Ct;At<_t;++At)yt[At]=0;nt($t===0),nt(($t&-8192)===0)},qt.prototype.stub=function(Rt){for(var Ct=new Array(Rt),yt=0;yt>=26,Ct+=_t/67108864|0,Ct+=$t>>>26,this.words[yt]=$t&67108863}return Ct!==0&&(this.words[yt]=Ct,this.length++),this},ot.prototype.muln=function(Rt){return this.clone().imuln(Rt)},ot.prototype.sqr=function(){return this.mul(this)},ot.prototype.isqr=function(){return this.imul(this.clone())},ot.prototype.pow=function(Rt){var Ct=xt(Rt);if(Ct.length===0)return new ot(1);for(var yt=this,_t=0;_t=0);var Ct=Rt%26,yt=(Rt-Ct)/26,_t=67108863>>>26-Ct<<26-Ct,$t;if(Ct!==0){var At=0;for($t=0;$t>>26-Ct}At&&(this.words[$t]=At,this.length++)}if(yt!==0){for($t=this.length-1;$t>=0;$t--)this.words[$t+yt]=this.words[$t];for($t=0;$t=0);var _t;Ct?_t=(Ct-Ct%26)/26:_t=0;var $t=Rt%26,At=Math.min((Rt-$t)/26,this.length),It=67108863^67108863>>>$t<<$t,Bt=yt;if(_t-=At,_t=Math.max(0,_t),Bt){for(var Pt=0;PtAt)for(this.length-=At,Pt=0;Pt=0&&(Ot!==0||Pt>=_t);Pt--){var Mt=this.words[Pt]|0;this.words[Pt]=Ot<<26-$t|Mt>>>$t,Ot=Mt&It}return Bt&&Ot!==0&&(Bt.words[Bt.length++]=Ot),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},ot.prototype.ishrn=function(Rt,Ct,yt){return nt(this.negative===0),this.iushrn(Rt,Ct,yt)},ot.prototype.shln=function(Rt){return this.clone().ishln(Rt)},ot.prototype.ushln=function(Rt){return this.clone().iushln(Rt)},ot.prototype.shrn=function(Rt){return this.clone().ishrn(Rt)},ot.prototype.ushrn=function(Rt){return this.clone().iushrn(Rt)},ot.prototype.testn=function(Rt){nt(typeof Rt=="number"&&Rt>=0);var Ct=Rt%26,yt=(Rt-Ct)/26,_t=1<=0);var Ct=Rt%26,yt=(Rt-Ct)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=yt)return this;if(Ct!==0&&yt++,this.length=Math.min(yt,this.length),Ct!==0){var _t=67108863^67108863>>>Ct<=67108864;Ct++)this.words[Ct]-=67108864,Ct===this.length-1?this.words[Ct+1]=1:this.words[Ct+1]++;return this.length=Math.max(this.length,Ct+1),this},ot.prototype.isubn=function(Rt){if(nt(typeof Rt=="number"),nt(Rt<67108864),Rt<0)return this.iaddn(-Rt);if(this.negative!==0)return this.negative=0,this.iaddn(Rt),this.negative=1,this;if(this.words[0]-=Rt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Ct=0;Ct>26)-(Bt/67108864|0),this.words[$t+yt]=At&67108863}for(;$t>26,this.words[$t+yt]=At&67108863;if(It===0)return this.strip();for(nt(It===-1),It=0,$t=0;$t>26,this.words[$t]=At&67108863;return this.negative=1,this.strip()},ot.prototype._wordDiv=function(Rt,Ct){var yt=this.length-Rt.length,_t=this.clone(),$t=Rt,At=$t.words[$t.length-1]|0,It=this._countBits(At);yt=26-It,yt!==0&&($t=$t.ushln(yt),_t.iushln(yt),At=$t.words[$t.length-1]|0);var Bt=_t.length-$t.length,Pt;if(Ct!=="mod"){Pt=new ot(null),Pt.length=Bt+1,Pt.words=new Array(Pt.length);for(var Ot=0;Ot=0;zt--){var yr=(_t.words[$t.length+zt]|0)*67108864+(_t.words[$t.length+zt-1]|0);for(yr=Math.min(yr/At|0,67108863),_t._ishlnsubmul($t,yr,zt);_t.negative!==0;)yr--,_t.negative=0,_t._ishlnsubmul($t,1,zt),_t.isZero()||(_t.negative^=1);Pt&&(Pt.words[zt]=yr)}return Pt&&Pt.strip(),_t.strip(),Ct!=="div"&&yt!==0&&_t.iushrn(yt),{div:Pt||null,mod:_t}},ot.prototype.divmod=function(Rt,Ct,yt){if(nt(!Rt.isZero()),this.isZero())return{div:new ot(0),mod:new ot(0)};var _t,$t,At;return this.negative!==0&&Rt.negative===0?(At=this.neg().divmod(Rt,Ct),Ct!=="mod"&&(_t=At.div.neg()),Ct!=="div"&&($t=At.mod.neg(),yt&&$t.negative!==0&&$t.iadd(Rt)),{div:_t,mod:$t}):this.negative===0&&Rt.negative!==0?(At=this.divmod(Rt.neg(),Ct),Ct!=="mod"&&(_t=At.div.neg()),{div:_t,mod:At.mod}):this.negative&Rt.negative?(At=this.neg().divmod(Rt.neg(),Ct),Ct!=="div"&&($t=At.mod.neg(),yt&&$t.negative!==0&&$t.isub(Rt)),{div:At.div,mod:$t}):Rt.length>this.length||this.cmp(Rt)<0?{div:new ot(0),mod:this}:Rt.length===1?Ct==="div"?{div:this.divn(Rt.words[0]),mod:null}:Ct==="mod"?{div:null,mod:new ot(this.modn(Rt.words[0]))}:{div:this.divn(Rt.words[0]),mod:new ot(this.modn(Rt.words[0]))}:this._wordDiv(Rt,Ct)},ot.prototype.div=function(Rt){return this.divmod(Rt,"div",!1).div},ot.prototype.mod=function(Rt){return this.divmod(Rt,"mod",!1).mod},ot.prototype.umod=function(Rt){return this.divmod(Rt,"mod",!0).mod},ot.prototype.divRound=function(Rt){var Ct=this.divmod(Rt);if(Ct.mod.isZero())return Ct.div;var yt=Ct.div.negative!==0?Ct.mod.isub(Rt):Ct.mod,_t=Rt.ushrn(1),$t=Rt.andln(1),At=yt.cmp(_t);return At<0||$t===1&&At===0?Ct.div:Ct.div.negative!==0?Ct.div.isubn(1):Ct.div.iaddn(1)},ot.prototype.modn=function(Rt){nt(Rt<=67108863);for(var Ct=(1<<26)%Rt,yt=0,_t=this.length-1;_t>=0;_t--)yt=(Ct*yt+(this.words[_t]|0))%Rt;return yt},ot.prototype.idivn=function(Rt){nt(Rt<=67108863);for(var Ct=0,yt=this.length-1;yt>=0;yt--){var _t=(this.words[yt]|0)+Ct*67108864;this.words[yt]=_t/Rt|0,Ct=_t%Rt}return this.strip()},ot.prototype.divn=function(Rt){return this.clone().idivn(Rt)},ot.prototype.egcd=function(Rt){nt(Rt.negative===0),nt(!Rt.isZero());var Ct=this,yt=Rt.clone();Ct.negative!==0?Ct=Ct.umod(Rt):Ct=Ct.clone();for(var _t=new ot(1),$t=new ot(0),At=new ot(0),It=new ot(1),Bt=0;Ct.isEven()&&yt.isEven();)Ct.iushrn(1),yt.iushrn(1),++Bt;for(var Pt=yt.clone(),Ot=Ct.clone();!Ct.isZero();){for(var Mt=0,zt=1;!(Ct.words[0]&zt)&&Mt<26;++Mt,zt<<=1);if(Mt>0)for(Ct.iushrn(Mt);Mt-- >0;)(_t.isOdd()||$t.isOdd())&&(_t.iadd(Pt),$t.isub(Ot)),_t.iushrn(1),$t.iushrn(1);for(var yr=0,vr=1;!(yt.words[0]&vr)&&yr<26;++yr,vr<<=1);if(yr>0)for(yt.iushrn(yr);yr-- >0;)(At.isOdd()||It.isOdd())&&(At.iadd(Pt),It.isub(Ot)),At.iushrn(1),It.iushrn(1);Ct.cmp(yt)>=0?(Ct.isub(yt),_t.isub(At),$t.isub(It)):(yt.isub(Ct),At.isub(_t),It.isub($t))}return{a:At,b:It,gcd:yt.iushln(Bt)}},ot.prototype._invmp=function(Rt){nt(Rt.negative===0),nt(!Rt.isZero());var Ct=this,yt=Rt.clone();Ct.negative!==0?Ct=Ct.umod(Rt):Ct=Ct.clone();for(var _t=new ot(1),$t=new ot(0),At=yt.clone();Ct.cmpn(1)>0&&yt.cmpn(1)>0;){for(var It=0,Bt=1;!(Ct.words[0]&Bt)&&It<26;++It,Bt<<=1);if(It>0)for(Ct.iushrn(It);It-- >0;)_t.isOdd()&&_t.iadd(At),_t.iushrn(1);for(var Pt=0,Ot=1;!(yt.words[0]&Ot)&&Pt<26;++Pt,Ot<<=1);if(Pt>0)for(yt.iushrn(Pt);Pt-- >0;)$t.isOdd()&&$t.iadd(At),$t.iushrn(1);Ct.cmp(yt)>=0?(Ct.isub(yt),_t.isub($t)):(yt.isub(Ct),$t.isub(_t))}var Mt;return Ct.cmpn(1)===0?Mt=_t:Mt=$t,Mt.cmpn(0)<0&&Mt.iadd(Rt),Mt},ot.prototype.gcd=function(Rt){if(this.isZero())return Rt.abs();if(Rt.isZero())return this.abs();var Ct=this.clone(),yt=Rt.clone();Ct.negative=0,yt.negative=0;for(var _t=0;Ct.isEven()&&yt.isEven();_t++)Ct.iushrn(1),yt.iushrn(1);do{for(;Ct.isEven();)Ct.iushrn(1);for(;yt.isEven();)yt.iushrn(1);var $t=Ct.cmp(yt);if($t<0){var At=Ct;Ct=yt,yt=At}else if($t===0||yt.cmpn(1)===0)break;Ct.isub(yt)}while(!0);return yt.iushln(_t)},ot.prototype.invm=function(Rt){return this.egcd(Rt).a.umod(Rt)},ot.prototype.isEven=function(){return(this.words[0]&1)===0},ot.prototype.isOdd=function(){return(this.words[0]&1)===1},ot.prototype.andln=function(Rt){return this.words[0]&Rt},ot.prototype.bincn=function(Rt){nt(typeof Rt=="number");var Ct=Rt%26,yt=(Rt-Ct)/26,_t=1<>>26,It&=67108863,this.words[At]=It}return $t!==0&&(this.words[At]=$t,this.length++),this},ot.prototype.isZero=function(){return this.length===1&&this.words[0]===0},ot.prototype.cmpn=function(Rt){var Ct=Rt<0;if(this.negative!==0&&!Ct)return-1;if(this.negative===0&&Ct)return 1;this.strip();var yt;if(this.length>1)yt=1;else{Ct&&(Rt=-Rt),nt(Rt<=67108863,"Number is too big");var _t=this.words[0]|0;yt=_t===Rt?0:_tRt.length)return 1;if(this.length=0;yt--){var _t=this.words[yt]|0,$t=Rt.words[yt]|0;if(_t!==$t){_t<$t?Ct=-1:_t>$t&&(Ct=1);break}}return Ct},ot.prototype.gtn=function(Rt){return this.cmpn(Rt)===1},ot.prototype.gt=function(Rt){return this.cmp(Rt)===1},ot.prototype.gten=function(Rt){return this.cmpn(Rt)>=0},ot.prototype.gte=function(Rt){return this.cmp(Rt)>=0},ot.prototype.ltn=function(Rt){return this.cmpn(Rt)===-1},ot.prototype.lt=function(Rt){return this.cmp(Rt)===-1},ot.prototype.lten=function(Rt){return this.cmpn(Rt)<=0},ot.prototype.lte=function(Rt){return this.cmp(Rt)<=0},ot.prototype.eqn=function(Rt){return this.cmpn(Rt)===0},ot.prototype.eq=function(Rt){return this.cmp(Rt)===0},ot.red=function(Rt){return new ar(Rt)},ot.prototype.toRed=function(Rt){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),Rt.convertTo(this)._forceRed(Rt)},ot.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},ot.prototype._forceRed=function(Rt){return this.red=Rt,this},ot.prototype.forceRed=function(Rt){return nt(!this.red,"Already a number in reduction context"),this._forceRed(Rt)},ot.prototype.redAdd=function(Rt){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,Rt)},ot.prototype.redIAdd=function(Rt){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Rt)},ot.prototype.redSub=function(Rt){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,Rt)},ot.prototype.redISub=function(Rt){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,Rt)},ot.prototype.redShl=function(Rt){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,Rt)},ot.prototype.redMul=function(Rt){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Rt),this.red.mul(this,Rt)},ot.prototype.redIMul=function(Rt){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Rt),this.red.imul(this,Rt)},ot.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},ot.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},ot.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},ot.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},ot.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},ot.prototype.redPow=function(Rt){return nt(this.red&&!Rt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Rt)};var jt={k256:null,p224:null,p192:null,p25519:null};function Lt(Jt,Rt){this.name=Jt,this.p=new ot(Rt,16),this.n=this.p.bitLength(),this.k=new ot(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Lt.prototype._tmp=function(){var Rt=new ot(null);return Rt.words=new Array(Math.ceil(this.n/13)),Rt},Lt.prototype.ireduce=function(Rt){var Ct=Rt,yt;do this.split(Ct,this.tmp),Ct=this.imulK(Ct),Ct=Ct.iadd(this.tmp),yt=Ct.bitLength();while(yt>this.n);var _t=yt0?Ct.isub(this.p):Ct.strip!==void 0?Ct.strip():Ct._strip(),Ct},Lt.prototype.split=function(Rt,Ct){Rt.iushrn(this.n,0,Ct)},Lt.prototype.imulK=function(Rt){return Rt.imul(this.k)};function Gt(){Lt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}st(Gt,Lt),Gt.prototype.split=function(Rt,Ct){for(var yt=4194303,_t=Math.min(Rt.length,9),$t=0;$t<_t;$t++)Ct.words[$t]=Rt.words[$t];if(Ct.length=_t,Rt.length<=9){Rt.words[0]=0,Rt.length=1;return}var At=Rt.words[9];for(Ct.words[Ct.length++]=At&yt,$t=10;$t>>22,At=It}At>>>=22,Rt.words[$t-10]=At,At===0&&Rt.length>10?Rt.length-=10:Rt.length-=9},Gt.prototype.imulK=function(Rt){Rt.words[Rt.length]=0,Rt.words[Rt.length+1]=0,Rt.length+=2;for(var Ct=0,yt=0;yt>>=26,Rt.words[yt]=$t,Ct=_t}return Ct!==0&&(Rt.words[Rt.length++]=Ct),Rt},ot._prime=function(Rt){if(jt[Rt])return jt[Rt];var Ct;if(Rt==="k256")Ct=new Gt;else if(Rt==="p224")Ct=new Qt;else if(Rt==="p192")Ct=new tr;else if(Rt==="p25519")Ct=new sr;else throw new Error("Unknown prime "+Rt);return jt[Rt]=Ct,Ct};function ar(Jt){if(typeof Jt=="string"){var Rt=ot._prime(Jt);this.m=Rt.p,this.prime=Rt}else nt(Jt.gtn(1),"modulus must be greater than 1"),this.m=Jt,this.prime=null}ar.prototype._verify1=function(Rt){nt(Rt.negative===0,"red works only with positives"),nt(Rt.red,"red works only with red numbers")},ar.prototype._verify2=function(Rt,Ct){nt((Rt.negative|Ct.negative)===0,"red works only with positives"),nt(Rt.red&&Rt.red===Ct.red,"red works only with red numbers")},ar.prototype.imod=function(Rt){return this.prime?this.prime.ireduce(Rt)._forceRed(this):Rt.umod(this.m)._forceRed(this)},ar.prototype.neg=function(Rt){return Rt.isZero()?Rt.clone():this.m.sub(Rt)._forceRed(this)},ar.prototype.add=function(Rt,Ct){this._verify2(Rt,Ct);var yt=Rt.add(Ct);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt._forceRed(this)},ar.prototype.iadd=function(Rt,Ct){this._verify2(Rt,Ct);var yt=Rt.iadd(Ct);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt},ar.prototype.sub=function(Rt,Ct){this._verify2(Rt,Ct);var yt=Rt.sub(Ct);return yt.cmpn(0)<0&&yt.iadd(this.m),yt._forceRed(this)},ar.prototype.isub=function(Rt,Ct){this._verify2(Rt,Ct);var yt=Rt.isub(Ct);return yt.cmpn(0)<0&&yt.iadd(this.m),yt},ar.prototype.shl=function(Rt,Ct){return this._verify1(Rt),this.imod(Rt.ushln(Ct))},ar.prototype.imul=function(Rt,Ct){return this._verify2(Rt,Ct),this.imod(Rt.imul(Ct))},ar.prototype.mul=function(Rt,Ct){return this._verify2(Rt,Ct),this.imod(Rt.mul(Ct))},ar.prototype.isqr=function(Rt){return this.imul(Rt,Rt.clone())},ar.prototype.sqr=function(Rt){return this.mul(Rt,Rt)},ar.prototype.sqrt=function(Rt){if(Rt.isZero())return Rt.clone();var Ct=this.m.andln(3);if(nt(Ct%2===1),Ct===3){var yt=this.m.add(new ot(1)).iushrn(2);return this.pow(Rt,yt)}for(var _t=this.m.subn(1),$t=0;!_t.isZero()&&_t.andln(1)===0;)$t++,_t.iushrn(1);nt(!_t.isZero());var At=new ot(1).toRed(this),It=At.redNeg(),Bt=this.m.subn(1).iushrn(1),Pt=this.m.bitLength();for(Pt=new ot(2*Pt*Pt).toRed(this);this.pow(Pt,Bt).cmp(It)!==0;)Pt.redIAdd(It);for(var Ot=this.pow(Pt,_t),Mt=this.pow(Rt,_t.addn(1).iushrn(1)),zt=this.pow(Rt,_t),yr=$t;zt.cmp(At)!==0;){for(var vr=zt,hr=0;vr.cmp(At)!==0;hr++)vr=vr.redSqr();nt(hr=0;$t--){for(var Ot=Ct.words[$t],Mt=Pt-1;Mt>=0;Mt--){var zt=Ot>>Mt&1;if(At!==_t[0]&&(At=this.sqr(At)),zt===0&&It===0){Bt=0;continue}It<<=1,It|=zt,Bt++,!(Bt!==yt&&($t!==0||Mt!==0))&&(At=this.mul(At,_t[It]),Bt=0,It=0)}Pt=26}return At},ar.prototype.convertTo=function(Rt){var Ct=Rt.umod(this.m);return Ct===Rt?Ct.clone():Ct},ar.prototype.convertFrom=function(Rt){var Ct=Rt.clone();return Ct.red=null,Ct},ot.mont=function(Rt){return new _r(Rt)};function _r(Jt){ar.call(this,Jt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new ot(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)}st(_r,ar),_r.prototype.convertTo=function(Rt){return this.imod(Rt.ushln(this.shift))},_r.prototype.convertFrom=function(Rt){var Ct=this.imod(Rt.mul(this.rinv));return Ct.red=null,Ct},_r.prototype.imul=function(Rt,Ct){if(Rt.isZero()||Ct.isZero())return Rt.words[0]=0,Rt.length=1,Rt;var yt=Rt.imul(Ct),_t=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$t=yt.isub(_t).iushrn(this.shift),At=$t;return $t.cmp(this.m)>=0?At=$t.isub(this.m):$t.cmpn(0)<0&&(At=$t.iadd(this.m)),At._forceRed(this)},_r.prototype.mul=function(Rt,Ct){if(Rt.isZero()||Ct.isZero())return new ot(0)._forceRed(this);var yt=Rt.mul(Ct),_t=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$t=yt.isub(_t).iushrn(this.shift),At=$t;return $t.cmp(this.m)>=0?At=$t.isub(this.m):$t.cmpn(0)<0&&(At=$t.iadd(this.m)),At._forceRed(this)},_r.prototype.invm=function(Rt){var Ct=this.imod(Rt._invmp(this.m).mul(this.r2));return Ct._forceRed(this)}})(d,commonjsGlobal)}(bn$2)),bn$2.exports}var brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var d;brorand.exports=function(st){return d||(d=new b(null)),d.generate(st)};function b(nt){this.rand=nt}if(brorand.exports.Rand=b,b.prototype.generate=function(st){return this._rand(st)},b.prototype._rand=function(st){if(this.rand.getBytes)return this.rand.getBytes(st);for(var ot=new Uint8Array(st),ft=0;ft=0);return ht},tt.prototype._randrange=function(st,ot){var ft=ot.sub(st);return st.add(this._randbelow(ft))},tt.prototype.test=function(st,ot,ft){var ht=st.bitLength(),gt=d.mont(st),vt=new d(1).toRed(gt);ot||(ot=Math.max(1,ht/48|0));for(var mt=st.subn(1),bt=0;!mt.testn(bt);bt++);for(var wt=st.shrn(bt),xt=mt.toRed(gt),Et=!0;ot>0;ot--){var kt=this._randrange(new d(2),mt);ft&&ft(kt);var Dt=kt.toRed(gt).redPow(wt);if(!(Dt.cmp(vt)===0||Dt.cmp(xt)===0)){for(var Tt=1;Tt0;ot--){var xt=this._randrange(new d(2),vt),Et=st.gcd(xt);if(Et.cmpn(1)!==0)return Et;var kt=xt.toRed(ht).redPow(bt);if(!(kt.cmp(gt)===0||kt.cmp(wt)===0)){for(var Dt=1;DtTt;)jt.ishrn(1);if(jt.isEven()&&jt.iadd(ot),jt.testn(1)||jt.iadd(ft),qt.cmp(ft)){if(!qt.cmp(ht))for(;jt.mod(gt).cmp(vt);)jt.iadd(bt)}else for(;jt.mod(tt).cmp(mt);)jt.iadd(bt);if(Lt=jt.shrn(1),Et(Lt)&&Et(jt)&&kt(Lt)&&kt(jt)&&st.test(Lt)&&st.test(jt))return jt}}return generatePrime}const 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"},require$$1$2={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh$1,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh$1;hasRequiredDh=1;var d=requireBn$2(),b=requireMr(),tt=new b,nt=new d(24),st=new d(11),ot=new d(10),ft=new d(3),ht=new d(7),gt=requireGeneratePrime(),vt=requireBrowser$b();dh$1=Et;function mt(Dt,Tt){return Tt=Tt||"utf8",Buffer.isBuffer(Dt)||(Dt=new Buffer(Dt,Tt)),this._pub=new d(Dt),this}function bt(Dt,Tt){return Tt=Tt||"utf8",Buffer.isBuffer(Dt)||(Dt=new Buffer(Dt,Tt)),this._priv=new d(Dt),this}var wt={};function xt(Dt,Tt){var qt=Tt.toString("hex"),jt=[qt,Dt.toString(16)].join("_");if(jt in wt)return wt[jt];var Lt=0;if(Dt.isEven()||!gt.simpleSieve||!gt.fermatTest(Dt)||!tt.test(Dt))return Lt+=1,qt==="02"||qt==="05"?Lt+=8:Lt+=4,wt[jt]=Lt,Lt;tt.test(Dt.shrn(1))||(Lt+=2);var Gt;switch(qt){case"02":Dt.mod(nt).cmp(st)&&(Lt+=8);break;case"05":Gt=Dt.mod(ot),Gt.cmp(ft)&&Gt.cmp(ht)&&(Lt+=8);break;default:Lt+=4}return wt[jt]=Lt,Lt}function Et(Dt,Tt,qt){this.setGenerator(Tt),this.__prime=new d(Dt),this._prime=d.mont(this.__prime),this._primeLen=Dt.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,qt?(this.setPublicKey=mt,this.setPrivateKey=bt):this._primeCode=8}Object.defineProperty(Et.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=xt(this.__prime,this.__gen)),this._primeCode}}),Et.prototype.generateKeys=function(){return this._priv||(this._priv=new d(vt(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},Et.prototype.computeSecret=function(Dt){Dt=new d(Dt),Dt=Dt.toRed(this._prime);var Tt=Dt.redPow(this._priv).fromRed(),qt=new Buffer(Tt.toArray()),jt=this.getPrime();if(qt.length"u"||!process$1.version||process$1.version.indexOf("v0.")===0||process$1.version.indexOf("v1.")===0&&process$1.version.indexOf("v1.8.")!==0?processNextickArgs.exports={nextTick:d}:processNextickArgs.exports=process$1;function d(b,tt,nt,st){if(typeof b!="function")throw new TypeError('"callback" argument must be a function');var ot=arguments.length,ft,ht;switch(ot){case 0:case 1:return process$1.nextTick(b);case 2:return process$1.nextTick(function(){b.call(null,tt)});case 3:return process$1.nextTick(function(){b.call(null,tt,nt)});case 4:return process$1.nextTick(function(){b.call(null,tt,nt,st)});default:for(ft=new Array(ot-1),ht=0;ht"u"}util$1.isPrimitive=xt,util$1.isBuffer=require$$1$3.Buffer.isBuffer;function Et(kt){return Object.prototype.toString.call(kt)}return util$1}var BufferList={exports:{}},hasRequiredBufferList;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,function(d){function b(ot,ft){if(!(ot instanceof ft))throw new TypeError("Cannot call a class as a function")}var tt=requireSafeBuffer().Buffer,nt=requireUtil$1();function st(ot,ft,ht){ot.copy(ft,ht)}d.exports=function(){function ot(){b(this,ot),this.head=null,this.tail=null,this.length=0}return ot.prototype.push=function(ht){var gt={data:ht,next:null};this.length>0?this.tail.next=gt:this.head=gt,this.tail=gt,++this.length},ot.prototype.unshift=function(ht){var gt={data:ht,next:this.head};this.length===0&&(this.tail=gt),this.head=gt,++this.length},ot.prototype.shift=function(){if(this.length!==0){var ht=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,ht}},ot.prototype.clear=function(){this.head=this.tail=null,this.length=0},ot.prototype.join=function(ht){if(this.length===0)return"";for(var gt=this.head,vt=""+gt.data;gt=gt.next;)vt+=ht+gt.data;return vt},ot.prototype.concat=function(ht){if(this.length===0)return tt.alloc(0);for(var gt=tt.allocUnsafe(ht>>>0),vt=this.head,mt=0;vt;)st(vt.data,gt,mt),mt+=vt.data.length,vt=vt.next;return gt},ot}(),nt&&nt.inspect&&nt.inspect.custom&&(d.exports.prototype[nt.inspect.custom]=function(){var ot=nt.inspect({length:this.length});return this.constructor.name+" "+ot})}(BufferList)),BufferList.exports}var destroy_1,hasRequiredDestroy;function requireDestroy(){if(hasRequiredDestroy)return destroy_1;hasRequiredDestroy=1;var d=requireProcessNextickArgs();function b(st,ot){var ft=this,ht=this._readableState&&this._readableState.destroyed,gt=this._writableState&&this._writableState.destroyed;return ht||gt?(ot?ot(st):st&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,d.nextTick(nt,this,st)):d.nextTick(nt,this,st)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(st||null,function(vt){!ot&&vt?ft._writableState?ft._writableState.errorEmitted||(ft._writableState.errorEmitted=!0,d.nextTick(nt,ft,vt)):d.nextTick(nt,ft,vt):ot&&ot(vt)}),this)}function tt(){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)}function nt(st,ot){st.emit("error",ot)}return destroy_1={destroy:b,undestroy:tt},destroy_1}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1;var d=requireProcessNextickArgs();_stream_writable=kt;function b(At){var It=this;this.next=null,this.entry=null,this.finish=function(){$t(It,At)}}var tt=!process$1.browser&&["v0.10","v0.9."].indexOf(process$1.version.slice(0,5))>-1?setImmediate:d.nextTick,nt;kt.WritableState=xt;var st=Object.create(requireUtil());st.inherits=requireInherits_browser();var ot={deprecate:requireBrowser$a()},ft=requireStreamBrowser(),ht=requireSafeBuffer().Buffer,gt=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function vt(At){return ht.from(At)}function mt(At){return ht.isBuffer(At)||At instanceof gt}var bt=requireDestroy();st.inherits(kt,ft);function wt(){}function xt(At,It){nt=nt||require_stream_duplex(),At=At||{};var Bt=It instanceof nt;this.objectMode=!!At.objectMode,Bt&&(this.objectMode=this.objectMode||!!At.writableObjectMode);var Pt=At.highWaterMark,Ot=At.writableHighWaterMark,Mt=this.objectMode?16:16*1024;Pt||Pt===0?this.highWaterMark=Pt:Bt&&(Ot||Ot===0)?this.highWaterMark=Ot:this.highWaterMark=Mt,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 zt=At.decodeStrings===!1;this.decodeStrings=!zt,this.defaultEncoding=At.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(yr){tr(It,yr)},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 b(this)}xt.prototype.getBuffer=function(){for(var It=this.bufferedRequest,Bt=[];It;)Bt.push(It),It=It.next;return Bt},function(){try{Object.defineProperty(xt.prototype,"buffer",{get:ot.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var Et;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Et=Function.prototype[Symbol.hasInstance],Object.defineProperty(kt,Symbol.hasInstance,{value:function(At){return Et.call(this,At)?!0:this!==kt?!1:At&&At._writableState instanceof xt}})):Et=function(At){return At instanceof this};function kt(At){if(nt=nt||require_stream_duplex(),!Et.call(kt,this)&&!(this instanceof nt))return new kt(At);this._writableState=new xt(At,this),this.writable=!0,At&&(typeof At.write=="function"&&(this._write=At.write),typeof At.writev=="function"&&(this._writev=At.writev),typeof At.destroy=="function"&&(this._destroy=At.destroy),typeof At.final=="function"&&(this._final=At.final)),ft.call(this)}kt.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Dt(At,It){var Bt=new Error("write after end");At.emit("error",Bt),d.nextTick(It,Bt)}function Tt(At,It,Bt,Pt){var Ot=!0,Mt=!1;return Bt===null?Mt=new TypeError("May not write null values to stream"):typeof Bt!="string"&&Bt!==void 0&&!It.objectMode&&(Mt=new TypeError("Invalid non-string/buffer chunk")),Mt&&(At.emit("error",Mt),d.nextTick(Pt,Mt),Ot=!1),Ot}kt.prototype.write=function(At,It,Bt){var Pt=this._writableState,Ot=!1,Mt=!Pt.objectMode&&mt(At);return Mt&&!ht.isBuffer(At)&&(At=vt(At)),typeof It=="function"&&(Bt=It,It=null),Mt?It="buffer":It||(It=Pt.defaultEncoding),typeof Bt!="function"&&(Bt=wt),Pt.ended?Dt(this,Bt):(Mt||Tt(this,Pt,At,Bt))&&(Pt.pendingcb++,Ot=jt(this,Pt,Mt,At,It,Bt)),Ot},kt.prototype.cork=function(){var At=this._writableState;At.corked++},kt.prototype.uncork=function(){var At=this._writableState;At.corked&&(At.corked--,!At.writing&&!At.corked&&!At.bufferProcessing&&At.bufferedRequest&&_r(this,At))},kt.prototype.setDefaultEncoding=function(It){if(typeof It=="string"&&(It=It.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((It+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+It);return this._writableState.defaultEncoding=It,this};function qt(At,It,Bt){return!At.objectMode&&At.decodeStrings!==!1&&typeof It=="string"&&(It=ht.from(It,Bt)),It}Object.defineProperty(kt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function jt(At,It,Bt,Pt,Ot,Mt){if(!Bt){var zt=qt(It,Pt,Ot);Pt!==zt&&(Bt=!0,Ot="buffer",Pt=zt)}var yr=It.objectMode?1:Pt.length;It.length+=yr;var vr=It.length0?(typeof er!="string"&&!ir.objectMode&&Object.getPrototypeOf(er)!==ot.prototype&&(er=ht(er)),wr?ir.endEmitted?rr.emit("error",new Error("stream.unshift() after end event")):Lt(rr,ir,er,!0):ir.ended?rr.emit("error",new Error("stream.push() after EOF")):(ir.reading=!1,ir.decoder&&!fr?(er=ir.decoder.write(er),ir.objectMode||er.length!==0?Lt(rr,ir,er,!1):Ct(rr,ir)):Lt(rr,ir,er,!1))):wr||(ir.reading=!1)}return Qt(ir)}function Lt(rr,er,fr,wr){er.flowing&&er.length===0&&!er.sync?(rr.emit("data",fr),rr.read(0)):(er.length+=er.objectMode?1:fr.length,wr?er.buffer.unshift(fr):er.buffer.push(fr),er.needReadable&&Jt(rr)),Ct(rr,er)}function Gt(rr,er){var fr;return!gt(er)&&typeof er!="string"&&er!==void 0&&!rr.objectMode&&(fr=new TypeError("Invalid non-string/buffer chunk")),fr}function Qt(rr){return!rr.ended&&(rr.needReadable||rr.length=tr?rr=tr:(rr--,rr|=rr>>>1,rr|=rr>>>2,rr|=rr>>>4,rr|=rr>>>8,rr|=rr>>>16,rr++),rr}function ar(rr,er){return rr<=0||er.length===0&&er.ended?0:er.objectMode?1:rr!==rr?er.flowing&&er.length?er.buffer.head.data.length:er.length:(rr>er.highWaterMark&&(er.highWaterMark=sr(rr)),rr<=er.length?rr:er.ended?er.length:(er.needReadable=!0,0))}qt.prototype.read=function(rr){bt("read",rr),rr=parseInt(rr,10);var er=this._readableState,fr=rr;if(rr!==0&&(er.emittedReadable=!1),rr===0&&er.needReadable&&(er.length>=er.highWaterMark||er.ended))return bt("read: emitReadable",er.length,er.ended),er.length===0&&er.ended?yr(this):Jt(this),null;if(rr=ar(rr,er),rr===0&&er.ended)return er.length===0&&yr(this),null;var wr=er.needReadable;bt("need readable",wr),(er.length===0||er.length-rr0?nr=Pt(rr,er):nr=null,nr===null?(er.needReadable=!0,rr=0):er.length-=rr,er.length===0&&(er.ended||(er.needReadable=!0),fr!==rr&&er.ended&&yr(this)),nr!==null&&this.emit("data",nr),nr};function _r(rr,er){if(!er.ended){if(er.decoder){var fr=er.decoder.end();fr&&fr.length&&(er.buffer.push(fr),er.length+=er.objectMode?1:fr.length)}er.ended=!0,Jt(rr)}}function Jt(rr){var er=rr._readableState;er.needReadable=!1,er.emittedReadable||(bt("emitReadable",er.flowing),er.emittedReadable=!0,er.sync?d.nextTick(Rt,rr):Rt(rr))}function Rt(rr){bt("emit readable"),rr.emit("readable"),Bt(rr)}function Ct(rr,er){er.readingMore||(er.readingMore=!0,d.nextTick(yt,rr,er))}function yt(rr,er){for(var fr=er.length;!er.reading&&!er.flowing&&!er.ended&&er.length1&&hr(wr.pipes,rr)!==-1)&&!Jr&&(bt("false write response, pause",wr.awaitDrain),wr.awaitDrain++,Wr=!0),fr.pause())}function hn(rn){bt("onerror",rn),yn(),rr.removeListener("error",hn),nt(rr,"error")===0&&rr.emit("error",rn)}Dt(rr,"error",hn);function nn(){rr.removeListener("finish",kn),yn()}rr.once("close",nn);function kn(){bt("onfinish"),rr.removeListener("close",nn),yn()}rr.once("finish",kn);function yn(){bt("unpipe"),fr.unpipe(rr)}return rr.emit("pipe",fr),wr.flowing||(bt("pipe resume"),fr.resume()),rr};function _t(rr){return function(){var er=rr._readableState;bt("pipeOnDrain",er.awaitDrain),er.awaitDrain&&er.awaitDrain--,er.awaitDrain===0&&nt(rr,"data")&&(er.flowing=!0,Bt(rr))}}qt.prototype.unpipe=function(rr){var er=this._readableState,fr={hasUnpiped:!1};if(er.pipesCount===0)return this;if(er.pipesCount===1)return rr&&rr!==er.pipes?this:(rr||(rr=er.pipes),er.pipes=null,er.pipesCount=0,er.flowing=!1,rr&&rr.emit("unpipe",this,fr),this);if(!rr){var wr=er.pipes,nr=er.pipesCount;er.pipes=null,er.pipesCount=0,er.flowing=!1;for(var ir=0;ir=er.length?(er.decoder?fr=er.buffer.join(""):er.buffer.length===1?fr=er.buffer.head.data:fr=er.buffer.concat(er.length),er.buffer.clear()):fr=Ot(rr,er.buffer,er.decoder),fr}function Ot(rr,er,fr){var wr;return rrir.length?ir.length:rr;if(Br===ir.length?nr+=ir:nr+=ir.slice(0,rr),rr-=Br,rr===0){Br===ir.length?(++wr,fr.next?er.head=fr.next:er.head=er.tail=null):(er.head=fr,fr.data=ir.slice(Br));break}++wr}return er.length-=wr,nr}function zt(rr,er){var fr=ot.allocUnsafe(rr),wr=er.head,nr=1;for(wr.data.copy(fr),rr-=wr.data.length;wr=wr.next;){var ir=wr.data,Br=rr>ir.length?ir.length:rr;if(ir.copy(fr,fr.length-rr,0,Br),rr-=Br,rr===0){Br===ir.length?(++nr,wr.next?er.head=wr.next:er.head=er.tail=null):(er.head=wr,wr.data=ir.slice(Br));break}++nr}return er.length-=nr,fr}function yr(rr){var er=rr._readableState;if(er.length>0)throw new Error('"endReadable()" called on non-empty stream');er.endEmitted||(er.ended=!0,d.nextTick(vr,er,rr))}function vr(rr,er){!rr.endEmitted&&rr.length===0&&(rr.endEmitted=!0,er.readable=!1,er.emit("end"))}function hr(rr,er){for(var fr=0,wr=rr.length;fr0?yt:_t},ot.min=function(yt,_t){return yt.cmp(_t)<0?yt:_t},ot.prototype._init=function(yt,_t,$t){if(typeof yt=="number")return this._initNumber(yt,_t,$t);if(typeof yt=="object")return this._initArray(yt,_t,$t);_t==="hex"&&(_t=16),nt(_t===(_t|0)&&_t>=2&&_t<=36),yt=yt.toString().replace(/\s+/g,"");var At=0;yt[0]==="-"&&(At++,this.negative=1),At=0;At-=3)Bt=yt[At]|yt[At-1]<<8|yt[At-2]<<16,this.words[It]|=Bt<>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,It++);else if($t==="le")for(At=0,It=0;At>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,It++);return this._strip()};function ht(Ct,yt){var _t=Ct.charCodeAt(yt);if(_t>=48&&_t<=57)return _t-48;if(_t>=65&&_t<=70)return _t-55;if(_t>=97&&_t<=102)return _t-87;nt(!1,"Invalid character in "+Ct)}function gt(Ct,yt,_t){var $t=ht(Ct,_t);return _t-1>=yt&&($t|=ht(Ct,_t-1)<<4),$t}ot.prototype._parseHex=function(yt,_t,$t){this.length=Math.ceil((yt.length-_t)/6),this.words=new Array(this.length);for(var At=0;At=_t;At-=2)Pt=gt(yt,_t,At)<=18?(It-=18,Bt+=1,this.words[Bt]|=Pt>>>26):It+=8;else{var Ot=yt.length-_t;for(At=Ot%2===0?_t+1:_t;At=18?(It-=18,Bt+=1,this.words[Bt]|=Pt>>>26):It+=8}this._strip()};function vt(Ct,yt,_t,$t){for(var At=0,It=0,Bt=Math.min(Ct.length,_t),Pt=yt;Pt=49?It=Ot-49+10:Ot>=17?It=Ot-17+10:It=Ot,nt(Ot>=0&&It<$t,"Invalid character"),At+=It}return At}ot.prototype._parseBase=function(yt,_t,$t){this.words=[0],this.length=1;for(var At=0,It=1;It<=67108863;It*=_t)At++;At--,It=It/_t|0;for(var Bt=yt.length-$t,Pt=Bt%At,Ot=Math.min(Bt,Bt-Pt)+$t,Mt=0,zt=$t;zt1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},ot.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{ot.prototype[Symbol.for("nodejs.util.inspect.custom")]=bt}catch{ot.prototype.inspect=bt}else ot.prototype.inspect=bt;function bt(){return(this.red?""}var wt=["","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"],xt=[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],Et=[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];ot.prototype.toString=function(yt,_t){yt=yt||10,_t=_t|0||1;var $t;if(yt===16||yt==="hex"){$t="";for(var At=0,It=0,Bt=0;Bt>>24-At&16777215,At+=2,At>=26&&(At-=26,Bt--),It!==0||Bt!==this.length-1?$t=wt[6-Ot.length]+Ot+$t:$t=Ot+$t}for(It!==0&&($t=It.toString(16)+$t);$t.length%_t!==0;)$t="0"+$t;return this.negative!==0&&($t="-"+$t),$t}if(yt===(yt|0)&&yt>=2&&yt<=36){var Mt=xt[yt],zt=Et[yt];$t="";var yr=this.clone();for(yr.negative=0;!yr.isZero();){var vr=yr.modrn(zt).toString(yt);yr=yr.idivn(zt),yr.isZero()?$t=vr+$t:$t=wt[Mt-vr.length]+vr+$t}for(this.isZero()&&($t="0"+$t);$t.length%_t!==0;)$t="0"+$t;return this.negative!==0&&($t="-"+$t),$t}nt(!1,"Base should be between 2 and 36")},ot.prototype.toNumber=function(){var yt=this.words[0];return this.length===2?yt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?yt+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-yt:yt},ot.prototype.toJSON=function(){return this.toString(16,2)},ft&&(ot.prototype.toBuffer=function(yt,_t){return this.toArrayLike(ft,yt,_t)}),ot.prototype.toArray=function(yt,_t){return this.toArrayLike(Array,yt,_t)};var kt=function(yt,_t){return yt.allocUnsafe?yt.allocUnsafe(_t):new yt(_t)};ot.prototype.toArrayLike=function(yt,_t,$t){this._strip();var At=this.byteLength(),It=$t||Math.max(1,At);nt(At<=It,"byte array longer than desired length"),nt(It>0,"Requested array length <= 0");var Bt=kt(yt,It),Pt=_t==="le"?"LE":"BE";return this["_toArrayLike"+Pt](Bt,At),Bt},ot.prototype._toArrayLikeLE=function(yt,_t){for(var $t=0,At=0,It=0,Bt=0;It>8&255),$t>16&255),Bt===6?($t>24&255),At=0,Bt=0):(At=Pt>>>24,Bt+=2)}if($t=0&&(yt[$t--]=Pt>>8&255),$t>=0&&(yt[$t--]=Pt>>16&255),Bt===6?($t>=0&&(yt[$t--]=Pt>>24&255),At=0,Bt=0):(At=Pt>>>24,Bt+=2)}if($t>=0)for(yt[$t--]=At;$t>=0;)yt[$t--]=0},Math.clz32?ot.prototype._countBits=function(yt){return 32-Math.clz32(yt)}:ot.prototype._countBits=function(yt){var _t=yt,$t=0;return _t>=4096&&($t+=13,_t>>>=13),_t>=64&&($t+=7,_t>>>=7),_t>=8&&($t+=4,_t>>>=4),_t>=2&&($t+=2,_t>>>=2),$t+_t},ot.prototype._zeroBits=function(yt){if(yt===0)return 26;var _t=yt,$t=0;return _t&8191||($t+=13,_t>>>=13),_t&127||($t+=7,_t>>>=7),_t&15||($t+=4,_t>>>=4),_t&3||($t+=2,_t>>>=2),_t&1||$t++,$t},ot.prototype.bitLength=function(){var yt=this.words[this.length-1],_t=this._countBits(yt);return(this.length-1)*26+_t};function Dt(Ct){for(var yt=new Array(Ct.bitLength()),_t=0;_t>>At&1}return yt}ot.prototype.zeroBits=function(){if(this.isZero())return 0;for(var yt=0,_t=0;_tyt.length?this.clone().ior(yt):yt.clone().ior(this)},ot.prototype.uor=function(yt){return this.length>yt.length?this.clone().iuor(yt):yt.clone().iuor(this)},ot.prototype.iuand=function(yt){var _t;this.length>yt.length?_t=yt:_t=this;for(var $t=0;$t<_t.length;$t++)this.words[$t]=this.words[$t]&yt.words[$t];return this.length=_t.length,this._strip()},ot.prototype.iand=function(yt){return nt((this.negative|yt.negative)===0),this.iuand(yt)},ot.prototype.and=function(yt){return this.length>yt.length?this.clone().iand(yt):yt.clone().iand(this)},ot.prototype.uand=function(yt){return this.length>yt.length?this.clone().iuand(yt):yt.clone().iuand(this)},ot.prototype.iuxor=function(yt){var _t,$t;this.length>yt.length?(_t=this,$t=yt):(_t=yt,$t=this);for(var At=0;At<$t.length;At++)this.words[At]=_t.words[At]^$t.words[At];if(this!==_t)for(;At<_t.length;At++)this.words[At]=_t.words[At];return this.length=_t.length,this._strip()},ot.prototype.ixor=function(yt){return nt((this.negative|yt.negative)===0),this.iuxor(yt)},ot.prototype.xor=function(yt){return this.length>yt.length?this.clone().ixor(yt):yt.clone().ixor(this)},ot.prototype.uxor=function(yt){return this.length>yt.length?this.clone().iuxor(yt):yt.clone().iuxor(this)},ot.prototype.inotn=function(yt){nt(typeof yt=="number"&&yt>=0);var _t=Math.ceil(yt/26)|0,$t=yt%26;this._expand(_t),$t>0&&_t--;for(var At=0;At<_t;At++)this.words[At]=~this.words[At]&67108863;return $t>0&&(this.words[At]=~this.words[At]&67108863>>26-$t),this._strip()},ot.prototype.notn=function(yt){return this.clone().inotn(yt)},ot.prototype.setn=function(yt,_t){nt(typeof yt=="number"&&yt>=0);var $t=yt/26|0,At=yt%26;return this._expand($t+1),_t?this.words[$t]=this.words[$t]|1<yt.length?($t=this,At=yt):($t=yt,At=this);for(var It=0,Bt=0;Bt>>26;for(;It!==0&&Bt<$t.length;Bt++)_t=($t.words[Bt]|0)+It,this.words[Bt]=_t&67108863,It=_t>>>26;if(this.length=$t.length,It!==0)this.words[this.length]=It,this.length++;else if($t!==this)for(;Bt<$t.length;Bt++)this.words[Bt]=$t.words[Bt];return this},ot.prototype.add=function(yt){var _t;return yt.negative!==0&&this.negative===0?(yt.negative=0,_t=this.sub(yt),yt.negative^=1,_t):yt.negative===0&&this.negative!==0?(this.negative=0,_t=yt.sub(this),this.negative=1,_t):this.length>yt.length?this.clone().iadd(yt):yt.clone().iadd(this)},ot.prototype.isub=function(yt){if(yt.negative!==0){yt.negative=0;var _t=this.iadd(yt);return yt.negative=1,_t._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(yt),this.negative=1,this._normSign();var $t=this.cmp(yt);if($t===0)return this.negative=0,this.length=1,this.words[0]=0,this;var At,It;$t>0?(At=this,It=yt):(At=yt,It=this);for(var Bt=0,Pt=0;Pt>26,this.words[Pt]=_t&67108863;for(;Bt!==0&&Pt>26,this.words[Pt]=_t&67108863;if(Bt===0&&Pt>>26,yr=Ot&67108863,vr=Math.min(Mt,yt.length-1),hr=Math.max(0,Mt-Ct.length+1);hr<=vr;hr++){var rr=Mt-hr|0;At=Ct.words[rr]|0,It=yt.words[hr]|0,Bt=At*It+yr,zt+=Bt/67108864|0,yr=Bt&67108863}_t.words[Mt]=yr|0,Ot=zt|0}return Ot!==0?_t.words[Mt]=Ot|0:_t.length--,_t._strip()}var qt=function(yt,_t,$t){var At=yt.words,It=_t.words,Bt=$t.words,Pt=0,Ot,Mt,zt,yr=At[0]|0,vr=yr&8191,hr=yr>>>13,rr=At[1]|0,er=rr&8191,fr=rr>>>13,wr=At[2]|0,nr=wr&8191,ir=wr>>>13,Br=At[3]|0,Ir=Br&8191,Dr=Br>>>13,Jr=At[4]|0,Yr=Jr&8191,Wr=Jr>>>13,Or=At[5]|0,hn=Or&8191,nn=Or>>>13,kn=At[6]|0,yn=kn&8191,rn=kn>>>13,Ar=At[7]|0,dr=Ar&8191,xr=Ar>>>13,Mr=At[8]|0,Tr=Mr&8191,Yt=Mr>>>13,Wt=At[9]|0,Vt=Wt&8191,or=Wt>>>13,Cr=It[0]|0,Rr=Cr&8191,$r=Cr>>>13,Hr=It[1]|0,Nr=Hr&8191,Ur=Hr>>>13,_n=It[2]|0,tn=_n&8191,gn=_n>>>13,qn=It[3]|0,En=qn&8191,vn=qn>>>13,On=It[4]|0,In=On&8191,Mn=On>>>13,Fn=It[5]|0,Un=Fn&8191,wn=Fn>>>13,Kn=It[6]|0,Ut=Kn&8191,Ft=Kn>>>13,Ht=It[7]|0,St=Ht&8191,Kt=Ht>>>13,gr=It[8]|0,br=gr&8191,kr=gr>>>13,Pr=It[9]|0,jr=Pr&8191,qr=Pr>>>13;$t.negative=yt.negative^_t.negative,$t.length=19,Ot=Math.imul(vr,Rr),Mt=Math.imul(vr,$r),Mt=Mt+Math.imul(hr,Rr)|0,zt=Math.imul(hr,$r);var Sn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Sn>>>26)|0,Sn&=67108863,Ot=Math.imul(er,Rr),Mt=Math.imul(er,$r),Mt=Mt+Math.imul(fr,Rr)|0,zt=Math.imul(fr,$r),Ot=Ot+Math.imul(vr,Nr)|0,Mt=Mt+Math.imul(vr,Ur)|0,Mt=Mt+Math.imul(hr,Nr)|0,zt=zt+Math.imul(hr,Ur)|0;var Vr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,Ot=Math.imul(nr,Rr),Mt=Math.imul(nr,$r),Mt=Mt+Math.imul(ir,Rr)|0,zt=Math.imul(ir,$r),Ot=Ot+Math.imul(er,Nr)|0,Mt=Mt+Math.imul(er,Ur)|0,Mt=Mt+Math.imul(fr,Nr)|0,zt=zt+Math.imul(fr,Ur)|0,Ot=Ot+Math.imul(vr,tn)|0,Mt=Mt+Math.imul(vr,gn)|0,Mt=Mt+Math.imul(hr,tn)|0,zt=zt+Math.imul(hr,gn)|0;var an=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(an>>>26)|0,an&=67108863,Ot=Math.imul(Ir,Rr),Mt=Math.imul(Ir,$r),Mt=Mt+Math.imul(Dr,Rr)|0,zt=Math.imul(Dr,$r),Ot=Ot+Math.imul(nr,Nr)|0,Mt=Mt+Math.imul(nr,Ur)|0,Mt=Mt+Math.imul(ir,Nr)|0,zt=zt+Math.imul(ir,Ur)|0,Ot=Ot+Math.imul(er,tn)|0,Mt=Mt+Math.imul(er,gn)|0,Mt=Mt+Math.imul(fr,tn)|0,zt=zt+Math.imul(fr,gn)|0,Ot=Ot+Math.imul(vr,En)|0,Mt=Mt+Math.imul(vr,vn)|0,Mt=Mt+Math.imul(hr,En)|0,zt=zt+Math.imul(hr,vn)|0;var sn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(sn>>>26)|0,sn&=67108863,Ot=Math.imul(Yr,Rr),Mt=Math.imul(Yr,$r),Mt=Mt+Math.imul(Wr,Rr)|0,zt=Math.imul(Wr,$r),Ot=Ot+Math.imul(Ir,Nr)|0,Mt=Mt+Math.imul(Ir,Ur)|0,Mt=Mt+Math.imul(Dr,Nr)|0,zt=zt+Math.imul(Dr,Ur)|0,Ot=Ot+Math.imul(nr,tn)|0,Mt=Mt+Math.imul(nr,gn)|0,Mt=Mt+Math.imul(ir,tn)|0,zt=zt+Math.imul(ir,gn)|0,Ot=Ot+Math.imul(er,En)|0,Mt=Mt+Math.imul(er,vn)|0,Mt=Mt+Math.imul(fr,En)|0,zt=zt+Math.imul(fr,vn)|0,Ot=Ot+Math.imul(vr,In)|0,Mt=Mt+Math.imul(vr,Mn)|0,Mt=Mt+Math.imul(hr,In)|0,zt=zt+Math.imul(hr,Mn)|0;var pn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(pn>>>26)|0,pn&=67108863,Ot=Math.imul(hn,Rr),Mt=Math.imul(hn,$r),Mt=Mt+Math.imul(nn,Rr)|0,zt=Math.imul(nn,$r),Ot=Ot+Math.imul(Yr,Nr)|0,Mt=Mt+Math.imul(Yr,Ur)|0,Mt=Mt+Math.imul(Wr,Nr)|0,zt=zt+Math.imul(Wr,Ur)|0,Ot=Ot+Math.imul(Ir,tn)|0,Mt=Mt+Math.imul(Ir,gn)|0,Mt=Mt+Math.imul(Dr,tn)|0,zt=zt+Math.imul(Dr,gn)|0,Ot=Ot+Math.imul(nr,En)|0,Mt=Mt+Math.imul(nr,vn)|0,Mt=Mt+Math.imul(ir,En)|0,zt=zt+Math.imul(ir,vn)|0,Ot=Ot+Math.imul(er,In)|0,Mt=Mt+Math.imul(er,Mn)|0,Mt=Mt+Math.imul(fr,In)|0,zt=zt+Math.imul(fr,Mn)|0,Ot=Ot+Math.imul(vr,Un)|0,Mt=Mt+Math.imul(vr,wn)|0,Mt=Mt+Math.imul(hr,Un)|0,zt=zt+Math.imul(hr,wn)|0;var dn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(dn>>>26)|0,dn&=67108863,Ot=Math.imul(yn,Rr),Mt=Math.imul(yn,$r),Mt=Mt+Math.imul(rn,Rr)|0,zt=Math.imul(rn,$r),Ot=Ot+Math.imul(hn,Nr)|0,Mt=Mt+Math.imul(hn,Ur)|0,Mt=Mt+Math.imul(nn,Nr)|0,zt=zt+Math.imul(nn,Ur)|0,Ot=Ot+Math.imul(Yr,tn)|0,Mt=Mt+Math.imul(Yr,gn)|0,Mt=Mt+Math.imul(Wr,tn)|0,zt=zt+Math.imul(Wr,gn)|0,Ot=Ot+Math.imul(Ir,En)|0,Mt=Mt+Math.imul(Ir,vn)|0,Mt=Mt+Math.imul(Dr,En)|0,zt=zt+Math.imul(Dr,vn)|0,Ot=Ot+Math.imul(nr,In)|0,Mt=Mt+Math.imul(nr,Mn)|0,Mt=Mt+Math.imul(ir,In)|0,zt=zt+Math.imul(ir,Mn)|0,Ot=Ot+Math.imul(er,Un)|0,Mt=Mt+Math.imul(er,wn)|0,Mt=Mt+Math.imul(fr,Un)|0,zt=zt+Math.imul(fr,wn)|0,Ot=Ot+Math.imul(vr,Ut)|0,Mt=Mt+Math.imul(vr,Ft)|0,Mt=Mt+Math.imul(hr,Ut)|0,zt=zt+Math.imul(hr,Ft)|0;var ln=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(ln>>>26)|0,ln&=67108863,Ot=Math.imul(dr,Rr),Mt=Math.imul(dr,$r),Mt=Mt+Math.imul(xr,Rr)|0,zt=Math.imul(xr,$r),Ot=Ot+Math.imul(yn,Nr)|0,Mt=Mt+Math.imul(yn,Ur)|0,Mt=Mt+Math.imul(rn,Nr)|0,zt=zt+Math.imul(rn,Ur)|0,Ot=Ot+Math.imul(hn,tn)|0,Mt=Mt+Math.imul(hn,gn)|0,Mt=Mt+Math.imul(nn,tn)|0,zt=zt+Math.imul(nn,gn)|0,Ot=Ot+Math.imul(Yr,En)|0,Mt=Mt+Math.imul(Yr,vn)|0,Mt=Mt+Math.imul(Wr,En)|0,zt=zt+Math.imul(Wr,vn)|0,Ot=Ot+Math.imul(Ir,In)|0,Mt=Mt+Math.imul(Ir,Mn)|0,Mt=Mt+Math.imul(Dr,In)|0,zt=zt+Math.imul(Dr,Mn)|0,Ot=Ot+Math.imul(nr,Un)|0,Mt=Mt+Math.imul(nr,wn)|0,Mt=Mt+Math.imul(ir,Un)|0,zt=zt+Math.imul(ir,wn)|0,Ot=Ot+Math.imul(er,Ut)|0,Mt=Mt+Math.imul(er,Ft)|0,Mt=Mt+Math.imul(fr,Ut)|0,zt=zt+Math.imul(fr,Ft)|0,Ot=Ot+Math.imul(vr,St)|0,Mt=Mt+Math.imul(vr,Kt)|0,Mt=Mt+Math.imul(hr,St)|0,zt=zt+Math.imul(hr,Kt)|0;var fn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(fn>>>26)|0,fn&=67108863,Ot=Math.imul(Tr,Rr),Mt=Math.imul(Tr,$r),Mt=Mt+Math.imul(Yt,Rr)|0,zt=Math.imul(Yt,$r),Ot=Ot+Math.imul(dr,Nr)|0,Mt=Mt+Math.imul(dr,Ur)|0,Mt=Mt+Math.imul(xr,Nr)|0,zt=zt+Math.imul(xr,Ur)|0,Ot=Ot+Math.imul(yn,tn)|0,Mt=Mt+Math.imul(yn,gn)|0,Mt=Mt+Math.imul(rn,tn)|0,zt=zt+Math.imul(rn,gn)|0,Ot=Ot+Math.imul(hn,En)|0,Mt=Mt+Math.imul(hn,vn)|0,Mt=Mt+Math.imul(nn,En)|0,zt=zt+Math.imul(nn,vn)|0,Ot=Ot+Math.imul(Yr,In)|0,Mt=Mt+Math.imul(Yr,Mn)|0,Mt=Mt+Math.imul(Wr,In)|0,zt=zt+Math.imul(Wr,Mn)|0,Ot=Ot+Math.imul(Ir,Un)|0,Mt=Mt+Math.imul(Ir,wn)|0,Mt=Mt+Math.imul(Dr,Un)|0,zt=zt+Math.imul(Dr,wn)|0,Ot=Ot+Math.imul(nr,Ut)|0,Mt=Mt+Math.imul(nr,Ft)|0,Mt=Mt+Math.imul(ir,Ut)|0,zt=zt+Math.imul(ir,Ft)|0,Ot=Ot+Math.imul(er,St)|0,Mt=Mt+Math.imul(er,Kt)|0,Mt=Mt+Math.imul(fr,St)|0,zt=zt+Math.imul(fr,Kt)|0,Ot=Ot+Math.imul(vr,br)|0,Mt=Mt+Math.imul(vr,kr)|0,Mt=Mt+Math.imul(hr,br)|0,zt=zt+Math.imul(hr,kr)|0;var un=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(un>>>26)|0,un&=67108863,Ot=Math.imul(Vt,Rr),Mt=Math.imul(Vt,$r),Mt=Mt+Math.imul(or,Rr)|0,zt=Math.imul(or,$r),Ot=Ot+Math.imul(Tr,Nr)|0,Mt=Mt+Math.imul(Tr,Ur)|0,Mt=Mt+Math.imul(Yt,Nr)|0,zt=zt+Math.imul(Yt,Ur)|0,Ot=Ot+Math.imul(dr,tn)|0,Mt=Mt+Math.imul(dr,gn)|0,Mt=Mt+Math.imul(xr,tn)|0,zt=zt+Math.imul(xr,gn)|0,Ot=Ot+Math.imul(yn,En)|0,Mt=Mt+Math.imul(yn,vn)|0,Mt=Mt+Math.imul(rn,En)|0,zt=zt+Math.imul(rn,vn)|0,Ot=Ot+Math.imul(hn,In)|0,Mt=Mt+Math.imul(hn,Mn)|0,Mt=Mt+Math.imul(nn,In)|0,zt=zt+Math.imul(nn,Mn)|0,Ot=Ot+Math.imul(Yr,Un)|0,Mt=Mt+Math.imul(Yr,wn)|0,Mt=Mt+Math.imul(Wr,Un)|0,zt=zt+Math.imul(Wr,wn)|0,Ot=Ot+Math.imul(Ir,Ut)|0,Mt=Mt+Math.imul(Ir,Ft)|0,Mt=Mt+Math.imul(Dr,Ut)|0,zt=zt+Math.imul(Dr,Ft)|0,Ot=Ot+Math.imul(nr,St)|0,Mt=Mt+Math.imul(nr,Kt)|0,Mt=Mt+Math.imul(ir,St)|0,zt=zt+Math.imul(ir,Kt)|0,Ot=Ot+Math.imul(er,br)|0,Mt=Mt+Math.imul(er,kr)|0,Mt=Mt+Math.imul(fr,br)|0,zt=zt+Math.imul(fr,kr)|0,Ot=Ot+Math.imul(vr,jr)|0,Mt=Mt+Math.imul(vr,qr)|0,Mt=Mt+Math.imul(hr,jr)|0,zt=zt+Math.imul(hr,qr)|0;var Zr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,Ot=Math.imul(Vt,Nr),Mt=Math.imul(Vt,Ur),Mt=Mt+Math.imul(or,Nr)|0,zt=Math.imul(or,Ur),Ot=Ot+Math.imul(Tr,tn)|0,Mt=Mt+Math.imul(Tr,gn)|0,Mt=Mt+Math.imul(Yt,tn)|0,zt=zt+Math.imul(Yt,gn)|0,Ot=Ot+Math.imul(dr,En)|0,Mt=Mt+Math.imul(dr,vn)|0,Mt=Mt+Math.imul(xr,En)|0,zt=zt+Math.imul(xr,vn)|0,Ot=Ot+Math.imul(yn,In)|0,Mt=Mt+Math.imul(yn,Mn)|0,Mt=Mt+Math.imul(rn,In)|0,zt=zt+Math.imul(rn,Mn)|0,Ot=Ot+Math.imul(hn,Un)|0,Mt=Mt+Math.imul(hn,wn)|0,Mt=Mt+Math.imul(nn,Un)|0,zt=zt+Math.imul(nn,wn)|0,Ot=Ot+Math.imul(Yr,Ut)|0,Mt=Mt+Math.imul(Yr,Ft)|0,Mt=Mt+Math.imul(Wr,Ut)|0,zt=zt+Math.imul(Wr,Ft)|0,Ot=Ot+Math.imul(Ir,St)|0,Mt=Mt+Math.imul(Ir,Kt)|0,Mt=Mt+Math.imul(Dr,St)|0,zt=zt+Math.imul(Dr,Kt)|0,Ot=Ot+Math.imul(nr,br)|0,Mt=Mt+Math.imul(nr,kr)|0,Mt=Mt+Math.imul(ir,br)|0,zt=zt+Math.imul(ir,kr)|0,Ot=Ot+Math.imul(er,jr)|0,Mt=Mt+Math.imul(er,qr)|0,Mt=Mt+Math.imul(fr,jr)|0,zt=zt+Math.imul(fr,qr)|0;var Qr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,Ot=Math.imul(Vt,tn),Mt=Math.imul(Vt,gn),Mt=Mt+Math.imul(or,tn)|0,zt=Math.imul(or,gn),Ot=Ot+Math.imul(Tr,En)|0,Mt=Mt+Math.imul(Tr,vn)|0,Mt=Mt+Math.imul(Yt,En)|0,zt=zt+Math.imul(Yt,vn)|0,Ot=Ot+Math.imul(dr,In)|0,Mt=Mt+Math.imul(dr,Mn)|0,Mt=Mt+Math.imul(xr,In)|0,zt=zt+Math.imul(xr,Mn)|0,Ot=Ot+Math.imul(yn,Un)|0,Mt=Mt+Math.imul(yn,wn)|0,Mt=Mt+Math.imul(rn,Un)|0,zt=zt+Math.imul(rn,wn)|0,Ot=Ot+Math.imul(hn,Ut)|0,Mt=Mt+Math.imul(hn,Ft)|0,Mt=Mt+Math.imul(nn,Ut)|0,zt=zt+Math.imul(nn,Ft)|0,Ot=Ot+Math.imul(Yr,St)|0,Mt=Mt+Math.imul(Yr,Kt)|0,Mt=Mt+Math.imul(Wr,St)|0,zt=zt+Math.imul(Wr,Kt)|0,Ot=Ot+Math.imul(Ir,br)|0,Mt=Mt+Math.imul(Ir,kr)|0,Mt=Mt+Math.imul(Dr,br)|0,zt=zt+Math.imul(Dr,kr)|0,Ot=Ot+Math.imul(nr,jr)|0,Mt=Mt+Math.imul(nr,qr)|0,Mt=Mt+Math.imul(ir,jr)|0,zt=zt+Math.imul(ir,qr)|0;var Fr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,Ot=Math.imul(Vt,En),Mt=Math.imul(Vt,vn),Mt=Mt+Math.imul(or,En)|0,zt=Math.imul(or,vn),Ot=Ot+Math.imul(Tr,In)|0,Mt=Mt+Math.imul(Tr,Mn)|0,Mt=Mt+Math.imul(Yt,In)|0,zt=zt+Math.imul(Yt,Mn)|0,Ot=Ot+Math.imul(dr,Un)|0,Mt=Mt+Math.imul(dr,wn)|0,Mt=Mt+Math.imul(xr,Un)|0,zt=zt+Math.imul(xr,wn)|0,Ot=Ot+Math.imul(yn,Ut)|0,Mt=Mt+Math.imul(yn,Ft)|0,Mt=Mt+Math.imul(rn,Ut)|0,zt=zt+Math.imul(rn,Ft)|0,Ot=Ot+Math.imul(hn,St)|0,Mt=Mt+Math.imul(hn,Kt)|0,Mt=Mt+Math.imul(nn,St)|0,zt=zt+Math.imul(nn,Kt)|0,Ot=Ot+Math.imul(Yr,br)|0,Mt=Mt+Math.imul(Yr,kr)|0,Mt=Mt+Math.imul(Wr,br)|0,zt=zt+Math.imul(Wr,kr)|0,Ot=Ot+Math.imul(Ir,jr)|0,Mt=Mt+Math.imul(Ir,qr)|0,Mt=Mt+Math.imul(Dr,jr)|0,zt=zt+Math.imul(Dr,qr)|0;var Gr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,Ot=Math.imul(Vt,In),Mt=Math.imul(Vt,Mn),Mt=Mt+Math.imul(or,In)|0,zt=Math.imul(or,Mn),Ot=Ot+Math.imul(Tr,Un)|0,Mt=Mt+Math.imul(Tr,wn)|0,Mt=Mt+Math.imul(Yt,Un)|0,zt=zt+Math.imul(Yt,wn)|0,Ot=Ot+Math.imul(dr,Ut)|0,Mt=Mt+Math.imul(dr,Ft)|0,Mt=Mt+Math.imul(xr,Ut)|0,zt=zt+Math.imul(xr,Ft)|0,Ot=Ot+Math.imul(yn,St)|0,Mt=Mt+Math.imul(yn,Kt)|0,Mt=Mt+Math.imul(rn,St)|0,zt=zt+Math.imul(rn,Kt)|0,Ot=Ot+Math.imul(hn,br)|0,Mt=Mt+Math.imul(hn,kr)|0,Mt=Mt+Math.imul(nn,br)|0,zt=zt+Math.imul(nn,kr)|0,Ot=Ot+Math.imul(Yr,jr)|0,Mt=Mt+Math.imul(Yr,qr)|0,Mt=Mt+Math.imul(Wr,jr)|0,zt=zt+Math.imul(Wr,qr)|0;var pr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(pr>>>26)|0,pr&=67108863,Ot=Math.imul(Vt,Un),Mt=Math.imul(Vt,wn),Mt=Mt+Math.imul(or,Un)|0,zt=Math.imul(or,wn),Ot=Ot+Math.imul(Tr,Ut)|0,Mt=Mt+Math.imul(Tr,Ft)|0,Mt=Mt+Math.imul(Yt,Ut)|0,zt=zt+Math.imul(Yt,Ft)|0,Ot=Ot+Math.imul(dr,St)|0,Mt=Mt+Math.imul(dr,Kt)|0,Mt=Mt+Math.imul(xr,St)|0,zt=zt+Math.imul(xr,Kt)|0,Ot=Ot+Math.imul(yn,br)|0,Mt=Mt+Math.imul(yn,kr)|0,Mt=Mt+Math.imul(rn,br)|0,zt=zt+Math.imul(rn,kr)|0,Ot=Ot+Math.imul(hn,jr)|0,Mt=Mt+Math.imul(hn,qr)|0,Mt=Mt+Math.imul(nn,jr)|0,zt=zt+Math.imul(nn,qr)|0;var Nt=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,Ot=Math.imul(Vt,Ut),Mt=Math.imul(Vt,Ft),Mt=Mt+Math.imul(or,Ut)|0,zt=Math.imul(or,Ft),Ot=Ot+Math.imul(Tr,St)|0,Mt=Mt+Math.imul(Tr,Kt)|0,Mt=Mt+Math.imul(Yt,St)|0,zt=zt+Math.imul(Yt,Kt)|0,Ot=Ot+Math.imul(dr,br)|0,Mt=Mt+Math.imul(dr,kr)|0,Mt=Mt+Math.imul(xr,br)|0,zt=zt+Math.imul(xr,kr)|0,Ot=Ot+Math.imul(yn,jr)|0,Mt=Mt+Math.imul(yn,qr)|0,Mt=Mt+Math.imul(rn,jr)|0,zt=zt+Math.imul(rn,qr)|0;var Zt=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,Ot=Math.imul(Vt,St),Mt=Math.imul(Vt,Kt),Mt=Mt+Math.imul(or,St)|0,zt=Math.imul(or,Kt),Ot=Ot+Math.imul(Tr,br)|0,Mt=Mt+Math.imul(Tr,kr)|0,Mt=Mt+Math.imul(Yt,br)|0,zt=zt+Math.imul(Yt,kr)|0,Ot=Ot+Math.imul(dr,jr)|0,Mt=Mt+Math.imul(dr,qr)|0,Mt=Mt+Math.imul(xr,jr)|0,zt=zt+Math.imul(xr,qr)|0;var Xt=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,Ot=Math.imul(Vt,br),Mt=Math.imul(Vt,kr),Mt=Mt+Math.imul(or,br)|0,zt=Math.imul(or,kr),Ot=Ot+Math.imul(Tr,jr)|0,Mt=Mt+Math.imul(Tr,qr)|0,Mt=Mt+Math.imul(Yt,jr)|0,zt=zt+Math.imul(Yt,qr)|0;var cr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(cr>>>26)|0,cr&=67108863,Ot=Math.imul(Vt,jr),Mt=Math.imul(Vt,qr),Mt=Mt+Math.imul(or,jr)|0,zt=Math.imul(or,qr);var ur=(Pt+Ot|0)+((Mt&8191)<<13)|0;return Pt=(zt+(Mt>>>13)|0)+(ur>>>26)|0,ur&=67108863,Bt[0]=Sn,Bt[1]=Vr,Bt[2]=an,Bt[3]=sn,Bt[4]=pn,Bt[5]=dn,Bt[6]=ln,Bt[7]=fn,Bt[8]=un,Bt[9]=Zr,Bt[10]=Qr,Bt[11]=Fr,Bt[12]=Gr,Bt[13]=pr,Bt[14]=Nt,Bt[15]=Zt,Bt[16]=Xt,Bt[17]=cr,Bt[18]=ur,Pt!==0&&(Bt[19]=Pt,$t.length++),$t};Math.imul||(qt=Tt);function jt(Ct,yt,_t){_t.negative=yt.negative^Ct.negative,_t.length=Ct.length+yt.length;for(var $t=0,At=0,It=0;It<_t.length-1;It++){var Bt=At;At=0;for(var Pt=$t&67108863,Ot=Math.min(It,yt.length-1),Mt=Math.max(0,It-Ct.length+1);Mt<=Ot;Mt++){var zt=It-Mt,yr=Ct.words[zt]|0,vr=yt.words[Mt]|0,hr=yr*vr,rr=hr&67108863;Bt=Bt+(hr/67108864|0)|0,rr=rr+Pt|0,Pt=rr&67108863,Bt=Bt+(rr>>>26)|0,At+=Bt>>>26,Bt&=67108863}_t.words[It]=Pt,$t=Bt,Bt=At}return $t!==0?_t.words[It]=$t:_t.length--,_t._strip()}function Lt(Ct,yt,_t){return jt(Ct,yt,_t)}ot.prototype.mulTo=function(yt,_t){var $t,At=this.length+yt.length;return this.length===10&&yt.length===10?$t=qt(this,yt,_t):At<63?$t=Tt(this,yt,_t):At<1024?$t=jt(this,yt,_t):$t=Lt(this,yt,_t),$t},ot.prototype.mul=function(yt){var _t=new ot(null);return _t.words=new Array(this.length+yt.length),this.mulTo(yt,_t)},ot.prototype.mulf=function(yt){var _t=new ot(null);return _t.words=new Array(this.length+yt.length),Lt(this,yt,_t)},ot.prototype.imul=function(yt){return this.clone().mulTo(yt,this)},ot.prototype.imuln=function(yt){var _t=yt<0;_t&&(yt=-yt),nt(typeof yt=="number"),nt(yt<67108864);for(var $t=0,At=0;At>=26,$t+=It/67108864|0,$t+=Bt>>>26,this.words[At]=Bt&67108863}return $t!==0&&(this.words[At]=$t,this.length++),_t?this.ineg():this},ot.prototype.muln=function(yt){return this.clone().imuln(yt)},ot.prototype.sqr=function(){return this.mul(this)},ot.prototype.isqr=function(){return this.imul(this.clone())},ot.prototype.pow=function(yt){var _t=Dt(yt);if(_t.length===0)return new ot(1);for(var $t=this,At=0;At<_t.length&&_t[At]===0;At++,$t=$t.sqr());if(++At<_t.length)for(var It=$t.sqr();At<_t.length;At++,It=It.sqr())_t[At]!==0&&($t=$t.mul(It));return $t},ot.prototype.iushln=function(yt){nt(typeof yt=="number"&&yt>=0);var _t=yt%26,$t=(yt-_t)/26,At=67108863>>>26-_t<<26-_t,It;if(_t!==0){var Bt=0;for(It=0;It>>26-_t}Bt&&(this.words[It]=Bt,this.length++)}if($t!==0){for(It=this.length-1;It>=0;It--)this.words[It+$t]=this.words[It];for(It=0;It<$t;It++)this.words[It]=0;this.length+=$t}return this._strip()},ot.prototype.ishln=function(yt){return nt(this.negative===0),this.iushln(yt)},ot.prototype.iushrn=function(yt,_t,$t){nt(typeof yt=="number"&&yt>=0);var At;_t?At=(_t-_t%26)/26:At=0;var It=yt%26,Bt=Math.min((yt-It)/26,this.length),Pt=67108863^67108863>>>It<Bt)for(this.length-=Bt,Mt=0;Mt=0&&(zt!==0||Mt>=At);Mt--){var yr=this.words[Mt]|0;this.words[Mt]=zt<<26-It|yr>>>It,zt=yr&Pt}return Ot&&zt!==0&&(Ot.words[Ot.length++]=zt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},ot.prototype.ishrn=function(yt,_t,$t){return nt(this.negative===0),this.iushrn(yt,_t,$t)},ot.prototype.shln=function(yt){return this.clone().ishln(yt)},ot.prototype.ushln=function(yt){return this.clone().iushln(yt)},ot.prototype.shrn=function(yt){return this.clone().ishrn(yt)},ot.prototype.ushrn=function(yt){return this.clone().iushrn(yt)},ot.prototype.testn=function(yt){nt(typeof yt=="number"&&yt>=0);var _t=yt%26,$t=(yt-_t)/26,At=1<<_t;if(this.length<=$t)return!1;var It=this.words[$t];return!!(It&At)},ot.prototype.imaskn=function(yt){nt(typeof yt=="number"&&yt>=0);var _t=yt%26,$t=(yt-_t)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=$t)return this;if(_t!==0&&$t++,this.length=Math.min($t,this.length),_t!==0){var At=67108863^67108863>>>_t<<_t;this.words[this.length-1]&=At}return this._strip()},ot.prototype.maskn=function(yt){return this.clone().imaskn(yt)},ot.prototype.iaddn=function(yt){return nt(typeof yt=="number"),nt(yt<67108864),yt<0?this.isubn(-yt):this.negative!==0?this.length===1&&(this.words[0]|0)<=yt?(this.words[0]=yt-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(yt),this.negative=1,this):this._iaddn(yt)},ot.prototype._iaddn=function(yt){this.words[0]+=yt;for(var _t=0;_t=67108864;_t++)this.words[_t]-=67108864,_t===this.length-1?this.words[_t+1]=1:this.words[_t+1]++;return this.length=Math.max(this.length,_t+1),this},ot.prototype.isubn=function(yt){if(nt(typeof yt=="number"),nt(yt<67108864),yt<0)return this.iaddn(-yt);if(this.negative!==0)return this.negative=0,this.iaddn(yt),this.negative=1,this;if(this.words[0]-=yt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _t=0;_t>26)-(Ot/67108864|0),this.words[It+$t]=Bt&67108863}for(;It>26,this.words[It+$t]=Bt&67108863;if(Pt===0)return this._strip();for(nt(Pt===-1),Pt=0,It=0;It>26,this.words[It]=Bt&67108863;return this.negative=1,this._strip()},ot.prototype._wordDiv=function(yt,_t){var $t=this.length-yt.length,At=this.clone(),It=yt,Bt=It.words[It.length-1]|0,Pt=this._countBits(Bt);$t=26-Pt,$t!==0&&(It=It.ushln($t),At.iushln($t),Bt=It.words[It.length-1]|0);var Ot=At.length-It.length,Mt;if(_t!=="mod"){Mt=new ot(null),Mt.length=Ot+1,Mt.words=new Array(Mt.length);for(var zt=0;zt=0;vr--){var hr=(At.words[It.length+vr]|0)*67108864+(At.words[It.length+vr-1]|0);for(hr=Math.min(hr/Bt|0,67108863),At._ishlnsubmul(It,hr,vr);At.negative!==0;)hr--,At.negative=0,At._ishlnsubmul(It,1,vr),At.isZero()||(At.negative^=1);Mt&&(Mt.words[vr]=hr)}return Mt&&Mt._strip(),At._strip(),_t!=="div"&&$t!==0&&At.iushrn($t),{div:Mt||null,mod:At}},ot.prototype.divmod=function(yt,_t,$t){if(nt(!yt.isZero()),this.isZero())return{div:new ot(0),mod:new ot(0)};var At,It,Bt;return this.negative!==0&&yt.negative===0?(Bt=this.neg().divmod(yt,_t),_t!=="mod"&&(At=Bt.div.neg()),_t!=="div"&&(It=Bt.mod.neg(),$t&&It.negative!==0&&It.iadd(yt)),{div:At,mod:It}):this.negative===0&&yt.negative!==0?(Bt=this.divmod(yt.neg(),_t),_t!=="mod"&&(At=Bt.div.neg()),{div:At,mod:Bt.mod}):this.negative&yt.negative?(Bt=this.neg().divmod(yt.neg(),_t),_t!=="div"&&(It=Bt.mod.neg(),$t&&It.negative!==0&&It.isub(yt)),{div:Bt.div,mod:It}):yt.length>this.length||this.cmp(yt)<0?{div:new ot(0),mod:this}:yt.length===1?_t==="div"?{div:this.divn(yt.words[0]),mod:null}:_t==="mod"?{div:null,mod:new ot(this.modrn(yt.words[0]))}:{div:this.divn(yt.words[0]),mod:new ot(this.modrn(yt.words[0]))}:this._wordDiv(yt,_t)},ot.prototype.div=function(yt){return this.divmod(yt,"div",!1).div},ot.prototype.mod=function(yt){return this.divmod(yt,"mod",!1).mod},ot.prototype.umod=function(yt){return this.divmod(yt,"mod",!0).mod},ot.prototype.divRound=function(yt){var _t=this.divmod(yt);if(_t.mod.isZero())return _t.div;var $t=_t.div.negative!==0?_t.mod.isub(yt):_t.mod,At=yt.ushrn(1),It=yt.andln(1),Bt=$t.cmp(At);return Bt<0||It===1&&Bt===0?_t.div:_t.div.negative!==0?_t.div.isubn(1):_t.div.iaddn(1)},ot.prototype.modrn=function(yt){var _t=yt<0;_t&&(yt=-yt),nt(yt<=67108863);for(var $t=(1<<26)%yt,At=0,It=this.length-1;It>=0;It--)At=($t*At+(this.words[It]|0))%yt;return _t?-At:At},ot.prototype.modn=function(yt){return this.modrn(yt)},ot.prototype.idivn=function(yt){var _t=yt<0;_t&&(yt=-yt),nt(yt<=67108863);for(var $t=0,At=this.length-1;At>=0;At--){var It=(this.words[At]|0)+$t*67108864;this.words[At]=It/yt|0,$t=It%yt}return this._strip(),_t?this.ineg():this},ot.prototype.divn=function(yt){return this.clone().idivn(yt)},ot.prototype.egcd=function(yt){nt(yt.negative===0),nt(!yt.isZero());var _t=this,$t=yt.clone();_t.negative!==0?_t=_t.umod(yt):_t=_t.clone();for(var At=new ot(1),It=new ot(0),Bt=new ot(0),Pt=new ot(1),Ot=0;_t.isEven()&&$t.isEven();)_t.iushrn(1),$t.iushrn(1),++Ot;for(var Mt=$t.clone(),zt=_t.clone();!_t.isZero();){for(var yr=0,vr=1;!(_t.words[0]&vr)&&yr<26;++yr,vr<<=1);if(yr>0)for(_t.iushrn(yr);yr-- >0;)(At.isOdd()||It.isOdd())&&(At.iadd(Mt),It.isub(zt)),At.iushrn(1),It.iushrn(1);for(var hr=0,rr=1;!($t.words[0]&rr)&&hr<26;++hr,rr<<=1);if(hr>0)for($t.iushrn(hr);hr-- >0;)(Bt.isOdd()||Pt.isOdd())&&(Bt.iadd(Mt),Pt.isub(zt)),Bt.iushrn(1),Pt.iushrn(1);_t.cmp($t)>=0?(_t.isub($t),At.isub(Bt),It.isub(Pt)):($t.isub(_t),Bt.isub(At),Pt.isub(It))}return{a:Bt,b:Pt,gcd:$t.iushln(Ot)}},ot.prototype._invmp=function(yt){nt(yt.negative===0),nt(!yt.isZero());var _t=this,$t=yt.clone();_t.negative!==0?_t=_t.umod(yt):_t=_t.clone();for(var At=new ot(1),It=new ot(0),Bt=$t.clone();_t.cmpn(1)>0&&$t.cmpn(1)>0;){for(var Pt=0,Ot=1;!(_t.words[0]&Ot)&&Pt<26;++Pt,Ot<<=1);if(Pt>0)for(_t.iushrn(Pt);Pt-- >0;)At.isOdd()&&At.iadd(Bt),At.iushrn(1);for(var Mt=0,zt=1;!($t.words[0]&zt)&&Mt<26;++Mt,zt<<=1);if(Mt>0)for($t.iushrn(Mt);Mt-- >0;)It.isOdd()&&It.iadd(Bt),It.iushrn(1);_t.cmp($t)>=0?(_t.isub($t),At.isub(It)):($t.isub(_t),It.isub(At))}var yr;return _t.cmpn(1)===0?yr=At:yr=It,yr.cmpn(0)<0&&yr.iadd(yt),yr},ot.prototype.gcd=function(yt){if(this.isZero())return yt.abs();if(yt.isZero())return this.abs();var _t=this.clone(),$t=yt.clone();_t.negative=0,$t.negative=0;for(var At=0;_t.isEven()&&$t.isEven();At++)_t.iushrn(1),$t.iushrn(1);do{for(;_t.isEven();)_t.iushrn(1);for(;$t.isEven();)$t.iushrn(1);var It=_t.cmp($t);if(It<0){var Bt=_t;_t=$t,$t=Bt}else if(It===0||$t.cmpn(1)===0)break;_t.isub($t)}while(!0);return $t.iushln(At)},ot.prototype.invm=function(yt){return this.egcd(yt).a.umod(yt)},ot.prototype.isEven=function(){return(this.words[0]&1)===0},ot.prototype.isOdd=function(){return(this.words[0]&1)===1},ot.prototype.andln=function(yt){return this.words[0]&yt},ot.prototype.bincn=function(yt){nt(typeof yt=="number");var _t=yt%26,$t=(yt-_t)/26,At=1<<_t;if(this.length<=$t)return this._expand($t+1),this.words[$t]|=At,this;for(var It=At,Bt=$t;It!==0&&Bt>>26,Pt&=67108863,this.words[Bt]=Pt}return It!==0&&(this.words[Bt]=It,this.length++),this},ot.prototype.isZero=function(){return this.length===1&&this.words[0]===0},ot.prototype.cmpn=function(yt){var _t=yt<0;if(this.negative!==0&&!_t)return-1;if(this.negative===0&&_t)return 1;this._strip();var $t;if(this.length>1)$t=1;else{_t&&(yt=-yt),nt(yt<=67108863,"Number is too big");var At=this.words[0]|0;$t=At===yt?0:Atyt.length)return 1;if(this.length=0;$t--){var At=this.words[$t]|0,It=yt.words[$t]|0;if(At!==It){AtIt&&(_t=1);break}}return _t},ot.prototype.gtn=function(yt){return this.cmpn(yt)===1},ot.prototype.gt=function(yt){return this.cmp(yt)===1},ot.prototype.gten=function(yt){return this.cmpn(yt)>=0},ot.prototype.gte=function(yt){return this.cmp(yt)>=0},ot.prototype.ltn=function(yt){return this.cmpn(yt)===-1},ot.prototype.lt=function(yt){return this.cmp(yt)===-1},ot.prototype.lten=function(yt){return this.cmpn(yt)<=0},ot.prototype.lte=function(yt){return this.cmp(yt)<=0},ot.prototype.eqn=function(yt){return this.cmpn(yt)===0},ot.prototype.eq=function(yt){return this.cmp(yt)===0},ot.red=function(yt){return new Jt(yt)},ot.prototype.toRed=function(yt){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),yt.convertTo(this)._forceRed(yt)},ot.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},ot.prototype._forceRed=function(yt){return this.red=yt,this},ot.prototype.forceRed=function(yt){return nt(!this.red,"Already a number in reduction context"),this._forceRed(yt)},ot.prototype.redAdd=function(yt){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,yt)},ot.prototype.redIAdd=function(yt){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,yt)},ot.prototype.redSub=function(yt){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,yt)},ot.prototype.redISub=function(yt){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,yt)},ot.prototype.redShl=function(yt){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,yt)},ot.prototype.redMul=function(yt){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,yt),this.red.mul(this,yt)},ot.prototype.redIMul=function(yt){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,yt),this.red.imul(this,yt)},ot.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},ot.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},ot.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},ot.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},ot.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},ot.prototype.redPow=function(yt){return nt(this.red&&!yt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,yt)};var Gt={k256:null,p224:null,p192:null,p25519:null};function Qt(Ct,yt){this.name=Ct,this.p=new ot(yt,16),this.n=this.p.bitLength(),this.k=new ot(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Qt.prototype._tmp=function(){var yt=new ot(null);return yt.words=new Array(Math.ceil(this.n/13)),yt},Qt.prototype.ireduce=function(yt){var _t=yt,$t;do this.split(_t,this.tmp),_t=this.imulK(_t),_t=_t.iadd(this.tmp),$t=_t.bitLength();while($t>this.n);var At=$t0?_t.isub(this.p):_t.strip!==void 0?_t.strip():_t._strip(),_t},Qt.prototype.split=function(yt,_t){yt.iushrn(this.n,0,_t)},Qt.prototype.imulK=function(yt){return yt.imul(this.k)};function tr(){Qt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}st(tr,Qt),tr.prototype.split=function(yt,_t){for(var $t=4194303,At=Math.min(yt.length,9),It=0;It>>22,Bt=Pt}Bt>>>=22,yt.words[It-10]=Bt,Bt===0&&yt.length>10?yt.length-=10:yt.length-=9},tr.prototype.imulK=function(yt){yt.words[yt.length]=0,yt.words[yt.length+1]=0,yt.length+=2;for(var _t=0,$t=0;$t>>=26,yt.words[$t]=It,_t=At}return _t!==0&&(yt.words[yt.length++]=_t),yt},ot._prime=function(yt){if(Gt[yt])return Gt[yt];var _t;if(yt==="k256")_t=new tr;else if(yt==="p224")_t=new sr;else if(yt==="p192")_t=new ar;else if(yt==="p25519")_t=new _r;else throw new Error("Unknown prime "+yt);return Gt[yt]=_t,_t};function Jt(Ct){if(typeof Ct=="string"){var yt=ot._prime(Ct);this.m=yt.p,this.prime=yt}else nt(Ct.gtn(1),"modulus must be greater than 1"),this.m=Ct,this.prime=null}Jt.prototype._verify1=function(yt){nt(yt.negative===0,"red works only with positives"),nt(yt.red,"red works only with red numbers")},Jt.prototype._verify2=function(yt,_t){nt((yt.negative|_t.negative)===0,"red works only with positives"),nt(yt.red&&yt.red===_t.red,"red works only with red numbers")},Jt.prototype.imod=function(yt){return this.prime?this.prime.ireduce(yt)._forceRed(this):(mt(yt,yt.umod(this.m)._forceRed(this)),yt)},Jt.prototype.neg=function(yt){return yt.isZero()?yt.clone():this.m.sub(yt)._forceRed(this)},Jt.prototype.add=function(yt,_t){this._verify2(yt,_t);var $t=yt.add(_t);return $t.cmp(this.m)>=0&&$t.isub(this.m),$t._forceRed(this)},Jt.prototype.iadd=function(yt,_t){this._verify2(yt,_t);var $t=yt.iadd(_t);return $t.cmp(this.m)>=0&&$t.isub(this.m),$t},Jt.prototype.sub=function(yt,_t){this._verify2(yt,_t);var $t=yt.sub(_t);return $t.cmpn(0)<0&&$t.iadd(this.m),$t._forceRed(this)},Jt.prototype.isub=function(yt,_t){this._verify2(yt,_t);var $t=yt.isub(_t);return $t.cmpn(0)<0&&$t.iadd(this.m),$t},Jt.prototype.shl=function(yt,_t){return this._verify1(yt),this.imod(yt.ushln(_t))},Jt.prototype.imul=function(yt,_t){return this._verify2(yt,_t),this.imod(yt.imul(_t))},Jt.prototype.mul=function(yt,_t){return this._verify2(yt,_t),this.imod(yt.mul(_t))},Jt.prototype.isqr=function(yt){return this.imul(yt,yt.clone())},Jt.prototype.sqr=function(yt){return this.mul(yt,yt)},Jt.prototype.sqrt=function(yt){if(yt.isZero())return yt.clone();var _t=this.m.andln(3);if(nt(_t%2===1),_t===3){var $t=this.m.add(new ot(1)).iushrn(2);return this.pow(yt,$t)}for(var At=this.m.subn(1),It=0;!At.isZero()&&At.andln(1)===0;)It++,At.iushrn(1);nt(!At.isZero());var Bt=new ot(1).toRed(this),Pt=Bt.redNeg(),Ot=this.m.subn(1).iushrn(1),Mt=this.m.bitLength();for(Mt=new ot(2*Mt*Mt).toRed(this);this.pow(Mt,Ot).cmp(Pt)!==0;)Mt.redIAdd(Pt);for(var zt=this.pow(Mt,At),yr=this.pow(yt,At.addn(1).iushrn(1)),vr=this.pow(yt,At),hr=It;vr.cmp(Bt)!==0;){for(var rr=vr,er=0;rr.cmp(Bt)!==0;er++)rr=rr.redSqr();nt(er=0;It--){for(var zt=_t.words[It],yr=Mt-1;yr>=0;yr--){var vr=zt>>yr&1;if(Bt!==At[0]&&(Bt=this.sqr(Bt)),vr===0&&Pt===0){Ot=0;continue}Pt<<=1,Pt|=vr,Ot++,!(Ot!==$t&&(It!==0||yr!==0))&&(Bt=this.mul(Bt,At[Pt]),Ot=0,Pt=0)}Mt=26}return Bt},Jt.prototype.convertTo=function(yt){var _t=yt.umod(this.m);return _t===yt?_t.clone():_t},Jt.prototype.convertFrom=function(yt){var _t=yt.clone();return _t.red=null,_t},ot.mont=function(yt){return new Rt(yt)};function Rt(Ct){Jt.call(this,Ct),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new ot(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)}st(Rt,Jt),Rt.prototype.convertTo=function(yt){return this.imod(yt.ushln(this.shift))},Rt.prototype.convertFrom=function(yt){var _t=this.imod(yt.mul(this.rinv));return _t.red=null,_t},Rt.prototype.imul=function(yt,_t){if(yt.isZero()||_t.isZero())return yt.words[0]=0,yt.length=1,yt;var $t=yt.imul(_t),At=$t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),It=$t.isub(At).iushrn(this.shift),Bt=It;return It.cmp(this.m)>=0?Bt=It.isub(this.m):It.cmpn(0)<0&&(Bt=It.iadd(this.m)),Bt._forceRed(this)},Rt.prototype.mul=function(yt,_t){if(yt.isZero()||_t.isZero())return new ot(0)._forceRed(this);var $t=yt.mul(_t),At=$t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),It=$t.isub(At).iushrn(this.shift),Bt=It;return It.cmp(this.m)>=0?Bt=It.isub(this.m):It.cmpn(0)<0&&(Bt=It.iadd(this.m)),Bt._forceRed(this)},Rt.prototype.invm=function(yt){var _t=this.imod(yt._invmp(this.m).mul(this.r2));return _t._forceRed(this)}})(d,commonjsGlobal)}(bn$1)),bn$1.exports}var browserifyRsa,hasRequiredBrowserifyRsa;function requireBrowserifyRsa(){if(hasRequiredBrowserifyRsa)return browserifyRsa;hasRequiredBrowserifyRsa=1;var d=requireBn$1(),b=requireBrowser$b(),tt=requireSafeBuffer$1().Buffer;function nt(ft){var ht=ft.modulus.byteLength(),gt;do gt=new d(b(ht));while(gt.cmp(ft.modulus)>=0||!gt.umod(ft.prime1)||!gt.umod(ft.prime2));return gt}function st(ft){var ht=nt(ft),gt=ht.toRed(d.mont(ft.modulus)).redPow(new d(ft.publicExponent)).fromRed();return{blinder:gt,unblinder:ht.invm(ft.modulus)}}function ot(ft,ht){var gt=st(ht),vt=ht.modulus.byteLength(),mt=new d(ft).mul(gt.blinder).umod(ht.modulus),bt=mt.toRed(d.mont(ht.prime1)),wt=mt.toRed(d.mont(ht.prime2)),xt=ht.coefficient,Et=ht.prime1,kt=ht.prime2,Dt=bt.redPow(ht.exponent1).fromRed(),Tt=wt.redPow(ht.exponent2).fromRed(),qt=Dt.isub(Tt).imul(xt).umod(Et).imul(kt);return Tt.iadd(qt).imul(gt.unblinder).umod(ht.modulus).toArrayLike(tt,"be",vt)}return ot.getr=nt,browserifyRsa=ot,browserifyRsa}var elliptic={};const name$2="elliptic",version$3="6.5.7",description$1="EC cryptography",main$2="lib/elliptic.js",files$2=["lib"],scripts$2={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository$2={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author$2="Fedor Indutny ",license$2="MIT",bugs$1={url:"https://github.com/indutny/elliptic/issues"},homepage$1="https://github.com/indutny/elliptic",devDependencies$2={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies$2={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0={name:name$2,version:version$3,description:description$1,main:main$2,files:files$2,scripts:scripts$2,repository:repository$2,keywords,author:author$2,license:license$2,bugs:bugs$1,homepage:homepage$1,devDependencies:devDependencies$2,dependencies:dependencies$2};var utils$b={},utils$a={},hasRequiredUtils$2;function requireUtils$2(){return hasRequiredUtils$2||(hasRequiredUtils$2=1,function(d){var b=d;function tt(ot,ft){if(Array.isArray(ot))return ot.slice();if(!ot)return[];var ht=[];if(typeof ot!="string"){for(var gt=0;gt>8,bt=vt&255;mt?ht.push(mt,bt):ht.push(bt)}return ht}b.toArray=tt;function nt(ot){return ot.length===1?"0"+ot:ot}b.zero2=nt;function st(ot){for(var ft="",ht=0;ht(kt>>1)-1?Tt=(kt>>1)-qt:Tt=qt,Dt.isubn(Tt)):Tt=0,xt[Et]=Tt,Dt.iushrn(1)}return xt}b.getNAF=ot;function ft(mt,bt){var wt=[[],[]];mt=mt.clone(),bt=bt.clone();for(var xt=0,Et=0,kt;mt.cmpn(-xt)>0||bt.cmpn(-Et)>0;){var Dt=mt.andln(3)+xt&3,Tt=bt.andln(3)+Et&3;Dt===3&&(Dt=-1),Tt===3&&(Tt=-1);var qt;Dt&1?(kt=mt.andln(7)+xt&7,(kt===3||kt===5)&&Tt===2?qt=-Dt:qt=Dt):qt=0,wt[0].push(qt);var jt;Tt&1?(kt=bt.andln(7)+Et&7,(kt===3||kt===5)&&Dt===2?jt=-Tt:jt=Tt):jt=0,wt[1].push(jt),2*xt===qt+1&&(xt=1-xt),2*Et===jt+1&&(Et=1-Et),mt.iushrn(1),bt.iushrn(1)}return wt}b.getJSF=ft;function ht(mt,bt,wt){var xt="_"+bt;mt.prototype[bt]=function(){return this[xt]!==void 0?this[xt]:this[xt]=wt.call(this)}}b.cachedProperty=ht;function gt(mt){return typeof mt=="string"?b.toArray(mt,"hex"):mt}b.parseBytes=gt;function vt(mt){return new tt(mt,"hex","le")}b.intFromLE=vt}(utils$b)),utils$b}var curve={},base$1,hasRequiredBase$1;function requireBase$1(){if(hasRequiredBase$1)return base$1;hasRequiredBase$1=1;var d=requireBn$2(),b=requireUtils$1(),tt=b.getNAF,nt=b.getJSF,st=b.assert;function ot(ht,gt){this.type=ht,this.p=new d(gt.p,16),this.red=gt.prime?d.red(gt.prime):d.mont(this.p),this.zero=new d(0).toRed(this.red),this.one=new d(1).toRed(this.red),this.two=new d(2).toRed(this.red),this.n=gt.n&&new d(gt.n,16),this.g=gt.g&&this.pointFromJSON(gt.g,gt.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 vt=this.n&&this.p.div(this.n);!vt||vt.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}base$1=ot,ot.prototype.point=function(){throw new Error("Not implemented")},ot.prototype.validate=function(){throw new Error("Not implemented")},ot.prototype._fixedNafMul=function(gt,vt){st(gt.precomputed);var mt=gt._getDoubles(),bt=tt(vt,1,this._bitLength),wt=(1<=Et;Dt--)kt=(kt<<1)+bt[Dt];xt.push(kt)}for(var Tt=this.jpoint(null,null,null),qt=this.jpoint(null,null,null),jt=wt;jt>0;jt--){for(Et=0;Et=0;kt--){for(var Dt=0;kt>=0&&xt[kt]===0;kt--)Dt++;if(kt>=0&&Dt++,Et=Et.dblp(Dt),kt<0)break;var Tt=xt[kt];st(Tt!==0),gt.type==="affine"?Tt>0?Et=Et.mixedAdd(wt[Tt-1>>1]):Et=Et.mixedAdd(wt[-Tt-1>>1].neg()):Tt>0?Et=Et.add(wt[Tt-1>>1]):Et=Et.add(wt[-Tt-1>>1].neg())}return gt.type==="affine"?Et.toP():Et},ot.prototype._wnafMulAdd=function(gt,vt,mt,bt,wt){var xt=this._wnafT1,Et=this._wnafT2,kt=this._wnafT3,Dt=0,Tt,qt,jt;for(Tt=0;Tt=1;Tt-=2){var Gt=Tt-1,Qt=Tt;if(xt[Gt]!==1||xt[Qt]!==1){kt[Gt]=tt(mt[Gt],xt[Gt],this._bitLength),kt[Qt]=tt(mt[Qt],xt[Qt],this._bitLength),Dt=Math.max(kt[Gt].length,Dt),Dt=Math.max(kt[Qt].length,Dt);continue}var tr=[vt[Gt],null,null,vt[Qt]];vt[Gt].y.cmp(vt[Qt].y)===0?(tr[1]=vt[Gt].add(vt[Qt]),tr[2]=vt[Gt].toJ().mixedAdd(vt[Qt].neg())):vt[Gt].y.cmp(vt[Qt].y.redNeg())===0?(tr[1]=vt[Gt].toJ().mixedAdd(vt[Qt]),tr[2]=vt[Gt].add(vt[Qt].neg())):(tr[1]=vt[Gt].toJ().mixedAdd(vt[Qt]),tr[2]=vt[Gt].toJ().mixedAdd(vt[Qt].neg()));var sr=[-3,-1,-5,-7,0,7,5,1,3],ar=nt(mt[Gt],mt[Qt]);for(Dt=Math.max(ar[0].length,Dt),kt[Gt]=new Array(Dt),kt[Qt]=new Array(Dt),qt=0;qt=0;Tt--){for(var yt=0;Tt>=0;){var _t=!0;for(qt=0;qt=0&&yt++,Rt=Rt.dblp(yt),Tt<0)break;for(qt=0;qt0?jt=Et[qt][$t-1>>1]:$t<0&&(jt=Et[qt][-$t-1>>1].neg()),jt.type==="affine"?Rt=Rt.mixedAdd(jt):Rt=Rt.add(jt))}}for(Tt=0;Tt=Math.ceil((gt.bitLength()+1)/vt.step):!1},ft.prototype._getDoubles=function(gt,vt){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var mt=[this],bt=this,wt=0;wt=0&&(Gt=Tt,Qt=qt),jt.negative&&(jt=jt.neg(),Lt=Lt.neg()),Gt.negative&&(Gt=Gt.neg(),Qt=Qt.neg()),[{a:jt,b:Lt},{a:Gt,b:Qt}]},ot.prototype._endoSplit=function(vt){var mt=this.endo.basis,bt=mt[0],wt=mt[1],xt=wt.b.mul(vt).divRound(this.n),Et=bt.b.neg().mul(vt).divRound(this.n),kt=xt.mul(bt.a),Dt=Et.mul(wt.a),Tt=xt.mul(bt.b),qt=Et.mul(wt.b),jt=vt.sub(kt).sub(Dt),Lt=Tt.add(qt).neg();return{k1:jt,k2:Lt}},ot.prototype.pointFromX=function(vt,mt){vt=new b(vt,16),vt.red||(vt=vt.toRed(this.red));var bt=vt.redSqr().redMul(vt).redIAdd(vt.redMul(this.a)).redIAdd(this.b),wt=bt.redSqrt();if(wt.redSqr().redSub(bt).cmp(this.zero)!==0)throw new Error("invalid point");var xt=wt.fromRed().isOdd();return(mt&&!xt||!mt&&xt)&&(wt=wt.redNeg()),this.point(vt,wt)},ot.prototype.validate=function(vt){if(vt.inf)return!0;var mt=vt.x,bt=vt.y,wt=this.a.redMul(mt),xt=mt.redSqr().redMul(mt).redIAdd(wt).redIAdd(this.b);return bt.redSqr().redISub(xt).cmpn(0)===0},ot.prototype._endoWnafMulAdd=function(vt,mt,bt){for(var wt=this._endoWnafT1,xt=this._endoWnafT2,Et=0;Et":""},ft.prototype.isInfinity=function(){return this.inf},ft.prototype.add=function(vt){if(this.inf)return vt;if(vt.inf)return this;if(this.eq(vt))return this.dbl();if(this.neg().eq(vt))return this.curve.point(null,null);if(this.x.cmp(vt.x)===0)return this.curve.point(null,null);var mt=this.y.redSub(vt.y);mt.cmpn(0)!==0&&(mt=mt.redMul(this.x.redSub(vt.x).redInvm()));var bt=mt.redSqr().redISub(this.x).redISub(vt.x),wt=mt.redMul(this.x.redSub(bt)).redISub(this.y);return this.curve.point(bt,wt)},ft.prototype.dbl=function(){if(this.inf)return this;var vt=this.y.redAdd(this.y);if(vt.cmpn(0)===0)return this.curve.point(null,null);var mt=this.curve.a,bt=this.x.redSqr(),wt=vt.redInvm(),xt=bt.redAdd(bt).redIAdd(bt).redIAdd(mt).redMul(wt),Et=xt.redSqr().redISub(this.x.redAdd(this.x)),kt=xt.redMul(this.x.redSub(Et)).redISub(this.y);return this.curve.point(Et,kt)},ft.prototype.getX=function(){return this.x.fromRed()},ft.prototype.getY=function(){return this.y.fromRed()},ft.prototype.mul=function(vt){return vt=new b(vt,16),this.isInfinity()?this:this._hasDoubles(vt)?this.curve._fixedNafMul(this,vt):this.curve.endo?this.curve._endoWnafMulAdd([this],[vt]):this.curve._wnafMul(this,vt)},ft.prototype.mulAdd=function(vt,mt,bt){var wt=[this,mt],xt=[vt,bt];return this.curve.endo?this.curve._endoWnafMulAdd(wt,xt):this.curve._wnafMulAdd(1,wt,xt,2)},ft.prototype.jmulAdd=function(vt,mt,bt){var wt=[this,mt],xt=[vt,bt];return this.curve.endo?this.curve._endoWnafMulAdd(wt,xt,!0):this.curve._wnafMulAdd(1,wt,xt,2,!0)},ft.prototype.eq=function(vt){return this===vt||this.inf===vt.inf&&(this.inf||this.x.cmp(vt.x)===0&&this.y.cmp(vt.y)===0)},ft.prototype.neg=function(vt){if(this.inf)return this;var mt=this.curve.point(this.x,this.y.redNeg());if(vt&&this.precomputed){var bt=this.precomputed,wt=function(xt){return xt.neg()};mt.precomputed={naf:bt.naf&&{wnd:bt.naf.wnd,points:bt.naf.points.map(wt)},doubles:bt.doubles&&{step:bt.doubles.step,points:bt.doubles.points.map(wt)}}}return mt},ft.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var vt=this.curve.jpoint(this.x,this.y,this.curve.one);return vt};function ht(gt,vt,mt,bt){nt.BasePoint.call(this,gt,"jacobian"),vt===null&&mt===null&&bt===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new b(0)):(this.x=new b(vt,16),this.y=new b(mt,16),this.z=new b(bt,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}return tt(ht,nt.BasePoint),ot.prototype.jpoint=function(vt,mt,bt){return new ht(this,vt,mt,bt)},ht.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var vt=this.z.redInvm(),mt=vt.redSqr(),bt=this.x.redMul(mt),wt=this.y.redMul(mt).redMul(vt);return this.curve.point(bt,wt)},ht.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},ht.prototype.add=function(vt){if(this.isInfinity())return vt;if(vt.isInfinity())return this;var mt=vt.z.redSqr(),bt=this.z.redSqr(),wt=this.x.redMul(mt),xt=vt.x.redMul(bt),Et=this.y.redMul(mt.redMul(vt.z)),kt=vt.y.redMul(bt.redMul(this.z)),Dt=wt.redSub(xt),Tt=Et.redSub(kt);if(Dt.cmpn(0)===0)return Tt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var qt=Dt.redSqr(),jt=qt.redMul(Dt),Lt=wt.redMul(qt),Gt=Tt.redSqr().redIAdd(jt).redISub(Lt).redISub(Lt),Qt=Tt.redMul(Lt.redISub(Gt)).redISub(Et.redMul(jt)),tr=this.z.redMul(vt.z).redMul(Dt);return this.curve.jpoint(Gt,Qt,tr)},ht.prototype.mixedAdd=function(vt){if(this.isInfinity())return vt.toJ();if(vt.isInfinity())return this;var mt=this.z.redSqr(),bt=this.x,wt=vt.x.redMul(mt),xt=this.y,Et=vt.y.redMul(mt).redMul(this.z),kt=bt.redSub(wt),Dt=xt.redSub(Et);if(kt.cmpn(0)===0)return Dt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Tt=kt.redSqr(),qt=Tt.redMul(kt),jt=bt.redMul(Tt),Lt=Dt.redSqr().redIAdd(qt).redISub(jt).redISub(jt),Gt=Dt.redMul(jt.redISub(Lt)).redISub(xt.redMul(qt)),Qt=this.z.redMul(kt);return this.curve.jpoint(Lt,Gt,Qt)},ht.prototype.dblp=function(vt){if(vt===0)return this;if(this.isInfinity())return this;if(!vt)return this.dbl();var mt;if(this.curve.zeroA||this.curve.threeA){var bt=this;for(mt=0;mt=0)return!1;if(bt.redIAdd(xt),this.x.cmp(bt)===0)return!0}},ht.prototype.inspect=function(){return this.isInfinity()?"":""},ht.prototype.isInfinity=function(){return this.z.cmpn(0)===0},short}var mont,hasRequiredMont;function requireMont(){if(hasRequiredMont)return mont;hasRequiredMont=1;var d=requireBn$2(),b=requireInherits_browser(),tt=requireBase$1(),nt=requireUtils$1();function st(ft){tt.call(this,"mont",ft),this.a=new d(ft.a,16).toRed(this.red),this.b=new d(ft.b,16).toRed(this.red),this.i4=new d(4).toRed(this.red).redInvm(),this.two=new d(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}b(st,tt),mont=st,st.prototype.validate=function(ht){var gt=ht.normalize().x,vt=gt.redSqr(),mt=vt.redMul(gt).redAdd(vt.redMul(this.a)).redAdd(gt),bt=mt.redSqrt();return bt.redSqr().cmp(mt)===0};function ot(ft,ht,gt){tt.BasePoint.call(this,ft,"projective"),ht===null&>===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new d(ht,16),this.z=new d(gt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return b(ot,tt.BasePoint),st.prototype.decodePoint=function(ht,gt){return this.point(nt.toArray(ht,gt),1)},st.prototype.point=function(ht,gt){return new ot(this,ht,gt)},st.prototype.pointFromJSON=function(ht){return ot.fromJSON(this,ht)},ot.prototype.precompute=function(){},ot.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},ot.fromJSON=function(ht,gt){return new ot(ht,gt[0],gt[1]||ht.one)},ot.prototype.inspect=function(){return this.isInfinity()?"":""},ot.prototype.isInfinity=function(){return this.z.cmpn(0)===0},ot.prototype.dbl=function(){var ht=this.x.redAdd(this.z),gt=ht.redSqr(),vt=this.x.redSub(this.z),mt=vt.redSqr(),bt=gt.redSub(mt),wt=gt.redMul(mt),xt=bt.redMul(mt.redAdd(this.curve.a24.redMul(bt)));return this.curve.point(wt,xt)},ot.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},ot.prototype.diffAdd=function(ht,gt){var vt=this.x.redAdd(this.z),mt=this.x.redSub(this.z),bt=ht.x.redAdd(ht.z),wt=ht.x.redSub(ht.z),xt=wt.redMul(vt),Et=bt.redMul(mt),kt=gt.z.redMul(xt.redAdd(Et).redSqr()),Dt=gt.x.redMul(xt.redISub(Et).redSqr());return this.curve.point(kt,Dt)},ot.prototype.mul=function(ht){for(var gt=ht.clone(),vt=this,mt=this.curve.point(null,null),bt=this,wt=[];gt.cmpn(0)!==0;gt.iushrn(1))wt.push(gt.andln(1));for(var xt=wt.length-1;xt>=0;xt--)wt[xt]===0?(vt=vt.diffAdd(mt,bt),mt=mt.dbl()):(mt=vt.diffAdd(mt,bt),vt=vt.dbl());return mt},ot.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},ot.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},ot.prototype.eq=function(ht){return this.getX().cmp(ht.getX())===0},ot.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},ot.prototype.getX=function(){return this.normalize(),this.x.fromRed()},mont}var edwards,hasRequiredEdwards;function requireEdwards(){if(hasRequiredEdwards)return edwards;hasRequiredEdwards=1;var d=requireUtils$1(),b=requireBn$2(),tt=requireInherits_browser(),nt=requireBase$1(),st=d.assert;function ot(ht){this.twisted=(ht.a|0)!==1,this.mOneA=this.twisted&&(ht.a|0)===-1,this.extended=this.mOneA,nt.call(this,"edwards",ht),this.a=new b(ht.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new b(ht.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new b(ht.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),st(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(ht.c|0)===1}tt(ot,nt),edwards=ot,ot.prototype._mulA=function(gt){return this.mOneA?gt.redNeg():this.a.redMul(gt)},ot.prototype._mulC=function(gt){return this.oneC?gt:this.c.redMul(gt)},ot.prototype.jpoint=function(gt,vt,mt,bt){return this.point(gt,vt,mt,bt)},ot.prototype.pointFromX=function(gt,vt){gt=new b(gt,16),gt.red||(gt=gt.toRed(this.red));var mt=gt.redSqr(),bt=this.c2.redSub(this.a.redMul(mt)),wt=this.one.redSub(this.c2.redMul(this.d).redMul(mt)),xt=bt.redMul(wt.redInvm()),Et=xt.redSqrt();if(Et.redSqr().redSub(xt).cmp(this.zero)!==0)throw new Error("invalid point");var kt=Et.fromRed().isOdd();return(vt&&!kt||!vt&&kt)&&(Et=Et.redNeg()),this.point(gt,Et)},ot.prototype.pointFromY=function(gt,vt){gt=new b(gt,16),gt.red||(gt=gt.toRed(this.red));var mt=gt.redSqr(),bt=mt.redSub(this.c2),wt=mt.redMul(this.d).redMul(this.c2).redSub(this.a),xt=bt.redMul(wt.redInvm());if(xt.cmp(this.zero)===0){if(vt)throw new Error("invalid point");return this.point(this.zero,gt)}var Et=xt.redSqrt();if(Et.redSqr().redSub(xt).cmp(this.zero)!==0)throw new Error("invalid point");return Et.fromRed().isOdd()!==vt&&(Et=Et.redNeg()),this.point(Et,gt)},ot.prototype.validate=function(gt){if(gt.isInfinity())return!0;gt.normalize();var vt=gt.x.redSqr(),mt=gt.y.redSqr(),bt=vt.redMul(this.a).redAdd(mt),wt=this.c2.redMul(this.one.redAdd(this.d.redMul(vt).redMul(mt)));return bt.cmp(wt)===0};function ft(ht,gt,vt,mt,bt){nt.BasePoint.call(this,ht,"projective"),gt===null&&vt===null&&mt===null?(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 b(gt,16),this.y=new b(vt,16),this.z=mt?new b(mt,16):this.curve.one,this.t=bt&&new b(bt,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()))))}return tt(ft,nt.BasePoint),ot.prototype.pointFromJSON=function(gt){return ft.fromJSON(this,gt)},ot.prototype.point=function(gt,vt,mt,bt){return new ft(this,gt,vt,mt,bt)},ft.fromJSON=function(gt,vt){return new ft(gt,vt[0],vt[1],vt[2])},ft.prototype.inspect=function(){return this.isInfinity()?"":""},ft.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},ft.prototype._extDbl=function(){var gt=this.x.redSqr(),vt=this.y.redSqr(),mt=this.z.redSqr();mt=mt.redIAdd(mt);var bt=this.curve._mulA(gt),wt=this.x.redAdd(this.y).redSqr().redISub(gt).redISub(vt),xt=bt.redAdd(vt),Et=xt.redSub(mt),kt=bt.redSub(vt),Dt=wt.redMul(Et),Tt=xt.redMul(kt),qt=wt.redMul(kt),jt=Et.redMul(xt);return this.curve.point(Dt,Tt,jt,qt)},ft.prototype._projDbl=function(){var gt=this.x.redAdd(this.y).redSqr(),vt=this.x.redSqr(),mt=this.y.redSqr(),bt,wt,xt,Et,kt,Dt;if(this.curve.twisted){Et=this.curve._mulA(vt);var Tt=Et.redAdd(mt);this.zOne?(bt=gt.redSub(vt).redSub(mt).redMul(Tt.redSub(this.curve.two)),wt=Tt.redMul(Et.redSub(mt)),xt=Tt.redSqr().redSub(Tt).redSub(Tt)):(kt=this.z.redSqr(),Dt=Tt.redSub(kt).redISub(kt),bt=gt.redSub(vt).redISub(mt).redMul(Dt),wt=Tt.redMul(Et.redSub(mt)),xt=Tt.redMul(Dt))}else Et=vt.redAdd(mt),kt=this.curve._mulC(this.z).redSqr(),Dt=Et.redSub(kt).redSub(kt),bt=this.curve._mulC(gt.redISub(Et)).redMul(Dt),wt=this.curve._mulC(Et).redMul(vt.redISub(mt)),xt=Et.redMul(Dt);return this.curve.point(bt,wt,xt)},ft.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},ft.prototype._extAdd=function(gt){var vt=this.y.redSub(this.x).redMul(gt.y.redSub(gt.x)),mt=this.y.redAdd(this.x).redMul(gt.y.redAdd(gt.x)),bt=this.t.redMul(this.curve.dd).redMul(gt.t),wt=this.z.redMul(gt.z.redAdd(gt.z)),xt=mt.redSub(vt),Et=wt.redSub(bt),kt=wt.redAdd(bt),Dt=mt.redAdd(vt),Tt=xt.redMul(Et),qt=kt.redMul(Dt),jt=xt.redMul(Dt),Lt=Et.redMul(kt);return this.curve.point(Tt,qt,Lt,jt)},ft.prototype._projAdd=function(gt){var vt=this.z.redMul(gt.z),mt=vt.redSqr(),bt=this.x.redMul(gt.x),wt=this.y.redMul(gt.y),xt=this.curve.d.redMul(bt).redMul(wt),Et=mt.redSub(xt),kt=mt.redAdd(xt),Dt=this.x.redAdd(this.y).redMul(gt.x.redAdd(gt.y)).redISub(bt).redISub(wt),Tt=vt.redMul(Et).redMul(Dt),qt,jt;return this.curve.twisted?(qt=vt.redMul(kt).redMul(wt.redSub(this.curve._mulA(bt))),jt=Et.redMul(kt)):(qt=vt.redMul(kt).redMul(wt.redSub(bt)),jt=this.curve._mulC(Et).redMul(kt)),this.curve.point(Tt,qt,jt)},ft.prototype.add=function(gt){return this.isInfinity()?gt:gt.isInfinity()?this:this.curve.extended?this._extAdd(gt):this._projAdd(gt)},ft.prototype.mul=function(gt){return this._hasDoubles(gt)?this.curve._fixedNafMul(this,gt):this.curve._wnafMul(this,gt)},ft.prototype.mulAdd=function(gt,vt,mt){return this.curve._wnafMulAdd(1,[this,vt],[gt,mt],2,!1)},ft.prototype.jmulAdd=function(gt,vt,mt){return this.curve._wnafMulAdd(1,[this,vt],[gt,mt],2,!0)},ft.prototype.normalize=function(){if(this.zOne)return this;var gt=this.z.redInvm();return this.x=this.x.redMul(gt),this.y=this.y.redMul(gt),this.t&&(this.t=this.t.redMul(gt)),this.z=this.curve.one,this.zOne=!0,this},ft.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},ft.prototype.getX=function(){return this.normalize(),this.x.fromRed()},ft.prototype.getY=function(){return this.normalize(),this.y.fromRed()},ft.prototype.eq=function(gt){return this===gt||this.getX().cmp(gt.getX())===0&&this.getY().cmp(gt.getY())===0},ft.prototype.eqXToP=function(gt){var vt=gt.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(vt)===0)return!0;for(var mt=gt.clone(),bt=this.curve.redN.redMul(this.z);;){if(mt.iadd(this.curve.n),mt.cmp(this.curve.p)>=0)return!1;if(vt.redIAdd(bt),this.x.cmp(vt)===0)return!0}},ft.prototype.toP=ft.prototype.normalize,ft.prototype.mixedAdd=ft.prototype.add,edwards}var hasRequiredCurve;function requireCurve(){return hasRequiredCurve||(hasRequiredCurve=1,function(d){var b=d;b.base=requireBase$1(),b.short=requireShort(),b.mont=requireMont(),b.edwards=requireEdwards()}(curve)),curve}var curves={},hash$1={},utils$9={},hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils$9;hasRequiredUtils=1;var d=requireMinimalisticAssert(),b=requireInherits_browser();utils$9.inherits=b;function tt(Rt,Ct){return(Rt.charCodeAt(Ct)&64512)!==55296||Ct<0||Ct+1>=Rt.length?!1:(Rt.charCodeAt(Ct+1)&64512)===56320}function nt(Rt,Ct){if(Array.isArray(Rt))return Rt.slice();if(!Rt)return[];var yt=[];if(typeof Rt=="string")if(Ct){if(Ct==="hex")for(Rt=Rt.replace(/[^a-z0-9]+/ig,""),Rt.length%2!==0&&(Rt="0"+Rt),$t=0;$t>6|192,yt[_t++]=At&63|128):tt(Rt,$t)?(At=65536+((At&1023)<<10)+(Rt.charCodeAt(++$t)&1023),yt[_t++]=At>>18|240,yt[_t++]=At>>12&63|128,yt[_t++]=At>>6&63|128,yt[_t++]=At&63|128):(yt[_t++]=At>>12|224,yt[_t++]=At>>6&63|128,yt[_t++]=At&63|128)}else for($t=0;$t>>24|Rt>>>8&65280|Rt<<8&16711680|(Rt&255)<<24;return Ct>>>0}utils$9.htonl=ot;function ft(Rt,Ct){for(var yt="",_t=0;_t>>0}return At}utils$9.join32=vt;function mt(Rt,Ct){for(var yt=new Array(Rt.length*4),_t=0,$t=0;_t>>24,yt[$t+1]=At>>>16&255,yt[$t+2]=At>>>8&255,yt[$t+3]=At&255):(yt[$t+3]=At>>>24,yt[$t+2]=At>>>16&255,yt[$t+1]=At>>>8&255,yt[$t]=At&255)}return yt}utils$9.split32=mt;function bt(Rt,Ct){return Rt>>>Ct|Rt<<32-Ct}utils$9.rotr32=bt;function wt(Rt,Ct){return Rt<>>32-Ct}utils$9.rotl32=wt;function xt(Rt,Ct){return Rt+Ct>>>0}utils$9.sum32=xt;function Et(Rt,Ct,yt){return Rt+Ct+yt>>>0}utils$9.sum32_3=Et;function kt(Rt,Ct,yt,_t){return Rt+Ct+yt+_t>>>0}utils$9.sum32_4=kt;function Dt(Rt,Ct,yt,_t,$t){return Rt+Ct+yt+_t+$t>>>0}utils$9.sum32_5=Dt;function Tt(Rt,Ct,yt,_t){var $t=Rt[Ct],At=Rt[Ct+1],It=_t+At>>>0,Bt=(It<_t?1:0)+yt+$t;Rt[Ct]=Bt>>>0,Rt[Ct+1]=It}utils$9.sum64=Tt;function qt(Rt,Ct,yt,_t){var $t=Ct+_t>>>0,At=($t>>0}utils$9.sum64_hi=qt;function jt(Rt,Ct,yt,_t){var $t=Ct+_t;return $t>>>0}utils$9.sum64_lo=jt;function Lt(Rt,Ct,yt,_t,$t,At,It,Bt){var Pt=0,Ot=Ct;Ot=Ot+_t>>>0,Pt+=Ot>>0,Pt+=Ot>>0,Pt+=Ot>>0}utils$9.sum64_4_hi=Lt;function Gt(Rt,Ct,yt,_t,$t,At,It,Bt){var Pt=Ct+_t+At+Bt;return Pt>>>0}utils$9.sum64_4_lo=Gt;function Qt(Rt,Ct,yt,_t,$t,At,It,Bt,Pt,Ot){var Mt=0,zt=Ct;zt=zt+_t>>>0,Mt+=zt>>0,Mt+=zt>>0,Mt+=zt>>0,Mt+=zt>>0}utils$9.sum64_5_hi=Qt;function tr(Rt,Ct,yt,_t,$t,At,It,Bt,Pt,Ot){var Mt=Ct+_t+At+Bt+Ot;return Mt>>>0}utils$9.sum64_5_lo=tr;function sr(Rt,Ct,yt){var _t=Ct<<32-yt|Rt>>>yt;return _t>>>0}utils$9.rotr64_hi=sr;function ar(Rt,Ct,yt){var _t=Rt<<32-yt|Ct>>>yt;return _t>>>0}utils$9.rotr64_lo=ar;function _r(Rt,Ct,yt){return Rt>>>yt}utils$9.shr64_hi=_r;function Jt(Rt,Ct,yt){var _t=Rt<<32-yt|Ct>>>yt;return _t>>>0}return utils$9.shr64_lo=Jt,utils$9}var common$3={},hasRequiredCommon$1;function requireCommon$1(){if(hasRequiredCommon$1)return common$3;hasRequiredCommon$1=1;var d=requireUtils(),b=requireMinimalisticAssert();function tt(){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}return common$3.BlockHash=tt,tt.prototype.update=function(st,ot){if(st=d.toArray(st,ot),this.pending?this.pending=this.pending.concat(st):this.pending=st,this.pendingTotal+=st.length,this.pending.length>=this._delta8){st=this.pending;var ft=st.length%this._delta8;this.pending=st.slice(st.length-ft,st.length),this.pending.length===0&&(this.pending=null),st=d.join32(st,0,st.length-ft,this.endian);for(var ht=0;ht>>24&255,ht[gt++]=st>>>16&255,ht[gt++]=st>>>8&255,ht[gt++]=st&255}else for(ht[gt++]=st&255,ht[gt++]=st>>>8&255,ht[gt++]=st>>>16&255,ht[gt++]=st>>>24&255,ht[gt++]=0,ht[gt++]=0,ht[gt++]=0,ht[gt++]=0,vt=8;vt>>3}common$2.g0_256=gt;function vt(mt){return b(mt,17)^b(mt,19)^mt>>>10}return common$2.g1_256=vt,common$2}var _1,hasRequired_1;function require_1(){if(hasRequired_1)return _1;hasRequired_1=1;var d=requireUtils(),b=requireCommon$1(),tt=requireCommon(),nt=d.rotl32,st=d.sum32,ot=d.sum32_5,ft=tt.ft_1,ht=b.BlockHash,gt=[1518500249,1859775393,2400959708,3395469782];function vt(){if(!(this instanceof vt))return new vt;ht.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return d.inherits(vt,ht),_1=vt,vt.blockSize=512,vt.outSize=160,vt.hmacStrength=80,vt.padLength=64,vt.prototype._update=function(bt,wt){for(var xt=this.W,Et=0;Et<16;Et++)xt[Et]=bt[wt+Et];for(;Etthis.blockSize&&(st=new this.Hash().update(st).digest()),b(st.length<=this.blockSize);for(var ot=st.length;ot=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(ot,ft,ht)}return hmacDrbg=nt,nt.prototype._init=function(ot,ft,ht){var gt=ot.concat(ft).concat(ht);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var vt=0;vt=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(ot.concat(ht||[])),this._reseed=1},nt.prototype.generate=function(ot,ft,ht,gt){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof ft!="string"&&(gt=ht,ht=ft,ft=null),ht&&(ht=b.toArray(ht,gt||"hex"),this._update(ht));for(var vt=[];vt.length"},key$1}var signature$1,hasRequiredSignature$1;function requireSignature$1(){if(hasRequiredSignature$1)return signature$1;hasRequiredSignature$1=1;var d=requireBn$2(),b=requireUtils$1(),tt=b.assert;function nt(gt,vt){if(gt instanceof nt)return gt;this._importDER(gt,vt)||(tt(gt.r&>.s,"Signature without r or s"),this.r=new d(gt.r,16),this.s=new d(gt.s,16),gt.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=gt.recoveryParam)}signature$1=nt;function st(){this.place=0}function ot(gt,vt){var mt=gt[vt.place++];if(!(mt&128))return mt;var bt=mt&15;if(bt===0||bt>4||gt[vt.place]===0)return!1;for(var wt=0,xt=0,Et=vt.place;xt>>=0;return wt<=127?!1:(vt.place=Et,wt)}function ft(gt){for(var vt=0,mt=gt.length-1;!gt[vt]&&!(gt[vt+1]&128)&&vt>>3);for(gt.push(mt|128);--mt;)gt.push(vt>>>(mt<<3)&255);gt.push(vt)}return nt.prototype.toDER=function(vt){var mt=this.r.toArray(),bt=this.s.toArray();for(mt[0]&128&&(mt=[0].concat(mt)),bt[0]&128&&(bt=[0].concat(bt)),mt=ft(mt),bt=ft(bt);!bt[0]&&!(bt[1]&128);)bt=bt.slice(1);var wt=[2];ht(wt,mt.length),wt=wt.concat(mt),wt.push(2),ht(wt,bt.length);var xt=wt.concat(bt),Et=[48];return ht(Et,xt.length),Et=Et.concat(xt),b.encode(Et,vt)},signature$1}var ec$1,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec$1;hasRequiredEc=1;var d=requireBn$2(),b=requireHmacDrbg(),tt=requireUtils$1(),nt=requireCurves(),st=requireBrorand(),ot=tt.assert,ft=requireKey$1(),ht=requireSignature$1();function gt(vt){if(!(this instanceof gt))return new gt(vt);typeof vt=="string"&&(ot(Object.prototype.hasOwnProperty.call(nt,vt),"Unknown curve "+vt),vt=nt[vt]),vt instanceof nt.PresetCurve&&(vt={curve:vt}),this.curve=vt.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=vt.curve.g,this.g.precompute(vt.curve.n.bitLength()+1),this.hash=vt.hash||vt.curve.hash}return ec$1=gt,gt.prototype.keyPair=function(mt){return new ft(this,mt)},gt.prototype.keyFromPrivate=function(mt,bt){return ft.fromPrivate(this,mt,bt)},gt.prototype.keyFromPublic=function(mt,bt){return ft.fromPublic(this,mt,bt)},gt.prototype.genKeyPair=function(mt){mt||(mt={});for(var bt=new b({hash:this.hash,pers:mt.pers,persEnc:mt.persEnc||"utf8",entropy:mt.entropy||st(this.hash.hmacStrength),entropyEnc:mt.entropy&&mt.entropyEnc||"utf8",nonce:this.n.toArray()}),wt=this.n.byteLength(),xt=this.n.sub(new d(2));;){var Et=new d(bt.generate(wt));if(!(Et.cmp(xt)>0))return Et.iaddn(1),this.keyFromPrivate(Et)}},gt.prototype._truncateToN=function(mt,bt){var wt=mt.byteLength()*8-this.n.bitLength();return wt>0&&(mt=mt.ushrn(wt)),!bt&&mt.cmp(this.n)>=0?mt.sub(this.n):mt},gt.prototype.sign=function(mt,bt,wt,xt){typeof wt=="object"&&(xt=wt,wt=null),xt||(xt={}),bt=this.keyFromPrivate(bt,wt),mt=this._truncateToN(new d(mt,16));for(var Et=this.n.byteLength(),kt=bt.getPrivate().toArray("be",Et),Dt=mt.toArray("be",Et),Tt=new b({hash:this.hash,entropy:kt,nonce:Dt,pers:xt.pers,persEnc:xt.persEnc||"utf8"}),qt=this.n.sub(new d(1)),jt=0;;jt++){var Lt=xt.k?xt.k(jt):new d(Tt.generate(this.n.byteLength()));if(Lt=this._truncateToN(Lt,!0),!(Lt.cmpn(1)<=0||Lt.cmp(qt)>=0)){var Gt=this.g.mul(Lt);if(!Gt.isInfinity()){var Qt=Gt.getX(),tr=Qt.umod(this.n);if(tr.cmpn(0)!==0){var sr=Lt.invm(this.n).mul(tr.mul(bt.getPrivate()).iadd(mt));if(sr=sr.umod(this.n),sr.cmpn(0)!==0){var ar=(Gt.getY().isOdd()?1:0)|(Qt.cmp(tr)!==0?2:0);return xt.canonical&&sr.cmp(this.nh)>0&&(sr=this.n.sub(sr),ar^=1),new ht({r:tr,s:sr,recoveryParam:ar})}}}}}},gt.prototype.verify=function(mt,bt,wt,xt){mt=this._truncateToN(new d(mt,16)),wt=this.keyFromPublic(wt,xt),bt=new ht(bt,"hex");var Et=bt.r,kt=bt.s;if(Et.cmpn(1)<0||Et.cmp(this.n)>=0||kt.cmpn(1)<0||kt.cmp(this.n)>=0)return!1;var Dt=kt.invm(this.n),Tt=Dt.mul(mt).umod(this.n),qt=Dt.mul(Et).umod(this.n),jt;return this.curve._maxwellTrick?(jt=this.g.jmulAdd(Tt,wt.getPublic(),qt),jt.isInfinity()?!1:jt.eqXToP(Et)):(jt=this.g.mulAdd(Tt,wt.getPublic(),qt),jt.isInfinity()?!1:jt.getX().umod(this.n).cmp(Et)===0)},gt.prototype.recoverPubKey=function(vt,mt,bt,wt){ot((3&bt)===bt,"The recovery param is more than two bits"),mt=new ht(mt,wt);var xt=this.n,Et=new d(vt),kt=mt.r,Dt=mt.s,Tt=bt&1,qt=bt>>1;if(kt.cmp(this.curve.p.umod(this.curve.n))>=0&&qt)throw new Error("Unable to find sencond key candinate");qt?kt=this.curve.pointFromX(kt.add(this.curve.n),Tt):kt=this.curve.pointFromX(kt,Tt);var jt=mt.r.invm(xt),Lt=xt.sub(Et).mul(jt).umod(xt),Gt=Dt.mul(jt).umod(xt);return this.g.mulAdd(Lt,kt,Gt)},gt.prototype.getKeyRecoveryParam=function(vt,mt,bt,wt){if(mt=new ht(mt,wt),mt.recoveryParam!==null)return mt.recoveryParam;for(var xt=0;xt<4;xt++){var Et;try{Et=this.recoverPubKey(vt,mt,xt)}catch{continue}if(Et.eq(bt))return xt}throw new Error("Unable to find valid recovery factor")},ec$1}var key,hasRequiredKey;function requireKey(){if(hasRequiredKey)return key;hasRequiredKey=1;var d=requireUtils$1(),b=d.assert,tt=d.parseBytes,nt=d.cachedProperty;function st(ot,ft){this.eddsa=ot,this._secret=tt(ft.secret),ot.isPoint(ft.pub)?this._pub=ft.pub:this._pubBytes=tt(ft.pub)}return st.fromPublic=function(ft,ht){return ht instanceof st?ht:new st(ft,{pub:ht})},st.fromSecret=function(ft,ht){return ht instanceof st?ht:new st(ft,{secret:ht})},st.prototype.secret=function(){return this._secret},nt(st,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),nt(st,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),nt(st,"privBytes",function(){var ft=this.eddsa,ht=this.hash(),gt=ft.encodingLength-1,vt=ht.slice(0,ft.encodingLength);return vt[0]&=248,vt[gt]&=127,vt[gt]|=64,vt}),nt(st,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),nt(st,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),nt(st,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),st.prototype.sign=function(ft){return b(this._secret,"KeyPair can only verify"),this.eddsa.sign(ft,this)},st.prototype.verify=function(ft,ht){return this.eddsa.verify(ft,ht,this)},st.prototype.getSecret=function(ft){return b(this._secret,"KeyPair is public only"),d.encode(this.secret(),ft)},st.prototype.getPublic=function(ft){return d.encode(this.pubBytes(),ft)},key=st,key}var signature,hasRequiredSignature;function requireSignature(){if(hasRequiredSignature)return signature;hasRequiredSignature=1;var d=requireBn$2(),b=requireUtils$1(),tt=b.assert,nt=b.cachedProperty,st=b.parseBytes;function ot(ft,ht){this.eddsa=ft,typeof ht!="object"&&(ht=st(ht)),Array.isArray(ht)&&(tt(ht.length===ft.encodingLength*2,"Signature has invalid size"),ht={R:ht.slice(0,ft.encodingLength),S:ht.slice(ft.encodingLength)}),tt(ht.R&&ht.S,"Signature without R or S"),ft.isPoint(ht.R)&&(this._R=ht.R),ht.S instanceof d&&(this._S=ht.S),this._Rencoded=Array.isArray(ht.R)?ht.R:ht.Rencoded,this._Sencoded=Array.isArray(ht.S)?ht.S:ht.Sencoded}return nt(ot,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),nt(ot,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),nt(ot,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),nt(ot,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),ot.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},ot.prototype.toHex=function(){return b.encode(this.toBytes(),"hex").toUpperCase()},signature=ot,signature}var eddsa,hasRequiredEddsa;function requireEddsa(){if(hasRequiredEddsa)return eddsa;hasRequiredEddsa=1;var d=requireHash(),b=requireCurves(),tt=requireUtils$1(),nt=tt.assert,st=tt.parseBytes,ot=requireKey(),ft=requireSignature();function ht(gt){if(nt(gt==="ed25519","only tested with ed25519 so far"),!(this instanceof ht))return new ht(gt);gt=b[gt].curve,this.curve=gt,this.g=gt.g,this.g.precompute(gt.n.bitLength()+1),this.pointClass=gt.point().constructor,this.encodingLength=Math.ceil(gt.n.bitLength()/8),this.hash=d.sha512}return eddsa=ht,ht.prototype.sign=function(vt,mt){vt=st(vt);var bt=this.keyFromSecret(mt),wt=this.hashInt(bt.messagePrefix(),vt),xt=this.g.mul(wt),Et=this.encodePoint(xt),kt=this.hashInt(Et,bt.pubBytes(),vt).mul(bt.priv()),Dt=wt.add(kt).umod(this.curve.n);return this.makeSignature({R:xt,S:Dt,Rencoded:Et})},ht.prototype.verify=function(vt,mt,bt){if(vt=st(vt),mt=this.makeSignature(mt),mt.S().gte(mt.eddsa.curve.n)||mt.S().isNeg())return!1;var wt=this.keyFromPublic(bt),xt=this.hashInt(mt.Rencoded(),wt.pubBytes(),vt),Et=this.g.mul(mt.S()),kt=mt.R().add(wt.pub().mul(xt));return kt.eq(Et)},ht.prototype.hashInt=function(){for(var vt=this.hash(),mt=0;mt0?yt:_t},ot.min=function(yt,_t){return yt.cmp(_t)<0?yt:_t},ot.prototype._init=function(yt,_t,$t){if(typeof yt=="number")return this._initNumber(yt,_t,$t);if(typeof yt=="object")return this._initArray(yt,_t,$t);_t==="hex"&&(_t=16),nt(_t===(_t|0)&&_t>=2&&_t<=36),yt=yt.toString().replace(/\s+/g,"");var At=0;yt[0]==="-"&&(At++,this.negative=1),At=0;At-=3)Bt=yt[At]|yt[At-1]<<8|yt[At-2]<<16,this.words[It]|=Bt<>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,It++);else if($t==="le")for(At=0,It=0;At>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,It++);return this._strip()};function ht(Ct,yt){var _t=Ct.charCodeAt(yt);if(_t>=48&&_t<=57)return _t-48;if(_t>=65&&_t<=70)return _t-55;if(_t>=97&&_t<=102)return _t-87;nt(!1,"Invalid character in "+Ct)}function gt(Ct,yt,_t){var $t=ht(Ct,_t);return _t-1>=yt&&($t|=ht(Ct,_t-1)<<4),$t}ot.prototype._parseHex=function(yt,_t,$t){this.length=Math.ceil((yt.length-_t)/6),this.words=new Array(this.length);for(var At=0;At=_t;At-=2)Pt=gt(yt,_t,At)<=18?(It-=18,Bt+=1,this.words[Bt]|=Pt>>>26):It+=8;else{var Ot=yt.length-_t;for(At=Ot%2===0?_t+1:_t;At=18?(It-=18,Bt+=1,this.words[Bt]|=Pt>>>26):It+=8}this._strip()};function vt(Ct,yt,_t,$t){for(var At=0,It=0,Bt=Math.min(Ct.length,_t),Pt=yt;Pt=49?It=Ot-49+10:Ot>=17?It=Ot-17+10:It=Ot,nt(Ot>=0&&It<$t,"Invalid character"),At+=It}return At}ot.prototype._parseBase=function(yt,_t,$t){this.words=[0],this.length=1;for(var At=0,It=1;It<=67108863;It*=_t)At++;At--,It=It/_t|0;for(var Bt=yt.length-$t,Pt=Bt%At,Ot=Math.min(Bt,Bt-Pt)+$t,Mt=0,zt=$t;zt1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},ot.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{ot.prototype[Symbol.for("nodejs.util.inspect.custom")]=bt}catch{ot.prototype.inspect=bt}else ot.prototype.inspect=bt;function bt(){return(this.red?""}var wt=["","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"],xt=[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],Et=[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];ot.prototype.toString=function(yt,_t){yt=yt||10,_t=_t|0||1;var $t;if(yt===16||yt==="hex"){$t="";for(var At=0,It=0,Bt=0;Bt>>24-At&16777215,At+=2,At>=26&&(At-=26,Bt--),It!==0||Bt!==this.length-1?$t=wt[6-Ot.length]+Ot+$t:$t=Ot+$t}for(It!==0&&($t=It.toString(16)+$t);$t.length%_t!==0;)$t="0"+$t;return this.negative!==0&&($t="-"+$t),$t}if(yt===(yt|0)&&yt>=2&&yt<=36){var Mt=xt[yt],zt=Et[yt];$t="";var yr=this.clone();for(yr.negative=0;!yr.isZero();){var vr=yr.modrn(zt).toString(yt);yr=yr.idivn(zt),yr.isZero()?$t=vr+$t:$t=wt[Mt-vr.length]+vr+$t}for(this.isZero()&&($t="0"+$t);$t.length%_t!==0;)$t="0"+$t;return this.negative!==0&&($t="-"+$t),$t}nt(!1,"Base should be between 2 and 36")},ot.prototype.toNumber=function(){var yt=this.words[0];return this.length===2?yt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?yt+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-yt:yt},ot.prototype.toJSON=function(){return this.toString(16,2)},ft&&(ot.prototype.toBuffer=function(yt,_t){return this.toArrayLike(ft,yt,_t)}),ot.prototype.toArray=function(yt,_t){return this.toArrayLike(Array,yt,_t)};var kt=function(yt,_t){return yt.allocUnsafe?yt.allocUnsafe(_t):new yt(_t)};ot.prototype.toArrayLike=function(yt,_t,$t){this._strip();var At=this.byteLength(),It=$t||Math.max(1,At);nt(At<=It,"byte array longer than desired length"),nt(It>0,"Requested array length <= 0");var Bt=kt(yt,It),Pt=_t==="le"?"LE":"BE";return this["_toArrayLike"+Pt](Bt,At),Bt},ot.prototype._toArrayLikeLE=function(yt,_t){for(var $t=0,At=0,It=0,Bt=0;It>8&255),$t>16&255),Bt===6?($t>24&255),At=0,Bt=0):(At=Pt>>>24,Bt+=2)}if($t=0&&(yt[$t--]=Pt>>8&255),$t>=0&&(yt[$t--]=Pt>>16&255),Bt===6?($t>=0&&(yt[$t--]=Pt>>24&255),At=0,Bt=0):(At=Pt>>>24,Bt+=2)}if($t>=0)for(yt[$t--]=At;$t>=0;)yt[$t--]=0},Math.clz32?ot.prototype._countBits=function(yt){return 32-Math.clz32(yt)}:ot.prototype._countBits=function(yt){var _t=yt,$t=0;return _t>=4096&&($t+=13,_t>>>=13),_t>=64&&($t+=7,_t>>>=7),_t>=8&&($t+=4,_t>>>=4),_t>=2&&($t+=2,_t>>>=2),$t+_t},ot.prototype._zeroBits=function(yt){if(yt===0)return 26;var _t=yt,$t=0;return _t&8191||($t+=13,_t>>>=13),_t&127||($t+=7,_t>>>=7),_t&15||($t+=4,_t>>>=4),_t&3||($t+=2,_t>>>=2),_t&1||$t++,$t},ot.prototype.bitLength=function(){var yt=this.words[this.length-1],_t=this._countBits(yt);return(this.length-1)*26+_t};function Dt(Ct){for(var yt=new Array(Ct.bitLength()),_t=0;_t>>At&1}return yt}ot.prototype.zeroBits=function(){if(this.isZero())return 0;for(var yt=0,_t=0;_tyt.length?this.clone().ior(yt):yt.clone().ior(this)},ot.prototype.uor=function(yt){return this.length>yt.length?this.clone().iuor(yt):yt.clone().iuor(this)},ot.prototype.iuand=function(yt){var _t;this.length>yt.length?_t=yt:_t=this;for(var $t=0;$t<_t.length;$t++)this.words[$t]=this.words[$t]&yt.words[$t];return this.length=_t.length,this._strip()},ot.prototype.iand=function(yt){return nt((this.negative|yt.negative)===0),this.iuand(yt)},ot.prototype.and=function(yt){return this.length>yt.length?this.clone().iand(yt):yt.clone().iand(this)},ot.prototype.uand=function(yt){return this.length>yt.length?this.clone().iuand(yt):yt.clone().iuand(this)},ot.prototype.iuxor=function(yt){var _t,$t;this.length>yt.length?(_t=this,$t=yt):(_t=yt,$t=this);for(var At=0;At<$t.length;At++)this.words[At]=_t.words[At]^$t.words[At];if(this!==_t)for(;At<_t.length;At++)this.words[At]=_t.words[At];return this.length=_t.length,this._strip()},ot.prototype.ixor=function(yt){return nt((this.negative|yt.negative)===0),this.iuxor(yt)},ot.prototype.xor=function(yt){return this.length>yt.length?this.clone().ixor(yt):yt.clone().ixor(this)},ot.prototype.uxor=function(yt){return this.length>yt.length?this.clone().iuxor(yt):yt.clone().iuxor(this)},ot.prototype.inotn=function(yt){nt(typeof yt=="number"&&yt>=0);var _t=Math.ceil(yt/26)|0,$t=yt%26;this._expand(_t),$t>0&&_t--;for(var At=0;At<_t;At++)this.words[At]=~this.words[At]&67108863;return $t>0&&(this.words[At]=~this.words[At]&67108863>>26-$t),this._strip()},ot.prototype.notn=function(yt){return this.clone().inotn(yt)},ot.prototype.setn=function(yt,_t){nt(typeof yt=="number"&&yt>=0);var $t=yt/26|0,At=yt%26;return this._expand($t+1),_t?this.words[$t]=this.words[$t]|1<yt.length?($t=this,At=yt):($t=yt,At=this);for(var It=0,Bt=0;Bt>>26;for(;It!==0&&Bt<$t.length;Bt++)_t=($t.words[Bt]|0)+It,this.words[Bt]=_t&67108863,It=_t>>>26;if(this.length=$t.length,It!==0)this.words[this.length]=It,this.length++;else if($t!==this)for(;Bt<$t.length;Bt++)this.words[Bt]=$t.words[Bt];return this},ot.prototype.add=function(yt){var _t;return yt.negative!==0&&this.negative===0?(yt.negative=0,_t=this.sub(yt),yt.negative^=1,_t):yt.negative===0&&this.negative!==0?(this.negative=0,_t=yt.sub(this),this.negative=1,_t):this.length>yt.length?this.clone().iadd(yt):yt.clone().iadd(this)},ot.prototype.isub=function(yt){if(yt.negative!==0){yt.negative=0;var _t=this.iadd(yt);return yt.negative=1,_t._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(yt),this.negative=1,this._normSign();var $t=this.cmp(yt);if($t===0)return this.negative=0,this.length=1,this.words[0]=0,this;var At,It;$t>0?(At=this,It=yt):(At=yt,It=this);for(var Bt=0,Pt=0;Pt>26,this.words[Pt]=_t&67108863;for(;Bt!==0&&Pt>26,this.words[Pt]=_t&67108863;if(Bt===0&&Pt>>26,yr=Ot&67108863,vr=Math.min(Mt,yt.length-1),hr=Math.max(0,Mt-Ct.length+1);hr<=vr;hr++){var rr=Mt-hr|0;At=Ct.words[rr]|0,It=yt.words[hr]|0,Bt=At*It+yr,zt+=Bt/67108864|0,yr=Bt&67108863}_t.words[Mt]=yr|0,Ot=zt|0}return Ot!==0?_t.words[Mt]=Ot|0:_t.length--,_t._strip()}var qt=function(yt,_t,$t){var At=yt.words,It=_t.words,Bt=$t.words,Pt=0,Ot,Mt,zt,yr=At[0]|0,vr=yr&8191,hr=yr>>>13,rr=At[1]|0,er=rr&8191,fr=rr>>>13,wr=At[2]|0,nr=wr&8191,ir=wr>>>13,Br=At[3]|0,Ir=Br&8191,Dr=Br>>>13,Jr=At[4]|0,Yr=Jr&8191,Wr=Jr>>>13,Or=At[5]|0,hn=Or&8191,nn=Or>>>13,kn=At[6]|0,yn=kn&8191,rn=kn>>>13,Ar=At[7]|0,dr=Ar&8191,xr=Ar>>>13,Mr=At[8]|0,Tr=Mr&8191,Yt=Mr>>>13,Wt=At[9]|0,Vt=Wt&8191,or=Wt>>>13,Cr=It[0]|0,Rr=Cr&8191,$r=Cr>>>13,Hr=It[1]|0,Nr=Hr&8191,Ur=Hr>>>13,_n=It[2]|0,tn=_n&8191,gn=_n>>>13,qn=It[3]|0,En=qn&8191,vn=qn>>>13,On=It[4]|0,In=On&8191,Mn=On>>>13,Fn=It[5]|0,Un=Fn&8191,wn=Fn>>>13,Kn=It[6]|0,Ut=Kn&8191,Ft=Kn>>>13,Ht=It[7]|0,St=Ht&8191,Kt=Ht>>>13,gr=It[8]|0,br=gr&8191,kr=gr>>>13,Pr=It[9]|0,jr=Pr&8191,qr=Pr>>>13;$t.negative=yt.negative^_t.negative,$t.length=19,Ot=Math.imul(vr,Rr),Mt=Math.imul(vr,$r),Mt=Mt+Math.imul(hr,Rr)|0,zt=Math.imul(hr,$r);var Sn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Sn>>>26)|0,Sn&=67108863,Ot=Math.imul(er,Rr),Mt=Math.imul(er,$r),Mt=Mt+Math.imul(fr,Rr)|0,zt=Math.imul(fr,$r),Ot=Ot+Math.imul(vr,Nr)|0,Mt=Mt+Math.imul(vr,Ur)|0,Mt=Mt+Math.imul(hr,Nr)|0,zt=zt+Math.imul(hr,Ur)|0;var Vr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,Ot=Math.imul(nr,Rr),Mt=Math.imul(nr,$r),Mt=Mt+Math.imul(ir,Rr)|0,zt=Math.imul(ir,$r),Ot=Ot+Math.imul(er,Nr)|0,Mt=Mt+Math.imul(er,Ur)|0,Mt=Mt+Math.imul(fr,Nr)|0,zt=zt+Math.imul(fr,Ur)|0,Ot=Ot+Math.imul(vr,tn)|0,Mt=Mt+Math.imul(vr,gn)|0,Mt=Mt+Math.imul(hr,tn)|0,zt=zt+Math.imul(hr,gn)|0;var an=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(an>>>26)|0,an&=67108863,Ot=Math.imul(Ir,Rr),Mt=Math.imul(Ir,$r),Mt=Mt+Math.imul(Dr,Rr)|0,zt=Math.imul(Dr,$r),Ot=Ot+Math.imul(nr,Nr)|0,Mt=Mt+Math.imul(nr,Ur)|0,Mt=Mt+Math.imul(ir,Nr)|0,zt=zt+Math.imul(ir,Ur)|0,Ot=Ot+Math.imul(er,tn)|0,Mt=Mt+Math.imul(er,gn)|0,Mt=Mt+Math.imul(fr,tn)|0,zt=zt+Math.imul(fr,gn)|0,Ot=Ot+Math.imul(vr,En)|0,Mt=Mt+Math.imul(vr,vn)|0,Mt=Mt+Math.imul(hr,En)|0,zt=zt+Math.imul(hr,vn)|0;var sn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(sn>>>26)|0,sn&=67108863,Ot=Math.imul(Yr,Rr),Mt=Math.imul(Yr,$r),Mt=Mt+Math.imul(Wr,Rr)|0,zt=Math.imul(Wr,$r),Ot=Ot+Math.imul(Ir,Nr)|0,Mt=Mt+Math.imul(Ir,Ur)|0,Mt=Mt+Math.imul(Dr,Nr)|0,zt=zt+Math.imul(Dr,Ur)|0,Ot=Ot+Math.imul(nr,tn)|0,Mt=Mt+Math.imul(nr,gn)|0,Mt=Mt+Math.imul(ir,tn)|0,zt=zt+Math.imul(ir,gn)|0,Ot=Ot+Math.imul(er,En)|0,Mt=Mt+Math.imul(er,vn)|0,Mt=Mt+Math.imul(fr,En)|0,zt=zt+Math.imul(fr,vn)|0,Ot=Ot+Math.imul(vr,In)|0,Mt=Mt+Math.imul(vr,Mn)|0,Mt=Mt+Math.imul(hr,In)|0,zt=zt+Math.imul(hr,Mn)|0;var pn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(pn>>>26)|0,pn&=67108863,Ot=Math.imul(hn,Rr),Mt=Math.imul(hn,$r),Mt=Mt+Math.imul(nn,Rr)|0,zt=Math.imul(nn,$r),Ot=Ot+Math.imul(Yr,Nr)|0,Mt=Mt+Math.imul(Yr,Ur)|0,Mt=Mt+Math.imul(Wr,Nr)|0,zt=zt+Math.imul(Wr,Ur)|0,Ot=Ot+Math.imul(Ir,tn)|0,Mt=Mt+Math.imul(Ir,gn)|0,Mt=Mt+Math.imul(Dr,tn)|0,zt=zt+Math.imul(Dr,gn)|0,Ot=Ot+Math.imul(nr,En)|0,Mt=Mt+Math.imul(nr,vn)|0,Mt=Mt+Math.imul(ir,En)|0,zt=zt+Math.imul(ir,vn)|0,Ot=Ot+Math.imul(er,In)|0,Mt=Mt+Math.imul(er,Mn)|0,Mt=Mt+Math.imul(fr,In)|0,zt=zt+Math.imul(fr,Mn)|0,Ot=Ot+Math.imul(vr,Un)|0,Mt=Mt+Math.imul(vr,wn)|0,Mt=Mt+Math.imul(hr,Un)|0,zt=zt+Math.imul(hr,wn)|0;var dn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(dn>>>26)|0,dn&=67108863,Ot=Math.imul(yn,Rr),Mt=Math.imul(yn,$r),Mt=Mt+Math.imul(rn,Rr)|0,zt=Math.imul(rn,$r),Ot=Ot+Math.imul(hn,Nr)|0,Mt=Mt+Math.imul(hn,Ur)|0,Mt=Mt+Math.imul(nn,Nr)|0,zt=zt+Math.imul(nn,Ur)|0,Ot=Ot+Math.imul(Yr,tn)|0,Mt=Mt+Math.imul(Yr,gn)|0,Mt=Mt+Math.imul(Wr,tn)|0,zt=zt+Math.imul(Wr,gn)|0,Ot=Ot+Math.imul(Ir,En)|0,Mt=Mt+Math.imul(Ir,vn)|0,Mt=Mt+Math.imul(Dr,En)|0,zt=zt+Math.imul(Dr,vn)|0,Ot=Ot+Math.imul(nr,In)|0,Mt=Mt+Math.imul(nr,Mn)|0,Mt=Mt+Math.imul(ir,In)|0,zt=zt+Math.imul(ir,Mn)|0,Ot=Ot+Math.imul(er,Un)|0,Mt=Mt+Math.imul(er,wn)|0,Mt=Mt+Math.imul(fr,Un)|0,zt=zt+Math.imul(fr,wn)|0,Ot=Ot+Math.imul(vr,Ut)|0,Mt=Mt+Math.imul(vr,Ft)|0,Mt=Mt+Math.imul(hr,Ut)|0,zt=zt+Math.imul(hr,Ft)|0;var ln=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(ln>>>26)|0,ln&=67108863,Ot=Math.imul(dr,Rr),Mt=Math.imul(dr,$r),Mt=Mt+Math.imul(xr,Rr)|0,zt=Math.imul(xr,$r),Ot=Ot+Math.imul(yn,Nr)|0,Mt=Mt+Math.imul(yn,Ur)|0,Mt=Mt+Math.imul(rn,Nr)|0,zt=zt+Math.imul(rn,Ur)|0,Ot=Ot+Math.imul(hn,tn)|0,Mt=Mt+Math.imul(hn,gn)|0,Mt=Mt+Math.imul(nn,tn)|0,zt=zt+Math.imul(nn,gn)|0,Ot=Ot+Math.imul(Yr,En)|0,Mt=Mt+Math.imul(Yr,vn)|0,Mt=Mt+Math.imul(Wr,En)|0,zt=zt+Math.imul(Wr,vn)|0,Ot=Ot+Math.imul(Ir,In)|0,Mt=Mt+Math.imul(Ir,Mn)|0,Mt=Mt+Math.imul(Dr,In)|0,zt=zt+Math.imul(Dr,Mn)|0,Ot=Ot+Math.imul(nr,Un)|0,Mt=Mt+Math.imul(nr,wn)|0,Mt=Mt+Math.imul(ir,Un)|0,zt=zt+Math.imul(ir,wn)|0,Ot=Ot+Math.imul(er,Ut)|0,Mt=Mt+Math.imul(er,Ft)|0,Mt=Mt+Math.imul(fr,Ut)|0,zt=zt+Math.imul(fr,Ft)|0,Ot=Ot+Math.imul(vr,St)|0,Mt=Mt+Math.imul(vr,Kt)|0,Mt=Mt+Math.imul(hr,St)|0,zt=zt+Math.imul(hr,Kt)|0;var fn=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(fn>>>26)|0,fn&=67108863,Ot=Math.imul(Tr,Rr),Mt=Math.imul(Tr,$r),Mt=Mt+Math.imul(Yt,Rr)|0,zt=Math.imul(Yt,$r),Ot=Ot+Math.imul(dr,Nr)|0,Mt=Mt+Math.imul(dr,Ur)|0,Mt=Mt+Math.imul(xr,Nr)|0,zt=zt+Math.imul(xr,Ur)|0,Ot=Ot+Math.imul(yn,tn)|0,Mt=Mt+Math.imul(yn,gn)|0,Mt=Mt+Math.imul(rn,tn)|0,zt=zt+Math.imul(rn,gn)|0,Ot=Ot+Math.imul(hn,En)|0,Mt=Mt+Math.imul(hn,vn)|0,Mt=Mt+Math.imul(nn,En)|0,zt=zt+Math.imul(nn,vn)|0,Ot=Ot+Math.imul(Yr,In)|0,Mt=Mt+Math.imul(Yr,Mn)|0,Mt=Mt+Math.imul(Wr,In)|0,zt=zt+Math.imul(Wr,Mn)|0,Ot=Ot+Math.imul(Ir,Un)|0,Mt=Mt+Math.imul(Ir,wn)|0,Mt=Mt+Math.imul(Dr,Un)|0,zt=zt+Math.imul(Dr,wn)|0,Ot=Ot+Math.imul(nr,Ut)|0,Mt=Mt+Math.imul(nr,Ft)|0,Mt=Mt+Math.imul(ir,Ut)|0,zt=zt+Math.imul(ir,Ft)|0,Ot=Ot+Math.imul(er,St)|0,Mt=Mt+Math.imul(er,Kt)|0,Mt=Mt+Math.imul(fr,St)|0,zt=zt+Math.imul(fr,Kt)|0,Ot=Ot+Math.imul(vr,br)|0,Mt=Mt+Math.imul(vr,kr)|0,Mt=Mt+Math.imul(hr,br)|0,zt=zt+Math.imul(hr,kr)|0;var un=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(un>>>26)|0,un&=67108863,Ot=Math.imul(Vt,Rr),Mt=Math.imul(Vt,$r),Mt=Mt+Math.imul(or,Rr)|0,zt=Math.imul(or,$r),Ot=Ot+Math.imul(Tr,Nr)|0,Mt=Mt+Math.imul(Tr,Ur)|0,Mt=Mt+Math.imul(Yt,Nr)|0,zt=zt+Math.imul(Yt,Ur)|0,Ot=Ot+Math.imul(dr,tn)|0,Mt=Mt+Math.imul(dr,gn)|0,Mt=Mt+Math.imul(xr,tn)|0,zt=zt+Math.imul(xr,gn)|0,Ot=Ot+Math.imul(yn,En)|0,Mt=Mt+Math.imul(yn,vn)|0,Mt=Mt+Math.imul(rn,En)|0,zt=zt+Math.imul(rn,vn)|0,Ot=Ot+Math.imul(hn,In)|0,Mt=Mt+Math.imul(hn,Mn)|0,Mt=Mt+Math.imul(nn,In)|0,zt=zt+Math.imul(nn,Mn)|0,Ot=Ot+Math.imul(Yr,Un)|0,Mt=Mt+Math.imul(Yr,wn)|0,Mt=Mt+Math.imul(Wr,Un)|0,zt=zt+Math.imul(Wr,wn)|0,Ot=Ot+Math.imul(Ir,Ut)|0,Mt=Mt+Math.imul(Ir,Ft)|0,Mt=Mt+Math.imul(Dr,Ut)|0,zt=zt+Math.imul(Dr,Ft)|0,Ot=Ot+Math.imul(nr,St)|0,Mt=Mt+Math.imul(nr,Kt)|0,Mt=Mt+Math.imul(ir,St)|0,zt=zt+Math.imul(ir,Kt)|0,Ot=Ot+Math.imul(er,br)|0,Mt=Mt+Math.imul(er,kr)|0,Mt=Mt+Math.imul(fr,br)|0,zt=zt+Math.imul(fr,kr)|0,Ot=Ot+Math.imul(vr,jr)|0,Mt=Mt+Math.imul(vr,qr)|0,Mt=Mt+Math.imul(hr,jr)|0,zt=zt+Math.imul(hr,qr)|0;var Zr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,Ot=Math.imul(Vt,Nr),Mt=Math.imul(Vt,Ur),Mt=Mt+Math.imul(or,Nr)|0,zt=Math.imul(or,Ur),Ot=Ot+Math.imul(Tr,tn)|0,Mt=Mt+Math.imul(Tr,gn)|0,Mt=Mt+Math.imul(Yt,tn)|0,zt=zt+Math.imul(Yt,gn)|0,Ot=Ot+Math.imul(dr,En)|0,Mt=Mt+Math.imul(dr,vn)|0,Mt=Mt+Math.imul(xr,En)|0,zt=zt+Math.imul(xr,vn)|0,Ot=Ot+Math.imul(yn,In)|0,Mt=Mt+Math.imul(yn,Mn)|0,Mt=Mt+Math.imul(rn,In)|0,zt=zt+Math.imul(rn,Mn)|0,Ot=Ot+Math.imul(hn,Un)|0,Mt=Mt+Math.imul(hn,wn)|0,Mt=Mt+Math.imul(nn,Un)|0,zt=zt+Math.imul(nn,wn)|0,Ot=Ot+Math.imul(Yr,Ut)|0,Mt=Mt+Math.imul(Yr,Ft)|0,Mt=Mt+Math.imul(Wr,Ut)|0,zt=zt+Math.imul(Wr,Ft)|0,Ot=Ot+Math.imul(Ir,St)|0,Mt=Mt+Math.imul(Ir,Kt)|0,Mt=Mt+Math.imul(Dr,St)|0,zt=zt+Math.imul(Dr,Kt)|0,Ot=Ot+Math.imul(nr,br)|0,Mt=Mt+Math.imul(nr,kr)|0,Mt=Mt+Math.imul(ir,br)|0,zt=zt+Math.imul(ir,kr)|0,Ot=Ot+Math.imul(er,jr)|0,Mt=Mt+Math.imul(er,qr)|0,Mt=Mt+Math.imul(fr,jr)|0,zt=zt+Math.imul(fr,qr)|0;var Qr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,Ot=Math.imul(Vt,tn),Mt=Math.imul(Vt,gn),Mt=Mt+Math.imul(or,tn)|0,zt=Math.imul(or,gn),Ot=Ot+Math.imul(Tr,En)|0,Mt=Mt+Math.imul(Tr,vn)|0,Mt=Mt+Math.imul(Yt,En)|0,zt=zt+Math.imul(Yt,vn)|0,Ot=Ot+Math.imul(dr,In)|0,Mt=Mt+Math.imul(dr,Mn)|0,Mt=Mt+Math.imul(xr,In)|0,zt=zt+Math.imul(xr,Mn)|0,Ot=Ot+Math.imul(yn,Un)|0,Mt=Mt+Math.imul(yn,wn)|0,Mt=Mt+Math.imul(rn,Un)|0,zt=zt+Math.imul(rn,wn)|0,Ot=Ot+Math.imul(hn,Ut)|0,Mt=Mt+Math.imul(hn,Ft)|0,Mt=Mt+Math.imul(nn,Ut)|0,zt=zt+Math.imul(nn,Ft)|0,Ot=Ot+Math.imul(Yr,St)|0,Mt=Mt+Math.imul(Yr,Kt)|0,Mt=Mt+Math.imul(Wr,St)|0,zt=zt+Math.imul(Wr,Kt)|0,Ot=Ot+Math.imul(Ir,br)|0,Mt=Mt+Math.imul(Ir,kr)|0,Mt=Mt+Math.imul(Dr,br)|0,zt=zt+Math.imul(Dr,kr)|0,Ot=Ot+Math.imul(nr,jr)|0,Mt=Mt+Math.imul(nr,qr)|0,Mt=Mt+Math.imul(ir,jr)|0,zt=zt+Math.imul(ir,qr)|0;var Fr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,Ot=Math.imul(Vt,En),Mt=Math.imul(Vt,vn),Mt=Mt+Math.imul(or,En)|0,zt=Math.imul(or,vn),Ot=Ot+Math.imul(Tr,In)|0,Mt=Mt+Math.imul(Tr,Mn)|0,Mt=Mt+Math.imul(Yt,In)|0,zt=zt+Math.imul(Yt,Mn)|0,Ot=Ot+Math.imul(dr,Un)|0,Mt=Mt+Math.imul(dr,wn)|0,Mt=Mt+Math.imul(xr,Un)|0,zt=zt+Math.imul(xr,wn)|0,Ot=Ot+Math.imul(yn,Ut)|0,Mt=Mt+Math.imul(yn,Ft)|0,Mt=Mt+Math.imul(rn,Ut)|0,zt=zt+Math.imul(rn,Ft)|0,Ot=Ot+Math.imul(hn,St)|0,Mt=Mt+Math.imul(hn,Kt)|0,Mt=Mt+Math.imul(nn,St)|0,zt=zt+Math.imul(nn,Kt)|0,Ot=Ot+Math.imul(Yr,br)|0,Mt=Mt+Math.imul(Yr,kr)|0,Mt=Mt+Math.imul(Wr,br)|0,zt=zt+Math.imul(Wr,kr)|0,Ot=Ot+Math.imul(Ir,jr)|0,Mt=Mt+Math.imul(Ir,qr)|0,Mt=Mt+Math.imul(Dr,jr)|0,zt=zt+Math.imul(Dr,qr)|0;var Gr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,Ot=Math.imul(Vt,In),Mt=Math.imul(Vt,Mn),Mt=Mt+Math.imul(or,In)|0,zt=Math.imul(or,Mn),Ot=Ot+Math.imul(Tr,Un)|0,Mt=Mt+Math.imul(Tr,wn)|0,Mt=Mt+Math.imul(Yt,Un)|0,zt=zt+Math.imul(Yt,wn)|0,Ot=Ot+Math.imul(dr,Ut)|0,Mt=Mt+Math.imul(dr,Ft)|0,Mt=Mt+Math.imul(xr,Ut)|0,zt=zt+Math.imul(xr,Ft)|0,Ot=Ot+Math.imul(yn,St)|0,Mt=Mt+Math.imul(yn,Kt)|0,Mt=Mt+Math.imul(rn,St)|0,zt=zt+Math.imul(rn,Kt)|0,Ot=Ot+Math.imul(hn,br)|0,Mt=Mt+Math.imul(hn,kr)|0,Mt=Mt+Math.imul(nn,br)|0,zt=zt+Math.imul(nn,kr)|0,Ot=Ot+Math.imul(Yr,jr)|0,Mt=Mt+Math.imul(Yr,qr)|0,Mt=Mt+Math.imul(Wr,jr)|0,zt=zt+Math.imul(Wr,qr)|0;var pr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(pr>>>26)|0,pr&=67108863,Ot=Math.imul(Vt,Un),Mt=Math.imul(Vt,wn),Mt=Mt+Math.imul(or,Un)|0,zt=Math.imul(or,wn),Ot=Ot+Math.imul(Tr,Ut)|0,Mt=Mt+Math.imul(Tr,Ft)|0,Mt=Mt+Math.imul(Yt,Ut)|0,zt=zt+Math.imul(Yt,Ft)|0,Ot=Ot+Math.imul(dr,St)|0,Mt=Mt+Math.imul(dr,Kt)|0,Mt=Mt+Math.imul(xr,St)|0,zt=zt+Math.imul(xr,Kt)|0,Ot=Ot+Math.imul(yn,br)|0,Mt=Mt+Math.imul(yn,kr)|0,Mt=Mt+Math.imul(rn,br)|0,zt=zt+Math.imul(rn,kr)|0,Ot=Ot+Math.imul(hn,jr)|0,Mt=Mt+Math.imul(hn,qr)|0,Mt=Mt+Math.imul(nn,jr)|0,zt=zt+Math.imul(nn,qr)|0;var Nt=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,Ot=Math.imul(Vt,Ut),Mt=Math.imul(Vt,Ft),Mt=Mt+Math.imul(or,Ut)|0,zt=Math.imul(or,Ft),Ot=Ot+Math.imul(Tr,St)|0,Mt=Mt+Math.imul(Tr,Kt)|0,Mt=Mt+Math.imul(Yt,St)|0,zt=zt+Math.imul(Yt,Kt)|0,Ot=Ot+Math.imul(dr,br)|0,Mt=Mt+Math.imul(dr,kr)|0,Mt=Mt+Math.imul(xr,br)|0,zt=zt+Math.imul(xr,kr)|0,Ot=Ot+Math.imul(yn,jr)|0,Mt=Mt+Math.imul(yn,qr)|0,Mt=Mt+Math.imul(rn,jr)|0,zt=zt+Math.imul(rn,qr)|0;var Zt=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,Ot=Math.imul(Vt,St),Mt=Math.imul(Vt,Kt),Mt=Mt+Math.imul(or,St)|0,zt=Math.imul(or,Kt),Ot=Ot+Math.imul(Tr,br)|0,Mt=Mt+Math.imul(Tr,kr)|0,Mt=Mt+Math.imul(Yt,br)|0,zt=zt+Math.imul(Yt,kr)|0,Ot=Ot+Math.imul(dr,jr)|0,Mt=Mt+Math.imul(dr,qr)|0,Mt=Mt+Math.imul(xr,jr)|0,zt=zt+Math.imul(xr,qr)|0;var Xt=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,Ot=Math.imul(Vt,br),Mt=Math.imul(Vt,kr),Mt=Mt+Math.imul(or,br)|0,zt=Math.imul(or,kr),Ot=Ot+Math.imul(Tr,jr)|0,Mt=Mt+Math.imul(Tr,qr)|0,Mt=Mt+Math.imul(Yt,jr)|0,zt=zt+Math.imul(Yt,qr)|0;var cr=(Pt+Ot|0)+((Mt&8191)<<13)|0;Pt=(zt+(Mt>>>13)|0)+(cr>>>26)|0,cr&=67108863,Ot=Math.imul(Vt,jr),Mt=Math.imul(Vt,qr),Mt=Mt+Math.imul(or,jr)|0,zt=Math.imul(or,qr);var ur=(Pt+Ot|0)+((Mt&8191)<<13)|0;return Pt=(zt+(Mt>>>13)|0)+(ur>>>26)|0,ur&=67108863,Bt[0]=Sn,Bt[1]=Vr,Bt[2]=an,Bt[3]=sn,Bt[4]=pn,Bt[5]=dn,Bt[6]=ln,Bt[7]=fn,Bt[8]=un,Bt[9]=Zr,Bt[10]=Qr,Bt[11]=Fr,Bt[12]=Gr,Bt[13]=pr,Bt[14]=Nt,Bt[15]=Zt,Bt[16]=Xt,Bt[17]=cr,Bt[18]=ur,Pt!==0&&(Bt[19]=Pt,$t.length++),$t};Math.imul||(qt=Tt);function jt(Ct,yt,_t){_t.negative=yt.negative^Ct.negative,_t.length=Ct.length+yt.length;for(var $t=0,At=0,It=0;It<_t.length-1;It++){var Bt=At;At=0;for(var Pt=$t&67108863,Ot=Math.min(It,yt.length-1),Mt=Math.max(0,It-Ct.length+1);Mt<=Ot;Mt++){var zt=It-Mt,yr=Ct.words[zt]|0,vr=yt.words[Mt]|0,hr=yr*vr,rr=hr&67108863;Bt=Bt+(hr/67108864|0)|0,rr=rr+Pt|0,Pt=rr&67108863,Bt=Bt+(rr>>>26)|0,At+=Bt>>>26,Bt&=67108863}_t.words[It]=Pt,$t=Bt,Bt=At}return $t!==0?_t.words[It]=$t:_t.length--,_t._strip()}function Lt(Ct,yt,_t){return jt(Ct,yt,_t)}ot.prototype.mulTo=function(yt,_t){var $t,At=this.length+yt.length;return this.length===10&&yt.length===10?$t=qt(this,yt,_t):At<63?$t=Tt(this,yt,_t):At<1024?$t=jt(this,yt,_t):$t=Lt(this,yt,_t),$t},ot.prototype.mul=function(yt){var _t=new ot(null);return _t.words=new Array(this.length+yt.length),this.mulTo(yt,_t)},ot.prototype.mulf=function(yt){var _t=new ot(null);return _t.words=new Array(this.length+yt.length),Lt(this,yt,_t)},ot.prototype.imul=function(yt){return this.clone().mulTo(yt,this)},ot.prototype.imuln=function(yt){var _t=yt<0;_t&&(yt=-yt),nt(typeof yt=="number"),nt(yt<67108864);for(var $t=0,At=0;At>=26,$t+=It/67108864|0,$t+=Bt>>>26,this.words[At]=Bt&67108863}return $t!==0&&(this.words[At]=$t,this.length++),_t?this.ineg():this},ot.prototype.muln=function(yt){return this.clone().imuln(yt)},ot.prototype.sqr=function(){return this.mul(this)},ot.prototype.isqr=function(){return this.imul(this.clone())},ot.prototype.pow=function(yt){var _t=Dt(yt);if(_t.length===0)return new ot(1);for(var $t=this,At=0;At<_t.length&&_t[At]===0;At++,$t=$t.sqr());if(++At<_t.length)for(var It=$t.sqr();At<_t.length;At++,It=It.sqr())_t[At]!==0&&($t=$t.mul(It));return $t},ot.prototype.iushln=function(yt){nt(typeof yt=="number"&&yt>=0);var _t=yt%26,$t=(yt-_t)/26,At=67108863>>>26-_t<<26-_t,It;if(_t!==0){var Bt=0;for(It=0;It>>26-_t}Bt&&(this.words[It]=Bt,this.length++)}if($t!==0){for(It=this.length-1;It>=0;It--)this.words[It+$t]=this.words[It];for(It=0;It<$t;It++)this.words[It]=0;this.length+=$t}return this._strip()},ot.prototype.ishln=function(yt){return nt(this.negative===0),this.iushln(yt)},ot.prototype.iushrn=function(yt,_t,$t){nt(typeof yt=="number"&&yt>=0);var At;_t?At=(_t-_t%26)/26:At=0;var It=yt%26,Bt=Math.min((yt-It)/26,this.length),Pt=67108863^67108863>>>It<Bt)for(this.length-=Bt,Mt=0;Mt=0&&(zt!==0||Mt>=At);Mt--){var yr=this.words[Mt]|0;this.words[Mt]=zt<<26-It|yr>>>It,zt=yr&Pt}return Ot&&zt!==0&&(Ot.words[Ot.length++]=zt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},ot.prototype.ishrn=function(yt,_t,$t){return nt(this.negative===0),this.iushrn(yt,_t,$t)},ot.prototype.shln=function(yt){return this.clone().ishln(yt)},ot.prototype.ushln=function(yt){return this.clone().iushln(yt)},ot.prototype.shrn=function(yt){return this.clone().ishrn(yt)},ot.prototype.ushrn=function(yt){return this.clone().iushrn(yt)},ot.prototype.testn=function(yt){nt(typeof yt=="number"&&yt>=0);var _t=yt%26,$t=(yt-_t)/26,At=1<<_t;if(this.length<=$t)return!1;var It=this.words[$t];return!!(It&At)},ot.prototype.imaskn=function(yt){nt(typeof yt=="number"&&yt>=0);var _t=yt%26,$t=(yt-_t)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=$t)return this;if(_t!==0&&$t++,this.length=Math.min($t,this.length),_t!==0){var At=67108863^67108863>>>_t<<_t;this.words[this.length-1]&=At}return this._strip()},ot.prototype.maskn=function(yt){return this.clone().imaskn(yt)},ot.prototype.iaddn=function(yt){return nt(typeof yt=="number"),nt(yt<67108864),yt<0?this.isubn(-yt):this.negative!==0?this.length===1&&(this.words[0]|0)<=yt?(this.words[0]=yt-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(yt),this.negative=1,this):this._iaddn(yt)},ot.prototype._iaddn=function(yt){this.words[0]+=yt;for(var _t=0;_t=67108864;_t++)this.words[_t]-=67108864,_t===this.length-1?this.words[_t+1]=1:this.words[_t+1]++;return this.length=Math.max(this.length,_t+1),this},ot.prototype.isubn=function(yt){if(nt(typeof yt=="number"),nt(yt<67108864),yt<0)return this.iaddn(-yt);if(this.negative!==0)return this.negative=0,this.iaddn(yt),this.negative=1,this;if(this.words[0]-=yt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _t=0;_t>26)-(Ot/67108864|0),this.words[It+$t]=Bt&67108863}for(;It>26,this.words[It+$t]=Bt&67108863;if(Pt===0)return this._strip();for(nt(Pt===-1),Pt=0,It=0;It>26,this.words[It]=Bt&67108863;return this.negative=1,this._strip()},ot.prototype._wordDiv=function(yt,_t){var $t=this.length-yt.length,At=this.clone(),It=yt,Bt=It.words[It.length-1]|0,Pt=this._countBits(Bt);$t=26-Pt,$t!==0&&(It=It.ushln($t),At.iushln($t),Bt=It.words[It.length-1]|0);var Ot=At.length-It.length,Mt;if(_t!=="mod"){Mt=new ot(null),Mt.length=Ot+1,Mt.words=new Array(Mt.length);for(var zt=0;zt=0;vr--){var hr=(At.words[It.length+vr]|0)*67108864+(At.words[It.length+vr-1]|0);for(hr=Math.min(hr/Bt|0,67108863),At._ishlnsubmul(It,hr,vr);At.negative!==0;)hr--,At.negative=0,At._ishlnsubmul(It,1,vr),At.isZero()||(At.negative^=1);Mt&&(Mt.words[vr]=hr)}return Mt&&Mt._strip(),At._strip(),_t!=="div"&&$t!==0&&At.iushrn($t),{div:Mt||null,mod:At}},ot.prototype.divmod=function(yt,_t,$t){if(nt(!yt.isZero()),this.isZero())return{div:new ot(0),mod:new ot(0)};var At,It,Bt;return this.negative!==0&&yt.negative===0?(Bt=this.neg().divmod(yt,_t),_t!=="mod"&&(At=Bt.div.neg()),_t!=="div"&&(It=Bt.mod.neg(),$t&&It.negative!==0&&It.iadd(yt)),{div:At,mod:It}):this.negative===0&&yt.negative!==0?(Bt=this.divmod(yt.neg(),_t),_t!=="mod"&&(At=Bt.div.neg()),{div:At,mod:Bt.mod}):this.negative&yt.negative?(Bt=this.neg().divmod(yt.neg(),_t),_t!=="div"&&(It=Bt.mod.neg(),$t&&It.negative!==0&&It.isub(yt)),{div:Bt.div,mod:It}):yt.length>this.length||this.cmp(yt)<0?{div:new ot(0),mod:this}:yt.length===1?_t==="div"?{div:this.divn(yt.words[0]),mod:null}:_t==="mod"?{div:null,mod:new ot(this.modrn(yt.words[0]))}:{div:this.divn(yt.words[0]),mod:new ot(this.modrn(yt.words[0]))}:this._wordDiv(yt,_t)},ot.prototype.div=function(yt){return this.divmod(yt,"div",!1).div},ot.prototype.mod=function(yt){return this.divmod(yt,"mod",!1).mod},ot.prototype.umod=function(yt){return this.divmod(yt,"mod",!0).mod},ot.prototype.divRound=function(yt){var _t=this.divmod(yt);if(_t.mod.isZero())return _t.div;var $t=_t.div.negative!==0?_t.mod.isub(yt):_t.mod,At=yt.ushrn(1),It=yt.andln(1),Bt=$t.cmp(At);return Bt<0||It===1&&Bt===0?_t.div:_t.div.negative!==0?_t.div.isubn(1):_t.div.iaddn(1)},ot.prototype.modrn=function(yt){var _t=yt<0;_t&&(yt=-yt),nt(yt<=67108863);for(var $t=(1<<26)%yt,At=0,It=this.length-1;It>=0;It--)At=($t*At+(this.words[It]|0))%yt;return _t?-At:At},ot.prototype.modn=function(yt){return this.modrn(yt)},ot.prototype.idivn=function(yt){var _t=yt<0;_t&&(yt=-yt),nt(yt<=67108863);for(var $t=0,At=this.length-1;At>=0;At--){var It=(this.words[At]|0)+$t*67108864;this.words[At]=It/yt|0,$t=It%yt}return this._strip(),_t?this.ineg():this},ot.prototype.divn=function(yt){return this.clone().idivn(yt)},ot.prototype.egcd=function(yt){nt(yt.negative===0),nt(!yt.isZero());var _t=this,$t=yt.clone();_t.negative!==0?_t=_t.umod(yt):_t=_t.clone();for(var At=new ot(1),It=new ot(0),Bt=new ot(0),Pt=new ot(1),Ot=0;_t.isEven()&&$t.isEven();)_t.iushrn(1),$t.iushrn(1),++Ot;for(var Mt=$t.clone(),zt=_t.clone();!_t.isZero();){for(var yr=0,vr=1;!(_t.words[0]&vr)&&yr<26;++yr,vr<<=1);if(yr>0)for(_t.iushrn(yr);yr-- >0;)(At.isOdd()||It.isOdd())&&(At.iadd(Mt),It.isub(zt)),At.iushrn(1),It.iushrn(1);for(var hr=0,rr=1;!($t.words[0]&rr)&&hr<26;++hr,rr<<=1);if(hr>0)for($t.iushrn(hr);hr-- >0;)(Bt.isOdd()||Pt.isOdd())&&(Bt.iadd(Mt),Pt.isub(zt)),Bt.iushrn(1),Pt.iushrn(1);_t.cmp($t)>=0?(_t.isub($t),At.isub(Bt),It.isub(Pt)):($t.isub(_t),Bt.isub(At),Pt.isub(It))}return{a:Bt,b:Pt,gcd:$t.iushln(Ot)}},ot.prototype._invmp=function(yt){nt(yt.negative===0),nt(!yt.isZero());var _t=this,$t=yt.clone();_t.negative!==0?_t=_t.umod(yt):_t=_t.clone();for(var At=new ot(1),It=new ot(0),Bt=$t.clone();_t.cmpn(1)>0&&$t.cmpn(1)>0;){for(var Pt=0,Ot=1;!(_t.words[0]&Ot)&&Pt<26;++Pt,Ot<<=1);if(Pt>0)for(_t.iushrn(Pt);Pt-- >0;)At.isOdd()&&At.iadd(Bt),At.iushrn(1);for(var Mt=0,zt=1;!($t.words[0]&zt)&&Mt<26;++Mt,zt<<=1);if(Mt>0)for($t.iushrn(Mt);Mt-- >0;)It.isOdd()&&It.iadd(Bt),It.iushrn(1);_t.cmp($t)>=0?(_t.isub($t),At.isub(It)):($t.isub(_t),It.isub(At))}var yr;return _t.cmpn(1)===0?yr=At:yr=It,yr.cmpn(0)<0&&yr.iadd(yt),yr},ot.prototype.gcd=function(yt){if(this.isZero())return yt.abs();if(yt.isZero())return this.abs();var _t=this.clone(),$t=yt.clone();_t.negative=0,$t.negative=0;for(var At=0;_t.isEven()&&$t.isEven();At++)_t.iushrn(1),$t.iushrn(1);do{for(;_t.isEven();)_t.iushrn(1);for(;$t.isEven();)$t.iushrn(1);var It=_t.cmp($t);if(It<0){var Bt=_t;_t=$t,$t=Bt}else if(It===0||$t.cmpn(1)===0)break;_t.isub($t)}while(!0);return $t.iushln(At)},ot.prototype.invm=function(yt){return this.egcd(yt).a.umod(yt)},ot.prototype.isEven=function(){return(this.words[0]&1)===0},ot.prototype.isOdd=function(){return(this.words[0]&1)===1},ot.prototype.andln=function(yt){return this.words[0]&yt},ot.prototype.bincn=function(yt){nt(typeof yt=="number");var _t=yt%26,$t=(yt-_t)/26,At=1<<_t;if(this.length<=$t)return this._expand($t+1),this.words[$t]|=At,this;for(var It=At,Bt=$t;It!==0&&Bt>>26,Pt&=67108863,this.words[Bt]=Pt}return It!==0&&(this.words[Bt]=It,this.length++),this},ot.prototype.isZero=function(){return this.length===1&&this.words[0]===0},ot.prototype.cmpn=function(yt){var _t=yt<0;if(this.negative!==0&&!_t)return-1;if(this.negative===0&&_t)return 1;this._strip();var $t;if(this.length>1)$t=1;else{_t&&(yt=-yt),nt(yt<=67108863,"Number is too big");var At=this.words[0]|0;$t=At===yt?0:Atyt.length)return 1;if(this.length=0;$t--){var At=this.words[$t]|0,It=yt.words[$t]|0;if(At!==It){AtIt&&(_t=1);break}}return _t},ot.prototype.gtn=function(yt){return this.cmpn(yt)===1},ot.prototype.gt=function(yt){return this.cmp(yt)===1},ot.prototype.gten=function(yt){return this.cmpn(yt)>=0},ot.prototype.gte=function(yt){return this.cmp(yt)>=0},ot.prototype.ltn=function(yt){return this.cmpn(yt)===-1},ot.prototype.lt=function(yt){return this.cmp(yt)===-1},ot.prototype.lten=function(yt){return this.cmpn(yt)<=0},ot.prototype.lte=function(yt){return this.cmp(yt)<=0},ot.prototype.eqn=function(yt){return this.cmpn(yt)===0},ot.prototype.eq=function(yt){return this.cmp(yt)===0},ot.red=function(yt){return new Jt(yt)},ot.prototype.toRed=function(yt){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),yt.convertTo(this)._forceRed(yt)},ot.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},ot.prototype._forceRed=function(yt){return this.red=yt,this},ot.prototype.forceRed=function(yt){return nt(!this.red,"Already a number in reduction context"),this._forceRed(yt)},ot.prototype.redAdd=function(yt){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,yt)},ot.prototype.redIAdd=function(yt){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,yt)},ot.prototype.redSub=function(yt){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,yt)},ot.prototype.redISub=function(yt){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,yt)},ot.prototype.redShl=function(yt){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,yt)},ot.prototype.redMul=function(yt){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,yt),this.red.mul(this,yt)},ot.prototype.redIMul=function(yt){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,yt),this.red.imul(this,yt)},ot.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},ot.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},ot.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},ot.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},ot.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},ot.prototype.redPow=function(yt){return nt(this.red&&!yt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,yt)};var Gt={k256:null,p224:null,p192:null,p25519:null};function Qt(Ct,yt){this.name=Ct,this.p=new ot(yt,16),this.n=this.p.bitLength(),this.k=new ot(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Qt.prototype._tmp=function(){var yt=new ot(null);return yt.words=new Array(Math.ceil(this.n/13)),yt},Qt.prototype.ireduce=function(yt){var _t=yt,$t;do this.split(_t,this.tmp),_t=this.imulK(_t),_t=_t.iadd(this.tmp),$t=_t.bitLength();while($t>this.n);var At=$t0?_t.isub(this.p):_t.strip!==void 0?_t.strip():_t._strip(),_t},Qt.prototype.split=function(yt,_t){yt.iushrn(this.n,0,_t)},Qt.prototype.imulK=function(yt){return yt.imul(this.k)};function tr(){Qt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}st(tr,Qt),tr.prototype.split=function(yt,_t){for(var $t=4194303,At=Math.min(yt.length,9),It=0;It>>22,Bt=Pt}Bt>>>=22,yt.words[It-10]=Bt,Bt===0&&yt.length>10?yt.length-=10:yt.length-=9},tr.prototype.imulK=function(yt){yt.words[yt.length]=0,yt.words[yt.length+1]=0,yt.length+=2;for(var _t=0,$t=0;$t>>=26,yt.words[$t]=It,_t=At}return _t!==0&&(yt.words[yt.length++]=_t),yt},ot._prime=function(yt){if(Gt[yt])return Gt[yt];var _t;if(yt==="k256")_t=new tr;else if(yt==="p224")_t=new sr;else if(yt==="p192")_t=new ar;else if(yt==="p25519")_t=new _r;else throw new Error("Unknown prime "+yt);return Gt[yt]=_t,_t};function Jt(Ct){if(typeof Ct=="string"){var yt=ot._prime(Ct);this.m=yt.p,this.prime=yt}else nt(Ct.gtn(1),"modulus must be greater than 1"),this.m=Ct,this.prime=null}Jt.prototype._verify1=function(yt){nt(yt.negative===0,"red works only with positives"),nt(yt.red,"red works only with red numbers")},Jt.prototype._verify2=function(yt,_t){nt((yt.negative|_t.negative)===0,"red works only with positives"),nt(yt.red&&yt.red===_t.red,"red works only with red numbers")},Jt.prototype.imod=function(yt){return this.prime?this.prime.ireduce(yt)._forceRed(this):(mt(yt,yt.umod(this.m)._forceRed(this)),yt)},Jt.prototype.neg=function(yt){return yt.isZero()?yt.clone():this.m.sub(yt)._forceRed(this)},Jt.prototype.add=function(yt,_t){this._verify2(yt,_t);var $t=yt.add(_t);return $t.cmp(this.m)>=0&&$t.isub(this.m),$t._forceRed(this)},Jt.prototype.iadd=function(yt,_t){this._verify2(yt,_t);var $t=yt.iadd(_t);return $t.cmp(this.m)>=0&&$t.isub(this.m),$t},Jt.prototype.sub=function(yt,_t){this._verify2(yt,_t);var $t=yt.sub(_t);return $t.cmpn(0)<0&&$t.iadd(this.m),$t._forceRed(this)},Jt.prototype.isub=function(yt,_t){this._verify2(yt,_t);var $t=yt.isub(_t);return $t.cmpn(0)<0&&$t.iadd(this.m),$t},Jt.prototype.shl=function(yt,_t){return this._verify1(yt),this.imod(yt.ushln(_t))},Jt.prototype.imul=function(yt,_t){return this._verify2(yt,_t),this.imod(yt.imul(_t))},Jt.prototype.mul=function(yt,_t){return this._verify2(yt,_t),this.imod(yt.mul(_t))},Jt.prototype.isqr=function(yt){return this.imul(yt,yt.clone())},Jt.prototype.sqr=function(yt){return this.mul(yt,yt)},Jt.prototype.sqrt=function(yt){if(yt.isZero())return yt.clone();var _t=this.m.andln(3);if(nt(_t%2===1),_t===3){var $t=this.m.add(new ot(1)).iushrn(2);return this.pow(yt,$t)}for(var At=this.m.subn(1),It=0;!At.isZero()&&At.andln(1)===0;)It++,At.iushrn(1);nt(!At.isZero());var Bt=new ot(1).toRed(this),Pt=Bt.redNeg(),Ot=this.m.subn(1).iushrn(1),Mt=this.m.bitLength();for(Mt=new ot(2*Mt*Mt).toRed(this);this.pow(Mt,Ot).cmp(Pt)!==0;)Mt.redIAdd(Pt);for(var zt=this.pow(Mt,At),yr=this.pow(yt,At.addn(1).iushrn(1)),vr=this.pow(yt,At),hr=It;vr.cmp(Bt)!==0;){for(var rr=vr,er=0;rr.cmp(Bt)!==0;er++)rr=rr.redSqr();nt(er=0;It--){for(var zt=_t.words[It],yr=Mt-1;yr>=0;yr--){var vr=zt>>yr&1;if(Bt!==At[0]&&(Bt=this.sqr(Bt)),vr===0&&Pt===0){Ot=0;continue}Pt<<=1,Pt|=vr,Ot++,!(Ot!==$t&&(It!==0||yr!==0))&&(Bt=this.mul(Bt,At[Pt]),Ot=0,Pt=0)}Mt=26}return Bt},Jt.prototype.convertTo=function(yt){var _t=yt.umod(this.m);return _t===yt?_t.clone():_t},Jt.prototype.convertFrom=function(yt){var _t=yt.clone();return _t.red=null,_t},ot.mont=function(yt){return new Rt(yt)};function Rt(Ct){Jt.call(this,Ct),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new ot(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)}st(Rt,Jt),Rt.prototype.convertTo=function(yt){return this.imod(yt.ushln(this.shift))},Rt.prototype.convertFrom=function(yt){var _t=this.imod(yt.mul(this.rinv));return _t.red=null,_t},Rt.prototype.imul=function(yt,_t){if(yt.isZero()||_t.isZero())return yt.words[0]=0,yt.length=1,yt;var $t=yt.imul(_t),At=$t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),It=$t.isub(At).iushrn(this.shift),Bt=It;return It.cmp(this.m)>=0?Bt=It.isub(this.m):It.cmpn(0)<0&&(Bt=It.iadd(this.m)),Bt._forceRed(this)},Rt.prototype.mul=function(yt,_t){if(yt.isZero()||_t.isZero())return new ot(0)._forceRed(this);var $t=yt.mul(_t),At=$t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),It=$t.isub(At).iushrn(this.shift),Bt=It;return It.cmp(this.m)>=0?Bt=It.isub(this.m):It.cmpn(0)<0&&(Bt=It.iadd(this.m)),Bt._forceRed(this)},Rt.prototype.invm=function(yt){var _t=this.imod(yt._invmp(this.m).mul(this.r2));return _t._forceRed(this)}})(d,commonjsGlobal)}(bn)),bn.exports}var asn1$1={},asn1={},api={},vmBrowserify={},hasRequiredVmBrowserify;function requireVmBrowserify(){return hasRequiredVmBrowserify||(hasRequiredVmBrowserify=1,function(exports){var indexOf=function(d,b){if(d.indexOf)return d.indexOf(b);for(var tt=0;tt>6],xt=(bt&32)===0;if((bt&31)===31){var Et=bt;for(bt=0;(Et&128)===128;){if(Et=vt.readUInt8(mt),vt.isError(Et))return Et;bt<<=7,bt|=Et&127}}else bt&=31;var kt=st.tag[bt];return{cls:wt,primitive:xt,tag:bt,tagStr:kt}}function gt(vt,mt,bt){var wt=vt.readUInt8(bt);if(vt.isError(wt))return wt;if(!mt&&wt===128)return null;if(!(wt&128))return wt;var xt=wt&127;if(xt>4)return vt.error("length octect is too long");wt=0;for(var Et=0;Et=256;Dt>>=8)kt++;var Tt=new b(2+kt);Tt[0]=Et,Tt[1]=128|kt;for(var Dt=1+kt,qt=xt.length;qt>0;Dt--,qt>>=8)Tt[Dt]=qt&255;return this._createEncoderBuffer([Tt,xt])},ft.prototype._encodeStr=function(mt,bt){if(bt==="bitstr")return this._createEncoderBuffer([mt.unused|0,mt.data]);if(bt==="bmpstr"){for(var wt=new b(mt.length*2),xt=0;xt=40)return this.reporter.error("Second objid identifier OOB");mt.splice(0,2,mt[0]*40+mt[1])}for(var Et=0,xt=0;xt=128;kt>>=7)Et++}for(var Dt=new b(Et),Tt=Dt.length-1,xt=mt.length-1;xt>=0;xt--){var kt=mt[xt];for(Dt[Tt--]=kt&127;(kt>>=7)>0;)Dt[Tt--]=128|kt&127}return this._createEncoderBuffer(Dt)};function ht(vt){return vt<10?"0"+vt:vt}ft.prototype._encodeTime=function(mt,bt){var wt,xt=new Date(mt);return bt==="gentime"?wt=[ht(xt.getFullYear()),ht(xt.getUTCMonth()+1),ht(xt.getUTCDate()),ht(xt.getUTCHours()),ht(xt.getUTCMinutes()),ht(xt.getUTCSeconds()),"Z"].join(""):bt==="utctime"?wt=[ht(xt.getFullYear()%100),ht(xt.getUTCMonth()+1),ht(xt.getUTCDate()),ht(xt.getUTCHours()),ht(xt.getUTCMinutes()),ht(xt.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+bt+" time is not supported yet"),this._encodeStr(wt,"octstr")},ft.prototype._encodeNull=function(){return this._createEncoderBuffer("")},ft.prototype._encodeInt=function(mt,bt){if(typeof mt=="string"){if(!bt)return this.reporter.error("String int or enum given, but no values map");if(!bt.hasOwnProperty(mt))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(mt));mt=bt[mt]}if(typeof mt!="number"&&!b.isBuffer(mt)){var wt=mt.toArray();!mt.sign&&wt[0]&128&&wt.unshift(0),mt=new b(wt)}if(b.isBuffer(mt)){var xt=mt.length;mt.length===0&&xt++;var kt=new b(xt);return mt.copy(kt),mt.length===0&&(kt[0]=0),this._createEncoderBuffer(kt)}if(mt<128)return this._createEncoderBuffer(mt);if(mt<256)return this._createEncoderBuffer([0,mt]);for(var xt=1,Et=mt;Et>=256;Et>>=8)xt++;for(var kt=new Array(xt),Et=kt.length-1;Et>=0;Et--)kt[Et]=mt&255,mt>>=8;return kt[0]&128&&kt.unshift(0),this._createEncoderBuffer(new b(kt))},ft.prototype._encodeBool=function(mt){return this._createEncoderBuffer(mt?255:0)},ft.prototype._use=function(mt,bt){return typeof mt=="function"&&(mt=mt(bt)),mt._getEncoder("der").tree},ft.prototype._skipDefault=function(mt,bt,wt){var xt=this._baseState,Et;if(xt.default===null)return!1;var kt=mt.join();if(xt.defaultBuffer===void 0&&(xt.defaultBuffer=this._encodeValue(xt.default,bt,wt).join()),kt.length!==xt.defaultBuffer.length)return!1;for(Et=0;Et=31?wt.error("Multi-octet tag encoding unsupported"):(mt||(xt|=32),xt|=st.tagClassByName[bt||"universal"]<<6,xt)}return der_1}var pem,hasRequiredPem;function requirePem(){if(hasRequiredPem)return pem;hasRequiredPem=1;var d=requireInherits_browser(),b=requireDer();function tt(nt){b.call(this,nt),this.enc="pem"}return d(tt,b),pem=tt,tt.prototype.encode=function(st,ot){for(var ft=b.prototype.encode.call(this,st),ht=ft.toString("base64"),gt=["-----BEGIN "+ot.label+"-----"],vt=0;vt0&&jt.ishrn(Lt),jt}function Et(Tt,qt){Tt=xt(Tt,qt),Tt=Tt.mod(qt);var jt=d.from(Tt.toArray());if(jt.length=0)throw new Error("invalid sig")}return verify_1=ot,verify_1}var browser$4,hasRequiredBrowser$3;function requireBrowser$3(){if(hasRequiredBrowser$3)return browser$4;hasRequiredBrowser$3=1;var d=requireSafeBuffer$1().Buffer,b=requireBrowser$9(),tt=requireReadableBrowser(),nt=requireInherits_browser(),st=requireSign(),ot=requireVerify(),ft=require$$6;Object.keys(ft).forEach(function(bt){ft[bt].id=d.from(ft[bt].id,"hex"),ft[bt.toLowerCase()]=ft[bt]});function ht(bt){tt.Writable.call(this);var wt=ft[bt];if(!wt)throw new Error("Unknown message digest");this._hashType=wt.hash,this._hash=b(wt.hash),this._tag=wt.id,this._signType=wt.sign}nt(ht,tt.Writable),ht.prototype._write=function(wt,xt,Et){this._hash.update(wt),Et()},ht.prototype.update=function(wt,xt){return this._hash.update(typeof wt=="string"?d.from(wt,xt):wt),this},ht.prototype.sign=function(wt,xt){this.end();var Et=this._hash.digest(),kt=st(Et,wt,this._hashType,this._signType,this._tag);return xt?kt.toString(xt):kt};function gt(bt){tt.Writable.call(this);var wt=ft[bt];if(!wt)throw new Error("Unknown message digest");this._hash=b(wt.hash),this._tag=wt.id,this._signType=wt.sign}nt(gt,tt.Writable),gt.prototype._write=function(wt,xt,Et){this._hash.update(wt),Et()},gt.prototype.update=function(wt,xt){return this._hash.update(typeof wt=="string"?d.from(wt,xt):wt),this},gt.prototype.verify=function(wt,xt,Et){var kt=typeof xt=="string"?d.from(xt,Et):xt;this.end();var Dt=this._hash.digest();return ot(kt,Dt,wt,this._signType,this._tag)};function vt(bt){return new ht(bt)}function mt(bt){return new gt(bt)}return browser$4={Sign:vt,Verify:mt,createSign:vt,createVerify:mt},browser$4}var browser$3,hasRequiredBrowser$2;function requireBrowser$2(){if(hasRequiredBrowser$2)return browser$3;hasRequiredBrowser$2=1;var d=requireElliptic(),b=requireBn$2();browser$3=function(ft){return new nt(ft)};var tt={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}};tt.p224=tt.secp224r1,tt.p256=tt.secp256r1=tt.prime256v1,tt.p192=tt.secp192r1=tt.prime192v1,tt.p384=tt.secp384r1,tt.p521=tt.secp521r1;function nt(ot){this.curveType=tt[ot],this.curveType||(this.curveType={name:ot}),this.curve=new d.ec(this.curveType.name),this.keys=void 0}nt.prototype.generateKeys=function(ot,ft){return this.keys=this.curve.genKeyPair(),this.getPublicKey(ot,ft)},nt.prototype.computeSecret=function(ot,ft,ht){ft=ft||"utf8",Buffer.isBuffer(ot)||(ot=new Buffer(ot,ft));var gt=this.curve.keyFromPublic(ot).getPublic(),vt=gt.mul(this.keys.getPrivate()).getX();return st(vt,ht,this.curveType.byteLength)},nt.prototype.getPublicKey=function(ot,ft){var ht=this.keys.getPublic(ft==="compressed",!0);return ft==="hybrid"&&(ht[ht.length-1]%2?ht[0]=7:ht[0]=6),st(ht,ot)},nt.prototype.getPrivateKey=function(ot){return st(this.keys.getPrivate(),ot)},nt.prototype.setPublicKey=function(ot,ft){return ft=ft||"utf8",Buffer.isBuffer(ot)||(ot=new Buffer(ot,ft)),this.keys._importPublic(ot),this},nt.prototype.setPrivateKey=function(ot,ft){ft=ft||"utf8",Buffer.isBuffer(ot)||(ot=new Buffer(ot,ft));var ht=new b(ot);return ht=ht.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(ht),this};function st(ot,ft,ht){Array.isArray(ot)||(ot=ot.toArray());var gt=new Buffer(ot);if(ht&>.length=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return kt?ht(qt,Tt):ft(qt,Tt)};function vt(wt,xt){var Et=wt.modulus.byteLength(),kt=xt.length,Dt=tt("sha1").update(gt.alloc(0)).digest(),Tt=Dt.length,qt=2*Tt;if(kt>Et-qt-2)throw new Error("message too long");var jt=gt.alloc(Et-kt-qt-2),Lt=Et-Tt-1,Gt=b(Tt),Qt=st(gt.concat([Dt,jt,gt.alloc(1,1),xt],Lt),nt(Gt,Lt)),tr=st(Gt,nt(Qt,Tt));return new ot(gt.concat([gt.alloc(1),tr,Qt],Et))}function mt(wt,xt,Et){var kt=xt.length,Dt=wt.modulus.byteLength();if(kt>Dt-11)throw new Error("message too long");var Tt;return Et?Tt=gt.alloc(Dt-kt-3,255):Tt=bt(Dt-kt-3),new ot(gt.concat([gt.from([0,Et?1:2]),Tt,gt.alloc(1),xt],Dt))}function bt(wt){for(var xt=gt.allocUnsafe(wt),Et=0,kt=b(wt*2),Dt=0,Tt;EtTt||new nt(xt).cmp(Dt.modulus)>=0)throw new Error("decryption error");var qt;Et?qt=ft(new nt(xt),Dt):qt=st(xt,Dt);var jt=ht.alloc(Tt-qt.length);if(qt=ht.concat([jt,qt],Tt),kt===4)return gt(Dt,qt);if(kt===1)return vt(Dt,qt,Et);if(kt===3)return qt;throw new Error("unknown padding")};function gt(bt,wt){var xt=bt.modulus.byteLength(),Et=ot("sha1").update(ht.alloc(0)).digest(),kt=Et.length;if(wt[0]!==0)throw new Error("decryption error");var Dt=wt.slice(1,kt+1),Tt=wt.slice(kt+1),qt=tt(Dt,b(Tt,kt)),jt=tt(Tt,b(qt,xt-kt-1));if(mt(Et,jt.slice(0,kt)))throw new Error("decryption error");for(var Lt=kt;jt[Lt]===0;)Lt++;if(jt[Lt++]!==1)throw new Error("decryption error");return jt.slice(Lt)}function vt(bt,wt,xt){for(var Et=wt.slice(0,2),kt=2,Dt=0;wt[kt++]!==0;)if(kt>=wt.length){Dt++;break}var Tt=wt.slice(2,kt-1);if((Et.toString("hex")!=="0002"&&!xt||Et.toString("hex")!=="0001"&&xt)&&Dt++,Tt.length<8&&Dt++,Dt)throw new Error("decryption error");return wt.slice(kt)}function mt(bt,wt){bt=ht.from(bt),wt=ht.from(wt);var xt=0,Et=bt.length;bt.length!==wt.length&&(xt++,Et=Math.min(bt.length,wt.length));for(var kt=-1;++kt