Scopevisio / eudgc

A totally free (Apache 2.0) implementation of the Covid Vaccination Certifcate parsing and validation (more accurately EuDGC) in Javascript/Typescript. This works completely on the client side if needed. Serverside is possible too of course.
23 stars 13 forks source link

Working with nativescript angular ? #2

Open kriefsacha opened 3 years ago

kriefsacha commented 3 years ago

Hi,

I'm trying to make this work with nativescript angular but when i run it i have tons of lines like:

"return i(void 0!==s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var s,a,h="le"===e,u=new t(o),l=this.clone();if(h){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),u[a]=s;for(;a<o;a++)u[a]=0}else{for(a=0;a<o-n;a++)u[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),u[o-a-1]=s}return u},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return i(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return i(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var i=0;i<r.length;i++)this.words[i]=e.words[i]^r.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return i(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var n=0;n<e;n++)this.words[n]=67108863&~this.words[n];return r>0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var r=t/26|0,n=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<n:this.words[r]&~(1<<n),this.strip()},o.prototype.iadd=function(t){var e,r,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,i=t):(r=t,i=this);for(var n=0,o=0;o<i.length;o++)e=(0|r.words[o])+(0|i.words[o])+n,this.words[o]=67108863&e,n=e>>>26;for(;0!==n&&o<r.length;o++)e=(0|r.words[o])+n,this.words[o]=67108863&e,n=e>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this.normSign();var r,i,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,i=t):(r=t,i=this);for(var o=0,s=0;s<i.length;s++)o=(e=(0|r.words[s])-(0|i.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)o=(e=(0|r.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var i,n,o,s=t.words,a=e.words,h=r.words,u=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],g=8191&d,A=d>>>13,M=0|s[2],p=8191&M,w=M>>>13,B=0|s[3],m=8191&B,E=B>>>13,y=0|s[4],b=8191&y,I=y>>>13,v=0|s[5],C=8191&v,Q=v>>>13,D=0|s[6],N=8191&D,R=D>>>13,G=0|s[7],U=8191&G,V=G>>>13,S=0|s[8],T=8191&S,Y=S>>>13,k=0|s[9],F=8191&k,L=k>>>13,j=0|a[0],Z=8191&j,x=j>>>13,z=0|a[1],O=8191&z,H=z>>>13,=0|a[2],W=8191&,J=>>>13,X=0|a[3],P=8191&X,K=X>>>13,q=0|a[4],$=8191&q,tt=q>>>13,et=0|a[5],rt=8191&et,it=et>>>13,nt=0|a[6],ot=8191&nt,st=nt>>>13,at=0|a[7],ht=8191&at,ut=at>>>13,lt=0|a[8],ct=8191&lt,ft=lt>>>13,dt=0|a[9],gt=8191&dt,At=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var Mt=(u+(i=Math.imul(c,Z))|0)+((8191&(n=(n=Math.imul(c,x))+Math.imul(f,Z)|0))<<13)|0;u=((o=Math.imul(f,x))+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(g,Z),n=(n=Math.imul(g,x))+Math.imul(A,Z)|0,o=Math.imul(A,x);var pt=(u+(i=i+Math.imul(c,O)|0)|0)+((8191&(n=(n=n+Math.imul(c,H)|0)+Math.imul(f,O)|0))<<13)|0;u=((o=o+Math.imul(f,H)|0)+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,i=Math.imul(p,Z),n=(n=Math.imul(p,x))+Math.imul(w,Z)|0,o=Math.imul(w,x),i=i+Math.imul(g,O)|0,n=(n=n+Math.imul(g,H)|0)+Math.imul(A,O)|0,o=o+Math.imul(A,H)|0;var wt=(u+(i=i+Math.imul(c,W)|0)|0)+((8191&(n=(n=n+Math.imul(c,J)|0)+Math.imul(f,W)|0))<<13)|0;u=((o=o+Math.imul(f,J)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(m,Z),n=(n=Math.imul(m,x))+Math.imul(E,Z)|0,o=Math.imul(E,x),i=i+Math.imul(p,O)|0,n=(n=n+Math.imul(p,H)|0)+Math.imul(w,O)|0,o=o+Math.imul(w,H)|0,i=i+Math.imul(g,W)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,J)|0;var Bt=(u+(i=i+Math.imul(c,P)|0)|0)+((8191&(n=(n=n+Math.imul(c,K)|0)+Math.imul(f,P)|0))<<13)|0;u=((o=o+Math.imul(f,K)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,i=Math.imul(b,Z),n=(n=Math.imul(b,x))+Math.imul(I,Z)|0,o=Math.imul(I,x),i=i+Math.imul(m,O)|0,n=(n=n+Math.imul(m,H)|0)+Math.imul(E,O)|0,o=o+Math.imul(E,H)|0,i=i+Math.imul(p,W)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,J)|0,i=i+Math.imul(g,P)|0,n=(n=n+Math.imul(g,K)|0)+Math.imul(A,P)|0,o=o+Math.imul(A,K)|0;var mt=(u+(i=i+Math.imul(c,$)|0)|0)+((8191&(n=(n=n+Math.imul(c,tt)|0)+Math.imul(f,$)|0))<<13)|0;u=((o=o+Math.imul(f,tt)|0)+(n>>>13)|0)+(mt>>>26)|0,mt&=67108863,i=Math.imul(C,Z),n=(n=Math.imul(C,x))+Math.imul(Q,Z)|0,o=Math.imul(Q,x),i=i+Math.imul(b,O)|0,n=(n=n+Math.imul(b,H)|0)+Math.imul(I,O)|0,o=o+Math.imul(I,H)|0,i=i+Math.imul(m,W)|0,n=(n=n+Math.imul(m,J)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,J)|0,i=i+Math.imul(p,P)|0,n=(n=n+Math.imul(p,K)|0)+Math.imul(w,P)|0,o=o+Math.imul(w,K)|0,i=i+Math.imul(g,$)|0,n=(n=n+Math.imul(g,tt)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,tt)|0;var Et=(u+(i=i+Math.imul(c,rt)|0)|0)+((8191&(n=(n=n+Math.imul(c,it)|0)+Math.imul(f,rt)|0))<<13)|0;u=((o=o+Math.imul(f,it)|0)+(n>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(N,Z),n=(n=Math.imul(N,x))+Math.imul(R,Z)|0,o=Math.imul(R,x),i=i+Math.imul(C,O)|0,n=(n=n+Math.imul(C,H)|0)+Math.imul(Q,O)|0,o=o+Math.imul(Q,H)|0,i=i+Math.imul(b,W)|0,n=(n=n+Math.imul(b,J)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,J)|0,i=i+Math.imul(m,P)|0,n=(n=n+Math.imul(m,K)|0)+Math.imul(E,P)|0,o=o+Math.imul(E,K)|0,i=i+Math.imul(p,$)|0,n=(n=n+Math.imul(p,tt)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,tt)|0,i=i+Math.imul(g,rt)|0,n=(n=n+Math.imul(g,it)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,it)|0;var yt=(u+(i=i+Math.imul(c,ot)|0)|0)+((8191&(n=(n=n+Math.imul(c,st)|0)+Math.imul(f,ot)|0))<<13)|0;u=((o=o+Math.imul(f,st)|0)+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(U,Z),n=(n=Math.imul(U,x))+Math.imul(V,Z)|0,o=Math.imul(V,x),i=i+Math.imul(N,O)|0,n=(n=n+Math.imul(N,H)|0)+Math.imul(R,O)|0,o=o+Math.imul(R,H)|0,i=i+Math.imul(C,W)|0,n=(n=n+Math.imul(C,J)|0)+Math.imul(Q,W)|0,o=o+Math.imul(Q,J)|0,i=i+Math.imul(b,P)|0,n=(n=n+Math.imul(b,K)|0)+Math.imul(I,P)|0,o=o+Math.imul(I,K)|0,i=i+Math.imul(m,$)|0,n=(n=n+Math.imul(m,tt)|0)+Math.imul(E,$)|0,o=o+Math.imul(E,tt)|0,i=i+Math.imul(p,rt)|0,n=(n=n+Math.imul(p,it)|0)+Math.imul(w,rt)|0,o=o+Math.imul(w,it)|0,i=i+Math.imul(g,ot)|0,n=(n=n+Math.imul(g,st)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0;var bt=(u+(i=i+Math.imul(c,ht)|0)|0)+((8191&(n=(n=n+Math.imul(c,ut)|0)+Math.imul(f,ht)|0))<<13)|0;u=((o=o+Math.imul(f,ut)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(T,Z),n=(n=Math.imul(T,x))+Math.imul(Y,Z)|0,o=Math.imul(Y,x),i=i+Math.imul(U,O)|0,n=(n=n+Math.imul(U,H)|0)+Math.imul(V,O)|0,o=o+Math.imul(V,H)|0,i=i+Math.imul(N,W)|0,n=(n=n+Math.imul(N,J)|0)+Math.imul(R,W)|0,o=o+Math.imul(R,J)|0,i=i+Math.imul(C,P)|0,n=(n=n+Math.imul(C,K)|0)+Math.imul(Q,P)|0,o=o+Math.imul(Q,K)|0,i=i+Math.imul(b,$)|0,n=(n=n+Math.imul(b,tt)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,tt)|0,i=i+Math.imul(m,rt)|0,n=(n=n+Math.imul(m,it)|0)+Math.imul(E,rt)|0,o=o+Math.imul(E,it)|0,i=i+Math.imul(p,ot)|0,n=(n=n+Math.imul(p,st)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,st)|0,i=i+Math.imul(g,ht)|0,n=(n=n+Math.imul(g,ut)|0)+Math.imul(A,ht)|0,o=o+Math.imul(A,ut)|0;var It=(u+(i=i+Math.imul(c,ct)|0)|0)+((8191&(n=(n=n+Math.imul(c,ft)|0)+Math.imul(f,ct)|0))<<13)|0;u=((o=o+Math.imul(f,ft)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,i=Math.imul(F,Z),n=(n=Math.imul(F,x))+Math.imul(L,Z)|0,o=Math.imul(L,x),i=i+Math.imul(T,O)|0,n=(n=n+Math.imul(T,H)|0)+Math.imul(Y,O)|0,o=o+Math.imul(Y,H)|0,i=i+Math.imul(U,W)|0,n=(n=n+Math.imul(U,J)|0)+Math.imul(V,W)|0,o=o+Math.imul(V,J)|0,i=i+Math.imul(N,P)|0,n=(n=n+Math.imul(N,K)|0)+Math.imul(R,P)|0,o=o+Math.imul(R,K)|0,i=i+Math.imul(C,$)|0,n=(n=n+Math.imul(C,tt)|0)+Math.imul(Q,$)|0,o=o+Math.imul(Q,tt)|0,i=i+Math.imul(b,rt)|0,n=(n=n+Math.imul(b,it)|0)+Math.imul(I,rt)|0,o=o+Math.imul(I,it)|0,i=i+Math.imul(m,ot)|0,n=(n=n+Math.imul(m,st)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,st)|0,i=i+Math.imul(p,ht)|0,n=(n=n+Math.imul(p,ut)|0)+Math.imul(w,ht)|0,o=o+Math.imul(w,ut)|0,i=i+Math.imul(g,ct)|0,n=(n=n+Math.imul(g,ft)|0)+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0;var vt=(u+(i=i+Math.imul(c,gt)|0)|0)+((8191&(n=(n=n+Math.imul(c,At)|0)+Math.imul(f,gt)|0))<<13)|0;u=((o=o+Math.imul(f,At)|0)+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(F,O),n=(n=Math.imul(F,H))+Math.imul(L,O)|0,o=Math.imul(L,H),i=i+Math.imul(T,W)|0,n=(n=n+Math.imul(T,J)|0)+Math.imul(Y,W)|0,o=o+Math.imul(Y,J)|0,i=i+Math.imul(U,P)|0,n=(n=n+Math.imul(U,K)|0)+Math.imul(V,P)|0,o=o+Math.imul(V,K)|0,i=i+Math.imul(N,$)|0,n=(n=n+Math.imul(N,tt)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,tt)|0,i=i+Math.imul(C,rt)|0,n=(n=n+Math.imul(C,it)|0)+Math.imul(Q,rt)|0,o=o+Math.imul(Q,it)|0,i=i+Math.imul(b,ot)|0,n=(n=n+Math.imul(b,st)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,i=i+Math.imul(m,ht)|0,n=(n=n+Math.imul(m,ut)|0)+Math.imul(E,ht)|0,o=o+Math.imul(E,ut)|0,i=i+Math.imul(p,ct)|0,n=(n=n+Math.imul(p,ft)|0)+Math.imul(w,ct)|0,o=o+Math.imul(w,ft)|0;var Ct=(u+(i=i+Math.imul(g,gt)|0)|0)+((8191&(n=(n=n+Math.imul(g,At)|0)+Math.imul(A,gt)|0))<<13)|0;u=((o=o+Math.imul(A,At)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(F,W),n=(n=Math.imul(F,J))+Math.imul(L,W)|0,o=Math.imul(L,J),i=i+Math.imul(T,P)|0,n=(n=n+Math.imul(T,K)|0)+Math.imul(Y,P)|0,o=o+Math.imul(Y,K)|0,i=i+Math.imul(U,$)|0,n=(n=n+Math.imul(U,tt)|0)+Math.imul(V,$)|0,o=o+Math.imul(V,tt)|0,i=i+Math.imul(N,rt)|0,n=(n=n+Math.imul(N,it)|0)+Math.imul(R,rt)|0,o=o+Math.imul(R,it)|0,i=i+Math.imul(C,ot)|0,n=(n=n+Math.imul(C,st)|0)+Math.imul(Q,ot)|0,o=o+Math.imul(Q,st)|0,i=i+Math.imul(b,ht)|0,n=(n=n+Math.imul(b,ut)|0)+Math.imul(I,ht)|0,o=o+Math.imul(I,ut)|0,i=i+Math.imul(m,ct)|0,n=(n=n+Math.imul(m,ft)|0)+Math.imul(E,ct)|0,o=o+Math.imul(E,ft)|0;var Qt=(u+(i=i+Math.imul(p,gt)|0)|0)+((8191&(n=(n=n+Math.imul(p,At)|0)+Math.imul(w,gt)|0))<<13)|0;u=((o=o+Math.imul(w,At)|0)+(n>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,i=Math.imul(F,P),n=(n=Math.imul(F,K))+Math.imul(L,P)|0,o=Math.imul(L,K),i=i+Math.imul(T,$)|0,n=(n=n+Math.imul(T,tt)|0)+Math.imul(Y,$)|0,o=o+Math.imul(Y,tt)|0,i=i+Math.imul(U,rt)|0,n=(n=n+Math.imul(U,it)|0)+Math.imul(V,rt)|0,o=o+Math.imul(V,it)|0,i=i+Math.imul(N,ot)|0,n=(n=n+Math.imul(N,st)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,st)|0,i=i+Math.imul(C,ht)|0,n=(n=n+Math.imul(C,ut)|0)+Math.imul(Q,ht)|0,o=o+Math.imul(Q,ut)|0,i=i+Math.imul(b,ct)|0,n=(n=n+Math.imul(b,ft)|0)+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0;var Dt=(u+(i=i+Math.imul(m,gt)|0)|0)+((8191&(n=(n=n+Math.imul(m,At)|0)+Math.imul(E,gt)|0))<<13)|0;u=((o=o+Math.imul(E,At)|0)+(n>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,i=Math.imul(F,$),n=(n=Math.imul(F,tt))+Math.imul(L,$)|0,o=Math.imul(L,tt),i=i+Math.imul(T,rt)|0,n=(n=n+Math.imul(T,it)|0)+Math.imul(Y,rt)|0,o=o+Math.imul(Y,it)|0,i=i+Math.imul(U,ot)|0,n=(n=n+Math.imul(U,st)|0)+Math.imul(V,ot)|0,o=o+Math.imul(V,st)|0,i=i+Math.imul(N,ht)|0,n=(n=n+Math.imul(N,ut)|0)+Math.imul(R,ht)|0,o=o+Math.imul(R,ut)|0,i=i+Math.imul(C,ct)|0,n=(n=n+Math.imul(C,ft)|0)+Math.imul(Q,ct)|0,o=o+Math.imul(Q,ft)|0;var Nt=(u+(i=i+Math.imul(b,gt)|0)|0)+((8191&(n=(n=n+Math.imul(b,At)|0)+Math.imul(I,gt)|0))<<13)|0;u=((o=o+Math.imul(I,At)|0)+(n>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,i=Math.imul(F,rt),n=(n=Math.imul(F,it))+Math.imul(L,rt)|0,o=Math.imul(L,it),i=i+Math.imul(T,ot)|0,n=(n=n+Math.imul(T,st)|0)+Math.imul(Y,ot)|0,o=o+Math.imul(Y,st)|0,i=i+Math.imul(U,ht)|0,n=(n=n+Math.imul(U,ut)|0)+Math.imul(V,ht)|0,o=o+Math.imul(V,ut)|0,i=i+Math.imul(N,ct)|0,n=(n=n+Math.imul(N,ft)|0)+Math.imul(R,ct)|0,o=o+Math.imul(R,ft)|0;var Rt=(u+(i=i+Math.imul(C,gt)|0)|0)+((8191&(n=(n=n+Math.imul(C,At)|0)+Math.imul(Q,gt)|0))<<13)|0;u=((o=o+Math.imul(Q,At)|0)+(n>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,i=Math.imul(F,ot),n=(n=Math.imul(F,st))+Math.imul(L,ot)|0,o=Math.imul(L,st),i=i+Math.imul(T,ht)|0,n=(n=n+Math.imul(T,ut)|0)+Math.imul(Y,ht)|0,o=o+Math.imul(Y,ut)|0,i=i+Math.imul(U,ct)|0,n=(n=n+Math.imul(U,ft)|0)+Math.imul(V,ct)|0,o=o+Math.imul(V,ft)|0;var Gt=(u+(i=i+Math.imul(N,gt)|0)|0)+((8191&(n=(n=n+Math.imul(N,At)|0)+Math.imul(R,gt)|0))<<13)|0;u=((o=o+Math.imul(R,At)|0)+(n>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,i=Math.imul(F,ht),n=(n=Math.imul(F,ut))+Math.imul(L,ht)|0,o=Math.imul(L,ut),i=i+Math.imul(T,ct)|0,n=(n=n+Math.imul(T,ft)|0)+Math.imul(Y,ct)|0,o=o+Math.imul(Y,ft)|0;var Ut=(u+(i=i+Math.imul(U,gt)|0)|0)+((8191&(n=(n=n+Math.imul(U,At)|0)+Math.imul(V,gt)|0))<<13)|0;u=((o=o+Math.imul(V,At)|0)+(n>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,i=Math.imul(F,ct),n=(n=Math.imul(F,ft))+Math.imul(L,ct)|0,o=Math.imul(L,ft);var Vt=(u+(i=i+Math.imul(T,gt)|0)|0)+((8191&(n=(n=n+Math.imul(T,At)|0)+Math.imul(Y,gt)|0))<<13)|0;u=((o=o+Math.imul(Y,At)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863;var St=(u+(i=Math.imul(F,gt))|0)+((8191&(n=(n=Math.imul(F,At))+Math.imul(L,gt)|0))<<13)|0;return u=((o=Math.imul(L,At))+(n>>>13)|0)+(St>>>26)|0,St&=67108863,h[0]=Mt,h[1]=pt,h[2]=wt,h[3]=Bt,h[4]=mt,h[5]=Et,h[6]=yt,h[7]=bt,h[8]=It,h[9]=vt,h[10]=Ct,h[11]=Qt,h[12]=Dt,h[13]=Nt,h[14]=Rt,h[15]=Gt,h[16]=Ut,h[17]=Vt,h[18]=St,0!==u&&(h[19]=u,r.length++),r};function A(t,e,r){return(new M).mulp(t,e,r)}function M(t,e){this.x=t,this.y=e}Math.imul||(g=d),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):r<63?d(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var i=0,n=0,o=0;o<r.length-1;o++){var s=n;n=0;for(var a=67108863&i,h=Math.min(o,e.length-1),u=Math.max(0,o-t.length+1);u<=h;u++){var l=o-u,c=(0|t.words[l])(0|e.words[u]),f=67108863&c;a=67108863&(f=f+a|0),n+=(s=(s=s+(c/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}r.words[o]=a,i=s,s=n}return 0!==i?r.words[o]=i:r.length--,r.strip()}(this,t,e):A(this,t,e)},M.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,r,t);return e},M.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var i=0,n=0;n<e;n++)i|=(1&t)<<e-n-1,t>>=1;return i},M.prototype.permute=function(t,e,r,i,n,o){for(var s=0;s<o;s++)i[s]=e[t[s]],n[s]=r[t[s]]},M.prototype.transform=function(t,e,r,i,n,o){this.permute(o,t,e,r,i,n);for(var s=1;s<n;s<<=1)for(var a=s<<1,h=Math.cos(2Math.PI/a),u=Math.sin(2Math.PI/a),l=0;l<n;l+=a)for(var c=h,f=u,d=0;d<s;d++){var g=r[l+d],A=i[l+d],M=r[l+d+s],p=i[l+d+s],w=cM-fp;p=cp+fM,M=w,r[l+d]=g+M,i[l+d]=A+p,r[l+d+s]=g-M,i[l+d+s]=A-p,d!==a&&(w=hc-uf,f=hf+uc,c=w)}},M.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),i=1&r,n=0;for(r=r/2|0;r;r>>>=1)n++;return 1<<n+1+i},M.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=t[i];t[i]=t[r-i-1],t[r-i-1]=n,n=e[i],e[i]=-e[r-i-1],e[r-i-1]=-n}},M.prototype.normalize13b=function(t,e){for(var r=0,i=0;i<e/2;i++){var n=8192Math.round(t[2i+1]/e)+Math.round(t[2i]/e)+r;t[i]=67108863&n,r=n<67108864?0:n/67108864|0}return t},M.prototype.convert13b=function(t,e,r,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2s]=8191&o,o>>>=13,r[2s+1]=8191&o,o>>>=13;for(s=2e;s<n;++s)r[s]=0;i(0===o),i(0==(-8192&o))},M.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},M.prototype.mulp=function(t,e,r){var i=2this.guessLen13b(t.length,e.length),n=this.makeRBT(i),o=this.stub(i),s=new Array(i),a=new Array(i),h=new Array(i),u=new Array(i),l=new Array(i),c=new Array(i),f=r.words;f.length=i,this.convert13b(t.words,t.length,s,i),this.convert13b(e.words,e.length,u,i),this.transform(s,o,a,h,i,n),this.transform(u,o,l,c,i,n);for(var d=0;d<i;d++){var g=a[d]l[d]-h[d]c[d];h[d]=a[d]c[d]+h[d]l[d],a[d]=g}return this.conjugate(a,h,i),this.transform(a,h,f,o,i,n),this.conjugate(f,o,i),this.normalize13b(f,i),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),A(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){i("number"==typeof t),i(t<67108864);for(var e=0,r=0;r<this.length;r++){var n=(0|this.words[r])t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var i=r/26|0,n=r%26;e[r]=(t.words[i]&1<<n)>>>n}return e}(t);if(0===e.length)return new o(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var n=r.sqr();i<e.length;i++,n=n.sqr())0!==e[i]&&(r=r.mul(n));return r},o.prototype.iushln=function(t){i("number"==typeof t&&t>=0);var e,r=t%26,n=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,h=(0|this.words[e])-a<<r;this.words[e]=h|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e<n;e++)this.words[e]=0;this.length+=n}return this.strip()},o.prototype.ishln=function(t){return i(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var n;i("number"==typeof t&&t>=0),n=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,h=r;if(n-=s,n=Math.max(0,n),h){for(var u=0;u<s;u++)h.words[u]=this.words[u];h.length=s}if(0===s);else if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=n);u--){var c=0|this.words[u];this.words[u]=l<<26-o|c>>>o,l=c&a}return h&&0!==l&&(h.words[h.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return i(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,n=1<<e;return!(this.length<=r||!(this.words[r]&n))},o.prototype.imaskn=function(t){i("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var n=67108863^67108863>>>e<<e;this.words[this.length-1]&=n}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return i("number"==typeof t),i(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(i("number"==typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var n,o,s=t.length+r;this._expand(s);var a=0;for(n=0;n<t.length;n++){o=(0|this.words[n+r])+a;var h=(0|t.words[n])e;a=((o-=67108863&h)>>26)-(h/67108864|0),this.words[n+r]=67108863&o}for(;n<this.length-r;n++)a=(o=(0|this.words[n+r])+a)>>26,this.words[n+r]=67108863&o;if(0===a)return this.strip();for(i(-1===a),a=0,n=0;n<this.length;n++)a=(o=-(0|this.words[n])+a)>>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),i=this.clone(),n=t,s=0|n.words[n.length-1];0!=(r=26-this._countBits(s))&&(n=n.ushln(r),i.iushln(r),s=0|n.words[n.length-1]);var a,h=i.length-n.length;if("mod"!==e){(a=new o(null)).length=h+1,a.words=new Array(a.length);for(var u=0;u<a.length;u++)a.words[u]=0}var l=i.clone()._ishlnsubmul(n,1,h);0===l.negative&&(i=l,a&&(a.words[h]=1));for(var c=h-1;c>=0;c--){var f=67108864(0|i.words[n.length+c])+(0|i.words[n.length+c-1]);for(f=Math.min(f/s|0,67108863),i._ishlnsubmul(n,f,c);0!==i.negative;)f--,i.negative=0,i._ishlnsubmul(n,1,c),i.isZero()||(i.negative^=1);a&&(a.words[c]=f)}return a&&a.strip(),i.strip(),"div"!==e&&0!==r&&i.iushrn(r),{div:a||null,mod:i}},o.prototype.divmod=function(t,e,r){return i(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(n=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:n,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(n=a.div.neg()),{div:n,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var n,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),n=t.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,r=0,n=this.length-1;n>=0;n--)r=(er+(0|this.words[n]))%t;return r},o.prototype.idivn=function(t){i(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864e;this.words[r]=n/t|0,e=n%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),a=new o(0),h=new o(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),c=e.clone();!e.isZero();){for(var f=0,d=1;0==(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(e.iushrn(f);f-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(l),s.isub(c)),n.iushrn(1),s.iushrn(1);for(var g=0,A=1;0==(r.words[0]&A)&&g<26;++g,A<<=1);if(g>0)for(r.iushrn(g);g-- >0;)(a.isOdd()||h.isOdd())&&(a.iadd(l),h.isub(c)),a.iushrn(1),h.iushrn(1);e.cmp(r)>=0?(e.isub(r),n.isub(a),s.isub(h)):(r.isub(e),a.isub(n),h.isub(s))}return{a,b:h,gcd:r.iushln(u)}},o.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,s=new o(1),a=new o(0),h=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0==(e.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(e.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(h),s.iushrn(1);for(var c=0,f=1;0==(r.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(r.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(h),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return(n=0===e.cmpn(1)?s:a).cmpn(0)<0&&n.iadd(t),n},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var i=0;e.isEven()&&r.isEven();i++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=e.cmp(r);if(n<0){var o=e;e=r,r=o}else if(0===n||0===r.cmpn(1))break;e.isub(r)}return r.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,r=(t-e)/26,n=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var o=n,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),i(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:n<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],n=0|t.words[r];if(i!==n){i<n?e=-1:i>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new b(t)},o.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var p={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function B(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function m(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function y(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function b(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function I(t){b.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e<this.n?-1:r.ucmp(this.p);return 0===i?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},n(B,w),B.prototype.split=function(t,e){for(var r=4194303,i=Math.min(t.length,9),n=0;n<i;n++)e.words[n]=t.words[n];if(e.length=i,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,n=10;n<t.length;n++){var s=0|t.words[n];t.words[n-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[n-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},B.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var i=0|t.words[r];e+=977i,t.words[r]=67108863&e,e=64i+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(m,w),n(E,w),n(y,w),y.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var i=19(0|t.words[r])+e,n=67108863&i;i>>>=26,t.words[r]=n,e=i}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(p[t])return p[t];var e;if("k256"===t)e=new B;else if("p224"===t)e=new m;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return p[t]=e,e},b.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},b.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},b.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},b.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},b.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},b.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},b.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},b.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},b.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},b.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},b.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},b.prototype.isqr=function(t){return this.imul(t,t.clone())},b.prototype.sqr=function(t){return this.mul(t,t)},b.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var a=new o(1).toRed(this),h=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2ll).toRed(this);0!==this.pow(l,u).cmp(h);)l.redIAdd(h);for(var c=this.pow(l,n),f=this.pow(t,n.addn(1).iushrn(1)),d=this.pow(t,n),g=s;0!==d.cmp(a);){for(var A=d,M=0;0!==A.cmp(a);M++)A=A.redSqr();i(M<g);var p=this.pow(c,new o(1).iushln(g-M-1));f=f.redMul(p),c=p.redSqr(),d=d.redMul(c),g=M}return f},b.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},b.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var n=r[0],s=0,a=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var u=e.words[i],l=h-1;l>=0;l--){var c=u>>l&1;n!==r[0]&&(n=this.sqr(n)),0!==c||0!==s?(s<<=1,s|=c,(4==++a||0===i&&0===l)&&(n=this.mul(n,r[s]),a=0,s=0)):a=0}h=26}return n},b.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},b.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new I(t)},n(I,b),I.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},I.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},I.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},I.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},I.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},9282:(t,e,r)=>{"use strict";var i=r(4155);function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o,s,a=r(2136).codes,h=a.ERR_AMBIGUOUS_ARGUMENT,u=a.ERR_INVALID_ARG_TYPE,l=a.ERR_INVALID_ARG_VALUE,c=a.ERR_INVALID_RETURN_VALUE,f=a.ERR_MISSING_ARGS,d=r(5961),g=r(9539).inspect,A=r(9539).types,M=A.isPromise,p=A.isRegExp,w=Object.assign?Object.assign:r(8091).assign,B=Object.is?Object.is:r(609);function m(){var t=r(9158);o=t.isDeepEqual,s=t.isDeepStrictEqual}new Map;var E=!1,y=t.exports=C,b={};function I(t){if(t.message instanceof Error)throw t.message;throw new d(t)}function v(t,e,r,i){if(!r){var n=!1;if(0===e)n=!0,i="No value argument passed to assert.ok()";else if(i instanceof Error)throw i;var o=new d({actual:r,expected:!0,message:i,operator:"==",stackStartFn:t});throw o.generatedMessage=n,o}}function C(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];v.apply(void 0,[C,e.length].concat(e))}y.fail=function t(e,r,n,o,s){var a,h=arguments.length;if(0===h)a="Failed";else if(1===h)n=e,e=void 0;else{if(!1===E){E=!0;var u=i.emitWarning?i.emitWarning:console.warn.bind(console);u("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===h&&(o="!=")}if(n instanceof Error)throw n;var l={actual:e,expected:r,operator:void 0===o?"fail":o,stackStartFn:s||t};void 0!==n&&(l.message=n);var c=new d(l);throw a&&(c.message=a,c.generatedMessage=!0),c},y.AssertionError=d,y.ok=C,y.equal=function t(e,r,i){if(arguments.length<2)throw new f("actual","expected");e!=r&&I({actual:e,expected:r,message:i,operator:"==",stackStartFn:t})},y.notEqual=function t(e,r,i){if(arguments.length<2)throw new f("actual","expected");e==r&&I({actual:e,expected:r,message:i,operator:"!=",stackStartFn:t})},y.deepEqual=function t(e,r,i){if(arguments.length<2)throw new f("actual","expected");void 0===o&&m(),o(e,r)||I({actual:e,expected:r,message:i,operator:"deepEqual",stackStartFn:t})},y.notDeepEqual=function t(e,r,i){if(arguments.length<2)throw new f("actual","expected");void 0===o&&m(),o(e,r)&&I({actual:e,expected:r,message:i,operator:"notDeepEqual",stackStartFn:t})},y.deepStrictEqual=function t(e,r,i){if(arguments.length<2)throw new f("actual","expected");void 0===o&&m(),s(e,r)||I({actual:e,expected:r,message:i,operator:"deepStrictEqual",stackStartFn:t})},y.notDeepStrictEqual=function t(e,r,i){if(arguments.length<2)throw new f("actual","expected");void 0===o&&m(),s(e,r)&&I({actual:e,expected:r,message:i,operator:"notDeepStrictEqual",stackStartFn:t})},y.strictEqual=function t(e,r,i){if(arguments.length<2)throw new f("actual","expected");B(e,r)||I({actual:e,expected:r,message:i,operator:"strictEqual",stackStartFn:t})},y.notStrictEqual=function t(e,r,i){if(arguments.length<2)throw new f("actual","expected");B(e,r)&&I({actual:e,expected:r,message:i,operator:"notStrictEqual",stackStartFn:t})};var Q=function t(e,r,i){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r.forEach((function(t){t in e&&(void 0!==i&&"string"==typeof i[t]&&p(e[t])&&e[t].test(i[t])?n[t]=i[t]:n[t]=e[t])}))};function D(t,e,r,i,n,o){if(!(r in t)||!s(t[r],e[r])){if(!i){var a=new Q(t,n),h=new Q(e,n,t),u=new d({actual:a,expected:h,operator:"deepStrictEqual",stackStartFn:o});throw u.actual=t,u.expected=e,u.operator=o.name,u}I({actual:t,expected:e,message:i,operator:o.name,stackStartFn:o})}}function N(t,e,r,i){if("function"!=typeof e){if(p(e))return e.test(t);if(2===arguments.length)throw new u("expected",["Function","RegExp"],e);if("object"!==n(t)||null===t){var s=new d({actual:t,expected:e,message:r,operator:"deepStrictEqual",stackStartFn:i});throw s.operator=i.name,s}var a=Object.keys(e);if(e instanceof Error)a.push("name","message");else if(0===a.length)throw new l("error",e,"may not be an empty object");return void 0===o&&m(),a.forEach((function(n){"string"==typeof t[n]&&p(e[n])&&e[n].test(t[n])||D(t,e,n,r,a,i)})),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function R(t){if("function"!=typeof t)throw new u("fn","Function",t);try{t()}catch(t){return t}return b}function G(t){return M(t)||null!==t&&"object"===n(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function U(t){return Promise.resolve().then((function(){var e;if("function"==typeof t){if(!G(e=t()))throw new c("instance of Promise","promiseFn",e)}else{if(!G(t))throw new u("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then((function(){return e})).then((function(){return b})).catch((function(t){return t}))}))}function V(t,e,r,i){if("string"==typeof r){if(4===arguments.length)throw new u("error",["Object","Error","Function","RegExp"],r);if("object"===n(e)&&null!==e){if(e.message===r)throw new h("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===r)throw new h("error/message",'The error "'.concat(e,'" is identical to the message.'));i=r,r=void 0}else if(null!=r&&"object"!==n(r)&&"function"!=typeof r)throw new u("error",["Object","Error","Function","RegExp"],r);if(e===b){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=i?": ".concat(i):".";var s="rejects"===t.name?"rejection":"exception";I({actual:void 0,expected:r,operator:t.name,message:"Missing expected ".concat(s).concat(o),stackStartFn:t})}if(r&&!N(e,r,i,t))throw e}function S(t,e,r,i){if(e!==b){if("string"==typeof r&&(i=r,r=void 0),!r||N(e,r)){var n=i?": ".concat(i):".",o="doesNotReject"===t.name?"rejection":"exception";I({actual:e,expected:r,operator:t.name,message:"Got unwanted ".concat(o).concat(n,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function T(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];v.apply(void 0,[T,e.length].concat(e))}y.throws=function t(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];V.apply(void 0,[t,R(e)].concat(i))},y.rejects=function t(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return U(e).then((function(e){return V.apply(void 0,[t,e].concat(i))}))},y.doesNotThrow=function t(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];S.apply(void 0,[t,R(e)].concat(i))},y.doesNotReject=function t(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return U(e).then((function(e){return S.apply(void 0,[t,e].concat(i))}))},y.ifError=function t(e){if(null!=e){var r="ifError got unwanted exception: ";"object"===n(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?r+=e.constructor.name:r+=e.message:r+=g(e);var i=new d({actual:e,expected:null,operator:"ifError",message:r,stackStartFn:t}),o=e.stack;if("string"==typeof o){var s=o.split("\n");s.shift();for(var a=i.stack.split("\n"),h=0;h<s.length;h++){var u=a.indexOf(s[h]);if(-1!==u){a=a.slice(0,u);break}}i.stack="".concat(a.join("\n"),"\n").concat(s.join("\n"))}throw i}},y.strict=w(T,y,{equal:y.strictEqual,deepEqual:y.deepStrictEqual,notEqual:y.notStrictEqual,notDeepEqual:y.notDeepStrictEqual}),y.strict.strict=y.strict},5961:(t,e,r)=>{"use strict";var i=r(4155);function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){var e="function"==typeof Map?new Map:void 0;return(h=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return l(t,arguments,f(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),c(i,t)})(t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function l(t,e,r){return(l=u()?Reflect.construct:function(t,e,r){var i=[null];i.push.apply(i,e);var n=new(Function.bind.apply(t,i));return r&&c(n,r.prototype),n}).apply(null,arguments)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.proto=e,t})(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.proto||Object.getPrototypeOf(t)})(t)}function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var g=r(9539).inspect,A=r(2136).codes.ERR_INVALID_ARG_TYPE;function M(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var p="",w="",B="",m="",E={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function y(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"message",{value:t.message}),r}function b(t){return g(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var I=function(t){function e(t){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),"object"!==d(t)||null===t)throw new A("options","Object",t);var n=t.message,o=t.operator,h=t.stackStartFn,u=t.actual,l=t.expected,c=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)r=s(this,f(e).call(this,String(n)));else if(i.stderr&&i.stderr.isTTY&&(i.stderr&&i.stderr.getColorDepth&&1!==i.stderr.getColorDepth()?(p="",w="",m="",B=""):(p="",w="",m="",B="")),"object"===d(u)&&null!==u&&"object"===d(l)&&null!==l&&"stack"in u&&u instanceof Error&&"stack"in l&&l instanceof Error&&(u=y(u),l=y(l)),"deepStrictEqual"===o||"strictEqual"===o)r=s(this,f(e).call(this,function(t,e,r){var n="",o="",s=0,a="",h=!1,u=b(t),l=u.split("\n"),c=b(e).split("\n"),f=0,g="";if("strictEqual"===r&&"object"===d(t)&&"object"===d(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===l.length&&1===c.length&&l[0]!==c[0]){var A=l[0].length+c[0].length;if(A<=10){if(!("object"===d(t)&&null!==t||"object"===d(e)&&null!==e||0===t&&0===e))return"".concat(E[r],"\n\n")+"".concat(l[0]," !== ").concat(c[0],"\n")}else if("strictEqualObject"!==r&&A<(i.stderr&&i.stderr.isTTY?i.stderr.columns:80)){for(;l[0][f]===c[0][f];)f++;f>2&&(g="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",f),"^"),f=0)}}for(var y=l[l.length-1],I=c[c.length-1];y===I&&(f++<2?a="\n ".concat(y).concat(a):n=y,l.pop(),c.pop(),0!==l.length&&0!==c.length);)y=l[l.length-1],I=c[c.length-1];var v=Math.max(l.length,c.length);if(0===v){var C=u.split("\n");if(C.length>30)for(C[26]="".concat(p,"...").concat(m);C.length>27;)C.pop();return"".concat(E.notIdentical,"\n\n").concat(C.join("\n"),"\n")}f>3&&(a="\n".concat(p,"...").concat(m).concat(a),h=!0),""!==n&&(a="\n ".concat(n).concat(a),n="");var Q=0,D=E[r]+"\n".concat(w,"+ actual").concat(m," ").concat(B,"- expected").concat(m),N=" ".concat(p,"...").concat(m," Lines skipped");for(f=0;f<v;f++){var R=f-s;if(l.length<f+1)R>1&&f>2&&(R>4?(o+="\n".concat(p,"...").concat(m),h=!0):R>3&&(o+="\n ".concat(c[f-2]),Q++),o+="\n ".concat(c[f-1]),Q++),s=f,n+="\n".concat(B,"-").concat(m," ").concat(c[f]),Q++;else if(c.length<f+1)R>1&&f>2&&(R>4?(o+="\n".concat(p,"...").concat(m),h=!0):R>3&&(o+="\n ".concat(l[f-2]),Q++),o+="\n ".concat(l[f-1]),Q++),s=f,o+="\n".concat(w,"+").concat(m," ").concat(l[f]),Q++;else{var G=c[f],U=l[f],V=U!==G&&(!M(U,",")||U.slice(0,-1)!==G);V&&M(G,",")&&G.slice(0,-1)===U&&(V=!1,U+=","),V?(R>1&&f>2&&(R>4?(o+="\n".concat(p,"...").concat(m),h=!0):R>3&&(o+="\n ".concat(l[f-2]),Q++),o+="\n ".concat(l[f-1]),Q++),s=f,o+="\n".concat(w,"+").concat(m," ").concat(U),n+="\n".concat(B,"-").concat(m," ").concat(G),Q+=2):(o+=n,n="",1!==R&&0!==f||(o+="\n ".concat(U),Q++))}if(Q>20&&f<v-2)return"".concat(D).concat(N,"\n").concat(o,"\n").concat(p,"...").concat(m).concat(n,"\n")+"".concat(p,"...").concat(m)}return"".concat(D).concat(h?N:"","\n").concat(o).concat(n).concat(a).concat(g)}(u,l,o)));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var g=E[o],I=b(u).split("\n");if("notStrictEqual"===o&&"object"===d(u)&&null!==u&&(g=E.notStrictEqualObject),I.length>30)for(I[26]="".concat(p,"...").concat(m);I.length>27;)I.pop();r=1===I.length?s(this,f(e).call(this,"".concat(g," ").concat(I[0]))):s(this,f(e).call(this,"".concat(g,"\n\n").concat(I.join("\n"),"\n")))}else{var v=b(u),C="",Q=E[o];"notDeepEqual"===o||"notEqual"===o?(v="".concat(E[o],"\n\n").concat(v)).length>1024&&(v="".concat(v.slice(0,1021),"...")):(C="".concat(b(l)),v.length>512&&(v="".concat(v.slice(0,509),"...")),C.length>512&&(C="".concat(C.slice(0,509),"...")),"deepEqual"===o||"equal"===o?v="".concat(Q,"\n\n").concat(v,"\n\nshould equal\n\n"):C=" ".concat(o," ").concat(C)),r=s(this,f(e).call(this,"".concat(v).concat(C)))}return Error.stackTraceLimit=c,r.generatedMessage=!n,Object.defineProperty(a(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=u,r.expected=l,r.operator=o,Error.captureStackTrace&&Error.captureStackTrace(a(r),h),r.stack,r.name="AssertionError",s(r)}var r,h;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,t),r=e,(h=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:g.custom,value:function(t,e){return g(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),i.forEach((function(e){n(t,e,r[e])}))}return t}({},e,{customInspect:!1,depth:0}))}}])&&o(r.prototype,h),e}(h(Error));t.exports=I},2136:(t,e,r)=>{"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.proto||Object.getPrototypeOf(t)})(t)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.proto=e,t})(t,e)}var s,a,h={};function u(t,e,r){r||(r=Error);var s=function(r){function s(r,o,a){var h;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(h=function(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,n(s).call(this,function(t,r,i){return"string"==typeof e?e:e(t,r,i)}(r,o,a)))).code=t,h}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(s,r),s}(r);h[t]=s}function l(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(t,e,n){var o,a,h,u,c;if(void 0===s&&(s=r(9282)),s("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(a="not ",e.substr(0,a.length)===a)?(o="must not be",e=e.replace(/^not /,"")):o="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))h="The ".concat(t," ").concat(o," ").concat(l(e,"type"));else{var f=("number"!=typeof c&&(c=0),c+".".length>(u=t).length||-1===u.indexOf(".",c)?"argument":"property");h='The "'.concat(t,'" ').concat(f," ").concat(o," ").concat(l(e,"type"))}return h+". Received type ".concat(i(n))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===a&&(a=r(9539));var n=a.inspect(e);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(i,". Received ").concat(n)}),TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",(function(t,e,r){var n;return n=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(i(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(n,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];void 0===s&&(s=r(9282)),s(e.length>0,"At least one arg needs to be specified");var n="The ",o=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),o){case 1:n+="".concat(e[0]," argument");break;case 2:n+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:n+=e.slice(0,o-1).join(", "),n+=", and ".concat(e[o-1]," arguments")}return"".concat(n," must be specified")}),TypeError),t.exports.codes=h},9158:(t,e,r)=>{"use strict";function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,n=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);i=!0);}catch(t){n=!0,o=t}finally{try{i||null==a.return||a.return()}finally{if(n)throw o}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=void 0!==/a/g.flags,s=function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e},a=function(t){var e=[];return t.forEach((function(t,r){return e.push([r,t])})),e},h=Object.is?Object.is:r(609),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:r(360);function c(t){return t.call.bind(t)}var f=c(Object.prototype.hasOwnProperty),d=c(Object.prototype.propertyIsEnumerable),g=c(Object.prototype.toString),A=r(9539).types,M=A.isAnyArrayBuffer,p=A.isArrayBufferView,w=A.isDate,B=A.isMap,m=A.isRegExp,E=A.isSet,y=A.isNativeError,b=A.isBoxedPrimitive,I=A.isNumberObject,v=A.isStringObject,C=A.isBooleanObject,Q=A.isBigIntObject,D=A.isSymbolObject,N=A.isFloat32Array,R=A.isFloat64Array;function G(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(r<48||r>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function U(t){return Object.keys(t).filter(G).concat(u(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function V(t,e){if(t===e)return 0;for(var r=t.length,i=e.length,n=0,o=Math.min(r,i);n<o;++n)if(t[n]!==e[n]){r=t[n],i=e[n];break}return r<i?-1:i<r?1:0}function S(t,e,r,i){if(t===e)return 0!==t||!r||h(t,e);if(r){if("object"!==n(t))return"number"==typeof t&&l(t)&&l(e);if("object"!==n(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==n(t))return(null===e||"object"!==n(e))&&t==e;if(null===e||"object"!==n(e))return!1}var s,a,u,c,f=g(t);if(f!==g(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var d=U(t),A=U(e);return d.length===A.length&&Y(t,e,r,i,1,d)}if("[object Object]"===f&&(!B(t)&&B(e)||!E(t)&&E(e)))return!1;if(w(t)){if(!w(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(m(t)){if(!m(e)||(u=t,c=e,!(o?u.source===c.source&&u.flags===c.flags:RegExp.prototype.toString.call(u)===RegExp.prototype.toString.call(c))))return!1}else if(y(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(p(t)){if(r||!N(t)&&!R(t)){if(!function(t,e){return t.byteLength===e.byteLength&&0===V(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}(t,e))return!1}else if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0}(t,e))return!1;var G=U(t),S=U(e);return G.length===S.length&&Y(t,e,r,i,0,G)}if(E(t))return!(!E(e)||t.size!==e.size)&&Y(t,e,r,i,2);if(B(t))return!(!B(e)||t.size!==e.size)&&Y(t,e,r,i,3);if(M(t)){if(a=e,(s=t).byteLength!==a.byteLength||0!==V(new Uint8Array(s),new Uint8Array(a)))return!1}else if(b(t)&&!function(t,e){return I(t)?I(e)&&h(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):v(t)?v(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):C(t)?C(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):Q(t)?Q(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):D(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return Y(t,e,r,i,0)}function T(t,e){return e.filter((function(e){return d(t,e)}))}function Y(t,e,r,i,n,o){if(5===arguments.length){o=Object.keys(t);var s=Object.keys(e);if(o.length!==s.length)return!1}for(var a=0;a<o.length;a++)if(!f(e,o[a]))return!1;if(r&&5===arguments.length){var h=u(t);if(0!==h.length){var l=0;for(a=0;a<h.length;a++){var c=h[a];if(d(t,c)){if(!d(e,c))return!1;o.push(c),l++}else if(d(e,c))return!1}var g=u(e);if(h.length!==g.length&&T(e,g).length!==l)return!1}else{var A=u(e);if(0!==A.length&&0!==T(e,A).length)return!1}}if(0===o.length&&(0===n||1===n&&0===t.length||0===t.size))return!0;if(void 0===i)i={val1:new Map,val2:new Map,position:0};else{var M=i.val1.get(t);if(void 0!==M){var p=i.val2.get(e);if(void 0!==p)return M===p}i.position++}i.val1.set(t,i.position),i.val2.set(e,i.position);var w=x(t,e,r,o,i,n);return i.val1.delete(t),i.val2.delete(e),w}function k(t,e,r,i){for(var n=s(t),o=0;o<n.length;o++){var a=n[o];if(S(e,a,r,i))return t.delete(a),!0}return!1}function F(t){switch(n(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(l(t))return!1}return!0}function L(t,e,r){var i=F(r);return null!=i?i:e.has(i)&&!t.has(i)}function j(t,e,r,i,n){var o=F(r);if(null!=o)return o;var s=e.get(o);return!(void 0===s&&!e.has(o)||!S(i,s,!1,n))&&!t.has(o)&&S(i,s,!1,n)}function Z(t,e,r,i,n,o){for(var a=s(t),h=0;h<a.length;h++){var u=a[h];if(S(r,u,n,o)&&S(i,e.get(u),n,o))return t.delete(u),!0}return!1}function x(t,e,r,o,h,u){var l=0;if(2===u){if(!function(t,e,r,i){for(var o=null,a=s(t),h=0;h<a.length;h++){var u=a[h];if("object"===n(u)&&null!==u)null===o&&(o=new Set),o.add(u);else if(!e.has(u)){if(r)return!1;if(!L(t,e,u))return!1;null===o&&(o=new Set),o.add(u)}}if(null!==o){for(var l=s(e),c=0;c<l.length;c++){var f=l[c];if("object"===n(f)&&null!==f){if(!k(o,f,r,i))return!1}else if(!r&&!t.has(f)&&!k(o,f,r,i))return!1}return 0===o.size}return!0}(t,e,r,h))return!1}else if(3===u){if(!function(t,e,r,o){for(var s=null,h=a(t),u=0;u<h.length;u++){var l=i(h[u],2),c=l[0],f=l[1];if("object"===n(c)&&null!==c)null===s&&(s=new Set),s.add(c);else{var d=e.get(c);if(void 0===d&&!e.has(c)||!S(f,d,r,o)){if(r)return!1;if(!j(t,e,c,f,o))return!1;null===s&&(s=new Set),s.add(c)}}}if(null!==s){for(var g=a(e),A=0;A<g.length;A++){var M=i(g[A],2),p=(c=M[0],M[1]);if("object"===n(c)&&null!==c){if(!Z(s,t,c,p,r,o))return!1}else if(!(r||t.has(c)&&S(t.get(c),p,!1,o)||Z(s,t,c,p,!1,o)))return!1}return 0===s.size}return!0}(t,e,r,h))return!1}else if(1===u)for(;l<t.length;l++){if(!f(t,l)){if(f(e,l))return!1;for(var c=Object.keys(t);l<c.length;l++){var d=c[l];if(!f(e,d)||!S(t[d],e[d],r,h))return!1}return c.length===Object.keys(e).length}if(!f(e,l)||!S(t[l],e[l],r,h))return!1}for(l=0;l<o.length;l++){var g=o[l];if(!S(t[g],e[g],r,h))return!1}return!0}t.exports={isDeepEqual:function(t,e){return S(t,e,!1)},isDeepStrictEqual:function(t,e){return S(t,e,!0)}}},6314:(t,e,r)=>{"use strict";var i=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"];t.exports=function(){for(var t=[],e=0;e<i.length;e++)"function"==typeof r.g[i[e]]&&(t[t.length]=i[e]);return t}},8469:(t,e,r)=>{t.exports=r(5267)},5267:(t,e,r)=>{var i=r(8764).Buffer;const n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%+-./:",o=(t,e)=>[Math.floor(t/e),t%e];t.exports={encode:t=>{"string"==typeof t&&(t=i.from(t));let e="";for(let r=0;r<t.length;r+=2)if(t.length-r>1){const i=(t[r]<<8)+t[r+1],[s,a]=o(i,2025),[h,u]=o(a,45);e+=n[u]+n[h]+n[s]}else{const[i,s]=o(t[r],45);e+=n[s]+n[i]}return e},decode:t=>{const e=Array.from(t).map((t=>n.indexOf(t))),r=[];for(let t=0;t<e.length;t+=3)if(e.length-t>=3){const i=e[t]+45e[t+1]+45e[t+2]45;r.push(...o(i,256))}else{const i=e[t]+45e[t+1];r.push(i)}return i.from(r)}}},9742:(t,e)=>{"use strict";e.byteLength=function(t){var e=h(t),r=e[0],i=e[1];return 3(r+i)/4-i},e.toByteArray=function(t){var e,r,o=h(t),s=o[0],a=o[1],u=new n(function(t,e,r){return 3(e+r)/4-r}(0,s,a)),l=0,c=a>0?s-4:s;for(r=0;r<c;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===a&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,u[l++]=255&e),1===a&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u},e.fromByteArray=function(t){for(var e,i=t.length,n=i%3,o=[],s=16383,a=0,h=i-n;a<h;a+=s)o.push(u(t,a,a+s>h?h:a+s));return 1===n?(e=t[i-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===n&&(e=(t[i-2]<<8)+t[i-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],i=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function h(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,i){for(var n,o,s=[],a=e;a<i;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(r[(o=n)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},4431:function(t,e,r){var i;!function(n){"use strict";var o,s=/^-?(?:\d+(?:.\d)?|.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,h=Math.floor,u="[BigNumber Error] ",l=u+"Number primitive has more than 15 significant digits: ",c=1e14,f=14,d=9007199254740991,g=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],A=1e7,M=1e9;function p(t){var e=0|t;return t>0||t===e?e:e-1}function w(t){for(var e,r,i=1,n=t.length,o=t[0]+"";i<n;){for(e=t[i++]+"",r=f-e.length;r--;e="0"+e);o+=e}for(n=o.length;48===o.charCodeAt(--n););return o.slice(0,n+1||1)}function B(t,e){var r,i,n=t.c,o=e.c,s=t.s,a=e.s,h=t.e,u=e.e;if(!s||!a)return null;if(r=n&&!n[0],i=o&&!o[0],r||i)return r?i?0:-a:s;if(s!=a)return s;if(r=s<0,i=h==u,!n||!o)return i?0:!n^r?1:-1;if(!i)return h>u^r?1:-1;for(a=(h=n.length)<(u=o.length)?h:u,s=0;s<a;s++)if(n[s]!=o[s])return n[s]>o[s]^r?1:-1;return h==u?0:h>u^r?1:-1}function m(t,e,r,i){if(t<e||t>r||t!==h(t))throw Error(u+(i||"Argument")+("number"==typeof t?t<e||t>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function E(t){var e=t.c.length-1;return p(t.e/f)==e&&t.c[e]%2!=0}function y(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function b(t,e,r){var i,n;if(e<0){for(n=r+".";++e;n+=r);t=n+t}else if(++e>(i=t.length)){for(n=r,e-=i;--e;n+=r);t+=n}else e<i&&(t=t.slice(0,e)+"."+t.slice(e));return t}(o=function t(e){var r,i,n,o,I,v,C,Q,D,N,R=z.prototype={constructor:z,toString:null,valueOf:null},G=new z(1),U=20,V=4,S=-7,T=21,Y=-1e7,k=1e7,F=!1,L=1,j=0,Z={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},x="0123456789abcdefghijklmnopqrstuvwxyz";function z(t,e){var r,o,a,u,c,g,A,M,p=this;if(!(p instanceof z))return new z(t,e);if(null==e){if(t&&!0===t.isBigNumber)return p.s=t.s,void(!t.c||t.e>k?p.c=p.e=null:t.e<Y?p.c=[p.e=0]:(p.e=t.e,p.c=t.c.slice()));if((g="number"==typeof t)&&0t==0){if(p.s=1/t<0?(t=-t,-1):1,t===~~t){for(u=0,c=t;c>=10;c/=10,u++);return void(u>k?p.c=p.e=null:(p.e=u,p.c=[t]))}M=String(t)}else{if(!s.test(M=String(t)))return n(p,M,g);p.s=45==M.charCodeAt(0)?(M=M.slice(1),-1):1}(u=M.indexOf("."))>-1&&(M=M.replace(".","")),(c=M.search(/e/i))>0?(u<0&&(u=c),u+=+M.slice(c+1),M=M.substring(0,c)):u<0&&(u=M.length)}else{if(m(e,2,x.length,"Base"),10==e)return W(p=new z(t),U+p.e+1,V);if(M=String(t),g="number"==typeof t){if(0t!=0)return n(p,M,g,e);if(p.s=1/t<0?(M=M.slice(1),-1):1,z.DEBUG&&M.replace(/^0.0|./,"").length>15)throw Error(l+t)}else p.s=45===M.charCodeAt(0)?(M=M.slice(1),-1):1;for(r=x.slice(0,e),u=c=0,A=M.length;c<A;c++)if(r.indexOf(o=M.charAt(c))<0){if("."==o){if(c>u){u=A;continue}}else if(!a&&(M==M.toUpperCase()&&(M=M.toLowerCase())||M==M.toLowerCase()&&(M=M.toUpperCase()))){a=!0,c=-1,u=0;continue}return n(p,String(t),g,e)}g=!1,(u=(M=i(M,e,10,p.s)).indexOf("."))>-1?M=M.replace(".",""):u=M.length}for(c=0;48===M.charCodeAt(c);c++);for(A=M.length;48===M.charCodeAt(--A););if(M=M.slice(c,++A)){if(A-=c,g&&z.DEBUG&&A>15&&(t>d||t!==h(t)))throw Error(l+p.st);if((u=u-c-1)>k)p.c=p.e=null;else if(u<Y)p.c=[p.e=0];else{if(p.e=u,p.c=[],c=(u+1)%f,u<0&&(c+=f),c<A){for(c&&p.c.push(+M.slice(0,c)),A-=f;c<A;)p.c.push(+M.slice(c,c+=f));c=f-(M=M.slice(c)).length}else c-=A;for(;c--;M+="0");p.c.push(+M)}}else p.c=[p.e=0]}function O(t,e,r,i){var n,o,s,a,h;if(null==r?r=V:m(r,0,8),!t.c)return t.toString();if(n=t.c[0],s=t.e,null==e)h=w(t.c),h=1==i||2==i&&(s<=S||s>=T)?y(h,s):b(h,s,"0");else if(o=(t=W(new z(t),e,r)).e,a=(h=w(t.c)).length,1==i||2==i&&(e<=o||o<=S)){for(;a<e;h+="0",a++);h=y(h,o)}else if(e-=s,h=b(h,o,"0"),o+1>a){if(--e>0)for(h+=".";e--;h+="0");}else if((e+=o-a)>0)for(o+1==a&&(h+=".");e--;h+="0");return t.s<0&&n?"-"+h:h}function H(t,e){for(var r,i=1,n=new z(t[0]);i<t.length;i++){if(!(r=new z(t[i])).s){n=r;break}e.call(n,r)&&(n=r)}return n}function (t,e,r){for(var i=1,n=e.length;!e[--n];e.pop());for(n=e[0];n>=10;n/=10,i++);return(r=i+rf-1)>k?t.c=t.e=null:r<Y?t.c=[t.e=0]:(t.e=r,t.c=e),t}function W(t,e,r,i){var n,o,s,u,l,d,A,M=t.c,p=g;if(M){t:{for(n=1,u=M[0];u>=10;u/=10,n++);if((o=e-n)<0)o+=f,s=e,A=(l=M[d=0])/p[n-s-1]%10|0;else if((d=a((o+1)/f))>=M.length){if(!i)break t;for(;M.length<=d;M.push(0));l=A=0,n=1,s=(o%=f)-f+1}else{for(l=u=M[d],n=1;u>=10;u/=10,n++);A=(s=(o%=f)-f+n)<0?0:l/p[n-s-1]%10|0}if(i=i||e<0||null!=M[d+1]||(s<0?l:l%p[n-s-1]),i=r<4?(A||i)&&(0==r||r==(t.s<0?3:2)):A>5||5==A&&(4==r||i||6==r&&(o>0?s>0?l/p[n-s]:0:M[d-1])%10&1||r==(t.s<0?8:7)),e<1||!M[0])return M.length=0,i?(e-=t.e+1,M[0]=p[(f-e%f)%f],t.e=-e||0):M[0]=t.e=0,t;if(0==o?(M.length=d,u=1,d--):(M.length=d+1,u=p[f-o],M[d]=s>0?h(l/p[n-s]%p[s])u:0),i)for(;;){if(0==d){for(o=1,s=M[0];s>=10;s/=10,o++);for(s=M[0]+=u,u=1;s>=10;s/=10,u++);o!=u&&(t.e++,M[0]==c&&(M[0]=1));break}if(M[d]+=u,M[d]!=c)break;M[d--]=0,u=1}for(o=M.length;0===M[--o];M.pop());}t.e>k?t.c=t.e=null:t.e<Y&&(t.c=[t.e=0])}return t}function J(t){var e,r=t.e;return null===r?t.toString():(e=w(t.c),e=r<=S||r>=T?y(e,r):b(e,r,"0"),t.s<0?"-"+e:e)}return z.clone=t,z.ROUND_UP=0,z.ROUND_DOWN=1,z.ROUND_CEIL=2,z.ROUND_FLOOR=3,z.ROUND_HALF_UP=4,z.ROUND_HALF_DOWN=5,z.ROUND_HALF_EVEN=6,z.ROUND_HALF_CEIL=7,z.ROUND_HALF_FLOOR=8,z.EUCLID=9,z.config=z.set=function(t){var e,r;if(null!=t){if("object"!=typeof t)throw Error(u+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(m(r=t[e],0,M,e),U=r),t.hasOwnProperty(e="ROUNDING_MODE")&&(m(r=t[e],0,8,e),V=r),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((r=t[e])&&r.pop?(m(r[0],-M,0,e),m(r[1],0,M,e),S=r[0],T=r[1]):(m(r,-M,M,e),S=-(T=r<0?-r:r))),t.hasOwnProperty(e="RANGE"))if((r=t[e])&&r.pop)m(r[0],-M,-1,e),m(r[1],1,M,e),Y=r[0],k=r[1];else{if(m(r,-M,M,e),!r)throw Error(u+e+" cannot be zero: "+r);Y=-(k=r<0?-r:r)}if(t.hasOwnProperty(e="CRYPTO")){if((r=t[e])!==!!r)throw Error(u+e+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw F=!r,Error(u+"crypto unavailable");F=r}else F=r}if(t.hasOwnProperty(e="MODULO_MODE")&&(m(r=t[e],0,9,e),L=r),t.hasOwnProperty(e="POW_PRECISION")&&(m(r=t[e],0,M,e),j=r),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(r=t[e]))throw Error(u+e+" not an object: "+r);Z=r}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(r=t[e])||/^.?$|[+-.\s]|(.).*\1/.test(r))throw Error(u+e+" invalid: "+r);x=r}}return{DECIMAL_PLACES:U,ROUNDING_MODE:V,EXPONENTIAL_AT:[S,T],RANGE:[Y,k],CRYPTO:F,MODULO_MODE:L,POW_PRECISION:j,FORMAT:Z,ALPHABET:x}},z.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)re "

Do you think that there is something i should do ? I tried with npm and putting the js into the project.

Jo-Chris commented 2 years ago

i have the same problem. any solutions?