@smartledger/bsv 7.8.0 → 7.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +61 -0
- package/README.md +38 -38
- package/bsv-anchor.min.js +1 -1
- package/bsv-didweb.min.js +1 -1
- package/bsv-gdaf.min.js +47 -47
- package/bsv-ltp.min.js +47 -47
- package/bsv-mnemonic.min.js +1 -1
- package/bsv-shamir.min.js +1 -1
- package/bsv-smartcontract.min.js +6 -6
- package/bsv-statuslist.min.js +25 -25
- package/bsv-vcjwt.min.js +1 -1
- package/bsv.bundle.js +47 -47
- package/bsv.min.js +47 -47
- package/docs/MODULE_REFERENCE_COMPLETE.md +27 -27
- package/docs/advanced/UTXO_MANAGER_GUIDE.md +1 -1
- package/docs/getting-started/INSTALLATION.md +23 -23
- package/docs/getting-started/QUICK_START.md +7 -7
- package/docs/migration/FROM_BSV_1_5_6.md +5 -5
- package/lib/script/interpreter.js +96 -31
- package/lib/smart_contract/covenant_helpers.js +12 -1
- package/package.json +1 -1
- package/test/script/chronicle.js +53 -10
- package/test/script/interpreter.js +9 -6
- package/test/script/string_ops.js +26 -10
- package/version.js +1 -1
package/bsv-mnemonic.min.js
CHANGED
|
@@ -8,7 +8,7 @@ Use Chrome, Firefox or Internet Explorer 11`)}var dp=Se().Buffer,io=globalThis.c
|
|
|
8
8
|
`))):m=r.stylize("[Circular]","special")),pi(s)){if(a&&i.match(/^\d+$/))return m;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=r.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=r.stylize(s,"string"))}return s+": "+m}function Vm(r,e,t){var n=0,i=r.reduce(function(a,s){return n++,s.indexOf(`
|
|
9
9
|
`)>=0&&n++,a+s.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?t[0]+(e===""?"":e+`
|
|
10
10
|
`)+" "+r.join(`,
|
|
11
|
-
`)+" "+t[1]:t[0]+e+" "+r.join(", ")+" "+t[1]}Ie.types=cl();function ml(r){return Array.isArray(r)}Ie.isArray=ml;function Q2(r){return typeof r=="boolean"}Ie.isBoolean=Q2;function jo(r){return r===null}Ie.isNull=jo;function Gm(r){return r==null}Ie.isNullOrUndefined=Gm;function gl(r){return typeof r=="number"}Ie.isNumber=gl;function Oo(r){return typeof r=="string"}Ie.isString=Oo;function $m(r){return typeof r=="symbol"}Ie.isSymbol=$m;function pi(r){return r===void 0}Ie.isUndefined=pi;function ia(r){return nn(r)&&e0(r)==="[object RegExp]"}Ie.isRegExp=ia;Ie.types.isRegExp=ia;function nn(r){return typeof r=="object"&&r!==null}Ie.isObject=nn;function Co(r){return nn(r)&&e0(r)==="[object Date]"}Ie.isDate=Co;Ie.types.isDate=Co;function na(r){return nn(r)&&(e0(r)==="[object Error]"||r instanceof Error)}Ie.isError=na;Ie.types.isNativeError=na;function Io(r){return typeof r=="function"}Ie.isFunction=Io;function Zm(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}Ie.isPrimitive=Zm;Ie.isBuffer=dl();function e0(r){return Object.prototype.toString.call(r)}function X2(r){return r<10?"0"+r.toString(10):r.toString(10)}var Ym=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Xm(){var r=new Date,e=[X2(r.getHours()),X2(r.getMinutes()),X2(r.getSeconds())].join(":");return[r.getDate(),Ym[r.getMonth()],e].join(" ")}Ie.log=function(){console.log("%s - %s",Xm(),Ie.format.apply(Ie,arguments))};Ie.inherits=V();Ie._extend=function(r,e){if(!e||!nn(e))return r;for(var t=Object.keys(e),n=t.length;n--;)r[t[n]]=e[t[n]];return r};function bl(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var di=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Ie.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(di&&e[di]){var t=e[di];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,di,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var n,i,a=new Promise(function(w,E){n=w,i=E}),s=[],m=0;m<arguments.length;m++)s.push(arguments[m]);s.push(function(w,E){w?i(w):n(E)});try{e.apply(this,s)}catch(w){i(w)}return a}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),di&&Object.defineProperty(t,di,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,pl(e))};Ie.promisify.custom=di;function Jm(r,e){if(!r){var t=new Error("Promise was rejected with a falsy value");t.reason=r,r=t}return e(r)}function Qm(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');function e(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if(typeof i!="function")throw new TypeError("The last argument must be of type Function");var a=this,s=function(){return i.apply(a,arguments)};r.apply(this,t).then(function(m){M.default.nextTick(s.bind(null,null,m))},function(m){M.default.nextTick(Jm.bind(null,m,s))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(r)),Object.defineProperties(e,pl(r)),e}Ie.callbackify=Qm});var El=A((fq,Ml)=>{"use strict";y();function yl(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function wl(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?yl(Object(t),!0).forEach(function(n){eg(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):yl(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function eg(r,e,t){return e=xl(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function rg(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function _l(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,xl(n.key),n)}}function tg(r,e,t){return e&&_l(r.prototype,e),t&&_l(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function xl(r){var e=ig(r,"string");return typeof e=="symbol"?e:String(e)}function ig(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var ng=or(),Do=ng.Buffer,ag=aa(),r0=ag.inspect,og=r0&&r0.custom||"inspect";function sg(r,e,t){Do.prototype.copy.call(r,e,t)}Ml.exports=(function(){function r(){rg(this,r),this.head=null,this.tail=null,this.length=0}return tg(r,[{key:"push",value:function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=t+n.data;return i}},{key:"concat",value:function(t){if(this.length===0)return Do.alloc(0);for(var n=Do.allocUnsafe(t>>>0),i=this.head,a=0;i;)sg(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(t,n){var i;return t<this.head.data.length?(i=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):t===this.head.data.length?i=this.shift():i=n?this._getString(t):this._getBuffer(t),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var n=this.head,i=1,a=n.data;for(t-=a.length;n=n.next;){var s=n.data,m=t>s.length?s.length:t;if(m===s.length?a+=s:a+=s.slice(0,t),t-=m,t===0){m===s.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(m));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(t){var n=Do.allocUnsafe(t),i=this.head,a=1;for(i.data.copy(n),t-=i.data.length;i=i.next;){var s=i.data,m=t>s.length?s.length:t;if(s.copy(n,n.length-t,0,m),t-=m,t===0){m===s.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(m));break}++a}return this.length-=a,n}},{key:og,value:function(t,n){return r0(this,wl(wl({},n),{},{depth:0,customInspect:!1}))}}]),r})()});var i0=A((lq,Bl)=>{"use strict";y();function fg(r,e){var t=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,M.default.nextTick(t0,this,r)):M.default.nextTick(t0,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(a){!e&&a?t._writableState?t._writableState.errorEmitted?M.default.nextTick(Po,t):(t._writableState.errorEmitted=!0,M.default.nextTick(Sl,t,a)):M.default.nextTick(Sl,t,a):e?(M.default.nextTick(Po,t),e(a)):M.default.nextTick(Po,t)}),this)}function Sl(r,e){t0(r,e),Po(r)}function Po(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function ug(){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 t0(r,e){r.emit("error",e)}function lg(r,e){var t=r._readableState,n=r._writableState;t&&t.autoDestroy||n&&n.autoDestroy?r.destroy(e):r.emit("error",e)}Bl.exports={destroy:fg,undestroy:ug,errorOrDestroy:lg}});var vi=A((hq,kl)=>{"use strict";y();function cg(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var ql={};function wr(r,e,t){t||(t=Error);function n(a,s,m){return typeof e=="string"?e:e(a,s,m)}var i=(function(a){cg(s,a);function s(m,w,E){return a.call(this,n(m,w,E))||this}return s})(t);i.prototype.name=t.name,i.prototype.code=r,ql[r]=i}function Al(r,e){if(Array.isArray(r)){var t=r.length;return r=r.map(function(n){return String(n)}),t>2?"one of ".concat(e," ").concat(r.slice(0,t-1).join(", "),", or ")+r[t-1]:t===2?"one of ".concat(e," ").concat(r[0]," or ").concat(r[1]):"of ".concat(e," ").concat(r[0])}else return"of ".concat(e," ").concat(String(r))}function hg(r,e,t){return r.substr(!t||t<0?0:+t,e.length)===e}function dg(r,e,t){return(t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function pg(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?!1:r.indexOf(e,t)!==-1}wr("ERR_INVALID_OPT_VALUE",function(r,e){return'The value "'+e+'" is invalid for option "'+r+'"'},TypeError);wr("ERR_INVALID_ARG_TYPE",function(r,e,t){var n;typeof e=="string"&&hg(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";var i;if(dg(r," argument"))i="The ".concat(r," ").concat(n," ").concat(Al(e,"type"));else{var a=pg(r,".")?"property":"argument";i='The "'.concat(r,'" ').concat(a," ").concat(n," ").concat(Al(e,"type"))}return i+=". Received type ".concat(typeof t),i},TypeError);wr("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");wr("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});wr("ERR_STREAM_PREMATURE_CLOSE","Premature close");wr("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"});wr("ERR_MULTIPLE_CALLBACK","Callback called multiple times");wr("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");wr("ERR_STREAM_WRITE_AFTER_END","write after end");wr("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);wr("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError);wr("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");kl.exports.codes=ql});var n0=A((pq,Rl)=>{"use strict";y();var vg=vi().codes.ERR_INVALID_OPT_VALUE;function mg(r,e,t){return r.highWaterMark!=null?r.highWaterMark:e?r[t]:null}function gg(r,e,t,n){var i=mg(e,n,t);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?t:"highWaterMark";throw new vg(a,i)}return Math.floor(i)}return r.objectMode?16:16*1024}Rl.exports={getHighWaterMark:gg}});var o0=A((mq,Il)=>{y();Il.exports=bg;function bg(r,e){if(a0("noDeprecation"))return r;var t=!1;function n(){if(!t){if(a0("throwDeprecation"))throw new Error(e);a0("traceDeprecation")?console.trace(e):console.warn(e),t=!0}return r.apply(this,arguments)}return n}function a0(r){try{if(!globalThis.localStorage)return!1}catch{return!1}var e=globalThis.localStorage[r];return e==null?!1:String(e).toLowerCase()==="true"}});var u0=A((bq,Pl)=>{"use strict";y();Pl.exports=Ve;function Cl(r){var e=this;this.next=null,this.entry=null,this.finish=function(){Wg(e,r)}}var an;Ve.WritableState=sa;var yg={deprecate:o0()},jl=_2(),zo=or().Buffer,wg=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _g(r){return zo.from(r)}function xg(r){return zo.isBuffer(r)||r instanceof wg}var f0=i0(),Mg=n0(),Eg=Mg.getHighWaterMark,It=vi().codes,Sg=It.ERR_INVALID_ARG_TYPE,Bg=It.ERR_METHOD_NOT_IMPLEMENTED,Ag=It.ERR_MULTIPLE_CALLBACK,qg=It.ERR_STREAM_CANNOT_PIPE,kg=It.ERR_STREAM_DESTROYED,Rg=It.ERR_STREAM_NULL_VALUES,Ig=It.ERR_STREAM_WRITE_AFTER_END,Tg=It.ERR_UNKNOWN_ENCODING,on=f0.errorOrDestroy;V()(Ve,jl);function Cg(){}function sa(r,e,t){an=an||mi(),r=r||{},typeof t!="boolean"&&(t=e instanceof an),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=Eg(this,r,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=r.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Ng(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Cl(this)}sa.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(sa.prototype,"buffer",{get:yg.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Uo;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Uo=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ve,Symbol.hasInstance,{value:function(e){return Uo.call(this,e)?!0:this!==Ve?!1:e&&e._writableState instanceof sa}})):Uo=function(e){return e instanceof this};function Ve(r){an=an||mi();var e=this instanceof an;if(!e&&!Uo.call(Ve,this))return new Ve(r);this._writableState=new sa(r,this,e),this.writable=!0,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),jl.call(this)}Ve.prototype.pipe=function(){on(this,new qg)};function jg(r,e){var t=new Ig;on(r,t),M.default.nextTick(e,t)}function Og(r,e,t,n){var i;return t===null?i=new Rg:typeof t!="string"&&!e.objectMode&&(i=new Sg("chunk",["string","Buffer"],t)),i?(on(r,i),M.default.nextTick(n,i),!1):!0}Ve.prototype.write=function(r,e,t){var n=this._writableState,i=!1,a=!n.objectMode&&xg(r);return a&&!zo.isBuffer(r)&&(r=_g(r)),typeof e=="function"&&(t=e,e=null),a?e="buffer":e||(e=n.defaultEncoding),typeof t!="function"&&(t=Cg),n.ending?jg(this,t):(a||Og(this,n,r,t))&&(n.pendingcb++,i=Pg(this,n,a,r,e,t)),i};Ve.prototype.cork=function(){this._writableState.corked++};Ve.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Ol(this,r))};Ve.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new Tg(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(Ve.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Dg(r,e,t){return!r.objectMode&&r.decodeStrings!==!1&&typeof e=="string"&&(e=zo.from(e,t)),e}Object.defineProperty(Ve.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Pg(r,e,t,n,i,a){if(!t){var s=Dg(e,n,i);n!==s&&(t=!0,i="buffer",n=s)}var m=e.objectMode?1:n.length;e.length+=m;var w=e.length<e.highWaterMark;if(w||(e.needDrain=!0),e.writing||e.corked){var E=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:t,callback:a,next:null},E?E.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else s0(r,e,!1,m,n,i,a);return w}function s0(r,e,t,n,i,a,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new kg("write")):t?r._writev(i,e.onwrite):r._write(i,a,e.onwrite),e.sync=!1}function Ug(r,e,t,n,i){--e.pendingcb,t?(M.default.nextTick(i,n),M.default.nextTick(oa,r,e),r._writableState.errorEmitted=!0,on(r,n)):(i(n),r._writableState.errorEmitted=!0,on(r,n),oa(r,e))}function zg(r){r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0}function Ng(r,e){var t=r._writableState,n=t.sync,i=t.writecb;if(typeof i!="function")throw new Ag;if(zg(t),e)Ug(r,t,n,e,i);else{var a=Dl(t)||r.destroyed;!a&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Ol(r,t),n?M.default.nextTick(Tl,r,t,a,i):Tl(r,t,a,i)}}function Tl(r,e,t,n){t||Fg(r,e),e.pendingcb--,n(),oa(r,e)}function Fg(r,e){e.length===0&&e.needDrain&&(e.needDrain=!1,r.emit("drain"))}function Ol(r,e){e.bufferProcessing=!0;var t=e.bufferedRequest;if(r._writev&&t&&t.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=t;for(var s=0,m=!0;t;)i[s]=t,t.isBuf||(m=!1),t=t.next,s+=1;i.allBuffers=m,s0(r,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new Cl(e),e.bufferedRequestCount=0}else{for(;t;){var w=t.chunk,E=t.encoding,q=t.callback,k=e.objectMode?1:w.length;if(s0(r,e,!1,k,w,E,q),t=t.next,e.bufferedRequestCount--,e.writing)break}t===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=t,e.bufferProcessing=!1}Ve.prototype._write=function(r,e,t){t(new Bg("_write()"))};Ve.prototype._writev=null;Ve.prototype.end=function(r,e,t){var n=this._writableState;return typeof r=="function"?(t=r,r=null,e=null):typeof e=="function"&&(t=e,e=null),r!=null&&this.write(r,e),n.corked&&(n.corked=1,this.uncork()),n.ending||Kg(this,n,t),this};Object.defineProperty(Ve.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Dl(r){return r.ending&&r.length===0&&r.bufferedRequest===null&&!r.finished&&!r.writing}function Lg(r,e){r._final(function(t){e.pendingcb--,t&&on(r,t),e.prefinished=!0,r.emit("prefinish"),oa(r,e)})}function Hg(r,e){!e.prefinished&&!e.finalCalled&&(typeof r._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,M.default.nextTick(Lg,r,e)):(e.prefinished=!0,r.emit("prefinish")))}function oa(r,e){var t=Dl(e);if(t&&(Hg(r,e),e.pendingcb===0&&(e.finished=!0,r.emit("finish"),e.autoDestroy))){var n=r._readableState;(!n||n.autoDestroy&&n.endEmitted)&&r.destroy()}return t}function Kg(r,e,t){e.ending=!0,oa(r,e),t&&(e.finished?M.default.nextTick(t):r.once("finish",t)),e.ended=!0,r.writable=!1}function Wg(r,e,t){var n=r.entry;for(r.entry=null;n;){var i=n.callback;e.pendingcb--,i(t),n=n.next}e.corkedRequestsFree.next=r}Object.defineProperty(Ve.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});Ve.prototype.destroy=f0.destroy;Ve.prototype._undestroy=f0.undestroy;Ve.prototype._destroy=function(r,e){e(r)}});var mi=A((wq,zl)=>{"use strict";y();var Vg=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};zl.exports=et;var Ul=h0(),c0=u0();V()(et,Ul);for(l0=Vg(c0.prototype),No=0;No<l0.length;No++)Fo=l0[No],et.prototype[Fo]||(et.prototype[Fo]=c0.prototype[Fo]);var l0,Fo,No;function et(r){if(!(this instanceof et))return new et(r);Ul.call(this,r),c0.call(this,r),this.allowHalfOpen=!0,r&&(r.readable===!1&&(this.readable=!1),r.writable===!1&&(this.writable=!1),r.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Gg)))}Object.defineProperty(et.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(et.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(et.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Gg(){this._writableState.ended||M.default.nextTick($g,this)}function $g(r){r.end()}Object.defineProperty(et.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var Ll=A((d0,Fl)=>{y();var Lo=or(),ht=Lo.Buffer;function Nl(r,e){for(var t in r)e[t]=r[t]}ht.from&&ht.alloc&&ht.allocUnsafe&&ht.allocUnsafeSlow?Fl.exports=Lo:(Nl(Lo,d0),d0.Buffer=sn);function sn(r,e,t){return ht(r,e,t)}Nl(ht,sn);sn.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return ht(r,e,t)};sn.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=ht(r);return e!==void 0?typeof t=="string"?n.fill(e,t):n.fill(e):n.fill(0),n};sn.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return ht(r)};sn.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Lo.SlowBuffer(r)}});var fn=A(Kl=>{"use strict";y();var v0=Ll().Buffer,Hl=v0.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Zg(r){if(!r)return"utf8";for(var e;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(e)return;r=(""+r).toLowerCase(),e=!0}}function Yg(r){var e=Zg(r);if(typeof e!="string"&&(v0.isEncoding===Hl||!Hl(r)))throw new Error("Unknown encoding: "+r);return e||r}Kl.StringDecoder=fa;function fa(r){this.encoding=Yg(r);var e;switch(this.encoding){case"utf16le":this.text=tb,this.end=ib,e=4;break;case"utf8":this.fillLast=Qg,e=4;break;case"base64":this.text=nb,this.end=ab,e=3;break;default:this.write=ob,this.end=sb;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=v0.allocUnsafe(e)}fa.prototype.write=function(r){if(r.length===0)return"";var e,t;if(this.lastNeed){if(e=this.fillLast(r),e===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t<r.length?e?e+this.text(r,t):this.text(r,t):e||""};fa.prototype.end=rb;fa.prototype.text=eb;fa.prototype.fillLast=function(r){if(this.lastNeed<=r.length)return r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,r.length),this.lastNeed-=r.length};function p0(r){return r<=127?0:r>>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function Xg(r,e,t){var n=e.length-1;if(n<t)return 0;var i=p0(e[n]);return i>=0?(i>0&&(r.lastNeed=i-1),i):--n<t||i===-2?0:(i=p0(e[n]),i>=0?(i>0&&(r.lastNeed=i-2),i):--n<t||i===-2?0:(i=p0(e[n]),i>=0?(i>0&&(i===2?i=0:r.lastNeed=i-3),i):0))}function Jg(r,e,t){if((e[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function Qg(r){var e=this.lastTotal-this.lastNeed,t=Jg(this,r,e);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,e,0,r.length),this.lastNeed-=r.length}function eb(r,e){var t=Xg(this,r,e);if(!this.lastNeed)return r.toString("utf8",e);this.lastTotal=t;var n=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,n),r.toString("utf8",e,n)}function rb(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+"\uFFFD":e}function tb(r,e){if((r.length-e)%2===0){var t=r.toString("utf16le",e);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",e,r.length-1)}function ib(r){var e=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function nb(r,e){var t=(r.length-e)%3;return t===0?r.toString("base64",e):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",e,r.length-t))}function ab(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function ob(r){return r.toString(this.encoding)}function sb(r){return r&&r.length?this.write(r):""}});var Ho=A((Sq,Gl)=>{"use strict";y();var Wl=vi().codes.ERR_STREAM_PREMATURE_CLOSE;function fb(r){var e=!1;return function(){if(!e){e=!0;for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];r.apply(this,n)}}}function ub(){}function lb(r){return r.setHeader&&typeof r.abort=="function"}function Vl(r,e,t){if(typeof e=="function")return Vl(r,null,e);e||(e={}),t=fb(t||ub);var n=e.readable||e.readable!==!1&&r.readable,i=e.writable||e.writable!==!1&&r.writable,a=function(){r.writable||m()},s=r._writableState&&r._writableState.finished,m=function(){i=!1,s=!0,n||t.call(r)},w=r._readableState&&r._readableState.endEmitted,E=function(){n=!1,w=!0,i||t.call(r)},q=function(D){t.call(r,D)},k=function(){var D;if(n&&!w)return(!r._readableState||!r._readableState.ended)&&(D=new Wl),t.call(r,D);if(i&&!s)return(!r._writableState||!r._writableState.ended)&&(D=new Wl),t.call(r,D)},R=function(){r.req.on("finish",m)};return lb(r)?(r.on("complete",m),r.on("abort",k),r.req?R():r.on("request",R)):i&&!r._writableState&&(r.on("end",a),r.on("close",a)),r.on("end",E),r.on("finish",m),e.error!==!1&&r.on("error",q),r.on("close",k),function(){r.removeListener("complete",m),r.removeListener("abort",k),r.removeListener("request",R),r.req&&r.req.removeListener("finish",m),r.removeListener("end",a),r.removeListener("close",a),r.removeListener("finish",m),r.removeListener("end",E),r.removeListener("error",q),r.removeListener("close",k)}}Gl.exports=Vl});var Zl=A((Aq,$l)=>{"use strict";y();var Ko;function Tt(r,e,t){return e=cb(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function cb(r){var e=hb(r,"string");return typeof e=="symbol"?e:String(e)}function hb(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var db=Ho(),Ct=Symbol("lastResolve"),gi=Symbol("lastReject"),ua=Symbol("error"),Wo=Symbol("ended"),bi=Symbol("lastPromise"),m0=Symbol("handlePromise"),yi=Symbol("stream");function jt(r,e){return{value:r,done:e}}function pb(r){var e=r[Ct];if(e!==null){var t=r[yi].read();t!==null&&(r[bi]=null,r[Ct]=null,r[gi]=null,e(jt(t,!1)))}}function vb(r){M.default.nextTick(pb,r)}function mb(r,e){return function(t,n){r.then(function(){if(e[Wo]){t(jt(void 0,!0));return}e[m0](t,n)},n)}}var gb=Object.getPrototypeOf(function(){}),bb=Object.setPrototypeOf((Ko={get stream(){return this[yi]},next:function(){var e=this,t=this[ua];if(t!==null)return Promise.reject(t);if(this[Wo])return Promise.resolve(jt(void 0,!0));if(this[yi].destroyed)return new Promise(function(s,m){M.default.nextTick(function(){e[ua]?m(e[ua]):s(jt(void 0,!0))})});var n=this[bi],i;if(n)i=new Promise(mb(n,this));else{var a=this[yi].read();if(a!==null)return Promise.resolve(jt(a,!1));i=new Promise(this[m0])}return this[bi]=i,i}},Tt(Ko,Symbol.asyncIterator,function(){return this}),Tt(Ko,"return",function(){var e=this;return new Promise(function(t,n){e[yi].destroy(null,function(i){if(i){n(i);return}t(jt(void 0,!0))})})}),Ko),gb),yb=function(e){var t,n=Object.create(bb,(t={},Tt(t,yi,{value:e,writable:!0}),Tt(t,Ct,{value:null,writable:!0}),Tt(t,gi,{value:null,writable:!0}),Tt(t,ua,{value:null,writable:!0}),Tt(t,Wo,{value:e._readableState.endEmitted,writable:!0}),Tt(t,m0,{value:function(a,s){var m=n[yi].read();m?(n[bi]=null,n[Ct]=null,n[gi]=null,a(jt(m,!1))):(n[Ct]=a,n[gi]=s)},writable:!0}),t));return n[bi]=null,db(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[gi];a!==null&&(n[bi]=null,n[Ct]=null,n[gi]=null,a(i)),n[ua]=i;return}var s=n[Ct];s!==null&&(n[bi]=null,n[Ct]=null,n[gi]=null,s(jt(void 0,!0))),n[Wo]=!0}),e.on("readable",vb.bind(null,n)),n};$l.exports=yb});var Xl=A((kq,Yl)=>{y();Yl.exports=function(){throw new Error("Readable.from is not available in the browser")}});var h0=A((Tq,sc)=>{"use strict";y();sc.exports=Ce;var un;Ce.ReadableState=rc;var Iq=$i().EventEmitter,ec=function(e,t){return e.listeners(t).length},ca=_2(),Vo=or().Buffer,wb=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _b(r){return Vo.from(r)}function xb(r){return Vo.isBuffer(r)||r instanceof wb}var g0=aa(),qe;g0&&g0.debuglog?qe=g0.debuglog("stream"):qe=function(){};var Mb=El(),E0=i0(),Eb=n0(),Sb=Eb.getHighWaterMark,Go=vi().codes,Bb=Go.ERR_INVALID_ARG_TYPE,Ab=Go.ERR_STREAM_PUSH_AFTER_EOF,qb=Go.ERR_METHOD_NOT_IMPLEMENTED,kb=Go.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ln,b0,y0;V()(Ce,ca);var la=E0.errorOrDestroy,w0=["error","close","destroy","pause","resume"];function Rb(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function rc(r,e,t){un=un||mi(),r=r||{},typeof t!="boolean"&&(t=e instanceof un),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=Sb(this,r,"readableHighWaterMark",t),this.buffer=new Mb,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(ln||(ln=fn().StringDecoder),this.decoder=new ln(r.encoding),this.encoding=r.encoding)}function Ce(r){if(un=un||mi(),!(this instanceof Ce))return new Ce(r);var e=this instanceof un;this._readableState=new rc(r,this,e),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),ca.call(this)}Object.defineProperty(Ce.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});Ce.prototype.destroy=E0.destroy;Ce.prototype._undestroy=E0.undestroy;Ce.prototype._destroy=function(r,e){e(r)};Ce.prototype.push=function(r,e){var t=this._readableState,n;return t.objectMode?n=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=Vo.from(r,e),e=""),n=!0),tc(this,r,e,!1,n)};Ce.prototype.unshift=function(r){return tc(this,r,null,!0,!1)};function tc(r,e,t,n,i){qe("readableAddChunk",e);var a=r._readableState;if(e===null)a.reading=!1,Cb(r,a);else{var s;if(i||(s=Ib(a,e)),s)la(r,s);else if(a.objectMode||e&&e.length>0)if(typeof e!="string"&&!a.objectMode&&Object.getPrototypeOf(e)!==Vo.prototype&&(e=_b(e)),n)a.endEmitted?la(r,new kb):_0(r,a,e,!0);else if(a.ended)la(r,new Ab);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!t?(e=a.decoder.write(e),a.objectMode||e.length!==0?_0(r,a,e,!1):M0(r,a)):_0(r,a,e,!1)}else n||(a.reading=!1,M0(r,a))}return!a.ended&&(a.length<a.highWaterMark||a.length===0)}function _0(r,e,t,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,r.emit("data",t)):(e.length+=e.objectMode?1:t.length,n?e.buffer.unshift(t):e.buffer.push(t),e.needReadable&&$o(r)),M0(r,e)}function Ib(r,e){var t;return!xb(e)&&typeof e!="string"&&e!==void 0&&!r.objectMode&&(t=new Bb("chunk",["string","Buffer","Uint8Array"],e)),t}Ce.prototype.isPaused=function(){return this._readableState.flowing===!1};Ce.prototype.setEncoding=function(r){ln||(ln=fn().StringDecoder);var e=new ln(r);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var t=this._readableState.buffer.head,n="";t!==null;)n+=e.write(t.data),t=t.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Jl=1073741824;function Tb(r){return r>=Jl?r=Jl:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function Ql(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=Tb(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}Ce.prototype.read=function(r){qe("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return qe("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?x0(this):$o(this),null;if(r=Ql(r,e),r===0&&e.ended)return e.length===0&&x0(this),null;var n=e.needReadable;qe("need readable",n),(e.length===0||e.length-r<e.highWaterMark)&&(n=!0,qe("length less than watermark",n)),e.ended||e.reading?(n=!1,qe("reading or ended",n)):n&&(qe("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(r=Ql(t,e)));var i;return r>0?i=ac(r,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&x0(this)),i!==null&&this.emit("data",i),i};function Cb(r,e){if(qe("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?$o(r):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,ic(r)))}}function $o(r){var e=r._readableState;qe("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(qe("emitReadable",e.flowing),e.emittedReadable=!0,M.default.nextTick(ic,r))}function ic(r){var e=r._readableState;qe("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,S0(r)}function M0(r,e){e.readingMore||(e.readingMore=!0,M.default.nextTick(jb,r,e))}function jb(r,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var t=e.length;if(qe("maybeReadMore read 0"),r.read(0),t===e.length)break}e.readingMore=!1}Ce.prototype._read=function(r){la(this,new qb("_read()"))};Ce.prototype.pipe=function(r,e){var t=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=r;break;case 1:n.pipes=[n.pipes,r];break;default:n.pipes.push(r);break}n.pipesCount+=1,qe("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&r!==M.default.stdout&&r!==M.default.stderr,a=i?m:z;n.endEmitted?M.default.nextTick(a):t.once("end",a),r.on("unpipe",s);function s(W,N){qe("onunpipe"),W===t&&N&&N.hasUnpiped===!1&&(N.hasUnpiped=!0,q())}function m(){qe("onend"),r.end()}var w=Ob(t);r.on("drain",w);var E=!1;function q(){qe("cleanup"),r.removeListener("close",I),r.removeListener("finish",D),r.removeListener("drain",w),r.removeListener("error",R),r.removeListener("unpipe",s),t.removeListener("end",m),t.removeListener("end",z),t.removeListener("data",k),E=!0,n.awaitDrain&&(!r._writableState||r._writableState.needDrain)&&w()}t.on("data",k);function k(W){qe("ondata");var N=r.write(W);qe("dest.write",N),N===!1&&((n.pipesCount===1&&n.pipes===r||n.pipesCount>1&&oc(n.pipes,r)!==-1)&&!E&&(qe("false write response, pause",n.awaitDrain),n.awaitDrain++),t.pause())}function R(W){qe("onerror",W),z(),r.removeListener("error",R),ec(r,"error")===0&&la(r,W)}Rb(r,"error",R);function I(){r.removeListener("finish",D),z()}r.once("close",I);function D(){qe("onfinish"),r.removeListener("close",I),z()}r.once("finish",D);function z(){qe("unpipe"),t.unpipe(r)}return r.emit("pipe",t),n.flowing||(qe("pipe resume"),t.resume()),r};function Ob(r){return function(){var t=r._readableState;qe("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&ec(r,"data")&&(t.flowing=!0,S0(r))}}Ce.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var s=oc(e.pipes,r);return s===-1?this:(e.pipes.splice(s,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),r.emit("unpipe",this,t),this)};Ce.prototype.on=function(r,e){var t=ca.prototype.on.call(this,r,e),n=this._readableState;return r==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):r==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,qe("on readable",n.length,n.reading),n.length?$o(this):n.reading||M.default.nextTick(Db,this)),t};Ce.prototype.addListener=Ce.prototype.on;Ce.prototype.removeListener=function(r,e){var t=ca.prototype.removeListener.call(this,r,e);return r==="readable"&&M.default.nextTick(nc,this),t};Ce.prototype.removeAllListeners=function(r){var e=ca.prototype.removeAllListeners.apply(this,arguments);return(r==="readable"||r===void 0)&&M.default.nextTick(nc,this),e};function nc(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:r.listenerCount("data")>0&&r.resume()}function Db(r){qe("readable nexttick read 0"),r.read(0)}Ce.prototype.resume=function(){var r=this._readableState;return r.flowing||(qe("resume"),r.flowing=!r.readableListening,Pb(this,r)),r.paused=!1,this};function Pb(r,e){e.resumeScheduled||(e.resumeScheduled=!0,M.default.nextTick(Ub,r,e))}function Ub(r,e){qe("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=!1,r.emit("resume"),S0(r),e.flowing&&!e.reading&&r.read(0)}Ce.prototype.pause=function(){return qe("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(qe("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function S0(r){var e=r._readableState;for(qe("flow",e.flowing);e.flowing&&r.read()!==null;);}Ce.prototype.wrap=function(r){var e=this,t=this._readableState,n=!1;r.on("end",function(){if(qe("wrapped end"),t.decoder&&!t.ended){var s=t.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),r.on("data",function(s){if(qe("wrapped data"),t.decoder&&(s=t.decoder.write(s)),!(t.objectMode&&s==null)&&!(!t.objectMode&&(!s||!s.length))){var m=e.push(s);m||(n=!0,r.pause())}});for(var i in r)this[i]===void 0&&typeof r[i]=="function"&&(this[i]=(function(m){return function(){return r[m].apply(r,arguments)}})(i));for(var a=0;a<w0.length;a++)r.on(w0[a],this.emit.bind(this,w0[a]));return this._read=function(s){qe("wrapped _read",s),n&&(n=!1,r.resume())},this};typeof Symbol=="function"&&(Ce.prototype[Symbol.asyncIterator]=function(){return b0===void 0&&(b0=Zl()),b0(this)});Object.defineProperty(Ce.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(Ce.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(Ce.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});Ce._fromList=ac;Object.defineProperty(Ce.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ac(r,e){if(e.length===0)return null;var t;return e.objectMode?t=e.buffer.shift():!r||r>=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function x0(r){var e=r._readableState;qe("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,M.default.nextTick(zb,e,r))}function zb(r,e){if(qe("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy()}}typeof Symbol=="function"&&(Ce.from=function(r,e){return y0===void 0&&(y0=Xl()),y0(Ce,r,e)});function oc(r,e){for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}});var B0=A((jq,uc)=>{"use strict";y();uc.exports=dt;var Zo=vi().codes,Nb=Zo.ERR_METHOD_NOT_IMPLEMENTED,Fb=Zo.ERR_MULTIPLE_CALLBACK,Lb=Zo.ERR_TRANSFORM_ALREADY_TRANSFORMING,Hb=Zo.ERR_TRANSFORM_WITH_LENGTH_0,Yo=mi();V()(dt,Yo);function Kb(r,e){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(n===null)return this.emit("error",new Fb);t.writechunk=null,t.writecb=null,e!=null&&this.push(e),n(r);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function dt(r){if(!(this instanceof dt))return new dt(r);Yo.call(this,r),this._transformState={afterTransform:Kb.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",Wb)}function Wb(){var r=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,t){fc(r,e,t)}):fc(this,null,null)}dt.prototype.push=function(r,e){return this._transformState.needTransform=!1,Yo.prototype.push.call(this,r,e)};dt.prototype._transform=function(r,e,t){t(new Nb("_transform()"))};dt.prototype._write=function(r,e,t){var n=this._transformState;if(n.writecb=t,n.writechunk=r,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};dt.prototype._read=function(r){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};dt.prototype._destroy=function(r,e){Yo.prototype._destroy.call(this,r,function(t){e(t)})};function fc(r,e,t){if(e)return r.emit("error",e);if(t!=null&&r.push(t),r._writableState.length)throw new Hb;if(r._transformState.transforming)throw new Lb;return r.push(null)}});var hc=A((Dq,cc)=>{"use strict";y();cc.exports=ha;var lc=B0();V()(ha,lc);function ha(r){if(!(this instanceof ha))return new ha(r);lc.call(this,r)}ha.prototype._transform=function(r,e,t){t(null,r)}});var gc=A((Uq,mc)=>{"use strict";y();var A0;function Vb(r){var e=!1;return function(){e||(e=!0,r.apply(void 0,arguments))}}var vc=vi().codes,Gb=vc.ERR_MISSING_ARGS,$b=vc.ERR_STREAM_DESTROYED;function dc(r){if(r)throw r}function Zb(r){return r.setHeader&&typeof r.abort=="function"}function Yb(r,e,t,n){n=Vb(n);var i=!1;r.on("close",function(){i=!0}),A0===void 0&&(A0=Ho()),A0(r,{readable:e,writable:t},function(s){if(s)return n(s);i=!0,n()});var a=!1;return function(s){if(!i&&!a){if(a=!0,Zb(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();n(s||new $b("pipe"))}}}function pc(r){r()}function Xb(r,e){return r.pipe(e)}function Jb(r){return!r.length||typeof r[r.length-1]!="function"?dc:r.pop()}function Qb(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n=Jb(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Gb("streams");var i,a=e.map(function(s,m){var w=m<e.length-1,E=m>0;return Yb(s,w,E,function(q){i||(i=q),q&&a.forEach(pc),!w&&(a.forEach(pc),n(i))})});return e.reduce(Xb)}mc.exports=Qb});var k0=A((Nq,bc)=>{y();bc.exports=_r;var q0=$i().EventEmitter,ey=V();ey(_r,q0);_r.Readable=h0();_r.Writable=u0();_r.Duplex=mi();_r.Transform=B0();_r.PassThrough=hc();_r.finished=Ho();_r.pipeline=gc();_r.Stream=_r;function _r(){q0.call(this)}_r.prototype.pipe=function(r,e){var t=this;function n(q){r.writable&&r.write(q)===!1&&t.pause&&t.pause()}t.on("data",n);function i(){t.readable&&t.resume&&t.resume()}r.on("drain",i),!r._isStdio&&(!e||e.end!==!1)&&(t.on("end",s),t.on("close",m));var a=!1;function s(){a||(a=!0,r.end())}function m(){a||(a=!0,typeof r.destroy=="function"&&r.destroy())}function w(q){if(E(),q0.listenerCount(this,"error")===0)throw q}t.on("error",w),r.on("error",w);function E(){t.removeListener("data",n),r.removeListener("drain",i),t.removeListener("end",s),t.removeListener("close",m),t.removeListener("error",w),r.removeListener("error",w),t.removeListener("end",E),t.removeListener("close",E),r.removeListener("close",E)}return t.on("end",E),t.on("close",E),r.on("close",E),r.emit("pipe",t),r}});var _c=A((Lq,wc)=>{"use strict";y();var rt=Se().Buffer,yc=k0().Transform,ry=V();function Ot(r){yc.call(this),this._block=rt.allocUnsafe(r),this._blockSize=r,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}ry(Ot,yc);Ot.prototype._transform=function(r,e,t){var n=null;try{this.update(r,e)}catch(i){n=i}t(n)};Ot.prototype._flush=function(r){var e=null;try{this.push(this.digest())}catch(t){e=t}r(e)};var ty=typeof Uint8Array<"u",iy=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(rt.prototype instanceof Uint8Array||rt.TYPED_ARRAY_SUPPORT);function ny(r,e){if(r instanceof rt)return r;if(typeof r=="string")return rt.from(r,e);if(iy&&ArrayBuffer.isView(r)){if(r.byteLength===0)return rt.alloc(0);var t=rt.from(r.buffer,r.byteOffset,r.byteLength);if(t.byteLength===r.byteLength)return t}if(ty&&r instanceof Uint8Array||rt.isBuffer(r)&&r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r))return rt.from(r);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}Ot.prototype.update=function(r,e){if(this._finalized)throw new Error("Digest already called");r=ny(r,e);for(var t=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)t[i++]=r[n++];this._update(),this._blockOffset=0}for(;n<r.length;)t[this._blockOffset++]=r[n++];for(var a=0,s=r.length*8;s>0;++a)this._length[a]+=s,s=this._length[a]/4294967296|0,s>0&&(this._length[a]-=4294967296*s);return this};Ot.prototype._update=function(){throw new Error("_update is not implemented")};Ot.prototype.digest=function(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();r!==void 0&&(e=e.toString(r)),this._block.fill(0),this._blockOffset=0;for(var t=0;t<4;++t)this._length[t]=0;return e};Ot.prototype._digest=function(){throw new Error("_digest is not implemented")};wc.exports=Ot});var Qo=A((Kq,Mc)=>{"use strict";y();var ay=V(),xc=_c(),oy=Se().Buffer,sy=new Array(16);function Xo(){xc.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}ay(Xo,xc);Xo.prototype._update=function(){for(var r=sy,e=0;e<16;++e)r[e]=this._block.readInt32LE(e*4);var t=this._a,n=this._b,i=this._c,a=this._d;t=sr(t,n,i,a,r[0],3614090360,7),a=sr(a,t,n,i,r[1],3905402710,12),i=sr(i,a,t,n,r[2],606105819,17),n=sr(n,i,a,t,r[3],3250441966,22),t=sr(t,n,i,a,r[4],4118548399,7),a=sr(a,t,n,i,r[5],1200080426,12),i=sr(i,a,t,n,r[6],2821735955,17),n=sr(n,i,a,t,r[7],4249261313,22),t=sr(t,n,i,a,r[8],1770035416,7),a=sr(a,t,n,i,r[9],2336552879,12),i=sr(i,a,t,n,r[10],4294925233,17),n=sr(n,i,a,t,r[11],2304563134,22),t=sr(t,n,i,a,r[12],1804603682,7),a=sr(a,t,n,i,r[13],4254626195,12),i=sr(i,a,t,n,r[14],2792965006,17),n=sr(n,i,a,t,r[15],1236535329,22),t=fr(t,n,i,a,r[1],4129170786,5),a=fr(a,t,n,i,r[6],3225465664,9),i=fr(i,a,t,n,r[11],643717713,14),n=fr(n,i,a,t,r[0],3921069994,20),t=fr(t,n,i,a,r[5],3593408605,5),a=fr(a,t,n,i,r[10],38016083,9),i=fr(i,a,t,n,r[15],3634488961,14),n=fr(n,i,a,t,r[4],3889429448,20),t=fr(t,n,i,a,r[9],568446438,5),a=fr(a,t,n,i,r[14],3275163606,9),i=fr(i,a,t,n,r[3],4107603335,14),n=fr(n,i,a,t,r[8],1163531501,20),t=fr(t,n,i,a,r[13],2850285829,5),a=fr(a,t,n,i,r[2],4243563512,9),i=fr(i,a,t,n,r[7],1735328473,14),n=fr(n,i,a,t,r[12],2368359562,20),t=ur(t,n,i,a,r[5],4294588738,4),a=ur(a,t,n,i,r[8],2272392833,11),i=ur(i,a,t,n,r[11],1839030562,16),n=ur(n,i,a,t,r[14],4259657740,23),t=ur(t,n,i,a,r[1],2763975236,4),a=ur(a,t,n,i,r[4],1272893353,11),i=ur(i,a,t,n,r[7],4139469664,16),n=ur(n,i,a,t,r[10],3200236656,23),t=ur(t,n,i,a,r[13],681279174,4),a=ur(a,t,n,i,r[0],3936430074,11),i=ur(i,a,t,n,r[3],3572445317,16),n=ur(n,i,a,t,r[6],76029189,23),t=ur(t,n,i,a,r[9],3654602809,4),a=ur(a,t,n,i,r[12],3873151461,11),i=ur(i,a,t,n,r[15],530742520,16),n=ur(n,i,a,t,r[2],3299628645,23),t=lr(t,n,i,a,r[0],4096336452,6),a=lr(a,t,n,i,r[7],1126891415,10),i=lr(i,a,t,n,r[14],2878612391,15),n=lr(n,i,a,t,r[5],4237533241,21),t=lr(t,n,i,a,r[12],1700485571,6),a=lr(a,t,n,i,r[3],2399980690,10),i=lr(i,a,t,n,r[10],4293915773,15),n=lr(n,i,a,t,r[1],2240044497,21),t=lr(t,n,i,a,r[8],1873313359,6),a=lr(a,t,n,i,r[15],4264355552,10),i=lr(i,a,t,n,r[6],2734768916,15),n=lr(n,i,a,t,r[13],1309151649,21),t=lr(t,n,i,a,r[4],4149444226,6),a=lr(a,t,n,i,r[11],3174756917,10),i=lr(i,a,t,n,r[2],718787259,15),n=lr(n,i,a,t,r[9],3951481745,21),this._a=this._a+t|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+a|0};Xo.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 r=oy.allocUnsafe(16);return r.writeInt32LE(this._a,0),r.writeInt32LE(this._b,4),r.writeInt32LE(this._c,8),r.writeInt32LE(this._d,12),r};function Jo(r,e){return r<<e|r>>>32-e}function sr(r,e,t,n,i,a,s){return Jo(r+(e&t|~e&n)+i+a|0,s)+e|0}function fr(r,e,t,n,i,a,s){return Jo(r+(e&n|t&~n)+i+a|0,s)+e|0}function ur(r,e,t,n,i,a,s){return Jo(r+(e^t^n)+i+a|0,s)+e|0}function lr(r,e,t,n,i,a,s){return Jo(r+(t^(e|~n))+i+a|0,s)+e|0}Mc.exports=Xo});var Sc=A((Vq,Ec)=>{y();var fy={}.toString;Ec.exports=Array.isArray||function(r){return fy.call(r)=="[object Array]"}});var Ac=A(($q,Bc)=>{"use strict";y();var uy=ui(),ly=hi(),cy=ly("TypedArray.prototype.buffer",!0),hy=G2();Bc.exports=cy||function(e){if(!hy(e))throw new uy("Not a Typed Array");return e.buffer}});var da=A((Yq,kc)=>{"use strict";y();var jr=Se().Buffer,dy=Sc(),py=Ac(),vy=ArrayBuffer.isView||function(e){try{return py(e),!0}catch{return!1}},my=typeof Uint8Array<"u",qc=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",gy=qc&&(jr.prototype instanceof Uint8Array||jr.TYPED_ARRAY_SUPPORT);kc.exports=function(e,t){if(jr.isBuffer(e))return e.constructor&&!("isBuffer"in e)?jr.from(e):e;if(typeof e=="string")return jr.from(e,t);if(qc&&vy(e)){if(e.byteLength===0)return jr.alloc(0);if(gy){var n=jr.from(e.buffer,e.byteOffset,e.byteLength);if(n.byteLength===e.byteLength)return n}var i=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),a=jr.from(i);if(a.length===e.byteLength)return a}if(my&&e instanceof Uint8Array)return jr.from(e);var s=dy(e);if(s)for(var m=0;m<e.length;m+=1){var w=e[m];if(typeof w!="number"||w<0||w>255||~~w!==w)throw new RangeError("Array items must be numbers in the range 0-255.")}if(s||jr.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return jr.from(e);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}});var Cc=A((Jq,Tc)=>{"use strict";y();var by=Se().Buffer,yy=da(),Ic=typeof Uint8Array<"u",wy=Ic&&typeof ArrayBuffer<"u",Rc=wy&&ArrayBuffer.isView;Tc.exports=function(r,e){if(typeof r=="string"||by.isBuffer(r)||Ic&&r instanceof Uint8Array||Rc&&Rc(r))return yy(r,e);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}});var pa=A((ek,R0)=>{"use strict";y();typeof M.default>"u"||!M.default.version||M.default.version.indexOf("v0.")===0||M.default.version.indexOf("v1.")===0&&M.default.version.indexOf("v1.8.")!==0?R0.exports={nextTick:_y}:R0.exports=M.default;function _y(r,e,t,n){if(typeof r!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,a,s;switch(i){case 0:case 1:return M.default.nextTick(r);case 2:return M.default.nextTick(function(){r.call(null,e)});case 3:return M.default.nextTick(function(){r.call(null,e,t)});case 4:return M.default.nextTick(function(){r.call(null,e,t,n)});default:for(a=new Array(i-1),s=0;s<a.length;)a[s++]=arguments[s];return M.default.nextTick(function(){r.apply(null,a)})}}});var Oc=A((tk,jc)=>{y();var xy={}.toString;jc.exports=Array.isArray||function(r){return xy.call(r)=="[object Array]"}});var I0=A((nk,Dc)=>{y();Dc.exports=$i().EventEmitter});var r1=A((T0,Uc)=>{y();var e1=or(),pt=e1.Buffer;function Pc(r,e){for(var t in r)e[t]=r[t]}pt.from&&pt.alloc&&pt.allocUnsafe&&pt.allocUnsafeSlow?Uc.exports=e1:(Pc(e1,T0),T0.Buffer=cn);function cn(r,e,t){return pt(r,e,t)}Pc(pt,cn);cn.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return pt(r,e,t)};cn.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=pt(r);return e!==void 0?typeof t=="string"?n.fill(e,t):n.fill(e):n.fill(0),n};cn.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return pt(r)};cn.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return e1.SlowBuffer(r)}});var hn=A(cr=>{y();function My(r){return Array.isArray?Array.isArray(r):t1(r)==="[object Array]"}cr.isArray=My;function Ey(r){return typeof r=="boolean"}cr.isBoolean=Ey;function Sy(r){return r===null}cr.isNull=Sy;function By(r){return r==null}cr.isNullOrUndefined=By;function Ay(r){return typeof r=="number"}cr.isNumber=Ay;function qy(r){return typeof r=="string"}cr.isString=qy;function ky(r){return typeof r=="symbol"}cr.isSymbol=ky;function Ry(r){return r===void 0}cr.isUndefined=Ry;function Iy(r){return t1(r)==="[object RegExp]"}cr.isRegExp=Iy;function Ty(r){return typeof r=="object"&&r!==null}cr.isObject=Ty;function Cy(r){return t1(r)==="[object Date]"}cr.isDate=Cy;function jy(r){return t1(r)==="[object Error]"||r instanceof Error}cr.isError=jy;function Oy(r){return typeof r=="function"}cr.isFunction=Oy;function Dy(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}cr.isPrimitive=Dy;cr.isBuffer=or().Buffer.isBuffer;function t1(r){return Object.prototype.toString.call(r)}});var Nc=A((uk,C0)=>{"use strict";y();function Py(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var zc=r1().Buffer,va=aa();function Uy(r,e,t){r.copy(e,t)}C0.exports=(function(){function r(){Py(this,r),this.head=null,this.tail=null,this.length=0}return r.prototype.push=function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},r.prototype.unshift=function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},r.prototype.shift=function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},r.prototype.clear=function(){this.head=this.tail=null,this.length=0},r.prototype.join=function(t){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=t+n.data;return i},r.prototype.concat=function(t){if(this.length===0)return zc.alloc(0);for(var n=zc.allocUnsafe(t>>>0),i=this.head,a=0;i;)Uy(i.data,n,a),a+=i.data.length,i=i.next;return n},r})();va&&va.inspect&&va.inspect.custom&&(C0.exports.prototype[va.inspect.custom]=function(){var r=va.inspect({length:this.length});return this.constructor.name+" "+r})});var j0=A((ck,Fc)=>{"use strict";y();var i1=pa();function zy(r,e){var t=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i1.nextTick(n1,this,r)):i1.nextTick(n1,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(a){!e&&a?t._writableState?t._writableState.errorEmitted||(t._writableState.errorEmitted=!0,i1.nextTick(n1,t,a)):i1.nextTick(n1,t,a):e&&e(a)}),this)}function Ny(){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 n1(r,e){r.emit("error",e)}Fc.exports={destroy:zy,undestroy:Ny}});var D0=A((dk,Zc)=>{"use strict";y();var wi=pa();Zc.exports=$e;function Hc(r){var e=this;this.next=null,this.entry=null,this.finish=function(){nw(e,r)}}var Fy=!M.default.browser&&["v0.10","v0.9."].indexOf(M.default.version.slice(0,5))>-1?setImmediate:wi.nextTick,dn;$e.WritableState=ga;var Kc=Object.create(hn());Kc.inherits=V();var Ly={deprecate:o0()},Wc=I0(),o1=r1().Buffer,Hy=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Ky(r){return o1.from(r)}function Wy(r){return o1.isBuffer(r)||r instanceof Hy}var Vc=j0();Kc.inherits($e,Wc);function Vy(){}function ga(r,e){dn=dn||_i(),r=r||{};var t=e instanceof dn;this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode);var n=r.highWaterMark,i=r.writableHighWaterMark,a=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:t&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=r.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(m){Qy(e,m)},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 Hc(this)}ga.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(ga.prototype,"buffer",{get:Ly.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var a1;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(a1=Function.prototype[Symbol.hasInstance],Object.defineProperty($e,Symbol.hasInstance,{value:function(r){return a1.call(this,r)?!0:this!==$e?!1:r&&r._writableState instanceof ga}})):a1=function(r){return r instanceof this};function $e(r){if(dn=dn||_i(),!a1.call($e,this)&&!(this instanceof dn))return new $e(r);this._writableState=new ga(r,this),this.writable=!0,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),Wc.call(this)}$e.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Gy(r,e){var t=new Error("write after end");r.emit("error",t),wi.nextTick(e,t)}function $y(r,e,t,n){var i=!0,a=!1;return t===null?a=new TypeError("May not write null values to stream"):typeof t!="string"&&t!==void 0&&!e.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(r.emit("error",a),wi.nextTick(n,a),i=!1),i}$e.prototype.write=function(r,e,t){var n=this._writableState,i=!1,a=!n.objectMode&&Wy(r);return a&&!o1.isBuffer(r)&&(r=Ky(r)),typeof e=="function"&&(t=e,e=null),a?e="buffer":e||(e=n.defaultEncoding),typeof t!="function"&&(t=Vy),n.ended?Gy(this,t):(a||$y(this,n,r,t))&&(n.pendingcb++,i=Yy(this,n,a,r,e,t)),i};$e.prototype.cork=function(){var r=this._writableState;r.corked++};$e.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Gc(this,r))};$e.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function Zy(r,e,t){return!r.objectMode&&r.decodeStrings!==!1&&typeof e=="string"&&(e=o1.from(e,t)),e}Object.defineProperty($e.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Yy(r,e,t,n,i,a){if(!t){var s=Zy(e,n,i);n!==s&&(t=!0,i="buffer",n=s)}var m=e.objectMode?1:n.length;e.length+=m;var w=e.length<e.highWaterMark;if(w||(e.needDrain=!0),e.writing||e.corked){var E=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:t,callback:a,next:null},E?E.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else O0(r,e,!1,m,n,i,a);return w}function O0(r,e,t,n,i,a,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,t?r._writev(i,e.onwrite):r._write(i,a,e.onwrite),e.sync=!1}function Xy(r,e,t,n,i){--e.pendingcb,t?(wi.nextTick(i,n),wi.nextTick(ma,r,e),r._writableState.errorEmitted=!0,r.emit("error",n)):(i(n),r._writableState.errorEmitted=!0,r.emit("error",n),ma(r,e))}function Jy(r){r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0}function Qy(r,e){var t=r._writableState,n=t.sync,i=t.writecb;if(Jy(t),e)Xy(r,t,n,e,i);else{var a=$c(t);!a&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Gc(r,t),n?Fy(Lc,r,t,a,i):Lc(r,t,a,i)}}function Lc(r,e,t,n){t||ew(r,e),e.pendingcb--,n(),ma(r,e)}function ew(r,e){e.length===0&&e.needDrain&&(e.needDrain=!1,r.emit("drain"))}function Gc(r,e){e.bufferProcessing=!0;var t=e.bufferedRequest;if(r._writev&&t&&t.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=t;for(var s=0,m=!0;t;)i[s]=t,t.isBuf||(m=!1),t=t.next,s+=1;i.allBuffers=m,O0(r,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new Hc(e),e.bufferedRequestCount=0}else{for(;t;){var w=t.chunk,E=t.encoding,q=t.callback,k=e.objectMode?1:w.length;if(O0(r,e,!1,k,w,E,q),t=t.next,e.bufferedRequestCount--,e.writing)break}t===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=t,e.bufferProcessing=!1}$e.prototype._write=function(r,e,t){t(new Error("_write() is not implemented"))};$e.prototype._writev=null;$e.prototype.end=function(r,e,t){var n=this._writableState;typeof r=="function"?(t=r,r=null,e=null):typeof e=="function"&&(t=e,e=null),r!=null&&this.write(r,e),n.corked&&(n.corked=1,this.uncork()),n.ending||iw(this,n,t)};function $c(r){return r.ending&&r.length===0&&r.bufferedRequest===null&&!r.finished&&!r.writing}function rw(r,e){r._final(function(t){e.pendingcb--,t&&r.emit("error",t),e.prefinished=!0,r.emit("prefinish"),ma(r,e)})}function tw(r,e){!e.prefinished&&!e.finalCalled&&(typeof r._final=="function"?(e.pendingcb++,e.finalCalled=!0,wi.nextTick(rw,r,e)):(e.prefinished=!0,r.emit("prefinish")))}function ma(r,e){var t=$c(e);return t&&(tw(r,e),e.pendingcb===0&&(e.finished=!0,r.emit("finish"))),t}function iw(r,e,t){e.ending=!0,ma(r,e),t&&(e.finished?wi.nextTick(t):r.once("finish",t)),e.ended=!0,r.writable=!1}function nw(r,e,t){var n=r.entry;for(r.entry=null;n;){var i=n.callback;e.pendingcb--,i(t),n=n.next}e.corkedRequestsFree.next=r}Object.defineProperty($e.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(r){this._writableState&&(this._writableState.destroyed=r)}});$e.prototype.destroy=Vc.destroy;$e.prototype._undestroy=Vc.undestroy;$e.prototype._destroy=function(r,e){this.end(),e(r)}});var _i=A((vk,Qc)=>{"use strict";y();var Yc=pa(),aw=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};Qc.exports=vt;var Xc=Object.create(hn());Xc.inherits=V();var Jc=z0(),U0=D0();Xc.inherits(vt,Jc);for(P0=aw(U0.prototype),s1=0;s1<P0.length;s1++)f1=P0[s1],vt.prototype[f1]||(vt.prototype[f1]=U0.prototype[f1]);var P0,f1,s1;function vt(r){if(!(this instanceof vt))return new vt(r);Jc.call(this,r),U0.call(this,r),r&&r.readable===!1&&(this.readable=!1),r&&r.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,r&&r.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",ow)}Object.defineProperty(vt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ow(){this.allowHalfOpen||this._writableState.ended||Yc.nextTick(sw,this)}function sw(r){r.end()}Object.defineProperty(vt.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(r){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=r,this._writableState.destroyed=r)}});vt.prototype._destroy=function(r,e){this.push(null),this.end(),Yc.nextTick(e,r)}});var z0=A((bk,ch)=>{"use strict";y();var vn=pa();ch.exports=Le;var fw=Oc(),ba;Le.ReadableState=oh;var gk=$i().EventEmitter,ih=function(r,e){return r.listeners(e).length},K0=I0(),ya=r1().Buffer,uw=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function lw(r){return ya.from(r)}function cw(r){return ya.isBuffer(r)||r instanceof uw}var nh=Object.create(hn());nh.inherits=V();var N0=aa(),je=void 0;N0&&N0.debuglog?je=N0.debuglog("stream"):je=function(){};var hw=Nc(),ah=j0(),pn;nh.inherits(Le,K0);var F0=["error","close","destroy","pause","resume"];function dw(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):fw(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function oh(r,e){ba=ba||_i(),r=r||{};var t=e instanceof ba;this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode);var n=r.highWaterMark,i=r.readableHighWaterMark,a=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:t&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new hw,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(pn||(pn=fn().StringDecoder),this.decoder=new pn(r.encoding),this.encoding=r.encoding)}function Le(r){if(ba=ba||_i(),!(this instanceof Le))return new Le(r);this._readableState=new oh(r,this),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),K0.call(this)}Object.defineProperty(Le.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}});Le.prototype.destroy=ah.destroy;Le.prototype._undestroy=ah.undestroy;Le.prototype._destroy=function(r,e){this.push(null),e(r)};Le.prototype.push=function(r,e){var t=this._readableState,n;return t.objectMode?n=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=ya.from(r,e),e=""),n=!0),sh(this,r,e,!1,n)};Le.prototype.unshift=function(r){return sh(this,r,null,!0,!1)};function sh(r,e,t,n,i){var a=r._readableState;if(e===null)a.reading=!1,gw(r,a);else{var s;i||(s=pw(a,e)),s?r.emit("error",s):a.objectMode||e&&e.length>0?(typeof e!="string"&&!a.objectMode&&Object.getPrototypeOf(e)!==ya.prototype&&(e=lw(e)),n?a.endEmitted?r.emit("error",new Error("stream.unshift() after end event")):L0(r,a,e,!0):a.ended?r.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!t?(e=a.decoder.write(e),a.objectMode||e.length!==0?L0(r,a,e,!1):fh(r,a)):L0(r,a,e,!1))):n||(a.reading=!1)}return vw(a)}function L0(r,e,t,n){e.flowing&&e.length===0&&!e.sync?(r.emit("data",t),r.read(0)):(e.length+=e.objectMode?1:t.length,n?e.buffer.unshift(t):e.buffer.push(t),e.needReadable&&u1(r)),fh(r,e)}function pw(r,e){var t;return!cw(e)&&typeof e!="string"&&e!==void 0&&!r.objectMode&&(t=new TypeError("Invalid non-string/buffer chunk")),t}function vw(r){return!r.ended&&(r.needReadable||r.length<r.highWaterMark||r.length===0)}Le.prototype.isPaused=function(){return this._readableState.flowing===!1};Le.prototype.setEncoding=function(r){return pn||(pn=fn().StringDecoder),this._readableState.decoder=new pn(r),this._readableState.encoding=r,this};var eh=8388608;function mw(r){return r>=eh?r=eh:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function rh(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=mw(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}Le.prototype.read=function(r){je("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return je("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?H0(this):u1(this),null;if(r=rh(r,e),r===0&&e.ended)return e.length===0&&H0(this),null;var n=e.needReadable;je("need readable",n),(e.length===0||e.length-r<e.highWaterMark)&&(n=!0,je("length less than watermark",n)),e.ended||e.reading?(n=!1,je("reading or ended",n)):n&&(je("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(r=rh(t,e)));var i;return r>0?i=uh(r,e):i=null,i===null?(e.needReadable=!0,r=0):e.length-=r,e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&H0(this)),i!==null&&this.emit("data",i),i};function gw(r,e){if(!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,u1(r)}}function u1(r){var e=r._readableState;e.needReadable=!1,e.emittedReadable||(je("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?vn.nextTick(th,r):th(r))}function th(r){je("emit readable"),r.emit("readable"),W0(r)}function fh(r,e){e.readingMore||(e.readingMore=!0,vn.nextTick(bw,r,e))}function bw(r,e){for(var t=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(je("maybeReadMore read 0"),r.read(0),t!==e.length);)t=e.length;e.readingMore=!1}Le.prototype._read=function(r){this.emit("error",new Error("_read() is not implemented"))};Le.prototype.pipe=function(r,e){var t=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=r;break;case 1:n.pipes=[n.pipes,r];break;default:n.pipes.push(r);break}n.pipesCount+=1,je("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&r!==M.default.stdout&&r!==M.default.stderr,a=i?m:W;n.endEmitted?vn.nextTick(a):t.once("end",a),r.on("unpipe",s);function s(N,H){je("onunpipe"),N===t&&H&&H.hasUnpiped===!1&&(H.hasUnpiped=!0,q())}function m(){je("onend"),r.end()}var w=yw(t);r.on("drain",w);var E=!1;function q(){je("cleanup"),r.removeListener("close",D),r.removeListener("finish",z),r.removeListener("drain",w),r.removeListener("error",I),r.removeListener("unpipe",s),t.removeListener("end",m),t.removeListener("end",W),t.removeListener("data",R),E=!0,n.awaitDrain&&(!r._writableState||r._writableState.needDrain)&&w()}var k=!1;t.on("data",R);function R(N){je("ondata"),k=!1;var H=r.write(N);H===!1&&!k&&((n.pipesCount===1&&n.pipes===r||n.pipesCount>1&&lh(n.pipes,r)!==-1)&&!E&&(je("false write response, pause",n.awaitDrain),n.awaitDrain++,k=!0),t.pause())}function I(N){je("onerror",N),W(),r.removeListener("error",I),ih(r,"error")===0&&r.emit("error",N)}dw(r,"error",I);function D(){r.removeListener("finish",z),W()}r.once("close",D);function z(){je("onfinish"),r.removeListener("close",D),W()}r.once("finish",z);function W(){je("unpipe"),t.unpipe(r)}return r.emit("pipe",t),n.flowing||(je("pipe resume"),t.resume()),r};function yw(r){return function(){var e=r._readableState;je("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&ih(r,"data")&&(e.flowing=!0,W0(r))}}Le.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var s=lh(e.pipes,r);return s===-1?this:(e.pipes.splice(s,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),r.emit("unpipe",this,t),this)};Le.prototype.on=function(r,e){var t=K0.prototype.on.call(this,r,e);if(r==="data")this._readableState.flowing!==!1&&this.resume();else if(r==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&u1(this):vn.nextTick(ww,this))}return t};Le.prototype.addListener=Le.prototype.on;function ww(r){je("readable nexttick read 0"),r.read(0)}Le.prototype.resume=function(){var r=this._readableState;return r.flowing||(je("resume"),r.flowing=!0,_w(this,r)),this};function _w(r,e){e.resumeScheduled||(e.resumeScheduled=!0,vn.nextTick(xw,r,e))}function xw(r,e){e.reading||(je("resume read 0"),r.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,r.emit("resume"),W0(r),e.flowing&&!e.reading&&r.read(0)}Le.prototype.pause=function(){return je("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(je("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function W0(r){var e=r._readableState;for(je("flow",e.flowing);e.flowing&&r.read()!==null;);}Le.prototype.wrap=function(r){var e=this,t=this._readableState,n=!1;r.on("end",function(){if(je("wrapped end"),t.decoder&&!t.ended){var s=t.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),r.on("data",function(s){if(je("wrapped data"),t.decoder&&(s=t.decoder.write(s)),!(t.objectMode&&s==null)&&!(!t.objectMode&&(!s||!s.length))){var m=e.push(s);m||(n=!0,r.pause())}});for(var i in r)this[i]===void 0&&typeof r[i]=="function"&&(this[i]=(function(s){return function(){return r[s].apply(r,arguments)}})(i));for(var a=0;a<F0.length;a++)r.on(F0[a],this.emit.bind(this,F0[a]));return this._read=function(s){je("wrapped _read",s),n&&(n=!1,r.resume())},this};Object.defineProperty(Le.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Le._fromList=uh;function uh(r,e){if(e.length===0)return null;var t;return e.objectMode?t=e.buffer.shift():!r||r>=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.head.data:t=e.buffer.concat(e.length),e.buffer.clear()):t=Mw(r,e.buffer,e.decoder),t}function Mw(r,e,t){var n;return r<e.head.data.length?(n=e.head.data.slice(0,r),e.head.data=e.head.data.slice(r)):r===e.head.data.length?n=e.shift():n=t?Ew(r,e):Sw(r,e),n}function Ew(r,e){var t=e.head,n=1,i=t.data;for(r-=i.length;t=t.next;){var a=t.data,s=r>a.length?a.length:r;if(s===a.length?i+=a:i+=a.slice(0,r),r-=s,r===0){s===a.length?(++n,t.next?e.head=t.next:e.head=e.tail=null):(e.head=t,t.data=a.slice(s));break}++n}return e.length-=n,i}function Sw(r,e){var t=ya.allocUnsafe(r),n=e.head,i=1;for(n.data.copy(t),r-=n.data.length;n=n.next;){var a=n.data,s=r>a.length?a.length:r;if(a.copy(t,t.length-r,0,s),r-=s,r===0){s===a.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=a.slice(s));break}++i}return e.length-=i,t}function H0(r){var e=r._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,vn.nextTick(Bw,e,r))}function Bw(r,e){!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"))}function lh(r,e){for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}});var V0=A((wk,ph)=>{"use strict";y();ph.exports=mt;var l1=_i(),dh=Object.create(hn());dh.inherits=V();dh.inherits(mt,l1);function Aw(r,e){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));t.writechunk=null,t.writecb=null,e!=null&&this.push(e),n(r);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function mt(r){if(!(this instanceof mt))return new mt(r);l1.call(this,r),this._transformState={afterTransform:Aw.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",qw)}function qw(){var r=this;typeof this._flush=="function"?this._flush(function(e,t){hh(r,e,t)}):hh(this,null,null)}mt.prototype.push=function(r,e){return this._transformState.needTransform=!1,l1.prototype.push.call(this,r,e)};mt.prototype._transform=function(r,e,t){throw new Error("_transform() is not implemented")};mt.prototype._write=function(r,e,t){var n=this._transformState;if(n.writecb=t,n.writechunk=r,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};mt.prototype._read=function(r){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};mt.prototype._destroy=function(r,e){var t=this;l1.prototype._destroy.call(this,r,function(n){e(n),t.emit("close")})};function hh(r,e,t){if(e)return r.emit("error",e);if(t!=null&&r.push(t),r._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(r._transformState.transforming)throw new Error("Calling transform done when still transforming");return r.push(null)}});var bh=A((xk,gh)=>{"use strict";y();gh.exports=wa;var vh=V0(),mh=Object.create(hn());mh.inherits=V();mh.inherits(wa,vh);function wa(r){if(!(this instanceof wa))return new wa(r);vh.call(this,r)}wa.prototype._transform=function(r,e,t){t(null,r)}});var wh=A((tt,yh)=>{y();tt=yh.exports=z0();tt.Stream=tt;tt.Readable=tt;tt.Writable=D0();tt.Duplex=_i();tt.Transform=V0();tt.PassThrough=bh()});var Mh=A((Sk,xh)=>{"use strict";y();var kw=Se().Buffer,Rw=Cc(),_h=wh().Transform,Iw=V();function Dt(r){_h.call(this),this._block=kw.allocUnsafe(r),this._blockSize=r,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Iw(Dt,_h);Dt.prototype._transform=function(r,e,t){var n=null;try{this.update(r,e)}catch(i){n=i}t(n)};Dt.prototype._flush=function(r){var e=null;try{this.push(this.digest())}catch(t){e=t}r(e)};Dt.prototype.update=function(r,e){if(this._finalized)throw new Error("Digest already called");for(var t=Rw(r,e),n=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a]=t[i],a+=1,i+=1;this._update(),this._blockOffset=0}for(;i<t.length;)n[this._blockOffset]=t[i],this._blockOffset+=1,i+=1;for(var s=0,m=t.length*8;m>0;++s)this._length[s]+=m,m=this._length[s]/4294967296|0,m>0&&(this._length[s]-=4294967296*m);return this};Dt.prototype._update=function(){throw new Error("_update is not implemented")};Dt.prototype.digest=function(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();r!==void 0&&(e=e.toString(r)),this._block.fill(0),this._blockOffset=0;for(var t=0;t<4;++t)this._length[t]=0;return e};Dt.prototype._digest=function(){throw new Error("_digest is not implemented")};xh.exports=Dt});var h1=A((Ak,Rh)=>{"use strict";y();var G0=or().Buffer,Tw=V(),kh=Mh(),Cw=new Array(16),_a=[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],xa=[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],Ma=[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],Ea=[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],Sa=[0,1518500249,1859775393,2400959708,2840853838],Ba=[1352829926,1548603684,1836072691,2053994217,0];function xi(r,e){return r<<e|r>>>32-e}function Eh(r,e,t,n,i,a,s,m){return xi(r+(e^t^n)+a+s|0,m)+i|0}function Sh(r,e,t,n,i,a,s,m){return xi(r+(e&t|~e&n)+a+s|0,m)+i|0}function Bh(r,e,t,n,i,a,s,m){return xi(r+((e|~t)^n)+a+s|0,m)+i|0}function Ah(r,e,t,n,i,a,s,m){return xi(r+(e&n|t&~n)+a+s|0,m)+i|0}function qh(r,e,t,n,i,a,s,m){return xi(r+(e^(t|~n))+a+s|0,m)+i|0}function c1(){kh.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}Tw(c1,kh);c1.prototype._update=function(){for(var r=Cw,e=0;e<16;++e)r[e]=this._block.readInt32LE(e*4);for(var t=this._a|0,n=this._b|0,i=this._c|0,a=this._d|0,s=this._e|0,m=this._a|0,w=this._b|0,E=this._c|0,q=this._d|0,k=this._e|0,R=0;R<80;R+=1){var I,D;R<16?(I=Eh(t,n,i,a,s,r[_a[R]],Sa[0],Ma[R]),D=qh(m,w,E,q,k,r[xa[R]],Ba[0],Ea[R])):R<32?(I=Sh(t,n,i,a,s,r[_a[R]],Sa[1],Ma[R]),D=Ah(m,w,E,q,k,r[xa[R]],Ba[1],Ea[R])):R<48?(I=Bh(t,n,i,a,s,r[_a[R]],Sa[2],Ma[R]),D=Bh(m,w,E,q,k,r[xa[R]],Ba[2],Ea[R])):R<64?(I=Ah(t,n,i,a,s,r[_a[R]],Sa[3],Ma[R]),D=Sh(m,w,E,q,k,r[xa[R]],Ba[3],Ea[R])):(I=qh(t,n,i,a,s,r[_a[R]],Sa[4],Ma[R]),D=Eh(m,w,E,q,k,r[xa[R]],Ba[4],Ea[R])),t=s,s=a,a=xi(i,10),i=n,n=I,m=k,k=q,q=xi(E,10),E=w,w=D}var z=this._b+i+q|0;this._b=this._c+a+k|0,this._c=this._d+s+m|0,this._d=this._e+t+w|0,this._e=this._a+n+E|0,this._a=z};c1.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var r=G0.alloc?G0.alloc(20):new G0(20);return r.writeInt32LE(this._a,0),r.writeInt32LE(this._b,4),r.writeInt32LE(this._c,8),r.writeInt32LE(this._d,12),r.writeInt32LE(this._e,16),r};Rh.exports=c1});var Mi=A((kk,Ih)=>{"use strict";y();var jw=Se().Buffer,Ow=da();function d1(r,e){this._block=jw.alloc(r),this._finalSize=e,this._blockSize=r,this._len=0}d1.prototype.update=function(r,e){r=Ow(r,e||"utf8");for(var t=this._block,n=this._blockSize,i=r.length,a=this._len,s=0;s<i;){for(var m=a%n,w=Math.min(i-s,n-m),E=0;E<w;E++)t[m+E]=r[s+E];a+=w,s+=w,a%n===0&&this._update(t)}return this._len+=i,this};d1.prototype.digest=function(r){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var t=this._len*8;if(t<=4294967295)this._block.writeUInt32BE(t,this._blockSize-4);else{var n=(t&4294967295)>>>0,i=(t-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var a=this._hash();return r?a.toString(r):a};d1.prototype._update=function(){throw new Error("_update must be implemented by subclass")};Ih.exports=d1});var jh=A((Ik,Ch)=>{"use strict";y();var Dw=V(),Th=Mi(),Pw=Se().Buffer,Uw=[1518500249,1859775393,-1894007588,-899497514],zw=new Array(80);function Aa(){this.init(),this._w=zw,Th.call(this,64,56)}Dw(Aa,Th);Aa.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Nw(r){return r<<5|r>>>27}function Fw(r){return r<<30|r>>>2}function Lw(r,e,t,n){return r===0?e&t|~e&n:r===2?e&t|e&n|t&n:e^t^n}Aa.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,i=this._c|0,a=this._d|0,s=this._e|0,m=0;m<16;++m)e[m]=r.readInt32BE(m*4);for(;m<80;++m)e[m]=e[m-3]^e[m-8]^e[m-14]^e[m-16];for(var w=0;w<80;++w){var E=~~(w/20),q=Nw(t)+Lw(E,n,i,a)+s+e[w]+Uw[E]|0;s=a,a=i,i=Fw(n),n=t,t=q}this._a=t+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0};Aa.prototype._hash=function(){var r=Pw.allocUnsafe(20);return r.writeInt32BE(this._a|0,0),r.writeInt32BE(this._b|0,4),r.writeInt32BE(this._c|0,8),r.writeInt32BE(this._d|0,12),r.writeInt32BE(this._e|0,16),r};Ch.exports=Aa});var Ph=A((Ck,Dh)=>{"use strict";y();var Hw=V(),Oh=Mi(),Kw=Se().Buffer,Ww=[1518500249,1859775393,-1894007588,-899497514],Vw=new Array(80);function qa(){this.init(),this._w=Vw,Oh.call(this,64,56)}Hw(qa,Oh);qa.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Gw(r){return r<<1|r>>>31}function $w(r){return r<<5|r>>>27}function Zw(r){return r<<30|r>>>2}function Yw(r,e,t,n){return r===0?e&t|~e&n:r===2?e&t|e&n|t&n:e^t^n}qa.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,i=this._c|0,a=this._d|0,s=this._e|0,m=0;m<16;++m)e[m]=r.readInt32BE(m*4);for(;m<80;++m)e[m]=Gw(e[m-3]^e[m-8]^e[m-14]^e[m-16]);for(var w=0;w<80;++w){var E=~~(w/20),q=$w(t)+Yw(E,n,i,a)+s+e[w]+Ww[E]|0;s=a,a=i,i=Zw(n),n=t,t=q}this._a=t+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0};qa.prototype._hash=function(){var r=Kw.allocUnsafe(20);return r.writeInt32BE(this._a|0,0),r.writeInt32BE(this._b|0,4),r.writeInt32BE(this._c|0,8),r.writeInt32BE(this._d|0,12),r.writeInt32BE(this._e|0,16),r};Dh.exports=qa});var $0=A((Ok,zh)=>{"use strict";y();var Xw=V(),Uh=Mi(),Jw=Se().Buffer,Qw=[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],e_=new Array(64);function ka(){this.init(),this._w=e_,Uh.call(this,64,56)}Xw(ka,Uh);ka.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 r_(r,e,t){return t^r&(e^t)}function t_(r,e,t){return r&e|t&(r|e)}function i_(r){return(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10)}function n_(r){return(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7)}function a_(r){return(r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3}function o_(r){return(r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10}ka.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,i=this._c|0,a=this._d|0,s=this._e|0,m=this._f|0,w=this._g|0,E=this._h|0,q=0;q<16;++q)e[q]=r.readInt32BE(q*4);for(;q<64;++q)e[q]=o_(e[q-2])+e[q-7]+a_(e[q-15])+e[q-16]|0;for(var k=0;k<64;++k){var R=E+n_(s)+r_(s,m,w)+Qw[k]+e[k]|0,I=i_(t)+t_(t,n,i)|0;E=w,w=m,m=s,s=a+R|0,a=i,i=n,n=t,t=R+I|0}this._a=t+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0,this._f=m+this._f|0,this._g=w+this._g|0,this._h=E+this._h|0};ka.prototype._hash=function(){var r=Jw.allocUnsafe(32);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r.writeInt32BE(this._h,28),r};zh.exports=ka});var Fh=A((Pk,Nh)=>{"use strict";y();var s_=V(),f_=$0(),u_=Mi(),l_=Se().Buffer,c_=new Array(64);function p1(){this.init(),this._w=c_,u_.call(this,64,56)}s_(p1,f_);p1.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};p1.prototype._hash=function(){var r=l_.allocUnsafe(28);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r};Nh.exports=p1});var Z0=A((zk,$h)=>{"use strict";y();var h_=V(),Gh=Mi(),d_=Se().Buffer,Lh=[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],p_=new Array(160);function Ra(){this.init(),this._w=p_,Gh.call(this,128,112)}h_(Ra,Gh);Ra.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 Hh(r,e,t){return t^r&(e^t)}function Kh(r,e,t){return r&e|t&(r|e)}function Wh(r,e){return(r>>>28|e<<4)^(e>>>2|r<<30)^(e>>>7|r<<25)}function Vh(r,e){return(r>>>14|e<<18)^(r>>>18|e<<14)^(e>>>9|r<<23)}function v_(r,e){return(r>>>1|e<<31)^(r>>>8|e<<24)^r>>>7}function m_(r,e){return(r>>>1|e<<31)^(r>>>8|e<<24)^(r>>>7|e<<25)}function g_(r,e){return(r>>>19|e<<13)^(e>>>29|r<<3)^r>>>6}function b_(r,e){return(r>>>19|e<<13)^(e>>>29|r<<3)^(r>>>6|e<<26)}function tr(r,e){return r>>>0<e>>>0?1:0}Ra.prototype._update=function(r){for(var e=this._w,t=this._ah|0,n=this._bh|0,i=this._ch|0,a=this._dh|0,s=this._eh|0,m=this._fh|0,w=this._gh|0,E=this._hh|0,q=this._al|0,k=this._bl|0,R=this._cl|0,I=this._dl|0,D=this._el|0,z=this._fl|0,W=this._gl|0,N=this._hl|0,H=0;H<32;H+=2)e[H]=r.readInt32BE(H*4),e[H+1]=r.readInt32BE(H*4+4);for(;H<160;H+=2){var ze=e[H-30],Oe=e[H-30+1],ar=v_(ze,Oe),De=m_(Oe,ze);ze=e[H-4],Oe=e[H-4+1];var We=g_(ze,Oe),Ae=b_(Oe,ze),Je=e[H-14],B=e[H-14+1],l=e[H-32],b=e[H-32+1],d=De+B|0,o=ar+Je+tr(d,De)|0;d=d+Ae|0,o=o+We+tr(d,Ae)|0,d=d+b|0,o=o+l+tr(d,b)|0,e[H]=o,e[H+1]=d}for(var u=0;u<160;u+=2){o=e[u],d=e[u+1];var p=Kh(t,n,i),v=Kh(q,k,R),c=Wh(t,q),f=Wh(q,t),g=Vh(s,D),_=Vh(D,s),h=Lh[u],x=Lh[u+1],C=Hh(s,m,w),j=Hh(D,z,W),O=N+_|0,U=E+g+tr(O,N)|0;O=O+j|0,U=U+C+tr(O,j)|0,O=O+x|0,U=U+h+tr(O,x)|0,O=O+d|0,U=U+o+tr(O,d)|0;var P=f+v|0,F=c+p+tr(P,f)|0;E=w,N=W,w=m,W=z,m=s,z=D,D=I+O|0,s=a+U+tr(D,I)|0,a=i,I=R,i=n,R=k,n=t,k=q,q=O+P|0,t=U+F+tr(q,O)|0}this._al=this._al+q|0,this._bl=this._bl+k|0,this._cl=this._cl+R|0,this._dl=this._dl+I|0,this._el=this._el+D|0,this._fl=this._fl+z|0,this._gl=this._gl+W|0,this._hl=this._hl+N|0,this._ah=this._ah+t+tr(this._al,q)|0,this._bh=this._bh+n+tr(this._bl,k)|0,this._ch=this._ch+i+tr(this._cl,R)|0,this._dh=this._dh+a+tr(this._dl,I)|0,this._eh=this._eh+s+tr(this._el,D)|0,this._fh=this._fh+m+tr(this._fl,z)|0,this._gh=this._gh+w+tr(this._gl,W)|0,this._hh=this._hh+E+tr(this._hl,N)|0};Ra.prototype._hash=function(){var r=d_.allocUnsafe(64);function e(t,n,i){r.writeInt32BE(t,i),r.writeInt32BE(n,i+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),r};$h.exports=Ra});var Yh=A((Fk,Zh)=>{"use strict";y();var y_=V(),w_=Z0(),__=Mi(),x_=Se().Buffer,M_=new Array(160);function v1(){this.init(),this._w=M_,__.call(this,128,112)}y_(v1,w_);v1.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};v1.prototype._hash=function(){var r=x_.allocUnsafe(48);function e(t,n,i){r.writeInt32BE(t,i),r.writeInt32BE(n,i+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),r};Zh.exports=v1});var m1=A((Hk,gt)=>{"use strict";y();gt.exports=function(e){var t=e.toLowerCase(),n=gt.exports[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n};gt.exports.sha=jh();gt.exports.sha1=Ph();gt.exports.sha224=Fh();gt.exports.sha256=$0();gt.exports.sha384=Yh();gt.exports.sha512=Z0()});var bt=A((Wk,Jh)=>{"use strict";y();var E_=Se().Buffer,Xh=k0().Transform,S_=fn().StringDecoder,B_=V(),A_=da();function Or(r){Xh.call(this),this.hashMode=typeof r=="string",this.hashMode?this[r]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}B_(Or,Xh);Or.prototype.update=function(r,e,t){var n=A_(r,e),i=this._update(n);return this.hashMode?this:(t&&(i=this._toString(i,t)),i)};Or.prototype.setAutoPadding=function(){};Or.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};Or.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};Or.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};Or.prototype._transform=function(r,e,t){var n;try{this.hashMode?this._update(r):this.push(this._update(r))}catch(i){n=i}finally{t(n)}};Or.prototype._flush=function(r){var e;try{this.push(this.__final())}catch(t){e=t}r(e)};Or.prototype._finalOrDigest=function(r){var e=this.__final()||E_.alloc(0);return r&&(e=this._toString(e,r,!0)),e};Or.prototype._toString=function(r,e,t){if(this._decoder||(this._decoder=new S_(e),this._encoding=e),this._encoding!==e)throw new Error("can\u2019t switch encodings");var n=this._decoder.write(r);return t&&(n+=this._decoder.end()),n};Jh.exports=Or});var Ia=A((Gk,e7)=>{"use strict";y();var q_=V(),k_=Qo(),R_=h1(),I_=m1(),Qh=bt();function g1(r){Qh.call(this,"digest"),this._hash=r}q_(g1,Qh);g1.prototype._update=function(r){this._hash.update(r)};g1.prototype._final=function(){return this._hash.digest()};e7.exports=function(e){return e=e.toLowerCase(),e==="md5"?new k_:e==="rmd160"||e==="ripemd160"?new R_:new g1(I_(e))}});var i7=A((Zk,t7)=>{"use strict";y();var T_=V(),Ei=Se().Buffer,r7=bt(),C_=Ei.alloc(128),mn=64;function b1(r,e){r7.call(this,"digest"),typeof e=="string"&&(e=Ei.from(e)),this._alg=r,this._key=e,e.length>mn?e=r(e):e.length<mn&&(e=Ei.concat([e,C_],mn));for(var t=this._ipad=Ei.allocUnsafe(mn),n=this._opad=Ei.allocUnsafe(mn),i=0;i<mn;i++)t[i]=e[i]^54,n[i]=e[i]^92;this._hash=[t]}T_(b1,r7);b1.prototype._update=function(r){this._hash.push(r)};b1.prototype._final=function(){var r=this._alg(Ei.concat(this._hash));return this._alg(Ei.concat([this._opad,r]))};t7.exports=b1});var Y0=A((Xk,n7)=>{y();var j_=Qo();n7.exports=function(r){return new j_().update(r).digest()}});var s7=A((Qk,o7)=>{"use strict";y();var O_=V(),D_=i7(),a7=bt(),Ta=Se().Buffer,P_=Y0(),X0=h1(),J0=m1(),U_=Ta.alloc(128);function Ca(r,e){a7.call(this,"digest"),typeof e=="string"&&(e=Ta.from(e));var t=r==="sha512"||r==="sha384"?128:64;if(this._alg=r,this._key=e,e.length>t){var n=r==="rmd160"?new X0:J0(r);e=n.update(e).digest()}else e.length<t&&(e=Ta.concat([e,U_],t));for(var i=this._ipad=Ta.allocUnsafe(t),a=this._opad=Ta.allocUnsafe(t),s=0;s<t;s++)i[s]=e[s]^54,a[s]=e[s]^92;this._hash=r==="rmd160"?new X0:J0(r),this._hash.update(i)}O_(Ca,a7);Ca.prototype._update=function(r){this._hash.update(r)};Ca.prototype._final=function(){var r=this._hash.digest(),e=this._alg==="rmd160"?new X0:J0(this._alg);return e.update(this._opad).update(r).digest()};o7.exports=function(e,t){return e=e.toLowerCase(),e==="rmd160"||e==="ripemd160"?new Ca("rmd160",t):e==="md5"?new D_(P_,t):new Ca(e,t)}});var y1=A((rR,f7)=>{"use strict";y();f7.exports={}});var Q0=A((iR,u7)=>{"use strict";y();var z_=isFinite,N_=Math.pow(2,30)-1;u7.exports=function(r,e){if(typeof r!="number")throw new TypeError("Iterations not a number");if(r<0||!z_(r))throw new TypeError("Bad iterations");if(typeof e!="number")throw new TypeError("Key length not a number");if(e<0||e>N_||e!==e)throw new TypeError("Bad key length")}});var e6=A((aR,c7)=>{"use strict";y();var w1;globalThis.process&&globalThis.process.browser?w1="utf-8":globalThis.process&&globalThis.process.version?(l7=parseInt(M.default.version.split(".")[0].slice(1),10),w1=l7>=6?"utf-8":"binary"):w1="utf-8";var l7;c7.exports=w1});var r6=A((sR,p7)=>{"use strict";y();var F_=Se().Buffer,L_=da(),d7=typeof Uint8Array<"u",H_=d7&&typeof ArrayBuffer<"u",h7=H_&&ArrayBuffer.isView;p7.exports=function(r,e,t){if(typeof r=="string"||F_.isBuffer(r)||d7&&r instanceof Uint8Array||h7&&h7(r))return L_(r,e);throw new TypeError(t+" must be a string, a Buffer, a Uint8Array, or a DataView")}});var t6=A((uR,b7)=>{"use strict";y();var K_=Y0(),W_=h1(),V_=m1(),Si=Se().Buffer,G_=Q0(),v7=e6(),m7=r6(),$_=Si.alloc(128),_1={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},Z_={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function Y_(r){return new W_().update(r).digest()}function X_(r){function e(t){return V_(r).update(t).digest()}return r==="rmd160"||r==="ripemd160"?Y_:r==="md5"?K_:e}function g7(r,e,t){var n=X_(r),i=r==="sha512"||r==="sha384"?128:64;e.length>i?e=n(e):e.length<i&&(e=Si.concat([e,$_],i));for(var a=Si.allocUnsafe(i+_1[r]),s=Si.allocUnsafe(i+_1[r]),m=0;m<i;m++)a[m]=e[m]^54,s[m]=e[m]^92;var w=Si.allocUnsafe(i+t+4);a.copy(w,0,0,i),this.ipad1=w,this.ipad2=a,this.opad=s,this.alg=r,this.blocksize=i,this.hash=n,this.size=_1[r]}g7.prototype.run=function(r,e){r.copy(e,this.blocksize);var t=this.hash(e);return t.copy(this.opad,this.blocksize),this.hash(this.opad)};function J_(r,e,t,n,i){G_(t,n),r=m7(r,v7,"Password"),e=m7(e,v7,"Salt");var a=(i||"sha1").toLowerCase(),s=Z_[a]||a,m=_1[s];if(typeof m!="number"||!m)throw new TypeError("Digest algorithm not supported: "+i);var w=new g7(s,r,e.length),E=Si.allocUnsafe(n),q=Si.allocUnsafe(e.length+4);e.copy(q,0,0,e.length);for(var k=0,R=m,I=Math.ceil(n/R),D=1;D<=I;D++){q.writeUInt32BE(D,e.length);for(var z=w.run(q,w.ipad1),W=z,N=1;N<t;N++){W=w.run(W,w.ipad2);for(var H=0;H<R;H++)z[H]^=W[H]}z.copy(E,k),k+=R}return E}b7.exports=J_});var S7=A((cR,E7)=>{"use strict";y();var x7=Se().Buffer,Q_=Q0(),y7=e6(),w7=t6(),_7=r6(),x1,ja=globalThis.crypto&&globalThis.crypto.subtle,ex={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},i6=[],Bi;function n6(){return Bi||(globalThis.process&&globalThis.process.nextTick?Bi=globalThis.process.nextTick:globalThis.queueMicrotask?Bi=globalThis.queueMicrotask:globalThis.setImmediate?Bi=globalThis.setImmediate:Bi=globalThis.setTimeout,Bi)}function M7(r,e,t,n,i){return ja.importKey("raw",r,{name:"PBKDF2"},!1,["deriveBits"]).then(function(a){return ja.deriveBits({name:"PBKDF2",salt:e,iterations:t,hash:{name:i}},a,n<<3)}).then(function(a){return x7.from(a)})}function rx(r){if(globalThis.process&&!globalThis.process.browser||!ja||!ja.importKey||!ja.deriveBits)return Promise.resolve(!1);if(i6[r]!==void 0)return i6[r];x1=x1||x7.alloc(8);var e=M7(x1,x1,10,128,r).then(function(){return!0},function(){return!1});return i6[r]=e,e}function tx(r,e){r.then(function(t){n6()(function(){e(null,t)})},function(t){n6()(function(){e(t)})})}E7.exports=function(r,e,t,n,i,a){if(typeof i=="function"&&(a=i,i=void 0),Q_(t,n),r=_7(r,y7,"Password"),e=_7(e,y7,"Salt"),typeof a!="function")throw new Error("No callback provided to pbkdf2");i=i||"sha1";var s=ex[i.toLowerCase()];if(!s||typeof globalThis.Promise!="function"){n6()(function(){var m;try{m=w7(r,e,t,n,i)}catch(w){a(w);return}a(null,m)});return}tx(rx(s).then(function(m){return m?M7(r,e,t,n,s):w7(r,e,t,n,i)}),a)}});var o6=A(a6=>{"use strict";y();a6.pbkdf2=S7();a6.pbkdf2Sync=t6()});var s6=A(xr=>{"use strict";y();xr.readUInt32BE=function(e,t){var n=e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t];return n>>>0};xr.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=t&255};xr.ip=function(e,t,n,i){for(var a=0,s=0,m=6;m>=0;m-=2){for(var w=0;w<=24;w+=8)a<<=1,a|=t>>>w+m&1;for(var w=0;w<=24;w+=8)a<<=1,a|=e>>>w+m&1}for(var m=6;m>=0;m-=2){for(var w=1;w<=25;w+=8)s<<=1,s|=t>>>w+m&1;for(var w=1;w<=25;w+=8)s<<=1,s|=e>>>w+m&1}n[i+0]=a>>>0,n[i+1]=s>>>0};xr.rip=function(e,t,n,i){for(var a=0,s=0,m=0;m<4;m++)for(var w=24;w>=0;w-=8)a<<=1,a|=t>>>w+m&1,a<<=1,a|=e>>>w+m&1;for(var m=4;m<8;m++)for(var w=24;w>=0;w-=8)s<<=1,s|=t>>>w+m&1,s<<=1,s|=e>>>w+m&1;n[i+0]=a>>>0,n[i+1]=s>>>0};xr.pc1=function(e,t,n,i){for(var a=0,s=0,m=7;m>=5;m--){for(var w=0;w<=24;w+=8)a<<=1,a|=t>>w+m&1;for(var w=0;w<=24;w+=8)a<<=1,a|=e>>w+m&1}for(var w=0;w<=24;w+=8)a<<=1,a|=t>>w+m&1;for(var m=1;m<=3;m++){for(var w=0;w<=24;w+=8)s<<=1,s|=t>>w+m&1;for(var w=0;w<=24;w+=8)s<<=1,s|=e>>w+m&1}for(var w=0;w<=24;w+=8)s<<=1,s|=e>>w+m&1;n[i+0]=a>>>0,n[i+1]=s>>>0};xr.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var M1=[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];xr.pc2=function(e,t,n,i){for(var a=0,s=0,m=M1.length>>>1,w=0;w<m;w++)a<<=1,a|=e>>>M1[w]&1;for(var w=m;w<M1.length;w++)s<<=1,s|=t>>>M1[w]&1;n[i+0]=a>>>0,n[i+1]=s>>>0};xr.expand=function(e,t,n){var i=0,a=0;i=(e&1)<<5|e>>>27;for(var s=23;s>=15;s-=4)i<<=6,i|=e>>>s&63;for(var s=11;s>=3;s-=4)a|=e>>>s&63,a<<=6;a|=(e&31)<<1|e>>>31,t[n+0]=i>>>0,t[n+1]=a>>>0};var B7=[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];xr.substitute=function(e,t){for(var n=0,i=0;i<4;i++){var a=e>>>18-i*6&63,s=B7[i*64+a];n<<=4,n|=s}for(var i=0;i<4;i++){var a=t>>>18-i*6&63,s=B7[256+i*64+a];n<<=4,n|=s}return n>>>0};var A7=[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];xr.permute=function(e){for(var t=0,n=0;n<A7.length;n++)t<<=1,t|=e>>>A7[n]&1;return t>>>0};xr.padSplit=function(e,t,n){for(var i=e.toString(2);i.length<t;)i="0"+i;for(var a=[],s=0;s<t;s+=n)a.push(i.slice(s,s+n));return a.join(" ")}});var E1=A((gR,q7)=>{"use strict";y();var ix=kr();function Mr(r){this.options=r,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=r.padding!==!1}q7.exports=Mr;Mr.prototype._init=function(){};Mr.prototype.update=function(e){return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e)};Mr.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),i=0;i<n;i++)this.buffer[this.bufferOff+i]=e[t+i];return this.bufferOff+=n,n};Mr.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize};Mr.prototype._updateEncrypt=function(e){var t=0,n=0,i=(this.bufferOff+e.length)/this.blockSize|0,a=new Array(i*this.blockSize);this.bufferOff!==0&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(a,n)));for(var s=e.length-(e.length-t)%this.blockSize;t<s;t+=this.blockSize)this._update(e,t,a,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return a};Mr.prototype._updateDecrypt=function(e){for(var t=0,n=0,i=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,a=new Array(i*this.blockSize);i>0;i--)t+=this._buffer(e,t),n+=this._flushBuffer(a,n);return t+=this._buffer(e,t),a};Mr.prototype.final=function(e){var t;e&&(t=this.update(e));var n;return this.type==="encrypt"?n=this._finalEncrypt():n=this._finalDecrypt(),t?t.concat(n):n};Mr.prototype._pad=function(e,t){if(t===0)return!1;for(;t<e.length;)e[t++]=0;return!0};Mr.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e};Mr.prototype._unpad=function(e){return e};Mr.prototype._finalDecrypt=function(){ix.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}});var f6=A((yR,I7)=>{"use strict";y();var k7=kr(),nx=V(),Qe=s6(),R7=E1();function ax(){this.tmp=new Array(2),this.keys=null}function it(r){R7.call(this,r);var e=new ax;this._desState=e,this.deriveKeys(e,r.key)}nx(it,R7);I7.exports=it;it.create=function(e){return new it(e)};var ox=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];it.prototype.deriveKeys=function(e,t){e.keys=new Array(32),k7.equal(t.length,this.blockSize,"Invalid key length");var n=Qe.readUInt32BE(t,0),i=Qe.readUInt32BE(t,4);Qe.pc1(n,i,e.tmp,0),n=e.tmp[0],i=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var s=ox[a>>>1];n=Qe.r28shl(n,s),i=Qe.r28shl(i,s),Qe.pc2(n,i,e.keys,a)}};it.prototype._update=function(e,t,n,i){var a=this._desState,s=Qe.readUInt32BE(e,t),m=Qe.readUInt32BE(e,t+4);Qe.ip(s,m,a.tmp,0),s=a.tmp[0],m=a.tmp[1],this.type==="encrypt"?this._encrypt(a,s,m,a.tmp,0):this._decrypt(a,s,m,a.tmp,0),s=a.tmp[0],m=a.tmp[1],Qe.writeUInt32BE(n,s,i),Qe.writeUInt32BE(n,m,i+4)};it.prototype._pad=function(e,t){if(this.padding===!1)return!1;for(var n=e.length-t,i=t;i<e.length;i++)e[i]=n;return!0};it.prototype._unpad=function(e){if(this.padding===!1)return e;for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)k7.equal(e[n],t);return e.slice(0,e.length-t)};it.prototype._encrypt=function(e,t,n,i,a){for(var s=t,m=n,w=0;w<e.keys.length;w+=2){var E=e.keys[w],q=e.keys[w+1];Qe.expand(m,e.tmp,0),E^=e.tmp[0],q^=e.tmp[1];var k=Qe.substitute(E,q),R=Qe.permute(k),I=m;m=(s^R)>>>0,s=I}Qe.rip(m,s,i,a)};it.prototype._decrypt=function(e,t,n,i,a){for(var s=n,m=t,w=e.keys.length-2;w>=0;w-=2){var E=e.keys[w],q=e.keys[w+1];Qe.expand(s,e.tmp,0),E^=e.tmp[0],q^=e.tmp[1];var k=Qe.substitute(E,q),R=Qe.permute(k),I=s;s=(m^R)>>>0,m=I}Qe.rip(s,m,i,a)}});var C7=A(T7=>{"use strict";y();var sx=kr(),fx=V(),S1={};function ux(r){sx.equal(r.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=r[e]}function lx(r){function e(a){r.call(this,a),this._cbcInit()}fx(e,r);for(var t=Object.keys(S1),n=0;n<t.length;n++){var i=t[n];e.prototype[i]=S1[i]}return e.create=function(s){return new e(s)},e}T7.instantiate=lx;S1._cbcInit=function(){var e=new ux(this.options.iv);this._cbcState=e};S1._update=function(e,t,n,i){var a=this._cbcState,s=this.constructor.super_.prototype,m=a.iv;if(this.type==="encrypt"){for(var w=0;w<this.blockSize;w++)m[w]^=e[t+w];s._update.call(this,m,0,n,i);for(var w=0;w<this.blockSize;w++)m[w]=n[i+w]}else{s._update.call(this,e,t,n,i);for(var w=0;w<this.blockSize;w++)n[i+w]^=m[w];for(var w=0;w<this.blockSize;w++)m[w]=e[t+w]}}});var D7=A((MR,O7)=>{"use strict";y();var cx=kr(),hx=V(),j7=E1(),Pt=f6();function dx(r,e){cx.equal(e.length,24,"Invalid key length");var t=e.slice(0,8),n=e.slice(8,16),i=e.slice(16,24);r==="encrypt"?this.ciphers=[Pt.create({type:"encrypt",key:t}),Pt.create({type:"decrypt",key:n}),Pt.create({type:"encrypt",key:i})]:this.ciphers=[Pt.create({type:"decrypt",key:i}),Pt.create({type:"encrypt",key:n}),Pt.create({type:"decrypt",key:t})]}function Ai(r){j7.call(this,r);var e=new dx(this.type,this.options.key);this._edeState=e}hx(Ai,j7);O7.exports=Ai;Ai.create=function(e){return new Ai(e)};Ai.prototype._update=function(e,t,n,i){var a=this._edeState;a.ciphers[0]._update(e,t,n,i),a.ciphers[1]._update(n,i,n,i),a.ciphers[2]._update(n,i,n,i)};Ai.prototype._pad=Pt.prototype._pad;Ai.prototype._unpad=Pt.prototype._unpad});var P7=A(gn=>{"use strict";y();gn.utils=s6();gn.Cipher=E1();gn.DES=f6();gn.CBC=C7();gn.EDE=D7()});var N7=A((AR,z7)=>{y();var U7=bt(),yt=P7(),px=V(),qi=Se().Buffer,Oa={"des-ede3-cbc":yt.CBC.instantiate(yt.EDE),"des-ede3":yt.EDE,"des-ede-cbc":yt.CBC.instantiate(yt.EDE),"des-ede":yt.EDE,"des-cbc":yt.CBC.instantiate(yt.DES),"des-ecb":yt.DES};Oa.des=Oa["des-cbc"];Oa.des3=Oa["des-ede3-cbc"];z7.exports=B1;px(B1,U7);function B1(r){U7.call(this);var e=r.mode.toLowerCase(),t=Oa[e],n;r.decrypt?n="decrypt":n="encrypt";var i=r.key;qi.isBuffer(i)||(i=qi.from(i)),(e==="des-ede"||e==="des-ede-cbc")&&(i=qi.concat([i,i.slice(0,8)]));var a=r.iv;qi.isBuffer(a)||(a=qi.from(a)),this._des=t.create({key:i,iv:a,type:n})}B1.prototype._update=function(r){return qi.from(this._des.update(r))};B1.prototype._final=function(){return qi.from(this._des.final())}});var F7=A(u6=>{y();u6.encrypt=function(r,e){return r._cipher.encryptBlock(e)};u6.decrypt=function(r,e){return r._cipher.decryptBlock(e)}});var bn=A((IR,L7)=>{y();L7.exports=function(e,t){for(var n=Math.min(e.length,t.length),i=new S.Buffer(n),a=0;a<n;++a)i[a]=e[a]^t[a];return i}});var K7=A(l6=>{y();var H7=bn();l6.encrypt=function(r,e){var t=H7(e,r._prev);return r._prev=r._cipher.encryptBlock(t),r._prev};l6.decrypt=function(r,e){var t=r._prev;r._prev=e;var n=r._cipher.decryptBlock(e);return H7(n,t)}});var G7=A(V7=>{y();var Da=Se().Buffer,vx=bn();function W7(r,e,t){var n=e.length,i=vx(e,r._cache);return r._cache=r._cache.slice(n),r._prev=Da.concat([r._prev,t?e:i]),i}V7.encrypt=function(r,e,t){for(var n=Da.allocUnsafe(0),i;e.length;)if(r._cache.length===0&&(r._cache=r._cipher.encryptBlock(r._prev),r._prev=Da.allocUnsafe(0)),r._cache.length<=e.length)i=r._cache.length,n=Da.concat([n,W7(r,e.slice(0,i),t)]),e=e.slice(i);else{n=Da.concat([n,W7(r,e,t)]);break}return n}});var Z7=A($7=>{y();var c6=Se().Buffer;function mx(r,e,t){var n=r._cipher.encryptBlock(r._prev),i=n[0]^e;return r._prev=c6.concat([r._prev.slice(1),c6.from([t?e:i])]),i}$7.encrypt=function(r,e,t){for(var n=e.length,i=c6.allocUnsafe(n),a=-1;++a<n;)i[a]=mx(r,e[a],t);return i}});var X7=A(Y7=>{y();var A1=Se().Buffer;function gx(r,e,t){for(var n,i=-1,a=8,s=0,m,w;++i<a;)n=r._cipher.encryptBlock(r._prev),m=e&1<<7-i?128:0,w=n[0]^m,s+=(w&128)>>i%8,r._prev=bx(r._prev,t?m:w);return s}function bx(r,e){var t=r.length,n=-1,i=A1.allocUnsafe(r.length);for(r=A1.concat([r,A1.from([e])]);++n<t;)i[n]=r[n]<<1|r[n+1]>>7;return i}Y7.encrypt=function(r,e,t){for(var n=e.length,i=A1.allocUnsafe(n),a=-1;++a<n;)i[a]=gx(r,e[a],t);return i}});var Q7=A(J7=>{y();var yx=bn();function wx(r){return r._prev=r._cipher.encryptBlock(r._prev),r._prev}J7.encrypt=function(r,e){for(;r._cache.length<e.length;)r._cache=S.Buffer.concat([r._cache,wx(r)]);var t=r._cache.slice(0,e.length);return r._cache=r._cache.slice(e.length),yx(e,t)}});var h6=A((HR,e4)=>{y();function _x(r){for(var e=r.length,t;e--;)if(t=r.readUInt8(e),t===255)r.writeUInt8(0,e);else{t++,r.writeUInt8(t,e);break}}e4.exports=_x});var p6=A(t4=>{y();var xx=bn(),r4=Se().Buffer,Mx=h6();function Ex(r){var e=r._cipher.encryptBlockRaw(r._prev);return Mx(r._prev),e}var d6=16;t4.encrypt=function(r,e){var t=Math.ceil(e.length/d6),n=r._cache.length;r._cache=r4.concat([r._cache,r4.allocUnsafe(t*d6)]);for(var i=0;i<t;i++){var a=Ex(r),s=n+i*d6;r._cache.writeUInt32BE(a[0],s+0),r._cache.writeUInt32BE(a[1],s+4),r._cache.writeUInt32BE(a[2],s+8),r._cache.writeUInt32BE(a[3],s+12)}var m=r._cache.slice(0,e.length);return r._cache=r._cache.slice(e.length),xx(e,m)}});var v6=A((GR,Sx)=>{Sx.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}});var k1=A(($R,i4)=>{y();var Bx={ECB:F7(),CBC:K7(),CFB:G7(),CFB8:Z7(),CFB1:X7(),OFB:Q7(),CTR:p6(),GCM:p6()},q1=v6();for(m6 in q1)q1[m6].module=Bx[q1[m6].mode];var m6;i4.exports=q1});var Pa=A((YR,a4)=>{y();var R1=Se().Buffer;function b6(r){R1.isBuffer(r)||(r=R1.from(r));for(var e=r.length/4|0,t=new Array(e),n=0;n<e;n++)t[n]=r.readUInt32BE(n*4);return t}function g6(r){for(var e=0;e<r.length;r++)r[e]=0}function n4(r,e,t,n,i){for(var a=t[0],s=t[1],m=t[2],w=t[3],E=r[0]^e[0],q=r[1]^e[1],k=r[2]^e[2],R=r[3]^e[3],I,D,z,W,N=4,H=1;H<i;H++)I=a[E>>>24]^s[q>>>16&255]^m[k>>>8&255]^w[R&255]^e[N++],D=a[q>>>24]^s[k>>>16&255]^m[R>>>8&255]^w[E&255]^e[N++],z=a[k>>>24]^s[R>>>16&255]^m[E>>>8&255]^w[q&255]^e[N++],W=a[R>>>24]^s[E>>>16&255]^m[q>>>8&255]^w[k&255]^e[N++],E=I,q=D,k=z,R=W;return I=(n[E>>>24]<<24|n[q>>>16&255]<<16|n[k>>>8&255]<<8|n[R&255])^e[N++],D=(n[q>>>24]<<24|n[k>>>16&255]<<16|n[R>>>8&255]<<8|n[E&255])^e[N++],z=(n[k>>>24]<<24|n[R>>>16&255]<<16|n[E>>>8&255]<<8|n[q&255])^e[N++],W=(n[R>>>24]<<24|n[E>>>16&255]<<16|n[q>>>8&255]<<8|n[k&255])^e[N++],I=I>>>0,D=D>>>0,z=z>>>0,W=W>>>0,[I,D,z,W]}var Ax=[0,1,2,4,8,16,32,64,128,27,54],Ze=(function(){for(var r=new Array(256),e=0;e<256;e++)e<128?r[e]=e<<1:r[e]=e<<1^283;for(var t=[],n=[],i=[[],[],[],[]],a=[[],[],[],[]],s=0,m=0,w=0;w<256;++w){var E=m^m<<1^m<<2^m<<3^m<<4;E=E>>>8^E&255^99,t[s]=E,n[E]=s;var q=r[s],k=r[q],R=r[k],I=r[E]*257^E*16843008;i[0][s]=I<<24|I>>>8,i[1][s]=I<<16|I>>>16,i[2][s]=I<<8|I>>>24,i[3][s]=I,I=R*16843009^k*65537^q*257^s*16843008,a[0][E]=I<<24|I>>>8,a[1][E]=I<<16|I>>>16,a[2][E]=I<<8|I>>>24,a[3][E]=I,s===0?s=m=1:(s=q^r[r[r[R^q]]],m^=r[r[m]])}return{SBOX:t,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:a}})();function Er(r){this._key=b6(r),this._reset()}Er.blockSize=16;Er.keySize=256/8;Er.prototype.blockSize=Er.blockSize;Er.prototype.keySize=Er.keySize;Er.prototype._reset=function(){for(var r=this._key,e=r.length,t=e+6,n=(t+1)*4,i=[],a=0;a<e;a++)i[a]=r[a];for(a=e;a<n;a++){var s=i[a-1];a%e===0?(s=s<<8|s>>>24,s=Ze.SBOX[s>>>24]<<24|Ze.SBOX[s>>>16&255]<<16|Ze.SBOX[s>>>8&255]<<8|Ze.SBOX[s&255],s^=Ax[a/e|0]<<24):e>6&&a%e===4&&(s=Ze.SBOX[s>>>24]<<24|Ze.SBOX[s>>>16&255]<<16|Ze.SBOX[s>>>8&255]<<8|Ze.SBOX[s&255]),i[a]=i[a-e]^s}for(var m=[],w=0;w<n;w++){var E=n-w,q=i[E-(w%4?0:4)];w<4||E<=4?m[w]=q:m[w]=Ze.INV_SUB_MIX[0][Ze.SBOX[q>>>24]]^Ze.INV_SUB_MIX[1][Ze.SBOX[q>>>16&255]]^Ze.INV_SUB_MIX[2][Ze.SBOX[q>>>8&255]]^Ze.INV_SUB_MIX[3][Ze.SBOX[q&255]]}this._nRounds=t,this._keySchedule=i,this._invKeySchedule=m};Er.prototype.encryptBlockRaw=function(r){return r=b6(r),n4(r,this._keySchedule,Ze.SUB_MIX,Ze.SBOX,this._nRounds)};Er.prototype.encryptBlock=function(r){var e=this.encryptBlockRaw(r),t=R1.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[1],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[3],12),t};Er.prototype.decryptBlock=function(r){r=b6(r);var e=r[1];r[1]=r[3],r[3]=e;var t=n4(r,this._invKeySchedule,Ze.INV_SUB_MIX,Ze.INV_SBOX,this._nRounds),n=R1.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[3],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[1],12),n};Er.prototype.scrub=function(){g6(this._keySchedule),g6(this._invKeySchedule),g6(this._key)};a4.exports.AES=Er});var f4=A((JR,s4)=>{y();var yn=Se().Buffer,qx=yn.alloc(16,0);function kx(r){return[r.readUInt32BE(0),r.readUInt32BE(4),r.readUInt32BE(8),r.readUInt32BE(12)]}function o4(r){var e=yn.allocUnsafe(16);return e.writeUInt32BE(r[0]>>>0,0),e.writeUInt32BE(r[1]>>>0,4),e.writeUInt32BE(r[2]>>>0,8),e.writeUInt32BE(r[3]>>>0,12),e}function Ua(r){this.h=r,this.state=yn.alloc(16,0),this.cache=yn.allocUnsafe(0)}Ua.prototype.ghash=function(r){for(var e=-1;++e<r.length;)this.state[e]^=r[e];this._multiply()};Ua.prototype._multiply=function(){for(var r=kx(this.h),e=[0,0,0,0],t,n,i,a=-1;++a<128;){for(n=(this.state[~~(a/8)]&1<<7-a%8)!==0,n&&(e[0]^=r[0],e[1]^=r[1],e[2]^=r[2],e[3]^=r[3]),i=(r[3]&1)!==0,t=3;t>0;t--)r[t]=r[t]>>>1|(r[t-1]&1)<<31;r[0]=r[0]>>>1,i&&(r[0]=r[0]^225<<24)}this.state=o4(e)};Ua.prototype.update=function(r){this.cache=yn.concat([this.cache,r]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)};Ua.prototype.final=function(r,e){return this.cache.length&&this.ghash(yn.concat([this.cache,qx],16)),this.ghash(o4([0,r,0,e])),this.state};s4.exports=Ua});var y6=A((eI,c4)=>{y();var Rx=Pa(),vr=Se().Buffer,u4=bt(),Ix=V(),l4=f4(),Tx=bn(),Cx=h6();function jx(r,e){var t=0;r.length!==e.length&&t++;for(var n=Math.min(r.length,e.length),i=0;i<n;++i)t+=r[i]^e[i];return t}function Ox(r,e,t){if(e.length===12)return r._finID=vr.concat([e,vr.from([0,0,0,1])]),vr.concat([e,vr.from([0,0,0,2])]);var n=new l4(t),i=e.length,a=i%16;n.update(e),a&&(a=16-a,n.update(vr.alloc(a,0))),n.update(vr.alloc(8,0));var s=i*8,m=vr.alloc(8);m.writeUIntBE(s,0,8),n.update(m),r._finID=n.state;var w=vr.from(r._finID);return Cx(w),w}function ki(r,e,t,n){u4.call(this);var i=vr.alloc(4,0);this._cipher=new Rx.AES(e);var a=this._cipher.encryptBlock(i);this._ghash=new l4(a),t=Ox(this,t,a),this._prev=vr.from(t),this._cache=vr.allocUnsafe(0),this._secCache=vr.allocUnsafe(0),this._decrypt=n,this._alen=0,this._len=0,this._mode=r,this._authTag=null,this._called=!1}Ix(ki,u4);ki.prototype._update=function(r){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=vr.alloc(e,0),this._ghash.update(e))}this._called=!0;var t=this._mode.encrypt(this,r);return this._decrypt?this._ghash.update(r):this._ghash.update(t),this._len+=r.length,t};ki.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var r=Tx(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&jx(r,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=r,this._cipher.scrub()};ki.prototype.getAuthTag=function(){if(this._decrypt||!vr.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag};ki.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e};ki.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length};c4.exports=ki});var _6=A((tI,d4)=>{y();var Dx=Pa(),w6=Se().Buffer,h4=bt(),Px=V();function I1(r,e,t,n){h4.call(this),this._cipher=new Dx.AES(e),this._prev=w6.from(t),this._cache=w6.allocUnsafe(0),this._secCache=w6.allocUnsafe(0),this._decrypt=n,this._mode=r}Px(I1,h4);I1.prototype._update=function(r){return this._mode.encrypt(this,r,this._decrypt)};I1.prototype._final=function(){this._cipher.scrub()};d4.exports=I1});var za=A((nI,p4)=>{y();var Ri=Se().Buffer,Ux=Qo();function zx(r,e,t,n){if(Ri.isBuffer(r)||(r=Ri.from(r,"binary")),e&&(Ri.isBuffer(e)||(e=Ri.from(e,"binary")),e.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var i=t/8,a=Ri.alloc(i),s=Ri.alloc(n||0),m=Ri.alloc(0);i>0||n>0;){var w=new Ux;w.update(m),w.update(r),e&&w.update(e),m=w.digest();var E=0;if(i>0){var q=a.length-i;E=Math.min(i,m.length),m.copy(a,q,0,E),i-=E}if(E<m.length&&n>0){var k=s.length-n,R=Math.min(n,m.length-E);m.copy(s,k,E,E+R),n-=R}}return m.fill(0),{key:a,iv:s}}p4.exports=zx});var b4=A(x6=>{y();var v4=k1(),Nx=y6(),wt=Se().Buffer,Fx=_6(),m4=bt(),Lx=Pa(),Hx=za(),Kx=V();function Na(r,e,t){m4.call(this),this._cache=new T1,this._cipher=new Lx.AES(e),this._prev=wt.from(t),this._mode=r,this._autopadding=!0}Kx(Na,m4);Na.prototype._update=function(r){this._cache.add(r);for(var e,t,n=[];e=this._cache.get();)t=this._mode.encrypt(this,e),n.push(t);return wt.concat(n)};var Wx=wt.alloc(16,16);Na.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return r=this._mode.encrypt(this,r),this._cipher.scrub(),r;if(!r.equals(Wx))throw this._cipher.scrub(),new Error("data not multiple of block length")};Na.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function T1(){this.cache=wt.allocUnsafe(0)}T1.prototype.add=function(r){this.cache=wt.concat([this.cache,r])};T1.prototype.get=function(){if(this.cache.length>15){var r=this.cache.slice(0,16);return this.cache=this.cache.slice(16),r}return null};T1.prototype.flush=function(){for(var r=16-this.cache.length,e=wt.allocUnsafe(r),t=-1;++t<r;)e.writeUInt8(r,t);return wt.concat([this.cache,e])};function g4(r,e,t){var n=v4[r.toLowerCase()];if(!n)throw new TypeError("invalid suite type");if(typeof e=="string"&&(e=wt.from(e)),e.length!==n.key/8)throw new TypeError("invalid key length "+e.length);if(typeof t=="string"&&(t=wt.from(t)),n.mode!=="GCM"&&t.length!==n.iv)throw new TypeError("invalid iv length "+t.length);return n.type==="stream"?new Fx(n.module,e,t):n.type==="auth"?new Nx(n.module,e,t):new Na(n.module,e,t)}function Vx(r,e){var t=v4[r.toLowerCase()];if(!t)throw new TypeError("invalid suite type");var n=Hx(e,!1,t.key,t.iv);return g4(r,n.key,n.iv)}x6.createCipheriv=g4;x6.createCipher=Vx});var x4=A(M6=>{y();var Gx=y6(),wn=Se().Buffer,y4=k1(),$x=_6(),w4=bt(),Zx=Pa(),Yx=za(),Xx=V();function Fa(r,e,t){w4.call(this),this._cache=new C1,this._last=void 0,this._cipher=new Zx.AES(e),this._prev=wn.from(t),this._mode=r,this._autopadding=!0}Xx(Fa,w4);Fa.prototype._update=function(r){this._cache.add(r);for(var e,t,n=[];e=this._cache.get(this._autopadding);)t=this._mode.decrypt(this,e),n.push(t);return wn.concat(n)};Fa.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return Jx(this._mode.decrypt(this,r));if(r)throw new Error("data not multiple of block length")};Fa.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function C1(){this.cache=wn.allocUnsafe(0)}C1.prototype.add=function(r){this.cache=wn.concat([this.cache,r])};C1.prototype.get=function(r){var e;if(r){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null};C1.prototype.flush=function(){if(this.cache.length)return this.cache};function Jx(r){var e=r[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var t=-1;++t<e;)if(r[t+(16-e)]!==e)throw new Error("unable to decrypt data");if(e!==16)return r.slice(0,16-e)}function _4(r,e,t){var n=y4[r.toLowerCase()];if(!n)throw new TypeError("invalid suite type");if(typeof t=="string"&&(t=wn.from(t)),n.mode!=="GCM"&&t.length!==n.iv)throw new TypeError("invalid iv length "+t.length);if(typeof e=="string"&&(e=wn.from(e)),e.length!==n.key/8)throw new TypeError("invalid key length "+e.length);return n.type==="stream"?new $x(n.module,e,t,!0):n.type==="auth"?new Gx(n.module,e,t,!0):new Fa(n.module,e,t)}function Qx(r,e){var t=y4[r.toLowerCase()];if(!t)throw new TypeError("invalid suite type");var n=Yx(e,!1,t.key,t.iv);return _4(r,n.key,n.iv)}M6.createDecipher=Qx;M6.createDecipheriv=_4});var j1=A(Dr=>{y();var M4=b4(),E4=x4(),eM=v6();function rM(){return Object.keys(eM)}Dr.createCipher=Dr.Cipher=M4.createCipher;Dr.createCipheriv=Dr.Cipheriv=M4.createCipheriv;Dr.createDecipher=Dr.Decipher=E4.createDecipher;Dr.createDecipheriv=Dr.Decipheriv=E4.createDecipheriv;Dr.listCiphers=Dr.getCiphers=rM});var S4=A(_t=>{y();_t["des-ecb"]={key:8,iv:0};_t["des-cbc"]=_t.des={key:8,iv:8};_t["des-ede3-cbc"]=_t.des3={key:24,iv:8};_t["des-ede3"]={key:24,iv:0};_t["des-ede-cbc"]={key:16,iv:8};_t["des-ede"]={key:16,iv:0}});var R4=A(Pr=>{y();var B4=N7(),E6=j1(),Ut=k1(),xt=S4(),A4=za();function tM(r,e){r=r.toLowerCase();var t,n;if(Ut[r])t=Ut[r].key,n=Ut[r].iv;else if(xt[r])t=xt[r].key*8,n=xt[r].iv;else throw new TypeError("invalid suite type");var i=A4(e,!1,t,n);return q4(r,i.key,i.iv)}function iM(r,e){r=r.toLowerCase();var t,n;if(Ut[r])t=Ut[r].key,n=Ut[r].iv;else if(xt[r])t=xt[r].key*8,n=xt[r].iv;else throw new TypeError("invalid suite type");var i=A4(e,!1,t,n);return k4(r,i.key,i.iv)}function q4(r,e,t){if(r=r.toLowerCase(),Ut[r])return E6.createCipheriv(r,e,t);if(xt[r])return new B4({key:e,iv:t,mode:r});throw new TypeError("invalid suite type")}function k4(r,e,t){if(r=r.toLowerCase(),Ut[r])return E6.createDecipheriv(r,e,t);if(xt[r])return new B4({key:e,iv:t,mode:r,decrypt:!0});throw new TypeError("invalid suite type")}function nM(){return Object.keys(xt).concat(E6.getCiphers())}Pr.createCipher=Pr.Cipher=tM;Pr.createCipheriv=Pr.Cipheriv=q4;Pr.createDecipher=Pr.Decipher=iM;Pr.createDecipheriv=Pr.Decipheriv=k4;Pr.listCiphers=Pr.getCiphers=nM});var zt=A((I4,S6)=>{y();(function(r,e){"use strict";function t(B,l){if(!B)throw new Error(l||"Assertion failed")}function n(B,l){B.super_=l;var b=function(){};b.prototype=l.prototype,B.prototype=new b,B.prototype.constructor=B}function i(B,l,b){if(i.isBN(B))return B;this.negative=0,this.words=null,this.length=0,this.red=null,B!==null&&((l==="le"||l==="be")&&(b=l,l=10),this._init(B||0,l||10,b||"be"))}typeof r=="object"?r.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=or().Buffer}catch{}i.isBN=function(l){return l instanceof i?!0:l!==null&&typeof l=="object"&&l.constructor.wordSize===i.wordSize&&Array.isArray(l.words)},i.max=function(l,b){return l.cmp(b)>0?l:b},i.min=function(l,b){return l.cmp(b)<0?l:b},i.prototype._init=function(l,b,d){if(typeof l=="number")return this._initNumber(l,b,d);if(typeof l=="object")return this._initArray(l,b,d);b==="hex"&&(b=16),t(b===(b|0)&&b>=2&&b<=36),l=l.toString().replace(/\s+/g,"");var o=0;l[0]==="-"&&(o++,this.negative=1),o<l.length&&(b===16?this._parseHex(l,o,d):(this._parseBase(l,b,o),d==="le"&&this._initArray(this.toArray(),b,d)))},i.prototype._initNumber=function(l,b,d){l<0&&(this.negative=1,l=-l),l<67108864?(this.words=[l&67108863],this.length=1):l<4503599627370496?(this.words=[l&67108863,l/67108864&67108863],this.length=2):(t(l<9007199254740992),this.words=[l&67108863,l/67108864&67108863,1],this.length=3),d==="le"&&this._initArray(this.toArray(),b,d)},i.prototype._initArray=function(l,b,d){if(t(typeof l.length=="number"),l.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(l.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var u,p,v=0;if(d==="be")for(o=l.length-1,u=0;o>=0;o-=3)p=l[o]|l[o-1]<<8|l[o-2]<<16,this.words[u]|=p<<v&67108863,this.words[u+1]=p>>>26-v&67108863,v+=24,v>=26&&(v-=26,u++);else if(d==="le")for(o=0,u=0;o<l.length;o+=3)p=l[o]|l[o+1]<<8|l[o+2]<<16,this.words[u]|=p<<v&67108863,this.words[u+1]=p>>>26-v&67108863,v+=24,v>=26&&(v-=26,u++);return this.strip()};function s(B,l){var b=B.charCodeAt(l);return b>=65&&b<=70?b-55:b>=97&&b<=102?b-87:b-48&15}function m(B,l,b){var d=s(B,b);return b-1>=l&&(d|=s(B,b-1)<<4),d}i.prototype._parseHex=function(l,b,d){this.length=Math.ceil((l.length-b)/6),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var u=0,p=0,v;if(d==="be")for(o=l.length-1;o>=b;o-=2)v=m(l,b,o)<<u,this.words[p]|=v&67108863,u>=18?(u-=18,p+=1,this.words[p]|=v>>>26):u+=8;else{var c=l.length-b;for(o=c%2===0?b+1:b;o<l.length;o+=2)v=m(l,b,o)<<u,this.words[p]|=v&67108863,u>=18?(u-=18,p+=1,this.words[p]|=v>>>26):u+=8}this.strip()};function w(B,l,b,d){for(var o=0,u=Math.min(B.length,b),p=l;p<u;p++){var v=B.charCodeAt(p)-48;o*=d,v>=49?o+=v-49+10:v>=17?o+=v-17+10:o+=v}return o}i.prototype._parseBase=function(l,b,d){this.words=[0],this.length=1;for(var o=0,u=1;u<=67108863;u*=b)o++;o--,u=u/b|0;for(var p=l.length-d,v=p%o,c=Math.min(p,p-v)+d,f=0,g=d;g<c;g+=o)f=w(l,g,g+o,b),this.imuln(u),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(v!==0){var _=1;for(f=w(l,g,l.length,b),g=0;g<v;g++)_*=b;this.imuln(_),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}this.strip()},i.prototype.copy=function(l){l.words=new Array(this.length);for(var b=0;b<this.length;b++)l.words[b]=this.words[b];l.length=this.length,l.negative=this.negative,l.red=this.red},i.prototype.clone=function(){var l=new i(null);return this.copy(l),l},i.prototype._expand=function(l){for(;this.length<l;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var E=["","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"],q=[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],k=[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];i.prototype.toString=function(l,b){l=l||10,b=b|0||1;var d;if(l===16||l==="hex"){d="";for(var o=0,u=0,p=0;p<this.length;p++){var v=this.words[p],c=((v<<o|u)&16777215).toString(16);u=v>>>24-o&16777215,o+=2,o>=26&&(o-=26,p--),u!==0||p!==this.length-1?d=E[6-c.length]+c+d:d=c+d}for(u!==0&&(d=u.toString(16)+d);d.length%b!==0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}if(l===(l|0)&&l>=2&&l<=36){var f=q[l],g=k[l];d="";var _=this.clone();for(_.negative=0;!_.isZero();){var h=_.modn(g).toString(l);_=_.idivn(g),_.isZero()?d=h+d:d=E[f-h.length]+h+d}for(this.isZero()&&(d="0"+d);d.length%b!==0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}t(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var l=this.words[0];return this.length===2?l+=this.words[1]*67108864:this.length===3&&this.words[2]===1?l+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-l:l},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(l,b){return t(typeof a<"u"),this.toArrayLike(a,l,b)},i.prototype.toArray=function(l,b){return this.toArrayLike(Array,l,b)},i.prototype.toArrayLike=function(l,b,d){var o=this.byteLength(),u=d||Math.max(1,o);t(o<=u,"byte array longer than desired length"),t(u>0,"Requested array length <= 0"),this.strip();var p=b==="le",v=new l(u),c,f,g=this.clone();if(p){for(f=0;!g.isZero();f++)c=g.andln(255),g.iushrn(8),v[f]=c;for(;f<u;f++)v[f]=0}else{for(f=0;f<u-o;f++)v[f]=0;for(f=0;!g.isZero();f++)c=g.andln(255),g.iushrn(8),v[u-f-1]=c}return v},Math.clz32?i.prototype._countBits=function(l){return 32-Math.clz32(l)}:i.prototype._countBits=function(l){var b=l,d=0;return b>=4096&&(d+=13,b>>>=13),b>=64&&(d+=7,b>>>=7),b>=8&&(d+=4,b>>>=4),b>=2&&(d+=2,b>>>=2),d+b},i.prototype._zeroBits=function(l){if(l===0)return 26;var b=l,d=0;return(b&8191)===0&&(d+=13,b>>>=13),(b&127)===0&&(d+=7,b>>>=7),(b&15)===0&&(d+=4,b>>>=4),(b&3)===0&&(d+=2,b>>>=2),(b&1)===0&&d++,d},i.prototype.bitLength=function(){var l=this.words[this.length-1],b=this._countBits(l);return(this.length-1)*26+b};function R(B){for(var l=new Array(B.bitLength()),b=0;b<l.length;b++){var d=b/26|0,o=b%26;l[b]=(B.words[d]&1<<o)>>>o}return l}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var l=0,b=0;b<this.length;b++){var d=this._zeroBits(this.words[b]);if(l+=d,d!==26)break}return l},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(l){return this.negative!==0?this.abs().inotn(l).iaddn(1):this.clone()},i.prototype.fromTwos=function(l){return this.testn(l-1)?this.notn(l).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(l){for(;this.length<l.length;)this.words[this.length++]=0;for(var b=0;b<l.length;b++)this.words[b]=this.words[b]|l.words[b];return this.strip()},i.prototype.ior=function(l){return t((this.negative|l.negative)===0),this.iuor(l)},i.prototype.or=function(l){return this.length>l.length?this.clone().ior(l):l.clone().ior(this)},i.prototype.uor=function(l){return this.length>l.length?this.clone().iuor(l):l.clone().iuor(this)},i.prototype.iuand=function(l){var b;this.length>l.length?b=l:b=this;for(var d=0;d<b.length;d++)this.words[d]=this.words[d]&l.words[d];return this.length=b.length,this.strip()},i.prototype.iand=function(l){return t((this.negative|l.negative)===0),this.iuand(l)},i.prototype.and=function(l){return this.length>l.length?this.clone().iand(l):l.clone().iand(this)},i.prototype.uand=function(l){return this.length>l.length?this.clone().iuand(l):l.clone().iuand(this)},i.prototype.iuxor=function(l){var b,d;this.length>l.length?(b=this,d=l):(b=l,d=this);for(var o=0;o<d.length;o++)this.words[o]=b.words[o]^d.words[o];if(this!==b)for(;o<b.length;o++)this.words[o]=b.words[o];return this.length=b.length,this.strip()},i.prototype.ixor=function(l){return t((this.negative|l.negative)===0),this.iuxor(l)},i.prototype.xor=function(l){return this.length>l.length?this.clone().ixor(l):l.clone().ixor(this)},i.prototype.uxor=function(l){return this.length>l.length?this.clone().iuxor(l):l.clone().iuxor(this)},i.prototype.inotn=function(l){t(typeof l=="number"&&l>=0);var b=Math.ceil(l/26)|0,d=l%26;this._expand(b),d>0&&b--;for(var o=0;o<b;o++)this.words[o]=~this.words[o]&67108863;return d>0&&(this.words[o]=~this.words[o]&67108863>>26-d),this.strip()},i.prototype.notn=function(l){return this.clone().inotn(l)},i.prototype.setn=function(l,b){t(typeof l=="number"&&l>=0);var d=l/26|0,o=l%26;return this._expand(d+1),b?this.words[d]=this.words[d]|1<<o:this.words[d]=this.words[d]&~(1<<o),this.strip()},i.prototype.iadd=function(l){var b;if(this.negative!==0&&l.negative===0)return this.negative=0,b=this.isub(l),this.negative^=1,this._normSign();if(this.negative===0&&l.negative!==0)return l.negative=0,b=this.isub(l),l.negative=1,b._normSign();var d,o;this.length>l.length?(d=this,o=l):(d=l,o=this);for(var u=0,p=0;p<o.length;p++)b=(d.words[p]|0)+(o.words[p]|0)+u,this.words[p]=b&67108863,u=b>>>26;for(;u!==0&&p<d.length;p++)b=(d.words[p]|0)+u,this.words[p]=b&67108863,u=b>>>26;if(this.length=d.length,u!==0)this.words[this.length]=u,this.length++;else if(d!==this)for(;p<d.length;p++)this.words[p]=d.words[p];return this},i.prototype.add=function(l){var b;return l.negative!==0&&this.negative===0?(l.negative=0,b=this.sub(l),l.negative^=1,b):l.negative===0&&this.negative!==0?(this.negative=0,b=l.sub(this),this.negative=1,b):this.length>l.length?this.clone().iadd(l):l.clone().iadd(this)},i.prototype.isub=function(l){if(l.negative!==0){l.negative=0;var b=this.iadd(l);return l.negative=1,b._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(l),this.negative=1,this._normSign();var d=this.cmp(l);if(d===0)return this.negative=0,this.length=1,this.words[0]=0,this;var o,u;d>0?(o=this,u=l):(o=l,u=this);for(var p=0,v=0;v<u.length;v++)b=(o.words[v]|0)-(u.words[v]|0)+p,p=b>>26,this.words[v]=b&67108863;for(;p!==0&&v<o.length;v++)b=(o.words[v]|0)+p,p=b>>26,this.words[v]=b&67108863;if(p===0&&v<o.length&&o!==this)for(;v<o.length;v++)this.words[v]=o.words[v];return this.length=Math.max(this.length,v),o!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(l){return this.clone().isub(l)};function I(B,l,b){b.negative=l.negative^B.negative;var d=B.length+l.length|0;b.length=d,d=d-1|0;var o=B.words[0]|0,u=l.words[0]|0,p=o*u,v=p&67108863,c=p/67108864|0;b.words[0]=v;for(var f=1;f<d;f++){for(var g=c>>>26,_=c&67108863,h=Math.min(f,l.length-1),x=Math.max(0,f-B.length+1);x<=h;x++){var C=f-x|0;o=B.words[C]|0,u=l.words[x]|0,p=o*u+_,g+=p/67108864|0,_=p&67108863}b.words[f]=_|0,c=g|0}return c!==0?b.words[f]=c|0:b.length--,b.strip()}var D=function(l,b,d){var o=l.words,u=b.words,p=d.words,v=0,c,f,g,_=o[0]|0,h=_&8191,x=_>>>13,C=o[1]|0,j=C&8191,O=C>>>13,U=o[2]|0,P=U&8191,F=U>>>13,qr=o[3]|0,L=qr&8191,K=qr>>>13,In=o[4]|0,G=In&8191,$=In>>>13,Tn=o[5]|0,Z=Tn&8191,Y=Tn>>>13,Cn=o[6]|0,X=Cn&8191,J=Cn>>>13,jn=o[7]|0,Q=jn&8191,ee=jn>>>13,On=o[8]|0,re=On&8191,te=On>>>13,Dn=o[9]|0,ie=Dn&8191,ne=Dn>>>13,Pn=u[0]|0,ae=Pn&8191,oe=Pn>>>13,Un=u[1]|0,se=Un&8191,fe=Un>>>13,zn=u[2]|0,ue=zn&8191,le=zn>>>13,Nn=u[3]|0,ce=Nn&8191,he=Nn>>>13,Fn=u[4]|0,de=Fn&8191,pe=Fn>>>13,Ln=u[5]|0,ve=Ln&8191,me=Ln>>>13,Hn=u[6]|0,ge=Hn&8191,be=Hn>>>13,Kn=u[7]|0,ye=Kn&8191,we=Kn>>>13,Wn=u[8]|0,_e=Wn&8191,xe=Wn>>>13,Vn=u[9]|0,Me=Vn&8191,Ee=Vn>>>13;d.negative=l.negative^b.negative,d.length=19,c=Math.imul(h,ae),f=Math.imul(h,oe),f=f+Math.imul(x,ae)|0,g=Math.imul(x,oe);var Oi=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,c=Math.imul(j,ae),f=Math.imul(j,oe),f=f+Math.imul(O,ae)|0,g=Math.imul(O,oe),c=c+Math.imul(h,se)|0,f=f+Math.imul(h,fe)|0,f=f+Math.imul(x,se)|0,g=g+Math.imul(x,fe)|0;var He=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(He>>>26)|0,He&=67108863,c=Math.imul(P,ae),f=Math.imul(P,oe),f=f+Math.imul(F,ae)|0,g=Math.imul(F,oe),c=c+Math.imul(j,se)|0,f=f+Math.imul(j,fe)|0,f=f+Math.imul(O,se)|0,g=g+Math.imul(O,fe)|0,c=c+Math.imul(h,ue)|0,f=f+Math.imul(h,le)|0,f=f+Math.imul(x,ue)|0,g=g+Math.imul(x,le)|0;var Ke=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,c=Math.imul(L,ae),f=Math.imul(L,oe),f=f+Math.imul(K,ae)|0,g=Math.imul(K,oe),c=c+Math.imul(P,se)|0,f=f+Math.imul(P,fe)|0,f=f+Math.imul(F,se)|0,g=g+Math.imul(F,fe)|0,c=c+Math.imul(j,ue)|0,f=f+Math.imul(j,le)|0,f=f+Math.imul(O,ue)|0,g=g+Math.imul(O,le)|0,c=c+Math.imul(h,ce)|0,f=f+Math.imul(h,he)|0,f=f+Math.imul(x,ce)|0,g=g+Math.imul(x,he)|0;var Ft=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,c=Math.imul(G,ae),f=Math.imul(G,oe),f=f+Math.imul($,ae)|0,g=Math.imul($,oe),c=c+Math.imul(L,se)|0,f=f+Math.imul(L,fe)|0,f=f+Math.imul(K,se)|0,g=g+Math.imul(K,fe)|0,c=c+Math.imul(P,ue)|0,f=f+Math.imul(P,le)|0,f=f+Math.imul(F,ue)|0,g=g+Math.imul(F,le)|0,c=c+Math.imul(j,ce)|0,f=f+Math.imul(j,he)|0,f=f+Math.imul(O,ce)|0,g=g+Math.imul(O,he)|0,c=c+Math.imul(h,de)|0,f=f+Math.imul(h,pe)|0,f=f+Math.imul(x,de)|0,g=g+Math.imul(x,pe)|0;var Lt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,c=Math.imul(Z,ae),f=Math.imul(Z,oe),f=f+Math.imul(Y,ae)|0,g=Math.imul(Y,oe),c=c+Math.imul(G,se)|0,f=f+Math.imul(G,fe)|0,f=f+Math.imul($,se)|0,g=g+Math.imul($,fe)|0,c=c+Math.imul(L,ue)|0,f=f+Math.imul(L,le)|0,f=f+Math.imul(K,ue)|0,g=g+Math.imul(K,le)|0,c=c+Math.imul(P,ce)|0,f=f+Math.imul(P,he)|0,f=f+Math.imul(F,ce)|0,g=g+Math.imul(F,he)|0,c=c+Math.imul(j,de)|0,f=f+Math.imul(j,pe)|0,f=f+Math.imul(O,de)|0,g=g+Math.imul(O,pe)|0,c=c+Math.imul(h,ve)|0,f=f+Math.imul(h,me)|0,f=f+Math.imul(x,ve)|0,g=g+Math.imul(x,me)|0;var Ht=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,c=Math.imul(X,ae),f=Math.imul(X,oe),f=f+Math.imul(J,ae)|0,g=Math.imul(J,oe),c=c+Math.imul(Z,se)|0,f=f+Math.imul(Z,fe)|0,f=f+Math.imul(Y,se)|0,g=g+Math.imul(Y,fe)|0,c=c+Math.imul(G,ue)|0,f=f+Math.imul(G,le)|0,f=f+Math.imul($,ue)|0,g=g+Math.imul($,le)|0,c=c+Math.imul(L,ce)|0,f=f+Math.imul(L,he)|0,f=f+Math.imul(K,ce)|0,g=g+Math.imul(K,he)|0,c=c+Math.imul(P,de)|0,f=f+Math.imul(P,pe)|0,f=f+Math.imul(F,de)|0,g=g+Math.imul(F,pe)|0,c=c+Math.imul(j,ve)|0,f=f+Math.imul(j,me)|0,f=f+Math.imul(O,ve)|0,g=g+Math.imul(O,me)|0,c=c+Math.imul(h,ge)|0,f=f+Math.imul(h,be)|0,f=f+Math.imul(x,ge)|0,g=g+Math.imul(x,be)|0;var Kt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,c=Math.imul(Q,ae),f=Math.imul(Q,oe),f=f+Math.imul(ee,ae)|0,g=Math.imul(ee,oe),c=c+Math.imul(X,se)|0,f=f+Math.imul(X,fe)|0,f=f+Math.imul(J,se)|0,g=g+Math.imul(J,fe)|0,c=c+Math.imul(Z,ue)|0,f=f+Math.imul(Z,le)|0,f=f+Math.imul(Y,ue)|0,g=g+Math.imul(Y,le)|0,c=c+Math.imul(G,ce)|0,f=f+Math.imul(G,he)|0,f=f+Math.imul($,ce)|0,g=g+Math.imul($,he)|0,c=c+Math.imul(L,de)|0,f=f+Math.imul(L,pe)|0,f=f+Math.imul(K,de)|0,g=g+Math.imul(K,pe)|0,c=c+Math.imul(P,ve)|0,f=f+Math.imul(P,me)|0,f=f+Math.imul(F,ve)|0,g=g+Math.imul(F,me)|0,c=c+Math.imul(j,ge)|0,f=f+Math.imul(j,be)|0,f=f+Math.imul(O,ge)|0,g=g+Math.imul(O,be)|0,c=c+Math.imul(h,ye)|0,f=f+Math.imul(h,we)|0,f=f+Math.imul(x,ye)|0,g=g+Math.imul(x,we)|0;var Wt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,c=Math.imul(re,ae),f=Math.imul(re,oe),f=f+Math.imul(te,ae)|0,g=Math.imul(te,oe),c=c+Math.imul(Q,se)|0,f=f+Math.imul(Q,fe)|0,f=f+Math.imul(ee,se)|0,g=g+Math.imul(ee,fe)|0,c=c+Math.imul(X,ue)|0,f=f+Math.imul(X,le)|0,f=f+Math.imul(J,ue)|0,g=g+Math.imul(J,le)|0,c=c+Math.imul(Z,ce)|0,f=f+Math.imul(Z,he)|0,f=f+Math.imul(Y,ce)|0,g=g+Math.imul(Y,he)|0,c=c+Math.imul(G,de)|0,f=f+Math.imul(G,pe)|0,f=f+Math.imul($,de)|0,g=g+Math.imul($,pe)|0,c=c+Math.imul(L,ve)|0,f=f+Math.imul(L,me)|0,f=f+Math.imul(K,ve)|0,g=g+Math.imul(K,me)|0,c=c+Math.imul(P,ge)|0,f=f+Math.imul(P,be)|0,f=f+Math.imul(F,ge)|0,g=g+Math.imul(F,be)|0,c=c+Math.imul(j,ye)|0,f=f+Math.imul(j,we)|0,f=f+Math.imul(O,ye)|0,g=g+Math.imul(O,we)|0,c=c+Math.imul(h,_e)|0,f=f+Math.imul(h,xe)|0,f=f+Math.imul(x,_e)|0,g=g+Math.imul(x,xe)|0;var Vt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,c=Math.imul(ie,ae),f=Math.imul(ie,oe),f=f+Math.imul(ne,ae)|0,g=Math.imul(ne,oe),c=c+Math.imul(re,se)|0,f=f+Math.imul(re,fe)|0,f=f+Math.imul(te,se)|0,g=g+Math.imul(te,fe)|0,c=c+Math.imul(Q,ue)|0,f=f+Math.imul(Q,le)|0,f=f+Math.imul(ee,ue)|0,g=g+Math.imul(ee,le)|0,c=c+Math.imul(X,ce)|0,f=f+Math.imul(X,he)|0,f=f+Math.imul(J,ce)|0,g=g+Math.imul(J,he)|0,c=c+Math.imul(Z,de)|0,f=f+Math.imul(Z,pe)|0,f=f+Math.imul(Y,de)|0,g=g+Math.imul(Y,pe)|0,c=c+Math.imul(G,ve)|0,f=f+Math.imul(G,me)|0,f=f+Math.imul($,ve)|0,g=g+Math.imul($,me)|0,c=c+Math.imul(L,ge)|0,f=f+Math.imul(L,be)|0,f=f+Math.imul(K,ge)|0,g=g+Math.imul(K,be)|0,c=c+Math.imul(P,ye)|0,f=f+Math.imul(P,we)|0,f=f+Math.imul(F,ye)|0,g=g+Math.imul(F,we)|0,c=c+Math.imul(j,_e)|0,f=f+Math.imul(j,xe)|0,f=f+Math.imul(O,_e)|0,g=g+Math.imul(O,xe)|0,c=c+Math.imul(h,Me)|0,f=f+Math.imul(h,Ee)|0,f=f+Math.imul(x,Me)|0,g=g+Math.imul(x,Ee)|0;var Gt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,c=Math.imul(ie,se),f=Math.imul(ie,fe),f=f+Math.imul(ne,se)|0,g=Math.imul(ne,fe),c=c+Math.imul(re,ue)|0,f=f+Math.imul(re,le)|0,f=f+Math.imul(te,ue)|0,g=g+Math.imul(te,le)|0,c=c+Math.imul(Q,ce)|0,f=f+Math.imul(Q,he)|0,f=f+Math.imul(ee,ce)|0,g=g+Math.imul(ee,he)|0,c=c+Math.imul(X,de)|0,f=f+Math.imul(X,pe)|0,f=f+Math.imul(J,de)|0,g=g+Math.imul(J,pe)|0,c=c+Math.imul(Z,ve)|0,f=f+Math.imul(Z,me)|0,f=f+Math.imul(Y,ve)|0,g=g+Math.imul(Y,me)|0,c=c+Math.imul(G,ge)|0,f=f+Math.imul(G,be)|0,f=f+Math.imul($,ge)|0,g=g+Math.imul($,be)|0,c=c+Math.imul(L,ye)|0,f=f+Math.imul(L,we)|0,f=f+Math.imul(K,ye)|0,g=g+Math.imul(K,we)|0,c=c+Math.imul(P,_e)|0,f=f+Math.imul(P,xe)|0,f=f+Math.imul(F,_e)|0,g=g+Math.imul(F,xe)|0,c=c+Math.imul(j,Me)|0,f=f+Math.imul(j,Ee)|0,f=f+Math.imul(O,Me)|0,g=g+Math.imul(O,Ee)|0;var $t=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+($t>>>26)|0,$t&=67108863,c=Math.imul(ie,ue),f=Math.imul(ie,le),f=f+Math.imul(ne,ue)|0,g=Math.imul(ne,le),c=c+Math.imul(re,ce)|0,f=f+Math.imul(re,he)|0,f=f+Math.imul(te,ce)|0,g=g+Math.imul(te,he)|0,c=c+Math.imul(Q,de)|0,f=f+Math.imul(Q,pe)|0,f=f+Math.imul(ee,de)|0,g=g+Math.imul(ee,pe)|0,c=c+Math.imul(X,ve)|0,f=f+Math.imul(X,me)|0,f=f+Math.imul(J,ve)|0,g=g+Math.imul(J,me)|0,c=c+Math.imul(Z,ge)|0,f=f+Math.imul(Z,be)|0,f=f+Math.imul(Y,ge)|0,g=g+Math.imul(Y,be)|0,c=c+Math.imul(G,ye)|0,f=f+Math.imul(G,we)|0,f=f+Math.imul($,ye)|0,g=g+Math.imul($,we)|0,c=c+Math.imul(L,_e)|0,f=f+Math.imul(L,xe)|0,f=f+Math.imul(K,_e)|0,g=g+Math.imul(K,xe)|0,c=c+Math.imul(P,Me)|0,f=f+Math.imul(P,Ee)|0,f=f+Math.imul(F,Me)|0,g=g+Math.imul(F,Ee)|0;var Zt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,c=Math.imul(ie,ce),f=Math.imul(ie,he),f=f+Math.imul(ne,ce)|0,g=Math.imul(ne,he),c=c+Math.imul(re,de)|0,f=f+Math.imul(re,pe)|0,f=f+Math.imul(te,de)|0,g=g+Math.imul(te,pe)|0,c=c+Math.imul(Q,ve)|0,f=f+Math.imul(Q,me)|0,f=f+Math.imul(ee,ve)|0,g=g+Math.imul(ee,me)|0,c=c+Math.imul(X,ge)|0,f=f+Math.imul(X,be)|0,f=f+Math.imul(J,ge)|0,g=g+Math.imul(J,be)|0,c=c+Math.imul(Z,ye)|0,f=f+Math.imul(Z,we)|0,f=f+Math.imul(Y,ye)|0,g=g+Math.imul(Y,we)|0,c=c+Math.imul(G,_e)|0,f=f+Math.imul(G,xe)|0,f=f+Math.imul($,_e)|0,g=g+Math.imul($,xe)|0,c=c+Math.imul(L,Me)|0,f=f+Math.imul(L,Ee)|0,f=f+Math.imul(K,Me)|0,g=g+Math.imul(K,Ee)|0;var Yt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,c=Math.imul(ie,de),f=Math.imul(ie,pe),f=f+Math.imul(ne,de)|0,g=Math.imul(ne,pe),c=c+Math.imul(re,ve)|0,f=f+Math.imul(re,me)|0,f=f+Math.imul(te,ve)|0,g=g+Math.imul(te,me)|0,c=c+Math.imul(Q,ge)|0,f=f+Math.imul(Q,be)|0,f=f+Math.imul(ee,ge)|0,g=g+Math.imul(ee,be)|0,c=c+Math.imul(X,ye)|0,f=f+Math.imul(X,we)|0,f=f+Math.imul(J,ye)|0,g=g+Math.imul(J,we)|0,c=c+Math.imul(Z,_e)|0,f=f+Math.imul(Z,xe)|0,f=f+Math.imul(Y,_e)|0,g=g+Math.imul(Y,xe)|0,c=c+Math.imul(G,Me)|0,f=f+Math.imul(G,Ee)|0,f=f+Math.imul($,Me)|0,g=g+Math.imul($,Ee)|0;var Xt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,c=Math.imul(ie,ve),f=Math.imul(ie,me),f=f+Math.imul(ne,ve)|0,g=Math.imul(ne,me),c=c+Math.imul(re,ge)|0,f=f+Math.imul(re,be)|0,f=f+Math.imul(te,ge)|0,g=g+Math.imul(te,be)|0,c=c+Math.imul(Q,ye)|0,f=f+Math.imul(Q,we)|0,f=f+Math.imul(ee,ye)|0,g=g+Math.imul(ee,we)|0,c=c+Math.imul(X,_e)|0,f=f+Math.imul(X,xe)|0,f=f+Math.imul(J,_e)|0,g=g+Math.imul(J,xe)|0,c=c+Math.imul(Z,Me)|0,f=f+Math.imul(Z,Ee)|0,f=f+Math.imul(Y,Me)|0,g=g+Math.imul(Y,Ee)|0;var Jt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,c=Math.imul(ie,ge),f=Math.imul(ie,be),f=f+Math.imul(ne,ge)|0,g=Math.imul(ne,be),c=c+Math.imul(re,ye)|0,f=f+Math.imul(re,we)|0,f=f+Math.imul(te,ye)|0,g=g+Math.imul(te,we)|0,c=c+Math.imul(Q,_e)|0,f=f+Math.imul(Q,xe)|0,f=f+Math.imul(ee,_e)|0,g=g+Math.imul(ee,xe)|0,c=c+Math.imul(X,Me)|0,f=f+Math.imul(X,Ee)|0,f=f+Math.imul(J,Me)|0,g=g+Math.imul(J,Ee)|0;var Qt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,c=Math.imul(ie,ye),f=Math.imul(ie,we),f=f+Math.imul(ne,ye)|0,g=Math.imul(ne,we),c=c+Math.imul(re,_e)|0,f=f+Math.imul(re,xe)|0,f=f+Math.imul(te,_e)|0,g=g+Math.imul(te,xe)|0,c=c+Math.imul(Q,Me)|0,f=f+Math.imul(Q,Ee)|0,f=f+Math.imul(ee,Me)|0,g=g+Math.imul(ee,Ee)|0;var ei=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(ei>>>26)|0,ei&=67108863,c=Math.imul(ie,_e),f=Math.imul(ie,xe),f=f+Math.imul(ne,_e)|0,g=Math.imul(ne,xe),c=c+Math.imul(re,Me)|0,f=f+Math.imul(re,Ee)|0,f=f+Math.imul(te,Me)|0,g=g+Math.imul(te,Ee)|0;var ri=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(ri>>>26)|0,ri&=67108863,c=Math.imul(ie,Me),f=Math.imul(ie,Ee),f=f+Math.imul(ne,Me)|0,g=Math.imul(ne,Ee);var ti=(v+c|0)+((f&8191)<<13)|0;return v=(g+(f>>>13)|0)+(ti>>>26)|0,ti&=67108863,p[0]=Oi,p[1]=He,p[2]=Ke,p[3]=Ft,p[4]=Lt,p[5]=Ht,p[6]=Kt,p[7]=Wt,p[8]=Vt,p[9]=Gt,p[10]=$t,p[11]=Zt,p[12]=Yt,p[13]=Xt,p[14]=Jt,p[15]=Qt,p[16]=ei,p[17]=ri,p[18]=ti,v!==0&&(p[19]=v,d.length++),d};Math.imul||(D=I);function z(B,l,b){b.negative=l.negative^B.negative,b.length=B.length+l.length;for(var d=0,o=0,u=0;u<b.length-1;u++){var p=o;o=0;for(var v=d&67108863,c=Math.min(u,l.length-1),f=Math.max(0,u-B.length+1);f<=c;f++){var g=u-f,_=B.words[g]|0,h=l.words[f]|0,x=_*h,C=x&67108863;p=p+(x/67108864|0)|0,C=C+v|0,v=C&67108863,p=p+(C>>>26)|0,o+=p>>>26,p&=67108863}b.words[u]=v,d=p,p=o}return d!==0?b.words[u]=d:b.length--,b.strip()}function W(B,l,b){var d=new N;return d.mulp(B,l,b)}i.prototype.mulTo=function(l,b){var d,o=this.length+l.length;return this.length===10&&l.length===10?d=D(this,l,b):o<63?d=I(this,l,b):o<1024?d=z(this,l,b):d=W(this,l,b),d};function N(B,l){this.x=B,this.y=l}N.prototype.makeRBT=function(l){for(var b=new Array(l),d=i.prototype._countBits(l)-1,o=0;o<l;o++)b[o]=this.revBin(o,d,l);return b},N.prototype.revBin=function(l,b,d){if(l===0||l===d-1)return l;for(var o=0,u=0;u<b;u++)o|=(l&1)<<b-u-1,l>>=1;return o},N.prototype.permute=function(l,b,d,o,u,p){for(var v=0;v<p;v++)o[v]=b[l[v]],u[v]=d[l[v]]},N.prototype.transform=function(l,b,d,o,u,p){this.permute(p,l,b,d,o,u);for(var v=1;v<u;v<<=1)for(var c=v<<1,f=Math.cos(2*Math.PI/c),g=Math.sin(2*Math.PI/c),_=0;_<u;_+=c)for(var h=f,x=g,C=0;C<v;C++){var j=d[_+C],O=o[_+C],U=d[_+C+v],P=o[_+C+v],F=h*U-x*P;P=h*P+x*U,U=F,d[_+C]=j+U,o[_+C]=O+P,d[_+C+v]=j-U,o[_+C+v]=O-P,C!==c&&(F=f*h-g*x,x=f*x+g*h,h=F)}},N.prototype.guessLen13b=function(l,b){var d=Math.max(b,l)|1,o=d&1,u=0;for(d=d/2|0;d;d=d>>>1)u++;return 1<<u+1+o},N.prototype.conjugate=function(l,b,d){if(!(d<=1))for(var o=0;o<d/2;o++){var u=l[o];l[o]=l[d-o-1],l[d-o-1]=u,u=b[o],b[o]=-b[d-o-1],b[d-o-1]=-u}},N.prototype.normalize13b=function(l,b){for(var d=0,o=0;o<b/2;o++){var u=Math.round(l[2*o+1]/b)*8192+Math.round(l[2*o]/b)+d;l[o]=u&67108863,u<67108864?d=0:d=u/67108864|0}return l},N.prototype.convert13b=function(l,b,d,o){for(var u=0,p=0;p<b;p++)u=u+(l[p]|0),d[2*p]=u&8191,u=u>>>13,d[2*p+1]=u&8191,u=u>>>13;for(p=2*b;p<o;++p)d[p]=0;t(u===0),t((u&-8192)===0)},N.prototype.stub=function(l){for(var b=new Array(l),d=0;d<l;d++)b[d]=0;return b},N.prototype.mulp=function(l,b,d){var o=2*this.guessLen13b(l.length,b.length),u=this.makeRBT(o),p=this.stub(o),v=new Array(o),c=new Array(o),f=new Array(o),g=new Array(o),_=new Array(o),h=new Array(o),x=d.words;x.length=o,this.convert13b(l.words,l.length,v,o),this.convert13b(b.words,b.length,g,o),this.transform(v,p,c,f,o,u),this.transform(g,p,_,h,o,u);for(var C=0;C<o;C++){var j=c[C]*_[C]-f[C]*h[C];f[C]=c[C]*h[C]+f[C]*_[C],c[C]=j}return this.conjugate(c,f,o),this.transform(c,f,x,p,o,u),this.conjugate(x,p,o),this.normalize13b(x,o),d.negative=l.negative^b.negative,d.length=l.length+b.length,d.strip()},i.prototype.mul=function(l){var b=new i(null);return b.words=new Array(this.length+l.length),this.mulTo(l,b)},i.prototype.mulf=function(l){var b=new i(null);return b.words=new Array(this.length+l.length),W(this,l,b)},i.prototype.imul=function(l){return this.clone().mulTo(l,this)},i.prototype.imuln=function(l){t(typeof l=="number"),t(l<67108864);for(var b=0,d=0;d<this.length;d++){var o=(this.words[d]|0)*l,u=(o&67108863)+(b&67108863);b>>=26,b+=o/67108864|0,b+=u>>>26,this.words[d]=u&67108863}return b!==0&&(this.words[d]=b,this.length++),this.length=l===0?1:this.length,this},i.prototype.muln=function(l){return this.clone().imuln(l)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(l){var b=R(l);if(b.length===0)return new i(1);for(var d=this,o=0;o<b.length&&b[o]===0;o++,d=d.sqr());if(++o<b.length)for(var u=d.sqr();o<b.length;o++,u=u.sqr())b[o]!==0&&(d=d.mul(u));return d},i.prototype.iushln=function(l){t(typeof l=="number"&&l>=0);var b=l%26,d=(l-b)/26,o=67108863>>>26-b<<26-b,u;if(b!==0){var p=0;for(u=0;u<this.length;u++){var v=this.words[u]&o,c=(this.words[u]|0)-v<<b;this.words[u]=c|p,p=v>>>26-b}p&&(this.words[u]=p,this.length++)}if(d!==0){for(u=this.length-1;u>=0;u--)this.words[u+d]=this.words[u];for(u=0;u<d;u++)this.words[u]=0;this.length+=d}return this.strip()},i.prototype.ishln=function(l){return t(this.negative===0),this.iushln(l)},i.prototype.iushrn=function(l,b,d){t(typeof l=="number"&&l>=0);var o;b?o=(b-b%26)/26:o=0;var u=l%26,p=Math.min((l-u)/26,this.length),v=67108863^67108863>>>u<<u,c=d;if(o-=p,o=Math.max(0,o),c){for(var f=0;f<p;f++)c.words[f]=this.words[f];c.length=p}if(p!==0)if(this.length>p)for(this.length-=p,f=0;f<this.length;f++)this.words[f]=this.words[f+p];else this.words[0]=0,this.length=1;var g=0;for(f=this.length-1;f>=0&&(g!==0||f>=o);f--){var _=this.words[f]|0;this.words[f]=g<<26-u|_>>>u,g=_&v}return c&&g!==0&&(c.words[c.length++]=g),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(l,b,d){return t(this.negative===0),this.iushrn(l,b,d)},i.prototype.shln=function(l){return this.clone().ishln(l)},i.prototype.ushln=function(l){return this.clone().iushln(l)},i.prototype.shrn=function(l){return this.clone().ishrn(l)},i.prototype.ushrn=function(l){return this.clone().iushrn(l)},i.prototype.testn=function(l){t(typeof l=="number"&&l>=0);var b=l%26,d=(l-b)/26,o=1<<b;if(this.length<=d)return!1;var u=this.words[d];return!!(u&o)},i.prototype.imaskn=function(l){t(typeof l=="number"&&l>=0);var b=l%26,d=(l-b)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=d)return this;if(b!==0&&d++,this.length=Math.min(d,this.length),b!==0){var o=67108863^67108863>>>b<<b;this.words[this.length-1]&=o}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.maskn=function(l){return this.clone().imaskn(l)},i.prototype.iaddn=function(l){return t(typeof l=="number"),t(l<67108864),l<0?this.isubn(-l):this.negative!==0?this.length===1&&(this.words[0]|0)<l?(this.words[0]=l-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(l),this.negative=1,this):this._iaddn(l)},i.prototype._iaddn=function(l){this.words[0]+=l;for(var b=0;b<this.length&&this.words[b]>=67108864;b++)this.words[b]-=67108864,b===this.length-1?this.words[b+1]=1:this.words[b+1]++;return this.length=Math.max(this.length,b+1),this},i.prototype.isubn=function(l){if(t(typeof l=="number"),t(l<67108864),l<0)return this.iaddn(-l);if(this.negative!==0)return this.negative=0,this.iaddn(l),this.negative=1,this;if(this.words[0]-=l,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var b=0;b<this.length&&this.words[b]<0;b++)this.words[b]+=67108864,this.words[b+1]-=1;return this.strip()},i.prototype.addn=function(l){return this.clone().iaddn(l)},i.prototype.subn=function(l){return this.clone().isubn(l)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(l,b,d){var o=l.length+d,u;this._expand(o);var p,v=0;for(u=0;u<l.length;u++){p=(this.words[u+d]|0)+v;var c=(l.words[u]|0)*b;p-=c&67108863,v=(p>>26)-(c/67108864|0),this.words[u+d]=p&67108863}for(;u<this.length-d;u++)p=(this.words[u+d]|0)+v,v=p>>26,this.words[u+d]=p&67108863;if(v===0)return this.strip();for(t(v===-1),v=0,u=0;u<this.length;u++)p=-(this.words[u]|0)+v,v=p>>26,this.words[u]=p&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(l,b){var d=this.length-l.length,o=this.clone(),u=l,p=u.words[u.length-1]|0,v=this._countBits(p);d=26-v,d!==0&&(u=u.ushln(d),o.iushln(d),p=u.words[u.length-1]|0);var c=o.length-u.length,f;if(b!=="mod"){f=new i(null),f.length=c+1,f.words=new Array(f.length);for(var g=0;g<f.length;g++)f.words[g]=0}var _=o.clone()._ishlnsubmul(u,1,c);_.negative===0&&(o=_,f&&(f.words[c]=1));for(var h=c-1;h>=0;h--){var x=(o.words[u.length+h]|0)*67108864+(o.words[u.length+h-1]|0);for(x=Math.min(x/p|0,67108863),o._ishlnsubmul(u,x,h);o.negative!==0;)x--,o.negative=0,o._ishlnsubmul(u,1,h),o.isZero()||(o.negative^=1);f&&(f.words[h]=x)}return f&&f.strip(),o.strip(),b!=="div"&&d!==0&&o.iushrn(d),{div:f||null,mod:o}},i.prototype.divmod=function(l,b,d){if(t(!l.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var o,u,p;return this.negative!==0&&l.negative===0?(p=this.neg().divmod(l,b),b!=="mod"&&(o=p.div.neg()),b!=="div"&&(u=p.mod.neg(),d&&u.negative!==0&&u.iadd(l)),{div:o,mod:u}):this.negative===0&&l.negative!==0?(p=this.divmod(l.neg(),b),b!=="mod"&&(o=p.div.neg()),{div:o,mod:p.mod}):(this.negative&l.negative)!==0?(p=this.neg().divmod(l.neg(),b),b!=="div"&&(u=p.mod.neg(),d&&u.negative!==0&&u.isub(l)),{div:p.div,mod:u}):l.length>this.length||this.cmp(l)<0?{div:new i(0),mod:this}:l.length===1?b==="div"?{div:this.divn(l.words[0]),mod:null}:b==="mod"?{div:null,mod:new i(this.modn(l.words[0]))}:{div:this.divn(l.words[0]),mod:new i(this.modn(l.words[0]))}:this._wordDiv(l,b)},i.prototype.div=function(l){return this.divmod(l,"div",!1).div},i.prototype.mod=function(l){return this.divmod(l,"mod",!1).mod},i.prototype.umod=function(l){return this.divmod(l,"mod",!0).mod},i.prototype.divRound=function(l){var b=this.divmod(l);if(b.mod.isZero())return b.div;var d=b.div.negative!==0?b.mod.isub(l):b.mod,o=l.ushrn(1),u=l.andln(1),p=d.cmp(o);return p<0||u===1&&p===0?b.div:b.div.negative!==0?b.div.isubn(1):b.div.iaddn(1)},i.prototype.modn=function(l){t(l<=67108863);for(var b=(1<<26)%l,d=0,o=this.length-1;o>=0;o--)d=(b*d+(this.words[o]|0))%l;return d},i.prototype.idivn=function(l){t(l<=67108863);for(var b=0,d=this.length-1;d>=0;d--){var o=(this.words[d]|0)+b*67108864;this.words[d]=o/l|0,b=o%l}return this.strip()},i.prototype.divn=function(l){return this.clone().idivn(l)},i.prototype.egcd=function(l){t(l.negative===0),t(!l.isZero());var b=this,d=l.clone();b.negative!==0?b=b.umod(l):b=b.clone();for(var o=new i(1),u=new i(0),p=new i(0),v=new i(1),c=0;b.isEven()&&d.isEven();)b.iushrn(1),d.iushrn(1),++c;for(var f=d.clone(),g=b.clone();!b.isZero();){for(var _=0,h=1;(b.words[0]&h)===0&&_<26;++_,h<<=1);if(_>0)for(b.iushrn(_);_-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(f),u.isub(g)),o.iushrn(1),u.iushrn(1);for(var x=0,C=1;(d.words[0]&C)===0&&x<26;++x,C<<=1);if(x>0)for(d.iushrn(x);x-- >0;)(p.isOdd()||v.isOdd())&&(p.iadd(f),v.isub(g)),p.iushrn(1),v.iushrn(1);b.cmp(d)>=0?(b.isub(d),o.isub(p),u.isub(v)):(d.isub(b),p.isub(o),v.isub(u))}return{a:p,b:v,gcd:d.iushln(c)}},i.prototype._invmp=function(l){t(l.negative===0),t(!l.isZero());var b=this,d=l.clone();b.negative!==0?b=b.umod(l):b=b.clone();for(var o=new i(1),u=new i(0),p=d.clone();b.cmpn(1)>0&&d.cmpn(1)>0;){for(var v=0,c=1;(b.words[0]&c)===0&&v<26;++v,c<<=1);if(v>0)for(b.iushrn(v);v-- >0;)o.isOdd()&&o.iadd(p),o.iushrn(1);for(var f=0,g=1;(d.words[0]&g)===0&&f<26;++f,g<<=1);if(f>0)for(d.iushrn(f);f-- >0;)u.isOdd()&&u.iadd(p),u.iushrn(1);b.cmp(d)>=0?(b.isub(d),o.isub(u)):(d.isub(b),u.isub(o))}var _;return b.cmpn(1)===0?_=o:_=u,_.cmpn(0)<0&&_.iadd(l),_},i.prototype.gcd=function(l){if(this.isZero())return l.abs();if(l.isZero())return this.abs();var b=this.clone(),d=l.clone();b.negative=0,d.negative=0;for(var o=0;b.isEven()&&d.isEven();o++)b.iushrn(1),d.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;d.isEven();)d.iushrn(1);var u=b.cmp(d);if(u<0){var p=b;b=d,d=p}else if(u===0||d.cmpn(1)===0)break;b.isub(d)}while(!0);return d.iushln(o)},i.prototype.invm=function(l){return this.egcd(l).a.umod(l)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(l){return this.words[0]&l},i.prototype.bincn=function(l){t(typeof l=="number");var b=l%26,d=(l-b)/26,o=1<<b;if(this.length<=d)return this._expand(d+1),this.words[d]|=o,this;for(var u=o,p=d;u!==0&&p<this.length;p++){var v=this.words[p]|0;v+=u,u=v>>>26,v&=67108863,this.words[p]=v}return u!==0&&(this.words[p]=u,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(l){var b=l<0;if(this.negative!==0&&!b)return-1;if(this.negative===0&&b)return 1;this.strip();var d;if(this.length>1)d=1;else{b&&(l=-l),t(l<=67108863,"Number is too big");var o=this.words[0]|0;d=o===l?0:o<l?-1:1}return this.negative!==0?-d|0:d},i.prototype.cmp=function(l){if(this.negative!==0&&l.negative===0)return-1;if(this.negative===0&&l.negative!==0)return 1;var b=this.ucmp(l);return this.negative!==0?-b|0:b},i.prototype.ucmp=function(l){if(this.length>l.length)return 1;if(this.length<l.length)return-1;for(var b=0,d=this.length-1;d>=0;d--){var o=this.words[d]|0,u=l.words[d]|0;if(o!==u){o<u?b=-1:o>u&&(b=1);break}}return b},i.prototype.gtn=function(l){return this.cmpn(l)===1},i.prototype.gt=function(l){return this.cmp(l)===1},i.prototype.gten=function(l){return this.cmpn(l)>=0},i.prototype.gte=function(l){return this.cmp(l)>=0},i.prototype.ltn=function(l){return this.cmpn(l)===-1},i.prototype.lt=function(l){return this.cmp(l)===-1},i.prototype.lten=function(l){return this.cmpn(l)<=0},i.prototype.lte=function(l){return this.cmp(l)<=0},i.prototype.eqn=function(l){return this.cmpn(l)===0},i.prototype.eq=function(l){return this.cmp(l)===0},i.red=function(l){return new Ae(l)},i.prototype.toRed=function(l){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),l.convertTo(this)._forceRed(l)},i.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(l){return this.red=l,this},i.prototype.forceRed=function(l){return t(!this.red,"Already a number in reduction context"),this._forceRed(l)},i.prototype.redAdd=function(l){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,l)},i.prototype.redIAdd=function(l){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,l)},i.prototype.redSub=function(l){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,l)},i.prototype.redISub=function(l){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,l)},i.prototype.redShl=function(l){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,l)},i.prototype.redMul=function(l){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.mul(this,l)},i.prototype.redIMul=function(l){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.imul(this,l)},i.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(l){return t(this.red&&!l.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,l)};var H={k256:null,p224:null,p192:null,p25519:null};function ze(B,l){this.name=B,this.p=new i(l,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ze.prototype._tmp=function(){var l=new i(null);return l.words=new Array(Math.ceil(this.n/13)),l},ze.prototype.ireduce=function(l){var b=l,d;do this.split(b,this.tmp),b=this.imulK(b),b=b.iadd(this.tmp),d=b.bitLength();while(d>this.n);var o=d<this.n?-1:b.ucmp(this.p);return o===0?(b.words[0]=0,b.length=1):o>0?b.isub(this.p):b.strip!==void 0?b.strip():b._strip(),b},ze.prototype.split=function(l,b){l.iushrn(this.n,0,b)},ze.prototype.imulK=function(l){return l.imul(this.k)};function Oe(){ze.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(Oe,ze),Oe.prototype.split=function(l,b){for(var d=4194303,o=Math.min(l.length,9),u=0;u<o;u++)b.words[u]=l.words[u];if(b.length=o,l.length<=9){l.words[0]=0,l.length=1;return}var p=l.words[9];for(b.words[b.length++]=p&d,u=10;u<l.length;u++){var v=l.words[u]|0;l.words[u-10]=(v&d)<<4|p>>>22,p=v}p>>>=22,l.words[u-10]=p,p===0&&l.length>10?l.length-=10:l.length-=9},Oe.prototype.imulK=function(l){l.words[l.length]=0,l.words[l.length+1]=0,l.length+=2;for(var b=0,d=0;d<l.length;d++){var o=l.words[d]|0;b+=o*977,l.words[d]=b&67108863,b=o*64+(b/67108864|0)}return l.words[l.length-1]===0&&(l.length--,l.words[l.length-1]===0&&l.length--),l};function ar(){ze.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(ar,ze);function De(){ze.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(De,ze);function We(){ze.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(We,ze),We.prototype.imulK=function(l){for(var b=0,d=0;d<l.length;d++){var o=(l.words[d]|0)*19+b,u=o&67108863;o>>>=26,l.words[d]=u,b=o}return b!==0&&(l.words[l.length++]=b),l},i._prime=function(l){if(H[l])return H[l];var b;if(l==="k256")b=new Oe;else if(l==="p224")b=new ar;else if(l==="p192")b=new De;else if(l==="p25519")b=new We;else throw new Error("Unknown prime "+l);return H[l]=b,b};function Ae(B){if(typeof B=="string"){var l=i._prime(B);this.m=l.p,this.prime=l}else t(B.gtn(1),"modulus must be greater than 1"),this.m=B,this.prime=null}Ae.prototype._verify1=function(l){t(l.negative===0,"red works only with positives"),t(l.red,"red works only with red numbers")},Ae.prototype._verify2=function(l,b){t((l.negative|b.negative)===0,"red works only with positives"),t(l.red&&l.red===b.red,"red works only with red numbers")},Ae.prototype.imod=function(l){return this.prime?this.prime.ireduce(l)._forceRed(this):l.umod(this.m)._forceRed(this)},Ae.prototype.neg=function(l){return l.isZero()?l.clone():this.m.sub(l)._forceRed(this)},Ae.prototype.add=function(l,b){this._verify2(l,b);var d=l.add(b);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},Ae.prototype.iadd=function(l,b){this._verify2(l,b);var d=l.iadd(b);return d.cmp(this.m)>=0&&d.isub(this.m),d},Ae.prototype.sub=function(l,b){this._verify2(l,b);var d=l.sub(b);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},Ae.prototype.isub=function(l,b){this._verify2(l,b);var d=l.isub(b);return d.cmpn(0)<0&&d.iadd(this.m),d},Ae.prototype.shl=function(l,b){return this._verify1(l),this.imod(l.ushln(b))},Ae.prototype.imul=function(l,b){return this._verify2(l,b),this.imod(l.imul(b))},Ae.prototype.mul=function(l,b){return this._verify2(l,b),this.imod(l.mul(b))},Ae.prototype.isqr=function(l){return this.imul(l,l.clone())},Ae.prototype.sqr=function(l){return this.mul(l,l)},Ae.prototype.sqrt=function(l){if(l.isZero())return l.clone();var b=this.m.andln(3);if(t(b%2===1),b===3){var d=this.m.add(new i(1)).iushrn(2);return this.pow(l,d)}for(var o=this.m.subn(1),u=0;!o.isZero()&&o.andln(1)===0;)u++,o.iushrn(1);t(!o.isZero());var p=new i(1).toRed(this),v=p.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);this.pow(f,c).cmp(v)!==0;)f.redIAdd(v);for(var g=this.pow(f,o),_=this.pow(l,o.addn(1).iushrn(1)),h=this.pow(l,o),x=u;h.cmp(p)!==0;){for(var C=h,j=0;C.cmp(p)!==0;j++)C=C.redSqr();t(j<x);var O=this.pow(g,new i(1).iushln(x-j-1));_=_.redMul(O),g=O.redSqr(),h=h.redMul(g),x=j}return _},Ae.prototype.invm=function(l){var b=l._invmp(this.m);return b.negative!==0?(b.negative=0,this.imod(b).redNeg()):this.imod(b)},Ae.prototype.pow=function(l,b){if(b.isZero())return new i(1).toRed(this);if(b.cmpn(1)===0)return l.clone();var d=4,o=new Array(1<<d);o[0]=new i(1).toRed(this),o[1]=l;for(var u=2;u<o.length;u++)o[u]=this.mul(o[u-1],l);var p=o[0],v=0,c=0,f=b.bitLength()%26;for(f===0&&(f=26),u=b.length-1;u>=0;u--){for(var g=b.words[u],_=f-1;_>=0;_--){var h=g>>_&1;if(p!==o[0]&&(p=this.sqr(p)),h===0&&v===0){c=0;continue}v<<=1,v|=h,c++,!(c!==d&&(u!==0||_!==0))&&(p=this.mul(p,o[v]),c=0,v=0)}f=26}return p},Ae.prototype.convertTo=function(l){var b=l.umod(this.m);return b===l?b.clone():b},Ae.prototype.convertFrom=function(l){var b=l.clone();return b.red=null,b},i.mont=function(l){return new Je(l)};function Je(B){Ae.call(this,B),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}n(Je,Ae),Je.prototype.convertTo=function(l){return this.imod(l.ushln(this.shift))},Je.prototype.convertFrom=function(l){var b=this.imod(l.mul(this.rinv));return b.red=null,b},Je.prototype.imul=function(l,b){if(l.isZero()||b.isZero())return l.words[0]=0,l.length=1,l;var d=l.imul(b),o=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=d.isub(o).iushrn(this.shift),p=u;return u.cmp(this.m)>=0?p=u.isub(this.m):u.cmpn(0)<0&&(p=u.iadd(this.m)),p._forceRed(this)},Je.prototype.mul=function(l,b){if(l.isZero()||b.isZero())return new i(0)._forceRed(this);var d=l.mul(b),o=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=d.isub(o).iushrn(this.shift),p=u;return u.cmp(this.m)>=0?p=u.isub(this.m):u.cmpn(0)<0&&(p=u.iadd(this.m)),p._forceRed(this)},Je.prototype.invm=function(l){var b=this.imod(l._invmp(this.m).mul(this.r2));return b._forceRed(this)}})(typeof S6>"u"||S6,I4)});var T4=A((gI,q6)=>{y();var B6;q6.exports=function(e){return B6||(B6=new Nt(null)),B6.generate(e)};function Nt(r){this.rand=r}q6.exports.Rand=Nt;Nt.prototype.generate=function(e){return this._rand(e)};Nt.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?Nt.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?Nt.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:typeof window=="object"&&(Nt.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(A6=La(),typeof A6.randomBytes!="function")throw new Error("Not supported");Nt.prototype._rand=function(e){return A6.randomBytes(e)}}catch{}var A6});var k6=A((yI,C4)=>{y();var Ii=zt(),aM=T4();function Ti(r){this.rand=r||new aM.Rand}C4.exports=Ti;Ti.create=function(e){return new Ti(e)};Ti.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do var i=new Ii(this.rand.generate(n));while(i.cmp(e)>=0);return i};Ti.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))};Ti.prototype.test=function(e,t,n){var i=e.bitLength(),a=Ii.mont(e),s=new Ii(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var m=e.subn(1),w=0;!m.testn(w);w++);for(var E=e.shrn(w),q=m.toRed(a),k=!0;t>0;t--){var R=this._randrange(new Ii(2),m);n&&n(R);var I=R.toRed(a).redPow(E);if(!(I.cmp(s)===0||I.cmp(q)===0)){for(var D=1;D<w;D++){if(I=I.redSqr(),I.cmp(s)===0)return!1;if(I.cmp(q)===0)break}if(D===w)return!1}}return k};Ti.prototype.getDivisor=function(e,t){var n=e.bitLength(),i=Ii.mont(e),a=new Ii(1).toRed(i);t||(t=Math.max(1,n/48|0));for(var s=e.subn(1),m=0;!s.testn(m);m++);for(var w=e.shrn(m),E=s.toRed(i);t>0;t--){var q=this._randrange(new Ii(2),s),k=e.gcd(q);if(k.cmpn(1)!==0)return k;var R=q.toRed(i).redPow(w);if(!(R.cmp(a)===0||R.cmp(E)===0)){for(var I=1;I<m;I++){if(R=R.redSqr(),R.cmp(a)===0)return R.fromRed().subn(1).gcd(e);if(R.cmp(E)===0)break}if(I===m)return R=R.redSqr(),R.fromRed().subn(1).gcd(e)}}return!1}});var O6=A((SI,D4)=>{y();var oM=fi();D4.exports=j6;j6.simpleSieve=T6;j6.fermatTest=C6;var nr=zt(),sM=new nr(24),fM=k6(),j4=new fM,uM=new nr(1),I6=new nr(2),lM=new nr(5),_I=new nr(16),xI=new nr(8),cM=new nr(10),hM=new nr(3),MI=new nr(7),dM=new nr(11),O4=new nr(4),EI=new nr(12),R6=null;function pM(){if(R6!==null)return R6;var r=1048576,e=[];e[0]=2;for(var t=1,n=3;n<r;n+=2){for(var i=Math.ceil(Math.sqrt(n)),a=0;a<t&&e[a]<=i&&n%e[a]!==0;a++);t!==a&&e[a]<=i||(e[t++]=n)}return R6=e,e}function T6(r){for(var e=pM(),t=0;t<e.length;t++)if(r.modn(e[t])===0)return r.cmpn(e[t])===0;return!0}function C6(r){var e=nr.mont(r);return I6.toRed(e).redPow(r.subn(1)).fromRed().cmpn(1)===0}function j6(r,e){if(r<16)return e===2||e===5?new nr([140,123]):new nr([140,39]);e=new nr(e);for(var t,n;;){for(t=new nr(oM(Math.ceil(r/8)));t.bitLength()>r;)t.ishrn(1);if(t.isEven()&&t.iadd(uM),t.testn(1)||t.iadd(I6),e.cmp(I6)){if(!e.cmp(lM))for(;t.mod(cM).cmp(hM);)t.iadd(O4)}else for(;t.mod(sM).cmp(dM);)t.iadd(O4);if(n=t.shrn(1),T6(n)&&T6(t)&&C6(n)&&C6(t)&&j4.test(n)&&j4.test(t))return t}}});var P4=A((AI,vM)=>{vM.exports={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"}}});var F4=A((qI,N4)=>{y();var Sr=zt(),mM=k6(),U4=new mM,gM=new Sr(24),bM=new Sr(11),yM=new Sr(10),wM=new Sr(3),_M=new Sr(7),z4=O6(),xM=fi();N4.exports=Mt;function MM(r,e){return e=e||"utf8",S.Buffer.isBuffer(r)||(r=new S.Buffer(r,e)),this._pub=new Sr(r),this}function EM(r,e){return e=e||"utf8",S.Buffer.isBuffer(r)||(r=new S.Buffer(r,e)),this._priv=new Sr(r),this}var O1={};function SM(r,e){var t=e.toString("hex"),n=[t,r.toString(16)].join("_");if(n in O1)return O1[n];var i=0;if(r.isEven()||!z4.simpleSieve||!z4.fermatTest(r)||!U4.test(r))return i+=1,t==="02"||t==="05"?i+=8:i+=4,O1[n]=i,i;U4.test(r.shrn(1))||(i+=2);var a;switch(t){case"02":r.mod(gM).cmp(bM)&&(i+=8);break;case"05":a=r.mod(yM),a.cmp(wM)&&a.cmp(_M)&&(i+=8);break;default:i+=4}return O1[n]=i,i}function Mt(r,e,t){this.setGenerator(e),this.__prime=new Sr(r),this._prime=Sr.mont(this.__prime),this._primeLen=r.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,t?(this.setPublicKey=MM,this.setPrivateKey=EM):this._primeCode=8}Object.defineProperty(Mt.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=SM(this.__prime,this.__gen)),this._primeCode}});Mt.prototype.generateKeys=function(){return this._priv||(this._priv=new Sr(xM(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};Mt.prototype.computeSecret=function(r){r=new Sr(r),r=r.toRed(this._prime);var e=r.redPow(this._priv).fromRed(),t=new S.Buffer(e.toArray()),n=this.getPrime();if(t.length<n.length){var i=new S.Buffer(n.length-t.length);i.fill(0),t=S.Buffer.concat([i,t])}return t};Mt.prototype.getPublicKey=function(e){return D1(this._pub,e)};Mt.prototype.getPrivateKey=function(e){return D1(this._priv,e)};Mt.prototype.getPrime=function(r){return D1(this.__prime,r)};Mt.prototype.getGenerator=function(r){return D1(this._gen,r)};Mt.prototype.setGenerator=function(r,e){return e=e||"utf8",S.Buffer.isBuffer(r)||(r=new S.Buffer(r,e)),this.__gen=r,this._gen=new Sr(r),this};function D1(r,e){var t=new S.Buffer(r.toArray());return e?t.toString(e):t}});var K4=A(_n=>{y();var BM=O6(),L4=P4(),D6=F4();function AM(r){var e=new S.Buffer(L4[r].prime,"hex"),t=new S.Buffer(L4[r].gen,"hex");return new D6(e,t)}var qM={binary:!0,hex:!0,base64:!0};function H4(r,e,t,n){return S.Buffer.isBuffer(e)||qM[e]===void 0?H4(r,"binary",e,t):(e=e||"binary",n=n||"binary",t=t||new S.Buffer([2]),S.Buffer.isBuffer(t)||(t=new S.Buffer(t,n)),typeof r=="number"?new D6(BM(r,t),t,!0):(S.Buffer.isBuffer(r)||(r=new S.Buffer(r,e)),new D6(r,t,!0)))}_n.DiffieHellmanGroup=_n.createDiffieHellmanGroup=_n.getDiffieHellman=AM;_n.createDiffieHellman=_n.DiffieHellman=H4});var W4=A((exports,module)=>{y();var indexOf=function(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0;t<r.length;t++)if(r[t]===e)return t;return-1},Object_keys=function(r){if(Object.keys)return Object.keys(r);var e=[];for(var t in r)e.push(t);return e},forEach=function(r,e){if(r.forEach)return r.forEach(e);for(var t=0;t<r.length;t++)e(r[t],t,r)},defineProp=(function(){try{return Object.defineProperty({},"_",{}),function(r,e,t){Object.defineProperty(r,e,{writable:!0,enumerable:!1,configurable:!0,value:t})}}catch{return function(e,t,n){e[t]=n}}})(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(r){if(!(r instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var t=e.contentWindow,n=t.eval,i=t.execScript;!n&&i&&(i.call(t,"null"),n=t.eval),forEach(Object_keys(r),function(m){t[m]=r[m]}),forEach(globals,function(m){r[m]&&(t[m]=r[m])});var a=Object_keys(t),s=n.call(t,this.code);return forEach(Object_keys(t),function(m){(m in r||indexOf(a,m)===-1)&&(r[m]=t[m])}),forEach(globals,function(m){m in r||defineProp(r,m,t[m])}),document.body.removeChild(e),s};Script.prototype.runInThisContext=function(){return eval(this.code)};Script.prototype.runInNewContext=function(r){var e=Script.createContext(r),t=this.runInContext(e);return r&&forEach(Object_keys(e),function(n){r[n]=e[n]}),t};forEach(Object_keys(Script.prototype),function(r){exports[r]=Script[r]=function(e){var t=Script(e);return t[r].apply(t,[].slice.call(arguments,1))}});exports.isContext=function(r){return r instanceof Context};exports.createScript=function(r){return exports.Script(r)};exports.createContext=Script.createContext=function(r){var e=new Context;return typeof r=="object"&&forEach(Object_keys(r),function(t){e[t]=r[t]}),e}});var $4=A(G4=>{y();var V4=Mn(),kM=V(),RM=G4;RM.define=function(e,t){return new xn(e,t)};function xn(r,e){this.name=r,this.body=e,this.decoders={},this.encoders={}}xn.prototype._createNamed=function(e){var t;try{t=W4().runInThisContext("(function "+this.name+`(entity) {
|
|
11
|
+
`)+" "+t[1]:t[0]+e+" "+r.join(", ")+" "+t[1]}Ie.types=cl();function ml(r){return Array.isArray(r)}Ie.isArray=ml;function Q2(r){return typeof r=="boolean"}Ie.isBoolean=Q2;function jo(r){return r===null}Ie.isNull=jo;function Gm(r){return r==null}Ie.isNullOrUndefined=Gm;function gl(r){return typeof r=="number"}Ie.isNumber=gl;function Oo(r){return typeof r=="string"}Ie.isString=Oo;function $m(r){return typeof r=="symbol"}Ie.isSymbol=$m;function pi(r){return r===void 0}Ie.isUndefined=pi;function ia(r){return nn(r)&&e0(r)==="[object RegExp]"}Ie.isRegExp=ia;Ie.types.isRegExp=ia;function nn(r){return typeof r=="object"&&r!==null}Ie.isObject=nn;function Co(r){return nn(r)&&e0(r)==="[object Date]"}Ie.isDate=Co;Ie.types.isDate=Co;function na(r){return nn(r)&&(e0(r)==="[object Error]"||r instanceof Error)}Ie.isError=na;Ie.types.isNativeError=na;function Io(r){return typeof r=="function"}Ie.isFunction=Io;function Zm(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}Ie.isPrimitive=Zm;Ie.isBuffer=dl();function e0(r){return Object.prototype.toString.call(r)}function X2(r){return r<10?"0"+r.toString(10):r.toString(10)}var Ym=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Xm(){var r=new Date,e=[X2(r.getHours()),X2(r.getMinutes()),X2(r.getSeconds())].join(":");return[r.getDate(),Ym[r.getMonth()],e].join(" ")}Ie.log=function(){console.log("%s - %s",Xm(),Ie.format.apply(Ie,arguments))};Ie.inherits=V();Ie._extend=function(r,e){if(!e||!nn(e))return r;for(var t=Object.keys(e),n=t.length;n--;)r[t[n]]=e[t[n]];return r};function bl(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var di=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Ie.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(di&&e[di]){var t=e[di];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,di,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var n,i,a=new Promise(function(w,E){n=w,i=E}),s=[],m=0;m<arguments.length;m++)s.push(arguments[m]);s.push(function(w,E){w?i(w):n(E)});try{e.apply(this,s)}catch(w){i(w)}return a}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),di&&Object.defineProperty(t,di,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,pl(e))};Ie.promisify.custom=di;function Jm(r,e){if(!r){var t=new Error("Promise was rejected with a falsy value");t.reason=r,r=t}return e(r)}function Qm(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');function e(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if(typeof i!="function")throw new TypeError("The last argument must be of type Function");var a=this,s=function(){return i.apply(a,arguments)};r.apply(this,t).then(function(m){M.default.nextTick(s.bind(null,null,m))},function(m){M.default.nextTick(Jm.bind(null,m,s))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(r)),Object.defineProperties(e,pl(r)),e}Ie.callbackify=Qm});var El=A((fq,Ml)=>{"use strict";y();function yl(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function wl(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?yl(Object(t),!0).forEach(function(n){eg(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):yl(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function eg(r,e,t){return e=xl(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function rg(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function _l(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,xl(n.key),n)}}function tg(r,e,t){return e&&_l(r.prototype,e),t&&_l(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function xl(r){var e=ig(r,"string");return typeof e=="symbol"?e:String(e)}function ig(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var ng=or(),Do=ng.Buffer,ag=aa(),r0=ag.inspect,og=r0&&r0.custom||"inspect";function sg(r,e,t){Do.prototype.copy.call(r,e,t)}Ml.exports=(function(){function r(){rg(this,r),this.head=null,this.tail=null,this.length=0}return tg(r,[{key:"push",value:function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=t+n.data;return i}},{key:"concat",value:function(t){if(this.length===0)return Do.alloc(0);for(var n=Do.allocUnsafe(t>>>0),i=this.head,a=0;i;)sg(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(t,n){var i;return t<this.head.data.length?(i=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):t===this.head.data.length?i=this.shift():i=n?this._getString(t):this._getBuffer(t),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var n=this.head,i=1,a=n.data;for(t-=a.length;n=n.next;){var s=n.data,m=t>s.length?s.length:t;if(m===s.length?a+=s:a+=s.slice(0,t),t-=m,t===0){m===s.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(m));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(t){var n=Do.allocUnsafe(t),i=this.head,a=1;for(i.data.copy(n),t-=i.data.length;i=i.next;){var s=i.data,m=t>s.length?s.length:t;if(s.copy(n,n.length-t,0,m),t-=m,t===0){m===s.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(m));break}++a}return this.length-=a,n}},{key:og,value:function(t,n){return r0(this,wl(wl({},n),{},{depth:0,customInspect:!1}))}}]),r})()});var i0=A((lq,Bl)=>{"use strict";y();function fg(r,e){var t=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,M.default.nextTick(t0,this,r)):M.default.nextTick(t0,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(a){!e&&a?t._writableState?t._writableState.errorEmitted?M.default.nextTick(Po,t):(t._writableState.errorEmitted=!0,M.default.nextTick(Sl,t,a)):M.default.nextTick(Sl,t,a):e?(M.default.nextTick(Po,t),e(a)):M.default.nextTick(Po,t)}),this)}function Sl(r,e){t0(r,e),Po(r)}function Po(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function ug(){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 t0(r,e){r.emit("error",e)}function lg(r,e){var t=r._readableState,n=r._writableState;t&&t.autoDestroy||n&&n.autoDestroy?r.destroy(e):r.emit("error",e)}Bl.exports={destroy:fg,undestroy:ug,errorOrDestroy:lg}});var vi=A((hq,kl)=>{"use strict";y();function cg(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var ql={};function wr(r,e,t){t||(t=Error);function n(a,s,m){return typeof e=="string"?e:e(a,s,m)}var i=(function(a){cg(s,a);function s(m,w,E){return a.call(this,n(m,w,E))||this}return s})(t);i.prototype.name=t.name,i.prototype.code=r,ql[r]=i}function Al(r,e){if(Array.isArray(r)){var t=r.length;return r=r.map(function(n){return String(n)}),t>2?"one of ".concat(e," ").concat(r.slice(0,t-1).join(", "),", or ")+r[t-1]:t===2?"one of ".concat(e," ").concat(r[0]," or ").concat(r[1]):"of ".concat(e," ").concat(r[0])}else return"of ".concat(e," ").concat(String(r))}function hg(r,e,t){return r.substr(!t||t<0?0:+t,e.length)===e}function dg(r,e,t){return(t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function pg(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?!1:r.indexOf(e,t)!==-1}wr("ERR_INVALID_OPT_VALUE",function(r,e){return'The value "'+e+'" is invalid for option "'+r+'"'},TypeError);wr("ERR_INVALID_ARG_TYPE",function(r,e,t){var n;typeof e=="string"&&hg(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";var i;if(dg(r," argument"))i="The ".concat(r," ").concat(n," ").concat(Al(e,"type"));else{var a=pg(r,".")?"property":"argument";i='The "'.concat(r,'" ').concat(a," ").concat(n," ").concat(Al(e,"type"))}return i+=". Received type ".concat(typeof t),i},TypeError);wr("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");wr("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});wr("ERR_STREAM_PREMATURE_CLOSE","Premature close");wr("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"});wr("ERR_MULTIPLE_CALLBACK","Callback called multiple times");wr("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");wr("ERR_STREAM_WRITE_AFTER_END","write after end");wr("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);wr("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError);wr("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");kl.exports.codes=ql});var n0=A((pq,Rl)=>{"use strict";y();var vg=vi().codes.ERR_INVALID_OPT_VALUE;function mg(r,e,t){return r.highWaterMark!=null?r.highWaterMark:e?r[t]:null}function gg(r,e,t,n){var i=mg(e,n,t);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?t:"highWaterMark";throw new vg(a,i)}return Math.floor(i)}return r.objectMode?16:16*1024}Rl.exports={getHighWaterMark:gg}});var o0=A((mq,Il)=>{y();Il.exports=bg;function bg(r,e){if(a0("noDeprecation"))return r;var t=!1;function n(){if(!t){if(a0("throwDeprecation"))throw new Error(e);a0("traceDeprecation")?console.trace(e):console.warn(e),t=!0}return r.apply(this,arguments)}return n}function a0(r){try{if(!globalThis.localStorage)return!1}catch{return!1}var e=globalThis.localStorage[r];return e==null?!1:String(e).toLowerCase()==="true"}});var u0=A((bq,Pl)=>{"use strict";y();Pl.exports=Ve;function Cl(r){var e=this;this.next=null,this.entry=null,this.finish=function(){Wg(e,r)}}var an;Ve.WritableState=sa;var yg={deprecate:o0()},jl=_2(),zo=or().Buffer,wg=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _g(r){return zo.from(r)}function xg(r){return zo.isBuffer(r)||r instanceof wg}var f0=i0(),Mg=n0(),Eg=Mg.getHighWaterMark,It=vi().codes,Sg=It.ERR_INVALID_ARG_TYPE,Bg=It.ERR_METHOD_NOT_IMPLEMENTED,Ag=It.ERR_MULTIPLE_CALLBACK,qg=It.ERR_STREAM_CANNOT_PIPE,kg=It.ERR_STREAM_DESTROYED,Rg=It.ERR_STREAM_NULL_VALUES,Ig=It.ERR_STREAM_WRITE_AFTER_END,Tg=It.ERR_UNKNOWN_ENCODING,on=f0.errorOrDestroy;V()(Ve,jl);function Cg(){}function sa(r,e,t){an=an||mi(),r=r||{},typeof t!="boolean"&&(t=e instanceof an),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=Eg(this,r,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=r.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Ng(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Cl(this)}sa.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(sa.prototype,"buffer",{get:yg.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Uo;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Uo=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ve,Symbol.hasInstance,{value:function(e){return Uo.call(this,e)?!0:this!==Ve?!1:e&&e._writableState instanceof sa}})):Uo=function(e){return e instanceof this};function Ve(r){an=an||mi();var e=this instanceof an;if(!e&&!Uo.call(Ve,this))return new Ve(r);this._writableState=new sa(r,this,e),this.writable=!0,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),jl.call(this)}Ve.prototype.pipe=function(){on(this,new qg)};function jg(r,e){var t=new Ig;on(r,t),M.default.nextTick(e,t)}function Og(r,e,t,n){var i;return t===null?i=new Rg:typeof t!="string"&&!e.objectMode&&(i=new Sg("chunk",["string","Buffer"],t)),i?(on(r,i),M.default.nextTick(n,i),!1):!0}Ve.prototype.write=function(r,e,t){var n=this._writableState,i=!1,a=!n.objectMode&&xg(r);return a&&!zo.isBuffer(r)&&(r=_g(r)),typeof e=="function"&&(t=e,e=null),a?e="buffer":e||(e=n.defaultEncoding),typeof t!="function"&&(t=Cg),n.ending?jg(this,t):(a||Og(this,n,r,t))&&(n.pendingcb++,i=Pg(this,n,a,r,e,t)),i};Ve.prototype.cork=function(){this._writableState.corked++};Ve.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Ol(this,r))};Ve.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new Tg(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(Ve.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Dg(r,e,t){return!r.objectMode&&r.decodeStrings!==!1&&typeof e=="string"&&(e=zo.from(e,t)),e}Object.defineProperty(Ve.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Pg(r,e,t,n,i,a){if(!t){var s=Dg(e,n,i);n!==s&&(t=!0,i="buffer",n=s)}var m=e.objectMode?1:n.length;e.length+=m;var w=e.length<e.highWaterMark;if(w||(e.needDrain=!0),e.writing||e.corked){var E=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:t,callback:a,next:null},E?E.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else s0(r,e,!1,m,n,i,a);return w}function s0(r,e,t,n,i,a,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new kg("write")):t?r._writev(i,e.onwrite):r._write(i,a,e.onwrite),e.sync=!1}function Ug(r,e,t,n,i){--e.pendingcb,t?(M.default.nextTick(i,n),M.default.nextTick(oa,r,e),r._writableState.errorEmitted=!0,on(r,n)):(i(n),r._writableState.errorEmitted=!0,on(r,n),oa(r,e))}function zg(r){r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0}function Ng(r,e){var t=r._writableState,n=t.sync,i=t.writecb;if(typeof i!="function")throw new Ag;if(zg(t),e)Ug(r,t,n,e,i);else{var a=Dl(t)||r.destroyed;!a&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Ol(r,t),n?M.default.nextTick(Tl,r,t,a,i):Tl(r,t,a,i)}}function Tl(r,e,t,n){t||Fg(r,e),e.pendingcb--,n(),oa(r,e)}function Fg(r,e){e.length===0&&e.needDrain&&(e.needDrain=!1,r.emit("drain"))}function Ol(r,e){e.bufferProcessing=!0;var t=e.bufferedRequest;if(r._writev&&t&&t.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=t;for(var s=0,m=!0;t;)i[s]=t,t.isBuf||(m=!1),t=t.next,s+=1;i.allBuffers=m,s0(r,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new Cl(e),e.bufferedRequestCount=0}else{for(;t;){var w=t.chunk,E=t.encoding,q=t.callback,k=e.objectMode?1:w.length;if(s0(r,e,!1,k,w,E,q),t=t.next,e.bufferedRequestCount--,e.writing)break}t===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=t,e.bufferProcessing=!1}Ve.prototype._write=function(r,e,t){t(new Bg("_write()"))};Ve.prototype._writev=null;Ve.prototype.end=function(r,e,t){var n=this._writableState;return typeof r=="function"?(t=r,r=null,e=null):typeof e=="function"&&(t=e,e=null),r!=null&&this.write(r,e),n.corked&&(n.corked=1,this.uncork()),n.ending||Kg(this,n,t),this};Object.defineProperty(Ve.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Dl(r){return r.ending&&r.length===0&&r.bufferedRequest===null&&!r.finished&&!r.writing}function Lg(r,e){r._final(function(t){e.pendingcb--,t&&on(r,t),e.prefinished=!0,r.emit("prefinish"),oa(r,e)})}function Hg(r,e){!e.prefinished&&!e.finalCalled&&(typeof r._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,M.default.nextTick(Lg,r,e)):(e.prefinished=!0,r.emit("prefinish")))}function oa(r,e){var t=Dl(e);if(t&&(Hg(r,e),e.pendingcb===0&&(e.finished=!0,r.emit("finish"),e.autoDestroy))){var n=r._readableState;(!n||n.autoDestroy&&n.endEmitted)&&r.destroy()}return t}function Kg(r,e,t){e.ending=!0,oa(r,e),t&&(e.finished?M.default.nextTick(t):r.once("finish",t)),e.ended=!0,r.writable=!1}function Wg(r,e,t){var n=r.entry;for(r.entry=null;n;){var i=n.callback;e.pendingcb--,i(t),n=n.next}e.corkedRequestsFree.next=r}Object.defineProperty(Ve.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});Ve.prototype.destroy=f0.destroy;Ve.prototype._undestroy=f0.undestroy;Ve.prototype._destroy=function(r,e){e(r)}});var mi=A((wq,zl)=>{"use strict";y();var Vg=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};zl.exports=et;var Ul=h0(),c0=u0();V()(et,Ul);for(l0=Vg(c0.prototype),No=0;No<l0.length;No++)Fo=l0[No],et.prototype[Fo]||(et.prototype[Fo]=c0.prototype[Fo]);var l0,Fo,No;function et(r){if(!(this instanceof et))return new et(r);Ul.call(this,r),c0.call(this,r),this.allowHalfOpen=!0,r&&(r.readable===!1&&(this.readable=!1),r.writable===!1&&(this.writable=!1),r.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Gg)))}Object.defineProperty(et.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(et.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(et.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Gg(){this._writableState.ended||M.default.nextTick($g,this)}function $g(r){r.end()}Object.defineProperty(et.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var Ll=A((d0,Fl)=>{y();var Lo=or(),ht=Lo.Buffer;function Nl(r,e){for(var t in r)e[t]=r[t]}ht.from&&ht.alloc&&ht.allocUnsafe&&ht.allocUnsafeSlow?Fl.exports=Lo:(Nl(Lo,d0),d0.Buffer=sn);function sn(r,e,t){return ht(r,e,t)}Nl(ht,sn);sn.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return ht(r,e,t)};sn.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=ht(r);return e!==void 0?typeof t=="string"?n.fill(e,t):n.fill(e):n.fill(0),n};sn.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return ht(r)};sn.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Lo.SlowBuffer(r)}});var fn=A(Kl=>{"use strict";y();var v0=Ll().Buffer,Hl=v0.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Zg(r){if(!r)return"utf8";for(var e;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(e)return;r=(""+r).toLowerCase(),e=!0}}function Yg(r){var e=Zg(r);if(typeof e!="string"&&(v0.isEncoding===Hl||!Hl(r)))throw new Error("Unknown encoding: "+r);return e||r}Kl.StringDecoder=fa;function fa(r){this.encoding=Yg(r);var e;switch(this.encoding){case"utf16le":this.text=tb,this.end=ib,e=4;break;case"utf8":this.fillLast=Qg,e=4;break;case"base64":this.text=nb,this.end=ab,e=3;break;default:this.write=ob,this.end=sb;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=v0.allocUnsafe(e)}fa.prototype.write=function(r){if(r.length===0)return"";var e,t;if(this.lastNeed){if(e=this.fillLast(r),e===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t<r.length?e?e+this.text(r,t):this.text(r,t):e||""};fa.prototype.end=rb;fa.prototype.text=eb;fa.prototype.fillLast=function(r){if(this.lastNeed<=r.length)return r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,r.length),this.lastNeed-=r.length};function p0(r){return r<=127?0:r>>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function Xg(r,e,t){var n=e.length-1;if(n<t)return 0;var i=p0(e[n]);return i>=0?(i>0&&(r.lastNeed=i-1),i):--n<t||i===-2?0:(i=p0(e[n]),i>=0?(i>0&&(r.lastNeed=i-2),i):--n<t||i===-2?0:(i=p0(e[n]),i>=0?(i>0&&(i===2?i=0:r.lastNeed=i-3),i):0))}function Jg(r,e,t){if((e[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function Qg(r){var e=this.lastTotal-this.lastNeed,t=Jg(this,r,e);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,e,0,r.length),this.lastNeed-=r.length}function eb(r,e){var t=Xg(this,r,e);if(!this.lastNeed)return r.toString("utf8",e);this.lastTotal=t;var n=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,n),r.toString("utf8",e,n)}function rb(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+"\uFFFD":e}function tb(r,e){if((r.length-e)%2===0){var t=r.toString("utf16le",e);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",e,r.length-1)}function ib(r){var e=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function nb(r,e){var t=(r.length-e)%3;return t===0?r.toString("base64",e):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",e,r.length-t))}function ab(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function ob(r){return r.toString(this.encoding)}function sb(r){return r&&r.length?this.write(r):""}});var Ho=A((Sq,Gl)=>{"use strict";y();var Wl=vi().codes.ERR_STREAM_PREMATURE_CLOSE;function fb(r){var e=!1;return function(){if(!e){e=!0;for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];r.apply(this,n)}}}function ub(){}function lb(r){return r.setHeader&&typeof r.abort=="function"}function Vl(r,e,t){if(typeof e=="function")return Vl(r,null,e);e||(e={}),t=fb(t||ub);var n=e.readable||e.readable!==!1&&r.readable,i=e.writable||e.writable!==!1&&r.writable,a=function(){r.writable||m()},s=r._writableState&&r._writableState.finished,m=function(){i=!1,s=!0,n||t.call(r)},w=r._readableState&&r._readableState.endEmitted,E=function(){n=!1,w=!0,i||t.call(r)},q=function(D){t.call(r,D)},k=function(){var D;if(n&&!w)return(!r._readableState||!r._readableState.ended)&&(D=new Wl),t.call(r,D);if(i&&!s)return(!r._writableState||!r._writableState.ended)&&(D=new Wl),t.call(r,D)},R=function(){r.req.on("finish",m)};return lb(r)?(r.on("complete",m),r.on("abort",k),r.req?R():r.on("request",R)):i&&!r._writableState&&(r.on("end",a),r.on("close",a)),r.on("end",E),r.on("finish",m),e.error!==!1&&r.on("error",q),r.on("close",k),function(){r.removeListener("complete",m),r.removeListener("abort",k),r.removeListener("request",R),r.req&&r.req.removeListener("finish",m),r.removeListener("end",a),r.removeListener("close",a),r.removeListener("finish",m),r.removeListener("end",E),r.removeListener("error",q),r.removeListener("close",k)}}Gl.exports=Vl});var Zl=A((Aq,$l)=>{"use strict";y();var Ko;function Tt(r,e,t){return e=cb(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function cb(r){var e=hb(r,"string");return typeof e=="symbol"?e:String(e)}function hb(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var db=Ho(),Ct=Symbol("lastResolve"),gi=Symbol("lastReject"),ua=Symbol("error"),Wo=Symbol("ended"),bi=Symbol("lastPromise"),m0=Symbol("handlePromise"),yi=Symbol("stream");function jt(r,e){return{value:r,done:e}}function pb(r){var e=r[Ct];if(e!==null){var t=r[yi].read();t!==null&&(r[bi]=null,r[Ct]=null,r[gi]=null,e(jt(t,!1)))}}function vb(r){M.default.nextTick(pb,r)}function mb(r,e){return function(t,n){r.then(function(){if(e[Wo]){t(jt(void 0,!0));return}e[m0](t,n)},n)}}var gb=Object.getPrototypeOf(function(){}),bb=Object.setPrototypeOf((Ko={get stream(){return this[yi]},next:function(){var e=this,t=this[ua];if(t!==null)return Promise.reject(t);if(this[Wo])return Promise.resolve(jt(void 0,!0));if(this[yi].destroyed)return new Promise(function(s,m){M.default.nextTick(function(){e[ua]?m(e[ua]):s(jt(void 0,!0))})});var n=this[bi],i;if(n)i=new Promise(mb(n,this));else{var a=this[yi].read();if(a!==null)return Promise.resolve(jt(a,!1));i=new Promise(this[m0])}return this[bi]=i,i}},Tt(Ko,Symbol.asyncIterator,function(){return this}),Tt(Ko,"return",function(){var e=this;return new Promise(function(t,n){e[yi].destroy(null,function(i){if(i){n(i);return}t(jt(void 0,!0))})})}),Ko),gb),yb=function(e){var t,n=Object.create(bb,(t={},Tt(t,yi,{value:e,writable:!0}),Tt(t,Ct,{value:null,writable:!0}),Tt(t,gi,{value:null,writable:!0}),Tt(t,ua,{value:null,writable:!0}),Tt(t,Wo,{value:e._readableState.endEmitted,writable:!0}),Tt(t,m0,{value:function(a,s){var m=n[yi].read();m?(n[bi]=null,n[Ct]=null,n[gi]=null,a(jt(m,!1))):(n[Ct]=a,n[gi]=s)},writable:!0}),t));return n[bi]=null,db(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[gi];a!==null&&(n[bi]=null,n[Ct]=null,n[gi]=null,a(i)),n[ua]=i;return}var s=n[Ct];s!==null&&(n[bi]=null,n[Ct]=null,n[gi]=null,s(jt(void 0,!0))),n[Wo]=!0}),e.on("readable",vb.bind(null,n)),n};$l.exports=yb});var Xl=A((kq,Yl)=>{y();Yl.exports=function(){throw new Error("Readable.from is not available in the browser")}});var h0=A((Tq,sc)=>{"use strict";y();sc.exports=Ce;var un;Ce.ReadableState=rc;var Iq=$i().EventEmitter,ec=function(e,t){return e.listeners(t).length},ca=_2(),Vo=or().Buffer,wb=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _b(r){return Vo.from(r)}function xb(r){return Vo.isBuffer(r)||r instanceof wb}var g0=aa(),qe;g0&&g0.debuglog?qe=g0.debuglog("stream"):qe=function(){};var Mb=El(),E0=i0(),Eb=n0(),Sb=Eb.getHighWaterMark,Go=vi().codes,Bb=Go.ERR_INVALID_ARG_TYPE,Ab=Go.ERR_STREAM_PUSH_AFTER_EOF,qb=Go.ERR_METHOD_NOT_IMPLEMENTED,kb=Go.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ln,b0,y0;V()(Ce,ca);var la=E0.errorOrDestroy,w0=["error","close","destroy","pause","resume"];function Rb(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function rc(r,e,t){un=un||mi(),r=r||{},typeof t!="boolean"&&(t=e instanceof un),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=Sb(this,r,"readableHighWaterMark",t),this.buffer=new Mb,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(ln||(ln=fn().StringDecoder),this.decoder=new ln(r.encoding),this.encoding=r.encoding)}function Ce(r){if(un=un||mi(),!(this instanceof Ce))return new Ce(r);var e=this instanceof un;this._readableState=new rc(r,this,e),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),ca.call(this)}Object.defineProperty(Ce.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});Ce.prototype.destroy=E0.destroy;Ce.prototype._undestroy=E0.undestroy;Ce.prototype._destroy=function(r,e){e(r)};Ce.prototype.push=function(r,e){var t=this._readableState,n;return t.objectMode?n=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=Vo.from(r,e),e=""),n=!0),tc(this,r,e,!1,n)};Ce.prototype.unshift=function(r){return tc(this,r,null,!0,!1)};function tc(r,e,t,n,i){qe("readableAddChunk",e);var a=r._readableState;if(e===null)a.reading=!1,Cb(r,a);else{var s;if(i||(s=Ib(a,e)),s)la(r,s);else if(a.objectMode||e&&e.length>0)if(typeof e!="string"&&!a.objectMode&&Object.getPrototypeOf(e)!==Vo.prototype&&(e=_b(e)),n)a.endEmitted?la(r,new kb):_0(r,a,e,!0);else if(a.ended)la(r,new Ab);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!t?(e=a.decoder.write(e),a.objectMode||e.length!==0?_0(r,a,e,!1):M0(r,a)):_0(r,a,e,!1)}else n||(a.reading=!1,M0(r,a))}return!a.ended&&(a.length<a.highWaterMark||a.length===0)}function _0(r,e,t,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,r.emit("data",t)):(e.length+=e.objectMode?1:t.length,n?e.buffer.unshift(t):e.buffer.push(t),e.needReadable&&$o(r)),M0(r,e)}function Ib(r,e){var t;return!xb(e)&&typeof e!="string"&&e!==void 0&&!r.objectMode&&(t=new Bb("chunk",["string","Buffer","Uint8Array"],e)),t}Ce.prototype.isPaused=function(){return this._readableState.flowing===!1};Ce.prototype.setEncoding=function(r){ln||(ln=fn().StringDecoder);var e=new ln(r);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var t=this._readableState.buffer.head,n="";t!==null;)n+=e.write(t.data),t=t.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Jl=1073741824;function Tb(r){return r>=Jl?r=Jl:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function Ql(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=Tb(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}Ce.prototype.read=function(r){qe("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return qe("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?x0(this):$o(this),null;if(r=Ql(r,e),r===0&&e.ended)return e.length===0&&x0(this),null;var n=e.needReadable;qe("need readable",n),(e.length===0||e.length-r<e.highWaterMark)&&(n=!0,qe("length less than watermark",n)),e.ended||e.reading?(n=!1,qe("reading or ended",n)):n&&(qe("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(r=Ql(t,e)));var i;return r>0?i=ac(r,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&x0(this)),i!==null&&this.emit("data",i),i};function Cb(r,e){if(qe("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?$o(r):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,ic(r)))}}function $o(r){var e=r._readableState;qe("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(qe("emitReadable",e.flowing),e.emittedReadable=!0,M.default.nextTick(ic,r))}function ic(r){var e=r._readableState;qe("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,S0(r)}function M0(r,e){e.readingMore||(e.readingMore=!0,M.default.nextTick(jb,r,e))}function jb(r,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var t=e.length;if(qe("maybeReadMore read 0"),r.read(0),t===e.length)break}e.readingMore=!1}Ce.prototype._read=function(r){la(this,new qb("_read()"))};Ce.prototype.pipe=function(r,e){var t=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=r;break;case 1:n.pipes=[n.pipes,r];break;default:n.pipes.push(r);break}n.pipesCount+=1,qe("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&r!==M.default.stdout&&r!==M.default.stderr,a=i?m:z;n.endEmitted?M.default.nextTick(a):t.once("end",a),r.on("unpipe",s);function s(W,N){qe("onunpipe"),W===t&&N&&N.hasUnpiped===!1&&(N.hasUnpiped=!0,q())}function m(){qe("onend"),r.end()}var w=Ob(t);r.on("drain",w);var E=!1;function q(){qe("cleanup"),r.removeListener("close",I),r.removeListener("finish",D),r.removeListener("drain",w),r.removeListener("error",R),r.removeListener("unpipe",s),t.removeListener("end",m),t.removeListener("end",z),t.removeListener("data",k),E=!0,n.awaitDrain&&(!r._writableState||r._writableState.needDrain)&&w()}t.on("data",k);function k(W){qe("ondata");var N=r.write(W);qe("dest.write",N),N===!1&&((n.pipesCount===1&&n.pipes===r||n.pipesCount>1&&oc(n.pipes,r)!==-1)&&!E&&(qe("false write response, pause",n.awaitDrain),n.awaitDrain++),t.pause())}function R(W){qe("onerror",W),z(),r.removeListener("error",R),ec(r,"error")===0&&la(r,W)}Rb(r,"error",R);function I(){r.removeListener("finish",D),z()}r.once("close",I);function D(){qe("onfinish"),r.removeListener("close",I),z()}r.once("finish",D);function z(){qe("unpipe"),t.unpipe(r)}return r.emit("pipe",t),n.flowing||(qe("pipe resume"),t.resume()),r};function Ob(r){return function(){var t=r._readableState;qe("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&ec(r,"data")&&(t.flowing=!0,S0(r))}}Ce.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var s=oc(e.pipes,r);return s===-1?this:(e.pipes.splice(s,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),r.emit("unpipe",this,t),this)};Ce.prototype.on=function(r,e){var t=ca.prototype.on.call(this,r,e),n=this._readableState;return r==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):r==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,qe("on readable",n.length,n.reading),n.length?$o(this):n.reading||M.default.nextTick(Db,this)),t};Ce.prototype.addListener=Ce.prototype.on;Ce.prototype.removeListener=function(r,e){var t=ca.prototype.removeListener.call(this,r,e);return r==="readable"&&M.default.nextTick(nc,this),t};Ce.prototype.removeAllListeners=function(r){var e=ca.prototype.removeAllListeners.apply(this,arguments);return(r==="readable"||r===void 0)&&M.default.nextTick(nc,this),e};function nc(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:r.listenerCount("data")>0&&r.resume()}function Db(r){qe("readable nexttick read 0"),r.read(0)}Ce.prototype.resume=function(){var r=this._readableState;return r.flowing||(qe("resume"),r.flowing=!r.readableListening,Pb(this,r)),r.paused=!1,this};function Pb(r,e){e.resumeScheduled||(e.resumeScheduled=!0,M.default.nextTick(Ub,r,e))}function Ub(r,e){qe("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=!1,r.emit("resume"),S0(r),e.flowing&&!e.reading&&r.read(0)}Ce.prototype.pause=function(){return qe("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(qe("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function S0(r){var e=r._readableState;for(qe("flow",e.flowing);e.flowing&&r.read()!==null;);}Ce.prototype.wrap=function(r){var e=this,t=this._readableState,n=!1;r.on("end",function(){if(qe("wrapped end"),t.decoder&&!t.ended){var s=t.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),r.on("data",function(s){if(qe("wrapped data"),t.decoder&&(s=t.decoder.write(s)),!(t.objectMode&&s==null)&&!(!t.objectMode&&(!s||!s.length))){var m=e.push(s);m||(n=!0,r.pause())}});for(var i in r)this[i]===void 0&&typeof r[i]=="function"&&(this[i]=(function(m){return function(){return r[m].apply(r,arguments)}})(i));for(var a=0;a<w0.length;a++)r.on(w0[a],this.emit.bind(this,w0[a]));return this._read=function(s){qe("wrapped _read",s),n&&(n=!1,r.resume())},this};typeof Symbol=="function"&&(Ce.prototype[Symbol.asyncIterator]=function(){return b0===void 0&&(b0=Zl()),b0(this)});Object.defineProperty(Ce.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(Ce.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(Ce.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});Ce._fromList=ac;Object.defineProperty(Ce.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ac(r,e){if(e.length===0)return null;var t;return e.objectMode?t=e.buffer.shift():!r||r>=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function x0(r){var e=r._readableState;qe("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,M.default.nextTick(zb,e,r))}function zb(r,e){if(qe("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy()}}typeof Symbol=="function"&&(Ce.from=function(r,e){return y0===void 0&&(y0=Xl()),y0(Ce,r,e)});function oc(r,e){for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}});var B0=A((jq,uc)=>{"use strict";y();uc.exports=dt;var Zo=vi().codes,Nb=Zo.ERR_METHOD_NOT_IMPLEMENTED,Fb=Zo.ERR_MULTIPLE_CALLBACK,Lb=Zo.ERR_TRANSFORM_ALREADY_TRANSFORMING,Hb=Zo.ERR_TRANSFORM_WITH_LENGTH_0,Yo=mi();V()(dt,Yo);function Kb(r,e){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(n===null)return this.emit("error",new Fb);t.writechunk=null,t.writecb=null,e!=null&&this.push(e),n(r);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function dt(r){if(!(this instanceof dt))return new dt(r);Yo.call(this,r),this._transformState={afterTransform:Kb.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",Wb)}function Wb(){var r=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,t){fc(r,e,t)}):fc(this,null,null)}dt.prototype.push=function(r,e){return this._transformState.needTransform=!1,Yo.prototype.push.call(this,r,e)};dt.prototype._transform=function(r,e,t){t(new Nb("_transform()"))};dt.prototype._write=function(r,e,t){var n=this._transformState;if(n.writecb=t,n.writechunk=r,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};dt.prototype._read=function(r){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};dt.prototype._destroy=function(r,e){Yo.prototype._destroy.call(this,r,function(t){e(t)})};function fc(r,e,t){if(e)return r.emit("error",e);if(t!=null&&r.push(t),r._writableState.length)throw new Hb;if(r._transformState.transforming)throw new Lb;return r.push(null)}});var hc=A((Dq,cc)=>{"use strict";y();cc.exports=ha;var lc=B0();V()(ha,lc);function ha(r){if(!(this instanceof ha))return new ha(r);lc.call(this,r)}ha.prototype._transform=function(r,e,t){t(null,r)}});var gc=A((Uq,mc)=>{"use strict";y();var A0;function Vb(r){var e=!1;return function(){e||(e=!0,r.apply(void 0,arguments))}}var vc=vi().codes,Gb=vc.ERR_MISSING_ARGS,$b=vc.ERR_STREAM_DESTROYED;function dc(r){if(r)throw r}function Zb(r){return r.setHeader&&typeof r.abort=="function"}function Yb(r,e,t,n){n=Vb(n);var i=!1;r.on("close",function(){i=!0}),A0===void 0&&(A0=Ho()),A0(r,{readable:e,writable:t},function(s){if(s)return n(s);i=!0,n()});var a=!1;return function(s){if(!i&&!a){if(a=!0,Zb(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();n(s||new $b("pipe"))}}}function pc(r){r()}function Xb(r,e){return r.pipe(e)}function Jb(r){return!r.length||typeof r[r.length-1]!="function"?dc:r.pop()}function Qb(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n=Jb(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Gb("streams");var i,a=e.map(function(s,m){var w=m<e.length-1,E=m>0;return Yb(s,w,E,function(q){i||(i=q),q&&a.forEach(pc),!w&&(a.forEach(pc),n(i))})});return e.reduce(Xb)}mc.exports=Qb});var k0=A((Nq,bc)=>{y();bc.exports=_r;var q0=$i().EventEmitter,ey=V();ey(_r,q0);_r.Readable=h0();_r.Writable=u0();_r.Duplex=mi();_r.Transform=B0();_r.PassThrough=hc();_r.finished=Ho();_r.pipeline=gc();_r.Stream=_r;function _r(){q0.call(this)}_r.prototype.pipe=function(r,e){var t=this;function n(q){r.writable&&r.write(q)===!1&&t.pause&&t.pause()}t.on("data",n);function i(){t.readable&&t.resume&&t.resume()}r.on("drain",i),!r._isStdio&&(!e||e.end!==!1)&&(t.on("end",s),t.on("close",m));var a=!1;function s(){a||(a=!0,r.end())}function m(){a||(a=!0,typeof r.destroy=="function"&&r.destroy())}function w(q){if(E(),q0.listenerCount(this,"error")===0)throw q}t.on("error",w),r.on("error",w);function E(){t.removeListener("data",n),r.removeListener("drain",i),t.removeListener("end",s),t.removeListener("close",m),t.removeListener("error",w),r.removeListener("error",w),t.removeListener("end",E),t.removeListener("close",E),r.removeListener("close",E)}return t.on("end",E),t.on("close",E),r.on("close",E),r.emit("pipe",t),r}});var _c=A((Lq,wc)=>{"use strict";y();var rt=Se().Buffer,yc=k0().Transform,ry=V();function Ot(r){yc.call(this),this._block=rt.allocUnsafe(r),this._blockSize=r,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}ry(Ot,yc);Ot.prototype._transform=function(r,e,t){var n=null;try{this.update(r,e)}catch(i){n=i}t(n)};Ot.prototype._flush=function(r){var e=null;try{this.push(this.digest())}catch(t){e=t}r(e)};var ty=typeof Uint8Array<"u",iy=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(rt.prototype instanceof Uint8Array||rt.TYPED_ARRAY_SUPPORT);function ny(r,e){if(r instanceof rt)return r;if(typeof r=="string")return rt.from(r,e);if(iy&&ArrayBuffer.isView(r)){if(r.byteLength===0)return rt.alloc(0);var t=rt.from(r.buffer,r.byteOffset,r.byteLength);if(t.byteLength===r.byteLength)return t}if(ty&&r instanceof Uint8Array||rt.isBuffer(r)&&r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r))return rt.from(r);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}Ot.prototype.update=function(r,e){if(this._finalized)throw new Error("Digest already called");r=ny(r,e);for(var t=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)t[i++]=r[n++];this._update(),this._blockOffset=0}for(;n<r.length;)t[this._blockOffset++]=r[n++];for(var a=0,s=r.length*8;s>0;++a)this._length[a]+=s,s=this._length[a]/4294967296|0,s>0&&(this._length[a]-=4294967296*s);return this};Ot.prototype._update=function(){throw new Error("_update is not implemented")};Ot.prototype.digest=function(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();r!==void 0&&(e=e.toString(r)),this._block.fill(0),this._blockOffset=0;for(var t=0;t<4;++t)this._length[t]=0;return e};Ot.prototype._digest=function(){throw new Error("_digest is not implemented")};wc.exports=Ot});var Qo=A((Kq,Mc)=>{"use strict";y();var ay=V(),xc=_c(),oy=Se().Buffer,sy=new Array(16);function Xo(){xc.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}ay(Xo,xc);Xo.prototype._update=function(){for(var r=sy,e=0;e<16;++e)r[e]=this._block.readInt32LE(e*4);var t=this._a,n=this._b,i=this._c,a=this._d;t=sr(t,n,i,a,r[0],3614090360,7),a=sr(a,t,n,i,r[1],3905402710,12),i=sr(i,a,t,n,r[2],606105819,17),n=sr(n,i,a,t,r[3],3250441966,22),t=sr(t,n,i,a,r[4],4118548399,7),a=sr(a,t,n,i,r[5],1200080426,12),i=sr(i,a,t,n,r[6],2821735955,17),n=sr(n,i,a,t,r[7],4249261313,22),t=sr(t,n,i,a,r[8],1770035416,7),a=sr(a,t,n,i,r[9],2336552879,12),i=sr(i,a,t,n,r[10],4294925233,17),n=sr(n,i,a,t,r[11],2304563134,22),t=sr(t,n,i,a,r[12],1804603682,7),a=sr(a,t,n,i,r[13],4254626195,12),i=sr(i,a,t,n,r[14],2792965006,17),n=sr(n,i,a,t,r[15],1236535329,22),t=fr(t,n,i,a,r[1],4129170786,5),a=fr(a,t,n,i,r[6],3225465664,9),i=fr(i,a,t,n,r[11],643717713,14),n=fr(n,i,a,t,r[0],3921069994,20),t=fr(t,n,i,a,r[5],3593408605,5),a=fr(a,t,n,i,r[10],38016083,9),i=fr(i,a,t,n,r[15],3634488961,14),n=fr(n,i,a,t,r[4],3889429448,20),t=fr(t,n,i,a,r[9],568446438,5),a=fr(a,t,n,i,r[14],3275163606,9),i=fr(i,a,t,n,r[3],4107603335,14),n=fr(n,i,a,t,r[8],1163531501,20),t=fr(t,n,i,a,r[13],2850285829,5),a=fr(a,t,n,i,r[2],4243563512,9),i=fr(i,a,t,n,r[7],1735328473,14),n=fr(n,i,a,t,r[12],2368359562,20),t=ur(t,n,i,a,r[5],4294588738,4),a=ur(a,t,n,i,r[8],2272392833,11),i=ur(i,a,t,n,r[11],1839030562,16),n=ur(n,i,a,t,r[14],4259657740,23),t=ur(t,n,i,a,r[1],2763975236,4),a=ur(a,t,n,i,r[4],1272893353,11),i=ur(i,a,t,n,r[7],4139469664,16),n=ur(n,i,a,t,r[10],3200236656,23),t=ur(t,n,i,a,r[13],681279174,4),a=ur(a,t,n,i,r[0],3936430074,11),i=ur(i,a,t,n,r[3],3572445317,16),n=ur(n,i,a,t,r[6],76029189,23),t=ur(t,n,i,a,r[9],3654602809,4),a=ur(a,t,n,i,r[12],3873151461,11),i=ur(i,a,t,n,r[15],530742520,16),n=ur(n,i,a,t,r[2],3299628645,23),t=lr(t,n,i,a,r[0],4096336452,6),a=lr(a,t,n,i,r[7],1126891415,10),i=lr(i,a,t,n,r[14],2878612391,15),n=lr(n,i,a,t,r[5],4237533241,21),t=lr(t,n,i,a,r[12],1700485571,6),a=lr(a,t,n,i,r[3],2399980690,10),i=lr(i,a,t,n,r[10],4293915773,15),n=lr(n,i,a,t,r[1],2240044497,21),t=lr(t,n,i,a,r[8],1873313359,6),a=lr(a,t,n,i,r[15],4264355552,10),i=lr(i,a,t,n,r[6],2734768916,15),n=lr(n,i,a,t,r[13],1309151649,21),t=lr(t,n,i,a,r[4],4149444226,6),a=lr(a,t,n,i,r[11],3174756917,10),i=lr(i,a,t,n,r[2],718787259,15),n=lr(n,i,a,t,r[9],3951481745,21),this._a=this._a+t|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+a|0};Xo.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 r=oy.allocUnsafe(16);return r.writeInt32LE(this._a,0),r.writeInt32LE(this._b,4),r.writeInt32LE(this._c,8),r.writeInt32LE(this._d,12),r};function Jo(r,e){return r<<e|r>>>32-e}function sr(r,e,t,n,i,a,s){return Jo(r+(e&t|~e&n)+i+a|0,s)+e|0}function fr(r,e,t,n,i,a,s){return Jo(r+(e&n|t&~n)+i+a|0,s)+e|0}function ur(r,e,t,n,i,a,s){return Jo(r+(e^t^n)+i+a|0,s)+e|0}function lr(r,e,t,n,i,a,s){return Jo(r+(t^(e|~n))+i+a|0,s)+e|0}Mc.exports=Xo});var Sc=A((Vq,Ec)=>{y();var fy={}.toString;Ec.exports=Array.isArray||function(r){return fy.call(r)=="[object Array]"}});var Ac=A(($q,Bc)=>{"use strict";y();var uy=ui(),ly=hi(),cy=ly("TypedArray.prototype.buffer",!0),hy=G2();Bc.exports=cy||function(e){if(!hy(e))throw new uy("Not a Typed Array");return e.buffer}});var da=A((Yq,kc)=>{"use strict";y();var jr=Se().Buffer,dy=Sc(),py=Ac(),vy=ArrayBuffer.isView||function(e){try{return py(e),!0}catch{return!1}},my=typeof Uint8Array<"u",qc=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",gy=qc&&(jr.prototype instanceof Uint8Array||jr.TYPED_ARRAY_SUPPORT);kc.exports=function(e,t){if(jr.isBuffer(e))return e.constructor&&!("isBuffer"in e)?jr.from(e):e;if(typeof e=="string")return jr.from(e,t);if(qc&&vy(e)){if(e.byteLength===0)return jr.alloc(0);if(gy){var n=jr.from(e.buffer,e.byteOffset,e.byteLength);if(n.byteLength===e.byteLength)return n}var i=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),a=jr.from(i);if(a.length===e.byteLength)return a}if(my&&e instanceof Uint8Array)return jr.from(e);var s=dy(e);if(s)for(var m=0;m<e.length;m+=1){var w=e[m];if(typeof w!="number"||w<0||w>255||~~w!==w)throw new RangeError("Array items must be numbers in the range 0-255.")}if(s||jr.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return jr.from(e);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}});var Cc=A((Jq,Tc)=>{"use strict";y();var by=Se().Buffer,yy=da(),Ic=typeof Uint8Array<"u",wy=Ic&&typeof ArrayBuffer<"u",Rc=wy&&ArrayBuffer.isView;Tc.exports=function(r,e){if(typeof r=="string"||by.isBuffer(r)||Ic&&r instanceof Uint8Array||Rc&&Rc(r))return yy(r,e);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}});var pa=A((ek,R0)=>{"use strict";y();typeof M.default>"u"||!M.default.version||M.default.version.indexOf("v0.")===0||M.default.version.indexOf("v1.")===0&&M.default.version.indexOf("v1.8.")!==0?R0.exports={nextTick:_y}:R0.exports=M.default;function _y(r,e,t,n){if(typeof r!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,a,s;switch(i){case 0:case 1:return M.default.nextTick(r);case 2:return M.default.nextTick(function(){r.call(null,e)});case 3:return M.default.nextTick(function(){r.call(null,e,t)});case 4:return M.default.nextTick(function(){r.call(null,e,t,n)});default:for(a=new Array(i-1),s=0;s<a.length;)a[s++]=arguments[s];return M.default.nextTick(function(){r.apply(null,a)})}}});var Oc=A((tk,jc)=>{y();var xy={}.toString;jc.exports=Array.isArray||function(r){return xy.call(r)=="[object Array]"}});var I0=A((nk,Dc)=>{y();Dc.exports=$i().EventEmitter});var r1=A((T0,Uc)=>{y();var e1=or(),pt=e1.Buffer;function Pc(r,e){for(var t in r)e[t]=r[t]}pt.from&&pt.alloc&&pt.allocUnsafe&&pt.allocUnsafeSlow?Uc.exports=e1:(Pc(e1,T0),T0.Buffer=cn);function cn(r,e,t){return pt(r,e,t)}Pc(pt,cn);cn.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return pt(r,e,t)};cn.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=pt(r);return e!==void 0?typeof t=="string"?n.fill(e,t):n.fill(e):n.fill(0),n};cn.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return pt(r)};cn.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return e1.SlowBuffer(r)}});var hn=A(cr=>{y();function My(r){return Array.isArray?Array.isArray(r):t1(r)==="[object Array]"}cr.isArray=My;function Ey(r){return typeof r=="boolean"}cr.isBoolean=Ey;function Sy(r){return r===null}cr.isNull=Sy;function By(r){return r==null}cr.isNullOrUndefined=By;function Ay(r){return typeof r=="number"}cr.isNumber=Ay;function qy(r){return typeof r=="string"}cr.isString=qy;function ky(r){return typeof r=="symbol"}cr.isSymbol=ky;function Ry(r){return r===void 0}cr.isUndefined=Ry;function Iy(r){return t1(r)==="[object RegExp]"}cr.isRegExp=Iy;function Ty(r){return typeof r=="object"&&r!==null}cr.isObject=Ty;function Cy(r){return t1(r)==="[object Date]"}cr.isDate=Cy;function jy(r){return t1(r)==="[object Error]"||r instanceof Error}cr.isError=jy;function Oy(r){return typeof r=="function"}cr.isFunction=Oy;function Dy(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}cr.isPrimitive=Dy;cr.isBuffer=or().Buffer.isBuffer;function t1(r){return Object.prototype.toString.call(r)}});var Nc=A((uk,C0)=>{"use strict";y();function Py(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var zc=r1().Buffer,va=aa();function Uy(r,e,t){r.copy(e,t)}C0.exports=(function(){function r(){Py(this,r),this.head=null,this.tail=null,this.length=0}return r.prototype.push=function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},r.prototype.unshift=function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},r.prototype.shift=function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},r.prototype.clear=function(){this.head=this.tail=null,this.length=0},r.prototype.join=function(t){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=t+n.data;return i},r.prototype.concat=function(t){if(this.length===0)return zc.alloc(0);for(var n=zc.allocUnsafe(t>>>0),i=this.head,a=0;i;)Uy(i.data,n,a),a+=i.data.length,i=i.next;return n},r})();va&&va.inspect&&va.inspect.custom&&(C0.exports.prototype[va.inspect.custom]=function(){var r=va.inspect({length:this.length});return this.constructor.name+" "+r})});var j0=A((ck,Fc)=>{"use strict";y();var i1=pa();function zy(r,e){var t=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i1.nextTick(n1,this,r)):i1.nextTick(n1,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(a){!e&&a?t._writableState?t._writableState.errorEmitted||(t._writableState.errorEmitted=!0,i1.nextTick(n1,t,a)):i1.nextTick(n1,t,a):e&&e(a)}),this)}function Ny(){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 n1(r,e){r.emit("error",e)}Fc.exports={destroy:zy,undestroy:Ny}});var D0=A((dk,Zc)=>{"use strict";y();var wi=pa();Zc.exports=$e;function Hc(r){var e=this;this.next=null,this.entry=null,this.finish=function(){nw(e,r)}}var Fy=!M.default.browser&&["v0.10","v0.9."].indexOf(M.default.version.slice(0,5))>-1?setImmediate:wi.nextTick,dn;$e.WritableState=ga;var Kc=Object.create(hn());Kc.inherits=V();var Ly={deprecate:o0()},Wc=I0(),o1=r1().Buffer,Hy=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Ky(r){return o1.from(r)}function Wy(r){return o1.isBuffer(r)||r instanceof Hy}var Vc=j0();Kc.inherits($e,Wc);function Vy(){}function ga(r,e){dn=dn||_i(),r=r||{};var t=e instanceof dn;this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode);var n=r.highWaterMark,i=r.writableHighWaterMark,a=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:t&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=r.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(m){Qy(e,m)},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 Hc(this)}ga.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(ga.prototype,"buffer",{get:Ly.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var a1;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(a1=Function.prototype[Symbol.hasInstance],Object.defineProperty($e,Symbol.hasInstance,{value:function(r){return a1.call(this,r)?!0:this!==$e?!1:r&&r._writableState instanceof ga}})):a1=function(r){return r instanceof this};function $e(r){if(dn=dn||_i(),!a1.call($e,this)&&!(this instanceof dn))return new $e(r);this._writableState=new ga(r,this),this.writable=!0,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),Wc.call(this)}$e.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Gy(r,e){var t=new Error("write after end");r.emit("error",t),wi.nextTick(e,t)}function $y(r,e,t,n){var i=!0,a=!1;return t===null?a=new TypeError("May not write null values to stream"):typeof t!="string"&&t!==void 0&&!e.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(r.emit("error",a),wi.nextTick(n,a),i=!1),i}$e.prototype.write=function(r,e,t){var n=this._writableState,i=!1,a=!n.objectMode&&Wy(r);return a&&!o1.isBuffer(r)&&(r=Ky(r)),typeof e=="function"&&(t=e,e=null),a?e="buffer":e||(e=n.defaultEncoding),typeof t!="function"&&(t=Vy),n.ended?Gy(this,t):(a||$y(this,n,r,t))&&(n.pendingcb++,i=Yy(this,n,a,r,e,t)),i};$e.prototype.cork=function(){var r=this._writableState;r.corked++};$e.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Gc(this,r))};$e.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function Zy(r,e,t){return!r.objectMode&&r.decodeStrings!==!1&&typeof e=="string"&&(e=o1.from(e,t)),e}Object.defineProperty($e.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Yy(r,e,t,n,i,a){if(!t){var s=Zy(e,n,i);n!==s&&(t=!0,i="buffer",n=s)}var m=e.objectMode?1:n.length;e.length+=m;var w=e.length<e.highWaterMark;if(w||(e.needDrain=!0),e.writing||e.corked){var E=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:t,callback:a,next:null},E?E.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else O0(r,e,!1,m,n,i,a);return w}function O0(r,e,t,n,i,a,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,t?r._writev(i,e.onwrite):r._write(i,a,e.onwrite),e.sync=!1}function Xy(r,e,t,n,i){--e.pendingcb,t?(wi.nextTick(i,n),wi.nextTick(ma,r,e),r._writableState.errorEmitted=!0,r.emit("error",n)):(i(n),r._writableState.errorEmitted=!0,r.emit("error",n),ma(r,e))}function Jy(r){r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0}function Qy(r,e){var t=r._writableState,n=t.sync,i=t.writecb;if(Jy(t),e)Xy(r,t,n,e,i);else{var a=$c(t);!a&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Gc(r,t),n?Fy(Lc,r,t,a,i):Lc(r,t,a,i)}}function Lc(r,e,t,n){t||ew(r,e),e.pendingcb--,n(),ma(r,e)}function ew(r,e){e.length===0&&e.needDrain&&(e.needDrain=!1,r.emit("drain"))}function Gc(r,e){e.bufferProcessing=!0;var t=e.bufferedRequest;if(r._writev&&t&&t.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=t;for(var s=0,m=!0;t;)i[s]=t,t.isBuf||(m=!1),t=t.next,s+=1;i.allBuffers=m,O0(r,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new Hc(e),e.bufferedRequestCount=0}else{for(;t;){var w=t.chunk,E=t.encoding,q=t.callback,k=e.objectMode?1:w.length;if(O0(r,e,!1,k,w,E,q),t=t.next,e.bufferedRequestCount--,e.writing)break}t===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=t,e.bufferProcessing=!1}$e.prototype._write=function(r,e,t){t(new Error("_write() is not implemented"))};$e.prototype._writev=null;$e.prototype.end=function(r,e,t){var n=this._writableState;typeof r=="function"?(t=r,r=null,e=null):typeof e=="function"&&(t=e,e=null),r!=null&&this.write(r,e),n.corked&&(n.corked=1,this.uncork()),n.ending||iw(this,n,t)};function $c(r){return r.ending&&r.length===0&&r.bufferedRequest===null&&!r.finished&&!r.writing}function rw(r,e){r._final(function(t){e.pendingcb--,t&&r.emit("error",t),e.prefinished=!0,r.emit("prefinish"),ma(r,e)})}function tw(r,e){!e.prefinished&&!e.finalCalled&&(typeof r._final=="function"?(e.pendingcb++,e.finalCalled=!0,wi.nextTick(rw,r,e)):(e.prefinished=!0,r.emit("prefinish")))}function ma(r,e){var t=$c(e);return t&&(tw(r,e),e.pendingcb===0&&(e.finished=!0,r.emit("finish"))),t}function iw(r,e,t){e.ending=!0,ma(r,e),t&&(e.finished?wi.nextTick(t):r.once("finish",t)),e.ended=!0,r.writable=!1}function nw(r,e,t){var n=r.entry;for(r.entry=null;n;){var i=n.callback;e.pendingcb--,i(t),n=n.next}e.corkedRequestsFree.next=r}Object.defineProperty($e.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(r){this._writableState&&(this._writableState.destroyed=r)}});$e.prototype.destroy=Vc.destroy;$e.prototype._undestroy=Vc.undestroy;$e.prototype._destroy=function(r,e){this.end(),e(r)}});var _i=A((vk,Qc)=>{"use strict";y();var Yc=pa(),aw=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};Qc.exports=vt;var Xc=Object.create(hn());Xc.inherits=V();var Jc=z0(),U0=D0();Xc.inherits(vt,Jc);for(P0=aw(U0.prototype),s1=0;s1<P0.length;s1++)f1=P0[s1],vt.prototype[f1]||(vt.prototype[f1]=U0.prototype[f1]);var P0,f1,s1;function vt(r){if(!(this instanceof vt))return new vt(r);Jc.call(this,r),U0.call(this,r),r&&r.readable===!1&&(this.readable=!1),r&&r.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,r&&r.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",ow)}Object.defineProperty(vt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ow(){this.allowHalfOpen||this._writableState.ended||Yc.nextTick(sw,this)}function sw(r){r.end()}Object.defineProperty(vt.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(r){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=r,this._writableState.destroyed=r)}});vt.prototype._destroy=function(r,e){this.push(null),this.end(),Yc.nextTick(e,r)}});var z0=A((bk,ch)=>{"use strict";y();var vn=pa();ch.exports=Le;var fw=Oc(),ba;Le.ReadableState=oh;var gk=$i().EventEmitter,ih=function(r,e){return r.listeners(e).length},K0=I0(),ya=r1().Buffer,uw=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function lw(r){return ya.from(r)}function cw(r){return ya.isBuffer(r)||r instanceof uw}var nh=Object.create(hn());nh.inherits=V();var N0=aa(),je=void 0;N0&&N0.debuglog?je=N0.debuglog("stream"):je=function(){};var hw=Nc(),ah=j0(),pn;nh.inherits(Le,K0);var F0=["error","close","destroy","pause","resume"];function dw(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):fw(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function oh(r,e){ba=ba||_i(),r=r||{};var t=e instanceof ba;this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode);var n=r.highWaterMark,i=r.readableHighWaterMark,a=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:t&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new hw,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(pn||(pn=fn().StringDecoder),this.decoder=new pn(r.encoding),this.encoding=r.encoding)}function Le(r){if(ba=ba||_i(),!(this instanceof Le))return new Le(r);this._readableState=new oh(r,this),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),K0.call(this)}Object.defineProperty(Le.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}});Le.prototype.destroy=ah.destroy;Le.prototype._undestroy=ah.undestroy;Le.prototype._destroy=function(r,e){this.push(null),e(r)};Le.prototype.push=function(r,e){var t=this._readableState,n;return t.objectMode?n=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=ya.from(r,e),e=""),n=!0),sh(this,r,e,!1,n)};Le.prototype.unshift=function(r){return sh(this,r,null,!0,!1)};function sh(r,e,t,n,i){var a=r._readableState;if(e===null)a.reading=!1,gw(r,a);else{var s;i||(s=pw(a,e)),s?r.emit("error",s):a.objectMode||e&&e.length>0?(typeof e!="string"&&!a.objectMode&&Object.getPrototypeOf(e)!==ya.prototype&&(e=lw(e)),n?a.endEmitted?r.emit("error",new Error("stream.unshift() after end event")):L0(r,a,e,!0):a.ended?r.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!t?(e=a.decoder.write(e),a.objectMode||e.length!==0?L0(r,a,e,!1):fh(r,a)):L0(r,a,e,!1))):n||(a.reading=!1)}return vw(a)}function L0(r,e,t,n){e.flowing&&e.length===0&&!e.sync?(r.emit("data",t),r.read(0)):(e.length+=e.objectMode?1:t.length,n?e.buffer.unshift(t):e.buffer.push(t),e.needReadable&&u1(r)),fh(r,e)}function pw(r,e){var t;return!cw(e)&&typeof e!="string"&&e!==void 0&&!r.objectMode&&(t=new TypeError("Invalid non-string/buffer chunk")),t}function vw(r){return!r.ended&&(r.needReadable||r.length<r.highWaterMark||r.length===0)}Le.prototype.isPaused=function(){return this._readableState.flowing===!1};Le.prototype.setEncoding=function(r){return pn||(pn=fn().StringDecoder),this._readableState.decoder=new pn(r),this._readableState.encoding=r,this};var eh=8388608;function mw(r){return r>=eh?r=eh:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function rh(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=mw(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}Le.prototype.read=function(r){je("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return je("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?H0(this):u1(this),null;if(r=rh(r,e),r===0&&e.ended)return e.length===0&&H0(this),null;var n=e.needReadable;je("need readable",n),(e.length===0||e.length-r<e.highWaterMark)&&(n=!0,je("length less than watermark",n)),e.ended||e.reading?(n=!1,je("reading or ended",n)):n&&(je("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(r=rh(t,e)));var i;return r>0?i=uh(r,e):i=null,i===null?(e.needReadable=!0,r=0):e.length-=r,e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&H0(this)),i!==null&&this.emit("data",i),i};function gw(r,e){if(!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,u1(r)}}function u1(r){var e=r._readableState;e.needReadable=!1,e.emittedReadable||(je("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?vn.nextTick(th,r):th(r))}function th(r){je("emit readable"),r.emit("readable"),W0(r)}function fh(r,e){e.readingMore||(e.readingMore=!0,vn.nextTick(bw,r,e))}function bw(r,e){for(var t=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(je("maybeReadMore read 0"),r.read(0),t!==e.length);)t=e.length;e.readingMore=!1}Le.prototype._read=function(r){this.emit("error",new Error("_read() is not implemented"))};Le.prototype.pipe=function(r,e){var t=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=r;break;case 1:n.pipes=[n.pipes,r];break;default:n.pipes.push(r);break}n.pipesCount+=1,je("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&r!==M.default.stdout&&r!==M.default.stderr,a=i?m:W;n.endEmitted?vn.nextTick(a):t.once("end",a),r.on("unpipe",s);function s(N,H){je("onunpipe"),N===t&&H&&H.hasUnpiped===!1&&(H.hasUnpiped=!0,q())}function m(){je("onend"),r.end()}var w=yw(t);r.on("drain",w);var E=!1;function q(){je("cleanup"),r.removeListener("close",D),r.removeListener("finish",z),r.removeListener("drain",w),r.removeListener("error",I),r.removeListener("unpipe",s),t.removeListener("end",m),t.removeListener("end",W),t.removeListener("data",R),E=!0,n.awaitDrain&&(!r._writableState||r._writableState.needDrain)&&w()}var k=!1;t.on("data",R);function R(N){je("ondata"),k=!1;var H=r.write(N);H===!1&&!k&&((n.pipesCount===1&&n.pipes===r||n.pipesCount>1&&lh(n.pipes,r)!==-1)&&!E&&(je("false write response, pause",n.awaitDrain),n.awaitDrain++,k=!0),t.pause())}function I(N){je("onerror",N),W(),r.removeListener("error",I),ih(r,"error")===0&&r.emit("error",N)}dw(r,"error",I);function D(){r.removeListener("finish",z),W()}r.once("close",D);function z(){je("onfinish"),r.removeListener("close",D),W()}r.once("finish",z);function W(){je("unpipe"),t.unpipe(r)}return r.emit("pipe",t),n.flowing||(je("pipe resume"),t.resume()),r};function yw(r){return function(){var e=r._readableState;je("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&ih(r,"data")&&(e.flowing=!0,W0(r))}}Le.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var s=lh(e.pipes,r);return s===-1?this:(e.pipes.splice(s,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),r.emit("unpipe",this,t),this)};Le.prototype.on=function(r,e){var t=K0.prototype.on.call(this,r,e);if(r==="data")this._readableState.flowing!==!1&&this.resume();else if(r==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&u1(this):vn.nextTick(ww,this))}return t};Le.prototype.addListener=Le.prototype.on;function ww(r){je("readable nexttick read 0"),r.read(0)}Le.prototype.resume=function(){var r=this._readableState;return r.flowing||(je("resume"),r.flowing=!0,_w(this,r)),this};function _w(r,e){e.resumeScheduled||(e.resumeScheduled=!0,vn.nextTick(xw,r,e))}function xw(r,e){e.reading||(je("resume read 0"),r.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,r.emit("resume"),W0(r),e.flowing&&!e.reading&&r.read(0)}Le.prototype.pause=function(){return je("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(je("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function W0(r){var e=r._readableState;for(je("flow",e.flowing);e.flowing&&r.read()!==null;);}Le.prototype.wrap=function(r){var e=this,t=this._readableState,n=!1;r.on("end",function(){if(je("wrapped end"),t.decoder&&!t.ended){var s=t.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),r.on("data",function(s){if(je("wrapped data"),t.decoder&&(s=t.decoder.write(s)),!(t.objectMode&&s==null)&&!(!t.objectMode&&(!s||!s.length))){var m=e.push(s);m||(n=!0,r.pause())}});for(var i in r)this[i]===void 0&&typeof r[i]=="function"&&(this[i]=(function(s){return function(){return r[s].apply(r,arguments)}})(i));for(var a=0;a<F0.length;a++)r.on(F0[a],this.emit.bind(this,F0[a]));return this._read=function(s){je("wrapped _read",s),n&&(n=!1,r.resume())},this};Object.defineProperty(Le.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Le._fromList=uh;function uh(r,e){if(e.length===0)return null;var t;return e.objectMode?t=e.buffer.shift():!r||r>=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.head.data:t=e.buffer.concat(e.length),e.buffer.clear()):t=Mw(r,e.buffer,e.decoder),t}function Mw(r,e,t){var n;return r<e.head.data.length?(n=e.head.data.slice(0,r),e.head.data=e.head.data.slice(r)):r===e.head.data.length?n=e.shift():n=t?Ew(r,e):Sw(r,e),n}function Ew(r,e){var t=e.head,n=1,i=t.data;for(r-=i.length;t=t.next;){var a=t.data,s=r>a.length?a.length:r;if(s===a.length?i+=a:i+=a.slice(0,r),r-=s,r===0){s===a.length?(++n,t.next?e.head=t.next:e.head=e.tail=null):(e.head=t,t.data=a.slice(s));break}++n}return e.length-=n,i}function Sw(r,e){var t=ya.allocUnsafe(r),n=e.head,i=1;for(n.data.copy(t),r-=n.data.length;n=n.next;){var a=n.data,s=r>a.length?a.length:r;if(a.copy(t,t.length-r,0,s),r-=s,r===0){s===a.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=a.slice(s));break}++i}return e.length-=i,t}function H0(r){var e=r._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,vn.nextTick(Bw,e,r))}function Bw(r,e){!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"))}function lh(r,e){for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}});var V0=A((wk,ph)=>{"use strict";y();ph.exports=mt;var l1=_i(),dh=Object.create(hn());dh.inherits=V();dh.inherits(mt,l1);function Aw(r,e){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));t.writechunk=null,t.writecb=null,e!=null&&this.push(e),n(r);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function mt(r){if(!(this instanceof mt))return new mt(r);l1.call(this,r),this._transformState={afterTransform:Aw.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",qw)}function qw(){var r=this;typeof this._flush=="function"?this._flush(function(e,t){hh(r,e,t)}):hh(this,null,null)}mt.prototype.push=function(r,e){return this._transformState.needTransform=!1,l1.prototype.push.call(this,r,e)};mt.prototype._transform=function(r,e,t){throw new Error("_transform() is not implemented")};mt.prototype._write=function(r,e,t){var n=this._transformState;if(n.writecb=t,n.writechunk=r,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};mt.prototype._read=function(r){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};mt.prototype._destroy=function(r,e){var t=this;l1.prototype._destroy.call(this,r,function(n){e(n),t.emit("close")})};function hh(r,e,t){if(e)return r.emit("error",e);if(t!=null&&r.push(t),r._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(r._transformState.transforming)throw new Error("Calling transform done when still transforming");return r.push(null)}});var bh=A((xk,gh)=>{"use strict";y();gh.exports=wa;var vh=V0(),mh=Object.create(hn());mh.inherits=V();mh.inherits(wa,vh);function wa(r){if(!(this instanceof wa))return new wa(r);vh.call(this,r)}wa.prototype._transform=function(r,e,t){t(null,r)}});var wh=A((tt,yh)=>{y();tt=yh.exports=z0();tt.Stream=tt;tt.Readable=tt;tt.Writable=D0();tt.Duplex=_i();tt.Transform=V0();tt.PassThrough=bh()});var Mh=A((Sk,xh)=>{"use strict";y();var kw=Se().Buffer,Rw=Cc(),_h=wh().Transform,Iw=V();function Dt(r){_h.call(this),this._block=kw.allocUnsafe(r),this._blockSize=r,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Iw(Dt,_h);Dt.prototype._transform=function(r,e,t){var n=null;try{this.update(r,e)}catch(i){n=i}t(n)};Dt.prototype._flush=function(r){var e=null;try{this.push(this.digest())}catch(t){e=t}r(e)};Dt.prototype.update=function(r,e){if(this._finalized)throw new Error("Digest already called");for(var t=Rw(r,e),n=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a]=t[i],a+=1,i+=1;this._update(),this._blockOffset=0}for(;i<t.length;)n[this._blockOffset]=t[i],this._blockOffset+=1,i+=1;for(var s=0,m=t.length*8;m>0;++s)this._length[s]+=m,m=this._length[s]/4294967296|0,m>0&&(this._length[s]-=4294967296*m);return this};Dt.prototype._update=function(){throw new Error("_update is not implemented")};Dt.prototype.digest=function(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();r!==void 0&&(e=e.toString(r)),this._block.fill(0),this._blockOffset=0;for(var t=0;t<4;++t)this._length[t]=0;return e};Dt.prototype._digest=function(){throw new Error("_digest is not implemented")};xh.exports=Dt});var h1=A((Ak,Rh)=>{"use strict";y();var G0=or().Buffer,Tw=V(),kh=Mh(),Cw=new Array(16),_a=[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],xa=[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],Ma=[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],Ea=[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],Sa=[0,1518500249,1859775393,2400959708,2840853838],Ba=[1352829926,1548603684,1836072691,2053994217,0];function xi(r,e){return r<<e|r>>>32-e}function Eh(r,e,t,n,i,a,s,m){return xi(r+(e^t^n)+a+s|0,m)+i|0}function Sh(r,e,t,n,i,a,s,m){return xi(r+(e&t|~e&n)+a+s|0,m)+i|0}function Bh(r,e,t,n,i,a,s,m){return xi(r+((e|~t)^n)+a+s|0,m)+i|0}function Ah(r,e,t,n,i,a,s,m){return xi(r+(e&n|t&~n)+a+s|0,m)+i|0}function qh(r,e,t,n,i,a,s,m){return xi(r+(e^(t|~n))+a+s|0,m)+i|0}function c1(){kh.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}Tw(c1,kh);c1.prototype._update=function(){for(var r=Cw,e=0;e<16;++e)r[e]=this._block.readInt32LE(e*4);for(var t=this._a|0,n=this._b|0,i=this._c|0,a=this._d|0,s=this._e|0,m=this._a|0,w=this._b|0,E=this._c|0,q=this._d|0,k=this._e|0,R=0;R<80;R+=1){var I,D;R<16?(I=Eh(t,n,i,a,s,r[_a[R]],Sa[0],Ma[R]),D=qh(m,w,E,q,k,r[xa[R]],Ba[0],Ea[R])):R<32?(I=Sh(t,n,i,a,s,r[_a[R]],Sa[1],Ma[R]),D=Ah(m,w,E,q,k,r[xa[R]],Ba[1],Ea[R])):R<48?(I=Bh(t,n,i,a,s,r[_a[R]],Sa[2],Ma[R]),D=Bh(m,w,E,q,k,r[xa[R]],Ba[2],Ea[R])):R<64?(I=Ah(t,n,i,a,s,r[_a[R]],Sa[3],Ma[R]),D=Sh(m,w,E,q,k,r[xa[R]],Ba[3],Ea[R])):(I=qh(t,n,i,a,s,r[_a[R]],Sa[4],Ma[R]),D=Eh(m,w,E,q,k,r[xa[R]],Ba[4],Ea[R])),t=s,s=a,a=xi(i,10),i=n,n=I,m=k,k=q,q=xi(E,10),E=w,w=D}var z=this._b+i+q|0;this._b=this._c+a+k|0,this._c=this._d+s+m|0,this._d=this._e+t+w|0,this._e=this._a+n+E|0,this._a=z};c1.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var r=G0.alloc?G0.alloc(20):new G0(20);return r.writeInt32LE(this._a,0),r.writeInt32LE(this._b,4),r.writeInt32LE(this._c,8),r.writeInt32LE(this._d,12),r.writeInt32LE(this._e,16),r};Rh.exports=c1});var Mi=A((kk,Ih)=>{"use strict";y();var jw=Se().Buffer,Ow=da();function d1(r,e){this._block=jw.alloc(r),this._finalSize=e,this._blockSize=r,this._len=0}d1.prototype.update=function(r,e){r=Ow(r,e||"utf8");for(var t=this._block,n=this._blockSize,i=r.length,a=this._len,s=0;s<i;){for(var m=a%n,w=Math.min(i-s,n-m),E=0;E<w;E++)t[m+E]=r[s+E];a+=w,s+=w,a%n===0&&this._update(t)}return this._len+=i,this};d1.prototype.digest=function(r){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var t=this._len*8;if(t<=4294967295)this._block.writeUInt32BE(t,this._blockSize-4);else{var n=(t&4294967295)>>>0,i=(t-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var a=this._hash();return r?a.toString(r):a};d1.prototype._update=function(){throw new Error("_update must be implemented by subclass")};Ih.exports=d1});var jh=A((Ik,Ch)=>{"use strict";y();var Dw=V(),Th=Mi(),Pw=Se().Buffer,Uw=[1518500249,1859775393,-1894007588,-899497514],zw=new Array(80);function Aa(){this.init(),this._w=zw,Th.call(this,64,56)}Dw(Aa,Th);Aa.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Nw(r){return r<<5|r>>>27}function Fw(r){return r<<30|r>>>2}function Lw(r,e,t,n){return r===0?e&t|~e&n:r===2?e&t|e&n|t&n:e^t^n}Aa.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,i=this._c|0,a=this._d|0,s=this._e|0,m=0;m<16;++m)e[m]=r.readInt32BE(m*4);for(;m<80;++m)e[m]=e[m-3]^e[m-8]^e[m-14]^e[m-16];for(var w=0;w<80;++w){var E=~~(w/20),q=Nw(t)+Lw(E,n,i,a)+s+e[w]+Uw[E]|0;s=a,a=i,i=Fw(n),n=t,t=q}this._a=t+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0};Aa.prototype._hash=function(){var r=Pw.allocUnsafe(20);return r.writeInt32BE(this._a|0,0),r.writeInt32BE(this._b|0,4),r.writeInt32BE(this._c|0,8),r.writeInt32BE(this._d|0,12),r.writeInt32BE(this._e|0,16),r};Ch.exports=Aa});var Ph=A((Ck,Dh)=>{"use strict";y();var Hw=V(),Oh=Mi(),Kw=Se().Buffer,Ww=[1518500249,1859775393,-1894007588,-899497514],Vw=new Array(80);function qa(){this.init(),this._w=Vw,Oh.call(this,64,56)}Hw(qa,Oh);qa.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Gw(r){return r<<1|r>>>31}function $w(r){return r<<5|r>>>27}function Zw(r){return r<<30|r>>>2}function Yw(r,e,t,n){return r===0?e&t|~e&n:r===2?e&t|e&n|t&n:e^t^n}qa.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,i=this._c|0,a=this._d|0,s=this._e|0,m=0;m<16;++m)e[m]=r.readInt32BE(m*4);for(;m<80;++m)e[m]=Gw(e[m-3]^e[m-8]^e[m-14]^e[m-16]);for(var w=0;w<80;++w){var E=~~(w/20),q=$w(t)+Yw(E,n,i,a)+s+e[w]+Ww[E]|0;s=a,a=i,i=Zw(n),n=t,t=q}this._a=t+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0};qa.prototype._hash=function(){var r=Kw.allocUnsafe(20);return r.writeInt32BE(this._a|0,0),r.writeInt32BE(this._b|0,4),r.writeInt32BE(this._c|0,8),r.writeInt32BE(this._d|0,12),r.writeInt32BE(this._e|0,16),r};Dh.exports=qa});var $0=A((Ok,zh)=>{"use strict";y();var Xw=V(),Uh=Mi(),Jw=Se().Buffer,Qw=[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],e_=new Array(64);function ka(){this.init(),this._w=e_,Uh.call(this,64,56)}Xw(ka,Uh);ka.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 r_(r,e,t){return t^r&(e^t)}function t_(r,e,t){return r&e|t&(r|e)}function i_(r){return(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10)}function n_(r){return(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7)}function a_(r){return(r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3}function o_(r){return(r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10}ka.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,i=this._c|0,a=this._d|0,s=this._e|0,m=this._f|0,w=this._g|0,E=this._h|0,q=0;q<16;++q)e[q]=r.readInt32BE(q*4);for(;q<64;++q)e[q]=o_(e[q-2])+e[q-7]+a_(e[q-15])+e[q-16]|0;for(var k=0;k<64;++k){var R=E+n_(s)+r_(s,m,w)+Qw[k]+e[k]|0,I=i_(t)+t_(t,n,i)|0;E=w,w=m,m=s,s=a+R|0,a=i,i=n,n=t,t=R+I|0}this._a=t+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0,this._f=m+this._f|0,this._g=w+this._g|0,this._h=E+this._h|0};ka.prototype._hash=function(){var r=Jw.allocUnsafe(32);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r.writeInt32BE(this._h,28),r};zh.exports=ka});var Fh=A((Pk,Nh)=>{"use strict";y();var s_=V(),f_=$0(),u_=Mi(),l_=Se().Buffer,c_=new Array(64);function p1(){this.init(),this._w=c_,u_.call(this,64,56)}s_(p1,f_);p1.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};p1.prototype._hash=function(){var r=l_.allocUnsafe(28);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r};Nh.exports=p1});var Z0=A((zk,$h)=>{"use strict";y();var h_=V(),Gh=Mi(),d_=Se().Buffer,Lh=[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],p_=new Array(160);function Ra(){this.init(),this._w=p_,Gh.call(this,128,112)}h_(Ra,Gh);Ra.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 Hh(r,e,t){return t^r&(e^t)}function Kh(r,e,t){return r&e|t&(r|e)}function Wh(r,e){return(r>>>28|e<<4)^(e>>>2|r<<30)^(e>>>7|r<<25)}function Vh(r,e){return(r>>>14|e<<18)^(r>>>18|e<<14)^(e>>>9|r<<23)}function v_(r,e){return(r>>>1|e<<31)^(r>>>8|e<<24)^r>>>7}function m_(r,e){return(r>>>1|e<<31)^(r>>>8|e<<24)^(r>>>7|e<<25)}function g_(r,e){return(r>>>19|e<<13)^(e>>>29|r<<3)^r>>>6}function b_(r,e){return(r>>>19|e<<13)^(e>>>29|r<<3)^(r>>>6|e<<26)}function tr(r,e){return r>>>0<e>>>0?1:0}Ra.prototype._update=function(r){for(var e=this._w,t=this._ah|0,n=this._bh|0,i=this._ch|0,a=this._dh|0,s=this._eh|0,m=this._fh|0,w=this._gh|0,E=this._hh|0,q=this._al|0,k=this._bl|0,R=this._cl|0,I=this._dl|0,D=this._el|0,z=this._fl|0,W=this._gl|0,N=this._hl|0,H=0;H<32;H+=2)e[H]=r.readInt32BE(H*4),e[H+1]=r.readInt32BE(H*4+4);for(;H<160;H+=2){var ze=e[H-30],Oe=e[H-30+1],ar=v_(ze,Oe),De=m_(Oe,ze);ze=e[H-4],Oe=e[H-4+1];var We=g_(ze,Oe),Ae=b_(Oe,ze),Je=e[H-14],B=e[H-14+1],l=e[H-32],b=e[H-32+1],d=De+B|0,o=ar+Je+tr(d,De)|0;d=d+Ae|0,o=o+We+tr(d,Ae)|0,d=d+b|0,o=o+l+tr(d,b)|0,e[H]=o,e[H+1]=d}for(var u=0;u<160;u+=2){o=e[u],d=e[u+1];var p=Kh(t,n,i),v=Kh(q,k,R),c=Wh(t,q),f=Wh(q,t),g=Vh(s,D),_=Vh(D,s),h=Lh[u],x=Lh[u+1],C=Hh(s,m,w),j=Hh(D,z,W),O=N+_|0,U=E+g+tr(O,N)|0;O=O+j|0,U=U+C+tr(O,j)|0,O=O+x|0,U=U+h+tr(O,x)|0,O=O+d|0,U=U+o+tr(O,d)|0;var P=f+v|0,F=c+p+tr(P,f)|0;E=w,N=W,w=m,W=z,m=s,z=D,D=I+O|0,s=a+U+tr(D,I)|0,a=i,I=R,i=n,R=k,n=t,k=q,q=O+P|0,t=U+F+tr(q,O)|0}this._al=this._al+q|0,this._bl=this._bl+k|0,this._cl=this._cl+R|0,this._dl=this._dl+I|0,this._el=this._el+D|0,this._fl=this._fl+z|0,this._gl=this._gl+W|0,this._hl=this._hl+N|0,this._ah=this._ah+t+tr(this._al,q)|0,this._bh=this._bh+n+tr(this._bl,k)|0,this._ch=this._ch+i+tr(this._cl,R)|0,this._dh=this._dh+a+tr(this._dl,I)|0,this._eh=this._eh+s+tr(this._el,D)|0,this._fh=this._fh+m+tr(this._fl,z)|0,this._gh=this._gh+w+tr(this._gl,W)|0,this._hh=this._hh+E+tr(this._hl,N)|0};Ra.prototype._hash=function(){var r=d_.allocUnsafe(64);function e(t,n,i){r.writeInt32BE(t,i),r.writeInt32BE(n,i+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),r};$h.exports=Ra});var Yh=A((Fk,Zh)=>{"use strict";y();var y_=V(),w_=Z0(),__=Mi(),x_=Se().Buffer,M_=new Array(160);function v1(){this.init(),this._w=M_,__.call(this,128,112)}y_(v1,w_);v1.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};v1.prototype._hash=function(){var r=x_.allocUnsafe(48);function e(t,n,i){r.writeInt32BE(t,i),r.writeInt32BE(n,i+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),r};Zh.exports=v1});var m1=A((Hk,gt)=>{"use strict";y();gt.exports=function(e){var t=e.toLowerCase(),n=gt.exports[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n};gt.exports.sha=jh();gt.exports.sha1=Ph();gt.exports.sha224=Fh();gt.exports.sha256=$0();gt.exports.sha384=Yh();gt.exports.sha512=Z0()});var bt=A((Wk,Jh)=>{"use strict";y();var E_=Se().Buffer,Xh=k0().Transform,S_=fn().StringDecoder,B_=V(),A_=da();function Or(r){Xh.call(this),this.hashMode=typeof r=="string",this.hashMode?this[r]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}B_(Or,Xh);Or.prototype.update=function(r,e,t){var n=A_(r,e),i=this._update(n);return this.hashMode?this:(t&&(i=this._toString(i,t)),i)};Or.prototype.setAutoPadding=function(){};Or.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};Or.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};Or.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};Or.prototype._transform=function(r,e,t){var n;try{this.hashMode?this._update(r):this.push(this._update(r))}catch(i){n=i}finally{t(n)}};Or.prototype._flush=function(r){var e;try{this.push(this.__final())}catch(t){e=t}r(e)};Or.prototype._finalOrDigest=function(r){var e=this.__final()||E_.alloc(0);return r&&(e=this._toString(e,r,!0)),e};Or.prototype._toString=function(r,e,t){if(this._decoder||(this._decoder=new S_(e),this._encoding=e),this._encoding!==e)throw new Error("can\u2019t switch encodings");var n=this._decoder.write(r);return t&&(n+=this._decoder.end()),n};Jh.exports=Or});var Ia=A((Gk,e7)=>{"use strict";y();var q_=V(),k_=Qo(),R_=h1(),I_=m1(),Qh=bt();function g1(r){Qh.call(this,"digest"),this._hash=r}q_(g1,Qh);g1.prototype._update=function(r){this._hash.update(r)};g1.prototype._final=function(){return this._hash.digest()};e7.exports=function(e){return e=e.toLowerCase(),e==="md5"?new k_:e==="rmd160"||e==="ripemd160"?new R_:new g1(I_(e))}});var i7=A((Zk,t7)=>{"use strict";y();var T_=V(),Ei=Se().Buffer,r7=bt(),C_=Ei.alloc(128),mn=64;function b1(r,e){r7.call(this,"digest"),typeof e=="string"&&(e=Ei.from(e)),this._alg=r,this._key=e,e.length>mn?e=r(e):e.length<mn&&(e=Ei.concat([e,C_],mn));for(var t=this._ipad=Ei.allocUnsafe(mn),n=this._opad=Ei.allocUnsafe(mn),i=0;i<mn;i++)t[i]=e[i]^54,n[i]=e[i]^92;this._hash=[t]}T_(b1,r7);b1.prototype._update=function(r){this._hash.push(r)};b1.prototype._final=function(){var r=this._alg(Ei.concat(this._hash));return this._alg(Ei.concat([this._opad,r]))};t7.exports=b1});var Y0=A((Xk,n7)=>{y();var j_=Qo();n7.exports=function(r){return new j_().update(r).digest()}});var s7=A((Qk,o7)=>{"use strict";y();var O_=V(),D_=i7(),a7=bt(),Ta=Se().Buffer,P_=Y0(),X0=h1(),J0=m1(),U_=Ta.alloc(128);function Ca(r,e){a7.call(this,"digest"),typeof e=="string"&&(e=Ta.from(e));var t=r==="sha512"||r==="sha384"?128:64;if(this._alg=r,this._key=e,e.length>t){var n=r==="rmd160"?new X0:J0(r);e=n.update(e).digest()}else e.length<t&&(e=Ta.concat([e,U_],t));for(var i=this._ipad=Ta.allocUnsafe(t),a=this._opad=Ta.allocUnsafe(t),s=0;s<t;s++)i[s]=e[s]^54,a[s]=e[s]^92;this._hash=r==="rmd160"?new X0:J0(r),this._hash.update(i)}O_(Ca,a7);Ca.prototype._update=function(r){this._hash.update(r)};Ca.prototype._final=function(){var r=this._hash.digest(),e=this._alg==="rmd160"?new X0:J0(this._alg);return e.update(this._opad).update(r).digest()};o7.exports=function(e,t){return e=e.toLowerCase(),e==="rmd160"||e==="ripemd160"?new Ca("rmd160",t):e==="md5"?new D_(P_,t):new Ca(e,t)}});var y1=A((rR,f7)=>{"use strict";y();f7.exports={}});var Q0=A((iR,u7)=>{"use strict";y();var z_=isFinite,N_=Math.pow(2,30)-1;u7.exports=function(r,e){if(typeof r!="number")throw new TypeError("Iterations not a number");if(r<0||!z_(r))throw new TypeError("Bad iterations");if(typeof e!="number")throw new TypeError("Key length not a number");if(e<0||e>N_||e!==e)throw new TypeError("Bad key length")}});var e6=A((aR,c7)=>{"use strict";y();var w1;globalThis.process&&globalThis.process.browser?w1="utf-8":globalThis.process&&globalThis.process.version?(l7=parseInt(M.default.version.split(".")[0].slice(1),10),w1=l7>=6?"utf-8":"binary"):w1="utf-8";var l7;c7.exports=w1});var r6=A((sR,p7)=>{"use strict";y();var F_=Se().Buffer,L_=da(),d7=typeof Uint8Array<"u",H_=d7&&typeof ArrayBuffer<"u",h7=H_&&ArrayBuffer.isView;p7.exports=function(r,e,t){if(typeof r=="string"||F_.isBuffer(r)||d7&&r instanceof Uint8Array||h7&&h7(r))return L_(r,e);throw new TypeError(t+" must be a string, a Buffer, a Uint8Array, or a DataView")}});var t6=A((uR,b7)=>{"use strict";y();var K_=Y0(),W_=h1(),V_=m1(),Si=Se().Buffer,G_=Q0(),v7=e6(),m7=r6(),$_=Si.alloc(128),_1={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},Z_={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function Y_(r){return new W_().update(r).digest()}function X_(r){function e(t){return V_(r).update(t).digest()}return r==="rmd160"||r==="ripemd160"?Y_:r==="md5"?K_:e}function g7(r,e,t){var n=X_(r),i=r==="sha512"||r==="sha384"?128:64;e.length>i?e=n(e):e.length<i&&(e=Si.concat([e,$_],i));for(var a=Si.allocUnsafe(i+_1[r]),s=Si.allocUnsafe(i+_1[r]),m=0;m<i;m++)a[m]=e[m]^54,s[m]=e[m]^92;var w=Si.allocUnsafe(i+t+4);a.copy(w,0,0,i),this.ipad1=w,this.ipad2=a,this.opad=s,this.alg=r,this.blocksize=i,this.hash=n,this.size=_1[r]}g7.prototype.run=function(r,e){r.copy(e,this.blocksize);var t=this.hash(e);return t.copy(this.opad,this.blocksize),this.hash(this.opad)};function J_(r,e,t,n,i){G_(t,n),r=m7(r,v7,"Password"),e=m7(e,v7,"Salt");var a=(i||"sha1").toLowerCase(),s=Z_[a]||a,m=_1[s];if(typeof m!="number"||!m)throw new TypeError("Digest algorithm not supported: "+i);var w=new g7(s,r,e.length),E=Si.allocUnsafe(n),q=Si.allocUnsafe(e.length+4);e.copy(q,0,0,e.length);for(var k=0,R=m,I=Math.ceil(n/R),D=1;D<=I;D++){q.writeUInt32BE(D,e.length);for(var z=w.run(q,w.ipad1),W=z,N=1;N<t;N++){W=w.run(W,w.ipad2);for(var H=0;H<R;H++)z[H]^=W[H]}z.copy(E,k),k+=R}return E}b7.exports=J_});var S7=A((cR,E7)=>{"use strict";y();var x7=Se().Buffer,Q_=Q0(),y7=e6(),w7=t6(),_7=r6(),x1,ja=globalThis.crypto&&globalThis.crypto.subtle,ex={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},i6=[],Bi;function n6(){return Bi||(globalThis.process&&globalThis.process.nextTick?Bi=globalThis.process.nextTick:globalThis.queueMicrotask?Bi=globalThis.queueMicrotask:globalThis.setImmediate?Bi=globalThis.setImmediate:Bi=globalThis.setTimeout,Bi)}function M7(r,e,t,n,i){return ja.importKey("raw",r,{name:"PBKDF2"},!1,["deriveBits"]).then(function(a){return ja.deriveBits({name:"PBKDF2",salt:e,iterations:t,hash:{name:i}},a,n<<3)}).then(function(a){return x7.from(a)})}function rx(r){if(globalThis.process&&!globalThis.process.browser||!ja||!ja.importKey||!ja.deriveBits)return Promise.resolve(!1);if(i6[r]!==void 0)return i6[r];x1=x1||x7.alloc(8);var e=M7(x1,x1,10,128,r).then(function(){return!0},function(){return!1});return i6[r]=e,e}function tx(r,e){r.then(function(t){n6()(function(){e(null,t)})},function(t){n6()(function(){e(t)})})}E7.exports=function(r,e,t,n,i,a){if(typeof i=="function"&&(a=i,i=void 0),Q_(t,n),r=_7(r,y7,"Password"),e=_7(e,y7,"Salt"),typeof a!="function")throw new Error("No callback provided to pbkdf2");i=i||"sha1";var s=ex[i.toLowerCase()];if(!s||typeof globalThis.Promise!="function"){n6()(function(){var m;try{m=w7(r,e,t,n,i)}catch(w){a(w);return}a(null,m)});return}tx(rx(s).then(function(m){return m?M7(r,e,t,n,s):w7(r,e,t,n,i)}),a)}});var o6=A(a6=>{"use strict";y();a6.pbkdf2=S7();a6.pbkdf2Sync=t6()});var s6=A(xr=>{"use strict";y();xr.readUInt32BE=function(e,t){var n=e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t];return n>>>0};xr.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=t&255};xr.ip=function(e,t,n,i){for(var a=0,s=0,m=6;m>=0;m-=2){for(var w=0;w<=24;w+=8)a<<=1,a|=t>>>w+m&1;for(var w=0;w<=24;w+=8)a<<=1,a|=e>>>w+m&1}for(var m=6;m>=0;m-=2){for(var w=1;w<=25;w+=8)s<<=1,s|=t>>>w+m&1;for(var w=1;w<=25;w+=8)s<<=1,s|=e>>>w+m&1}n[i+0]=a>>>0,n[i+1]=s>>>0};xr.rip=function(e,t,n,i){for(var a=0,s=0,m=0;m<4;m++)for(var w=24;w>=0;w-=8)a<<=1,a|=t>>>w+m&1,a<<=1,a|=e>>>w+m&1;for(var m=4;m<8;m++)for(var w=24;w>=0;w-=8)s<<=1,s|=t>>>w+m&1,s<<=1,s|=e>>>w+m&1;n[i+0]=a>>>0,n[i+1]=s>>>0};xr.pc1=function(e,t,n,i){for(var a=0,s=0,m=7;m>=5;m--){for(var w=0;w<=24;w+=8)a<<=1,a|=t>>w+m&1;for(var w=0;w<=24;w+=8)a<<=1,a|=e>>w+m&1}for(var w=0;w<=24;w+=8)a<<=1,a|=t>>w+m&1;for(var m=1;m<=3;m++){for(var w=0;w<=24;w+=8)s<<=1,s|=t>>w+m&1;for(var w=0;w<=24;w+=8)s<<=1,s|=e>>w+m&1}for(var w=0;w<=24;w+=8)s<<=1,s|=e>>w+m&1;n[i+0]=a>>>0,n[i+1]=s>>>0};xr.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var M1=[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];xr.pc2=function(e,t,n,i){for(var a=0,s=0,m=M1.length>>>1,w=0;w<m;w++)a<<=1,a|=e>>>M1[w]&1;for(var w=m;w<M1.length;w++)s<<=1,s|=t>>>M1[w]&1;n[i+0]=a>>>0,n[i+1]=s>>>0};xr.expand=function(e,t,n){var i=0,a=0;i=(e&1)<<5|e>>>27;for(var s=23;s>=15;s-=4)i<<=6,i|=e>>>s&63;for(var s=11;s>=3;s-=4)a|=e>>>s&63,a<<=6;a|=(e&31)<<1|e>>>31,t[n+0]=i>>>0,t[n+1]=a>>>0};var B7=[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];xr.substitute=function(e,t){for(var n=0,i=0;i<4;i++){var a=e>>>18-i*6&63,s=B7[i*64+a];n<<=4,n|=s}for(var i=0;i<4;i++){var a=t>>>18-i*6&63,s=B7[256+i*64+a];n<<=4,n|=s}return n>>>0};var A7=[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];xr.permute=function(e){for(var t=0,n=0;n<A7.length;n++)t<<=1,t|=e>>>A7[n]&1;return t>>>0};xr.padSplit=function(e,t,n){for(var i=e.toString(2);i.length<t;)i="0"+i;for(var a=[],s=0;s<t;s+=n)a.push(i.slice(s,s+n));return a.join(" ")}});var E1=A((gR,q7)=>{"use strict";y();var ix=kr();function Mr(r){this.options=r,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=r.padding!==!1}q7.exports=Mr;Mr.prototype._init=function(){};Mr.prototype.update=function(e){return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e)};Mr.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),i=0;i<n;i++)this.buffer[this.bufferOff+i]=e[t+i];return this.bufferOff+=n,n};Mr.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize};Mr.prototype._updateEncrypt=function(e){var t=0,n=0,i=(this.bufferOff+e.length)/this.blockSize|0,a=new Array(i*this.blockSize);this.bufferOff!==0&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(a,n)));for(var s=e.length-(e.length-t)%this.blockSize;t<s;t+=this.blockSize)this._update(e,t,a,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return a};Mr.prototype._updateDecrypt=function(e){for(var t=0,n=0,i=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,a=new Array(i*this.blockSize);i>0;i--)t+=this._buffer(e,t),n+=this._flushBuffer(a,n);return t+=this._buffer(e,t),a};Mr.prototype.final=function(e){var t;e&&(t=this.update(e));var n;return this.type==="encrypt"?n=this._finalEncrypt():n=this._finalDecrypt(),t?t.concat(n):n};Mr.prototype._pad=function(e,t){if(t===0)return!1;for(;t<e.length;)e[t++]=0;return!0};Mr.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e};Mr.prototype._unpad=function(e){return e};Mr.prototype._finalDecrypt=function(){ix.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}});var f6=A((yR,I7)=>{"use strict";y();var k7=kr(),nx=V(),Qe=s6(),R7=E1();function ax(){this.tmp=new Array(2),this.keys=null}function it(r){R7.call(this,r);var e=new ax;this._desState=e,this.deriveKeys(e,r.key)}nx(it,R7);I7.exports=it;it.create=function(e){return new it(e)};var ox=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];it.prototype.deriveKeys=function(e,t){e.keys=new Array(32),k7.equal(t.length,this.blockSize,"Invalid key length");var n=Qe.readUInt32BE(t,0),i=Qe.readUInt32BE(t,4);Qe.pc1(n,i,e.tmp,0),n=e.tmp[0],i=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var s=ox[a>>>1];n=Qe.r28shl(n,s),i=Qe.r28shl(i,s),Qe.pc2(n,i,e.keys,a)}};it.prototype._update=function(e,t,n,i){var a=this._desState,s=Qe.readUInt32BE(e,t),m=Qe.readUInt32BE(e,t+4);Qe.ip(s,m,a.tmp,0),s=a.tmp[0],m=a.tmp[1],this.type==="encrypt"?this._encrypt(a,s,m,a.tmp,0):this._decrypt(a,s,m,a.tmp,0),s=a.tmp[0],m=a.tmp[1],Qe.writeUInt32BE(n,s,i),Qe.writeUInt32BE(n,m,i+4)};it.prototype._pad=function(e,t){if(this.padding===!1)return!1;for(var n=e.length-t,i=t;i<e.length;i++)e[i]=n;return!0};it.prototype._unpad=function(e){if(this.padding===!1)return e;for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)k7.equal(e[n],t);return e.slice(0,e.length-t)};it.prototype._encrypt=function(e,t,n,i,a){for(var s=t,m=n,w=0;w<e.keys.length;w+=2){var E=e.keys[w],q=e.keys[w+1];Qe.expand(m,e.tmp,0),E^=e.tmp[0],q^=e.tmp[1];var k=Qe.substitute(E,q),R=Qe.permute(k),I=m;m=(s^R)>>>0,s=I}Qe.rip(m,s,i,a)};it.prototype._decrypt=function(e,t,n,i,a){for(var s=n,m=t,w=e.keys.length-2;w>=0;w-=2){var E=e.keys[w],q=e.keys[w+1];Qe.expand(s,e.tmp,0),E^=e.tmp[0],q^=e.tmp[1];var k=Qe.substitute(E,q),R=Qe.permute(k),I=s;s=(m^R)>>>0,m=I}Qe.rip(s,m,i,a)}});var C7=A(T7=>{"use strict";y();var sx=kr(),fx=V(),S1={};function ux(r){sx.equal(r.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=r[e]}function lx(r){function e(a){r.call(this,a),this._cbcInit()}fx(e,r);for(var t=Object.keys(S1),n=0;n<t.length;n++){var i=t[n];e.prototype[i]=S1[i]}return e.create=function(s){return new e(s)},e}T7.instantiate=lx;S1._cbcInit=function(){var e=new ux(this.options.iv);this._cbcState=e};S1._update=function(e,t,n,i){var a=this._cbcState,s=this.constructor.super_.prototype,m=a.iv;if(this.type==="encrypt"){for(var w=0;w<this.blockSize;w++)m[w]^=e[t+w];s._update.call(this,m,0,n,i);for(var w=0;w<this.blockSize;w++)m[w]=n[i+w]}else{s._update.call(this,e,t,n,i);for(var w=0;w<this.blockSize;w++)n[i+w]^=m[w];for(var w=0;w<this.blockSize;w++)m[w]=e[t+w]}}});var D7=A((MR,O7)=>{"use strict";y();var cx=kr(),hx=V(),j7=E1(),Pt=f6();function dx(r,e){cx.equal(e.length,24,"Invalid key length");var t=e.slice(0,8),n=e.slice(8,16),i=e.slice(16,24);r==="encrypt"?this.ciphers=[Pt.create({type:"encrypt",key:t}),Pt.create({type:"decrypt",key:n}),Pt.create({type:"encrypt",key:i})]:this.ciphers=[Pt.create({type:"decrypt",key:i}),Pt.create({type:"encrypt",key:n}),Pt.create({type:"decrypt",key:t})]}function Ai(r){j7.call(this,r);var e=new dx(this.type,this.options.key);this._edeState=e}hx(Ai,j7);O7.exports=Ai;Ai.create=function(e){return new Ai(e)};Ai.prototype._update=function(e,t,n,i){var a=this._edeState;a.ciphers[0]._update(e,t,n,i),a.ciphers[1]._update(n,i,n,i),a.ciphers[2]._update(n,i,n,i)};Ai.prototype._pad=Pt.prototype._pad;Ai.prototype._unpad=Pt.prototype._unpad});var P7=A(gn=>{"use strict";y();gn.utils=s6();gn.Cipher=E1();gn.DES=f6();gn.CBC=C7();gn.EDE=D7()});var N7=A((AR,z7)=>{y();var U7=bt(),yt=P7(),px=V(),qi=Se().Buffer,Oa={"des-ede3-cbc":yt.CBC.instantiate(yt.EDE),"des-ede3":yt.EDE,"des-ede-cbc":yt.CBC.instantiate(yt.EDE),"des-ede":yt.EDE,"des-cbc":yt.CBC.instantiate(yt.DES),"des-ecb":yt.DES};Oa.des=Oa["des-cbc"];Oa.des3=Oa["des-ede3-cbc"];z7.exports=B1;px(B1,U7);function B1(r){U7.call(this);var e=r.mode.toLowerCase(),t=Oa[e],n;r.decrypt?n="decrypt":n="encrypt";var i=r.key;qi.isBuffer(i)||(i=qi.from(i)),(e==="des-ede"||e==="des-ede-cbc")&&(i=qi.concat([i,i.slice(0,8)]));var a=r.iv;qi.isBuffer(a)||(a=qi.from(a)),this._des=t.create({key:i,iv:a,type:n})}B1.prototype._update=function(r){return qi.from(this._des.update(r))};B1.prototype._final=function(){return qi.from(this._des.final())}});var F7=A(u6=>{y();u6.encrypt=function(r,e){return r._cipher.encryptBlock(e)};u6.decrypt=function(r,e){return r._cipher.decryptBlock(e)}});var bn=A((IR,L7)=>{y();L7.exports=function(e,t){for(var n=Math.min(e.length,t.length),i=new S.Buffer(n),a=0;a<n;++a)i[a]=e[a]^t[a];return i}});var K7=A(l6=>{y();var H7=bn();l6.encrypt=function(r,e){var t=H7(e,r._prev);return r._prev=r._cipher.encryptBlock(t),r._prev};l6.decrypt=function(r,e){var t=r._prev;r._prev=e;var n=r._cipher.decryptBlock(e);return H7(n,t)}});var G7=A(V7=>{y();var Da=Se().Buffer,vx=bn();function W7(r,e,t){var n=e.length,i=vx(e,r._cache);return r._cache=r._cache.slice(n),r._prev=Da.concat([r._prev,t?e:i]),i}V7.encrypt=function(r,e,t){for(var n=Da.allocUnsafe(0),i;e.length;)if(r._cache.length===0&&(r._cache=r._cipher.encryptBlock(r._prev),r._prev=Da.allocUnsafe(0)),r._cache.length<=e.length)i=r._cache.length,n=Da.concat([n,W7(r,e.slice(0,i),t)]),e=e.slice(i);else{n=Da.concat([n,W7(r,e,t)]);break}return n}});var Z7=A($7=>{y();var c6=Se().Buffer;function mx(r,e,t){var n=r._cipher.encryptBlock(r._prev),i=n[0]^e;return r._prev=c6.concat([r._prev.slice(1),c6.from([t?e:i])]),i}$7.encrypt=function(r,e,t){for(var n=e.length,i=c6.allocUnsafe(n),a=-1;++a<n;)i[a]=mx(r,e[a],t);return i}});var X7=A(Y7=>{y();var A1=Se().Buffer;function gx(r,e,t){for(var n,i=-1,a=8,s=0,m,w;++i<a;)n=r._cipher.encryptBlock(r._prev),m=e&1<<7-i?128:0,w=n[0]^m,s+=(w&128)>>i%8,r._prev=bx(r._prev,t?m:w);return s}function bx(r,e){var t=r.length,n=-1,i=A1.allocUnsafe(r.length);for(r=A1.concat([r,A1.from([e])]);++n<t;)i[n]=r[n]<<1|r[n+1]>>7;return i}Y7.encrypt=function(r,e,t){for(var n=e.length,i=A1.allocUnsafe(n),a=-1;++a<n;)i[a]=gx(r,e[a],t);return i}});var Q7=A(J7=>{y();var yx=bn();function wx(r){return r._prev=r._cipher.encryptBlock(r._prev),r._prev}J7.encrypt=function(r,e){for(;r._cache.length<e.length;)r._cache=S.Buffer.concat([r._cache,wx(r)]);var t=r._cache.slice(0,e.length);return r._cache=r._cache.slice(e.length),yx(e,t)}});var h6=A((HR,e4)=>{y();function _x(r){for(var e=r.length,t;e--;)if(t=r.readUInt8(e),t===255)r.writeUInt8(0,e);else{t++,r.writeUInt8(t,e);break}}e4.exports=_x});var p6=A(t4=>{y();var xx=bn(),r4=Se().Buffer,Mx=h6();function Ex(r){var e=r._cipher.encryptBlockRaw(r._prev);return Mx(r._prev),e}var d6=16;t4.encrypt=function(r,e){var t=Math.ceil(e.length/d6),n=r._cache.length;r._cache=r4.concat([r._cache,r4.allocUnsafe(t*d6)]);for(var i=0;i<t;i++){var a=Ex(r),s=n+i*d6;r._cache.writeUInt32BE(a[0],s+0),r._cache.writeUInt32BE(a[1],s+4),r._cache.writeUInt32BE(a[2],s+8),r._cache.writeUInt32BE(a[3],s+12)}var m=r._cache.slice(0,e.length);return r._cache=r._cache.slice(e.length),xx(e,m)}});var v6=A((GR,Sx)=>{Sx.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}});var k1=A(($R,i4)=>{y();var Bx={ECB:F7(),CBC:K7(),CFB:G7(),CFB8:Z7(),CFB1:X7(),OFB:Q7(),CTR:p6(),GCM:p6()},q1=v6();for(m6 in q1)q1[m6].module=Bx[q1[m6].mode];var m6;i4.exports=q1});var Pa=A((YR,a4)=>{y();var R1=Se().Buffer;function b6(r){R1.isBuffer(r)||(r=R1.from(r));for(var e=r.length/4|0,t=new Array(e),n=0;n<e;n++)t[n]=r.readUInt32BE(n*4);return t}function g6(r){for(var e=0;e<r.length;r++)r[e]=0}function n4(r,e,t,n,i){for(var a=t[0],s=t[1],m=t[2],w=t[3],E=r[0]^e[0],q=r[1]^e[1],k=r[2]^e[2],R=r[3]^e[3],I,D,z,W,N=4,H=1;H<i;H++)I=a[E>>>24]^s[q>>>16&255]^m[k>>>8&255]^w[R&255]^e[N++],D=a[q>>>24]^s[k>>>16&255]^m[R>>>8&255]^w[E&255]^e[N++],z=a[k>>>24]^s[R>>>16&255]^m[E>>>8&255]^w[q&255]^e[N++],W=a[R>>>24]^s[E>>>16&255]^m[q>>>8&255]^w[k&255]^e[N++],E=I,q=D,k=z,R=W;return I=(n[E>>>24]<<24|n[q>>>16&255]<<16|n[k>>>8&255]<<8|n[R&255])^e[N++],D=(n[q>>>24]<<24|n[k>>>16&255]<<16|n[R>>>8&255]<<8|n[E&255])^e[N++],z=(n[k>>>24]<<24|n[R>>>16&255]<<16|n[E>>>8&255]<<8|n[q&255])^e[N++],W=(n[R>>>24]<<24|n[E>>>16&255]<<16|n[q>>>8&255]<<8|n[k&255])^e[N++],I=I>>>0,D=D>>>0,z=z>>>0,W=W>>>0,[I,D,z,W]}var Ax=[0,1,2,4,8,16,32,64,128,27,54],Ze=(function(){for(var r=new Array(256),e=0;e<256;e++)e<128?r[e]=e<<1:r[e]=e<<1^283;for(var t=[],n=[],i=[[],[],[],[]],a=[[],[],[],[]],s=0,m=0,w=0;w<256;++w){var E=m^m<<1^m<<2^m<<3^m<<4;E=E>>>8^E&255^99,t[s]=E,n[E]=s;var q=r[s],k=r[q],R=r[k],I=r[E]*257^E*16843008;i[0][s]=I<<24|I>>>8,i[1][s]=I<<16|I>>>16,i[2][s]=I<<8|I>>>24,i[3][s]=I,I=R*16843009^k*65537^q*257^s*16843008,a[0][E]=I<<24|I>>>8,a[1][E]=I<<16|I>>>16,a[2][E]=I<<8|I>>>24,a[3][E]=I,s===0?s=m=1:(s=q^r[r[r[R^q]]],m^=r[r[m]])}return{SBOX:t,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:a}})();function Er(r){this._key=b6(r),this._reset()}Er.blockSize=16;Er.keySize=256/8;Er.prototype.blockSize=Er.blockSize;Er.prototype.keySize=Er.keySize;Er.prototype._reset=function(){for(var r=this._key,e=r.length,t=e+6,n=(t+1)*4,i=[],a=0;a<e;a++)i[a]=r[a];for(a=e;a<n;a++){var s=i[a-1];a%e===0?(s=s<<8|s>>>24,s=Ze.SBOX[s>>>24]<<24|Ze.SBOX[s>>>16&255]<<16|Ze.SBOX[s>>>8&255]<<8|Ze.SBOX[s&255],s^=Ax[a/e|0]<<24):e>6&&a%e===4&&(s=Ze.SBOX[s>>>24]<<24|Ze.SBOX[s>>>16&255]<<16|Ze.SBOX[s>>>8&255]<<8|Ze.SBOX[s&255]),i[a]=i[a-e]^s}for(var m=[],w=0;w<n;w++){var E=n-w,q=i[E-(w%4?0:4)];w<4||E<=4?m[w]=q:m[w]=Ze.INV_SUB_MIX[0][Ze.SBOX[q>>>24]]^Ze.INV_SUB_MIX[1][Ze.SBOX[q>>>16&255]]^Ze.INV_SUB_MIX[2][Ze.SBOX[q>>>8&255]]^Ze.INV_SUB_MIX[3][Ze.SBOX[q&255]]}this._nRounds=t,this._keySchedule=i,this._invKeySchedule=m};Er.prototype.encryptBlockRaw=function(r){return r=b6(r),n4(r,this._keySchedule,Ze.SUB_MIX,Ze.SBOX,this._nRounds)};Er.prototype.encryptBlock=function(r){var e=this.encryptBlockRaw(r),t=R1.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[1],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[3],12),t};Er.prototype.decryptBlock=function(r){r=b6(r);var e=r[1];r[1]=r[3],r[3]=e;var t=n4(r,this._invKeySchedule,Ze.INV_SUB_MIX,Ze.INV_SBOX,this._nRounds),n=R1.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[3],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[1],12),n};Er.prototype.scrub=function(){g6(this._keySchedule),g6(this._invKeySchedule),g6(this._key)};a4.exports.AES=Er});var f4=A((JR,s4)=>{y();var yn=Se().Buffer,qx=yn.alloc(16,0);function kx(r){return[r.readUInt32BE(0),r.readUInt32BE(4),r.readUInt32BE(8),r.readUInt32BE(12)]}function o4(r){var e=yn.allocUnsafe(16);return e.writeUInt32BE(r[0]>>>0,0),e.writeUInt32BE(r[1]>>>0,4),e.writeUInt32BE(r[2]>>>0,8),e.writeUInt32BE(r[3]>>>0,12),e}function Ua(r){this.h=r,this.state=yn.alloc(16,0),this.cache=yn.allocUnsafe(0)}Ua.prototype.ghash=function(r){for(var e=-1;++e<r.length;)this.state[e]^=r[e];this._multiply()};Ua.prototype._multiply=function(){for(var r=kx(this.h),e=[0,0,0,0],t,n,i,a=-1;++a<128;){for(n=(this.state[~~(a/8)]&1<<7-a%8)!==0,n&&(e[0]^=r[0],e[1]^=r[1],e[2]^=r[2],e[3]^=r[3]),i=(r[3]&1)!==0,t=3;t>0;t--)r[t]=r[t]>>>1|(r[t-1]&1)<<31;r[0]=r[0]>>>1,i&&(r[0]=r[0]^225<<24)}this.state=o4(e)};Ua.prototype.update=function(r){this.cache=yn.concat([this.cache,r]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)};Ua.prototype.final=function(r,e){return this.cache.length&&this.ghash(yn.concat([this.cache,qx],16)),this.ghash(o4([0,r,0,e])),this.state};s4.exports=Ua});var y6=A((eI,c4)=>{y();var Rx=Pa(),vr=Se().Buffer,u4=bt(),Ix=V(),l4=f4(),Tx=bn(),Cx=h6();function jx(r,e){var t=0;r.length!==e.length&&t++;for(var n=Math.min(r.length,e.length),i=0;i<n;++i)t+=r[i]^e[i];return t}function Ox(r,e,t){if(e.length===12)return r._finID=vr.concat([e,vr.from([0,0,0,1])]),vr.concat([e,vr.from([0,0,0,2])]);var n=new l4(t),i=e.length,a=i%16;n.update(e),a&&(a=16-a,n.update(vr.alloc(a,0))),n.update(vr.alloc(8,0));var s=i*8,m=vr.alloc(8);m.writeUIntBE(s,0,8),n.update(m),r._finID=n.state;var w=vr.from(r._finID);return Cx(w),w}function ki(r,e,t,n){u4.call(this);var i=vr.alloc(4,0);this._cipher=new Rx.AES(e);var a=this._cipher.encryptBlock(i);this._ghash=new l4(a),t=Ox(this,t,a),this._prev=vr.from(t),this._cache=vr.allocUnsafe(0),this._secCache=vr.allocUnsafe(0),this._decrypt=n,this._alen=0,this._len=0,this._mode=r,this._authTag=null,this._called=!1}Ix(ki,u4);ki.prototype._update=function(r){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=vr.alloc(e,0),this._ghash.update(e))}this._called=!0;var t=this._mode.encrypt(this,r);return this._decrypt?this._ghash.update(r):this._ghash.update(t),this._len+=r.length,t};ki.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var r=Tx(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&jx(r,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=r,this._cipher.scrub()};ki.prototype.getAuthTag=function(){if(this._decrypt||!vr.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag};ki.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e};ki.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length};c4.exports=ki});var _6=A((tI,d4)=>{y();var Dx=Pa(),w6=Se().Buffer,h4=bt(),Px=V();function I1(r,e,t,n){h4.call(this),this._cipher=new Dx.AES(e),this._prev=w6.from(t),this._cache=w6.allocUnsafe(0),this._secCache=w6.allocUnsafe(0),this._decrypt=n,this._mode=r}Px(I1,h4);I1.prototype._update=function(r){return this._mode.encrypt(this,r,this._decrypt)};I1.prototype._final=function(){this._cipher.scrub()};d4.exports=I1});var za=A((nI,p4)=>{y();var Ri=Se().Buffer,Ux=Qo();function zx(r,e,t,n){if(Ri.isBuffer(r)||(r=Ri.from(r,"binary")),e&&(Ri.isBuffer(e)||(e=Ri.from(e,"binary")),e.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var i=t/8,a=Ri.alloc(i),s=Ri.alloc(n||0),m=Ri.alloc(0);i>0||n>0;){var w=new Ux;w.update(m),w.update(r),e&&w.update(e),m=w.digest();var E=0;if(i>0){var q=a.length-i;E=Math.min(i,m.length),m.copy(a,q,0,E),i-=E}if(E<m.length&&n>0){var k=s.length-n,R=Math.min(n,m.length-E);m.copy(s,k,E,E+R),n-=R}}return m.fill(0),{key:a,iv:s}}p4.exports=zx});var b4=A(x6=>{y();var v4=k1(),Nx=y6(),wt=Se().Buffer,Fx=_6(),m4=bt(),Lx=Pa(),Hx=za(),Kx=V();function Na(r,e,t){m4.call(this),this._cache=new T1,this._cipher=new Lx.AES(e),this._prev=wt.from(t),this._mode=r,this._autopadding=!0}Kx(Na,m4);Na.prototype._update=function(r){this._cache.add(r);for(var e,t,n=[];e=this._cache.get();)t=this._mode.encrypt(this,e),n.push(t);return wt.concat(n)};var Wx=wt.alloc(16,16);Na.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return r=this._mode.encrypt(this,r),this._cipher.scrub(),r;if(!r.equals(Wx))throw this._cipher.scrub(),new Error("data not multiple of block length")};Na.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function T1(){this.cache=wt.allocUnsafe(0)}T1.prototype.add=function(r){this.cache=wt.concat([this.cache,r])};T1.prototype.get=function(){if(this.cache.length>15){var r=this.cache.slice(0,16);return this.cache=this.cache.slice(16),r}return null};T1.prototype.flush=function(){for(var r=16-this.cache.length,e=wt.allocUnsafe(r),t=-1;++t<r;)e.writeUInt8(r,t);return wt.concat([this.cache,e])};function g4(r,e,t){var n=v4[r.toLowerCase()];if(!n)throw new TypeError("invalid suite type");if(typeof e=="string"&&(e=wt.from(e)),e.length!==n.key/8)throw new TypeError("invalid key length "+e.length);if(typeof t=="string"&&(t=wt.from(t)),n.mode!=="GCM"&&t.length!==n.iv)throw new TypeError("invalid iv length "+t.length);return n.type==="stream"?new Fx(n.module,e,t):n.type==="auth"?new Nx(n.module,e,t):new Na(n.module,e,t)}function Vx(r,e){var t=v4[r.toLowerCase()];if(!t)throw new TypeError("invalid suite type");var n=Hx(e,!1,t.key,t.iv);return g4(r,n.key,n.iv)}x6.createCipheriv=g4;x6.createCipher=Vx});var x4=A(M6=>{y();var Gx=y6(),wn=Se().Buffer,y4=k1(),$x=_6(),w4=bt(),Zx=Pa(),Yx=za(),Xx=V();function Fa(r,e,t){w4.call(this),this._cache=new C1,this._last=void 0,this._cipher=new Zx.AES(e),this._prev=wn.from(t),this._mode=r,this._autopadding=!0}Xx(Fa,w4);Fa.prototype._update=function(r){this._cache.add(r);for(var e,t,n=[];e=this._cache.get(this._autopadding);)t=this._mode.decrypt(this,e),n.push(t);return wn.concat(n)};Fa.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return Jx(this._mode.decrypt(this,r));if(r)throw new Error("data not multiple of block length")};Fa.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function C1(){this.cache=wn.allocUnsafe(0)}C1.prototype.add=function(r){this.cache=wn.concat([this.cache,r])};C1.prototype.get=function(r){var e;if(r){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null};C1.prototype.flush=function(){if(this.cache.length)return this.cache};function Jx(r){var e=r[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var t=-1;++t<e;)if(r[t+(16-e)]!==e)throw new Error("unable to decrypt data");if(e!==16)return r.slice(0,16-e)}function _4(r,e,t){var n=y4[r.toLowerCase()];if(!n)throw new TypeError("invalid suite type");if(typeof t=="string"&&(t=wn.from(t)),n.mode!=="GCM"&&t.length!==n.iv)throw new TypeError("invalid iv length "+t.length);if(typeof e=="string"&&(e=wn.from(e)),e.length!==n.key/8)throw new TypeError("invalid key length "+e.length);return n.type==="stream"?new $x(n.module,e,t,!0):n.type==="auth"?new Gx(n.module,e,t,!0):new Fa(n.module,e,t)}function Qx(r,e){var t=y4[r.toLowerCase()];if(!t)throw new TypeError("invalid suite type");var n=Yx(e,!1,t.key,t.iv);return _4(r,n.key,n.iv)}M6.createDecipher=Qx;M6.createDecipheriv=_4});var j1=A(Dr=>{y();var M4=b4(),E4=x4(),eM=v6();function rM(){return Object.keys(eM)}Dr.createCipher=Dr.Cipher=M4.createCipher;Dr.createCipheriv=Dr.Cipheriv=M4.createCipheriv;Dr.createDecipher=Dr.Decipher=E4.createDecipher;Dr.createDecipheriv=Dr.Decipheriv=E4.createDecipheriv;Dr.listCiphers=Dr.getCiphers=rM});var S4=A(_t=>{y();_t["des-ecb"]={key:8,iv:0};_t["des-cbc"]=_t.des={key:8,iv:8};_t["des-ede3-cbc"]=_t.des3={key:24,iv:8};_t["des-ede3"]={key:24,iv:0};_t["des-ede-cbc"]={key:16,iv:8};_t["des-ede"]={key:16,iv:0}});var R4=A(Pr=>{y();var B4=N7(),E6=j1(),Ut=k1(),xt=S4(),A4=za();function tM(r,e){r=r.toLowerCase();var t,n;if(Ut[r])t=Ut[r].key,n=Ut[r].iv;else if(xt[r])t=xt[r].key*8,n=xt[r].iv;else throw new TypeError("invalid suite type");var i=A4(e,!1,t,n);return q4(r,i.key,i.iv)}function iM(r,e){r=r.toLowerCase();var t,n;if(Ut[r])t=Ut[r].key,n=Ut[r].iv;else if(xt[r])t=xt[r].key*8,n=xt[r].iv;else throw new TypeError("invalid suite type");var i=A4(e,!1,t,n);return k4(r,i.key,i.iv)}function q4(r,e,t){if(r=r.toLowerCase(),Ut[r])return E6.createCipheriv(r,e,t);if(xt[r])return new B4({key:e,iv:t,mode:r});throw new TypeError("invalid suite type")}function k4(r,e,t){if(r=r.toLowerCase(),Ut[r])return E6.createDecipheriv(r,e,t);if(xt[r])return new B4({key:e,iv:t,mode:r,decrypt:!0});throw new TypeError("invalid suite type")}function nM(){return Object.keys(xt).concat(E6.getCiphers())}Pr.createCipher=Pr.Cipher=tM;Pr.createCipheriv=Pr.Cipheriv=q4;Pr.createDecipher=Pr.Decipher=iM;Pr.createDecipheriv=Pr.Decipheriv=k4;Pr.listCiphers=Pr.getCiphers=nM});var zt=A((I4,S6)=>{y();(function(r,e){"use strict";function t(B,l){if(!B)throw new Error(l||"Assertion failed")}function n(B,l){B.super_=l;var b=function(){};b.prototype=l.prototype,B.prototype=new b,B.prototype.constructor=B}function i(B,l,b){if(i.isBN(B))return B;this.negative=0,this.words=null,this.length=0,this.red=null,B!==null&&((l==="le"||l==="be")&&(b=l,l=10),this._init(B||0,l||10,b||"be"))}typeof r=="object"?r.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=or().Buffer}catch{}i.isBN=function(l){return l instanceof i?!0:l!==null&&typeof l=="object"&&l.constructor.wordSize===i.wordSize&&Array.isArray(l.words)},i.max=function(l,b){return l.cmp(b)>0?l:b},i.min=function(l,b){return l.cmp(b)<0?l:b},i.prototype._init=function(l,b,d){if(typeof l=="number")return this._initNumber(l,b,d);if(typeof l=="object")return this._initArray(l,b,d);b==="hex"&&(b=16),t(b===(b|0)&&b>=2&&b<=36),l=l.toString().replace(/\s+/g,"");var o=0;l[0]==="-"&&(o++,this.negative=1),o<l.length&&(b===16?this._parseHex(l,o,d):(this._parseBase(l,b,o),d==="le"&&this._initArray(this.toArray(),b,d)))},i.prototype._initNumber=function(l,b,d){l<0&&(this.negative=1,l=-l),l<67108864?(this.words=[l&67108863],this.length=1):l<4503599627370496?(this.words=[l&67108863,l/67108864&67108863],this.length=2):(t(l<9007199254740992),this.words=[l&67108863,l/67108864&67108863,1],this.length=3),d==="le"&&this._initArray(this.toArray(),b,d)},i.prototype._initArray=function(l,b,d){if(t(typeof l.length=="number"),l.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(l.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var u,p,v=0;if(d==="be")for(o=l.length-1,u=0;o>=0;o-=3)p=l[o]|l[o-1]<<8|l[o-2]<<16,this.words[u]|=p<<v&67108863,this.words[u+1]=p>>>26-v&67108863,v+=24,v>=26&&(v-=26,u++);else if(d==="le")for(o=0,u=0;o<l.length;o+=3)p=l[o]|l[o+1]<<8|l[o+2]<<16,this.words[u]|=p<<v&67108863,this.words[u+1]=p>>>26-v&67108863,v+=24,v>=26&&(v-=26,u++);return this.strip()};function s(B,l){var b=B.charCodeAt(l);return b>=65&&b<=70?b-55:b>=97&&b<=102?b-87:b-48&15}function m(B,l,b){var d=s(B,b);return b-1>=l&&(d|=s(B,b-1)<<4),d}i.prototype._parseHex=function(l,b,d){this.length=Math.ceil((l.length-b)/6),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var u=0,p=0,v;if(d==="be")for(o=l.length-1;o>=b;o-=2)v=m(l,b,o)<<u,this.words[p]|=v&67108863,u>=18?(u-=18,p+=1,this.words[p]|=v>>>26):u+=8;else{var c=l.length-b;for(o=c%2===0?b+1:b;o<l.length;o+=2)v=m(l,b,o)<<u,this.words[p]|=v&67108863,u>=18?(u-=18,p+=1,this.words[p]|=v>>>26):u+=8}this.strip()};function w(B,l,b,d){for(var o=0,u=Math.min(B.length,b),p=l;p<u;p++){var v=B.charCodeAt(p)-48;o*=d,v>=49?o+=v-49+10:v>=17?o+=v-17+10:o+=v}return o}i.prototype._parseBase=function(l,b,d){this.words=[0],this.length=1;for(var o=0,u=1;u<=67108863;u*=b)o++;o--,u=u/b|0;for(var p=l.length-d,v=p%o,c=Math.min(p,p-v)+d,f=0,g=d;g<c;g+=o)f=w(l,g,g+o,b),this.imuln(u),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(v!==0){var _=1;for(f=w(l,g,l.length,b),g=0;g<v;g++)_*=b;this.imuln(_),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}this.strip()},i.prototype.copy=function(l){l.words=new Array(this.length);for(var b=0;b<this.length;b++)l.words[b]=this.words[b];l.length=this.length,l.negative=this.negative,l.red=this.red},i.prototype.clone=function(){var l=new i(null);return this.copy(l),l},i.prototype._expand=function(l){for(;this.length<l;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var E=["","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"],q=[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],k=[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];i.prototype.toString=function(l,b){l=l||10,b=b|0||1;var d;if(l===16||l==="hex"){d="";for(var o=0,u=0,p=0;p<this.length;p++){var v=this.words[p],c=((v<<o|u)&16777215).toString(16);u=v>>>24-o&16777215,o+=2,o>=26&&(o-=26,p--),u!==0||p!==this.length-1?d=E[6-c.length]+c+d:d=c+d}for(u!==0&&(d=u.toString(16)+d);d.length%b!==0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}if(l===(l|0)&&l>=2&&l<=36){var f=q[l],g=k[l];d="";var _=this.clone();for(_.negative=0;!_.isZero();){var h=_.modn(g).toString(l);_=_.idivn(g),_.isZero()?d=h+d:d=E[f-h.length]+h+d}for(this.isZero()&&(d="0"+d);d.length%b!==0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}t(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var l=this.words[0];return this.length===2?l+=this.words[1]*67108864:this.length===3&&this.words[2]===1?l+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-l:l},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(l,b){return t(typeof a<"u"),this.toArrayLike(a,l,b)},i.prototype.toArray=function(l,b){return this.toArrayLike(Array,l,b)},i.prototype.toArrayLike=function(l,b,d){var o=this.byteLength(),u=d||Math.max(1,o);t(o<=u,"byte array longer than desired length"),t(u>0,"Requested array length <= 0"),this.strip();var p=b==="le",v=new l(u),c,f,g=this.clone();if(p){for(f=0;!g.isZero();f++)c=g.andln(255),g.iushrn(8),v[f]=c;for(;f<u;f++)v[f]=0}else{for(f=0;f<u-o;f++)v[f]=0;for(f=0;!g.isZero();f++)c=g.andln(255),g.iushrn(8),v[u-f-1]=c}return v},Math.clz32?i.prototype._countBits=function(l){return 32-Math.clz32(l)}:i.prototype._countBits=function(l){var b=l,d=0;return b>=4096&&(d+=13,b>>>=13),b>=64&&(d+=7,b>>>=7),b>=8&&(d+=4,b>>>=4),b>=2&&(d+=2,b>>>=2),d+b},i.prototype._zeroBits=function(l){if(l===0)return 26;var b=l,d=0;return(b&8191)===0&&(d+=13,b>>>=13),(b&127)===0&&(d+=7,b>>>=7),(b&15)===0&&(d+=4,b>>>=4),(b&3)===0&&(d+=2,b>>>=2),(b&1)===0&&d++,d},i.prototype.bitLength=function(){var l=this.words[this.length-1],b=this._countBits(l);return(this.length-1)*26+b};function R(B){for(var l=new Array(B.bitLength()),b=0;b<l.length;b++){var d=b/26|0,o=b%26;l[b]=(B.words[d]&1<<o)>>>o}return l}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var l=0,b=0;b<this.length;b++){var d=this._zeroBits(this.words[b]);if(l+=d,d!==26)break}return l},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(l){return this.negative!==0?this.abs().inotn(l).iaddn(1):this.clone()},i.prototype.fromTwos=function(l){return this.testn(l-1)?this.notn(l).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(l){for(;this.length<l.length;)this.words[this.length++]=0;for(var b=0;b<l.length;b++)this.words[b]=this.words[b]|l.words[b];return this.strip()},i.prototype.ior=function(l){return t((this.negative|l.negative)===0),this.iuor(l)},i.prototype.or=function(l){return this.length>l.length?this.clone().ior(l):l.clone().ior(this)},i.prototype.uor=function(l){return this.length>l.length?this.clone().iuor(l):l.clone().iuor(this)},i.prototype.iuand=function(l){var b;this.length>l.length?b=l:b=this;for(var d=0;d<b.length;d++)this.words[d]=this.words[d]&l.words[d];return this.length=b.length,this.strip()},i.prototype.iand=function(l){return t((this.negative|l.negative)===0),this.iuand(l)},i.prototype.and=function(l){return this.length>l.length?this.clone().iand(l):l.clone().iand(this)},i.prototype.uand=function(l){return this.length>l.length?this.clone().iuand(l):l.clone().iuand(this)},i.prototype.iuxor=function(l){var b,d;this.length>l.length?(b=this,d=l):(b=l,d=this);for(var o=0;o<d.length;o++)this.words[o]=b.words[o]^d.words[o];if(this!==b)for(;o<b.length;o++)this.words[o]=b.words[o];return this.length=b.length,this.strip()},i.prototype.ixor=function(l){return t((this.negative|l.negative)===0),this.iuxor(l)},i.prototype.xor=function(l){return this.length>l.length?this.clone().ixor(l):l.clone().ixor(this)},i.prototype.uxor=function(l){return this.length>l.length?this.clone().iuxor(l):l.clone().iuxor(this)},i.prototype.inotn=function(l){t(typeof l=="number"&&l>=0);var b=Math.ceil(l/26)|0,d=l%26;this._expand(b),d>0&&b--;for(var o=0;o<b;o++)this.words[o]=~this.words[o]&67108863;for(d>0&&(this.words[o]=~this.words[o]&67108863>>26-d,o++);o<this.length;o++)this.words[o]=0;return this.strip()},i.prototype.notn=function(l){return this.clone().inotn(l)},i.prototype.setn=function(l,b){t(typeof l=="number"&&l>=0);var d=l/26|0,o=l%26;return this._expand(d+1),b?this.words[d]=this.words[d]|1<<o:this.words[d]=this.words[d]&~(1<<o),this.strip()},i.prototype.iadd=function(l){var b;if(this.negative!==0&&l.negative===0)return this.negative=0,b=this.isub(l),this.negative^=1,this._normSign();if(this.negative===0&&l.negative!==0)return l.negative=0,b=this.isub(l),l.negative=1,b._normSign();var d,o;this.length>l.length?(d=this,o=l):(d=l,o=this);for(var u=0,p=0;p<o.length;p++)b=(d.words[p]|0)+(o.words[p]|0)+u,this.words[p]=b&67108863,u=b>>>26;for(;u!==0&&p<d.length;p++)b=(d.words[p]|0)+u,this.words[p]=b&67108863,u=b>>>26;if(this.length=d.length,u!==0)this.words[this.length]=u,this.length++;else if(d!==this)for(;p<d.length;p++)this.words[p]=d.words[p];return this},i.prototype.add=function(l){var b;return l.negative!==0&&this.negative===0?(l.negative=0,b=this.sub(l),l.negative^=1,b):l.negative===0&&this.negative!==0?(this.negative=0,b=l.sub(this),this.negative=1,b):this.length>l.length?this.clone().iadd(l):l.clone().iadd(this)},i.prototype.isub=function(l){if(l.negative!==0){l.negative=0;var b=this.iadd(l);return l.negative=1,b._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(l),this.negative=1,this._normSign();var d=this.cmp(l);if(d===0)return this.negative=0,this.length=1,this.words[0]=0,this;var o,u;d>0?(o=this,u=l):(o=l,u=this);for(var p=0,v=0;v<u.length;v++)b=(o.words[v]|0)-(u.words[v]|0)+p,p=b>>26,this.words[v]=b&67108863;for(;p!==0&&v<o.length;v++)b=(o.words[v]|0)+p,p=b>>26,this.words[v]=b&67108863;if(p===0&&v<o.length&&o!==this)for(;v<o.length;v++)this.words[v]=o.words[v];return this.length=Math.max(this.length,v),o!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(l){return this.clone().isub(l)};function I(B,l,b){b.negative=l.negative^B.negative;var d=B.length+l.length|0;b.length=d,d=d-1|0;var o=B.words[0]|0,u=l.words[0]|0,p=o*u,v=p&67108863,c=p/67108864|0;b.words[0]=v;for(var f=1;f<d;f++){for(var g=c>>>26,_=c&67108863,h=Math.min(f,l.length-1),x=Math.max(0,f-B.length+1);x<=h;x++){var C=f-x|0;o=B.words[C]|0,u=l.words[x]|0,p=o*u+_,g+=p/67108864|0,_=p&67108863}b.words[f]=_|0,c=g|0}return c!==0?b.words[f]=c|0:b.length--,b.strip()}var D=function(l,b,d){var o=l.words,u=b.words,p=d.words,v=0,c,f,g,_=o[0]|0,h=_&8191,x=_>>>13,C=o[1]|0,j=C&8191,O=C>>>13,U=o[2]|0,P=U&8191,F=U>>>13,qr=o[3]|0,L=qr&8191,K=qr>>>13,In=o[4]|0,G=In&8191,$=In>>>13,Tn=o[5]|0,Z=Tn&8191,Y=Tn>>>13,Cn=o[6]|0,X=Cn&8191,J=Cn>>>13,jn=o[7]|0,Q=jn&8191,ee=jn>>>13,On=o[8]|0,re=On&8191,te=On>>>13,Dn=o[9]|0,ie=Dn&8191,ne=Dn>>>13,Pn=u[0]|0,ae=Pn&8191,oe=Pn>>>13,Un=u[1]|0,se=Un&8191,fe=Un>>>13,zn=u[2]|0,ue=zn&8191,le=zn>>>13,Nn=u[3]|0,ce=Nn&8191,he=Nn>>>13,Fn=u[4]|0,de=Fn&8191,pe=Fn>>>13,Ln=u[5]|0,ve=Ln&8191,me=Ln>>>13,Hn=u[6]|0,ge=Hn&8191,be=Hn>>>13,Kn=u[7]|0,ye=Kn&8191,we=Kn>>>13,Wn=u[8]|0,_e=Wn&8191,xe=Wn>>>13,Vn=u[9]|0,Me=Vn&8191,Ee=Vn>>>13;d.negative=l.negative^b.negative,d.length=19,c=Math.imul(h,ae),f=Math.imul(h,oe),f=f+Math.imul(x,ae)|0,g=Math.imul(x,oe);var Oi=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,c=Math.imul(j,ae),f=Math.imul(j,oe),f=f+Math.imul(O,ae)|0,g=Math.imul(O,oe),c=c+Math.imul(h,se)|0,f=f+Math.imul(h,fe)|0,f=f+Math.imul(x,se)|0,g=g+Math.imul(x,fe)|0;var He=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(He>>>26)|0,He&=67108863,c=Math.imul(P,ae),f=Math.imul(P,oe),f=f+Math.imul(F,ae)|0,g=Math.imul(F,oe),c=c+Math.imul(j,se)|0,f=f+Math.imul(j,fe)|0,f=f+Math.imul(O,se)|0,g=g+Math.imul(O,fe)|0,c=c+Math.imul(h,ue)|0,f=f+Math.imul(h,le)|0,f=f+Math.imul(x,ue)|0,g=g+Math.imul(x,le)|0;var Ke=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,c=Math.imul(L,ae),f=Math.imul(L,oe),f=f+Math.imul(K,ae)|0,g=Math.imul(K,oe),c=c+Math.imul(P,se)|0,f=f+Math.imul(P,fe)|0,f=f+Math.imul(F,se)|0,g=g+Math.imul(F,fe)|0,c=c+Math.imul(j,ue)|0,f=f+Math.imul(j,le)|0,f=f+Math.imul(O,ue)|0,g=g+Math.imul(O,le)|0,c=c+Math.imul(h,ce)|0,f=f+Math.imul(h,he)|0,f=f+Math.imul(x,ce)|0,g=g+Math.imul(x,he)|0;var Ft=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,c=Math.imul(G,ae),f=Math.imul(G,oe),f=f+Math.imul($,ae)|0,g=Math.imul($,oe),c=c+Math.imul(L,se)|0,f=f+Math.imul(L,fe)|0,f=f+Math.imul(K,se)|0,g=g+Math.imul(K,fe)|0,c=c+Math.imul(P,ue)|0,f=f+Math.imul(P,le)|0,f=f+Math.imul(F,ue)|0,g=g+Math.imul(F,le)|0,c=c+Math.imul(j,ce)|0,f=f+Math.imul(j,he)|0,f=f+Math.imul(O,ce)|0,g=g+Math.imul(O,he)|0,c=c+Math.imul(h,de)|0,f=f+Math.imul(h,pe)|0,f=f+Math.imul(x,de)|0,g=g+Math.imul(x,pe)|0;var Lt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,c=Math.imul(Z,ae),f=Math.imul(Z,oe),f=f+Math.imul(Y,ae)|0,g=Math.imul(Y,oe),c=c+Math.imul(G,se)|0,f=f+Math.imul(G,fe)|0,f=f+Math.imul($,se)|0,g=g+Math.imul($,fe)|0,c=c+Math.imul(L,ue)|0,f=f+Math.imul(L,le)|0,f=f+Math.imul(K,ue)|0,g=g+Math.imul(K,le)|0,c=c+Math.imul(P,ce)|0,f=f+Math.imul(P,he)|0,f=f+Math.imul(F,ce)|0,g=g+Math.imul(F,he)|0,c=c+Math.imul(j,de)|0,f=f+Math.imul(j,pe)|0,f=f+Math.imul(O,de)|0,g=g+Math.imul(O,pe)|0,c=c+Math.imul(h,ve)|0,f=f+Math.imul(h,me)|0,f=f+Math.imul(x,ve)|0,g=g+Math.imul(x,me)|0;var Ht=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,c=Math.imul(X,ae),f=Math.imul(X,oe),f=f+Math.imul(J,ae)|0,g=Math.imul(J,oe),c=c+Math.imul(Z,se)|0,f=f+Math.imul(Z,fe)|0,f=f+Math.imul(Y,se)|0,g=g+Math.imul(Y,fe)|0,c=c+Math.imul(G,ue)|0,f=f+Math.imul(G,le)|0,f=f+Math.imul($,ue)|0,g=g+Math.imul($,le)|0,c=c+Math.imul(L,ce)|0,f=f+Math.imul(L,he)|0,f=f+Math.imul(K,ce)|0,g=g+Math.imul(K,he)|0,c=c+Math.imul(P,de)|0,f=f+Math.imul(P,pe)|0,f=f+Math.imul(F,de)|0,g=g+Math.imul(F,pe)|0,c=c+Math.imul(j,ve)|0,f=f+Math.imul(j,me)|0,f=f+Math.imul(O,ve)|0,g=g+Math.imul(O,me)|0,c=c+Math.imul(h,ge)|0,f=f+Math.imul(h,be)|0,f=f+Math.imul(x,ge)|0,g=g+Math.imul(x,be)|0;var Kt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,c=Math.imul(Q,ae),f=Math.imul(Q,oe),f=f+Math.imul(ee,ae)|0,g=Math.imul(ee,oe),c=c+Math.imul(X,se)|0,f=f+Math.imul(X,fe)|0,f=f+Math.imul(J,se)|0,g=g+Math.imul(J,fe)|0,c=c+Math.imul(Z,ue)|0,f=f+Math.imul(Z,le)|0,f=f+Math.imul(Y,ue)|0,g=g+Math.imul(Y,le)|0,c=c+Math.imul(G,ce)|0,f=f+Math.imul(G,he)|0,f=f+Math.imul($,ce)|0,g=g+Math.imul($,he)|0,c=c+Math.imul(L,de)|0,f=f+Math.imul(L,pe)|0,f=f+Math.imul(K,de)|0,g=g+Math.imul(K,pe)|0,c=c+Math.imul(P,ve)|0,f=f+Math.imul(P,me)|0,f=f+Math.imul(F,ve)|0,g=g+Math.imul(F,me)|0,c=c+Math.imul(j,ge)|0,f=f+Math.imul(j,be)|0,f=f+Math.imul(O,ge)|0,g=g+Math.imul(O,be)|0,c=c+Math.imul(h,ye)|0,f=f+Math.imul(h,we)|0,f=f+Math.imul(x,ye)|0,g=g+Math.imul(x,we)|0;var Wt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,c=Math.imul(re,ae),f=Math.imul(re,oe),f=f+Math.imul(te,ae)|0,g=Math.imul(te,oe),c=c+Math.imul(Q,se)|0,f=f+Math.imul(Q,fe)|0,f=f+Math.imul(ee,se)|0,g=g+Math.imul(ee,fe)|0,c=c+Math.imul(X,ue)|0,f=f+Math.imul(X,le)|0,f=f+Math.imul(J,ue)|0,g=g+Math.imul(J,le)|0,c=c+Math.imul(Z,ce)|0,f=f+Math.imul(Z,he)|0,f=f+Math.imul(Y,ce)|0,g=g+Math.imul(Y,he)|0,c=c+Math.imul(G,de)|0,f=f+Math.imul(G,pe)|0,f=f+Math.imul($,de)|0,g=g+Math.imul($,pe)|0,c=c+Math.imul(L,ve)|0,f=f+Math.imul(L,me)|0,f=f+Math.imul(K,ve)|0,g=g+Math.imul(K,me)|0,c=c+Math.imul(P,ge)|0,f=f+Math.imul(P,be)|0,f=f+Math.imul(F,ge)|0,g=g+Math.imul(F,be)|0,c=c+Math.imul(j,ye)|0,f=f+Math.imul(j,we)|0,f=f+Math.imul(O,ye)|0,g=g+Math.imul(O,we)|0,c=c+Math.imul(h,_e)|0,f=f+Math.imul(h,xe)|0,f=f+Math.imul(x,_e)|0,g=g+Math.imul(x,xe)|0;var Vt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,c=Math.imul(ie,ae),f=Math.imul(ie,oe),f=f+Math.imul(ne,ae)|0,g=Math.imul(ne,oe),c=c+Math.imul(re,se)|0,f=f+Math.imul(re,fe)|0,f=f+Math.imul(te,se)|0,g=g+Math.imul(te,fe)|0,c=c+Math.imul(Q,ue)|0,f=f+Math.imul(Q,le)|0,f=f+Math.imul(ee,ue)|0,g=g+Math.imul(ee,le)|0,c=c+Math.imul(X,ce)|0,f=f+Math.imul(X,he)|0,f=f+Math.imul(J,ce)|0,g=g+Math.imul(J,he)|0,c=c+Math.imul(Z,de)|0,f=f+Math.imul(Z,pe)|0,f=f+Math.imul(Y,de)|0,g=g+Math.imul(Y,pe)|0,c=c+Math.imul(G,ve)|0,f=f+Math.imul(G,me)|0,f=f+Math.imul($,ve)|0,g=g+Math.imul($,me)|0,c=c+Math.imul(L,ge)|0,f=f+Math.imul(L,be)|0,f=f+Math.imul(K,ge)|0,g=g+Math.imul(K,be)|0,c=c+Math.imul(P,ye)|0,f=f+Math.imul(P,we)|0,f=f+Math.imul(F,ye)|0,g=g+Math.imul(F,we)|0,c=c+Math.imul(j,_e)|0,f=f+Math.imul(j,xe)|0,f=f+Math.imul(O,_e)|0,g=g+Math.imul(O,xe)|0,c=c+Math.imul(h,Me)|0,f=f+Math.imul(h,Ee)|0,f=f+Math.imul(x,Me)|0,g=g+Math.imul(x,Ee)|0;var Gt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,c=Math.imul(ie,se),f=Math.imul(ie,fe),f=f+Math.imul(ne,se)|0,g=Math.imul(ne,fe),c=c+Math.imul(re,ue)|0,f=f+Math.imul(re,le)|0,f=f+Math.imul(te,ue)|0,g=g+Math.imul(te,le)|0,c=c+Math.imul(Q,ce)|0,f=f+Math.imul(Q,he)|0,f=f+Math.imul(ee,ce)|0,g=g+Math.imul(ee,he)|0,c=c+Math.imul(X,de)|0,f=f+Math.imul(X,pe)|0,f=f+Math.imul(J,de)|0,g=g+Math.imul(J,pe)|0,c=c+Math.imul(Z,ve)|0,f=f+Math.imul(Z,me)|0,f=f+Math.imul(Y,ve)|0,g=g+Math.imul(Y,me)|0,c=c+Math.imul(G,ge)|0,f=f+Math.imul(G,be)|0,f=f+Math.imul($,ge)|0,g=g+Math.imul($,be)|0,c=c+Math.imul(L,ye)|0,f=f+Math.imul(L,we)|0,f=f+Math.imul(K,ye)|0,g=g+Math.imul(K,we)|0,c=c+Math.imul(P,_e)|0,f=f+Math.imul(P,xe)|0,f=f+Math.imul(F,_e)|0,g=g+Math.imul(F,xe)|0,c=c+Math.imul(j,Me)|0,f=f+Math.imul(j,Ee)|0,f=f+Math.imul(O,Me)|0,g=g+Math.imul(O,Ee)|0;var $t=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+($t>>>26)|0,$t&=67108863,c=Math.imul(ie,ue),f=Math.imul(ie,le),f=f+Math.imul(ne,ue)|0,g=Math.imul(ne,le),c=c+Math.imul(re,ce)|0,f=f+Math.imul(re,he)|0,f=f+Math.imul(te,ce)|0,g=g+Math.imul(te,he)|0,c=c+Math.imul(Q,de)|0,f=f+Math.imul(Q,pe)|0,f=f+Math.imul(ee,de)|0,g=g+Math.imul(ee,pe)|0,c=c+Math.imul(X,ve)|0,f=f+Math.imul(X,me)|0,f=f+Math.imul(J,ve)|0,g=g+Math.imul(J,me)|0,c=c+Math.imul(Z,ge)|0,f=f+Math.imul(Z,be)|0,f=f+Math.imul(Y,ge)|0,g=g+Math.imul(Y,be)|0,c=c+Math.imul(G,ye)|0,f=f+Math.imul(G,we)|0,f=f+Math.imul($,ye)|0,g=g+Math.imul($,we)|0,c=c+Math.imul(L,_e)|0,f=f+Math.imul(L,xe)|0,f=f+Math.imul(K,_e)|0,g=g+Math.imul(K,xe)|0,c=c+Math.imul(P,Me)|0,f=f+Math.imul(P,Ee)|0,f=f+Math.imul(F,Me)|0,g=g+Math.imul(F,Ee)|0;var Zt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,c=Math.imul(ie,ce),f=Math.imul(ie,he),f=f+Math.imul(ne,ce)|0,g=Math.imul(ne,he),c=c+Math.imul(re,de)|0,f=f+Math.imul(re,pe)|0,f=f+Math.imul(te,de)|0,g=g+Math.imul(te,pe)|0,c=c+Math.imul(Q,ve)|0,f=f+Math.imul(Q,me)|0,f=f+Math.imul(ee,ve)|0,g=g+Math.imul(ee,me)|0,c=c+Math.imul(X,ge)|0,f=f+Math.imul(X,be)|0,f=f+Math.imul(J,ge)|0,g=g+Math.imul(J,be)|0,c=c+Math.imul(Z,ye)|0,f=f+Math.imul(Z,we)|0,f=f+Math.imul(Y,ye)|0,g=g+Math.imul(Y,we)|0,c=c+Math.imul(G,_e)|0,f=f+Math.imul(G,xe)|0,f=f+Math.imul($,_e)|0,g=g+Math.imul($,xe)|0,c=c+Math.imul(L,Me)|0,f=f+Math.imul(L,Ee)|0,f=f+Math.imul(K,Me)|0,g=g+Math.imul(K,Ee)|0;var Yt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,c=Math.imul(ie,de),f=Math.imul(ie,pe),f=f+Math.imul(ne,de)|0,g=Math.imul(ne,pe),c=c+Math.imul(re,ve)|0,f=f+Math.imul(re,me)|0,f=f+Math.imul(te,ve)|0,g=g+Math.imul(te,me)|0,c=c+Math.imul(Q,ge)|0,f=f+Math.imul(Q,be)|0,f=f+Math.imul(ee,ge)|0,g=g+Math.imul(ee,be)|0,c=c+Math.imul(X,ye)|0,f=f+Math.imul(X,we)|0,f=f+Math.imul(J,ye)|0,g=g+Math.imul(J,we)|0,c=c+Math.imul(Z,_e)|0,f=f+Math.imul(Z,xe)|0,f=f+Math.imul(Y,_e)|0,g=g+Math.imul(Y,xe)|0,c=c+Math.imul(G,Me)|0,f=f+Math.imul(G,Ee)|0,f=f+Math.imul($,Me)|0,g=g+Math.imul($,Ee)|0;var Xt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,c=Math.imul(ie,ve),f=Math.imul(ie,me),f=f+Math.imul(ne,ve)|0,g=Math.imul(ne,me),c=c+Math.imul(re,ge)|0,f=f+Math.imul(re,be)|0,f=f+Math.imul(te,ge)|0,g=g+Math.imul(te,be)|0,c=c+Math.imul(Q,ye)|0,f=f+Math.imul(Q,we)|0,f=f+Math.imul(ee,ye)|0,g=g+Math.imul(ee,we)|0,c=c+Math.imul(X,_e)|0,f=f+Math.imul(X,xe)|0,f=f+Math.imul(J,_e)|0,g=g+Math.imul(J,xe)|0,c=c+Math.imul(Z,Me)|0,f=f+Math.imul(Z,Ee)|0,f=f+Math.imul(Y,Me)|0,g=g+Math.imul(Y,Ee)|0;var Jt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,c=Math.imul(ie,ge),f=Math.imul(ie,be),f=f+Math.imul(ne,ge)|0,g=Math.imul(ne,be),c=c+Math.imul(re,ye)|0,f=f+Math.imul(re,we)|0,f=f+Math.imul(te,ye)|0,g=g+Math.imul(te,we)|0,c=c+Math.imul(Q,_e)|0,f=f+Math.imul(Q,xe)|0,f=f+Math.imul(ee,_e)|0,g=g+Math.imul(ee,xe)|0,c=c+Math.imul(X,Me)|0,f=f+Math.imul(X,Ee)|0,f=f+Math.imul(J,Me)|0,g=g+Math.imul(J,Ee)|0;var Qt=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,c=Math.imul(ie,ye),f=Math.imul(ie,we),f=f+Math.imul(ne,ye)|0,g=Math.imul(ne,we),c=c+Math.imul(re,_e)|0,f=f+Math.imul(re,xe)|0,f=f+Math.imul(te,_e)|0,g=g+Math.imul(te,xe)|0,c=c+Math.imul(Q,Me)|0,f=f+Math.imul(Q,Ee)|0,f=f+Math.imul(ee,Me)|0,g=g+Math.imul(ee,Ee)|0;var ei=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(ei>>>26)|0,ei&=67108863,c=Math.imul(ie,_e),f=Math.imul(ie,xe),f=f+Math.imul(ne,_e)|0,g=Math.imul(ne,xe),c=c+Math.imul(re,Me)|0,f=f+Math.imul(re,Ee)|0,f=f+Math.imul(te,Me)|0,g=g+Math.imul(te,Ee)|0;var ri=(v+c|0)+((f&8191)<<13)|0;v=(g+(f>>>13)|0)+(ri>>>26)|0,ri&=67108863,c=Math.imul(ie,Me),f=Math.imul(ie,Ee),f=f+Math.imul(ne,Me)|0,g=Math.imul(ne,Ee);var ti=(v+c|0)+((f&8191)<<13)|0;return v=(g+(f>>>13)|0)+(ti>>>26)|0,ti&=67108863,p[0]=Oi,p[1]=He,p[2]=Ke,p[3]=Ft,p[4]=Lt,p[5]=Ht,p[6]=Kt,p[7]=Wt,p[8]=Vt,p[9]=Gt,p[10]=$t,p[11]=Zt,p[12]=Yt,p[13]=Xt,p[14]=Jt,p[15]=Qt,p[16]=ei,p[17]=ri,p[18]=ti,v!==0&&(p[19]=v,d.length++),d};Math.imul||(D=I);function z(B,l,b){b.negative=l.negative^B.negative,b.length=B.length+l.length;for(var d=0,o=0,u=0;u<b.length-1;u++){var p=o;o=0;for(var v=d&67108863,c=Math.min(u,l.length-1),f=Math.max(0,u-B.length+1);f<=c;f++){var g=u-f,_=B.words[g]|0,h=l.words[f]|0,x=_*h,C=x&67108863;p=p+(x/67108864|0)|0,C=C+v|0,v=C&67108863,p=p+(C>>>26)|0,o+=p>>>26,p&=67108863}b.words[u]=v,d=p,p=o}return d!==0?b.words[u]=d:b.length--,b.strip()}function W(B,l,b){var d=new N;return d.mulp(B,l,b)}i.prototype.mulTo=function(l,b){var d,o=this.length+l.length;return this.length===10&&l.length===10?d=D(this,l,b):o<63?d=I(this,l,b):o<1024?d=z(this,l,b):d=W(this,l,b),d};function N(B,l){this.x=B,this.y=l}N.prototype.makeRBT=function(l){for(var b=new Array(l),d=i.prototype._countBits(l)-1,o=0;o<l;o++)b[o]=this.revBin(o,d,l);return b},N.prototype.revBin=function(l,b,d){if(l===0||l===d-1)return l;for(var o=0,u=0;u<b;u++)o|=(l&1)<<b-u-1,l>>=1;return o},N.prototype.permute=function(l,b,d,o,u,p){for(var v=0;v<p;v++)o[v]=b[l[v]],u[v]=d[l[v]]},N.prototype.transform=function(l,b,d,o,u,p){this.permute(p,l,b,d,o,u);for(var v=1;v<u;v<<=1)for(var c=v<<1,f=Math.cos(2*Math.PI/c),g=Math.sin(2*Math.PI/c),_=0;_<u;_+=c)for(var h=f,x=g,C=0;C<v;C++){var j=d[_+C],O=o[_+C],U=d[_+C+v],P=o[_+C+v],F=h*U-x*P;P=h*P+x*U,U=F,d[_+C]=j+U,o[_+C]=O+P,d[_+C+v]=j-U,o[_+C+v]=O-P,C!==c&&(F=f*h-g*x,x=f*x+g*h,h=F)}},N.prototype.guessLen13b=function(l,b){var d=Math.max(b,l)|1,o=d&1,u=0;for(d=d/2|0;d;d=d>>>1)u++;return 1<<u+1+o},N.prototype.conjugate=function(l,b,d){if(!(d<=1))for(var o=0;o<d/2;o++){var u=l[o];l[o]=l[d-o-1],l[d-o-1]=u,u=b[o],b[o]=-b[d-o-1],b[d-o-1]=-u}},N.prototype.normalize13b=function(l,b){for(var d=0,o=0;o<b/2;o++){var u=Math.round(l[2*o+1]/b)*8192+Math.round(l[2*o]/b)+d;l[o]=u&67108863,u<67108864?d=0:d=u/67108864|0}return l},N.prototype.convert13b=function(l,b,d,o){for(var u=0,p=0;p<b;p++)u=u+(l[p]|0),d[2*p]=u&8191,u=u>>>13,d[2*p+1]=u&8191,u=u>>>13;for(p=2*b;p<o;++p)d[p]=0;t(u===0),t((u&-8192)===0)},N.prototype.stub=function(l){for(var b=new Array(l),d=0;d<l;d++)b[d]=0;return b},N.prototype.mulp=function(l,b,d){var o=2*this.guessLen13b(l.length,b.length),u=this.makeRBT(o),p=this.stub(o),v=new Array(o),c=new Array(o),f=new Array(o),g=new Array(o),_=new Array(o),h=new Array(o),x=d.words;x.length=o,this.convert13b(l.words,l.length,v,o),this.convert13b(b.words,b.length,g,o),this.transform(v,p,c,f,o,u),this.transform(g,p,_,h,o,u);for(var C=0;C<o;C++){var j=c[C]*_[C]-f[C]*h[C];f[C]=c[C]*h[C]+f[C]*_[C],c[C]=j}return this.conjugate(c,f,o),this.transform(c,f,x,p,o,u),this.conjugate(x,p,o),this.normalize13b(x,o),d.negative=l.negative^b.negative,d.length=l.length+b.length,d.strip()},i.prototype.mul=function(l){var b=new i(null);return b.words=new Array(this.length+l.length),this.mulTo(l,b)},i.prototype.mulf=function(l){var b=new i(null);return b.words=new Array(this.length+l.length),W(this,l,b)},i.prototype.imul=function(l){return this.clone().mulTo(l,this)},i.prototype.imuln=function(l){t(typeof l=="number"),t(l<67108864);for(var b=0,d=0;d<this.length;d++){var o=(this.words[d]|0)*l,u=(o&67108863)+(b&67108863);b>>=26,b+=o/67108864|0,b+=u>>>26,this.words[d]=u&67108863}return b!==0&&(this.words[d]=b,this.length++),l===0&&(this.length=1,this._normSign()),this},i.prototype.muln=function(l){return this.clone().imuln(l)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(l){var b=R(l);if(b.length===0)return new i(1);for(var d=this,o=0;o<b.length&&b[o]===0;o++,d=d.sqr());if(++o<b.length)for(var u=d.sqr();o<b.length;o++,u=u.sqr())b[o]!==0&&(d=d.mul(u));return d},i.prototype.iushln=function(l){t(typeof l=="number"&&l>=0);var b=l%26,d=(l-b)/26,o=67108863>>>26-b<<26-b,u;if(b!==0){var p=0;for(u=0;u<this.length;u++){var v=this.words[u]&o,c=(this.words[u]|0)-v<<b;this.words[u]=c|p,p=v>>>26-b}p&&(this.words[u]=p,this.length++)}if(d!==0){for(u=this.length-1;u>=0;u--)this.words[u+d]=this.words[u];for(u=0;u<d;u++)this.words[u]=0;this.length+=d}return this.strip()},i.prototype.ishln=function(l){return t(this.negative===0),this.iushln(l)},i.prototype.iushrn=function(l,b,d){t(typeof l=="number"&&l>=0);var o;b?o=(b-b%26)/26:o=0;var u=l%26,p=Math.min((l-u)/26,this.length),v=67108863^67108863>>>u<<u,c=d;if(o-=p,o=Math.max(0,o),c){for(var f=0;f<p;f++)c.words[f]=this.words[f];c.length=p}if(p!==0)if(this.length>p)for(this.length-=p,f=0;f<this.length;f++)this.words[f]=this.words[f+p];else this.words[0]=0,this.length=1;var g=0;for(f=this.length-1;f>=0&&(g!==0||f>=o);f--){var _=this.words[f]|0;this.words[f]=g<<26-u|_>>>u,g=_&v}return c&&g!==0&&(c.words[c.length++]=g),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(l,b,d){return t(this.negative===0),this.iushrn(l,b,d)},i.prototype.shln=function(l){return this.clone().ishln(l)},i.prototype.ushln=function(l){return this.clone().iushln(l)},i.prototype.shrn=function(l){return this.clone().ishrn(l)},i.prototype.ushrn=function(l){return this.clone().iushrn(l)},i.prototype.testn=function(l){t(typeof l=="number"&&l>=0);var b=l%26,d=(l-b)/26,o=1<<b;if(this.length<=d)return!1;var u=this.words[d];return!!(u&o)},i.prototype.imaskn=function(l){t(typeof l=="number"&&l>=0);var b=l%26,d=(l-b)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=d)return this;if(b!==0&&d++,this.length=Math.min(d,this.length),b!==0){var o=67108863^67108863>>>b<<b;this.words[this.length-1]&=o}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.maskn=function(l){return this.clone().imaskn(l)},i.prototype.iaddn=function(l){return t(typeof l=="number"),t(l<67108864),l<0?this.isubn(-l):this.negative!==0?this.length===1&&(this.words[0]|0)<l?(this.words[0]=l-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(l),this.negative=1,this):this._iaddn(l)},i.prototype._iaddn=function(l){this.words[0]+=l;for(var b=0;b<this.length&&this.words[b]>=67108864;b++)this.words[b]-=67108864,b===this.length-1?this.words[b+1]=1:this.words[b+1]++;return this.length=Math.max(this.length,b+1),this},i.prototype.isubn=function(l){if(t(typeof l=="number"),t(l<67108864),l<0)return this.iaddn(-l);if(this.negative!==0)return this.negative=0,this.iaddn(l),this.negative=1,this;if(this.words[0]-=l,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var b=0;b<this.length&&this.words[b]<0;b++)this.words[b]+=67108864,this.words[b+1]-=1;return this.strip()},i.prototype.addn=function(l){return this.clone().iaddn(l)},i.prototype.subn=function(l){return this.clone().isubn(l)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(l,b,d){var o=l.length+d,u;this._expand(o);var p,v=0;for(u=0;u<l.length;u++){p=(this.words[u+d]|0)+v;var c=(l.words[u]|0)*b;p-=c&67108863,v=(p>>26)-(c/67108864|0),this.words[u+d]=p&67108863}for(;u<this.length-d;u++)p=(this.words[u+d]|0)+v,v=p>>26,this.words[u+d]=p&67108863;if(v===0)return this.strip();for(t(v===-1),v=0,u=0;u<this.length;u++)p=-(this.words[u]|0)+v,v=p>>26,this.words[u]=p&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(l,b){var d=this.length-l.length,o=this.clone(),u=l,p=u.words[u.length-1]|0,v=this._countBits(p);d=26-v,d!==0&&(u=u.ushln(d),o.iushln(d),p=u.words[u.length-1]|0);var c=o.length-u.length,f;if(b!=="mod"){f=new i(null),f.length=c+1,f.words=new Array(f.length);for(var g=0;g<f.length;g++)f.words[g]=0}var _=o.clone()._ishlnsubmul(u,1,c);_.negative===0&&(o=_,f&&(f.words[c]=1));for(var h=c-1;h>=0;h--){var x=(o.words[u.length+h]|0)*67108864+(o.words[u.length+h-1]|0);for(x=Math.min(x/p|0,67108863),o._ishlnsubmul(u,x,h);o.negative!==0;)x--,o.negative=0,o._ishlnsubmul(u,1,h),o.isZero()||(o.negative^=1);f&&(f.words[h]=x)}return f&&f.strip(),o.strip(),b!=="div"&&d!==0&&o.iushrn(d),{div:f||null,mod:o}},i.prototype.divmod=function(l,b,d){if(t(!l.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var o,u,p;return this.negative!==0&&l.negative===0?(p=this.neg().divmod(l,b),b!=="mod"&&(o=p.div.neg()),b!=="div"&&(u=p.mod.neg(),d&&u.negative!==0&&u.iadd(l)),{div:o,mod:u}):this.negative===0&&l.negative!==0?(p=this.divmod(l.neg(),b),b!=="mod"&&(o=p.div.neg()),{div:o,mod:p.mod}):(this.negative&l.negative)!==0?(p=this.neg().divmod(l.neg(),b),b!=="div"&&(u=p.mod.neg(),d&&u.negative!==0&&u.isub(l)),{div:p.div,mod:u}):l.length>this.length||this.cmp(l)<0?{div:new i(0),mod:this}:l.length===1?b==="div"?{div:this.divn(l.words[0]),mod:null}:b==="mod"?{div:null,mod:new i(this.modn(l.words[0]))}:{div:this.divn(l.words[0]),mod:new i(this.modn(l.words[0]))}:this._wordDiv(l,b)},i.prototype.div=function(l){return this.divmod(l,"div",!1).div},i.prototype.mod=function(l){return this.divmod(l,"mod",!1).mod},i.prototype.umod=function(l){return this.divmod(l,"mod",!0).mod},i.prototype.divRound=function(l){var b=this.divmod(l);if(b.mod.isZero())return b.div;var d=b.mod.abs(),o=l.abs().iushrn(1),u=l.words[0]&1,p=d.cmp(o);if(p<0||u===1&&p===0)return b.div;var v=new i(1);return v.negative=this.negative^l.negative,b.div.iadd(v)},i.prototype.modn=function(l){t(l<=67108863);for(var b=(1<<26)%l,d=0,o=this.length-1;o>=0;o--)d=(b*d+(this.words[o]|0))%l;return d},i.prototype.idivn=function(l){t(l<=67108863);for(var b=0,d=this.length-1;d>=0;d--){var o=(this.words[d]|0)+b*67108864;this.words[d]=o/l|0,b=o%l}return this.strip()},i.prototype.divn=function(l){return this.clone().idivn(l)},i.prototype.egcd=function(l){t(l.negative===0),t(!l.isZero());var b=this,d=l.clone();b.negative!==0?b=b.umod(l):b=b.clone();for(var o=new i(1),u=new i(0),p=new i(0),v=new i(1),c=0;b.isEven()&&d.isEven();)b.iushrn(1),d.iushrn(1),++c;for(var f=d.clone(),g=b.clone();!b.isZero();){for(var _=0,h=1;(b.words[0]&h)===0&&_<26;++_,h<<=1);if(_>0)for(b.iushrn(_);_-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(f),u.isub(g)),o.iushrn(1),u.iushrn(1);for(var x=0,C=1;(d.words[0]&C)===0&&x<26;++x,C<<=1);if(x>0)for(d.iushrn(x);x-- >0;)(p.isOdd()||v.isOdd())&&(p.iadd(f),v.isub(g)),p.iushrn(1),v.iushrn(1);b.cmp(d)>=0?(b.isub(d),o.isub(p),u.isub(v)):(d.isub(b),p.isub(o),v.isub(u))}return{a:p,b:v,gcd:d.iushln(c)}},i.prototype._invmp=function(l){t(l.negative===0),t(!l.isZero());var b=this,d=l.clone();b.negative!==0?b=b.umod(l):b=b.clone();for(var o=new i(1),u=new i(0),p=d.clone();b.cmpn(1)>0&&d.cmpn(1)>0;){for(var v=0,c=1;(b.words[0]&c)===0&&v<26;++v,c<<=1);if(v>0)for(b.iushrn(v);v-- >0;)o.isOdd()&&o.iadd(p),o.iushrn(1);for(var f=0,g=1;(d.words[0]&g)===0&&f<26;++f,g<<=1);if(f>0)for(d.iushrn(f);f-- >0;)u.isOdd()&&u.iadd(p),u.iushrn(1);b.cmp(d)>=0?(b.isub(d),o.isub(u)):(d.isub(b),u.isub(o))}var _;return b.cmpn(1)===0?_=o:_=u,_.cmpn(0)<0&&_.iadd(l),_},i.prototype.gcd=function(l){if(this.isZero())return l.abs();if(l.isZero())return this.abs();var b=this.clone(),d=l.clone();b.negative=0,d.negative=0;for(var o=0;b.isEven()&&d.isEven();o++)b.iushrn(1),d.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;d.isEven();)d.iushrn(1);var u=b.cmp(d);if(u<0){var p=b;b=d,d=p}else if(u===0||d.cmpn(1)===0)break;b.isub(d)}while(!0);return d.iushln(o)},i.prototype.invm=function(l){return this.egcd(l).a.umod(l)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(l){return this.words[0]&l},i.prototype.bincn=function(l){t(typeof l=="number");var b=l%26,d=(l-b)/26,o=1<<b;if(this.length<=d)return this._expand(d+1),this.words[d]|=o,this;for(var u=o,p=d;u!==0&&p<this.length;p++){var v=this.words[p]|0;v+=u,u=v>>>26,v&=67108863,this.words[p]=v}return u!==0&&(this.words[p]=u,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(l){var b=l<0;if(this.negative!==0&&!b)return-1;if(this.negative===0&&b)return 1;this.strip();var d;if(this.length>1)d=1;else{b&&(l=-l),t(l<=67108863,"Number is too big");var o=this.words[0]|0;d=o===l?0:o<l?-1:1}return this.negative!==0?-d|0:d},i.prototype.cmp=function(l){if(this.negative!==0&&l.negative===0)return-1;if(this.negative===0&&l.negative!==0)return 1;var b=this.ucmp(l);return this.negative!==0?-b|0:b},i.prototype.ucmp=function(l){if(this.length>l.length)return 1;if(this.length<l.length)return-1;for(var b=0,d=this.length-1;d>=0;d--){var o=this.words[d]|0,u=l.words[d]|0;if(o!==u){o<u?b=-1:o>u&&(b=1);break}}return b},i.prototype.gtn=function(l){return this.cmpn(l)===1},i.prototype.gt=function(l){return this.cmp(l)===1},i.prototype.gten=function(l){return this.cmpn(l)>=0},i.prototype.gte=function(l){return this.cmp(l)>=0},i.prototype.ltn=function(l){return this.cmpn(l)===-1},i.prototype.lt=function(l){return this.cmp(l)===-1},i.prototype.lten=function(l){return this.cmpn(l)<=0},i.prototype.lte=function(l){return this.cmp(l)<=0},i.prototype.eqn=function(l){return this.cmpn(l)===0},i.prototype.eq=function(l){return this.cmp(l)===0},i.red=function(l){return new Ae(l)},i.prototype.toRed=function(l){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),l.convertTo(this)._forceRed(l)},i.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(l){return this.red=l,this},i.prototype.forceRed=function(l){return t(!this.red,"Already a number in reduction context"),this._forceRed(l)},i.prototype.redAdd=function(l){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,l)},i.prototype.redIAdd=function(l){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,l)},i.prototype.redSub=function(l){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,l)},i.prototype.redISub=function(l){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,l)},i.prototype.redShl=function(l){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,l)},i.prototype.redMul=function(l){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.mul(this,l)},i.prototype.redIMul=function(l){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.imul(this,l)},i.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(l){return t(this.red&&!l.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,l)};var H={k256:null,p224:null,p192:null,p25519:null};function ze(B,l){this.name=B,this.p=new i(l,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ze.prototype._tmp=function(){var l=new i(null);return l.words=new Array(Math.ceil(this.n/13)),l},ze.prototype.ireduce=function(l){var b=l,d;do this.split(b,this.tmp),b=this.imulK(b),b=b.iadd(this.tmp),d=b.bitLength();while(d>this.n);var o=d<this.n?-1:b.ucmp(this.p);return o===0?(b.words[0]=0,b.length=1):o>0?b.isub(this.p):b.strip!==void 0?b.strip():b._strip(),b},ze.prototype.split=function(l,b){l.iushrn(this.n,0,b)},ze.prototype.imulK=function(l){return l.imul(this.k)};function Oe(){ze.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(Oe,ze),Oe.prototype.split=function(l,b){for(var d=4194303,o=Math.min(l.length,9),u=0;u<o;u++)b.words[u]=l.words[u];if(b.length=o,l.length<=9){l.words[0]=0,l.length=1;return}var p=l.words[9];for(b.words[b.length++]=p&d,u=10;u<l.length;u++){var v=l.words[u]|0;l.words[u-10]=(v&d)<<4|p>>>22,p=v}p>>>=22,l.words[u-10]=p,p===0&&l.length>10?l.length-=10:l.length-=9},Oe.prototype.imulK=function(l){l.words[l.length]=0,l.words[l.length+1]=0,l.length+=2;for(var b=0,d=0;d<l.length;d++){var o=l.words[d]|0;b+=o*977,l.words[d]=b&67108863,b=o*64+(b/67108864|0)}return l.words[l.length-1]===0&&(l.length--,l.words[l.length-1]===0&&l.length--),l};function ar(){ze.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(ar,ze);function De(){ze.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(De,ze);function We(){ze.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(We,ze),We.prototype.imulK=function(l){for(var b=0,d=0;d<l.length;d++){var o=(l.words[d]|0)*19+b,u=o&67108863;o>>>=26,l.words[d]=u,b=o}return b!==0&&(l.words[l.length++]=b),l},i._prime=function(l){if(H[l])return H[l];var b;if(l==="k256")b=new Oe;else if(l==="p224")b=new ar;else if(l==="p192")b=new De;else if(l==="p25519")b=new We;else throw new Error("Unknown prime "+l);return H[l]=b,b};function Ae(B){if(typeof B=="string"){var l=i._prime(B);this.m=l.p,this.prime=l}else t(B.gtn(1),"modulus must be greater than 1"),this.m=B,this.prime=null}Ae.prototype._verify1=function(l){t(l.negative===0,"red works only with positives"),t(l.red,"red works only with red numbers")},Ae.prototype._verify2=function(l,b){t((l.negative|b.negative)===0,"red works only with positives"),t(l.red&&l.red===b.red,"red works only with red numbers")},Ae.prototype.imod=function(l){return this.prime?this.prime.ireduce(l)._forceRed(this):l.umod(this.m)._forceRed(this)},Ae.prototype.neg=function(l){return l.isZero()?l.clone():this.m.sub(l)._forceRed(this)},Ae.prototype.add=function(l,b){this._verify2(l,b);var d=l.add(b);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},Ae.prototype.iadd=function(l,b){this._verify2(l,b);var d=l.iadd(b);return d.cmp(this.m)>=0&&d.isub(this.m),d},Ae.prototype.sub=function(l,b){this._verify2(l,b);var d=l.sub(b);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},Ae.prototype.isub=function(l,b){this._verify2(l,b);var d=l.isub(b);return d.cmpn(0)<0&&d.iadd(this.m),d},Ae.prototype.shl=function(l,b){return this._verify1(l),this.imod(l.ushln(b))},Ae.prototype.imul=function(l,b){return this._verify2(l,b),this.imod(l.imul(b))},Ae.prototype.mul=function(l,b){return this._verify2(l,b),this.imod(l.mul(b))},Ae.prototype.isqr=function(l){return this.imul(l,l.clone())},Ae.prototype.sqr=function(l){return this.mul(l,l)},Ae.prototype.sqrt=function(l){if(l.isZero())return l.clone();var b=this.m.andln(3);if(t(b%2===1),b===3){var d=this.m.add(new i(1)).iushrn(2);return this.pow(l,d)}for(var o=this.m.subn(1),u=0;!o.isZero()&&o.andln(1)===0;)u++,o.iushrn(1);t(!o.isZero());var p=new i(1).toRed(this),v=p.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);this.pow(f,c).cmp(v)!==0;)f.redIAdd(v);for(var g=this.pow(f,o),_=this.pow(l,o.addn(1).iushrn(1)),h=this.pow(l,o),x=u;h.cmp(p)!==0;){for(var C=h,j=0;C.cmp(p)!==0;j++)C=C.redSqr();t(j<x);var O=this.pow(g,new i(1).iushln(x-j-1));_=_.redMul(O),g=O.redSqr(),h=h.redMul(g),x=j}return _},Ae.prototype.invm=function(l){var b=l._invmp(this.m);return b.negative!==0?(b.negative=0,this.imod(b).redNeg()):this.imod(b)},Ae.prototype.pow=function(l,b){if(b.isZero())return new i(1).toRed(this);if(b.cmpn(1)===0)return l.clone();var d=4,o=new Array(1<<d);o[0]=new i(1).toRed(this),o[1]=l;for(var u=2;u<o.length;u++)o[u]=this.mul(o[u-1],l);var p=o[0],v=0,c=0,f=b.bitLength()%26;for(f===0&&(f=26),u=b.length-1;u>=0;u--){for(var g=b.words[u],_=f-1;_>=0;_--){var h=g>>_&1;if(p!==o[0]&&(p=this.sqr(p)),h===0&&v===0){c=0;continue}v<<=1,v|=h,c++,!(c!==d&&(u!==0||_!==0))&&(p=this.mul(p,o[v]),c=0,v=0)}f=26}return p},Ae.prototype.convertTo=function(l){var b=l.umod(this.m);return b===l?b.clone():b},Ae.prototype.convertFrom=function(l){var b=l.clone();return b.red=null,b},i.mont=function(l){return new Je(l)};function Je(B){Ae.call(this,B),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}n(Je,Ae),Je.prototype.convertTo=function(l){return this.imod(l.ushln(this.shift))},Je.prototype.convertFrom=function(l){var b=this.imod(l.mul(this.rinv));return b.red=null,b},Je.prototype.imul=function(l,b){if(l.isZero()||b.isZero())return l.words[0]=0,l.length=1,l;var d=l.imul(b),o=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=d.isub(o).iushrn(this.shift),p=u;return u.cmp(this.m)>=0?p=u.isub(this.m):u.cmpn(0)<0&&(p=u.iadd(this.m)),p._forceRed(this)},Je.prototype.mul=function(l,b){if(l.isZero()||b.isZero())return new i(0)._forceRed(this);var d=l.mul(b),o=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=d.isub(o).iushrn(this.shift),p=u;return u.cmp(this.m)>=0?p=u.isub(this.m):u.cmpn(0)<0&&(p=u.iadd(this.m)),p._forceRed(this)},Je.prototype.invm=function(l){var b=this.imod(l._invmp(this.m).mul(this.r2));return b._forceRed(this)}})(typeof S6>"u"||S6,I4)});var T4=A((gI,q6)=>{y();var B6;q6.exports=function(e){return B6||(B6=new Nt(null)),B6.generate(e)};function Nt(r){this.rand=r}q6.exports.Rand=Nt;Nt.prototype.generate=function(e){return this._rand(e)};Nt.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?Nt.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?Nt.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:typeof window=="object"&&(Nt.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(A6=La(),typeof A6.randomBytes!="function")throw new Error("Not supported");Nt.prototype._rand=function(e){return A6.randomBytes(e)}}catch{}var A6});var k6=A((yI,C4)=>{y();var Ii=zt(),aM=T4();function Ti(r){this.rand=r||new aM.Rand}C4.exports=Ti;Ti.create=function(e){return new Ti(e)};Ti.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do var i=new Ii(this.rand.generate(n));while(i.cmp(e)>=0);return i};Ti.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))};Ti.prototype.test=function(e,t,n){var i=e.bitLength(),a=Ii.mont(e),s=new Ii(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var m=e.subn(1),w=0;!m.testn(w);w++);for(var E=e.shrn(w),q=m.toRed(a),k=!0;t>0;t--){var R=this._randrange(new Ii(2),m);n&&n(R);var I=R.toRed(a).redPow(E);if(!(I.cmp(s)===0||I.cmp(q)===0)){for(var D=1;D<w;D++){if(I=I.redSqr(),I.cmp(s)===0)return!1;if(I.cmp(q)===0)break}if(D===w)return!1}}return k};Ti.prototype.getDivisor=function(e,t){var n=e.bitLength(),i=Ii.mont(e),a=new Ii(1).toRed(i);t||(t=Math.max(1,n/48|0));for(var s=e.subn(1),m=0;!s.testn(m);m++);for(var w=e.shrn(m),E=s.toRed(i);t>0;t--){var q=this._randrange(new Ii(2),s),k=e.gcd(q);if(k.cmpn(1)!==0)return k;var R=q.toRed(i).redPow(w);if(!(R.cmp(a)===0||R.cmp(E)===0)){for(var I=1;I<m;I++){if(R=R.redSqr(),R.cmp(a)===0)return R.fromRed().subn(1).gcd(e);if(R.cmp(E)===0)break}if(I===m)return R=R.redSqr(),R.fromRed().subn(1).gcd(e)}}return!1}});var O6=A((SI,D4)=>{y();var oM=fi();D4.exports=j6;j6.simpleSieve=T6;j6.fermatTest=C6;var nr=zt(),sM=new nr(24),fM=k6(),j4=new fM,uM=new nr(1),I6=new nr(2),lM=new nr(5),_I=new nr(16),xI=new nr(8),cM=new nr(10),hM=new nr(3),MI=new nr(7),dM=new nr(11),O4=new nr(4),EI=new nr(12),R6=null;function pM(){if(R6!==null)return R6;var r=1048576,e=[];e[0]=2;for(var t=1,n=3;n<r;n+=2){for(var i=Math.ceil(Math.sqrt(n)),a=0;a<t&&e[a]<=i&&n%e[a]!==0;a++);t!==a&&e[a]<=i||(e[t++]=n)}return R6=e,e}function T6(r){for(var e=pM(),t=0;t<e.length;t++)if(r.modn(e[t])===0)return r.cmpn(e[t])===0;return!0}function C6(r){var e=nr.mont(r);return I6.toRed(e).redPow(r.subn(1)).fromRed().cmpn(1)===0}function j6(r,e){if(r<16)return e===2||e===5?new nr([140,123]):new nr([140,39]);e=new nr(e);for(var t,n;;){for(t=new nr(oM(Math.ceil(r/8)));t.bitLength()>r;)t.ishrn(1);if(t.isEven()&&t.iadd(uM),t.testn(1)||t.iadd(I6),e.cmp(I6)){if(!e.cmp(lM))for(;t.mod(cM).cmp(hM);)t.iadd(O4)}else for(;t.mod(sM).cmp(dM);)t.iadd(O4);if(n=t.shrn(1),T6(n)&&T6(t)&&C6(n)&&C6(t)&&j4.test(n)&&j4.test(t))return t}}});var P4=A((AI,vM)=>{vM.exports={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"}}});var F4=A((qI,N4)=>{y();var Sr=zt(),mM=k6(),U4=new mM,gM=new Sr(24),bM=new Sr(11),yM=new Sr(10),wM=new Sr(3),_M=new Sr(7),z4=O6(),xM=fi();N4.exports=Mt;function MM(r,e){return e=e||"utf8",S.Buffer.isBuffer(r)||(r=new S.Buffer(r,e)),this._pub=new Sr(r),this}function EM(r,e){return e=e||"utf8",S.Buffer.isBuffer(r)||(r=new S.Buffer(r,e)),this._priv=new Sr(r),this}var O1={};function SM(r,e){var t=e.toString("hex"),n=[t,r.toString(16)].join("_");if(n in O1)return O1[n];var i=0;if(r.isEven()||!z4.simpleSieve||!z4.fermatTest(r)||!U4.test(r))return i+=1,t==="02"||t==="05"?i+=8:i+=4,O1[n]=i,i;U4.test(r.shrn(1))||(i+=2);var a;switch(t){case"02":r.mod(gM).cmp(bM)&&(i+=8);break;case"05":a=r.mod(yM),a.cmp(wM)&&a.cmp(_M)&&(i+=8);break;default:i+=4}return O1[n]=i,i}function Mt(r,e,t){this.setGenerator(e),this.__prime=new Sr(r),this._prime=Sr.mont(this.__prime),this._primeLen=r.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,t?(this.setPublicKey=MM,this.setPrivateKey=EM):this._primeCode=8}Object.defineProperty(Mt.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=SM(this.__prime,this.__gen)),this._primeCode}});Mt.prototype.generateKeys=function(){return this._priv||(this._priv=new Sr(xM(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};Mt.prototype.computeSecret=function(r){r=new Sr(r),r=r.toRed(this._prime);var e=r.redPow(this._priv).fromRed(),t=new S.Buffer(e.toArray()),n=this.getPrime();if(t.length<n.length){var i=new S.Buffer(n.length-t.length);i.fill(0),t=S.Buffer.concat([i,t])}return t};Mt.prototype.getPublicKey=function(e){return D1(this._pub,e)};Mt.prototype.getPrivateKey=function(e){return D1(this._priv,e)};Mt.prototype.getPrime=function(r){return D1(this.__prime,r)};Mt.prototype.getGenerator=function(r){return D1(this._gen,r)};Mt.prototype.setGenerator=function(r,e){return e=e||"utf8",S.Buffer.isBuffer(r)||(r=new S.Buffer(r,e)),this.__gen=r,this._gen=new Sr(r),this};function D1(r,e){var t=new S.Buffer(r.toArray());return e?t.toString(e):t}});var K4=A(_n=>{y();var BM=O6(),L4=P4(),D6=F4();function AM(r){var e=new S.Buffer(L4[r].prime,"hex"),t=new S.Buffer(L4[r].gen,"hex");return new D6(e,t)}var qM={binary:!0,hex:!0,base64:!0};function H4(r,e,t,n){return S.Buffer.isBuffer(e)||qM[e]===void 0?H4(r,"binary",e,t):(e=e||"binary",n=n||"binary",t=t||new S.Buffer([2]),S.Buffer.isBuffer(t)||(t=new S.Buffer(t,n)),typeof r=="number"?new D6(BM(r,t),t,!0):(S.Buffer.isBuffer(r)||(r=new S.Buffer(r,e)),new D6(r,t,!0)))}_n.DiffieHellmanGroup=_n.createDiffieHellmanGroup=_n.getDiffieHellman=AM;_n.createDiffieHellman=_n.DiffieHellman=H4});var W4=A((exports,module)=>{y();var indexOf=function(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0;t<r.length;t++)if(r[t]===e)return t;return-1},Object_keys=function(r){if(Object.keys)return Object.keys(r);var e=[];for(var t in r)e.push(t);return e},forEach=function(r,e){if(r.forEach)return r.forEach(e);for(var t=0;t<r.length;t++)e(r[t],t,r)},defineProp=(function(){try{return Object.defineProperty({},"_",{}),function(r,e,t){Object.defineProperty(r,e,{writable:!0,enumerable:!1,configurable:!0,value:t})}}catch{return function(e,t,n){e[t]=n}}})(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(r){if(!(r instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var t=e.contentWindow,n=t.eval,i=t.execScript;!n&&i&&(i.call(t,"null"),n=t.eval),forEach(Object_keys(r),function(m){t[m]=r[m]}),forEach(globals,function(m){r[m]&&(t[m]=r[m])});var a=Object_keys(t),s=n.call(t,this.code);return forEach(Object_keys(t),function(m){(m in r||indexOf(a,m)===-1)&&(r[m]=t[m])}),forEach(globals,function(m){m in r||defineProp(r,m,t[m])}),document.body.removeChild(e),s};Script.prototype.runInThisContext=function(){return eval(this.code)};Script.prototype.runInNewContext=function(r){var e=Script.createContext(r),t=this.runInContext(e);return r&&forEach(Object_keys(e),function(n){r[n]=e[n]}),t};forEach(Object_keys(Script.prototype),function(r){exports[r]=Script[r]=function(e){var t=Script(e);return t[r].apply(t,[].slice.call(arguments,1))}});exports.isContext=function(r){return r instanceof Context};exports.createScript=function(r){return exports.Script(r)};exports.createContext=Script.createContext=function(r){var e=new Context;return typeof r=="object"&&forEach(Object_keys(r),function(t){e[t]=r[t]}),e}});var $4=A(G4=>{y();var V4=Mn(),kM=V(),RM=G4;RM.define=function(e,t){return new xn(e,t)};function xn(r,e){this.name=r,this.body=e,this.decoders={},this.encoders={}}xn.prototype._createNamed=function(e){var t;try{t=W4().runInThisContext("(function "+this.name+`(entity) {
|
|
12
12
|
this._initNamed(entity);
|
|
13
13
|
})`)}catch{t=function(i){this._initNamed(i)}}return kM(t,e),t.prototype._initNamed=function(i){e.call(this,i)},new t(this)};xn.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(V4.decoders[e])),this.decoders[e]};xn.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)};xn.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(V4.encoders[e])),this.encoders[e]};xn.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}});var Y4=A(Z4=>{y();var IM=V();function Br(r){this._reporterState={obj:null,path:[],options:r||{},errors:[]}}Z4.Reporter=Br;Br.prototype.isError=function(e){return e instanceof En};Br.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};Br.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)};Br.prototype.enterKey=function(e){return this._reporterState.path.push(e)};Br.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)};Br.prototype.leaveKey=function(e,t,n){var i=this._reporterState;this.exitKey(e),i.obj!==null&&(i.obj[t]=n)};Br.prototype.path=function(){return this._reporterState.path.join("/")};Br.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t};Br.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n};Br.prototype.error=function(e){var t,n=this._reporterState,i=e instanceof En;if(i?t=e:t=new En(n.path.map(function(a){return"["+JSON.stringify(a)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw t;return i||n.errors.push(t),t};Br.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e};function En(r,e){this.path=r,this.rethrow(e)}IM(En,Error);En.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,En),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}});var U6=A(P6=>{y();var TM=V(),U1=Sn().Reporter,Ha=or().Buffer;function nt(r,e){if(U1.call(this,e),!Ha.isBuffer(r)){this.error("Input not Buffer");return}this.base=r,this.offset=0,this.length=r.length}TM(nt,U1);P6.DecoderBuffer=nt;nt.prototype.save=function(){return{offset:this.offset,reporter:U1.prototype.save.call(this)}};nt.prototype.restore=function(e){var t=new nt(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,U1.prototype.restore.call(this,e.reporter),t};nt.prototype.isEmpty=function(){return this.offset===this.length};nt.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")};nt.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var n=new nt(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n};nt.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function P1(r,e){if(Array.isArray(r))this.length=0,this.value=r.map(function(t){return t instanceof P1||(t=new P1(t,e)),this.length+=t.length,t},this);else if(typeof r=="number"){if(!(0<=r&&r<=255))return e.error("non-byte EncoderBuffer value");this.value=r,this.length=1}else if(typeof r=="string")this.value=r,this.length=Ha.byteLength(r);else if(Ha.isBuffer(r))this.value=r,this.length=r.length;else return e.error("Unsupported type: "+typeof r)}P6.EncoderBuffer=P1;P1.prototype.join=function(e,t){return e||(e=new Ha(this.length)),t||(t=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,t),t+=n.length}):(typeof this.value=="number"?e[t]=this.value:typeof this.value=="string"?e.write(this.value,t):Ha.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}});var Q4=A((zI,J4)=>{y();var CM=Sn().Reporter,jM=Sn().EncoderBuffer,OM=Sn().DecoderBuffer,hr=kr(),X4=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],DM=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(X4),PM=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Ue(r,e){var t={};this._baseState=t,t.enc=r,t.parent=e||null,t.children=null,t.tag=null,t.args=null,t.reverseArgs=null,t.choice=null,t.optional=!1,t.any=!1,t.obj=!1,t.use=null,t.useDecoder=null,t.key=null,t.default=null,t.explicit=null,t.implicit=null,t.contains=null,t.parent||(t.children=[],this._wrap())}J4.exports=Ue;var UM=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Ue.prototype.clone=function(){var e=this._baseState,t={};UM.forEach(function(i){t[i]=e[i]});var n=new this.constructor(t.parent);return n._baseState=t,n};Ue.prototype._wrap=function(){var e=this._baseState;DM.forEach(function(t){this[t]=function(){var i=new this.constructor(this);return e.children.push(i),i[t].apply(i,arguments)}},this)};Ue.prototype._init=function(e){var t=this._baseState;hr(t.parent===null),e.call(this),t.children=t.children.filter(function(n){return n._baseState.parent===this},this),hr.equal(t.children.length,1,"Root node can have only one child")};Ue.prototype._useArgs=function(e){var t=this._baseState,n=e.filter(function(i){return i instanceof this.constructor},this);e=e.filter(function(i){return!(i instanceof this.constructor)},this),n.length!==0&&(hr(t.children===null),t.children=n,n.forEach(function(i){i._baseState.parent=this},this)),e.length!==0&&(hr(t.args===null),t.args=e,t.reverseArgs=e.map(function(i){if(typeof i!="object"||i.constructor!==Object)return i;var a={};return Object.keys(i).forEach(function(s){s==(s|0)&&(s|=0);var m=i[s];a[m]=s}),a}))};PM.forEach(function(r){Ue.prototype[r]=function(){var t=this._baseState;throw new Error(r+" not implemented for encoding: "+t.enc)}});X4.forEach(function(r){Ue.prototype[r]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return hr(t.tag===null),t.tag=r,this._useArgs(n),this}});Ue.prototype.use=function(e){hr(e);var t=this._baseState;return hr(t.use===null),t.use=e,this};Ue.prototype.optional=function(){var e=this._baseState;return e.optional=!0,this};Ue.prototype.def=function(e){var t=this._baseState;return hr(t.default===null),t.default=e,t.optional=!0,this};Ue.prototype.explicit=function(e){var t=this._baseState;return hr(t.explicit===null&&t.implicit===null),t.explicit=e,this};Ue.prototype.implicit=function(e){var t=this._baseState;return hr(t.explicit===null&&t.implicit===null),t.implicit=e,this};Ue.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,t.length!==0&&this._useArgs(t),this};Ue.prototype.key=function(e){var t=this._baseState;return hr(t.key===null),t.key=e,this};Ue.prototype.any=function(){var e=this._baseState;return e.any=!0,this};Ue.prototype.choice=function(e){var t=this._baseState;return hr(t.choice===null),t.choice=e,this._useArgs(Object.keys(e).map(function(n){return e[n]})),this};Ue.prototype.contains=function(e){var t=this._baseState;return hr(t.use===null),t.contains=e,this};Ue.prototype._decode=function(e,t){var n=this._baseState;if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,t));var i=n.default,a=!0,s=null;if(n.key!==null&&(s=e.enterKey(n.key)),n.optional){var m=null;if(n.explicit!==null?m=n.explicit:n.implicit!==null?m=n.implicit:n.tag!==null&&(m=n.tag),m===null&&!n.any){var w=e.save();try{n.choice===null?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch{a=!1}e.restore(w)}else if(a=this._peekTag(e,m,n.any),e.isError(a))return a}var E;if(n.obj&&a&&(E=e.enterObject()),a){if(n.explicit!==null){var q=this._decodeTag(e,n.explicit);if(e.isError(q))return q;e=q}var k=e.offset;if(n.use===null&&n.choice===null){if(n.any)var w=e.save();var R=this._decodeTag(e,n.implicit!==null?n.implicit:n.tag,n.any);if(e.isError(R))return R;n.any?i=e.raw(w):e=R}if(t&&t.track&&n.tag!==null&&t.track(e.path(),k,e.length,"tagged"),t&&t.track&&n.tag!==null&&t.track(e.path(),e.offset,e.length,"content"),n.any?i=i:n.choice===null?i=this._decodeGeneric(n.tag,e,t):i=this._decodeChoice(e,t),e.isError(i))return i;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(z){z._decode(e,t)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){var I=new OM(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(I,t)}}return n.obj&&a&&(i=e.leaveObject(E)),n.key!==null&&(i!==null||a===!0)?e.leaveKey(s,n.key,i):s!==null&&e.exitKey(s),i};Ue.prototype._decodeGeneric=function(e,t,n){var i=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(t,e,i.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):e==="objid"&&i.args?this._decodeObjid(t,i.args[0],i.args[1],n):e==="objid"?this._decodeObjid(t,null,null,n):e==="gentime"||e==="utctime"?this._decodeTime(t,e,n):e==="null_"?this._decodeNull(t,n):e==="bool"?this._decodeBool(t,n):e==="objDesc"?this._decodeStr(t,e,n):e==="int"||e==="enum"?this._decodeInt(t,i.args&&i.args[0],n):i.use!==null?this._getUse(i.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)};Ue.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),hr(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder};Ue.prototype._decodeChoice=function(e,t){var n=this._baseState,i=null,a=!1;return Object.keys(n.choice).some(function(s){var m=e.save(),w=n.choice[s];try{var E=w._decode(e,t);if(e.isError(E))return!1;i={type:s,value:E},a=!0}catch{return e.restore(m),!1}return!0},this),a?i:e.error("Choice not matched")};Ue.prototype._createEncoderBuffer=function(e){return new jM(e,this.reporter)};Ue.prototype._encode=function(e,t,n){var i=this._baseState;if(!(i.default!==null&&i.default===e)){var a=this._encodeValue(e,t,n);if(a!==void 0&&!this._skipDefault(a,t,n))return a}};Ue.prototype._encodeValue=function(e,t,n){var i=this._baseState;if(i.parent===null)return i.children[0]._encode(e,t||new CM);var w=null;if(this.reporter=t,i.optional&&e===void 0)if(i.default!==null)e=i.default;else return;var a=null,s=!1;if(i.any)w=this._createEncoderBuffer(e);else if(i.choice)w=this._encodeChoice(e,t);else if(i.contains)a=this._getUse(i.contains,n)._encode(e,t),s=!0;else if(i.children)a=i.children.map(function(k){if(k._baseState.tag==="null_")return k._encode(null,t,e);if(k._baseState.key===null)return t.error("Child should have a key");var R=t.enterKey(k._baseState.key);if(typeof e!="object")return t.error("Child expected, but input is not object");var I=k._encode(e[k._baseState.key],t,e);return t.leaveKey(R),I},this).filter(function(k){return k}),a=this._createEncoderBuffer(a);else if(i.tag==="seqof"||i.tag==="setof"){if(!(i.args&&i.args.length===1))return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var m=this.clone();m._baseState.implicit=null,a=this._createEncoderBuffer(e.map(function(k){var R=this._baseState;return this._getUse(R.args[0],e)._encode(k,t)},m))}else i.use!==null?w=this._getUse(i.use,n)._encode(e,t):(a=this._encodePrimitive(i.tag,e),s=!0);var w;if(!i.any&&i.choice===null){var E=i.implicit!==null?i.implicit:i.tag,q=i.implicit===null?"universal":"context";E===null?i.use===null&&t.error("Tag could be omitted only for .use()"):i.use===null&&(w=this._encodeComposite(E,s,q,a))}return i.explicit!==null&&(w=this._encodeComposite(i.explicit,!1,"context",w)),w};Ue.prototype._encodeChoice=function(e,t){var n=this._baseState,i=n.choice[e.type];return i||hr(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),i._encode(e.value,t)};Ue.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if(e==="objid"&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if(e==="objid")return this._encodeObjid(t,null,null);if(e==="gentime"||e==="utctime")return this._encodeTime(t,e);if(e==="null_")return this._encodeNull();if(e==="int"||e==="enum")return this._encodeInt(t,n.args&&n.reverseArgs[0]);if(e==="bool")return this._encodeBool(t);if(e==="objDesc")return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)};Ue.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)};Ue.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}});var Sn=A(e8=>{y();var z1=e8;z1.Reporter=Y4().Reporter;z1.DecoderBuffer=U6().DecoderBuffer;z1.EncoderBuffer=U6().EncoderBuffer;z1.Node=Q4()});var t8=A(Ci=>{y();var r8=z6();Ci.tagClass={0:"universal",1:"application",2:"context",3:"private"};Ci.tagClassByName=r8._reverse(Ci.tagClass);Ci.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};Ci.tagByName=r8._reverse(Ci.tag)});var z6=A(n8=>{y();var i8=n8;i8._reverse=function(e){var t={};return Object.keys(e).forEach(function(n){(n|0)==n&&(n=n|0);var i=e[n];t[i]=n}),t};i8.der=t8()});var L6=A((GI,f8)=>{y();var zM=V(),N6=Mn(),N1=N6.base,NM=N6.bignum,a8=N6.constants.der;function o8(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new gr,this.tree._init(r.body)}f8.exports=o8;o8.prototype.decode=function(e,t){return e instanceof N1.DecoderBuffer||(e=new N1.DecoderBuffer(e,t)),this.tree._decode(e,t)};function gr(r){N1.Node.call(this,"der",r)}zM(gr,N1.Node);gr.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;var i=e.save(),a=F6(e,'Failed to peek tag: "'+t+'"');return e.isError(a)?a:(e.restore(i),a.tag===t||a.tagStr===t||a.tagStr+"of"===t||n)};gr.prototype._decodeTag=function(e,t,n){var i=F6(e,'Failed to decode tag of "'+t+'"');if(e.isError(i))return i;var a=s8(e,i.primitive,'Failed to get length of "'+t+'"');if(e.isError(a))return a;if(!n&&i.tag!==t&&i.tagStr!==t&&i.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(i.primitive||a!==null)return e.skip(a,'Failed to match body of: "'+t+'"');var s=e.save(),m=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(m)?m:(a=e.offset-s.offset,e.restore(s),e.skip(a,'Failed to match body of: "'+t+'"'))};gr.prototype._skipUntilEnd=function(e,t){for(;;){var n=F6(e,t);if(e.isError(n))return n;var i=s8(e,n.primitive,t);if(e.isError(i))return i;var a;if(n.primitive||i!==null?a=e.skip(i):a=this._skipUntilEnd(e,t),e.isError(a))return a;if(n.tagStr==="end")break}};gr.prototype._decodeList=function(e,t,n,i){for(var a=[];!e.isEmpty();){var s=this._peekTag(e,"end");if(e.isError(s))return s;var m=n.decode(e,"der",i);if(e.isError(m)&&s)break;a.push(m)}return a};gr.prototype._decodeStr=function(e,t){if(t==="bitstr"){var n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}else if(t==="bmpstr"){var i=e.raw();if(i.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");for(var a="",s=0;s<i.length/2;s++)a+=String.fromCharCode(i.readUInt16BE(s*2));return a}else if(t==="numstr"){var m=e.raw().toString("ascii");return this._isNumstr(m)?m:e.error("Decoding of string type: numstr unsupported characters")}else{if(t==="octstr")return e.raw();if(t==="objDesc")return e.raw();if(t==="printstr"){var w=e.raw().toString("ascii");return this._isPrintstr(w)?w:e.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")}};gr.prototype._decodeObjid=function(e,t,n){for(var i,a=[],s=0;!e.isEmpty();){var m=e.readUInt8();s<<=7,s|=m&127,(m&128)===0&&(a.push(s),s=0)}m&128&&a.push(s);var w=a[0]/40|0,E=a[0]%40;if(n?i=a:i=[w,E].concat(a.slice(1)),t){var q=t[i.join(" ")];q===void 0&&(q=t[i.join(".")]),q!==void 0&&(i=q)}return i};gr.prototype._decodeTime=function(e,t){var n=e.raw().toString();if(t==="gentime")var i=n.slice(0,4)|0,a=n.slice(4,6)|0,s=n.slice(6,8)|0,m=n.slice(8,10)|0,w=n.slice(10,12)|0,E=n.slice(12,14)|0;else if(t==="utctime"){var i=n.slice(0,2)|0,a=n.slice(2,4)|0,s=n.slice(4,6)|0,m=n.slice(6,8)|0,w=n.slice(8,10)|0,E=n.slice(10,12)|0;i<70?i=2e3+i:i=1900+i}else return e.error("Decoding "+t+" time is not supported yet");return Date.UTC(i,a-1,s,m,w,E,0)};gr.prototype._decodeNull=function(e){return null};gr.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:t!==0};gr.prototype._decodeInt=function(e,t){var n=e.raw(),i=new NM(n);return t&&(i=t[i.toString(10)]||i),i};gr.prototype._use=function(e,t){return typeof e=="function"&&(e=e(t)),e._getDecoder("der").tree};function F6(r,e){var t=r.readUInt8(e);if(r.isError(t))return t;var n=a8.tagClass[t>>6],i=(t&32)===0;if((t&31)===31){var a=t;for(t=0;(a&128)===128;){if(a=r.readUInt8(e),r.isError(a))return a;t<<=7,t|=a&127}}else t&=31;var s=a8.tag[t];return{cls:n,primitive:i,tag:t,tagStr:s}}function s8(r,e,t){var n=r.readUInt8(t);if(r.isError(n))return n;if(!e&&n===128)return null;if((n&128)===0)return n;var i=n&127;if(i>4)return r.error("length octect is too long");n=0;for(var a=0;a<i;a++){n<<=8;var s=r.readUInt8(t);if(r.isError(s))return s;n|=s}return n}});var l8=A((ZI,u8)=>{y();var FM=V(),LM=or().Buffer,H6=L6();function K6(r){H6.call(this,r),this.enc="pem"}FM(K6,H6);u8.exports=K6;K6.prototype.decode=function(e,t){for(var n=e.toString().split(/[\r\n]+/g),i=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,m=-1,w=0;w<n.length;w++){var E=n[w].match(a);if(E!==null&&E[2]===i)if(s===-1){if(E[1]!=="BEGIN")break;s=w}else{if(E[1]!=="END")break;m=w;break}}if(s===-1||m===-1)throw new Error("PEM section not found for: "+i);var q=n.slice(s+1,m).join("");q.replace(/[^a-z0-9\+\/=]+/gi,"");var k=new LM(q,"base64");return H6.prototype.decode.call(this,k,t)}});var d8=A(h8=>{y();var c8=h8;c8.der=L6();c8.pem=l8()});var V6=A((QI,g8)=>{y();var HM=V(),Et=or().Buffer,p8=Mn(),v8=p8.base,W6=p8.constants.der;function m8(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new Ur,this.tree._init(r.body)}g8.exports=m8;m8.prototype.encode=function(e,t){return this.tree._encode(e,t).join()};function Ur(r){v8.Node.call(this,"der",r)}HM(Ur,v8.Node);Ur.prototype._encodeComposite=function(e,t,n,i){var a=KM(e,t,n,this.reporter);if(i.length<128){var w=new Et(2);return w[0]=a,w[1]=i.length,this._createEncoderBuffer([w,i])}for(var s=1,m=i.length;m>=256;m>>=8)s++;var w=new Et(2+s);w[0]=a,w[1]=128|s;for(var m=1+s,E=i.length;E>0;m--,E>>=8)w[m]=E&255;return this._createEncoderBuffer([w,i])};Ur.prototype._encodeStr=function(e,t){if(t==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(t==="bmpstr"){for(var n=new Et(e.length*2),i=0;i<e.length;i++)n.writeUInt16BE(e.charCodeAt(i),i*2);return this._createEncoderBuffer(n)}else return t==="numstr"?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):t==="printstr"?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)?this._createEncoderBuffer(e):t==="objDesc"?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")};Ur.prototype._encodeObjid=function(e,t,n){if(typeof e=="string"){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var i=0;i<e.length;i++)e[i]|=0}else if(Array.isArray(e)){e=e.slice();for(var i=0;i<e.length;i++)e[i]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}for(var a=0,i=0;i<e.length;i++){var s=e[i];for(a++;s>=128;s>>=7)a++}for(var m=new Et(a),w=m.length-1,i=e.length-1;i>=0;i--){var s=e[i];for(m[w--]=s&127;(s>>=7)>0;)m[w--]=128|s&127}return this._createEncoderBuffer(m)};function Ar(r){return r<10?"0"+r:r}Ur.prototype._encodeTime=function(e,t){var n,i=new Date(e);return t==="gentime"?n=[Ar(i.getFullYear()),Ar(i.getUTCMonth()+1),Ar(i.getUTCDate()),Ar(i.getUTCHours()),Ar(i.getUTCMinutes()),Ar(i.getUTCSeconds()),"Z"].join(""):t==="utctime"?n=[Ar(i.getFullYear()%100),Ar(i.getUTCMonth()+1),Ar(i.getUTCDate()),Ar(i.getUTCHours()),Ar(i.getUTCMinutes()),Ar(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")};Ur.prototype._encodeNull=function(){return this._createEncoderBuffer("")};Ur.prototype._encodeInt=function(e,t){if(typeof e=="string"){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if(typeof e!="number"&&!Et.isBuffer(e)){var n=e.toArray();!e.sign&&n[0]&128&&n.unshift(0),e=new Et(n)}if(Et.isBuffer(e)){var i=e.length;e.length===0&&i++;var s=new Et(i);return e.copy(s),e.length===0&&(s[0]=0),this._createEncoderBuffer(s)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var i=1,a=e;a>=256;a>>=8)i++;for(var s=new Array(i),a=s.length-1;a>=0;a--)s[a]=e&255,e>>=8;return s[0]&128&&s.unshift(0),this._createEncoderBuffer(new Et(s))};Ur.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)};Ur.prototype._use=function(e,t){return typeof e=="function"&&(e=e(t)),e._getEncoder("der").tree};Ur.prototype._skipDefault=function(e,t,n){var i=this._baseState,a;if(i.default===null)return!1;var s=e.join();if(i.defaultBuffer===void 0&&(i.defaultBuffer=this._encodeValue(i.default,t,n).join()),s.length!==i.defaultBuffer.length)return!1;for(a=0;a<s.length;a++)if(s[a]!==i.defaultBuffer[a])return!1;return!0};function KM(r,e,t,n){var i;if(r==="seqof"?r="seq":r==="setof"&&(r="set"),W6.tagByName.hasOwnProperty(r))i=W6.tagByName[r];else if(typeof r=="number"&&(r|0)===r)i=r;else return n.error("Unknown tag: "+r);return i>=31?n.error("Multi-octet tag encoding unsupported"):(e||(i|=32),i|=W6.tagClassByName[t||"universal"]<<6,i)}});var y8=A((rT,b8)=>{y();var WM=V(),G6=V6();function $6(r){G6.call(this,r),this.enc="pem"}WM($6,G6);b8.exports=$6;$6.prototype.encode=function(e,t){for(var n=G6.prototype.encode.call(this,e),i=n.toString("base64"),a=["-----BEGIN "+t.label+"-----"],s=0;s<i.length;s+=64)a.push(i.slice(s,s+64));return a.push("-----END "+t.label+"-----"),a.join(`
|
|
14
14
|
`)}});var x8=A(_8=>{y();var w8=_8;w8.der=V6();w8.pem=y8()});var Mn=A(M8=>{y();var Bn=M8;Bn.bignum=zt();Bn.define=$4().define;Bn.base=Sn();Bn.constants=z6();Bn.decoders=d8();Bn.encoders=x8()});var A8=A((sT,B8)=>{"use strict";y();var zr=Mn(),E8=zr.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),VM=zr.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),Z6=zr.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),GM=zr.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Z6),this.key("subjectPublicKey").bitstr())}),$M=zr.define("RelativeDistinguishedName",function(){this.setof(VM)}),ZM=zr.define("RDNSequence",function(){this.seqof($M)}),S8=zr.define("Name",function(){this.choice({rdnSequence:this.use(ZM)})}),YM=zr.define("Validity",function(){this.seq().obj(this.key("notBefore").use(E8),this.key("notAfter").use(E8))}),XM=zr.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),JM=zr.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(Z6),this.key("issuer").use(S8),this.key("validity").use(YM),this.key("subject").use(S8),this.key("subjectPublicKeyInfo").use(GM),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(XM).optional())}),QM=zr.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(JM),this.key("signatureAlgorithm").use(Z6),this.key("signatureValue").bitstr())});B8.exports=QM});var k8=A(Fr=>{"use strict";y();var Nr=Mn();Fr.certificate=A8();var eE=Nr.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});Fr.RSAPrivateKey=eE;var rE=Nr.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Fr.RSAPublicKey=rE;var q8=Nr.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),tE=Nr.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(q8),this.key("subjectPublicKey").bitstr())});Fr.PublicKey=tE;var iE=Nr.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(q8),this.key("subjectPrivateKey").octstr())});Fr.PrivateKey=iE;var nE=Nr.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});Fr.EncryptedPrivateKey=nE;var aE=Nr.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});Fr.DSAPrivateKey=aE;Fr.DSAparam=Nr.define("DSAparam",function(){this.int()});var oE=Nr.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),sE=Nr.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(oE),this.key("publicKey").optional().explicit(1).bitstr())});Fr.ECPrivateKey=sE;Fr.signature=Nr.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})});var R8=A((cT,fE)=>{fE.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}});var T8=A((hT,I8)=>{"use strict";y();var uE=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,lE=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,cE=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,hE=za(),dE=j1(),F1=Se().Buffer;I8.exports=function(r,e){var t=r.toString(),n=t.match(uE),i;if(n){var s="aes"+n[1],m=F1.from(n[2],"hex"),w=F1.from(n[3].replace(/[\r\n]/g,""),"base64"),E=hE(e,m.slice(0,8),parseInt(n[1],10)).key,q=[],k=dE.createDecipheriv(s,E,m);q.push(k.update(w)),q.push(k.final()),i=F1.concat(q)}else{var a=t.match(cE);i=F1.from(a[2].replace(/[\r\n]/g,""),"base64")}var R=t.match(lE)[1];return{tag:R,data:i}}});var X6=A((pT,j8)=>{"use strict";y();var mr=k8(),pE=R8(),vE=T8(),mE=j1(),gE=o6().pbkdf2Sync,Y6=Se().Buffer;function bE(r,e){var t=r.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(r.algorithm.decrypt.kde.kdeparams.iters.toString(),10),i=pE[r.algorithm.decrypt.cipher.algo.join(".")],a=r.algorithm.decrypt.cipher.iv,s=r.subjectPrivateKey,m=parseInt(i.split("-")[1],10)/8,w=gE(e,t,n,m,"sha1"),E=mE.createDecipheriv(i,w,a),q=[];return q.push(E.update(s)),q.push(E.final()),Y6.concat(q)}function C8(r){var e;typeof r=="object"&&!Y6.isBuffer(r)&&(e=r.passphrase,r=r.key),typeof r=="string"&&(r=Y6.from(r));var t=vE(r,e),n=t.tag,i=t.data,a,s;switch(n){case"CERTIFICATE":s=mr.certificate.decode(i,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(s||(s=mr.PublicKey.decode(i,"der")),a=s.algorithm.algorithm.join("."),a){case"1.2.840.113549.1.1.1":return mr.RSAPublicKey.decode(s.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return s.subjectPrivateKey=s.subjectPublicKey,{type:"ec",data:s};case"1.2.840.10040.4.1":return s.algorithm.params.pub_key=mr.DSAparam.decode(s.subjectPublicKey.data,"der"),{type:"dsa",data:s.algorithm.params};default:throw new Error("unknown key id "+a)}case"ENCRYPTED PRIVATE KEY":i=mr.EncryptedPrivateKey.decode(i,"der"),i=bE(i,e);case"PRIVATE KEY":switch(s=mr.PrivateKey.decode(i,"der"),a=s.algorithm.algorithm.join("."),a){case"1.2.840.113549.1.1.1":return mr.RSAPrivateKey.decode(s.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:s.algorithm.curve,privateKey:mr.ECPrivateKey.decode(s.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return s.algorithm.params.priv_key=mr.DSAparam.decode(s.subjectPrivateKey,"der"),{type:"dsa",params:s.algorithm.params};default:throw new Error("unknown key id "+a)}case"RSA PUBLIC KEY":return mr.RSAPublicKey.decode(i,"der");case"RSA PRIVATE KEY":return mr.RSAPrivateKey.decode(i,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:mr.DSAPrivateKey.decode(i,"der")};case"EC PRIVATE KEY":return i=mr.ECPrivateKey.decode(i,"der"),{curve:i.parameters.value,privateKey:i.privateKey};default:throw new Error("unknown key type "+n)}}C8.signature=mr.signature;j8.exports=C8});var Q6=A((mT,O8)=>{y();var yE=Ia(),J6=Se().Buffer;O8.exports=function(r,e){for(var t=J6.alloc(0),n=0,i;t.length<e;)i=wE(n++),t=J6.concat([t,yE("sha1").update(r).update(i).digest()]);return t.slice(0,e)};function wE(r){var e=J6.allocUnsafe(4);return e.writeUInt32BE(r,0),e}});var es=A((bT,D8)=>{y();D8.exports=function(e,t){for(var n=e.length,i=-1;++i<n;)e[i]^=t[i];return e}});var rs=A((wT,U8)=>{y();var P8=zt(),_E=Se().Buffer;function xE(r,e){return _E.from(r.toRed(P8.mont(e.modulus)).redPow(new P8(e.publicExponent)).fromRed().toArray())}U8.exports=xE});var N8=A((z8,ts)=>{y();(function(r,e){"use strict";function t(d,o){if(!d)throw new Error(o||"Assertion failed")}function n(d,o){d.super_=o;var u=function(){};u.prototype=o.prototype,d.prototype=new u,d.prototype.constructor=d}function i(d,o,u){if(i.isBN(d))return d;this.negative=0,this.words=null,this.length=0,this.red=null,d!==null&&((o==="le"||o==="be")&&(u=o,o=10),this._init(d||0,o||10,u||"be"))}typeof r=="object"?r.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=or().Buffer}catch{}i.isBN=function(o){return o instanceof i?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===i.wordSize&&Array.isArray(o.words)},i.max=function(o,u){return o.cmp(u)>0?o:u},i.min=function(o,u){return o.cmp(u)<0?o:u},i.prototype._init=function(o,u,p){if(typeof o=="number")return this._initNumber(o,u,p);if(typeof o=="object")return this._initArray(o,u,p);u==="hex"&&(u=16),t(u===(u|0)&&u>=2&&u<=36),o=o.toString().replace(/\s+/g,"");var v=0;o[0]==="-"&&(v++,this.negative=1),v<o.length&&(u===16?this._parseHex(o,v,p):(this._parseBase(o,u,v),p==="le"&&this._initArray(this.toArray(),u,p)))},i.prototype._initNumber=function(o,u,p){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(t(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),p==="le"&&this._initArray(this.toArray(),u,p)},i.prototype._initArray=function(o,u,p){if(t(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var v=0;v<this.length;v++)this.words[v]=0;var c,f,g=0;if(p==="be")for(v=o.length-1,c=0;v>=0;v-=3)f=o[v]|o[v-1]<<8|o[v-2]<<16,this.words[c]|=f<<g&67108863,this.words[c+1]=f>>>26-g&67108863,g+=24,g>=26&&(g-=26,c++);else if(p==="le")for(v=0,c=0;v<o.length;v+=3)f=o[v]|o[v+1]<<8|o[v+2]<<16,this.words[c]|=f<<g&67108863,this.words[c+1]=f>>>26-g&67108863,g+=24,g>=26&&(g-=26,c++);return this._strip()};function s(d,o){var u=d.charCodeAt(o);if(u>=48&&u<=57)return u-48;if(u>=65&&u<=70)return u-55;if(u>=97&&u<=102)return u-87;t(!1,"Invalid character in "+d)}function m(d,o,u){var p=s(d,u);return u-1>=o&&(p|=s(d,u-1)<<4),p}i.prototype._parseHex=function(o,u,p){this.length=Math.ceil((o.length-u)/6),this.words=new Array(this.length);for(var v=0;v<this.length;v++)this.words[v]=0;var c=0,f=0,g;if(p==="be")for(v=o.length-1;v>=u;v-=2)g=m(o,u,v)<<c,this.words[f]|=g&67108863,c>=18?(c-=18,f+=1,this.words[f]|=g>>>26):c+=8;else{var _=o.length-u;for(v=_%2===0?u+1:u;v<o.length;v+=2)g=m(o,u,v)<<c,this.words[f]|=g&67108863,c>=18?(c-=18,f+=1,this.words[f]|=g>>>26):c+=8}this._strip()};function w(d,o,u,p){for(var v=0,c=0,f=Math.min(d.length,u),g=o;g<f;g++){var _=d.charCodeAt(g)-48;v*=p,_>=49?c=_-49+10:_>=17?c=_-17+10:c=_,t(_>=0&&c<p,"Invalid character"),v+=c}return v}i.prototype._parseBase=function(o,u,p){this.words=[0],this.length=1;for(var v=0,c=1;c<=67108863;c*=u)v++;v--,c=c/u|0;for(var f=o.length-p,g=f%v,_=Math.min(f,f-g)+p,h=0,x=p;x<_;x+=v)h=w(o,x,x+v,u),this.imuln(c),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(g!==0){var C=1;for(h=w(o,x,o.length,u),x=0;x<g;x++)C*=u;this.imuln(C),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this._strip()},i.prototype.copy=function(o){o.words=new Array(this.length);for(var u=0;u<this.length;u++)o.words[u]=this.words[u];o.length=this.length,o.negative=this.negative,o.red=this.red};function E(d,o){d.words=o.words,d.length=o.length,d.negative=o.negative,d.red=o.red}if(i.prototype._move=function(o){E(o,this)},i.prototype.clone=function(){var o=new i(null);return this.copy(o),o},i.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=q}catch{i.prototype.inspect=q}else i.prototype.inspect=q;function q(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var k=["","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"],R=[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],I=[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];i.prototype.toString=function(o,u){o=o||10,u=u|0||1;var p;if(o===16||o==="hex"){p="";for(var v=0,c=0,f=0;f<this.length;f++){var g=this.words[f],_=((g<<v|c)&16777215).toString(16);c=g>>>24-v&16777215,v+=2,v>=26&&(v-=26,f--),c!==0||f!==this.length-1?p=k[6-_.length]+_+p:p=_+p}for(c!==0&&(p=c.toString(16)+p);p.length%u!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(o===(o|0)&&o>=2&&o<=36){var h=R[o],x=I[o];p="";var C=this.clone();for(C.negative=0;!C.isZero();){var j=C.modrn(x).toString(o);C=C.idivn(x),C.isZero()?p=j+p:p=k[h-j.length]+j+p}for(this.isZero()&&(p="0"+p);p.length%u!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}t(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},i.prototype.toJSON=function(){return this.toString(16,2)},a&&(i.prototype.toBuffer=function(o,u){return this.toArrayLike(a,o,u)}),i.prototype.toArray=function(o,u){return this.toArrayLike(Array,o,u)};var D=function(o,u){return o.allocUnsafe?o.allocUnsafe(u):new o(u)};i.prototype.toArrayLike=function(o,u,p){this._strip();var v=this.byteLength(),c=p||Math.max(1,v);t(v<=c,"byte array longer than desired length"),t(c>0,"Requested array length <= 0");var f=D(o,c),g=u==="le"?"LE":"BE";return this["_toArrayLike"+g](f,v),f},i.prototype._toArrayLikeLE=function(o,u){for(var p=0,v=0,c=0,f=0;c<this.length;c++){var g=this.words[c]<<f|v;o[p++]=g&255,p<o.length&&(o[p++]=g>>8&255),p<o.length&&(o[p++]=g>>16&255),f===6?(p<o.length&&(o[p++]=g>>24&255),v=0,f=0):(v=g>>>24,f+=2)}if(p<o.length)for(o[p++]=v;p<o.length;)o[p++]=0},i.prototype._toArrayLikeBE=function(o,u){for(var p=o.length-1,v=0,c=0,f=0;c<this.length;c++){var g=this.words[c]<<f|v;o[p--]=g&255,p>=0&&(o[p--]=g>>8&255),p>=0&&(o[p--]=g>>16&255),f===6?(p>=0&&(o[p--]=g>>24&255),v=0,f=0):(v=g>>>24,f+=2)}if(p>=0)for(o[p--]=v;p>=0;)o[p--]=0},Math.clz32?i.prototype._countBits=function(o){return 32-Math.clz32(o)}:i.prototype._countBits=function(o){var u=o,p=0;return u>=4096&&(p+=13,u>>>=13),u>=64&&(p+=7,u>>>=7),u>=8&&(p+=4,u>>>=4),u>=2&&(p+=2,u>>>=2),p+u},i.prototype._zeroBits=function(o){if(o===0)return 26;var u=o,p=0;return(u&8191)===0&&(p+=13,u>>>=13),(u&127)===0&&(p+=7,u>>>=7),(u&15)===0&&(p+=4,u>>>=4),(u&3)===0&&(p+=2,u>>>=2),(u&1)===0&&p++,p},i.prototype.bitLength=function(){var o=this.words[this.length-1],u=this._countBits(o);return(this.length-1)*26+u};function z(d){for(var o=new Array(d.bitLength()),u=0;u<o.length;u++){var p=u/26|0,v=u%26;o[u]=d.words[p]>>>v&1}return o}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,u=0;u<this.length;u++){var p=this._zeroBits(this.words[u]);if(o+=p,p!==26)break}return o},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},i.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var u=0;u<o.length;u++)this.words[u]=this.words[u]|o.words[u];return this._strip()},i.prototype.ior=function(o){return t((this.negative|o.negative)===0),this.iuor(o)},i.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},i.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},i.prototype.iuand=function(o){var u;this.length>o.length?u=o:u=this;for(var p=0;p<u.length;p++)this.words[p]=this.words[p]&o.words[p];return this.length=u.length,this._strip()},i.prototype.iand=function(o){return t((this.negative|o.negative)===0),this.iuand(o)},i.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},i.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},i.prototype.iuxor=function(o){var u,p;this.length>o.length?(u=this,p=o):(u=o,p=this);for(var v=0;v<p.length;v++)this.words[v]=u.words[v]^p.words[v];if(this!==u)for(;v<u.length;v++)this.words[v]=u.words[v];return this.length=u.length,this._strip()},i.prototype.ixor=function(o){return t((this.negative|o.negative)===0),this.iuxor(o)},i.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},i.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},i.prototype.inotn=function(o){t(typeof o=="number"&&o>=0);var u=Math.ceil(o/26)|0,p=o%26;this._expand(u),p>0&&u--;for(var v=0;v<u;v++)this.words[v]=~this.words[v]&67108863;return p>0&&(this.words[v]=~this.words[v]&67108863>>26-p),this._strip()},i.prototype.notn=function(o){return this.clone().inotn(o)},i.prototype.setn=function(o,u){t(typeof o=="number"&&o>=0);var p=o/26|0,v=o%26;return this._expand(p+1),u?this.words[p]=this.words[p]|1<<v:this.words[p]=this.words[p]&~(1<<v),this._strip()},i.prototype.iadd=function(o){var u;if(this.negative!==0&&o.negative===0)return this.negative=0,u=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,u=this.isub(o),o.negative=1,u._normSign();var p,v;this.length>o.length?(p=this,v=o):(p=o,v=this);for(var c=0,f=0;f<v.length;f++)u=(p.words[f]|0)+(v.words[f]|0)+c,this.words[f]=u&67108863,c=u>>>26;for(;c!==0&&f<p.length;f++)u=(p.words[f]|0)+c,this.words[f]=u&67108863,c=u>>>26;if(this.length=p.length,c!==0)this.words[this.length]=c,this.length++;else if(p!==this)for(;f<p.length;f++)this.words[f]=p.words[f];return this},i.prototype.add=function(o){var u;return o.negative!==0&&this.negative===0?(o.negative=0,u=this.sub(o),o.negative^=1,u):o.negative===0&&this.negative!==0?(this.negative=0,u=o.sub(this),this.negative=1,u):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},i.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var u=this.iadd(o);return o.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var p=this.cmp(o);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var v,c;p>0?(v=this,c=o):(v=o,c=this);for(var f=0,g=0;g<c.length;g++)u=(v.words[g]|0)-(c.words[g]|0)+f,f=u>>26,this.words[g]=u&67108863;for(;f!==0&&g<v.length;g++)u=(v.words[g]|0)+f,f=u>>26,this.words[g]=u&67108863;if(f===0&&g<v.length&&v!==this)for(;g<v.length;g++)this.words[g]=v.words[g];return this.length=Math.max(this.length,g),v!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(o){return this.clone().isub(o)};function W(d,o,u){u.negative=o.negative^d.negative;var p=d.length+o.length|0;u.length=p,p=p-1|0;var v=d.words[0]|0,c=o.words[0]|0,f=v*c,g=f&67108863,_=f/67108864|0;u.words[0]=g;for(var h=1;h<p;h++){for(var x=_>>>26,C=_&67108863,j=Math.min(h,o.length-1),O=Math.max(0,h-d.length+1);O<=j;O++){var U=h-O|0;v=d.words[U]|0,c=o.words[O]|0,f=v*c+C,x+=f/67108864|0,C=f&67108863}u.words[h]=C|0,_=x|0}return _!==0?u.words[h]=_|0:u.length--,u._strip()}var N=function(o,u,p){var v=o.words,c=u.words,f=p.words,g=0,_,h,x,C=v[0]|0,j=C&8191,O=C>>>13,U=v[1]|0,P=U&8191,F=U>>>13,qr=v[2]|0,L=qr&8191,K=qr>>>13,In=v[3]|0,G=In&8191,$=In>>>13,Tn=v[4]|0,Z=Tn&8191,Y=Tn>>>13,Cn=v[5]|0,X=Cn&8191,J=Cn>>>13,jn=v[6]|0,Q=jn&8191,ee=jn>>>13,On=v[7]|0,re=On&8191,te=On>>>13,Dn=v[8]|0,ie=Dn&8191,ne=Dn>>>13,Pn=v[9]|0,ae=Pn&8191,oe=Pn>>>13,Un=c[0]|0,se=Un&8191,fe=Un>>>13,zn=c[1]|0,ue=zn&8191,le=zn>>>13,Nn=c[2]|0,ce=Nn&8191,he=Nn>>>13,Fn=c[3]|0,de=Fn&8191,pe=Fn>>>13,Ln=c[4]|0,ve=Ln&8191,me=Ln>>>13,Hn=c[5]|0,ge=Hn&8191,be=Hn>>>13,Kn=c[6]|0,ye=Kn&8191,we=Kn>>>13,Wn=c[7]|0,_e=Wn&8191,xe=Wn>>>13,Vn=c[8]|0,Me=Vn&8191,Ee=Vn>>>13,Oi=c[9]|0,He=Oi&8191,Ke=Oi>>>13;p.negative=o.negative^u.negative,p.length=19,_=Math.imul(j,se),h=Math.imul(j,fe),h=h+Math.imul(O,se)|0,x=Math.imul(O,fe);var Ft=(g+_|0)+((h&8191)<<13)|0;g=(x+(h>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,_=Math.imul(P,se),h=Math.imul(P,fe),h=h+Math.imul(F,se)|0,x=Math.imul(F,fe),_=_+Math.imul(j,ue)|0,h=h+Math.imul(j,le)|0,h=h+Math.imul(O,ue)|0,x=x+Math.imul(O,le)|0;var Lt=(g+_|0)+((h&8191)<<13)|0;g=(x+(h>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,_=Math.imul(L,se),h=Math.imul(L,fe),h=h+Math.imul(K,se)|0,x=Math.imul(K,fe),_=_+Math.imul(P,ue)|0,h=h+Math.imul(P,le)|0,h=h+Math.imul(F,ue)|0,x=x+Math.imul(F,le)|0,_=_+Math.imul(j,ce)|0,h=h+Math.imul(j,he)|0,h=h+Math.imul(O,ce)|0,x=x+Math.imul(O,he)|0;var Ht=(g+_|0)+((h&8191)<<13)|0;g=(x+(h>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,_=Math.imul(G,se),h=Math.imul(G,fe),h=h+Math.imul($,se)|0,x=Math.imul($,fe),_=_+Math.imul(L,ue)|0,h=h+Math.imul(L,le)|0,h=h+Math.imul(K,ue)|0,x=x+Math.imul(K,le)|0,_=_+Math.imul(P,ce)|0,h=h+Math.imul(P,he)|0,h=h+Math.imul(F,ce)|0,x=x+Math.imul(F,he)|0,_=_+Math.imul(j,de)|0,h=h+Math.imul(j,pe)|0,h=h+Math.imul(O,de)|0,x=x+Math.imul(O,pe)|0;var Kt=(g+_|0)+((h&8191)<<13)|0;g=(x+(h>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,_=Math.imul(Z,se),h=Math.imul(Z,fe),h=h+Math.imul(Y,se)|0,x=Math.imul(Y,fe),_=_+Math.imul(G,ue)|0,h=h+Math.imul(G,le)|0,h=h+Math.imul($,ue)|0,x=x+Math.imul($,le)|0,_=_+Math.imul(L,ce)|0,h=h+Math.imul(L,he)|0,h=h+Math.imul(K,ce)|0,x=x+Math.imul(K,he)|0,_=_+Math.imul(P,de)|0,h=h+Math.imul(P,pe)|0,h=h+Math.imul(F,de)|0,x=x+Math.imul(F,pe)|0,_=_+Math.imul(j,ve)|0,h=h+Math.imul(j,me)|0,h=h+Math.imul(O,ve)|0,x=x+Math.imul(O,me)|0;var Wt=(g+_|0)+((h&8191)<<13)|0;g=(x+(h>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,_=Math.imul(X,se),h=Math.imul(X,fe),h=h+Math.imul(J,se)|0,x=Math.imul(J,fe),_=_+Math.imul(Z,ue)|0,h=h+Math.imul(Z,le)|0,h=h+Math.imul(Y,ue)|0,x=x+Math.imul(Y,le)|0,_=_+Math.imul(G,ce)|0,h=h+Math.imul(G,he)|0,h=h+Math.imul($,ce)|0,x=x+Math.imul($,he)|0,_=_+Math.imul(L,de)|0,h=h+Math.imul(L,pe)|0,h=h+Math.imul(K,de)|0,x=x+Math.imul(K,pe)|0,_=_+Math.imul(P,ve)|0,h=h+Math.imul(P,me)|0,h=h+Math.imul(F,ve)|0,x=x+Math.imul(F,me)|0,_=_+Math.imul(j,ge)|0,h=h+Math.imul(j,be)|0,h=h+Math.imul(O,ge)|0,x=x+Math.imul(O,be)|0;var Vt=(g+_|0)+((h&8191)<<13)|0;g=(x+(h>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(Q,se),h=Math.imul(Q,fe),h=h+Math.imul(ee,se)|0,x=Math.imul(ee,fe),_=_+Math.imul(X,ue)|0,h=h+Math.imul(X,le)|0,h=h+Math.imul(J,ue)|0,x=x+Math.imul(J,le)|0,_=_+Math.imul(Z,ce)|0,h=h+Math.imul(Z,he)|0,h=h+Math.imul(Y,ce)|0,x=x+Math.imul(Y,he)|0,_=_+Math.imul(G,de)|0,h=h+Math.imul(G,pe)|0,h=h+Math.imul($,de)|0,x=x+Math.imul($,pe)|0,_=_+Math.imul(L,ve)|0,h=h+Math.imul(L,me)|0,h=h+Math.imul(K,ve)|0,x=x+Math.imul(K,me)|0,_=_+Math.imul(P,ge)|0,h=h+Math.imul(P,be)|0,h=h+Math.imul(F,ge)|0,x=x+Math.imul(F,be)|0,_=_+Math.imul(j,ye)|0,h=h+Math.imul(j,we)|0,h=h+Math.imul(O,ye)|0,x=x+Math.imul(O,we)|0;var Gt=(g+_|0)+((h&8191)<<13)|0;g=(x+(h>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,_=Math.imul(re,se),h=Math.imul(re,fe),h=h+Math.imul(te,se)|0,x=Math.imul(te,fe),_=_+Math.imul(Q,ue)|0,h=h+Math.imul(Q,le)|0,h=h+Math.imul(ee,ue)|0,x=x+Math.imul(ee,le)|0,_=_+Math.imul(X,ce)|0,h=h+Math.imul(X,he)|0,h=h+Math.imul(J,ce)|0,x=x+Math.imul(J,he)|0,_=_+Math.imul(Z,de)|0,h=h+Math.imul(Z,pe)|0,h=h+Math.imul(Y,de)|0,x=x+Math.imul(Y,pe)|0,_=_+Math.imul(G,ve)|0,h=h+Math.imul(G,me)|0,h=h+Math.imul($,ve)|0,x=x+Math.imul($,me)|0,_=_+Math.imul(L,ge)|0,h=h+Math.imul(L,be)|0,h=h+Math.imul(K,ge)|0,x=x+Math.imul(K,be)|0,_=_+Math.imul(P,ye)|0,h=h+Math.imul(P,we)|0,h=h+Math.imul(F,ye)|0,x=x+Math.imul(F,we)|0,_=_+Math.imul(j,_e)|0,h=h+Math.imul(j,xe)|0,h=h+Math.imul(O,_e)|0,x=x+Math.imul(O,xe)|0;var $t=(g+_|0)+((h&8191)<<13)|0;g=(x+(h>>>13)|0)+($t>>>26)|0,$t&=67108863,_=Math.imul(ie,se),h=Math.imul(ie,fe),h=h+Math.imul(ne,se)|0,x=Math.imul(ne,fe),_=_+Math.imul(re,ue)|0,h=h+Math.imul(re,le)|0,h=h+Math.imul(te,ue)|0,x=x+Math.imul(te,le)|0,_=_+Math.imul(Q,ce)|0,h=h+Math.imul(Q,he)|0,h=h+Math.imul(ee,ce)|0,x=x+Math.imul(ee,he)|0,_=_+Math.imul(X,de)|0,h=h+Math.imul(X,pe)|0,h=h+Math.imul(J,de)|0,x=x+Math.imul(J,pe)|0,_=_+Math.imul(Z,ve)|0,h=h+Math.imul(Z,me)|0,h=h+Math.imul(Y,ve)|0,x=x+Math.imul(Y,me)|0,_=_+Math.imul(G,ge)|0,h=h+Math.imul(G,be)|0,h=h+Math.imul($,ge)|0,x=x+Math.imul($,be)|0,_=_+Math.imul(L,ye)|0,h=h+Math.imul(L,we)|0,h=h+Math.imul(K,ye)|0,x=x+Math.imul(K,we)|0,_=_+Math.imul(P,_e)|0,h=h+Math.imul(P,xe)|0,h=h+Math.imul(F,_e)|0,x=x+Math.imul(F,xe)|0,_=_+Math.imul(j,Me)|0,h=h+Math.imul(j,Ee)|0,h=h+Math.imul(O,Me)|0,x=x+Math.imul(O,Ee)|0;var Zt=(g+_|0)+((h&8191)<<13)|0;g=(x+(h>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,_=Math.imul(ae,se),h=Math.imul(ae,fe),h=h+Math.imul(oe,se)|0,x=Math.imul(oe,fe),_=_+Math.imul(ie,ue)|0,h=h+Math.imul(ie,le)|0,h=h+Math.imul(ne,ue)|0,x=x+Math.imul(ne,le)|0,_=_+Math.imul(re,ce)|0,h=h+Math.imul(re,he)|0,h=h+Math.imul(te,ce)|0,x=x+Math.imul(te,he)|0,_=_+Math.imul(Q,de)|0,h=h+Math.imul(Q,pe)|0,h=h+Math.imul(ee,de)|0,x=x+Math.imul(ee,pe)|0,_=_+Math.imul(X,ve)|0,h=h+Math.imul(X,me)|0,h=h+Math.imul(J,ve)|0,x=x+Math.imul(J,me)|0,_=_+Math.imul(Z,ge)|0,h=h+Math.imul(Z,be)|0,h=h+Math.imul(Y,ge)|0,x=x+Math.imul(Y,be)|0,_=_+Math.imul(G,ye)|0,h=h+Math.imul(G,we)|0,h=h+Math.imul($,ye)|0,x=x+Math.imul($,we)|0,_=_+Math.imul(L,_e)|0,h=h+Math.imul(L,xe)|0,h=h+Math.imul(K,_e)|0,x=x+Math.imul(K,xe)|0,_=_+Math.imul(P,Me)|0,h=h+Math.imul(P,Ee)|0,h=h+Math.imul(F,Me)|0,x=x+Math.imul(F,Ee)|0,_=_+Math.imul(j,He)|0,h=h+Math.imul(j,Ke)|0,h=h+Math.imul(O,He)|0,x=x+Math.imul(O,Ke)|0;var Yt=(g+_|0)+((h&8191)<<13)|0;g=(x+(h>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,_=Math.imul(ae,ue),h=Math.imul(ae,le),h=h+Math.imul(oe,ue)|0,x=Math.imul(oe,le),_=_+Math.imul(ie,ce)|0,h=h+Math.imul(ie,he)|0,h=h+Math.imul(ne,ce)|0,x=x+Math.imul(ne,he)|0,_=_+Math.imul(re,de)|0,h=h+Math.imul(re,pe)|0,h=h+Math.imul(te,de)|0,x=x+Math.imul(te,pe)|0,_=_+Math.imul(Q,ve)|0,h=h+Math.imul(Q,me)|0,h=h+Math.imul(ee,ve)|0,x=x+Math.imul(ee,me)|0,_=_+Math.imul(X,ge)|0,h=h+Math.imul(X,be)|0,h=h+Math.imul(J,ge)|0,x=x+Math.imul(J,be)|0,_=_+Math.imul(Z,ye)|0,h=h+Math.imul(Z,we)|0,h=h+Math.imul(Y,ye)|0,x=x+Math.imul(Y,we)|0,_=_+Math.imul(G,_e)|0,h=h+Math.imul(G,xe)|0,h=h+Math.imul($,_e)|0,x=x+Math.imul($,xe)|0,_=_+Math.imul(L,Me)|0,h=h+Math.imul(L,Ee)|0,h=h+Math.imul(K,Me)|0,x=x+Math.imul(K,Ee)|0,_=_+Math.imul(P,He)|0,h=h+Math.imul(P,Ke)|0,h=h+Math.imul(F,He)|0,x=x+Math.imul(F,Ke)|0;var Xt=(g+_|0)+((h&8191)<<13)|0;g=(x+(h>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,_=Math.imul(ae,ce),h=Math.imul(ae,he),h=h+Math.imul(oe,ce)|0,x=Math.imul(oe,he),_=_+Math.imul(ie,de)|0,h=h+Math.imul(ie,pe)|0,h=h+Math.imul(ne,de)|0,x=x+Math.imul(ne,pe)|0,_=_+Math.imul(re,ve)|0,h=h+Math.imul(re,me)|0,h=h+Math.imul(te,ve)|0,x=x+Math.imul(te,me)|0,_=_+Math.imul(Q,ge)|0,h=h+Math.imul(Q,be)|0,h=h+Math.imul(ee,ge)|0,x=x+Math.imul(ee,be)|0,_=_+Math.imul(X,ye)|0,h=h+Math.imul(X,we)|0,h=h+Math.imul(J,ye)|0,x=x+Math.imul(J,we)|0,_=_+Math.imul(Z,_e)|0,h=h+Math.imul(Z,xe)|0,h=h+Math.imul(Y,_e)|0,x=x+Math.imul(Y,xe)|0,_=_+Math.imul(G,Me)|0,h=h+Math.imul(G,Ee)|0,h=h+Math.imul($,Me)|0,x=x+Math.imul($,Ee)|0,_=_+Math.imul(L,He)|0,h=h+Math.imul(L,Ke)|0,h=h+Math.imul(K,He)|0,x=x+Math.imul(K,Ke)|0;var Jt=(g+_|0)+((h&8191)<<13)|0;g=(x+(h>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,_=Math.imul(ae,de),h=Math.imul(ae,pe),h=h+Math.imul(oe,de)|0,x=Math.imul(oe,pe),_=_+Math.imul(ie,ve)|0,h=h+Math.imul(ie,me)|0,h=h+Math.imul(ne,ve)|0,x=x+Math.imul(ne,me)|0,_=_+Math.imul(re,ge)|0,h=h+Math.imul(re,be)|0,h=h+Math.imul(te,ge)|0,x=x+Math.imul(te,be)|0,_=_+Math.imul(Q,ye)|0,h=h+Math.imul(Q,we)|0,h=h+Math.imul(ee,ye)|0,x=x+Math.imul(ee,we)|0,_=_+Math.imul(X,_e)|0,h=h+Math.imul(X,xe)|0,h=h+Math.imul(J,_e)|0,x=x+Math.imul(J,xe)|0,_=_+Math.imul(Z,Me)|0,h=h+Math.imul(Z,Ee)|0,h=h+Math.imul(Y,Me)|0,x=x+Math.imul(Y,Ee)|0,_=_+Math.imul(G,He)|0,h=h+Math.imul(G,Ke)|0,h=h+Math.imul($,He)|0,x=x+Math.imul($,Ke)|0;var Qt=(g+_|0)+((h&8191)<<13)|0;g=(x+(h>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,_=Math.imul(ae,ve),h=Math.imul(ae,me),h=h+Math.imul(oe,ve)|0,x=Math.imul(oe,me),_=_+Math.imul(ie,ge)|0,h=h+Math.imul(ie,be)|0,h=h+Math.imul(ne,ge)|0,x=x+Math.imul(ne,be)|0,_=_+Math.imul(re,ye)|0,h=h+Math.imul(re,we)|0,h=h+Math.imul(te,ye)|0,x=x+Math.imul(te,we)|0,_=_+Math.imul(Q,_e)|0,h=h+Math.imul(Q,xe)|0,h=h+Math.imul(ee,_e)|0,x=x+Math.imul(ee,xe)|0,_=_+Math.imul(X,Me)|0,h=h+Math.imul(X,Ee)|0,h=h+Math.imul(J,Me)|0,x=x+Math.imul(J,Ee)|0,_=_+Math.imul(Z,He)|0,h=h+Math.imul(Z,Ke)|0,h=h+Math.imul(Y,He)|0,x=x+Math.imul(Y,Ke)|0;var ei=(g+_|0)+((h&8191)<<13)|0;g=(x+(h>>>13)|0)+(ei>>>26)|0,ei&=67108863,_=Math.imul(ae,ge),h=Math.imul(ae,be),h=h+Math.imul(oe,ge)|0,x=Math.imul(oe,be),_=_+Math.imul(ie,ye)|0,h=h+Math.imul(ie,we)|0,h=h+Math.imul(ne,ye)|0,x=x+Math.imul(ne,we)|0,_=_+Math.imul(re,_e)|0,h=h+Math.imul(re,xe)|0,h=h+Math.imul(te,_e)|0,x=x+Math.imul(te,xe)|0,_=_+Math.imul(Q,Me)|0,h=h+Math.imul(Q,Ee)|0,h=h+Math.imul(ee,Me)|0,x=x+Math.imul(ee,Ee)|0,_=_+Math.imul(X,He)|0,h=h+Math.imul(X,Ke)|0,h=h+Math.imul(J,He)|0,x=x+Math.imul(J,Ke)|0;var ri=(g+_|0)+((h&8191)<<13)|0;g=(x+(h>>>13)|0)+(ri>>>26)|0,ri&=67108863,_=Math.imul(ae,ye),h=Math.imul(ae,we),h=h+Math.imul(oe,ye)|0,x=Math.imul(oe,we),_=_+Math.imul(ie,_e)|0,h=h+Math.imul(ie,xe)|0,h=h+Math.imul(ne,_e)|0,x=x+Math.imul(ne,xe)|0,_=_+Math.imul(re,Me)|0,h=h+Math.imul(re,Ee)|0,h=h+Math.imul(te,Me)|0,x=x+Math.imul(te,Ee)|0,_=_+Math.imul(Q,He)|0,h=h+Math.imul(Q,Ke)|0,h=h+Math.imul(ee,He)|0,x=x+Math.imul(ee,Ke)|0;var ti=(g+_|0)+((h&8191)<<13)|0;g=(x+(h>>>13)|0)+(ti>>>26)|0,ti&=67108863,_=Math.imul(ae,_e),h=Math.imul(ae,xe),h=h+Math.imul(oe,_e)|0,x=Math.imul(oe,xe),_=_+Math.imul(ie,Me)|0,h=h+Math.imul(ie,Ee)|0,h=h+Math.imul(ne,Me)|0,x=x+Math.imul(ne,Ee)|0,_=_+Math.imul(re,He)|0,h=h+Math.imul(re,Ke)|0,h=h+Math.imul(te,He)|0,x=x+Math.imul(te,Ke)|0;var V1=(g+_|0)+((h&8191)<<13)|0;g=(x+(h>>>13)|0)+(V1>>>26)|0,V1&=67108863,_=Math.imul(ae,Me),h=Math.imul(ae,Ee),h=h+Math.imul(oe,Me)|0,x=Math.imul(oe,Ee),_=_+Math.imul(ie,He)|0,h=h+Math.imul(ie,Ke)|0,h=h+Math.imul(ne,He)|0,x=x+Math.imul(ne,Ke)|0;var G1=(g+_|0)+((h&8191)<<13)|0;g=(x+(h>>>13)|0)+(G1>>>26)|0,G1&=67108863,_=Math.imul(ae,He),h=Math.imul(ae,Ke),h=h+Math.imul(oe,He)|0,x=Math.imul(oe,Ke);var $1=(g+_|0)+((h&8191)<<13)|0;return g=(x+(h>>>13)|0)+($1>>>26)|0,$1&=67108863,f[0]=Ft,f[1]=Lt,f[2]=Ht,f[3]=Kt,f[4]=Wt,f[5]=Vt,f[6]=Gt,f[7]=$t,f[8]=Zt,f[9]=Yt,f[10]=Xt,f[11]=Jt,f[12]=Qt,f[13]=ei,f[14]=ri,f[15]=ti,f[16]=V1,f[17]=G1,f[18]=$1,g!==0&&(f[19]=g,p.length++),p};Math.imul||(N=W);function H(d,o,u){u.negative=o.negative^d.negative,u.length=d.length+o.length;for(var p=0,v=0,c=0;c<u.length-1;c++){var f=v;v=0;for(var g=p&67108863,_=Math.min(c,o.length-1),h=Math.max(0,c-d.length+1);h<=_;h++){var x=c-h,C=d.words[x]|0,j=o.words[h]|0,O=C*j,U=O&67108863;f=f+(O/67108864|0)|0,U=U+g|0,g=U&67108863,f=f+(U>>>26)|0,v+=f>>>26,f&=67108863}u.words[c]=g,p=f,f=v}return p!==0?u.words[c]=p:u.length--,u._strip()}function ze(d,o,u){return H(d,o,u)}i.prototype.mulTo=function(o,u){var p,v=this.length+o.length;return this.length===10&&o.length===10?p=N(this,o,u):v<63?p=W(this,o,u):v<1024?p=H(this,o,u):p=ze(this,o,u),p};function Oe(d,o){this.x=d,this.y=o}Oe.prototype.makeRBT=function(o){for(var u=new Array(o),p=i.prototype._countBits(o)-1,v=0;v<o;v++)u[v]=this.revBin(v,p,o);return u},Oe.prototype.revBin=function(o,u,p){if(o===0||o===p-1)return o;for(var v=0,c=0;c<u;c++)v|=(o&1)<<u-c-1,o>>=1;return v},Oe.prototype.permute=function(o,u,p,v,c,f){for(var g=0;g<f;g++)v[g]=u[o[g]],c[g]=p[o[g]]},Oe.prototype.transform=function(o,u,p,v,c,f){this.permute(f,o,u,p,v,c);for(var g=1;g<c;g<<=1)for(var _=g<<1,h=Math.cos(2*Math.PI/_),x=Math.sin(2*Math.PI/_),C=0;C<c;C+=_)for(var j=h,O=x,U=0;U<g;U++){var P=p[C+U],F=v[C+U],qr=p[C+U+g],L=v[C+U+g],K=j*qr-O*L;L=j*L+O*qr,qr=K,p[C+U]=P+qr,v[C+U]=F+L,p[C+U+g]=P-qr,v[C+U+g]=F-L,U!==_&&(K=h*j-x*O,O=h*O+x*j,j=K)}},Oe.prototype.guessLen13b=function(o,u){var p=Math.max(u,o)|1,v=p&1,c=0;for(p=p/2|0;p;p=p>>>1)c++;return 1<<c+1+v},Oe.prototype.conjugate=function(o,u,p){if(!(p<=1))for(var v=0;v<p/2;v++){var c=o[v];o[v]=o[p-v-1],o[p-v-1]=c,c=u[v],u[v]=-u[p-v-1],u[p-v-1]=-c}},Oe.prototype.normalize13b=function(o,u){for(var p=0,v=0;v<u/2;v++){var c=Math.round(o[2*v+1]/u)*8192+Math.round(o[2*v]/u)+p;o[v]=c&67108863,c<67108864?p=0:p=c/67108864|0}return o},Oe.prototype.convert13b=function(o,u,p,v){for(var c=0,f=0;f<u;f++)c=c+(o[f]|0),p[2*f]=c&8191,c=c>>>13,p[2*f+1]=c&8191,c=c>>>13;for(f=2*u;f<v;++f)p[f]=0;t(c===0),t((c&-8192)===0)},Oe.prototype.stub=function(o){for(var u=new Array(o),p=0;p<o;p++)u[p]=0;return u},Oe.prototype.mulp=function(o,u,p){var v=2*this.guessLen13b(o.length,u.length),c=this.makeRBT(v),f=this.stub(v),g=new Array(v),_=new Array(v),h=new Array(v),x=new Array(v),C=new Array(v),j=new Array(v),O=p.words;O.length=v,this.convert13b(o.words,o.length,g,v),this.convert13b(u.words,u.length,x,v),this.transform(g,f,_,h,v,c),this.transform(x,f,C,j,v,c);for(var U=0;U<v;U++){var P=_[U]*C[U]-h[U]*j[U];h[U]=_[U]*j[U]+h[U]*C[U],_[U]=P}return this.conjugate(_,h,v),this.transform(_,h,O,f,v,c),this.conjugate(O,f,v),this.normalize13b(O,v),p.negative=o.negative^u.negative,p.length=o.length+u.length,p._strip()},i.prototype.mul=function(o){var u=new i(null);return u.words=new Array(this.length+o.length),this.mulTo(o,u)},i.prototype.mulf=function(o){var u=new i(null);return u.words=new Array(this.length+o.length),ze(this,o,u)},i.prototype.imul=function(o){return this.clone().mulTo(o,this)},i.prototype.imuln=function(o){var u=o<0;u&&(o=-o),t(typeof o=="number"),t(o<67108864);for(var p=0,v=0;v<this.length;v++){var c=(this.words[v]|0)*o,f=(c&67108863)+(p&67108863);p>>=26,p+=c/67108864|0,p+=f>>>26,this.words[v]=f&67108863}return p!==0&&(this.words[v]=p,this.length++),this.length=o===0?1:this.length,u?this.ineg():this},i.prototype.muln=function(o){return this.clone().imuln(o)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(o){var u=z(o);if(u.length===0)return new i(1);for(var p=this,v=0;v<u.length&&u[v]===0;v++,p=p.sqr());if(++v<u.length)for(var c=p.sqr();v<u.length;v++,c=c.sqr())u[v]!==0&&(p=p.mul(c));return p},i.prototype.iushln=function(o){t(typeof o=="number"&&o>=0);var u=o%26,p=(o-u)/26,v=67108863>>>26-u<<26-u,c;if(u!==0){var f=0;for(c=0;c<this.length;c++){var g=this.words[c]&v,_=(this.words[c]|0)-g<<u;this.words[c]=_|f,f=g>>>26-u}f&&(this.words[c]=f,this.length++)}if(p!==0){for(c=this.length-1;c>=0;c--)this.words[c+p]=this.words[c];for(c=0;c<p;c++)this.words[c]=0;this.length+=p}return this._strip()},i.prototype.ishln=function(o){return t(this.negative===0),this.iushln(o)},i.prototype.iushrn=function(o,u,p){t(typeof o=="number"&&o>=0);var v;u?v=(u-u%26)/26:v=0;var c=o%26,f=Math.min((o-c)/26,this.length),g=67108863^67108863>>>c<<c,_=p;if(v-=f,v=Math.max(0,v),_){for(var h=0;h<f;h++)_.words[h]=this.words[h];_.length=f}if(f!==0)if(this.length>f)for(this.length-=f,h=0;h<this.length;h++)this.words[h]=this.words[h+f];else this.words[0]=0,this.length=1;var x=0;for(h=this.length-1;h>=0&&(x!==0||h>=v);h--){var C=this.words[h]|0;this.words[h]=x<<26-c|C>>>c,x=C&g}return _&&x!==0&&(_.words[_.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(o,u,p){return t(this.negative===0),this.iushrn(o,u,p)},i.prototype.shln=function(o){return this.clone().ishln(o)},i.prototype.ushln=function(o){return this.clone().iushln(o)},i.prototype.shrn=function(o){return this.clone().ishrn(o)},i.prototype.ushrn=function(o){return this.clone().iushrn(o)},i.prototype.testn=function(o){t(typeof o=="number"&&o>=0);var u=o%26,p=(o-u)/26,v=1<<u;if(this.length<=p)return!1;var c=this.words[p];return!!(c&v)},i.prototype.imaskn=function(o){t(typeof o=="number"&&o>=0);var u=o%26,p=(o-u)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(u!==0&&p++,this.length=Math.min(p,this.length),u!==0){var v=67108863^67108863>>>u<<u;this.words[this.length-1]&=v}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.maskn=function(o){return this.clone().imaskn(o)},i.prototype.iaddn=function(o){return t(typeof o=="number"),t(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<=o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},i.prototype._iaddn=function(o){this.words[0]+=o;for(var u=0;u<this.length&&this.words[u]>=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},i.prototype.isubn=function(o){if(t(typeof o=="number"),t(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u<this.length&&this.words[u]<0;u++)this.words[u]+=67108864,this.words[u+1]-=1;return this._strip()},i.prototype.addn=function(o){return this.clone().iaddn(o)},i.prototype.subn=function(o){return this.clone().isubn(o)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(o,u,p){var v=o.length+p,c;this._expand(v);var f,g=0;for(c=0;c<o.length;c++){f=(this.words[c+p]|0)+g;var _=(o.words[c]|0)*u;f-=_&67108863,g=(f>>26)-(_/67108864|0),this.words[c+p]=f&67108863}for(;c<this.length-p;c++)f=(this.words[c+p]|0)+g,g=f>>26,this.words[c+p]=f&67108863;if(g===0)return this._strip();for(t(g===-1),g=0,c=0;c<this.length;c++)f=-(this.words[c]|0)+g,g=f>>26,this.words[c]=f&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(o,u){var p=this.length-o.length,v=this.clone(),c=o,f=c.words[c.length-1]|0,g=this._countBits(f);p=26-g,p!==0&&(c=c.ushln(p),v.iushln(p),f=c.words[c.length-1]|0);var _=v.length-c.length,h;if(u!=="mod"){h=new i(null),h.length=_+1,h.words=new Array(h.length);for(var x=0;x<h.length;x++)h.words[x]=0}var C=v.clone()._ishlnsubmul(c,1,_);C.negative===0&&(v=C,h&&(h.words[_]=1));for(var j=_-1;j>=0;j--){var O=(v.words[c.length+j]|0)*67108864+(v.words[c.length+j-1]|0);for(O=Math.min(O/f|0,67108863),v._ishlnsubmul(c,O,j);v.negative!==0;)O--,v.negative=0,v._ishlnsubmul(c,1,j),v.isZero()||(v.negative^=1);h&&(h.words[j]=O)}return h&&h._strip(),v._strip(),u!=="div"&&p!==0&&v.iushrn(p),{div:h||null,mod:v}},i.prototype.divmod=function(o,u,p){if(t(!o.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var v,c,f;return this.negative!==0&&o.negative===0?(f=this.neg().divmod(o,u),u!=="mod"&&(v=f.div.neg()),u!=="div"&&(c=f.mod.neg(),p&&c.negative!==0&&c.iadd(o)),{div:v,mod:c}):this.negative===0&&o.negative!==0?(f=this.divmod(o.neg(),u),u!=="mod"&&(v=f.div.neg()),{div:v,mod:f.mod}):(this.negative&o.negative)!==0?(f=this.neg().divmod(o.neg(),u),u!=="div"&&(c=f.mod.neg(),p&&c.negative!==0&&c.isub(o)),{div:f.div,mod:c}):o.length>this.length||this.cmp(o)<0?{div:new i(0),mod:this}:o.length===1?u==="div"?{div:this.divn(o.words[0]),mod:null}:u==="mod"?{div:null,mod:new i(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new i(this.modrn(o.words[0]))}:this._wordDiv(o,u)},i.prototype.div=function(o){return this.divmod(o,"div",!1).div},i.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},i.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},i.prototype.divRound=function(o){var u=this.divmod(o);if(u.mod.isZero())return u.div;var p=u.div.negative!==0?u.mod.isub(o):u.mod,v=o.ushrn(1),c=o.andln(1),f=p.cmp(v);return f<0||c===1&&f===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},i.prototype.modrn=function(o){var u=o<0;u&&(o=-o),t(o<=67108863);for(var p=(1<<26)%o,v=0,c=this.length-1;c>=0;c--)v=(p*v+(this.words[c]|0))%o;return u?-v:v},i.prototype.modn=function(o){return this.modrn(o)},i.prototype.idivn=function(o){var u=o<0;u&&(o=-o),t(o<=67108863);for(var p=0,v=this.length-1;v>=0;v--){var c=(this.words[v]|0)+p*67108864;this.words[v]=c/o|0,p=c%o}return this._strip(),u?this.ineg():this},i.prototype.divn=function(o){return this.clone().idivn(o)},i.prototype.egcd=function(o){t(o.negative===0),t(!o.isZero());var u=this,p=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var v=new i(1),c=new i(0),f=new i(0),g=new i(1),_=0;u.isEven()&&p.isEven();)u.iushrn(1),p.iushrn(1),++_;for(var h=p.clone(),x=u.clone();!u.isZero();){for(var C=0,j=1;(u.words[0]&j)===0&&C<26;++C,j<<=1);if(C>0)for(u.iushrn(C);C-- >0;)(v.isOdd()||c.isOdd())&&(v.iadd(h),c.isub(x)),v.iushrn(1),c.iushrn(1);for(var O=0,U=1;(p.words[0]&U)===0&&O<26;++O,U<<=1);if(O>0)for(p.iushrn(O);O-- >0;)(f.isOdd()||g.isOdd())&&(f.iadd(h),g.isub(x)),f.iushrn(1),g.iushrn(1);u.cmp(p)>=0?(u.isub(p),v.isub(f),c.isub(g)):(p.isub(u),f.isub(v),g.isub(c))}return{a:f,b:g,gcd:p.iushln(_)}},i.prototype._invmp=function(o){t(o.negative===0),t(!o.isZero());var u=this,p=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var v=new i(1),c=new i(0),f=p.clone();u.cmpn(1)>0&&p.cmpn(1)>0;){for(var g=0,_=1;(u.words[0]&_)===0&&g<26;++g,_<<=1);if(g>0)for(u.iushrn(g);g-- >0;)v.isOdd()&&v.iadd(f),v.iushrn(1);for(var h=0,x=1;(p.words[0]&x)===0&&h<26;++h,x<<=1);if(h>0)for(p.iushrn(h);h-- >0;)c.isOdd()&&c.iadd(f),c.iushrn(1);u.cmp(p)>=0?(u.isub(p),v.isub(c)):(p.isub(u),c.isub(v))}var C;return u.cmpn(1)===0?C=v:C=c,C.cmpn(0)<0&&C.iadd(o),C},i.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var u=this.clone(),p=o.clone();u.negative=0,p.negative=0;for(var v=0;u.isEven()&&p.isEven();v++)u.iushrn(1),p.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;p.isEven();)p.iushrn(1);var c=u.cmp(p);if(c<0){var f=u;u=p,p=f}else if(c===0||p.cmpn(1)===0)break;u.isub(p)}while(!0);return p.iushln(v)},i.prototype.invm=function(o){return this.egcd(o).a.umod(o)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(o){return this.words[0]&o},i.prototype.bincn=function(o){t(typeof o=="number");var u=o%26,p=(o-u)/26,v=1<<u;if(this.length<=p)return this._expand(p+1),this.words[p]|=v,this;for(var c=v,f=p;c!==0&&f<this.length;f++){var g=this.words[f]|0;g+=c,c=g>>>26,g&=67108863,this.words[f]=g}return c!==0&&(this.words[f]=c,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(o){var u=o<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this._strip();var p;if(this.length>1)p=1;else{u&&(o=-o),t(o<=67108863,"Number is too big");var v=this.words[0]|0;p=v===o?0:v<o?-1:1}return this.negative!==0?-p|0:p},i.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var u=this.ucmp(o);return this.negative!==0?-u|0:u},i.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var u=0,p=this.length-1;p>=0;p--){var v=this.words[p]|0,c=o.words[p]|0;if(v!==c){v<c?u=-1:v>c&&(u=1);break}}return u},i.prototype.gtn=function(o){return this.cmpn(o)===1},i.prototype.gt=function(o){return this.cmp(o)===1},i.prototype.gten=function(o){return this.cmpn(o)>=0},i.prototype.gte=function(o){return this.cmp(o)>=0},i.prototype.ltn=function(o){return this.cmpn(o)===-1},i.prototype.lt=function(o){return this.cmp(o)===-1},i.prototype.lten=function(o){return this.cmpn(o)<=0},i.prototype.lte=function(o){return this.cmp(o)<=0},i.prototype.eqn=function(o){return this.cmpn(o)===0},i.prototype.eq=function(o){return this.cmp(o)===0},i.red=function(o){return new l(o)},i.prototype.toRed=function(o){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},i.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(o){return this.red=o,this},i.prototype.forceRed=function(o){return t(!this.red,"Already a number in reduction context"),this._forceRed(o)},i.prototype.redAdd=function(o){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},i.prototype.redIAdd=function(o){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},i.prototype.redSub=function(o){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},i.prototype.redISub=function(o){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},i.prototype.redShl=function(o){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},i.prototype.redMul=function(o){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},i.prototype.redIMul=function(o){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},i.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(o){return t(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var ar={k256:null,p224:null,p192:null,p25519:null};function De(d,o){this.name=d,this.p=new i(o,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}De.prototype._tmp=function(){var o=new i(null);return o.words=new Array(Math.ceil(this.n/13)),o},De.prototype.ireduce=function(o){var u=o,p;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),p=u.bitLength();while(p>this.n);var v=p<this.n?-1:u.ucmp(this.p);return v===0?(u.words[0]=0,u.length=1):v>0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},De.prototype.split=function(o,u){o.iushrn(this.n,0,u)},De.prototype.imulK=function(o){return o.imul(this.k)};function We(){De.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(We,De),We.prototype.split=function(o,u){for(var p=4194303,v=Math.min(o.length,9),c=0;c<v;c++)u.words[c]=o.words[c];if(u.length=v,o.length<=9){o.words[0]=0,o.length=1;return}var f=o.words[9];for(u.words[u.length++]=f&p,c=10;c<o.length;c++){var g=o.words[c]|0;o.words[c-10]=(g&p)<<4|f>>>22,f=g}f>>>=22,o.words[c-10]=f,f===0&&o.length>10?o.length-=10:o.length-=9},We.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var u=0,p=0;p<o.length;p++){var v=o.words[p]|0;u+=v*977,o.words[p]=u&67108863,u=v*64+(u/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function Ae(){De.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(Ae,De);function Je(){De.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(Je,De);function B(){De.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(B,De),B.prototype.imulK=function(o){for(var u=0,p=0;p<o.length;p++){var v=(o.words[p]|0)*19+u,c=v&67108863;v>>>=26,o.words[p]=c,u=v}return u!==0&&(o.words[o.length++]=u),o},i._prime=function(o){if(ar[o])return ar[o];var u;if(o==="k256")u=new We;else if(o==="p224")u=new Ae;else if(o==="p192")u=new Je;else if(o==="p25519")u=new B;else throw new Error("Unknown prime "+o);return ar[o]=u,u};function l(d){if(typeof d=="string"){var o=i._prime(d);this.m=o.p,this.prime=o}else t(d.gtn(1),"modulus must be greater than 1"),this.m=d,this.prime=null}l.prototype._verify1=function(o){t(o.negative===0,"red works only with positives"),t(o.red,"red works only with red numbers")},l.prototype._verify2=function(o,u){t((o.negative|u.negative)===0,"red works only with positives"),t(o.red&&o.red===u.red,"red works only with red numbers")},l.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(E(o,o.umod(this.m)._forceRed(this)),o)},l.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},l.prototype.add=function(o,u){this._verify2(o,u);var p=o.add(u);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},l.prototype.iadd=function(o,u){this._verify2(o,u);var p=o.iadd(u);return p.cmp(this.m)>=0&&p.isub(this.m),p},l.prototype.sub=function(o,u){this._verify2(o,u);var p=o.sub(u);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},l.prototype.isub=function(o,u){this._verify2(o,u);var p=o.isub(u);return p.cmpn(0)<0&&p.iadd(this.m),p},l.prototype.shl=function(o,u){return this._verify1(o),this.imod(o.ushln(u))},l.prototype.imul=function(o,u){return this._verify2(o,u),this.imod(o.imul(u))},l.prototype.mul=function(o,u){return this._verify2(o,u),this.imod(o.mul(u))},l.prototype.isqr=function(o){return this.imul(o,o.clone())},l.prototype.sqr=function(o){return this.mul(o,o)},l.prototype.sqrt=function(o){if(o.isZero())return o.clone();var u=this.m.andln(3);if(t(u%2===1),u===3){var p=this.m.add(new i(1)).iushrn(2);return this.pow(o,p)}for(var v=this.m.subn(1),c=0;!v.isZero()&&v.andln(1)===0;)c++,v.iushrn(1);t(!v.isZero());var f=new i(1).toRed(this),g=f.redNeg(),_=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new i(2*h*h).toRed(this);this.pow(h,_).cmp(g)!==0;)h.redIAdd(g);for(var x=this.pow(h,v),C=this.pow(o,v.addn(1).iushrn(1)),j=this.pow(o,v),O=c;j.cmp(f)!==0;){for(var U=j,P=0;U.cmp(f)!==0;P++)U=U.redSqr();t(P<O);var F=this.pow(x,new i(1).iushln(O-P-1));C=C.redMul(F),x=F.redSqr(),j=j.redMul(x),O=P}return C},l.prototype.invm=function(o){var u=o._invmp(this.m);return u.negative!==0?(u.negative=0,this.imod(u).redNeg()):this.imod(u)},l.prototype.pow=function(o,u){if(u.isZero())return new i(1).toRed(this);if(u.cmpn(1)===0)return o.clone();var p=4,v=new Array(1<<p);v[0]=new i(1).toRed(this),v[1]=o;for(var c=2;c<v.length;c++)v[c]=this.mul(v[c-1],o);var f=v[0],g=0,_=0,h=u.bitLength()%26;for(h===0&&(h=26),c=u.length-1;c>=0;c--){for(var x=u.words[c],C=h-1;C>=0;C--){var j=x>>C&1;if(f!==v[0]&&(f=this.sqr(f)),j===0&&g===0){_=0;continue}g<<=1,g|=j,_++,!(_!==p&&(c!==0||C!==0))&&(f=this.mul(f,v[g]),_=0,g=0)}h=26}return f},l.prototype.convertTo=function(o){var u=o.umod(this.m);return u===o?u.clone():u},l.prototype.convertFrom=function(o){var u=o.clone();return u.red=null,u},i.mont=function(o){return new b(o)};function b(d){l.call(this,d),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}n(b,l),b.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},b.prototype.convertFrom=function(o){var u=this.imod(o.mul(this.rinv));return u.red=null,u},b.prototype.imul=function(o,u){if(o.isZero()||u.isZero())return o.words[0]=0,o.length=1,o;var p=o.imul(u),v=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=p.isub(v).iushrn(this.shift),f=c;return c.cmp(this.m)>=0?f=c.isub(this.m):c.cmpn(0)<0&&(f=c.iadd(this.m)),f._forceRed(this)},b.prototype.mul=function(o,u){if(o.isZero()||u.isZero())return new i(0)._forceRed(this);var p=o.mul(u),v=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=p.isub(v).iushrn(this.shift),f=c;return c.cmp(this.m)>=0?f=c.isub(this.m):c.cmpn(0)<0&&(f=c.iadd(this.m)),f._forceRed(this)},b.prototype.invm=function(o){var u=this.imod(o._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(typeof ts>"u"||ts,z8)});var is=A((MT,H8)=>{"use strict";y();var An=N8(),ME=fi(),EE=Se().Buffer;function F8(r){var e=r.modulus.byteLength(),t;do t=new An(ME(e));while(t.cmp(r.modulus)>=0||!t.umod(r.prime1)||!t.umod(r.prime2));return t}function SE(r){var e=F8(r),t=e.toRed(An.mont(r.modulus)).redPow(new An(r.publicExponent)).fromRed();return{blinder:t,unblinder:e.invm(r.modulus)}}function L8(r,e){var t=SE(e),n=e.modulus.byteLength(),i=new An(r).mul(t.blinder).umod(e.modulus),a=i.toRed(An.mont(e.prime1)),s=i.toRed(An.mont(e.prime2)),m=e.coefficient,w=e.prime1,E=e.prime2,q=a.redPow(e.exponent1).fromRed(),k=s.redPow(e.exponent2).fromRed(),R=q.isub(k).imul(m).umod(w).imul(E);return k.iadd(R).imul(t.unblinder).umod(e.modulus).toArrayLike(EE,"be",n)}L8.getr=F8;H8.exports=L8});var G8=A((ST,V8)=>{y();var BE=X6(),ns=fi(),AE=Ia(),K8=Q6(),W8=es(),as=zt(),qE=rs(),kE=is(),Lr=Se().Buffer;V8.exports=function(e,t,n){var i;e.padding?i=e.padding:n?i=1:i=4;var a=BE(e),s;if(i===4)s=RE(a,t);else if(i===1)s=IE(a,t,n);else if(i===3){if(s=new as(t),s.cmp(a.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return n?kE(s,a):qE(s,a)};function RE(r,e){var t=r.modulus.byteLength(),n=e.length,i=AE("sha1").update(Lr.alloc(0)).digest(),a=i.length,s=2*a;if(n>t-s-2)throw new Error("message too long");var m=Lr.alloc(t-n-s-2),w=t-a-1,E=ns(a),q=W8(Lr.concat([i,m,Lr.alloc(1,1),e],w),K8(E,w)),k=W8(E,K8(q,a));return new as(Lr.concat([Lr.alloc(1),k,q],t))}function IE(r,e,t){var n=e.length,i=r.modulus.byteLength();if(n>i-11)throw new Error("message too long");var a;return t?a=Lr.alloc(i-n-3,255):a=TE(i-n-3),new as(Lr.concat([Lr.from([0,t?1:2]),a,Lr.alloc(1),e],i))}function TE(r){for(var e=Lr.allocUnsafe(r),t=0,n=ns(r*2),i=0,a;t<r;)i===n.length&&(n=ns(r*2),i=0),a=n[i++],a&&(e[t++]=a);return e}});var J8=A((AT,X8)=>{y();var CE=X6(),$8=Q6(),Z8=es(),Y8=zt(),jE=is(),OE=Ia(),DE=rs(),Ka=Se().Buffer;X8.exports=function(e,t,n){var i;e.padding?i=e.padding:n?i=1:i=4;var a=CE(e),s=a.modulus.byteLength();if(t.length>s||new Y8(t).cmp(a.modulus)>=0)throw new Error("decryption error");var m;n?m=DE(new Y8(t),a):m=jE(t,a);var w=Ka.alloc(s-m.length);if(m=Ka.concat([w,m],s),i===4)return PE(a,m);if(i===1)return UE(a,m,n);if(i===3)return m;throw new Error("unknown padding")};function PE(r,e){var t=r.modulus.byteLength(),n=OE("sha1").update(Ka.alloc(0)).digest(),i=n.length;if(e[0]!==0)throw new Error("decryption error");var a=e.slice(1,i+1),s=e.slice(i+1),m=Z8(a,$8(s,i)),w=Z8(s,$8(m,t-i-1));if(zE(n,w.slice(0,i)))throw new Error("decryption error");for(var E=i;w[E]===0;)E++;if(w[E++]!==1)throw new Error("decryption error");return w.slice(E)}function UE(r,e,t){for(var n=e.slice(0,2),i=2,a=0;e[i++]!==0;)if(i>=e.length){a++;break}var s=e.slice(2,i-1);if((n.toString("hex")!=="0002"&&!t||n.toString("hex")!=="0001"&&t)&&a++,s.length<8&&a++,a)throw new Error("decryption error");return e.slice(i)}function zE(r,e){r=Ka.from(r),e=Ka.from(e);var t=0,n=r.length;r.length!==e.length&&(t++,n=Math.min(r.length,e.length));for(var i=-1;++i<n;)t+=r[i]^e[i];return t}});var Q8=A(ji=>{y();ji.publicEncrypt=G8();ji.privateDecrypt=J8();ji.privateEncrypt=function(e,t){return ji.publicEncrypt(e,t,!0)};ji.publicDecrypt=function(e,t){return ji.privateDecrypt(e,t,!0)}});var u3=A(Wa=>{"use strict";y();function e3(){throw new Error(`secure random number generation not supported by this browser
|