UNPKG

@metaspacecy/information-sdk

Version:
1 lines 454 kB
"use strict";var metaspacecysdk=(()=>{var $d=Object.create;var jo=Object.defineProperty;var eh=Object.getOwnPropertyDescriptor;var th=Object.getOwnPropertyNames;var rh=Object.getPrototypeOf,nh=Object.prototype.hasOwnProperty;var lt=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),On=(r,e)=>{for(var t in e)jo(r,t,{get:e[t],enumerable:!0})},R0=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of th(e))!nh.call(r,i)&&i!==t&&jo(r,i,{get:()=>e[i],enumerable:!(n=eh(e,i))||n.enumerable});return r};var Br=(r,e,t)=>(t=r!=null?$d(rh(r)):{},R0(e||!r||!r.__esModule?jo(t,"default",{value:r,enumerable:!0}):t,r)),ih=r=>R0(jo({},"__esModule",{value:!0}),r);var N0=lt(()=>{});var Oa=lt((C0,Ba)=>{(function(r,e){"use strict";function t(T,f){if(!T)throw new Error(f||"Assertion failed")}function n(T,f){T.super_=f;var d=function(){};d.prototype=f.prototype,T.prototype=new d,T.prototype.constructor=T}function i(T,f,d){if(i.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&&((f==="le"||f==="be")&&(d=f,f=10),this._init(T||0,f||10,d||"be"))}typeof r=="object"?r.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?o=window.Buffer:o=N0().Buffer}catch(T){}i.isBN=function(f){return f instanceof i?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===i.wordSize&&Array.isArray(f.words)},i.max=function(f,d){return f.cmp(d)>0?f:d},i.min=function(f,d){return f.cmp(d)<0?f:d},i.prototype._init=function(f,d,b){if(typeof f=="number")return this._initNumber(f,d,b);if(typeof f=="object")return this._initArray(f,d,b);d==="hex"&&(d=16),t(d===(d|0)&&d>=2&&d<=36),f=f.toString().replace(/\s+/g,"");var w=0;f[0]==="-"&&(w++,this.negative=1),w<f.length&&(d===16?this._parseHex(f,w,b):(this._parseBase(f,d,w),b==="le"&&this._initArray(this.toArray(),d,b)))},i.prototype._initNumber=function(f,d,b){f<0&&(this.negative=1,f=-f),f<67108864?(this.words=[f&67108863],this.length=1):f<4503599627370496?(this.words=[f&67108863,f/67108864&67108863],this.length=2):(t(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),b==="le"&&this._initArray(this.toArray(),d,b)},i.prototype._initArray=function(f,d,b){if(t(typeof f.length=="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=new Array(this.length);for(var w=0;w<this.length;w++)this.words[w]=0;var E,m,A=0;if(b==="be")for(w=f.length-1,E=0;w>=0;w-=3)m=f[w]|f[w-1]<<8|f[w-2]<<16,this.words[E]|=m<<A&67108863,this.words[E+1]=m>>>26-A&67108863,A+=24,A>=26&&(A-=26,E++);else if(b==="le")for(w=0,E=0;w<f.length;w+=3)m=f[w]|f[w+1]<<8|f[w+2]<<16,this.words[E]|=m<<A&67108863,this.words[E+1]=m>>>26-A&67108863,A+=24,A>=26&&(A-=26,E++);return this._strip()};function s(T,f){var d=T.charCodeAt(f);if(d>=48&&d<=57)return d-48;if(d>=65&&d<=70)return d-55;if(d>=97&&d<=102)return d-87;t(!1,"Invalid character in "+T)}function a(T,f,d){var b=s(T,d);return d-1>=f&&(b|=s(T,d-1)<<4),b}i.prototype._parseHex=function(f,d,b){this.length=Math.ceil((f.length-d)/6),this.words=new Array(this.length);for(var w=0;w<this.length;w++)this.words[w]=0;var E=0,m=0,A;if(b==="be")for(w=f.length-1;w>=d;w-=2)A=a(f,d,w)<<E,this.words[m]|=A&67108863,E>=18?(E-=18,m+=1,this.words[m]|=A>>>26):E+=8;else{var y=f.length-d;for(w=y%2===0?d+1:d;w<f.length;w+=2)A=a(f,d,w)<<E,this.words[m]|=A&67108863,E>=18?(E-=18,m+=1,this.words[m]|=A>>>26):E+=8}this._strip()};function u(T,f,d,b){for(var w=0,E=0,m=Math.min(T.length,d),A=f;A<m;A++){var y=T.charCodeAt(A)-48;w*=b,y>=49?E=y-49+10:y>=17?E=y-17+10:E=y,t(y>=0&&E<b,"Invalid character"),w+=E}return w}i.prototype._parseBase=function(f,d,b){this.words=[0],this.length=1;for(var w=0,E=1;E<=67108863;E*=d)w++;w--,E=E/d|0;for(var m=f.length-b,A=m%w,y=Math.min(m,m-A)+b,c=0,x=b;x<y;x+=w)c=u(f,x,x+w,d),this.imuln(E),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(A!==0){var D=1;for(c=u(f,x,f.length,d),x=0;x<A;x++)D*=d;this.imuln(D),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},i.prototype.copy=function(f){f.words=new Array(this.length);for(var d=0;d<this.length;d++)f.words[d]=this.words[d];f.length=this.length,f.negative=this.negative,f.red=this.red};function l(T,f){T.words=f.words,T.length=f.length,T.negative=f.negative,T.red=f.red}if(i.prototype._move=function(f){l(f,this)},i.prototype.clone=function(){var f=new i(null);return this.copy(f),f},i.prototype._expand=function(f){for(;this.length<f;)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!="undefined"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(T){i.prototype.inspect=h}else i.prototype.inspect=h;function h(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var g=["","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"],k=[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],_=[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(f,d){f=f||10,d=d|0||1;var b;if(f===16||f==="hex"){b="";for(var w=0,E=0,m=0;m<this.length;m++){var A=this.words[m],y=((A<<w|E)&16777215).toString(16);E=A>>>24-w&16777215,w+=2,w>=26&&(w-=26,m--),E!==0||m!==this.length-1?b=g[6-y.length]+y+b:b=y+b}for(E!==0&&(b=E.toString(16)+b);b.length%d!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}if(f===(f|0)&&f>=2&&f<=36){var c=k[f],x=_[f];b="";var D=this.clone();for(D.negative=0;!D.isZero();){var p=D.modrn(x).toString(f);D=D.idivn(x),D.isZero()?b=p+b:b=g[c-p.length]+p+b}for(this.isZero()&&(b="0"+b);b.length%d!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}t(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(f,d){return this.toArrayLike(o,f,d)}),i.prototype.toArray=function(f,d){return this.toArrayLike(Array,f,d)};var v=function(f,d){return f.allocUnsafe?f.allocUnsafe(d):new f(d)};i.prototype.toArrayLike=function(f,d,b){this._strip();var w=this.byteLength(),E=b||Math.max(1,w);t(w<=E,"byte array longer than desired length"),t(E>0,"Requested array length <= 0");var m=v(f,E),A=d==="le"?"LE":"BE";return this["_toArrayLike"+A](m,w),m},i.prototype._toArrayLikeLE=function(f,d){for(var b=0,w=0,E=0,m=0;E<this.length;E++){var A=this.words[E]<<m|w;f[b++]=A&255,b<f.length&&(f[b++]=A>>8&255),b<f.length&&(f[b++]=A>>16&255),m===6?(b<f.length&&(f[b++]=A>>24&255),w=0,m=0):(w=A>>>24,m+=2)}if(b<f.length)for(f[b++]=w;b<f.length;)f[b++]=0},i.prototype._toArrayLikeBE=function(f,d){for(var b=f.length-1,w=0,E=0,m=0;E<this.length;E++){var A=this.words[E]<<m|w;f[b--]=A&255,b>=0&&(f[b--]=A>>8&255),b>=0&&(f[b--]=A>>16&255),m===6?(b>=0&&(f[b--]=A>>24&255),w=0,m=0):(w=A>>>24,m+=2)}if(b>=0)for(f[b--]=w;b>=0;)f[b--]=0},Math.clz32?i.prototype._countBits=function(f){return 32-Math.clz32(f)}:i.prototype._countBits=function(f){var d=f,b=0;return d>=4096&&(b+=13,d>>>=13),d>=64&&(b+=7,d>>>=7),d>=8&&(b+=4,d>>>=4),d>=2&&(b+=2,d>>>=2),b+d},i.prototype._zeroBits=function(f){if(f===0)return 26;var d=f,b=0;return(d&8191)===0&&(b+=13,d>>>=13),(d&127)===0&&(b+=7,d>>>=7),(d&15)===0&&(b+=4,d>>>=4),(d&3)===0&&(b+=2,d>>>=2),(d&1)===0&&b++,b},i.prototype.bitLength=function(){var f=this.words[this.length-1],d=this._countBits(f);return(this.length-1)*26+d};function P(T){for(var f=new Array(T.bitLength()),d=0;d<f.length;d++){var b=d/26|0,w=d%26;f[d]=T.words[b]>>>w&1}return f}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,d=0;d<this.length;d++){var b=this._zeroBits(this.words[d]);if(f+=b,b!==26)break}return f},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},i.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).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(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var d=0;d<f.length;d++)this.words[d]=this.words[d]|f.words[d];return this._strip()},i.prototype.ior=function(f){return t((this.negative|f.negative)===0),this.iuor(f)},i.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},i.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},i.prototype.iuand=function(f){var d;this.length>f.length?d=f:d=this;for(var b=0;b<d.length;b++)this.words[b]=this.words[b]&f.words[b];return this.length=d.length,this._strip()},i.prototype.iand=function(f){return t((this.negative|f.negative)===0),this.iuand(f)},i.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},i.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},i.prototype.iuxor=function(f){var d,b;this.length>f.length?(d=this,b=f):(d=f,b=this);for(var w=0;w<b.length;w++)this.words[w]=d.words[w]^b.words[w];if(this!==d)for(;w<d.length;w++)this.words[w]=d.words[w];return this.length=d.length,this._strip()},i.prototype.ixor=function(f){return t((this.negative|f.negative)===0),this.iuxor(f)},i.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},i.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},i.prototype.inotn=function(f){t(typeof f=="number"&&f>=0);var d=Math.ceil(f/26)|0,b=f%26;this._expand(d),b>0&&d--;for(var w=0;w<d;w++)this.words[w]=~this.words[w]&67108863;return b>0&&(this.words[w]=~this.words[w]&67108863>>26-b),this._strip()},i.prototype.notn=function(f){return this.clone().inotn(f)},i.prototype.setn=function(f,d){t(typeof f=="number"&&f>=0);var b=f/26|0,w=f%26;return this._expand(b+1),d?this.words[b]=this.words[b]|1<<w:this.words[b]=this.words[b]&~(1<<w),this._strip()},i.prototype.iadd=function(f){var d;if(this.negative!==0&&f.negative===0)return this.negative=0,d=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,d=this.isub(f),f.negative=1,d._normSign();var b,w;this.length>f.length?(b=this,w=f):(b=f,w=this);for(var E=0,m=0;m<w.length;m++)d=(b.words[m]|0)+(w.words[m]|0)+E,this.words[m]=d&67108863,E=d>>>26;for(;E!==0&&m<b.length;m++)d=(b.words[m]|0)+E,this.words[m]=d&67108863,E=d>>>26;if(this.length=b.length,E!==0)this.words[this.length]=E,this.length++;else if(b!==this)for(;m<b.length;m++)this.words[m]=b.words[m];return this},i.prototype.add=function(f){var d;return f.negative!==0&&this.negative===0?(f.negative=0,d=this.sub(f),f.negative^=1,d):f.negative===0&&this.negative!==0?(this.negative=0,d=f.sub(this),this.negative=1,d):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},i.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var d=this.iadd(f);return f.negative=1,d._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var b=this.cmp(f);if(b===0)return this.negative=0,this.length=1,this.words[0]=0,this;var w,E;b>0?(w=this,E=f):(w=f,E=this);for(var m=0,A=0;A<E.length;A++)d=(w.words[A]|0)-(E.words[A]|0)+m,m=d>>26,this.words[A]=d&67108863;for(;m!==0&&A<w.length;A++)d=(w.words[A]|0)+m,m=d>>26,this.words[A]=d&67108863;if(m===0&&A<w.length&&w!==this)for(;A<w.length;A++)this.words[A]=w.words[A];return this.length=Math.max(this.length,A),w!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(f){return this.clone().isub(f)};function I(T,f,d){d.negative=f.negative^T.negative;var b=T.length+f.length|0;d.length=b,b=b-1|0;var w=T.words[0]|0,E=f.words[0]|0,m=w*E,A=m&67108863,y=m/67108864|0;d.words[0]=A;for(var c=1;c<b;c++){for(var x=y>>>26,D=y&67108863,p=Math.min(c,f.length-1),R=Math.max(0,c-T.length+1);R<=p;R++){var N=c-R|0;w=T.words[N]|0,E=f.words[R]|0,m=w*E+D,x+=m/67108864|0,D=m&67108863}d.words[c]=D|0,y=x|0}return y!==0?d.words[c]=y|0:d.length--,d._strip()}var M=function(f,d,b){var w=f.words,E=d.words,m=b.words,A=0,y,c,x,D=w[0]|0,p=D&8191,R=D>>>13,N=w[1]|0,O=N&8191,z=N>>>13,Y=w[2]|0,J=Y&8191,j=Y>>>13,rt=w[3]|0,Q=rt&8191,re=rt>>>13,yn=w[4]|0,Ee=yn&8191,_e=yn>>>13,vn=w[5]|0,Se=vn&8191,Te=vn>>>13,wn=w[6]|0,ke=wn&8191,Pe=wn>>>13,An=w[7]|0,Re=An&8191,Ne=An>>>13,En=w[8]|0,Ce=En&8191,Me=En>>>13,_n=w[9]|0,Ie=_n&8191,Be=_n>>>13,Sn=E[0]|0,Oe=Sn&8191,Fe=Sn>>>13,Tn=E[1]|0,De=Tn&8191,Le=Tn>>>13,kn=E[2]|0,Ue=kn&8191,He=kn>>>13,Pn=E[3]|0,qe=Pn&8191,ze=Pn>>>13,Rn=E[4]|0,Ge=Rn&8191,Ke=Rn>>>13,Nn=E[5]|0,je=Nn&8191,Je=Nn>>>13,Cn=E[6]|0,Ve=Cn&8191,We=Cn>>>13,Mn=E[7]|0,Qe=Mn&8191,Ye=Mn>>>13,In=E[8]|0,Xe=In&8191,Ze=In>>>13,Bn=E[9]|0,$e=Bn&8191,et=Bn>>>13;b.negative=f.negative^d.negative,b.length=19,y=Math.imul(p,Oe),c=Math.imul(p,Fe),c=c+Math.imul(R,Oe)|0,x=Math.imul(R,Fe);var $r=(A+y|0)+((c&8191)<<13)|0;A=(x+(c>>>13)|0)+($r>>>26)|0,$r&=67108863,y=Math.imul(O,Oe),c=Math.imul(O,Fe),c=c+Math.imul(z,Oe)|0,x=Math.imul(z,Fe),y=y+Math.imul(p,De)|0,c=c+Math.imul(p,Le)|0,c=c+Math.imul(R,De)|0,x=x+Math.imul(R,Le)|0;var en=(A+y|0)+((c&8191)<<13)|0;A=(x+(c>>>13)|0)+(en>>>26)|0,en&=67108863,y=Math.imul(J,Oe),c=Math.imul(J,Fe),c=c+Math.imul(j,Oe)|0,x=Math.imul(j,Fe),y=y+Math.imul(O,De)|0,c=c+Math.imul(O,Le)|0,c=c+Math.imul(z,De)|0,x=x+Math.imul(z,Le)|0,y=y+Math.imul(p,Ue)|0,c=c+Math.imul(p,He)|0,c=c+Math.imul(R,Ue)|0,x=x+Math.imul(R,He)|0;var tn=(A+y|0)+((c&8191)<<13)|0;A=(x+(c>>>13)|0)+(tn>>>26)|0,tn&=67108863,y=Math.imul(Q,Oe),c=Math.imul(Q,Fe),c=c+Math.imul(re,Oe)|0,x=Math.imul(re,Fe),y=y+Math.imul(J,De)|0,c=c+Math.imul(J,Le)|0,c=c+Math.imul(j,De)|0,x=x+Math.imul(j,Le)|0,y=y+Math.imul(O,Ue)|0,c=c+Math.imul(O,He)|0,c=c+Math.imul(z,Ue)|0,x=x+Math.imul(z,He)|0,y=y+Math.imul(p,qe)|0,c=c+Math.imul(p,ze)|0,c=c+Math.imul(R,qe)|0,x=x+Math.imul(R,ze)|0;var rn=(A+y|0)+((c&8191)<<13)|0;A=(x+(c>>>13)|0)+(rn>>>26)|0,rn&=67108863,y=Math.imul(Ee,Oe),c=Math.imul(Ee,Fe),c=c+Math.imul(_e,Oe)|0,x=Math.imul(_e,Fe),y=y+Math.imul(Q,De)|0,c=c+Math.imul(Q,Le)|0,c=c+Math.imul(re,De)|0,x=x+Math.imul(re,Le)|0,y=y+Math.imul(J,Ue)|0,c=c+Math.imul(J,He)|0,c=c+Math.imul(j,Ue)|0,x=x+Math.imul(j,He)|0,y=y+Math.imul(O,qe)|0,c=c+Math.imul(O,ze)|0,c=c+Math.imul(z,qe)|0,x=x+Math.imul(z,ze)|0,y=y+Math.imul(p,Ge)|0,c=c+Math.imul(p,Ke)|0,c=c+Math.imul(R,Ge)|0,x=x+Math.imul(R,Ke)|0;var nn=(A+y|0)+((c&8191)<<13)|0;A=(x+(c>>>13)|0)+(nn>>>26)|0,nn&=67108863,y=Math.imul(Se,Oe),c=Math.imul(Se,Fe),c=c+Math.imul(Te,Oe)|0,x=Math.imul(Te,Fe),y=y+Math.imul(Ee,De)|0,c=c+Math.imul(Ee,Le)|0,c=c+Math.imul(_e,De)|0,x=x+Math.imul(_e,Le)|0,y=y+Math.imul(Q,Ue)|0,c=c+Math.imul(Q,He)|0,c=c+Math.imul(re,Ue)|0,x=x+Math.imul(re,He)|0,y=y+Math.imul(J,qe)|0,c=c+Math.imul(J,ze)|0,c=c+Math.imul(j,qe)|0,x=x+Math.imul(j,ze)|0,y=y+Math.imul(O,Ge)|0,c=c+Math.imul(O,Ke)|0,c=c+Math.imul(z,Ge)|0,x=x+Math.imul(z,Ke)|0,y=y+Math.imul(p,je)|0,c=c+Math.imul(p,Je)|0,c=c+Math.imul(R,je)|0,x=x+Math.imul(R,Je)|0;var va=(A+y|0)+((c&8191)<<13)|0;A=(x+(c>>>13)|0)+(va>>>26)|0,va&=67108863,y=Math.imul(ke,Oe),c=Math.imul(ke,Fe),c=c+Math.imul(Pe,Oe)|0,x=Math.imul(Pe,Fe),y=y+Math.imul(Se,De)|0,c=c+Math.imul(Se,Le)|0,c=c+Math.imul(Te,De)|0,x=x+Math.imul(Te,Le)|0,y=y+Math.imul(Ee,Ue)|0,c=c+Math.imul(Ee,He)|0,c=c+Math.imul(_e,Ue)|0,x=x+Math.imul(_e,He)|0,y=y+Math.imul(Q,qe)|0,c=c+Math.imul(Q,ze)|0,c=c+Math.imul(re,qe)|0,x=x+Math.imul(re,ze)|0,y=y+Math.imul(J,Ge)|0,c=c+Math.imul(J,Ke)|0,c=c+Math.imul(j,Ge)|0,x=x+Math.imul(j,Ke)|0,y=y+Math.imul(O,je)|0,c=c+Math.imul(O,Je)|0,c=c+Math.imul(z,je)|0,x=x+Math.imul(z,Je)|0,y=y+Math.imul(p,Ve)|0,c=c+Math.imul(p,We)|0,c=c+Math.imul(R,Ve)|0,x=x+Math.imul(R,We)|0;var wa=(A+y|0)+((c&8191)<<13)|0;A=(x+(c>>>13)|0)+(wa>>>26)|0,wa&=67108863,y=Math.imul(Re,Oe),c=Math.imul(Re,Fe),c=c+Math.imul(Ne,Oe)|0,x=Math.imul(Ne,Fe),y=y+Math.imul(ke,De)|0,c=c+Math.imul(ke,Le)|0,c=c+Math.imul(Pe,De)|0,x=x+Math.imul(Pe,Le)|0,y=y+Math.imul(Se,Ue)|0,c=c+Math.imul(Se,He)|0,c=c+Math.imul(Te,Ue)|0,x=x+Math.imul(Te,He)|0,y=y+Math.imul(Ee,qe)|0,c=c+Math.imul(Ee,ze)|0,c=c+Math.imul(_e,qe)|0,x=x+Math.imul(_e,ze)|0,y=y+Math.imul(Q,Ge)|0,c=c+Math.imul(Q,Ke)|0,c=c+Math.imul(re,Ge)|0,x=x+Math.imul(re,Ke)|0,y=y+Math.imul(J,je)|0,c=c+Math.imul(J,Je)|0,c=c+Math.imul(j,je)|0,x=x+Math.imul(j,Je)|0,y=y+Math.imul(O,Ve)|0,c=c+Math.imul(O,We)|0,c=c+Math.imul(z,Ve)|0,x=x+Math.imul(z,We)|0,y=y+Math.imul(p,Qe)|0,c=c+Math.imul(p,Ye)|0,c=c+Math.imul(R,Qe)|0,x=x+Math.imul(R,Ye)|0;var Aa=(A+y|0)+((c&8191)<<13)|0;A=(x+(c>>>13)|0)+(Aa>>>26)|0,Aa&=67108863,y=Math.imul(Ce,Oe),c=Math.imul(Ce,Fe),c=c+Math.imul(Me,Oe)|0,x=Math.imul(Me,Fe),y=y+Math.imul(Re,De)|0,c=c+Math.imul(Re,Le)|0,c=c+Math.imul(Ne,De)|0,x=x+Math.imul(Ne,Le)|0,y=y+Math.imul(ke,Ue)|0,c=c+Math.imul(ke,He)|0,c=c+Math.imul(Pe,Ue)|0,x=x+Math.imul(Pe,He)|0,y=y+Math.imul(Se,qe)|0,c=c+Math.imul(Se,ze)|0,c=c+Math.imul(Te,qe)|0,x=x+Math.imul(Te,ze)|0,y=y+Math.imul(Ee,Ge)|0,c=c+Math.imul(Ee,Ke)|0,c=c+Math.imul(_e,Ge)|0,x=x+Math.imul(_e,Ke)|0,y=y+Math.imul(Q,je)|0,c=c+Math.imul(Q,Je)|0,c=c+Math.imul(re,je)|0,x=x+Math.imul(re,Je)|0,y=y+Math.imul(J,Ve)|0,c=c+Math.imul(J,We)|0,c=c+Math.imul(j,Ve)|0,x=x+Math.imul(j,We)|0,y=y+Math.imul(O,Qe)|0,c=c+Math.imul(O,Ye)|0,c=c+Math.imul(z,Qe)|0,x=x+Math.imul(z,Ye)|0,y=y+Math.imul(p,Xe)|0,c=c+Math.imul(p,Ze)|0,c=c+Math.imul(R,Xe)|0,x=x+Math.imul(R,Ze)|0;var Ea=(A+y|0)+((c&8191)<<13)|0;A=(x+(c>>>13)|0)+(Ea>>>26)|0,Ea&=67108863,y=Math.imul(Ie,Oe),c=Math.imul(Ie,Fe),c=c+Math.imul(Be,Oe)|0,x=Math.imul(Be,Fe),y=y+Math.imul(Ce,De)|0,c=c+Math.imul(Ce,Le)|0,c=c+Math.imul(Me,De)|0,x=x+Math.imul(Me,Le)|0,y=y+Math.imul(Re,Ue)|0,c=c+Math.imul(Re,He)|0,c=c+Math.imul(Ne,Ue)|0,x=x+Math.imul(Ne,He)|0,y=y+Math.imul(ke,qe)|0,c=c+Math.imul(ke,ze)|0,c=c+Math.imul(Pe,qe)|0,x=x+Math.imul(Pe,ze)|0,y=y+Math.imul(Se,Ge)|0,c=c+Math.imul(Se,Ke)|0,c=c+Math.imul(Te,Ge)|0,x=x+Math.imul(Te,Ke)|0,y=y+Math.imul(Ee,je)|0,c=c+Math.imul(Ee,Je)|0,c=c+Math.imul(_e,je)|0,x=x+Math.imul(_e,Je)|0,y=y+Math.imul(Q,Ve)|0,c=c+Math.imul(Q,We)|0,c=c+Math.imul(re,Ve)|0,x=x+Math.imul(re,We)|0,y=y+Math.imul(J,Qe)|0,c=c+Math.imul(J,Ye)|0,c=c+Math.imul(j,Qe)|0,x=x+Math.imul(j,Ye)|0,y=y+Math.imul(O,Xe)|0,c=c+Math.imul(O,Ze)|0,c=c+Math.imul(z,Xe)|0,x=x+Math.imul(z,Ze)|0,y=y+Math.imul(p,$e)|0,c=c+Math.imul(p,et)|0,c=c+Math.imul(R,$e)|0,x=x+Math.imul(R,et)|0;var _a=(A+y|0)+((c&8191)<<13)|0;A=(x+(c>>>13)|0)+(_a>>>26)|0,_a&=67108863,y=Math.imul(Ie,De),c=Math.imul(Ie,Le),c=c+Math.imul(Be,De)|0,x=Math.imul(Be,Le),y=y+Math.imul(Ce,Ue)|0,c=c+Math.imul(Ce,He)|0,c=c+Math.imul(Me,Ue)|0,x=x+Math.imul(Me,He)|0,y=y+Math.imul(Re,qe)|0,c=c+Math.imul(Re,ze)|0,c=c+Math.imul(Ne,qe)|0,x=x+Math.imul(Ne,ze)|0,y=y+Math.imul(ke,Ge)|0,c=c+Math.imul(ke,Ke)|0,c=c+Math.imul(Pe,Ge)|0,x=x+Math.imul(Pe,Ke)|0,y=y+Math.imul(Se,je)|0,c=c+Math.imul(Se,Je)|0,c=c+Math.imul(Te,je)|0,x=x+Math.imul(Te,Je)|0,y=y+Math.imul(Ee,Ve)|0,c=c+Math.imul(Ee,We)|0,c=c+Math.imul(_e,Ve)|0,x=x+Math.imul(_e,We)|0,y=y+Math.imul(Q,Qe)|0,c=c+Math.imul(Q,Ye)|0,c=c+Math.imul(re,Qe)|0,x=x+Math.imul(re,Ye)|0,y=y+Math.imul(J,Xe)|0,c=c+Math.imul(J,Ze)|0,c=c+Math.imul(j,Xe)|0,x=x+Math.imul(j,Ze)|0,y=y+Math.imul(O,$e)|0,c=c+Math.imul(O,et)|0,c=c+Math.imul(z,$e)|0,x=x+Math.imul(z,et)|0;var Sa=(A+y|0)+((c&8191)<<13)|0;A=(x+(c>>>13)|0)+(Sa>>>26)|0,Sa&=67108863,y=Math.imul(Ie,Ue),c=Math.imul(Ie,He),c=c+Math.imul(Be,Ue)|0,x=Math.imul(Be,He),y=y+Math.imul(Ce,qe)|0,c=c+Math.imul(Ce,ze)|0,c=c+Math.imul(Me,qe)|0,x=x+Math.imul(Me,ze)|0,y=y+Math.imul(Re,Ge)|0,c=c+Math.imul(Re,Ke)|0,c=c+Math.imul(Ne,Ge)|0,x=x+Math.imul(Ne,Ke)|0,y=y+Math.imul(ke,je)|0,c=c+Math.imul(ke,Je)|0,c=c+Math.imul(Pe,je)|0,x=x+Math.imul(Pe,Je)|0,y=y+Math.imul(Se,Ve)|0,c=c+Math.imul(Se,We)|0,c=c+Math.imul(Te,Ve)|0,x=x+Math.imul(Te,We)|0,y=y+Math.imul(Ee,Qe)|0,c=c+Math.imul(Ee,Ye)|0,c=c+Math.imul(_e,Qe)|0,x=x+Math.imul(_e,Ye)|0,y=y+Math.imul(Q,Xe)|0,c=c+Math.imul(Q,Ze)|0,c=c+Math.imul(re,Xe)|0,x=x+Math.imul(re,Ze)|0,y=y+Math.imul(J,$e)|0,c=c+Math.imul(J,et)|0,c=c+Math.imul(j,$e)|0,x=x+Math.imul(j,et)|0;var Ta=(A+y|0)+((c&8191)<<13)|0;A=(x+(c>>>13)|0)+(Ta>>>26)|0,Ta&=67108863,y=Math.imul(Ie,qe),c=Math.imul(Ie,ze),c=c+Math.imul(Be,qe)|0,x=Math.imul(Be,ze),y=y+Math.imul(Ce,Ge)|0,c=c+Math.imul(Ce,Ke)|0,c=c+Math.imul(Me,Ge)|0,x=x+Math.imul(Me,Ke)|0,y=y+Math.imul(Re,je)|0,c=c+Math.imul(Re,Je)|0,c=c+Math.imul(Ne,je)|0,x=x+Math.imul(Ne,Je)|0,y=y+Math.imul(ke,Ve)|0,c=c+Math.imul(ke,We)|0,c=c+Math.imul(Pe,Ve)|0,x=x+Math.imul(Pe,We)|0,y=y+Math.imul(Se,Qe)|0,c=c+Math.imul(Se,Ye)|0,c=c+Math.imul(Te,Qe)|0,x=x+Math.imul(Te,Ye)|0,y=y+Math.imul(Ee,Xe)|0,c=c+Math.imul(Ee,Ze)|0,c=c+Math.imul(_e,Xe)|0,x=x+Math.imul(_e,Ze)|0,y=y+Math.imul(Q,$e)|0,c=c+Math.imul(Q,et)|0,c=c+Math.imul(re,$e)|0,x=x+Math.imul(re,et)|0;var ka=(A+y|0)+((c&8191)<<13)|0;A=(x+(c>>>13)|0)+(ka>>>26)|0,ka&=67108863,y=Math.imul(Ie,Ge),c=Math.imul(Ie,Ke),c=c+Math.imul(Be,Ge)|0,x=Math.imul(Be,Ke),y=y+Math.imul(Ce,je)|0,c=c+Math.imul(Ce,Je)|0,c=c+Math.imul(Me,je)|0,x=x+Math.imul(Me,Je)|0,y=y+Math.imul(Re,Ve)|0,c=c+Math.imul(Re,We)|0,c=c+Math.imul(Ne,Ve)|0,x=x+Math.imul(Ne,We)|0,y=y+Math.imul(ke,Qe)|0,c=c+Math.imul(ke,Ye)|0,c=c+Math.imul(Pe,Qe)|0,x=x+Math.imul(Pe,Ye)|0,y=y+Math.imul(Se,Xe)|0,c=c+Math.imul(Se,Ze)|0,c=c+Math.imul(Te,Xe)|0,x=x+Math.imul(Te,Ze)|0,y=y+Math.imul(Ee,$e)|0,c=c+Math.imul(Ee,et)|0,c=c+Math.imul(_e,$e)|0,x=x+Math.imul(_e,et)|0;var Pa=(A+y|0)+((c&8191)<<13)|0;A=(x+(c>>>13)|0)+(Pa>>>26)|0,Pa&=67108863,y=Math.imul(Ie,je),c=Math.imul(Ie,Je),c=c+Math.imul(Be,je)|0,x=Math.imul(Be,Je),y=y+Math.imul(Ce,Ve)|0,c=c+Math.imul(Ce,We)|0,c=c+Math.imul(Me,Ve)|0,x=x+Math.imul(Me,We)|0,y=y+Math.imul(Re,Qe)|0,c=c+Math.imul(Re,Ye)|0,c=c+Math.imul(Ne,Qe)|0,x=x+Math.imul(Ne,Ye)|0,y=y+Math.imul(ke,Xe)|0,c=c+Math.imul(ke,Ze)|0,c=c+Math.imul(Pe,Xe)|0,x=x+Math.imul(Pe,Ze)|0,y=y+Math.imul(Se,$e)|0,c=c+Math.imul(Se,et)|0,c=c+Math.imul(Te,$e)|0,x=x+Math.imul(Te,et)|0;var Ra=(A+y|0)+((c&8191)<<13)|0;A=(x+(c>>>13)|0)+(Ra>>>26)|0,Ra&=67108863,y=Math.imul(Ie,Ve),c=Math.imul(Ie,We),c=c+Math.imul(Be,Ve)|0,x=Math.imul(Be,We),y=y+Math.imul(Ce,Qe)|0,c=c+Math.imul(Ce,Ye)|0,c=c+Math.imul(Me,Qe)|0,x=x+Math.imul(Me,Ye)|0,y=y+Math.imul(Re,Xe)|0,c=c+Math.imul(Re,Ze)|0,c=c+Math.imul(Ne,Xe)|0,x=x+Math.imul(Ne,Ze)|0,y=y+Math.imul(ke,$e)|0,c=c+Math.imul(ke,et)|0,c=c+Math.imul(Pe,$e)|0,x=x+Math.imul(Pe,et)|0;var Na=(A+y|0)+((c&8191)<<13)|0;A=(x+(c>>>13)|0)+(Na>>>26)|0,Na&=67108863,y=Math.imul(Ie,Qe),c=Math.imul(Ie,Ye),c=c+Math.imul(Be,Qe)|0,x=Math.imul(Be,Ye),y=y+Math.imul(Ce,Xe)|0,c=c+Math.imul(Ce,Ze)|0,c=c+Math.imul(Me,Xe)|0,x=x+Math.imul(Me,Ze)|0,y=y+Math.imul(Re,$e)|0,c=c+Math.imul(Re,et)|0,c=c+Math.imul(Ne,$e)|0,x=x+Math.imul(Ne,et)|0;var Ca=(A+y|0)+((c&8191)<<13)|0;A=(x+(c>>>13)|0)+(Ca>>>26)|0,Ca&=67108863,y=Math.imul(Ie,Xe),c=Math.imul(Ie,Ze),c=c+Math.imul(Be,Xe)|0,x=Math.imul(Be,Ze),y=y+Math.imul(Ce,$e)|0,c=c+Math.imul(Ce,et)|0,c=c+Math.imul(Me,$e)|0,x=x+Math.imul(Me,et)|0;var Ma=(A+y|0)+((c&8191)<<13)|0;A=(x+(c>>>13)|0)+(Ma>>>26)|0,Ma&=67108863,y=Math.imul(Ie,$e),c=Math.imul(Ie,et),c=c+Math.imul(Be,$e)|0,x=Math.imul(Be,et);var Ia=(A+y|0)+((c&8191)<<13)|0;return A=(x+(c>>>13)|0)+(Ia>>>26)|0,Ia&=67108863,m[0]=$r,m[1]=en,m[2]=tn,m[3]=rn,m[4]=nn,m[5]=va,m[6]=wa,m[7]=Aa,m[8]=Ea,m[9]=_a,m[10]=Sa,m[11]=Ta,m[12]=ka,m[13]=Pa,m[14]=Ra,m[15]=Na,m[16]=Ca,m[17]=Ma,m[18]=Ia,A!==0&&(m[19]=A,b.length++),b};Math.imul||(M=I);function H(T,f,d){d.negative=f.negative^T.negative,d.length=T.length+f.length;for(var b=0,w=0,E=0;E<d.length-1;E++){var m=w;w=0;for(var A=b&67108863,y=Math.min(E,f.length-1),c=Math.max(0,E-T.length+1);c<=y;c++){var x=E-c,D=T.words[x]|0,p=f.words[c]|0,R=D*p,N=R&67108863;m=m+(R/67108864|0)|0,N=N+A|0,A=N&67108863,m=m+(N>>>26)|0,w+=m>>>26,m&=67108863}d.words[E]=A,b=m,m=w}return b!==0?d.words[E]=b:d.length--,d._strip()}function q(T,f,d){return H(T,f,d)}i.prototype.mulTo=function(f,d){var b,w=this.length+f.length;return this.length===10&&f.length===10?b=M(this,f,d):w<63?b=I(this,f,d):w<1024?b=H(this,f,d):b=q(this,f,d),b};function G(T,f){this.x=T,this.y=f}G.prototype.makeRBT=function(f){for(var d=new Array(f),b=i.prototype._countBits(f)-1,w=0;w<f;w++)d[w]=this.revBin(w,b,f);return d},G.prototype.revBin=function(f,d,b){if(f===0||f===b-1)return f;for(var w=0,E=0;E<d;E++)w|=(f&1)<<d-E-1,f>>=1;return w},G.prototype.permute=function(f,d,b,w,E,m){for(var A=0;A<m;A++)w[A]=d[f[A]],E[A]=b[f[A]]},G.prototype.transform=function(f,d,b,w,E,m){this.permute(m,f,d,b,w,E);for(var A=1;A<E;A<<=1)for(var y=A<<1,c=Math.cos(2*Math.PI/y),x=Math.sin(2*Math.PI/y),D=0;D<E;D+=y)for(var p=c,R=x,N=0;N<A;N++){var O=b[D+N],z=w[D+N],Y=b[D+N+A],J=w[D+N+A],j=p*Y-R*J;J=p*J+R*Y,Y=j,b[D+N]=O+Y,w[D+N]=z+J,b[D+N+A]=O-Y,w[D+N+A]=z-J,N!==y&&(j=c*p-x*R,R=c*R+x*p,p=j)}},G.prototype.guessLen13b=function(f,d){var b=Math.max(d,f)|1,w=b&1,E=0;for(b=b/2|0;b;b=b>>>1)E++;return 1<<E+1+w},G.prototype.conjugate=function(f,d,b){if(!(b<=1))for(var w=0;w<b/2;w++){var E=f[w];f[w]=f[b-w-1],f[b-w-1]=E,E=d[w],d[w]=-d[b-w-1],d[b-w-1]=-E}},G.prototype.normalize13b=function(f,d){for(var b=0,w=0;w<d/2;w++){var E=Math.round(f[2*w+1]/d)*8192+Math.round(f[2*w]/d)+b;f[w]=E&67108863,E<67108864?b=0:b=E/67108864|0}return f},G.prototype.convert13b=function(f,d,b,w){for(var E=0,m=0;m<d;m++)E=E+(f[m]|0),b[2*m]=E&8191,E=E>>>13,b[2*m+1]=E&8191,E=E>>>13;for(m=2*d;m<w;++m)b[m]=0;t(E===0),t((E&-8192)===0)},G.prototype.stub=function(f){for(var d=new Array(f),b=0;b<f;b++)d[b]=0;return d},G.prototype.mulp=function(f,d,b){var w=2*this.guessLen13b(f.length,d.length),E=this.makeRBT(w),m=this.stub(w),A=new Array(w),y=new Array(w),c=new Array(w),x=new Array(w),D=new Array(w),p=new Array(w),R=b.words;R.length=w,this.convert13b(f.words,f.length,A,w),this.convert13b(d.words,d.length,x,w),this.transform(A,m,y,c,w,E),this.transform(x,m,D,p,w,E);for(var N=0;N<w;N++){var O=y[N]*D[N]-c[N]*p[N];c[N]=y[N]*p[N]+c[N]*D[N],y[N]=O}return this.conjugate(y,c,w),this.transform(y,c,R,m,w,E),this.conjugate(R,m,w),this.normalize13b(R,w),b.negative=f.negative^d.negative,b.length=f.length+d.length,b._strip()},i.prototype.mul=function(f){var d=new i(null);return d.words=new Array(this.length+f.length),this.mulTo(f,d)},i.prototype.mulf=function(f){var d=new i(null);return d.words=new Array(this.length+f.length),q(this,f,d)},i.prototype.imul=function(f){return this.clone().mulTo(f,this)},i.prototype.imuln=function(f){var d=f<0;d&&(f=-f),t(typeof f=="number"),t(f<67108864);for(var b=0,w=0;w<this.length;w++){var E=(this.words[w]|0)*f,m=(E&67108863)+(b&67108863);b>>=26,b+=E/67108864|0,b+=m>>>26,this.words[w]=m&67108863}return b!==0&&(this.words[w]=b,this.length++),d?this.ineg():this},i.prototype.muln=function(f){return this.clone().imuln(f)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(f){var d=P(f);if(d.length===0)return new i(1);for(var b=this,w=0;w<d.length&&d[w]===0;w++,b=b.sqr());if(++w<d.length)for(var E=b.sqr();w<d.length;w++,E=E.sqr())d[w]!==0&&(b=b.mul(E));return b},i.prototype.iushln=function(f){t(typeof f=="number"&&f>=0);var d=f%26,b=(f-d)/26,w=67108863>>>26-d<<26-d,E;if(d!==0){var m=0;for(E=0;E<this.length;E++){var A=this.words[E]&w,y=(this.words[E]|0)-A<<d;this.words[E]=y|m,m=A>>>26-d}m&&(this.words[E]=m,this.length++)}if(b!==0){for(E=this.length-1;E>=0;E--)this.words[E+b]=this.words[E];for(E=0;E<b;E++)this.words[E]=0;this.length+=b}return this._strip()},i.prototype.ishln=function(f){return t(this.negative===0),this.iushln(f)},i.prototype.iushrn=function(f,d,b){t(typeof f=="number"&&f>=0);var w;d?w=(d-d%26)/26:w=0;var E=f%26,m=Math.min((f-E)/26,this.length),A=67108863^67108863>>>E<<E,y=b;if(w-=m,w=Math.max(0,w),y){for(var c=0;c<m;c++)y.words[c]=this.words[c];y.length=m}if(m!==0)if(this.length>m)for(this.length-=m,c=0;c<this.length;c++)this.words[c]=this.words[c+m];else this.words[0]=0,this.length=1;var x=0;for(c=this.length-1;c>=0&&(x!==0||c>=w);c--){var D=this.words[c]|0;this.words[c]=x<<26-E|D>>>E,x=D&A}return y&&x!==0&&(y.words[y.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(f,d,b){return t(this.negative===0),this.iushrn(f,d,b)},i.prototype.shln=function(f){return this.clone().ishln(f)},i.prototype.ushln=function(f){return this.clone().iushln(f)},i.prototype.shrn=function(f){return this.clone().ishrn(f)},i.prototype.ushrn=function(f){return this.clone().iushrn(f)},i.prototype.testn=function(f){t(typeof f=="number"&&f>=0);var d=f%26,b=(f-d)/26,w=1<<d;if(this.length<=b)return!1;var E=this.words[b];return!!(E&w)},i.prototype.imaskn=function(f){t(typeof f=="number"&&f>=0);var d=f%26,b=(f-d)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=b)return this;if(d!==0&&b++,this.length=Math.min(b,this.length),d!==0){var w=67108863^67108863>>>d<<d;this.words[this.length-1]&=w}return this._strip()},i.prototype.maskn=function(f){return this.clone().imaskn(f)},i.prototype.iaddn=function(f){return t(typeof f=="number"),t(f<67108864),f<0?this.isubn(-f):this.negative!==0?this.length===1&&(this.words[0]|0)<=f?(this.words[0]=f-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(f),this.negative=1,this):this._iaddn(f)},i.prototype._iaddn=function(f){this.words[0]+=f;for(var d=0;d<this.length&&this.words[d]>=67108864;d++)this.words[d]-=67108864,d===this.length-1?this.words[d+1]=1:this.words[d+1]++;return this.length=Math.max(this.length,d+1),this},i.prototype.isubn=function(f){if(t(typeof f=="number"),t(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var d=0;d<this.length&&this.words[d]<0;d++)this.words[d]+=67108864,this.words[d+1]-=1;return this._strip()},i.prototype.addn=function(f){return this.clone().iaddn(f)},i.prototype.subn=function(f){return this.clone().isubn(f)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(f,d,b){var w=f.length+b,E;this._expand(w);var m,A=0;for(E=0;E<f.length;E++){m=(this.words[E+b]|0)+A;var y=(f.words[E]|0)*d;m-=y&67108863,A=(m>>26)-(y/67108864|0),this.words[E+b]=m&67108863}for(;E<this.length-b;E++)m=(this.words[E+b]|0)+A,A=m>>26,this.words[E+b]=m&67108863;if(A===0)return this._strip();for(t(A===-1),A=0,E=0;E<this.length;E++)m=-(this.words[E]|0)+A,A=m>>26,this.words[E]=m&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(f,d){var b=this.length-f.length,w=this.clone(),E=f,m=E.words[E.length-1]|0,A=this._countBits(m);b=26-A,b!==0&&(E=E.ushln(b),w.iushln(b),m=E.words[E.length-1]|0);var y=w.length-E.length,c;if(d!=="mod"){c=new i(null),c.length=y+1,c.words=new Array(c.length);for(var x=0;x<c.length;x++)c.words[x]=0}var D=w.clone()._ishlnsubmul(E,1,y);D.negative===0&&(w=D,c&&(c.words[y]=1));for(var p=y-1;p>=0;p--){var R=(w.words[E.length+p]|0)*67108864+(w.words[E.length+p-1]|0);for(R=Math.min(R/m|0,67108863),w._ishlnsubmul(E,R,p);w.negative!==0;)R--,w.negative=0,w._ishlnsubmul(E,1,p),w.isZero()||(w.negative^=1);c&&(c.words[p]=R)}return c&&c._strip(),w._strip(),d!=="div"&&b!==0&&w.iushrn(b),{div:c||null,mod:w}},i.prototype.divmod=function(f,d,b){if(t(!f.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var w,E,m;return this.negative!==0&&f.negative===0?(m=this.neg().divmod(f,d),d!=="mod"&&(w=m.div.neg()),d!=="div"&&(E=m.mod.neg(),b&&E.negative!==0&&E.iadd(f)),{div:w,mod:E}):this.negative===0&&f.negative!==0?(m=this.divmod(f.neg(),d),d!=="mod"&&(w=m.div.neg()),{div:w,mod:m.mod}):(this.negative&f.negative)!==0?(m=this.neg().divmod(f.neg(),d),d!=="div"&&(E=m.mod.neg(),b&&E.negative!==0&&E.isub(f)),{div:m.div,mod:E}):f.length>this.length||this.cmp(f)<0?{div:new i(0),mod:this}:f.length===1?d==="div"?{div:this.divn(f.words[0]),mod:null}:d==="mod"?{div:null,mod:new i(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new i(this.modrn(f.words[0]))}:this._wordDiv(f,d)},i.prototype.div=function(f){return this.divmod(f,"div",!1).div},i.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},i.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},i.prototype.divRound=function(f){var d=this.divmod(f);if(d.mod.isZero())return d.div;var b=d.div.negative!==0?d.mod.isub(f):d.mod,w=f.ushrn(1),E=f.andln(1),m=b.cmp(w);return m<0||E===1&&m===0?d.div:d.div.negative!==0?d.div.isubn(1):d.div.iaddn(1)},i.prototype.modrn=function(f){var d=f<0;d&&(f=-f),t(f<=67108863);for(var b=(1<<26)%f,w=0,E=this.length-1;E>=0;E--)w=(b*w+(this.words[E]|0))%f;return d?-w:w},i.prototype.modn=function(f){return this.modrn(f)},i.prototype.idivn=function(f){var d=f<0;d&&(f=-f),t(f<=67108863);for(var b=0,w=this.length-1;w>=0;w--){var E=(this.words[w]|0)+b*67108864;this.words[w]=E/f|0,b=E%f}return this._strip(),d?this.ineg():this},i.prototype.divn=function(f){return this.clone().idivn(f)},i.prototype.egcd=function(f){t(f.negative===0),t(!f.isZero());var d=this,b=f.clone();d.negative!==0?d=d.umod(f):d=d.clone();for(var w=new i(1),E=new i(0),m=new i(0),A=new i(1),y=0;d.isEven()&&b.isEven();)d.iushrn(1),b.iushrn(1),++y;for(var c=b.clone(),x=d.clone();!d.isZero();){for(var D=0,p=1;(d.words[0]&p)===0&&D<26;++D,p<<=1);if(D>0)for(d.iushrn(D);D-- >0;)(w.isOdd()||E.isOdd())&&(w.iadd(c),E.isub(x)),w.iushrn(1),E.iushrn(1);for(var R=0,N=1;(b.words[0]&N)===0&&R<26;++R,N<<=1);if(R>0)for(b.iushrn(R);R-- >0;)(m.isOdd()||A.isOdd())&&(m.iadd(c),A.isub(x)),m.iushrn(1),A.iushrn(1);d.cmp(b)>=0?(d.isub(b),w.isub(m),E.isub(A)):(b.isub(d),m.isub(w),A.isub(E))}return{a:m,b:A,gcd:b.iushln(y)}},i.prototype._invmp=function(f){t(f.negative===0),t(!f.isZero());var d=this,b=f.clone();d.negative!==0?d=d.umod(f):d=d.clone();for(var w=new i(1),E=new i(0),m=b.clone();d.cmpn(1)>0&&b.cmpn(1)>0;){for(var A=0,y=1;(d.words[0]&y)===0&&A<26;++A,y<<=1);if(A>0)for(d.iushrn(A);A-- >0;)w.isOdd()&&w.iadd(m),w.iushrn(1);for(var c=0,x=1;(b.words[0]&x)===0&&c<26;++c,x<<=1);if(c>0)for(b.iushrn(c);c-- >0;)E.isOdd()&&E.iadd(m),E.iushrn(1);d.cmp(b)>=0?(d.isub(b),w.isub(E)):(b.isub(d),E.isub(w))}var D;return d.cmpn(1)===0?D=w:D=E,D.cmpn(0)<0&&D.iadd(f),D},i.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var d=this.clone(),b=f.clone();d.negative=0,b.negative=0;for(var w=0;d.isEven()&&b.isEven();w++)d.iushrn(1),b.iushrn(1);do{for(;d.isEven();)d.iushrn(1);for(;b.isEven();)b.iushrn(1);var E=d.cmp(b);if(E<0){var m=d;d=b,b=m}else if(E===0||b.cmpn(1)===0)break;d.isub(b)}while(!0);return b.iushln(w)},i.prototype.invm=function(f){return this.egcd(f).a.umod(f)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(f){return this.words[0]&f},i.prototype.bincn=function(f){t(typeof f=="number");var d=f%26,b=(f-d)/26,w=1<<d;if(this.length<=b)return this._expand(b+1),this.words[b]|=w,this;for(var E=w,m=b;E!==0&&m<this.length;m++){var A=this.words[m]|0;A+=E,E=A>>>26,A&=67108863,this.words[m]=A}return E!==0&&(this.words[m]=E,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(f){var d=f<0;if(this.negative!==0&&!d)return-1;if(this.negative===0&&d)return 1;this._strip();var b;if(this.length>1)b=1;else{d&&(f=-f),t(f<=67108863,"Number is too big");var w=this.words[0]|0;b=w===f?0:w<f?-1:1}return this.negative!==0?-b|0:b},i.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var d=this.ucmp(f);return this.negative!==0?-d|0:d},i.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var d=0,b=this.length-1;b>=0;b--){var w=this.words[b]|0,E=f.words[b]|0;if(w!==E){w<E?d=-1:w>E&&(d=1);break}}return d},i.prototype.gtn=function(f){return this.cmpn(f)===1},i.prototype.gt=function(f){return this.cmp(f)===1},i.prototype.gten=function(f){return this.cmpn(f)>=0},i.prototype.gte=function(f){return this.cmp(f)>=0},i.prototype.ltn=function(f){return this.cmpn(f)===-1},i.prototype.lt=function(f){return this.cmp(f)===-1},i.prototype.lten=function(f){return this.cmpn(f)<=0},i.prototype.lte=function(f){return this.cmp(f)<=0},i.prototype.eqn=function(f){return this.cmpn(f)===0},i.prototype.eq=function(f){return this.cmp(f)===0},i.red=function(f){return new ee(f)},i.prototype.toRed=function(f){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},i.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(f){return this.red=f,this},i.prototype.forceRed=function(f){return t(!this.red,"Already a number in reduction context"),this._forceRed(f)},i.prototype.redAdd=function(f){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},i.prototype.redIAdd=function(f){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},i.prototype.redSub=function(f){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},i.prototype.redISub=function(f){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},i.prototype.redShl=function(f){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},i.prototype.redMul=function(f){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},i.prototype.redIMul=function(f){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},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(f){return t(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var K={k256:null,p224:null,p192:null,p25519:null};function V(T,f){this.name=T,this.p=new i(f,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}V.prototype._tmp=function(){var f=new i(null);return f.words=new Array(Math.ceil(this.n/13)),f},V.prototype.ireduce=function(f){var d=f,b;do this.split(d,this.tmp),d=this.imulK(d),d=d.iadd(this.tmp),b=d.bitLength();while(b>this.n);var w=b<this.n?-1:d.ucmp(this.p);return w===0?(d.words[0]=0,d.length=1):w>0?d.isub(this.p):d.strip!==void 0?d.strip():d._strip(),d},V.prototype.split=function(f,d){f.iushrn(this.n,0,d)},V.prototype.imulK=function(f){return f.imul(this.k)};function ae(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(ae,V),ae.prototype.split=function(f,d){for(var b=4194303,w=Math.min(f.length,9),E=0;E<w;E++)d.words[E]=f.words[E];if(d.length=w,f.length<=9){f.words[0]=0,f.length=1;return}var m=f.words[9];for(d.words[d.length++]=m&b,E=10;E<f.length;E++){var A=f.words[E]|0;f.words[E-10]=(A&b)<<4|m>>>22,m=A}m>>>=22,f.words[E-10]=m,m===0&&f.length>10?f.length-=10:f.length-=9},ae.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var d=0,b=0;b<f.length;b++){var w=f.words[b]|0;d+=w*977,f.words[b]=d&67108863,d=w*64+(d/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function Z(){V.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(Z,V);function $(){V.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n($,V);function Ae(){V.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(Ae,V),Ae.prototype.imulK=function(f){for(var d=0,b=0;b<f.length;b++){var w=(f.words[b]|0)*19+d,E=w&67108863;w>>>=26,f.words[b]=E,d=w}return d!==0&&(f.words[f.length++]=d),f},i._prime=function(f){if(K[f])return K[f];var d;if(f==="k256")d=new ae;else if(f==="p224")d=new Z;else if(f==="p192")d=new $;else if(f==="p25519")d=new Ae;else throw new Error("Unknown prime "+f);return K[f]=d,d};function ee(T){if(typeof T=="string"){var f=i._prime(T);this.m=f.p,this.prime=f}else t(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}ee.prototype._verify1=function(f){t(f.negative===0,"red works only with positives"),t(f.red,"red works only with red numbers")},ee.prototype._verify2=function(f,d){t((f.negative|d.negative)===0,"red works only with positives"),t(f.red&&f.red===d.red,"red works only with red numbers")},ee.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(l(f,f.umod(this.m)._forceRed(this)),f)},ee.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},ee.prototype.add=function(f,d){this._verify2(f,d);var b=f.add(d);return b.cmp(this.m)>=0&&b.isub(this.m),b._forceRed(this)},ee.prototype.iadd=function(f,d){this._verify2(f,d);var b=f.iadd(d);return b.cmp(this.m)>=0&&b.isub(this.m),b},ee.prototype.sub=function(f,d){this._verify2(f,d);var b=f.sub(d);return b.cmpn(0)<0&&b.iadd(this.m),b._forceRed(this)},ee.prototype.isub=function(f,d){this._verify2(f,d);var b=f.isub(d);return b.cmpn(0)<0&&b.iadd(this.m),b},ee.prototype.shl=function(f,d){return this._verify1(f),this.imod(f.ushln(d))},ee.prototype.imul=function(f,d){return this._verify2(f,d),this.imod(f.imul(d))},ee.prototype.mul=function(f,d){return this._verify2(f,d),this.imod(f.mul(d))},ee.prototype.isqr=function(f){return this.imul(f,f.clone())},ee.prototype.sqr=function(f){return this.mul(f,f)},ee.prototype.sqrt=function(f){if(f.isZero())return f.clone();var d=this.m.andln(3);if(t(d%2===1),d===3){var b=this.m.add(new i(1)).iushrn(2);return this.pow(f,b)}for(var w=this.m.subn(1),E=0;!w.isZero()&&w.andln(1)===0;)E++,w.iushrn(1);t(!w.isZero());var m=new i(1).toRed(this),A=m.redNeg(),y=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);this.pow(c,y).cmp(A)!==0;)c.redIAdd(A);for(var x=this.pow(c,w),D=this.pow(f,w.addn(1).iushrn(1)),p=this.pow(f,w),R=E;p.cmp(m)!==0;){for(var N=p,O=0;N.cmp(m)!==0;O++)N=N.redSqr();t(O<R);var z=this.pow(x,new i(1).iushln(R-O-1));D=D.redMul(z),x=z.redSqr(),p=p.redMul(x),R=O}return D},ee.prototype.invm=function(f){var d=f._invmp(this.m);return d.negative!==0?(d.negative=0,this.imod(d).redNeg()):this.imod(d)},ee.prototype.pow=function(f,d){if(d.isZero())return new i(1).toRed(this);if(d.cmpn(1)===0)return f.clone();var b=4,w=new Array(1<<b);w[0]=new i(1).toRed(this),w[1]=f;for(var E=2;E<w.length;E++)w[E]=this.mul(w[E-1],f);var m=w[0],A=0,y=0,c=d.bitLength()%26;for(c===0&&(c=26),E=d.length-1;E>=0;E--){for(var x=d.words[E],D=c-1;D>=0;D--){var p=x>>D&1;if(m!==w[0]&&(m=this.sqr(m)),p===0&&A===0){y=0;continue}A<<=1,A|=p,y++,!(y!==b&&(E!==0||D!==0))&&(m=this.mul(m,w[A]),y=0,A=0)}c=26}return m},ee.prototype.convertTo=function(f){var d=f.umod(this.m);return d===f?d.clone():d},ee.prototype.convertFrom=function(f){var d=f.clone();return d.red=null,d},i.mont=function(f){return new me(f)};function me(T){ee.call(this,T),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(me,ee),me.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},me.prototype.convertFrom=function(f){var d=this.imod(f.mul(this.rinv));return d.red=null,d},me.prototype.imul=function(f,d){if(f.isZero()||d.isZero())return f.words[0]=0,f.length=1,f;var b=f.imul(d),w=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=b.isub(w).iushrn(this.shift),m=E;return E.cmp(this.m)>=0?m=E.isub(this.m):E.cmpn(0)<0&&(m=E.iadd(this.m)),m._forceRed(this)},me.prototype.mul=function(f,d){if(f.isZero()||d.isZero())return new i(0)._forceRed(this);var b=f.mul(d),w=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=b.isub(w).iushrn(this.shift),m=E;return E.cmp(this.m)>=0?m=E.isub(this.m):E.cmpn(0)<0&&(m=E.iadd(this.m)),m._forceRed(this)},me.prototype.invm=function(f){var d=this.imod(f._invmp(this.m).mul(this.r2));return d._forceRed(this)}})(typeof Ba=="undefined"||Ba,C0)});var rc=lt((Bb,Xo)=>{(function(){"use strict";var r="input is invalid type",e="finalize already called",t=typeof window=="object",n=t?window:{};n.JS_SHA3_NO_WINDOW&&(t=!1);var i=!t&&typeof self=="object",o=!n.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?n=global:i&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&typeof Xo=="object"&&Xo.exports,a=typeof define=="function"&&define.amd,u=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer!="undefined",l="0123456789abcdef".split(""),h=[31,7936,2031616,520093696],g=[4,1024,262144,67108864],k=[1,256,65536,16777216],_=[6,1536,393216,100663296],v=[0,8,16,24],P=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],I=[224,256,384,512],M=[128,256],H=["hex","buffer","arrayBuffer","array","digest"],q={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(p){return Object.prototype.toString.call(p)==="[object Array]"}),u&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(p){return typeof p=="object"&&p.buffer&&p.buffer.constructor===ArrayBuffer});for(var G=function(p,R,N){return function(O){return new c(p,R,p).update(O)[N]()}},K=function(p,R,N){return function(O,z){return new c(p,R,z).update(O)[N]()}},V=function(p,R,N){return function(O,z,Y,J){return f["cshake"+p].update(O,z,Y,J)[N]()}},ae=function(p,R,N){return function(O,z,Y,J){return f["kmac"+p].update(O,z,Y,J)[N]()}},Z=function(p,R,N,O){for(var z=0;z<H.length;++z){var Y=H[z];p[Y]=R(N,O,Y)}return p},$=function(p,R){var N=G(p,R,"hex");return N.create=function(){return new c(p,R,p)},N.update=function(O){return N.create().update(O)},Z(N,G,p,R)},Ae=function(p,R){var N=K(p,R,"hex");return N.create=function(O){return new c(p,R,O)},N.update=function(O,z){return N.create(z).update(O)},Z(N,K,p,R)},ee=function(p,R){var N=q[p],O=V(p,R,"hex");return O.create=function(z,Y,J){return!Y&&!J?f["shake"+p].create(z):new c(p,R,z).bytepad([Y,J],N)},O.update=function(z,Y,J,j){return O.create(Y,J,j).update(z)},Z(O,V,p,R)},me=function(p,R){var N=q[p],O=ae(p,R,"hex");return O.create=function(z,Y,J){return new x(p,R,Y).bytepad(["KMAC",J],N).bytepad([z],N)},O.update=function(z,Y,J,j){return O.create(z,J,j).update(Y)},Z(O,ae,p,R)},T=[{name:"keccak",padding:k,bits:I,createMethod:$},{name:"sha3",padding:_,bits:I,createMethod:$},{name:"shake",padding:h,bits:M,createMethod:Ae},{name:"cshake",padding:g,bits:M,createMethod:ee},{name:"kmac",padding:g,bits:M,createMethod:me}],f={},d=[],b=0;b<T.length;++b)for(var w=T[b],E=w.bits,m=0;m<E.length;++m){var A=w.name+"_"+E[m];if(d.push(A),f[A]=w.createMethod(E[m],w.padding),w.name!=="sha3"){var y=w.name+E[m];d.push(y),f[y]=f[A]}}function c(p,R,N){this.blocks=[],this.s=[],this.padding=R,this.outputBits=N,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(p<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=N>>5,this.extraBytes=(N&31)>>3;for(var O=0;O<50;++O)this.s[O]=0}c.prototype.update=function(p){if(this.finalized)throw new Error(e);var R,N=typeof p;if(N!=="string"){if(N==="object"){if(p===null)throw new Error(r);if(u&&p.constructor===ArrayBuffer)p=new Uint8Array(p);else if(!Array.isArray(p)&&(!u||!ArrayBuffer.isView(p)))throw new Error(r)}else throw new Error(r);R=!0}for(var O=this.blocks,z=this.byteCount,Y=p.length,J=this.blockCount,j=0,rt=this.s,Q,re;j<Y;){if(this.reset)for(this.reset=!1,O[0]=this.block,Q=1;Q<J+1;++Q)O[Q]=0;if(R)for(Q=this.start;j<Y&&Q<z;++j)O[Q>>2]|=p[j]<<v[Q++&3];else for(Q=this.start;j<Y&&Q<z;++j)re=p.charCodeAt(j),re<128?O[Q>>2]|=re<<v[Q++&3]:re<2048?(O[Q>>2]|=(192|re>>6)<<v[Q++&3],O[Q>>2]|=(128|re&63)<<v[Q++&3]):re<55296||re>=57344?(O[Q>>2]|=(224|re>>12)<<v[Q++&3],O[Q>>2]|=(128|re>>6&63)<<v[Q++&3],O[Q>>2]|=(128|re&63)<<v[Q++&3]):(re=65536+((re&1023)<<10|p.charCodeAt(++j)&1023),O[Q>>2]|=(240|re>>18)<<v[Q++&3],O[Q>>2]|=(128|re>>12&63)<<v[Q++&3],O[Q>>2]|=(128|re>>6&63)<<v[Q++&3],O[Q>>2]|=(128|re&63)<<v[Q++&3]);if(this.lastByteIndex=Q,Q>=z){for(this.start=Q-z,this.block=O[J],Q=0;Q<J;++Q)rt[Q]^=O[Q];D(rt),this.reset=!0}else this.start=Q}return this},c.prototype.encode=function(p,R){v