@swapper-finance/sdk
Version:
JavaScript SDK form Swapper
1 lines • 473 kB
JavaScript
"use strict";var Ih=Object.create;var Uo=Object.defineProperty;var Rh=Object.getOwnPropertyDescriptor;var Bh=Object.getOwnPropertyNames;var Fh=Object.getPrototypeOf,Lh=Object.prototype.hasOwnProperty;var ut=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),pi=(r,e)=>{for(var t in e)Uo(r,t,{get:e[t],enumerable:!0})},Df=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Bh(e))!Lh.call(r,i)&&i!==t&&Uo(r,i,{get:()=>e[i],enumerable:!(n=Rh(e,i))||n.enumerable});return r};var Pt=(r,e,t)=>(t=r!=null?Ih(Fh(r)):{},Df(e||!r||!r.__esModule?Uo(t,"default",{value:r,enumerable:!0}):t,r)),Oh=r=>Df(Uo({},"__esModule",{value:!0}),r);var R0=ut((Wf,I0)=>{"use strict";(function(r,e){"use strict";function t(A,s){if(!A)throw new Error(s||"Assertion failed")}function n(A,s){A.super_=s;var d=function(){};d.prototype=s.prototype,A.prototype=new d,A.prototype.constructor=A}function i(A,s,d){if(i.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&((s==="le"||s==="be")&&(d=s,s=10),this._init(A||0,s||10,d||"be"))}typeof r=="object"?r.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=require("buffer").Buffer}catch{}i.isBN=function(s){return s instanceof i?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===i.wordSize&&Array.isArray(s.words)},i.max=function(s,d){return s.cmp(d)>0?s:d},i.min=function(s,d){return s.cmp(d)<0?s:d},i.prototype._init=function(s,d,p){if(typeof s=="number")return this._initNumber(s,d,p);if(typeof s=="object")return this._initArray(s,d,p);d==="hex"&&(d=16),t(d===(d|0)&&d>=2&&d<=36),s=s.toString().replace(/\s+/g,"");var v=0;s[0]==="-"&&(v++,this.negative=1),v<s.length&&(d===16?this._parseHex(s,v,p):(this._parseBase(s,d,v),p==="le"&&this._initArray(this.toArray(),d,p)))},i.prototype._initNumber=function(s,d,p){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[s&67108863],this.length=1):s<4503599627370496?(this.words=[s&67108863,s/67108864&67108863],this.length=2):(t(s<9007199254740992),this.words=[s&67108863,s/67108864&67108863,1],this.length=3),p==="le"&&this._initArray(this.toArray(),d,p)},i.prototype._initArray=function(s,d,p){if(t(typeof s.length=="number"),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var v=0;v<this.length;v++)this.words[v]=0;var C,m,y=0;if(p==="be")for(v=s.length-1,C=0;v>=0;v-=3)m=s[v]|s[v-1]<<8|s[v-2]<<16,this.words[C]|=m<<y&67108863,this.words[C+1]=m>>>26-y&67108863,y+=24,y>=26&&(y-=26,C++);else if(p==="le")for(v=0,C=0;v<s.length;v+=3)m=s[v]|s[v+1]<<8|s[v+2]<<16,this.words[C]|=m<<y&67108863,this.words[C+1]=m>>>26-y&67108863,y+=24,y>=26&&(y-=26,C++);return this._strip()};function a(A,s){var d=A.charCodeAt(s);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 "+A)}function c(A,s,d){var p=a(A,d);return d-1>=s&&(p|=a(A,d-1)<<4),p}i.prototype._parseHex=function(s,d,p){this.length=Math.ceil((s.length-d)/6),this.words=new Array(this.length);for(var v=0;v<this.length;v++)this.words[v]=0;var C=0,m=0,y;if(p==="be")for(v=s.length-1;v>=d;v-=2)y=c(s,d,v)<<C,this.words[m]|=y&67108863,C>=18?(C-=18,m+=1,this.words[m]|=y>>>26):C+=8;else{var g=s.length-d;for(v=g%2===0?d+1:d;v<s.length;v+=2)y=c(s,d,v)<<C,this.words[m]|=y&67108863,C>=18?(C-=18,m+=1,this.words[m]|=y>>>26):C+=8}this._strip()};function l(A,s,d,p){for(var v=0,C=0,m=Math.min(A.length,d),y=s;y<m;y++){var g=A.charCodeAt(y)-48;v*=p,g>=49?C=g-49+10:g>=17?C=g-17+10:C=g,t(g>=0&&C<p,"Invalid character"),v+=C}return v}i.prototype._parseBase=function(s,d,p){this.words=[0],this.length=1;for(var v=0,C=1;C<=67108863;C*=d)v++;v--,C=C/d|0;for(var m=s.length-p,y=m%v,g=Math.min(m,m-y)+p,f=0,x=p;x<g;x+=v)f=l(s,x,x+v,d),this.imuln(C),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(y!==0){var R=1;for(f=l(s,x,s.length,d),x=0;x<y;x++)R*=d;this.imuln(R),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}this._strip()},i.prototype.copy=function(s){s.words=new Array(this.length);for(var d=0;d<this.length;d++)s.words[d]=this.words[d];s.length=this.length,s.negative=this.negative,s.red=this.red};function h(A,s){A.words=s.words,A.length=s.length,A.negative=s.negative,A.red=s.red}if(i.prototype._move=function(s){h(s,this)},i.prototype.clone=function(){var s=new i(null);return this.copy(s),s},i.prototype._expand=function(s){for(;this.length<s;)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")]=b}catch{i.prototype.inspect=b}else i.prototype.inspect=b;function b(){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"],_=[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],S=[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(s,d){s=s||10,d=d|0||1;var p;if(s===16||s==="hex"){p="";for(var v=0,C=0,m=0;m<this.length;m++){var y=this.words[m],g=((y<<v|C)&16777215).toString(16);C=y>>>24-v&16777215,v+=2,v>=26&&(v-=26,m--),C!==0||m!==this.length-1?p=E[6-g.length]+g+p:p=g+p}for(C!==0&&(p=C.toString(16)+p);p.length%d!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(s===(s|0)&&s>=2&&s<=36){var f=_[s],x=S[s];p="";var R=this.clone();for(R.negative=0;!R.isZero();){var u=R.modrn(x).toString(s);R=R.idivn(x),R.isZero()?p=u+p:p=E[f-u.length]+u+p}for(this.isZero()&&(p="0"+p);p.length%d!==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 s=this.words[0];return this.length===2?s+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s:s},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(s,d){return this.toArrayLike(o,s,d)}),i.prototype.toArray=function(s,d){return this.toArrayLike(Array,s,d)};var w=function(s,d){return s.allocUnsafe?s.allocUnsafe(d):new s(d)};i.prototype.toArrayLike=function(s,d,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 m=w(s,C),y=d==="le"?"LE":"BE";return this["_toArrayLike"+y](m,v),m},i.prototype._toArrayLikeLE=function(s,d){for(var p=0,v=0,C=0,m=0;C<this.length;C++){var y=this.words[C]<<m|v;s[p++]=y&255,p<s.length&&(s[p++]=y>>8&255),p<s.length&&(s[p++]=y>>16&255),m===6?(p<s.length&&(s[p++]=y>>24&255),v=0,m=0):(v=y>>>24,m+=2)}if(p<s.length)for(s[p++]=v;p<s.length;)s[p++]=0},i.prototype._toArrayLikeBE=function(s,d){for(var p=s.length-1,v=0,C=0,m=0;C<this.length;C++){var y=this.words[C]<<m|v;s[p--]=y&255,p>=0&&(s[p--]=y>>8&255),p>=0&&(s[p--]=y>>16&255),m===6?(p>=0&&(s[p--]=y>>24&255),v=0,m=0):(v=y>>>24,m+=2)}if(p>=0)for(s[p--]=v;p>=0;)s[p--]=0},Math.clz32?i.prototype._countBits=function(s){return 32-Math.clz32(s)}:i.prototype._countBits=function(s){var d=s,p=0;return d>=4096&&(p+=13,d>>>=13),d>=64&&(p+=7,d>>>=7),d>=8&&(p+=4,d>>>=4),d>=2&&(p+=2,d>>>=2),p+d},i.prototype._zeroBits=function(s){if(s===0)return 26;var d=s,p=0;return d&8191||(p+=13,d>>>=13),d&127||(p+=7,d>>>=7),d&15||(p+=4,d>>>=4),d&3||(p+=2,d>>>=2),d&1||p++,p},i.prototype.bitLength=function(){var s=this.words[this.length-1],d=this._countBits(s);return(this.length-1)*26+d};function T(A){for(var s=new Array(A.bitLength()),d=0;d<s.length;d++){var p=d/26|0,v=d%26;s[d]=A.words[p]>>>v&1}return s}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,d=0;d<this.length;d++){var p=this._zeroBits(this.words[d]);if(s+=p,p!==26)break}return s},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(s){return this.negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},i.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).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(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var d=0;d<s.length;d++)this.words[d]=this.words[d]|s.words[d];return this._strip()},i.prototype.ior=function(s){return t((this.negative|s.negative)===0),this.iuor(s)},i.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},i.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},i.prototype.iuand=function(s){var d;this.length>s.length?d=s:d=this;for(var p=0;p<d.length;p++)this.words[p]=this.words[p]&s.words[p];return this.length=d.length,this._strip()},i.prototype.iand=function(s){return t((this.negative|s.negative)===0),this.iuand(s)},i.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},i.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},i.prototype.iuxor=function(s){var d,p;this.length>s.length?(d=this,p=s):(d=s,p=this);for(var v=0;v<p.length;v++)this.words[v]=d.words[v]^p.words[v];if(this!==d)for(;v<d.length;v++)this.words[v]=d.words[v];return this.length=d.length,this._strip()},i.prototype.ixor=function(s){return t((this.negative|s.negative)===0),this.iuxor(s)},i.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},i.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},i.prototype.inotn=function(s){t(typeof s=="number"&&s>=0);var d=Math.ceil(s/26)|0,p=s%26;this._expand(d),p>0&&d--;for(var v=0;v<d;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(s){return this.clone().inotn(s)},i.prototype.setn=function(s,d){t(typeof s=="number"&&s>=0);var p=s/26|0,v=s%26;return this._expand(p+1),d?this.words[p]=this.words[p]|1<<v:this.words[p]=this.words[p]&~(1<<v),this._strip()},i.prototype.iadd=function(s){var d;if(this.negative!==0&&s.negative===0)return this.negative=0,d=this.isub(s),this.negative^=1,this._normSign();if(this.negative===0&&s.negative!==0)return s.negative=0,d=this.isub(s),s.negative=1,d._normSign();var p,v;this.length>s.length?(p=this,v=s):(p=s,v=this);for(var C=0,m=0;m<v.length;m++)d=(p.words[m]|0)+(v.words[m]|0)+C,this.words[m]=d&67108863,C=d>>>26;for(;C!==0&&m<p.length;m++)d=(p.words[m]|0)+C,this.words[m]=d&67108863,C=d>>>26;if(this.length=p.length,C!==0)this.words[this.length]=C,this.length++;else if(p!==this)for(;m<p.length;m++)this.words[m]=p.words[m];return this},i.prototype.add=function(s){var d;return s.negative!==0&&this.negative===0?(s.negative=0,d=this.sub(s),s.negative^=1,d):s.negative===0&&this.negative!==0?(this.negative=0,d=s.sub(this),this.negative=1,d):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},i.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var d=this.iadd(s);return s.negative=1,d._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var p=this.cmp(s);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var v,C;p>0?(v=this,C=s):(v=s,C=this);for(var m=0,y=0;y<C.length;y++)d=(v.words[y]|0)-(C.words[y]|0)+m,m=d>>26,this.words[y]=d&67108863;for(;m!==0&&y<v.length;y++)d=(v.words[y]|0)+m,m=d>>26,this.words[y]=d&67108863;if(m===0&&y<v.length&&v!==this)for(;y<v.length;y++)this.words[y]=v.words[y];return this.length=Math.max(this.length,y),v!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(s){return this.clone().isub(s)};function N(A,s,d){d.negative=s.negative^A.negative;var p=A.length+s.length|0;d.length=p,p=p-1|0;var v=A.words[0]|0,C=s.words[0]|0,m=v*C,y=m&67108863,g=m/67108864|0;d.words[0]=y;for(var f=1;f<p;f++){for(var x=g>>>26,R=g&67108863,u=Math.min(f,s.length-1),M=Math.max(0,f-A.length+1);M<=u;M++){var k=f-M|0;v=A.words[k]|0,C=s.words[M]|0,m=v*C+R,x+=m/67108864|0,R=m&67108863}d.words[f]=R|0,g=x|0}return g!==0?d.words[f]=g|0:d.length--,d._strip()}var P=function(s,d,p){var v=s.words,C=d.words,m=p.words,y=0,g,f,x,R=v[0]|0,u=R&8191,M=R>>>13,k=v[1]|0,F=k&8191,H=k>>>13,Q=v[2]|0,W=Q&8191,V=Q>>>13,Ie=v[3]|0,J=Ie&8191,re=Ie>>>13,gr=v[4]|0,be=gr&8191,Me=gr>>>13,zr=v[5]|0,ve=zr&8191,ye=zr>>>13,qr=v[6]|0,ke=qr&8191,Ne=qr>>>13,Vr=v[7]|0,Ce=Vr&8191,Ee=Vr>>>13,Gr=v[8]|0,$=Gr&8191,oe=Gr>>>13,lt=v[9]|0,ce=lt&8191,de=lt>>>13,Kr=C[0]|0,se=Kr&8191,ge=Kr>>>13,or=C[1]|0,Le=or&8191,Oe=or>>>13,Rn=C[2]|0,De=Rn&8191,Ue=Rn>>>13,Bn=C[3]|0,He=Bn&8191,ze=Bn>>>13,Fn=C[4]|0,qe=Fn&8191,Ve=Fn>>>13,Ln=C[5]|0,Ge=Ln&8191,Ke=Ln>>>13,On=C[6]|0,We=On&8191,Je=On>>>13,Dn=C[7]|0,Qe=Dn&8191,Ze=Dn>>>13,Un=C[8]|0,Ye=Un&8191,Xe=Un>>>13,Hn=C[9]|0,je=Hn&8191,$e=Hn>>>13;p.negative=s.negative^d.negative,p.length=19,g=Math.imul(u,se),f=Math.imul(u,ge),f=f+Math.imul(M,se)|0,x=Math.imul(M,ge);var un=(y+g|0)+((f&8191)<<13)|0;y=(x+(f>>>13)|0)+(un>>>26)|0,un&=67108863,g=Math.imul(F,se),f=Math.imul(F,ge),f=f+Math.imul(H,se)|0,x=Math.imul(H,ge),g=g+Math.imul(u,Le)|0,f=f+Math.imul(u,Oe)|0,f=f+Math.imul(M,Le)|0,x=x+Math.imul(M,Oe)|0;var hn=(y+g|0)+((f&8191)<<13)|0;y=(x+(f>>>13)|0)+(hn>>>26)|0,hn&=67108863,g=Math.imul(W,se),f=Math.imul(W,ge),f=f+Math.imul(V,se)|0,x=Math.imul(V,ge),g=g+Math.imul(F,Le)|0,f=f+Math.imul(F,Oe)|0,f=f+Math.imul(H,Le)|0,x=x+Math.imul(H,Oe)|0,g=g+Math.imul(u,De)|0,f=f+Math.imul(u,Ue)|0,f=f+Math.imul(M,De)|0,x=x+Math.imul(M,Ue)|0;var xn=(y+g|0)+((f&8191)<<13)|0;y=(x+(f>>>13)|0)+(xn>>>26)|0,xn&=67108863,g=Math.imul(J,se),f=Math.imul(J,ge),f=f+Math.imul(re,se)|0,x=Math.imul(re,ge),g=g+Math.imul(W,Le)|0,f=f+Math.imul(W,Oe)|0,f=f+Math.imul(V,Le)|0,x=x+Math.imul(V,Oe)|0,g=g+Math.imul(F,De)|0,f=f+Math.imul(F,Ue)|0,f=f+Math.imul(H,De)|0,x=x+Math.imul(H,Ue)|0,g=g+Math.imul(u,He)|0,f=f+Math.imul(u,ze)|0,f=f+Math.imul(M,He)|0,x=x+Math.imul(M,ze)|0;var pn=(y+g|0)+((f&8191)<<13)|0;y=(x+(f>>>13)|0)+(pn>>>26)|0,pn&=67108863,g=Math.imul(be,se),f=Math.imul(be,ge),f=f+Math.imul(Me,se)|0,x=Math.imul(Me,ge),g=g+Math.imul(J,Le)|0,f=f+Math.imul(J,Oe)|0,f=f+Math.imul(re,Le)|0,x=x+Math.imul(re,Oe)|0,g=g+Math.imul(W,De)|0,f=f+Math.imul(W,Ue)|0,f=f+Math.imul(V,De)|0,x=x+Math.imul(V,Ue)|0,g=g+Math.imul(F,He)|0,f=f+Math.imul(F,ze)|0,f=f+Math.imul(H,He)|0,x=x+Math.imul(H,ze)|0,g=g+Math.imul(u,qe)|0,f=f+Math.imul(u,Ve)|0,f=f+Math.imul(M,qe)|0,x=x+Math.imul(M,Ve)|0;var mn=(y+g|0)+((f&8191)<<13)|0;y=(x+(f>>>13)|0)+(mn>>>26)|0,mn&=67108863,g=Math.imul(ve,se),f=Math.imul(ve,ge),f=f+Math.imul(ye,se)|0,x=Math.imul(ye,ge),g=g+Math.imul(be,Le)|0,f=f+Math.imul(be,Oe)|0,f=f+Math.imul(Me,Le)|0,x=x+Math.imul(Me,Oe)|0,g=g+Math.imul(J,De)|0,f=f+Math.imul(J,Ue)|0,f=f+Math.imul(re,De)|0,x=x+Math.imul(re,Ue)|0,g=g+Math.imul(W,He)|0,f=f+Math.imul(W,ze)|0,f=f+Math.imul(V,He)|0,x=x+Math.imul(V,ze)|0,g=g+Math.imul(F,qe)|0,f=f+Math.imul(F,Ve)|0,f=f+Math.imul(H,qe)|0,x=x+Math.imul(H,Ve)|0,g=g+Math.imul(u,Ge)|0,f=f+Math.imul(u,Ke)|0,f=f+Math.imul(M,Ge)|0,x=x+Math.imul(M,Ke)|0;var g0=(y+g|0)+((f&8191)<<13)|0;y=(x+(f>>>13)|0)+(g0>>>26)|0,g0&=67108863,g=Math.imul(ke,se),f=Math.imul(ke,ge),f=f+Math.imul(Ne,se)|0,x=Math.imul(Ne,ge),g=g+Math.imul(ve,Le)|0,f=f+Math.imul(ve,Oe)|0,f=f+Math.imul(ye,Le)|0,x=x+Math.imul(ye,Oe)|0,g=g+Math.imul(be,De)|0,f=f+Math.imul(be,Ue)|0,f=f+Math.imul(Me,De)|0,x=x+Math.imul(Me,Ue)|0,g=g+Math.imul(J,He)|0,f=f+Math.imul(J,ze)|0,f=f+Math.imul(re,He)|0,x=x+Math.imul(re,ze)|0,g=g+Math.imul(W,qe)|0,f=f+Math.imul(W,Ve)|0,f=f+Math.imul(V,qe)|0,x=x+Math.imul(V,Ve)|0,g=g+Math.imul(F,Ge)|0,f=f+Math.imul(F,Ke)|0,f=f+Math.imul(H,Ge)|0,x=x+Math.imul(H,Ke)|0,g=g+Math.imul(u,We)|0,f=f+Math.imul(u,Je)|0,f=f+Math.imul(M,We)|0,x=x+Math.imul(M,Je)|0;var b0=(y+g|0)+((f&8191)<<13)|0;y=(x+(f>>>13)|0)+(b0>>>26)|0,b0&=67108863,g=Math.imul(Ce,se),f=Math.imul(Ce,ge),f=f+Math.imul(Ee,se)|0,x=Math.imul(Ee,ge),g=g+Math.imul(ke,Le)|0,f=f+Math.imul(ke,Oe)|0,f=f+Math.imul(Ne,Le)|0,x=x+Math.imul(Ne,Oe)|0,g=g+Math.imul(ve,De)|0,f=f+Math.imul(ve,Ue)|0,f=f+Math.imul(ye,De)|0,x=x+Math.imul(ye,Ue)|0,g=g+Math.imul(be,He)|0,f=f+Math.imul(be,ze)|0,f=f+Math.imul(Me,He)|0,x=x+Math.imul(Me,ze)|0,g=g+Math.imul(J,qe)|0,f=f+Math.imul(J,Ve)|0,f=f+Math.imul(re,qe)|0,x=x+Math.imul(re,Ve)|0,g=g+Math.imul(W,Ge)|0,f=f+Math.imul(W,Ke)|0,f=f+Math.imul(V,Ge)|0,x=x+Math.imul(V,Ke)|0,g=g+Math.imul(F,We)|0,f=f+Math.imul(F,Je)|0,f=f+Math.imul(H,We)|0,x=x+Math.imul(H,Je)|0,g=g+Math.imul(u,Qe)|0,f=f+Math.imul(u,Ze)|0,f=f+Math.imul(M,Qe)|0,x=x+Math.imul(M,Ze)|0;var v0=(y+g|0)+((f&8191)<<13)|0;y=(x+(f>>>13)|0)+(v0>>>26)|0,v0&=67108863,g=Math.imul($,se),f=Math.imul($,ge),f=f+Math.imul(oe,se)|0,x=Math.imul(oe,ge),g=g+Math.imul(Ce,Le)|0,f=f+Math.imul(Ce,Oe)|0,f=f+Math.imul(Ee,Le)|0,x=x+Math.imul(Ee,Oe)|0,g=g+Math.imul(ke,De)|0,f=f+Math.imul(ke,Ue)|0,f=f+Math.imul(Ne,De)|0,x=x+Math.imul(Ne,Ue)|0,g=g+Math.imul(ve,He)|0,f=f+Math.imul(ve,ze)|0,f=f+Math.imul(ye,He)|0,x=x+Math.imul(ye,ze)|0,g=g+Math.imul(be,qe)|0,f=f+Math.imul(be,Ve)|0,f=f+Math.imul(Me,qe)|0,x=x+Math.imul(Me,Ve)|0,g=g+Math.imul(J,Ge)|0,f=f+Math.imul(J,Ke)|0,f=f+Math.imul(re,Ge)|0,x=x+Math.imul(re,Ke)|0,g=g+Math.imul(W,We)|0,f=f+Math.imul(W,Je)|0,f=f+Math.imul(V,We)|0,x=x+Math.imul(V,Je)|0,g=g+Math.imul(F,Qe)|0,f=f+Math.imul(F,Ze)|0,f=f+Math.imul(H,Qe)|0,x=x+Math.imul(H,Ze)|0,g=g+Math.imul(u,Ye)|0,f=f+Math.imul(u,Xe)|0,f=f+Math.imul(M,Ye)|0,x=x+Math.imul(M,Xe)|0;var y0=(y+g|0)+((f&8191)<<13)|0;y=(x+(f>>>13)|0)+(y0>>>26)|0,y0&=67108863,g=Math.imul(ce,se),f=Math.imul(ce,ge),f=f+Math.imul(de,se)|0,x=Math.imul(de,ge),g=g+Math.imul($,Le)|0,f=f+Math.imul($,Oe)|0,f=f+Math.imul(oe,Le)|0,x=x+Math.imul(oe,Oe)|0,g=g+Math.imul(Ce,De)|0,f=f+Math.imul(Ce,Ue)|0,f=f+Math.imul(Ee,De)|0,x=x+Math.imul(Ee,Ue)|0,g=g+Math.imul(ke,He)|0,f=f+Math.imul(ke,ze)|0,f=f+Math.imul(Ne,He)|0,x=x+Math.imul(Ne,ze)|0,g=g+Math.imul(ve,qe)|0,f=f+Math.imul(ve,Ve)|0,f=f+Math.imul(ye,qe)|0,x=x+Math.imul(ye,Ve)|0,g=g+Math.imul(be,Ge)|0,f=f+Math.imul(be,Ke)|0,f=f+Math.imul(Me,Ge)|0,x=x+Math.imul(Me,Ke)|0,g=g+Math.imul(J,We)|0,f=f+Math.imul(J,Je)|0,f=f+Math.imul(re,We)|0,x=x+Math.imul(re,Je)|0,g=g+Math.imul(W,Qe)|0,f=f+Math.imul(W,Ze)|0,f=f+Math.imul(V,Qe)|0,x=x+Math.imul(V,Ze)|0,g=g+Math.imul(F,Ye)|0,f=f+Math.imul(F,Xe)|0,f=f+Math.imul(H,Ye)|0,x=x+Math.imul(H,Xe)|0,g=g+Math.imul(u,je)|0,f=f+Math.imul(u,$e)|0,f=f+Math.imul(M,je)|0,x=x+Math.imul(M,$e)|0;var w0=(y+g|0)+((f&8191)<<13)|0;y=(x+(f>>>13)|0)+(w0>>>26)|0,w0&=67108863,g=Math.imul(ce,Le),f=Math.imul(ce,Oe),f=f+Math.imul(de,Le)|0,x=Math.imul(de,Oe),g=g+Math.imul($,De)|0,f=f+Math.imul($,Ue)|0,f=f+Math.imul(oe,De)|0,x=x+Math.imul(oe,Ue)|0,g=g+Math.imul(Ce,He)|0,f=f+Math.imul(Ce,ze)|0,f=f+Math.imul(Ee,He)|0,x=x+Math.imul(Ee,ze)|0,g=g+Math.imul(ke,qe)|0,f=f+Math.imul(ke,Ve)|0,f=f+Math.imul(Ne,qe)|0,x=x+Math.imul(Ne,Ve)|0,g=g+Math.imul(ve,Ge)|0,f=f+Math.imul(ve,Ke)|0,f=f+Math.imul(ye,Ge)|0,x=x+Math.imul(ye,Ke)|0,g=g+Math.imul(be,We)|0,f=f+Math.imul(be,Je)|0,f=f+Math.imul(Me,We)|0,x=x+Math.imul(Me,Je)|0,g=g+Math.imul(J,Qe)|0,f=f+Math.imul(J,Ze)|0,f=f+Math.imul(re,Qe)|0,x=x+Math.imul(re,Ze)|0,g=g+Math.imul(W,Ye)|0,f=f+Math.imul(W,Xe)|0,f=f+Math.imul(V,Ye)|0,x=x+Math.imul(V,Xe)|0,g=g+Math.imul(F,je)|0,f=f+Math.imul(F,$e)|0,f=f+Math.imul(H,je)|0,x=x+Math.imul(H,$e)|0;var A0=(y+g|0)+((f&8191)<<13)|0;y=(x+(f>>>13)|0)+(A0>>>26)|0,A0&=67108863,g=Math.imul(ce,De),f=Math.imul(ce,Ue),f=f+Math.imul(de,De)|0,x=Math.imul(de,Ue),g=g+Math.imul($,He)|0,f=f+Math.imul($,ze)|0,f=f+Math.imul(oe,He)|0,x=x+Math.imul(oe,ze)|0,g=g+Math.imul(Ce,qe)|0,f=f+Math.imul(Ce,Ve)|0,f=f+Math.imul(Ee,qe)|0,x=x+Math.imul(Ee,Ve)|0,g=g+Math.imul(ke,Ge)|0,f=f+Math.imul(ke,Ke)|0,f=f+Math.imul(Ne,Ge)|0,x=x+Math.imul(Ne,Ke)|0,g=g+Math.imul(ve,We)|0,f=f+Math.imul(ve,Je)|0,f=f+Math.imul(ye,We)|0,x=x+Math.imul(ye,Je)|0,g=g+Math.imul(be,Qe)|0,f=f+Math.imul(be,Ze)|0,f=f+Math.imul(Me,Qe)|0,x=x+Math.imul(Me,Ze)|0,g=g+Math.imul(J,Ye)|0,f=f+Math.imul(J,Xe)|0,f=f+Math.imul(re,Ye)|0,x=x+Math.imul(re,Xe)|0,g=g+Math.imul(W,je)|0,f=f+Math.imul(W,$e)|0,f=f+Math.imul(V,je)|0,x=x+Math.imul(V,$e)|0;var C0=(y+g|0)+((f&8191)<<13)|0;y=(x+(f>>>13)|0)+(C0>>>26)|0,C0&=67108863,g=Math.imul(ce,He),f=Math.imul(ce,ze),f=f+Math.imul(de,He)|0,x=Math.imul(de,ze),g=g+Math.imul($,qe)|0,f=f+Math.imul($,Ve)|0,f=f+Math.imul(oe,qe)|0,x=x+Math.imul(oe,Ve)|0,g=g+Math.imul(Ce,Ge)|0,f=f+Math.imul(Ce,Ke)|0,f=f+Math.imul(Ee,Ge)|0,x=x+Math.imul(Ee,Ke)|0,g=g+Math.imul(ke,We)|0,f=f+Math.imul(ke,Je)|0,f=f+Math.imul(Ne,We)|0,x=x+Math.imul(Ne,Je)|0,g=g+Math.imul(ve,Qe)|0,f=f+Math.imul(ve,Ze)|0,f=f+Math.imul(ye,Qe)|0,x=x+Math.imul(ye,Ze)|0,g=g+Math.imul(be,Ye)|0,f=f+Math.imul(be,Xe)|0,f=f+Math.imul(Me,Ye)|0,x=x+Math.imul(Me,Xe)|0,g=g+Math.imul(J,je)|0,f=f+Math.imul(J,$e)|0,f=f+Math.imul(re,je)|0,x=x+Math.imul(re,$e)|0;var E0=(y+g|0)+((f&8191)<<13)|0;y=(x+(f>>>13)|0)+(E0>>>26)|0,E0&=67108863,g=Math.imul(ce,qe),f=Math.imul(ce,Ve),f=f+Math.imul(de,qe)|0,x=Math.imul(de,Ve),g=g+Math.imul($,Ge)|0,f=f+Math.imul($,Ke)|0,f=f+Math.imul(oe,Ge)|0,x=x+Math.imul(oe,Ke)|0,g=g+Math.imul(Ce,We)|0,f=f+Math.imul(Ce,Je)|0,f=f+Math.imul(Ee,We)|0,x=x+Math.imul(Ee,Je)|0,g=g+Math.imul(ke,Qe)|0,f=f+Math.imul(ke,Ze)|0,f=f+Math.imul(Ne,Qe)|0,x=x+Math.imul(Ne,Ze)|0,g=g+Math.imul(ve,Ye)|0,f=f+Math.imul(ve,Xe)|0,f=f+Math.imul(ye,Ye)|0,x=x+Math.imul(ye,Xe)|0,g=g+Math.imul(be,je)|0,f=f+Math.imul(be,$e)|0,f=f+Math.imul(Me,je)|0,x=x+Math.imul(Me,$e)|0;var S0=(y+g|0)+((f&8191)<<13)|0;y=(x+(f>>>13)|0)+(S0>>>26)|0,S0&=67108863,g=Math.imul(ce,Ge),f=Math.imul(ce,Ke),f=f+Math.imul(de,Ge)|0,x=Math.imul(de,Ke),g=g+Math.imul($,We)|0,f=f+Math.imul($,Je)|0,f=f+Math.imul(oe,We)|0,x=x+Math.imul(oe,Je)|0,g=g+Math.imul(Ce,Qe)|0,f=f+Math.imul(Ce,Ze)|0,f=f+Math.imul(Ee,Qe)|0,x=x+Math.imul(Ee,Ze)|0,g=g+Math.imul(ke,Ye)|0,f=f+Math.imul(ke,Xe)|0,f=f+Math.imul(Ne,Ye)|0,x=x+Math.imul(Ne,Xe)|0,g=g+Math.imul(ve,je)|0,f=f+Math.imul(ve,$e)|0,f=f+Math.imul(ye,je)|0,x=x+Math.imul(ye,$e)|0;var T0=(y+g|0)+((f&8191)<<13)|0;y=(x+(f>>>13)|0)+(T0>>>26)|0,T0&=67108863,g=Math.imul(ce,We),f=Math.imul(ce,Je),f=f+Math.imul(de,We)|0,x=Math.imul(de,Je),g=g+Math.imul($,Qe)|0,f=f+Math.imul($,Ze)|0,f=f+Math.imul(oe,Qe)|0,x=x+Math.imul(oe,Ze)|0,g=g+Math.imul(Ce,Ye)|0,f=f+Math.imul(Ce,Xe)|0,f=f+Math.imul(Ee,Ye)|0,x=x+Math.imul(Ee,Xe)|0,g=g+Math.imul(ke,je)|0,f=f+Math.imul(ke,$e)|0,f=f+Math.imul(Ne,je)|0,x=x+Math.imul(Ne,$e)|0;var _0=(y+g|0)+((f&8191)<<13)|0;y=(x+(f>>>13)|0)+(_0>>>26)|0,_0&=67108863,g=Math.imul(ce,Qe),f=Math.imul(ce,Ze),f=f+Math.imul(de,Qe)|0,x=Math.imul(de,Ze),g=g+Math.imul($,Ye)|0,f=f+Math.imul($,Xe)|0,f=f+Math.imul(oe,Ye)|0,x=x+Math.imul(oe,Xe)|0,g=g+Math.imul(Ce,je)|0,f=f+Math.imul(Ce,$e)|0,f=f+Math.imul(Ee,je)|0,x=x+Math.imul(Ee,$e)|0;var M0=(y+g|0)+((f&8191)<<13)|0;y=(x+(f>>>13)|0)+(M0>>>26)|0,M0&=67108863,g=Math.imul(ce,Ye),f=Math.imul(ce,Xe),f=f+Math.imul(de,Ye)|0,x=Math.imul(de,Xe),g=g+Math.imul($,je)|0,f=f+Math.imul($,$e)|0,f=f+Math.imul(oe,je)|0,x=x+Math.imul(oe,$e)|0;var k0=(y+g|0)+((f&8191)<<13)|0;y=(x+(f>>>13)|0)+(k0>>>26)|0,k0&=67108863,g=Math.imul(ce,je),f=Math.imul(ce,$e),f=f+Math.imul(de,je)|0,x=Math.imul(de,$e);var N0=(y+g|0)+((f&8191)<<13)|0;return y=(x+(f>>>13)|0)+(N0>>>26)|0,N0&=67108863,m[0]=un,m[1]=hn,m[2]=xn,m[3]=pn,m[4]=mn,m[5]=g0,m[6]=b0,m[7]=v0,m[8]=y0,m[9]=w0,m[10]=A0,m[11]=C0,m[12]=E0,m[13]=S0,m[14]=T0,m[15]=_0,m[16]=M0,m[17]=k0,m[18]=N0,y!==0&&(m[19]=y,p.length++),p};Math.imul||(P=N);function I(A,s,d){d.negative=s.negative^A.negative,d.length=A.length+s.length;for(var p=0,v=0,C=0;C<d.length-1;C++){var m=v;v=0;for(var y=p&67108863,g=Math.min(C,s.length-1),f=Math.max(0,C-A.length+1);f<=g;f++){var x=C-f,R=A.words[x]|0,u=s.words[f]|0,M=R*u,k=M&67108863;m=m+(M/67108864|0)|0,k=k+y|0,y=k&67108863,m=m+(k>>>26)|0,v+=m>>>26,m&=67108863}d.words[C]=y,p=m,m=v}return p!==0?d.words[C]=p:d.length--,d._strip()}function D(A,s,d){return I(A,s,d)}i.prototype.mulTo=function(s,d){var p,v=this.length+s.length;return this.length===10&&s.length===10?p=P(this,s,d):v<63?p=N(this,s,d):v<1024?p=I(this,s,d):p=D(this,s,d),p};function U(A,s){this.x=A,this.y=s}U.prototype.makeRBT=function(s){for(var d=new Array(s),p=i.prototype._countBits(s)-1,v=0;v<s;v++)d[v]=this.revBin(v,p,s);return d},U.prototype.revBin=function(s,d,p){if(s===0||s===p-1)return s;for(var v=0,C=0;C<d;C++)v|=(s&1)<<d-C-1,s>>=1;return v},U.prototype.permute=function(s,d,p,v,C,m){for(var y=0;y<m;y++)v[y]=d[s[y]],C[y]=p[s[y]]},U.prototype.transform=function(s,d,p,v,C,m){this.permute(m,s,d,p,v,C);for(var y=1;y<C;y<<=1)for(var g=y<<1,f=Math.cos(2*Math.PI/g),x=Math.sin(2*Math.PI/g),R=0;R<C;R+=g)for(var u=f,M=x,k=0;k<y;k++){var F=p[R+k],H=v[R+k],Q=p[R+k+y],W=v[R+k+y],V=u*Q-M*W;W=u*W+M*Q,Q=V,p[R+k]=F+Q,v[R+k]=H+W,p[R+k+y]=F-Q,v[R+k+y]=H-W,k!==g&&(V=f*u-x*M,M=f*M+x*u,u=V)}},U.prototype.guessLen13b=function(s,d){var p=Math.max(d,s)|1,v=p&1,C=0;for(p=p/2|0;p;p=p>>>1)C++;return 1<<C+1+v},U.prototype.conjugate=function(s,d,p){if(!(p<=1))for(var v=0;v<p/2;v++){var C=s[v];s[v]=s[p-v-1],s[p-v-1]=C,C=d[v],d[v]=-d[p-v-1],d[p-v-1]=-C}},U.prototype.normalize13b=function(s,d){for(var p=0,v=0;v<d/2;v++){var C=Math.round(s[2*v+1]/d)*8192+Math.round(s[2*v]/d)+p;s[v]=C&67108863,C<67108864?p=0:p=C/67108864|0}return s},U.prototype.convert13b=function(s,d,p,v){for(var C=0,m=0;m<d;m++)C=C+(s[m]|0),p[2*m]=C&8191,C=C>>>13,p[2*m+1]=C&8191,C=C>>>13;for(m=2*d;m<v;++m)p[m]=0;t(C===0),t((C&-8192)===0)},U.prototype.stub=function(s){for(var d=new Array(s),p=0;p<s;p++)d[p]=0;return d},U.prototype.mulp=function(s,d,p){var v=2*this.guessLen13b(s.length,d.length),C=this.makeRBT(v),m=this.stub(v),y=new Array(v),g=new Array(v),f=new Array(v),x=new Array(v),R=new Array(v),u=new Array(v),M=p.words;M.length=v,this.convert13b(s.words,s.length,y,v),this.convert13b(d.words,d.length,x,v),this.transform(y,m,g,f,v,C),this.transform(x,m,R,u,v,C);for(var k=0;k<v;k++){var F=g[k]*R[k]-f[k]*u[k];f[k]=g[k]*u[k]+f[k]*R[k],g[k]=F}return this.conjugate(g,f,v),this.transform(g,f,M,m,v,C),this.conjugate(M,m,v),this.normalize13b(M,v),p.negative=s.negative^d.negative,p.length=s.length+d.length,p._strip()},i.prototype.mul=function(s){var d=new i(null);return d.words=new Array(this.length+s.length),this.mulTo(s,d)},i.prototype.mulf=function(s){var d=new i(null);return d.words=new Array(this.length+s.length),D(this,s,d)},i.prototype.imul=function(s){return this.clone().mulTo(s,this)},i.prototype.imuln=function(s){var d=s<0;d&&(s=-s),t(typeof s=="number"),t(s<67108864);for(var p=0,v=0;v<this.length;v++){var C=(this.words[v]|0)*s,m=(C&67108863)+(p&67108863);p>>=26,p+=C/67108864|0,p+=m>>>26,this.words[v]=m&67108863}return p!==0&&(this.words[v]=p,this.length++),d?this.ineg():this},i.prototype.muln=function(s){return this.clone().imuln(s)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(s){var d=T(s);if(d.length===0)return new i(1);for(var p=this,v=0;v<d.length&&d[v]===0;v++,p=p.sqr());if(++v<d.length)for(var C=p.sqr();v<d.length;v++,C=C.sqr())d[v]!==0&&(p=p.mul(C));return p},i.prototype.iushln=function(s){t(typeof s=="number"&&s>=0);var d=s%26,p=(s-d)/26,v=67108863>>>26-d<<26-d,C;if(d!==0){var m=0;for(C=0;C<this.length;C++){var y=this.words[C]&v,g=(this.words[C]|0)-y<<d;this.words[C]=g|m,m=y>>>26-d}m&&(this.words[C]=m,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(s){return t(this.negative===0),this.iushln(s)},i.prototype.iushrn=function(s,d,p){t(typeof s=="number"&&s>=0);var v;d?v=(d-d%26)/26:v=0;var C=s%26,m=Math.min((s-C)/26,this.length),y=67108863^67108863>>>C<<C,g=p;if(v-=m,v=Math.max(0,v),g){for(var f=0;f<m;f++)g.words[f]=this.words[f];g.length=m}if(m!==0)if(this.length>m)for(this.length-=m,f=0;f<this.length;f++)this.words[f]=this.words[f+m];else this.words[0]=0,this.length=1;var x=0;for(f=this.length-1;f>=0&&(x!==0||f>=v);f--){var R=this.words[f]|0;this.words[f]=x<<26-C|R>>>C,x=R&y}return g&&x!==0&&(g.words[g.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(s,d,p){return t(this.negative===0),this.iushrn(s,d,p)},i.prototype.shln=function(s){return this.clone().ishln(s)},i.prototype.ushln=function(s){return this.clone().iushln(s)},i.prototype.shrn=function(s){return this.clone().ishrn(s)},i.prototype.ushrn=function(s){return this.clone().iushrn(s)},i.prototype.testn=function(s){t(typeof s=="number"&&s>=0);var d=s%26,p=(s-d)/26,v=1<<d;if(this.length<=p)return!1;var C=this.words[p];return!!(C&v)},i.prototype.imaskn=function(s){t(typeof s=="number"&&s>=0);var d=s%26,p=(s-d)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(d!==0&&p++,this.length=Math.min(p,this.length),d!==0){var v=67108863^67108863>>>d<<d;this.words[this.length-1]&=v}return this._strip()},i.prototype.maskn=function(s){return this.clone().imaskn(s)},i.prototype.iaddn=function(s){return t(typeof s=="number"),t(s<67108864),s<0?this.isubn(-s):this.negative!==0?this.length===1&&(this.words[0]|0)<=s?(this.words[0]=s-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},i.prototype._iaddn=function(s){this.words[0]+=s;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(s){if(t(typeof s=="number"),t(s<67108864),s<0)return this.iaddn(-s);if(this.negative!==0)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,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(s){return this.clone().iaddn(s)},i.prototype.subn=function(s){return this.clone().isubn(s)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(s,d,p){var v=s.length+p,C;this._expand(v);var m,y=0;for(C=0;C<s.length;C++){m=(this.words[C+p]|0)+y;var g=(s.words[C]|0)*d;m-=g&67108863,y=(m>>26)-(g/67108864|0),this.words[C+p]=m&67108863}for(;C<this.length-p;C++)m=(this.words[C+p]|0)+y,y=m>>26,this.words[C+p]=m&67108863;if(y===0)return this._strip();for(t(y===-1),y=0,C=0;C<this.length;C++)m=-(this.words[C]|0)+y,y=m>>26,this.words[C]=m&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(s,d){var p=this.length-s.length,v=this.clone(),C=s,m=C.words[C.length-1]|0,y=this._countBits(m);p=26-y,p!==0&&(C=C.ushln(p),v.iushln(p),m=C.words[C.length-1]|0);var g=v.length-C.length,f;if(d!=="mod"){f=new i(null),f.length=g+1,f.words=new Array(f.length);for(var x=0;x<f.length;x++)f.words[x]=0}var R=v.clone()._ishlnsubmul(C,1,g);R.negative===0&&(v=R,f&&(f.words[g]=1));for(var u=g-1;u>=0;u--){var M=(v.words[C.length+u]|0)*67108864+(v.words[C.length+u-1]|0);for(M=Math.min(M/m|0,67108863),v._ishlnsubmul(C,M,u);v.negative!==0;)M--,v.negative=0,v._ishlnsubmul(C,1,u),v.isZero()||(v.negative^=1);f&&(f.words[u]=M)}return f&&f._strip(),v._strip(),d!=="div"&&p!==0&&v.iushrn(p),{div:f||null,mod:v}},i.prototype.divmod=function(s,d,p){if(t(!s.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var v,C,m;return this.negative!==0&&s.negative===0?(m=this.neg().divmod(s,d),d!=="mod"&&(v=m.div.neg()),d!=="div"&&(C=m.mod.neg(),p&&C.negative!==0&&C.iadd(s)),{div:v,mod:C}):this.negative===0&&s.negative!==0?(m=this.divmod(s.neg(),d),d!=="mod"&&(v=m.div.neg()),{div:v,mod:m.mod}):this.negative&s.negative?(m=this.neg().divmod(s.neg(),d),d!=="div"&&(C=m.mod.neg(),p&&C.negative!==0&&C.isub(s)),{div:m.div,mod:C}):s.length>this.length||this.cmp(s)<0?{div:new i(0),mod:this}:s.length===1?d==="div"?{div:this.divn(s.words[0]),mod:null}:d==="mod"?{div:null,mod:new i(this.modrn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new i(this.modrn(s.words[0]))}:this._wordDiv(s,d)},i.prototype.div=function(s){return this.divmod(s,"div",!1).div},i.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},i.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},i.prototype.divRound=function(s){var d=this.divmod(s);if(d.mod.isZero())return d.div;var p=d.div.negative!==0?d.mod.isub(s):d.mod,v=s.ushrn(1),C=s.andln(1),m=p.cmp(v);return m<0||C===1&&m===0?d.div:d.div.negative!==0?d.div.isubn(1):d.div.iaddn(1)},i.prototype.modrn=function(s){var d=s<0;d&&(s=-s),t(s<=67108863);for(var p=(1<<26)%s,v=0,C=this.length-1;C>=0;C--)v=(p*v+(this.words[C]|0))%s;return d?-v:v},i.prototype.modn=function(s){return this.modrn(s)},i.prototype.idivn=function(s){var d=s<0;d&&(s=-s),t(s<=67108863);for(var p=0,v=this.length-1;v>=0;v--){var C=(this.words[v]|0)+p*67108864;this.words[v]=C/s|0,p=C%s}return this._strip(),d?this.ineg():this},i.prototype.divn=function(s){return this.clone().idivn(s)},i.prototype.egcd=function(s){t(s.negative===0),t(!s.isZero());var d=this,p=s.clone();d.negative!==0?d=d.umod(s):d=d.clone();for(var v=new i(1),C=new i(0),m=new i(0),y=new i(1),g=0;d.isEven()&&p.isEven();)d.iushrn(1),p.iushrn(1),++g;for(var f=p.clone(),x=d.clone();!d.isZero();){for(var R=0,u=1;!(d.words[0]&u)&&R<26;++R,u<<=1);if(R>0)for(d.iushrn(R);R-- >0;)(v.isOdd()||C.isOdd())&&(v.iadd(f),C.isub(x)),v.iushrn(1),C.iushrn(1);for(var M=0,k=1;!(p.words[0]&k)&&M<26;++M,k<<=1);if(M>0)for(p.iushrn(M);M-- >0;)(m.isOdd()||y.isOdd())&&(m.iadd(f),y.isub(x)),m.iushrn(1),y.iushrn(1);d.cmp(p)>=0?(d.isub(p),v.isub(m),C.isub(y)):(p.isub(d),m.isub(v),y.isub(C))}return{a:m,b:y,gcd:p.iushln(g)}},i.prototype._invmp=function(s){t(s.negative===0),t(!s.isZero());var d=this,p=s.clone();d.negative!==0?d=d.umod(s):d=d.clone();for(var v=new i(1),C=new i(0),m=p.clone();d.cmpn(1)>0&&p.cmpn(1)>0;){for(var y=0,g=1;!(d.words[0]&g)&&y<26;++y,g<<=1);if(y>0)for(d.iushrn(y);y-- >0;)v.isOdd()&&v.iadd(m),v.iushrn(1);for(var f=0,x=1;!(p.words[0]&x)&&f<26;++f,x<<=1);if(f>0)for(p.iushrn(f);f-- >0;)C.isOdd()&&C.iadd(m),C.iushrn(1);d.cmp(p)>=0?(d.isub(p),v.isub(C)):(p.isub(d),C.isub(v))}var R;return d.cmpn(1)===0?R=v:R=C,R.cmpn(0)<0&&R.iadd(s),R},i.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var d=this.clone(),p=s.clone();d.negative=0,p.negative=0;for(var v=0;d.isEven()&&p.isEven();v++)d.iushrn(1),p.iushrn(1);do{for(;d.isEven();)d.iushrn(1);for(;p.isEven();)p.iushrn(1);var C=d.cmp(p);if(C<0){var m=d;d=p,p=m}else if(C===0||p.cmpn(1)===0)break;d.isub(p)}while(!0);return p.iushln(v)},i.prototype.invm=function(s){return this.egcd(s).a.umod(s)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(s){return this.words[0]&s},i.prototype.bincn=function(s){t(typeof s=="number");var d=s%26,p=(s-d)/26,v=1<<d;if(this.length<=p)return this._expand(p+1),this.words[p]|=v,this;for(var C=v,m=p;C!==0&&m<this.length;m++){var y=this.words[m]|0;y+=C,C=y>>>26,y&=67108863,this.words[m]=y}return C!==0&&(this.words[m]=C,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(s){var d=s<0;if(this.negative!==0&&!d)return-1;if(this.negative===0&&d)return 1;this._strip();var p;if(this.length>1)p=1;else{d&&(s=-s),t(s<=67108863,"Number is too big");var v=this.words[0]|0;p=v===s?0:v<s?-1:1}return this.negative!==0?-p|0:p},i.prototype.cmp=function(s){if(this.negative!==0&&s.negative===0)return-1;if(this.negative===0&&s.negative!==0)return 1;var d=this.ucmp(s);return this.negative!==0?-d|0:d},i.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var d=0,p=this.length-1;p>=0;p--){var v=this.words[p]|0,C=s.words[p]|0;if(v!==C){v<C?d=-1:v>C&&(d=1);break}}return d},i.prototype.gtn=function(s){return this.cmpn(s)===1},i.prototype.gt=function(s){return this.cmp(s)===1},i.prototype.gten=function(s){return this.cmpn(s)>=0},i.prototype.gte=function(s){return this.cmp(s)>=0},i.prototype.ltn=function(s){return this.cmpn(s)===-1},i.prototype.lt=function(s){return this.cmp(s)===-1},i.prototype.lten=function(s){return this.cmpn(s)<=0},i.prototype.lte=function(s){return this.cmp(s)<=0},i.prototype.eqn=function(s){return this.cmpn(s)===0},i.prototype.eq=function(s){return this.cmp(s)===0},i.red=function(s){return new j(s)},i.prototype.toRed=function(s){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),s.convertTo(this)._forceRed(s)},i.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(s){return this.red=s,this},i.prototype.forceRed=function(s){return t(!this.red,"Already a number in reduction context"),this._forceRed(s)},i.prototype.redAdd=function(s){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},i.prototype.redIAdd=function(s){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},i.prototype.redSub=function(s){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},i.prototype.redISub=function(s){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},i.prototype.redShl=function(s){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},i.prototype.redMul=function(s){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},i.prototype.redIMul=function(s){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},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(s){return t(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var q={k256:null,p224:null,p192:null,p25519:null};function G(A,s){this.name=A,this.p=new i(s,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}G.prototype._tmp=function(){var s=new i(null);return s.words=new Array(Math.ceil(this.n/13)),s},G.prototype.ireduce=function(s){var d=s,p;do this.split(d,this.tmp),d=this.imulK(d),d=d.iadd(this.tmp),p=d.bitLength();while(p>this.n);var v=p<this.n?-1:d.ucmp(this.p);return v===0?(d.words[0]=0,d.length=1):v>0?d.isub(this.p):d.strip!==void 0?d.strip():d._strip(),d},G.prototype.split=function(s,d){s.iushrn(this.n,0,d)},G.prototype.imulK=function(s){return s.imul(this.k)};function te(){G.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(te,G),te.prototype.split=function(s,d){for(var p=4194303,v=Math.min(s.length,9),C=0;C<v;C++)d.words[C]=s.words[C];if(d.length=v,s.length<=9){s.words[0]=0,s.length=1;return}var m=s.words[9];for(d.words[d.length++]=m&p,C=10;C<s.length;C++){var y=s.words[C]|0;s.words[C-10]=(y&p)<<4|m>>>22,m=y}m>>>=22,s.words[C-10]=m,m===0&&s.length>10?s.length-=10:s.length-=9},te.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var d=0,p=0;p<s.length;p++){var v=s.words[p]|0;d+=v*977,s.words[p]=d&67108863,d=v*64+(d/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function Z(){G.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(Z,G);function Y(){G.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(Y,G);function ue(){G.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(ue,G),ue.prototype.imulK=function(s){for(var d=0,p=0;p<s.length;p++){var v=(s.words[p]|0)*19+d,C=v&67108863;v>>>=26,s.words[p]=C,d=v}return d!==0&&(s.words[s.length++]=d),s},i._prime=function(s){if(q[s])return q[s];var d;if(s==="k256")d=new te;else if(s==="p224")d=new Z;else if(s==="p192")d=new Y;else if(s==="p25519")d=new ue;else throw new Error("Unknown prime "+s);return q[s]=d,d};function j(A){if(typeof A=="string"){var s=i._prime(A);this.m=s.p,this.prime=s}else t(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}j.prototype._verify1=function(s){t(s.negative===0,"red works only with positives"),t(s.red,"red works only with red numbers")},j.prototype._verify2=function(s,d){t((s.negative|d.negative)===0,"red works only with positives"),t(s.red&&s.red===d.red,"red works only with red numbers")},j.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):(h(s,s.umod(this.m)._forceRed(this)),s)},j.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},j.prototype.add=function(s,d){this._verify2(s,d);var p=s.add(d);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},j.prototype.iadd=function(s,d){this._verify2(s,d);var p=s.iadd(d);return p.cmp(this.m)>=0&&p.isub(this.m),p},j.prototype.sub=function(s,d){this._verify2(s,d);var p=s.sub(d);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},j.prototype.isub=function(s,d){this._verify2(s,d);var p=s.isub(d);return p.cmpn(0)<0&&p.iadd(this.m),p},j.prototype.shl=function(s,d){return this._verify1(s),this.imod(s.ushln(d))},j.prototype.imul=function(s,d){return this._verify2(s,d),this.imod(s.imul(d))},j.prototype.mul=function(s,d){return this._verify2(s,d),this.imod(s.mul(d))},j.prototype.isqr=function(s){return this.imul(s,s.clone())},j.prototype.sqr=function(s){return this.mul(s,s)},j.prototype.sqrt=function(s){if(s.isZero())return s.clone();var d=this.m.andln(3);if(t(d%2===1),d===3){var p=this.m.add(new i(1)).iushrn(2);return this.pow(s,p)}for(var v=this.m.subn(1),C=0;!v.isZero()&&v.andln(1)===0;)C++,v.iushrn(1);t(!v.isZero());var m=new i(1).toRed(this),y=m.redNeg(),g=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);this.pow(f,g).cmp(y)!==0;)f.redIAdd(y);for(var x=this.pow(f,v),R=this.pow(s,v.addn(1).iushrn(1)),u=this.pow(s,v),M=C;u.cmp(m)!==0;){for(var k=u,F=0;k.cmp(m)!==0;F++)k=k.redSqr();t(F<M);var H=this.pow(x,new i(1).iushln(M-F-1));R=R.redMul(H),x=H.redSqr(),u=u.redMul(x),M=F}return R},j.prototype.invm=function(s){var d=s._invmp(this.m);return d.negative!==0?(d.negative=0,this.imod(d).redNeg()):this.imod(d)},j.prototype.pow=function(s,d){if(d.isZero())return new i(1).toRed(this);if(d.cmpn(1)===0)return s.clone();var p=4,v=new Array(1<<p);v[0]=new i(1).toRed(this),v[1]=s;for(var C=2;C<v.length;C++)v[C]=this.mul(v[C-1],s);var m=v[0],y=0,g=0,f=d.bitLength()%26;for(f===0&&(f=26),C=d.length-1;C>=0;C--){for(var x=d.words[C],R=f-1;R>=0;R--){var u=x>>R&1;if(m!==v[0]&&(m=this.sqr(m)),u===0&&y===0){g=0;continue}y<<=1,y|=u,g++,!(g!==p&&(C!==0||R!==0))&&(m=this.mul(m,v[y]),g=0,y=0)}f=26}return m},j.prototype.convertTo=function(s){var d=s.umod(this.m);return d===s?d.clone():d},j.prototype.convertFrom=function(s){var d=s.clone();return d.red=null,d},i.mont=function(s){return new ne(s)};function ne(A){j.call(this,A),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(ne,j),ne.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},ne.prototype.convertFrom=function(s){var d=this.imod(s.mul(this.rinv));return d.red=null,d},ne.prototype.imul=function(s,d){if(s.isZero()||d.isZero())return s.words[0]=0,s.length=1,s;var p=s.imul(d),v=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=p.isub(v).iushrn(this.shift),m=C;return C.cmp(this.m)>=0?m=C.isub(this.m):C.cmpn(0)<0&&(m=C.iadd(this.m)),m._forceRed(this)},ne.prototype.mul=function(s,d){if(s.isZero()||d.isZero())return new i(0)._forceRed(this);var p=s.mul(d),v=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=p.isub(v).iushrn(this.shift),m=C;return C.cmp(this.m)>=0?m=C.isub(this.m):C.cmpn(0)<0&&(m=C.iadd(this.m)),m._forceRed(this)},ne.prototype.invm=function(s){var d=this.imod(s._invmp(this.m).mul(this.r2));return d._forceRed(this)}})(typeof I0>"u"||I0,Wf)});var bc=ut((w5,Zo)=>{"use strict";(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 a=!n.JS_SHA3_NO_COMMON_JS&&typeof Zo=="object"&&Zo.exports,c=typeof define=="function"&&define.amd,l=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",h="0123456789abcdef".split(""),b=[31,7936,2031616,520093696],E=[4,1024,262144,67108864],_=[1,256,65536,16777216],S=[6,1536,393216,100663296],w=[0,8,16,24],T=[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],N=[224,256,384,512],P=[128,256],I=["hex","buffer","arrayBuffer","array","digest"],D={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(u){return Object.prototype.toString.call(u)==="[object Array]"}),l&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(u){return typeof u=="object"&&u.buffer&&u.buffer.constructor===ArrayBuffer});for(var U=function(u,M,k){return function(F){return new f(u,M,u).update(F)[k]()}},q=function(u,M,k){return function(F,H){return new f(u,M,H).update(F)[k]()}},G=function(u,M,k){return function(F,H,Q,W){return s["cshake"+u].update(F,H,Q,W)[k]()}},te=function(u,M,k){return function(F,H,Q,W){return s["kmac"+u].update(F,H,Q,W)[k]()}},Z=function(u,M,k,F){for(var H=0;H<I.length;++H){var Q=I[H];u[Q]=M(k,F,Q)}return u},Y=function(u,M){var k=U(u,M,"hex");return k.create=function(){return new f(u,M,u)},k.update=function(F){return k.create().update(F)},Z(k,U,u,M)},ue=function(u,M){var k=q(u,M,"hex");return k.create=function(F){return new f(u,M,F)},k.update=function(F,H){return k.create(H).update(F)},Z(k,q,u,M)},j=function(u,M){var k=D[u],F=G(u,M,"hex");return F.create=function(H,Q,W){return!Q&&!W?s["shake"+u].create(H):new f(u,M,H).bytepad([Q,W],k)},F.update=function(H,Q,W,V){return F.create(Q,W,V).update(H)},Z(F,G,u,M)},ne=function(u,M){var k=D[u],F=te(u,M,"hex");return F.create=function(H,Q,W){return new x(u,M,Q).bytepad(["KMAC",W],k).bytepad([H],k)},F.update=function(H,Q,W,V){return F.create(H,W,V).update(Q)},Z(F,te,u,M)},A=[{name:"keccak",padding:_,bits:N,createMethod:Y},{name:"sha3",padding:S,bits:N,createMethod:Y},{name:"shake",padding:b,bits:P,createMethod:ue},{name:"cshake",padding:E,bits:P,createMethod:j},{name:"kmac",padding:E,bits:P,createMethod:ne}],s={},d=[],p=0;p<A.length;++p)for(var v=A[p],C=v.bits,m=0;m<C.length;++m){var y=v.name+"_"+C[m];if(d.push(y),s[y]=v.createMethod(C[m],v.padding),v.name!=="sha3"){var g=v.name+C[m];d.push(g),s[g]=s[y]}}function f(u,M,k){this.blocks=[],this.s=[],this.padding=M,this.outputBits=k,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(u<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=k>>5,this.extraBytes=(k&31)>>3;for(var F=0;F<50;++F)this.s[F]=0}f.prototype.update=function(u){if(this.finalized)throw new Error(e);var M,k=typeof u;if(k!=="string"){if(k==="object"){if(u===null)throw new Error(r);if(l&&u.constructor===ArrayBuffer)u=new Uint8Array(u);else if(!Array.isArray(u)&&(!l||!ArrayBuffer.isView(u)))throw new Error(r)}else throw new Error(r);M=!0}for(var F=this.blocks,H=this.byteCount,Q=u.length,W=this.blockCount,V=0,Ie=this.s,J,re;V<Q;){if(this.reset)for(this.reset=!1,F[0]=this.block,J=1;J<W+1;++J)F[J]=0;if(M)for(J=this.start;V<Q&&J<H;++V)F[J>>2]|=u[V]<<w[J++&3];else for(J=this.start;V<Q&&J<H;++V)re=u.charCodeAt(V),re<128?F[J>>2]|=re<<w[J++&3]:re<2048?(F[J>>2]|=(192|re>>6)<<w[J++&3],F[J>>2]|=(128|re&63)<<w[J++&3]):re<55296||re>=57344?(F[J>>2]|=(224|re>>12)<<w[J++&3],F[J>>2]|=(128|re>>6&63)<<w[J++&3],F[J>>2]|=(128|re&63)<<w[J++&3]):(re=65536+((re&1023)<<10|u.charCodeAt(++V)&1023),F[J>>2]|=(240|re>>18)<<w[J++&3],F[J>>2]|=(128|re>>12&63)<<w[J++&3],F[J>>2]|=(128|re>>6&63)<<w[J++&3],F[J>>2]|=(128|re&63)<<w[J++&3]);if(this.lastByteIndex=J,J>=H){for(this.start=J-H,this.block=F[W],J=0;J<W;++J)Ie[J]^=F[J];R(Ie),this.reset=!0}else this.start=J}return this},f.prototype.encode=function(u,M){var k=u&255,F=1,H=[k];for(u=u>>8,k=u&255;k>0;)H.unshift(k),u=u>>8,k=u&255,++F;return M?H.push(F):H.unshift(F),this.update(H),H.length},f.prototype.e