-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathassets_js_lib_nanocurrency-web.js
2 lines (2 loc) · 118 KB
/
assets_js_lib_nanocurrency-web.js
1
2
/*! For license information please see index.min.js.LICENSE.txt */
var NanocurrencyWeb;(()=>{var e={4431:function(e,t,r){var n;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,c=Math.floor,l="[BigNumber Error] ",u=l+"Number primitive has more than 15 significant digits: ",f=1e14,h=14,d=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],g=1e7,v=1e9;function y(e){var t=0|e;return e>0||e===t?t:t-1}function m(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(t=e[n++]+"",r=h-t.length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function b(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,c=e.e,l=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=c==l,!i||!o)return n?0:!i^r?1:-1;if(!n)return c>l^r?1:-1;for(s=(c=i.length)<(l=o.length)?c:l,a=0;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return c==l?0:c>l^r?1:-1}function w(e,t,r,n){if(e<t||e>r||e!==c(e))throw Error(l+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function _(e){var t=e.c.length-1;return y(e.e/h)==t&&e.c[t]%2!=0}function k(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function x(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}o=function e(t){var r,n,i,o,A,S,B,M,E,H,U=W.prototype={constructor:W,toString:null,valueOf:null},O=new W(1),z=20,C=4,N=-7,R=21,I=-1e7,D=1e7,P=!1,T=1,j=0,F={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},K="0123456789abcdefghijklmnopqrstuvwxyz",L=!0;function W(e,t){var r,o,s,l,f,p,g,v,y=this;if(!(y instanceof W))return new W(e,t);if(null==t){if(e&&!0===e._isBigNumber)return y.s=e.s,void(!e.c||e.e>D?y.c=y.e=null:e.e<I?y.c=[y.e=0]:(y.e=e.e,y.c=e.c.slice()));if((p="number"==typeof e)&&0*e==0){if(y.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,f=e;f>=10;f/=10,l++);return void(l>D?y.c=y.e=null:(y.e=l,y.c=[e]))}v=String(e)}else{if(!a.test(v=String(e)))return i(y,v,p);y.s=45==v.charCodeAt(0)?(v=v.slice(1),-1):1}(l=v.indexOf("."))>-1&&(v=v.replace(".","")),(f=v.search(/e/i))>0?(l<0&&(l=f),l+=+v.slice(f+1),v=v.substring(0,f)):l<0&&(l=v.length)}else{if(w(t,2,K.length,"Base"),10==t&&L)return Z(y=new W(e),z+y.e+1,C);if(v=String(e),p="number"==typeof e){if(0*e!=0)return i(y,v,p,t);if(y.s=1/e<0?(v=v.slice(1),-1):1,W.DEBUG&&v.replace(/^0\.0*|\./,"").length>15)throw Error(u+e)}else y.s=45===v.charCodeAt(0)?(v=v.slice(1),-1):1;for(r=K.slice(0,t),l=f=0,g=v.length;f<g;f++)if(r.indexOf(o=v.charAt(f))<0){if("."==o){if(f>l){l=g;continue}}else if(!s&&(v==v.toUpperCase()&&(v=v.toLowerCase())||v==v.toLowerCase()&&(v=v.toUpperCase()))){s=!0,f=-1,l=0;continue}return i(y,String(e),p,t)}p=!1,(l=(v=n(v,t,10,y.s)).indexOf("."))>-1?v=v.replace(".",""):l=v.length}for(f=0;48===v.charCodeAt(f);f++);for(g=v.length;48===v.charCodeAt(--g););if(v=v.slice(f,++g)){if(g-=f,p&&W.DEBUG&&g>15&&(e>d||e!==c(e)))throw Error(u+y.s*e);if((l=l-f-1)>D)y.c=y.e=null;else if(l<I)y.c=[y.e=0];else{if(y.e=l,y.c=[],f=(l+1)%h,l<0&&(f+=h),f<g){for(f&&y.c.push(+v.slice(0,f)),g-=h;f<g;)y.c.push(+v.slice(f,f+=h));f=h-(v=v.slice(f)).length}else f-=g;for(;f--;v+="0");y.c.push(+v)}}else y.c=[y.e=0]}function q(e,t,r,n){var i,o,a,s,c;if(null==r?r=C:w(r,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)c=m(e.c),c=1==n||2==n&&(a<=N||a>=R)?k(c,a):x(c,a,"0");else if(o=(e=Z(new W(e),t,r)).e,s=(c=m(e.c)).length,1==n||2==n&&(t<=o||o<=N)){for(;s<t;c+="0",s++);c=k(c,o)}else if(t-=a,c=x(c,o,"0"),o+1>s){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=o-s)>0)for(o+1==s&&(c+=".");t--;c+="0");return e.s<0&&i?"-"+c:c}function X(e,t){for(var r,n=1,i=new W(e[0]);n<e.length;n++){if(!(r=new W(e[n])).s){i=r;break}t.call(i,r)&&(i=r)}return i}function G(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*h-1)>D?e.c=e.e=null:r<I?e.c=[e.e=0]:(e.e=r,e.c=t),e}function Z(e,t,r,n){var i,o,a,l,u,d,g,v=e.c,y=p;if(v){e:{for(i=1,l=v[0];l>=10;l/=10,i++);if((o=t-i)<0)o+=h,a=t,g=(u=v[d=0])/y[i-a-1]%10|0;else if((d=s((o+1)/h))>=v.length){if(!n)break e;for(;v.length<=d;v.push(0));u=g=0,i=1,a=(o%=h)-h+1}else{for(u=l=v[d],i=1;l>=10;l/=10,i++);g=(a=(o%=h)-h+i)<0?0:u/y[i-a-1]%10|0}if(n=n||t<0||null!=v[d+1]||(a<0?u:u%y[i-a-1]),n=r<4?(g||n)&&(0==r||r==(e.s<0?3:2)):g>5||5==g&&(4==r||n||6==r&&(o>0?a>0?u/y[i-a]:0:v[d-1])%10&1||r==(e.s<0?8:7)),t<1||!v[0])return v.length=0,n?(t-=e.e+1,v[0]=y[(h-t%h)%h],e.e=-t||0):v[0]=e.e=0,e;if(0==o?(v.length=d,l=1,d--):(v.length=d+1,l=y[h-o],v[d]=a>0?c(u/y[i-a]%y[a])*l:0),n)for(;;){if(0==d){for(o=1,a=v[0];a>=10;a/=10,o++);for(a=v[0]+=l,l=1;a>=10;a/=10,l++);o!=l&&(e.e++,v[0]==f&&(v[0]=1));break}if(v[d]+=l,v[d]!=f)break;v[d--]=0,l=1}for(o=v.length;0===v[--o];v.pop());}e.e>D?e.c=e.e=null:e.e<I&&(e.c=[e.e=0])}return e}function $(e){var t,r=e.e;return null===r?e.toString():(t=m(e.c),t=r<=N||r>=R?k(t,r):x(t,r,"0"),e.s<0?"-"+t:t)}return W.clone=e,W.ROUND_UP=0,W.ROUND_DOWN=1,W.ROUND_CEIL=2,W.ROUND_FLOOR=3,W.ROUND_HALF_UP=4,W.ROUND_HALF_DOWN=5,W.ROUND_HALF_EVEN=6,W.ROUND_HALF_CEIL=7,W.ROUND_HALF_FLOOR=8,W.EUCLID=9,W.config=W.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(l+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(w(r=e[t],0,v,t),z=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(w(r=e[t],0,8,t),C=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(w(r[0],-v,0,t),w(r[1],0,v,t),N=r[0],R=r[1]):(w(r,-v,v,t),N=-(R=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)w(r[0],-v,-1,t),w(r[1],1,v,t),I=r[0],D=r[1];else{if(w(r,-v,v,t),!r)throw Error(l+t+" cannot be zero: "+r);I=-(D=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(l+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw P=!r,Error(l+"crypto unavailable");P=r}else P=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(w(r=e[t],0,9,t),T=r),e.hasOwnProperty(t="POW_PRECISION")&&(w(r=e[t],0,v,t),j=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(l+t+" not an object: "+r);F=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(l+t+" invalid: "+r);L="0123456789"==r.slice(0,10),K=r}}return{DECIMAL_PLACES:z,ROUNDING_MODE:C,EXPONENTIAL_AT:[N,R],RANGE:[I,D],CRYPTO:P,MODULO_MODE:T,POW_PRECISION:j,FORMAT:F,ALPHABET:K}},W.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!W.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===o||-1===o)&&i>=-v&&i<=v&&i===c(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%h)<1&&(t+=h),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=f||r!==c(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(l+"Invalid BigNumber: "+e)},W.maximum=W.max=function(){return X(arguments,U.lt)},W.minimum=W.min=function(){return X(arguments,U.gt)},W.random=(o=9007199254740992,A=Math.random()*o&2097151?function(){return c(Math.random()*o)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,i,o,a=0,u=[],f=new W(O);if(null==e?e=z:w(e,0,v),i=s(e/h),P)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));a<i;)(o=131072*t[a]+(t[a+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[a]=r[0],t[a+1]=r[1]):(u.push(o%1e14),a+=2);a=i/2}else{if(!crypto.randomBytes)throw P=!1,Error(l+"crypto unavailable");for(t=crypto.randomBytes(i*=7);a<i;)(o=281474976710656*(31&t[a])+1099511627776*t[a+1]+4294967296*t[a+2]+16777216*t[a+3]+(t[a+4]<<16)+(t[a+5]<<8)+t[a+6])>=9e15?crypto.randomBytes(7).copy(t,a):(u.push(o%1e14),a+=7);a=i/7}if(!P)for(;a<i;)(o=A())<9e15&&(u[a++]=o%1e14);for(i=u[--a],e%=h,i&&e&&(o=p[h-e],u[a]=c(i/o)*o);0===u[a];u.pop(),a--);if(a<0)u=[n=0];else{for(n=-1;0===u[0];u.splice(0,1),n-=h);for(a=1,o=u[0];o>=10;o/=10,a++);a<h&&(n-=h-a)}return f.e=n,f.c=u,f}),W.sum=function(){for(var e=1,t=arguments,r=new W(t[0]);e<t.length;)r=r.plus(t[e++]);return r},n=function(){var e="0123456789";function t(e,t,r,n){for(var i,o,a=[0],s=0,c=e.length;s<c;){for(o=a.length;o--;a[o]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(n,i,o,a,s){var c,l,u,f,h,d,p,g,v=n.indexOf("."),y=z,b=C;for(v>=0&&(f=j,j=0,n=n.replace(".",""),d=(g=new W(i)).pow(n.length-v),j=f,g.c=t(x(m(d.c),d.e,"0"),10,o,e),g.e=g.c.length),u=f=(p=t(n,i,o,s?(c=K,e):(c=e,K))).length;0==p[--f];p.pop());if(!p[0])return c.charAt(0);if(v<0?--u:(d.c=p,d.e=u,d.s=a,p=(d=r(d,g,y,b,o)).c,h=d.r,u=d.e),v=p[l=u+y+1],f=o/2,h=h||l<0||null!=p[l+1],h=b<4?(null!=v||h)&&(0==b||b==(d.s<0?3:2)):v>f||v==f&&(4==b||h||6==b&&1&p[l-1]||b==(d.s<0?8:7)),l<1||!p[0])n=h?x(c.charAt(1),-y,c.charAt(0)):c.charAt(0);else{if(p.length=l,h)for(--o;++p[--l]>o;)p[l]=0,l||(++u,p=[1].concat(p));for(f=p.length;!p[--f];);for(v=0,n="";v<=f;n+=c.charAt(p[v++]));n=x(n,u,c.charAt(0))}return n}}(),r=function(){function e(e,t,r){var n,i,o,a,s=0,c=e.length,l=t%g,u=t/g|0;for(e=e.slice();c--;)s=((i=l*(o=e[c]%g)+(n=u*o+(a=e[c]/g|0)*l)%g*g+s)/r|0)+(n/g|0)+u*a,e[c]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,o,a,s){var l,u,d,p,g,v,m,b,w,_,k,x,A,S,B,M,E,H=n.s==i.s?1:-1,U=n.c,O=i.c;if(!(U&&U[0]&&O&&O[0]))return new W(n.s&&i.s&&(U?!O||U[0]!=O[0]:O)?U&&0==U[0]||!O?0*H:H/0:NaN);for(w=(b=new W(H)).c=[],H=o+(u=n.e-i.e)+1,s||(s=f,u=y(n.e/h)-y(i.e/h),H=H/h|0),d=0;O[d]==(U[d]||0);d++);if(O[d]>(U[d]||0)&&u--,H<0)w.push(1),p=!0;else{for(S=U.length,M=O.length,d=0,H+=2,(g=c(s/(O[0]+1)))>1&&(O=e(O,g,s),U=e(U,g,s),M=O.length,S=U.length),A=M,k=(_=U.slice(0,M)).length;k<M;_[k++]=0);E=O.slice(),E=[0].concat(E),B=O[0],O[1]>=s/2&&B++;do{if(g=0,(l=t(O,_,M,k))<0){if(x=_[0],M!=k&&(x=x*s+(_[1]||0)),(g=c(x/B))>1)for(g>=s&&(g=s-1),m=(v=e(O,g,s)).length,k=_.length;1==t(v,_,m,k);)g--,r(v,M<m?E:O,m,s),m=v.length,l=1;else 0==g&&(l=g=1),m=(v=O.slice()).length;if(m<k&&(v=[0].concat(v)),r(_,v,k,s),k=_.length,-1==l)for(;t(O,_,M,k)<1;)g++,r(_,M<k?E:O,k,s),k=_.length}else 0===l&&(g++,_=[0]);w[d++]=g,_[0]?_[k++]=U[A]||0:(_=[U[A]],k=1)}while((A++<S||null!=_[0])&&H--);p=null!=_[0],w[0]||w.splice(0,1)}if(s==f){for(d=1,H=w[0];H>=10;H/=10,d++);Z(b,o+(b.e=d+u*h-1)+1,a,p)}else b.e=u,b.r=+p;return b}}(),S=/^(-?)0([xbo])(?=\w[\w.]*$)/i,B=/^([^.]+)\.$/,M=/^\.([^.]+)$/,E=/^-?(Infinity|NaN)$/,H=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(e,t,r,n){var i,o=r?t:t.replace(H,"");if(E.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(S,(function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t})),n&&(i=n,o=o.replace(B,"$1").replace(M,"0.$1")),t!=o))return new W(o,i);if(W.DEBUG)throw Error(l+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},U.absoluteValue=U.abs=function(){var e=new W(this);return e.s<0&&(e.s=1),e},U.comparedTo=function(e,t){return b(this,new W(e,t))},U.decimalPlaces=U.dp=function(e,t){var r,n,i,o=this;if(null!=e)return w(e,0,v),null==t?t=C:w(t,0,8),Z(new W(o),e+o.e+1,t);if(!(r=o.c))return null;if(n=((i=r.length-1)-y(this.e/h))*h,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},U.dividedBy=U.div=function(e,t){return r(this,new W(e,t),z,C)},U.dividedToIntegerBy=U.idiv=function(e,t){return r(this,new W(e,t),0,1)},U.exponentiatedBy=U.pow=function(e,t){var r,n,i,o,a,u,f,d,p=this;if((e=new W(e)).c&&!e.isInteger())throw Error(l+"Exponent not an integer: "+$(e));if(null!=t&&(t=new W(t)),a=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return d=new W(Math.pow(+$(p),a?2-_(e):+$(e))),t?d.mod(t):d;if(u=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new W(NaN);(n=!u&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||a&&p.c[1]>=24e7:p.c[0]<8e13||a&&p.c[0]<=9999975e7)))return o=p.s<0&&_(e)?-0:0,p.e>-1&&(o=1/o),new W(u?1/o:o);j&&(o=s(j/h+2))}for(a?(r=new W(.5),u&&(e.s=1),f=_(e)):f=(i=Math.abs(+$(e)))%2,d=new W(O);;){if(f){if(!(d=d.times(p)).c)break;o?d.c.length>o&&(d.c.length=o):n&&(d=d.mod(t))}if(i){if(0===(i=c(i/2)))break;f=i%2}else if(Z(e=e.times(r),e.e+1,1),e.e>14)f=_(e);else{if(0==(i=+$(e)))break;f=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):n&&(p=p.mod(t))}return n?d:(u&&(d=O.div(d)),t?d.mod(t):o?Z(d,j,C,void 0):d)},U.integerValue=function(e){var t=new W(this);return null==e?e=C:w(e,0,8),Z(t,t.e+1,e)},U.isEqualTo=U.eq=function(e,t){return 0===b(this,new W(e,t))},U.isFinite=function(){return!!this.c},U.isGreaterThan=U.gt=function(e,t){return b(this,new W(e,t))>0},U.isGreaterThanOrEqualTo=U.gte=function(e,t){return 1===(t=b(this,new W(e,t)))||0===t},U.isInteger=function(){return!!this.c&&y(this.e/h)>this.c.length-2},U.isLessThan=U.lt=function(e,t){return b(this,new W(e,t))<0},U.isLessThanOrEqualTo=U.lte=function(e,t){return-1===(t=b(this,new W(e,t)))||0===t},U.isNaN=function(){return!this.s},U.isNegative=function(){return this.s<0},U.isPositive=function(){return this.s>0},U.isZero=function(){return!!this.c&&0==this.c[0]},U.minus=function(e,t){var r,n,i,o,a=this,s=a.s;if(t=(e=new W(e,t)).s,!s||!t)return new W(NaN);if(s!=t)return e.s=-t,a.plus(e);var c=a.e/h,l=e.e/h,u=a.c,d=e.c;if(!c||!l){if(!u||!d)return u?(e.s=-t,e):new W(d?a:NaN);if(!u[0]||!d[0])return d[0]?(e.s=-t,e):new W(u[0]?a:3==C?-0:0)}if(c=y(c),l=y(l),u=u.slice(),s=c-l){for((o=s<0)?(s=-s,i=u):(l=c,i=d),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(n=(o=(s=u.length)<(t=d.length))?s:t,s=t=0;t<n;t++)if(u[t]!=d[t]){o=u[t]<d[t];break}if(o&&(i=u,u=d,d=i,e.s=-e.s),(t=(n=d.length)-(r=u.length))>0)for(;t--;u[r++]=0);for(t=f-1;n>s;){if(u[--n]<d[n]){for(r=n;r&&!u[--r];u[r]=t);--u[r],u[n]+=f}u[n]-=d[n]}for(;0==u[0];u.splice(0,1),--l);return u[0]?G(e,u,l):(e.s=3==C?-1:1,e.c=[e.e=0],e)},U.modulo=U.mod=function(e,t){var n,i,o=this;return e=new W(e,t),!o.c||!e.s||e.c&&!e.c[0]?new W(NaN):!e.c||o.c&&!o.c[0]?new W(o):(9==T?(i=e.s,e.s=1,n=r(o,e,0,3),e.s=i,n.s*=i):n=r(o,e,0,T),(e=o.minus(n.times(e))).c[0]||1!=T||(e.s=o.s),e)},U.multipliedBy=U.times=function(e,t){var r,n,i,o,a,s,c,l,u,d,p,v,m,b,w,_=this,k=_.c,x=(e=new W(e,t)).c;if(!(k&&x&&k[0]&&x[0]))return!_.s||!e.s||k&&!k[0]&&!x||x&&!x[0]&&!k?e.c=e.e=e.s=null:(e.s*=_.s,k&&x?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=y(_.e/h)+y(e.e/h),e.s*=_.s,(c=k.length)<(d=x.length)&&(m=k,k=x,x=m,i=c,c=d,d=i),i=c+d,m=[];i--;m.push(0));for(b=f,w=g,i=d;--i>=0;){for(r=0,p=x[i]%w,v=x[i]/w|0,o=i+(a=c);o>i;)r=((l=p*(l=k[--a]%w)+(s=v*l+(u=k[a]/w|0)*p)%w*w+m[o]+r)/b|0)+(s/w|0)+v*u,m[o--]=l%b;m[o]=r}return r?++n:m.splice(0,1),G(e,m,n)},U.negated=function(){var e=new W(this);return e.s=-e.s||null,e},U.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new W(e,t)).s,!i||!t)return new W(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/h,a=e.e/h,s=n.c,c=e.c;if(!o||!a){if(!s||!c)return new W(i/0);if(!s[0]||!c[0])return c[0]?e:new W(s[0]?n:0*i)}if(o=y(o),a=y(a),s=s.slice(),i=o-a){for(i>0?(a=o,r=c):(i=-i,r=s),r.reverse();i--;r.push(0));r.reverse()}for((i=s.length)-(t=c.length)<0&&(r=c,c=s,s=r,t=i),i=0;t;)i=(s[--t]=s[t]+c[t]+i)/f|0,s[t]=f===s[t]?0:s[t]%f;return i&&(s=[i].concat(s),++a),G(e,s,a)},U.precision=U.sd=function(e,t){var r,n,i,o=this;if(null!=e&&e!==!!e)return w(e,1,v),null==t?t=C:w(t,0,8),Z(new W(o),e,t);if(!(r=o.c))return null;if(n=(i=r.length-1)*h+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&o.e+1>n&&(n=o.e+1),n},U.shiftedBy=function(e){return w(e,-9007199254740991,d),this.times("1e"+e)},U.squareRoot=U.sqrt=function(){var e,t,n,i,o,a=this,s=a.c,c=a.s,l=a.e,u=z+4,f=new W("0.5");if(1!==c||!s||!s[0])return new W(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(c=Math.sqrt(+$(a)))||c==1/0?(((t=m(s)).length+l)%2==0&&(t+="0"),c=Math.sqrt(+t),l=y((l+1)/2)-(l<0||l%2),n=new W(t=c==1/0?"5e"+l:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+l)):n=new W(c+""),n.c[0])for((c=(l=n.e)+u)<3&&(c=0);;)if(o=n,n=f.times(o.plus(r(a,o,u,1))),m(o.c).slice(0,c)===(t=m(n.c)).slice(0,c)){if(n.e<l&&--c,"9999"!=(t=t.slice(c-3,c+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(Z(n,n.e+z+2,1),e=!n.times(n).eq(a));break}if(!i&&(Z(o,o.e+z+2,0),o.times(o).eq(a))){n=o;break}u+=4,c+=4,i=1}return Z(n,n.e+z+1,C,e)},U.toExponential=function(e,t){return null!=e&&(w(e,0,v),e++),q(this,e,t,1)},U.toFixed=function(e,t){return null!=e&&(w(e,0,v),e=e+this.e+1),q(this,e,t)},U.toFormat=function(e,t,r){var n,i=this;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=F;else if("object"!=typeof r)throw Error(l+"Argument not an object: "+r);if(n=i.toFixed(e,t),i.c){var o,a=n.split("."),s=+r.groupSize,c=+r.secondaryGroupSize,u=r.groupSeparator||"",f=a[0],h=a[1],d=i.s<0,p=d?f.slice(1):f,g=p.length;if(c&&(o=s,s=c,c=o,g-=o),s>0&&g>0){for(o=g%s||s,f=p.substr(0,o);o<g;o+=s)f+=u+p.substr(o,s);c>0&&(f+=u+p.slice(o)),d&&(f="-"+f)}n=h?f+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?h.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):h):f}return(r.prefix||"")+n+(r.suffix||"")},U.toFraction=function(e){var t,n,i,o,a,s,c,u,f,d,g,v,y=this,b=y.c;if(null!=e&&(!(c=new W(e)).isInteger()&&(c.c||1!==c.s)||c.lt(O)))throw Error(l+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+$(c));if(!b)return new W(y);for(t=new W(O),f=n=new W(O),i=u=new W(O),v=m(b),a=t.e=v.length-y.e-1,t.c[0]=p[(s=a%h)<0?h+s:s],e=!e||c.comparedTo(t)>0?a>0?t:f:c,s=D,D=1/0,c=new W(v),u.c[0]=0;d=r(c,t,0,1),1!=(o=n.plus(d.times(i))).comparedTo(e);)n=i,i=o,f=u.plus(d.times(o=f)),u=o,t=c.minus(d.times(o=t)),c=o;return o=r(e.minus(n),i,0,1),u=u.plus(o.times(f)),n=n.plus(o.times(i)),u.s=f.s=y.s,g=r(f,i,a*=2,C).minus(y).abs().comparedTo(r(u,n,a,C).minus(y).abs())<1?[f,i]:[u,n],D=s,g},U.toNumber=function(){return+$(this)},U.toPrecision=function(e,t){return null!=e&&w(e,1,v),q(this,e,t,2)},U.toString=function(e){var t,r=this,i=r.s,o=r.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=N||o>=R?k(m(r.c),o):x(m(r.c),o,"0"):10===e&&L?t=x(m((r=Z(new W(r),z+o+1,C)).c),r.e,"0"):(w(e,2,K.length,"Base"),t=n(x(m(r.c),o,"0"),10,e,i,!0)),i<0&&r.c[0]&&(t="-"+t)),t},U.valueOf=U.toJSON=function(){return $(this)},U._isBigNumber=!0,null!=t&&W.set(t),W}(),o.default=o.BigNumber=o,void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}()},8442:(e,t,r)=>{const n=r(9488);function i(e,t,r){const n=e[t]+e[r];let i=e[t+1]+e[r+1];n>=4294967296&&i++,e[t]=n,e[t+1]=i}function o(e,t,r,n){let i=e[t]+r;r<0&&(i+=4294967296);let o=e[t+1]+n;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,r,n,a,s){const c=f[a],l=f[a+1],h=f[s],d=f[s+1];i(u,e,t),o(u,e,c,l);let p=u[n]^u[e],g=u[n+1]^u[e+1];u[n]=g,u[n+1]=p,i(u,r,n),p=u[t]^u[r],g=u[t+1]^u[r+1],u[t]=p>>>24^g<<8,u[t+1]=g>>>24^p<<8,i(u,e,t),o(u,e,h,d),p=u[n]^u[e],g=u[n+1]^u[e+1],u[n]=p>>>16^g<<16,u[n+1]=g>>>16^p<<16,i(u,r,n),p=u[t]^u[r],g=u[t+1]^u[r+1],u[t]=g>>>31^p<<1,u[t+1]=p>>>31^g<<1}const c=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),l=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map((function(e){return 2*e}))),u=new Uint32Array(32),f=new Uint32Array(32);function h(e,t){let r=0;for(r=0;r<16;r++)u[r]=e.h[r],u[r+16]=c[r];for(u[24]=u[24]^e.t,u[25]=u[25]^e.t/4294967296,t&&(u[28]=~u[28],u[29]=~u[29]),r=0;r<32;r++)f[r]=a(e.b,4*r);for(r=0;r<12;r++)s(0,8,16,24,l[16*r+0],l[16*r+1]),s(2,10,18,26,l[16*r+2],l[16*r+3]),s(4,12,20,28,l[16*r+4],l[16*r+5]),s(6,14,22,30,l[16*r+6],l[16*r+7]),s(0,10,20,30,l[16*r+8],l[16*r+9]),s(2,12,22,24,l[16*r+10],l[16*r+11]),s(4,14,16,26,l[16*r+12],l[16*r+13]),s(6,8,18,28,l[16*r+14],l[16*r+15]);for(r=0;r<16;r++)e.h[r]=e.h[r]^u[r]^u[r+16]}const d=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,r,n){if(0===e||e>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(r&&16!==r.length)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(n&&16!==n.length)throw new Error("Illegal personal, expected Uint8Array with length is 16");const i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};d.fill(0),d[0]=e,t&&(d[1]=t.length),d[2]=1,d[3]=1,r&&d.set(r,32),n&&d.set(n,48);for(let e=0;e<16;e++)i.h[e]=c[e]^a(d,4*e);return t&&(g(i,t),i.c=128),i}function g(e,t){for(let r=0;r<t.length;r++)128===e.c&&(e.t+=e.c,h(e,!1),e.c=0),e.b[e.c++]=t[r]}function v(e){for(e.t+=e.c;e.c<128;)e.b[e.c++]=0;h(e,!0);const t=new Uint8Array(e.outlen);for(let r=0;r<e.outlen;r++)t[r]=e.h[r>>2]>>8*(3&r);return t}function y(e,t,r,i,o){r=r||64,e=n.normalizeInput(e),i&&(i=n.normalizeInput(i)),o&&(o=n.normalizeInput(o));const a=p(r,t,i,o);return g(a,e),v(a)}e.exports={blake2b:y,blake2bHex:function(e,t,r,i,o){const a=y(e,t,r,i,o);return n.toHex(a)},blake2bInit:p,blake2bUpdate:g,blake2bFinal:v}},5297:(e,t,r)=>{const n=r(9488);function i(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function o(e,t,r,n,i,o){l[e]=l[e]+l[t]+i,l[n]=a(l[n]^l[e],16),l[r]=l[r]+l[n],l[t]=a(l[t]^l[r],12),l[e]=l[e]+l[t]+o,l[n]=a(l[n]^l[e],8),l[r]=l[r]+l[n],l[t]=a(l[t]^l[r],7)}function a(e,t){return e>>>t^e<<32-t}const s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function f(e,t){let r=0;for(r=0;r<8;r++)l[r]=e.h[r],l[r+8]=s[r];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),r=0;r<16;r++)u[r]=i(e.b,4*r);for(r=0;r<10;r++)o(0,4,8,12,u[c[16*r+0]],u[c[16*r+1]]),o(1,5,9,13,u[c[16*r+2]],u[c[16*r+3]]),o(2,6,10,14,u[c[16*r+4]],u[c[16*r+5]]),o(3,7,11,15,u[c[16*r+6]],u[c[16*r+7]]),o(0,5,10,15,u[c[16*r+8]],u[c[16*r+9]]),o(1,6,11,12,u[c[16*r+10]],u[c[16*r+11]]),o(2,7,8,13,u[c[16*r+12]],u[c[16*r+13]]),o(3,4,9,14,u[c[16*r+14]],u[c[16*r+15]]);for(r=0;r<8;r++)e.h[r]^=l[r]^l[r+8]}function h(e,t){if(!(e>0&&e<=32))throw new Error("Incorrect output length, should be in [1, 32]");const r=t?t.length:0;if(t&&!(r>0&&r<=32))throw new Error("Incorrect key length, should be in [1, 32]");const n={h:new Uint32Array(s),b:new Uint8Array(64),c:0,t:0,outlen:e};return n.h[0]^=16842752^r<<8^e,r>0&&(d(n,t),n.c=64),n}function d(e,t){for(let r=0;r<t.length;r++)64===e.c&&(e.t+=e.c,f(e,!1),e.c=0),e.b[e.c++]=t[r]}function p(e){for(e.t+=e.c;e.c<64;)e.b[e.c++]=0;f(e,!0);const t=new Uint8Array(e.outlen);for(let r=0;r<e.outlen;r++)t[r]=e.h[r>>2]>>8*(3&r)&255;return t}function g(e,t,r){r=r||32,e=n.normalizeInput(e);const i=h(r,t);return d(i,e),p(i)}e.exports={blake2s:g,blake2sHex:function(e,t,r){const i=g(e,t,r);return n.toHex(i)},blake2sInit:h,blake2sUpdate:d,blake2sFinal:p}},1191:(e,t,r)=>{const n=r(8442),i=r(5297);e.exports={blake2b:n.blake2b,blake2bHex:n.blake2bHex,blake2bInit:n.blake2bInit,blake2bUpdate:n.blake2bUpdate,blake2bFinal:n.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},9488:e=>{function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else{if("string"!=typeof e)throw new Error("Input must be an string, Buffer or Uint8Array");t=(new TextEncoder).encode(e)}return t},toHex:function(e){return Array.prototype.map.call(e,(function(e){return(e<16?"0":"")+e.toString(16)})).join("")},debugPrint:function(e,r,n){let i="\n"+e+" = ";for(let o=0;o<r.length;o+=2){if(32===n)i+=t(r[o]).toUpperCase(),i+=" ",i+=t(r[o+1]).toUpperCase();else{if(64!==n)throw new Error("Invalid size "+n);i+=t(r[o+1]).toUpperCase(),i+=t(r[o]).toUpperCase()}o%6==4?i+="\n"+new Array(e.length+4).join(" "):o<r.length-2&&(i+=" ")}console.log(i)},testSpeed:function(e,t,r){let n=(new Date).getTime();const i=new Uint8Array(t);for(let e=0;e<t;e++)i[e]=e%256;const o=(new Date).getTime();console.log("Generated random input in "+(o-n)+"ms"),n=o;for(let o=0;o<r;o++){const r=e(i),o=(new Date).getTime(),a=o-n;n=o,console.log("Hashed in "+a+"ms: "+r.substring(0,20)+"..."),console.log(Math.round(t/(1<<20)/(a/1e3)*100)/100+" MB PER SECOND")}}}},1294:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bytesToBase64=o,t.base64ToBytes=a,t.base64encode=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new TextEncoder;return o(t.encode(e))},t.base64decode=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new TextDecoder;return t.decode(a(e))};var r=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"],n=[255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,62,255,255,255,63,52,53,54,55,56,57,58,59,60,61,255,255,255,0,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];function i(e){if(e>=n.length)throw new Error("Unable to parse base64 string.");var t=n[e];if(255===t)throw new Error("Unable to parse base64 string.");return t}function o(e){var t,n="",i=e.length;for(t=2;t<i;t+=3)n+=r[e[t-2]>>2],n+=r[(3&e[t-2])<<4|e[t-1]>>4],n+=r[(15&e[t-1])<<2|e[t]>>6],n+=r[63&e[t]];return t===i+1&&(n+=r[e[t-2]>>2],n+=r[(3&e[t-2])<<4],n+="=="),t===i&&(n+=r[e[t-2]>>2],n+=r[(3&e[t-2])<<4|e[t-1]>>4],n+=r[(15&e[t-1])<<2],n+="="),n}function a(e){if(e.length%4!=0)throw new Error("Unable to parse base64 string.");var t=e.indexOf("=");if(-1!==t&&t<e.length-2)throw new Error("Unable to parse base64 string.");for(var r,n=e.endsWith("==")?2:e.endsWith("=")?1:0,o=e.length,a=new Uint8Array(o/4*3),s=0,c=0;s<o;s+=4,c+=3)r=i(e.charCodeAt(s))<<18|i(e.charCodeAt(s+1))<<12|i(e.charCodeAt(s+2))<<6|i(e.charCodeAt(s+3)),a[c]=r>>16,a[c+1]=r>>8&255,a[c+2]=255&r;return a.subarray(0,a.length-n)}},452:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],f=[],h=[],d=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var g=e[r],v=e[g],y=e[v],m=257*e[p]^16843008*p;a[r]=m<<24|m>>>8,s[r]=m<<16|m>>>16,c[r]=m<<8|m>>>24,l[r]=m,m=16843009*y^65537*v^257*g^16843008*r,u[p]=m<<24|m>>>8,f[p]=m<<16|m>>>16,h[p]=m<<8|m>>>24,d[p]=m,r?(r=g^e[e[e[y^g]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)if(a<r)o[a]=t[a];else{var s=o[a-1];a%r?r>6&&a%r==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=p[a/r|0]<<24),o[a]=o[a-r]^s}for(var c=this._invKeySchedule=[],l=0;l<n;l++)a=n-l,s=l%4?o[a]:o[a-4],c[l]=l<4||a<=4?s:u[i[s>>>24]]^f[i[s>>>16&255]]^h[i[s>>>8&255]]^d[i[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,f,h,d,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],f=e[t+2]^r[2],h=e[t+3]^r[3],d=4,p=1;p<c;p++){var g=n[l>>>24]^i[u>>>16&255]^o[f>>>8&255]^a[255&h]^r[d++],v=n[u>>>24]^i[f>>>16&255]^o[h>>>8&255]^a[255&l]^r[d++],y=n[f>>>24]^i[h>>>16&255]^o[l>>>8&255]^a[255&u]^r[d++],m=n[h>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&f]^r[d++];l=g,u=v,f=y,h=m}g=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[d++],v=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&l])^r[d++],y=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[d++],m=(s[h>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^r[d++],e[t]=g,e[t+1]=v,e[t+2]=y,e[t+3]=m},keySize:8});e.AES=t._createHelper(g)}(),n.AES)},5109:function(e,t,r){var n,i,o,a,s,c,l,u,f,h,d,p,g,v,y,m,b,w,_;e.exports=(n=r(8249),r(888),void(n.lib.Cipher||(i=n,o=i.lib,a=o.Base,s=o.WordArray,c=o.BufferedBlockAlgorithm,l=i.enc,l.Utf8,u=l.Base64,f=i.algo.EvpKDF,h=o.Cipher=c.extend({cfg:a.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?_:b}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()}),o.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),d=i.mode={},p=o.BlockCipherMode=a.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),g=d.CBC=function(){var e=p.extend();function t(e,t,r){var n=this._iv;if(n){var i=n;this._iv=void 0}else i=this._prevBlock;for(var o=0;o<r;o++)e[t+o]^=i[o]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize;t.call(this,e,r,i),n.encryptBlock(e,r),this._prevBlock=e.slice(r,r+i)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=e.slice(r,r+i);n.decryptBlock(e,r),t.call(this,e,r,i),this._prevBlock=o}}),e}(),v=(i.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,i=n<<24|n<<16|n<<8|n,o=[],a=0;a<n;a+=4)o.push(i);var c=s.create(o,n);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},o.BlockCipher=h.extend({cfg:h.cfg.extend({mode:g,padding:v}),reset:function(){h.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else n=r.createDecryptor,this._minBufferSize=1;this._mode&&this._mode.__creator==n?this._mode.init(this,t&&t.words):(this._mode=n.call(r,this,t&&t.words),this._mode.__creator=n)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4}),y=o.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),m=(i.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var n=s.create([1398893684,1701076831]).concat(r).concat(t);else n=t;return n.toString(u)},parse:function(e){var t=u.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var n=s.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return y.create({ciphertext:t,salt:n})}},b=o.SerializableCipher=a.extend({cfg:a.extend({format:m}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return y.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=(i.kdf={}).OpenSSL={execute:function(e,t,r,n){n||(n=s.random(8));var i=f.create({keySize:t+r}).compute(e,n),o=s.create(i.words.slice(t),4*r);return i.sigBytes=4*t,y.create({key:i,iv:o,salt:n})}},_=o.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:w}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var o=b.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);return n.iv=i.iv,b.decrypt.call(this,e,t,i.key,n)}}))))},8249:function(e,t){var r;e.exports=(r=r||function(e,t){var r=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),n={},i=n.lib={},o=i.Base={extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(o=0;o<i;o+=4)t[n+o>>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],i=function(t){t=t;var r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var s=i(4294967296*(r||e.random()));r=987654071*s(),n.push(4294967296*s()|0)}return new a.init(n,t)}}),s=n.enc={},c=s.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(r,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(r,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},f=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,s=i/(4*o),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,l=e.min(4*c,i);if(c){for(var u=0;u<c;u+=o)this._doProcessBlock(n,u);var f=n.splice(0,c);r.sigBytes-=l}return new a.init(f,l)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),h=(i.Hasher=f.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new h.HMAC.init(e,r).finalize(t)}}}),n.algo={});return n}(Math),r)},8269:function(e,t,r){var n,i,o;e.exports=(n=r(8249),o=(i=n).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var i=0;i<r.length;i++)n[r.charCodeAt(i)]=i}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,r){for(var n=[],i=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2,c=r[e.charCodeAt(a)]>>>6-a%4*2;n[i>>>2]|=(s|c)<<24-i%4*8,i++}return o.create(n,i)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},298:function(e,t,r){var n;e.exports=(n=r(8249),function(){var e=n,t=e.lib.WordArray,r=e.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i<r;i++)n[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(n,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o+=2){var a=i(t[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var r=e.length,n=[],o=0;o<r;o++)n[o>>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return t.create(n,2*r)}}}(),n.enc.Utf16)},888:function(e,t,r){var n,i,o,a,s,c,l,u;e.exports=(u=r(8249),r(2783),r(9824),o=(i=(n=u).lib).Base,a=i.WordArray,c=(s=n.algo).MD5,l=s.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=r.hasher.create(),i=a.create(),o=i.words,s=r.keySize,c=r.iterations;o.length<s;){l&&n.update(l);var l=n.update(e).finalize(t);n.reset();for(var u=1;u<c;u++)l=n.finalize(l),n.reset();i.concat(l)}return i.sigBytes=4*s,i}}),n.EvpKDF=function(e,t,r){return l.create(r).compute(e,t)},u.EvpKDF)},2209:function(e,t,r){var n,i,o,a;e.exports=(a=r(8249),r(5109),i=(n=a).lib.CipherParams,o=n.enc.Hex,n.format.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var t=o.parse(e);return i.create({ciphertext:t})}},a.format.Hex)},9824:function(e,t,r){var n,i,o;e.exports=(i=(n=r(8249)).lib.Base,o=n.enc.Utf8,void(n.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,c=a.words,l=0;l<r;l++)s[l]^=1549556828,c[l]^=909522486;i.sigBytes=a.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})))},1354:function(e,t,r){var n;e.exports=(n=r(8249),r(4938),r(4433),r(298),r(8269),r(8214),r(2783),r(2153),r(7792),r(34),r(7460),r(3327),r(706),r(9824),r(2112),r(888),r(5109),r(8568),r(4242),r(9968),r(7660),r(1148),r(3615),r(2807),r(1077),r(6475),r(6991),r(2209),r(452),r(4253),r(1857),r(4454),r(3974),n)},4433:function(e,t,r){var n;e.exports=(n=r(8249),function(){if("function"==typeof ArrayBuffer){var e=n.lib.WordArray,t=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,n=[],i=0;i<r;i++)n[i>>>2]|=e[i]<<24-i%4*8;t.call(this,n,r)}else t.apply(this,arguments)};r.prototype=e}}(),n.lib.WordArray)},8214:function(e,t,r){var n;e.exports=(n=r(8249),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],d=e[t+2],p=e[t+3],g=e[t+4],v=e[t+5],y=e[t+6],m=e[t+7],b=e[t+8],w=e[t+9],_=e[t+10],k=e[t+11],x=e[t+12],A=e[t+13],S=e[t+14],B=e[t+15],M=o[0],E=o[1],H=o[2],U=o[3];M=l(M,E,H,U,a,7,s[0]),U=l(U,M,E,H,c,12,s[1]),H=l(H,U,M,E,d,17,s[2]),E=l(E,H,U,M,p,22,s[3]),M=l(M,E,H,U,g,7,s[4]),U=l(U,M,E,H,v,12,s[5]),H=l(H,U,M,E,y,17,s[6]),E=l(E,H,U,M,m,22,s[7]),M=l(M,E,H,U,b,7,s[8]),U=l(U,M,E,H,w,12,s[9]),H=l(H,U,M,E,_,17,s[10]),E=l(E,H,U,M,k,22,s[11]),M=l(M,E,H,U,x,7,s[12]),U=l(U,M,E,H,A,12,s[13]),H=l(H,U,M,E,S,17,s[14]),M=u(M,E=l(E,H,U,M,B,22,s[15]),H,U,c,5,s[16]),U=u(U,M,E,H,y,9,s[17]),H=u(H,U,M,E,k,14,s[18]),E=u(E,H,U,M,a,20,s[19]),M=u(M,E,H,U,v,5,s[20]),U=u(U,M,E,H,_,9,s[21]),H=u(H,U,M,E,B,14,s[22]),E=u(E,H,U,M,g,20,s[23]),M=u(M,E,H,U,w,5,s[24]),U=u(U,M,E,H,S,9,s[25]),H=u(H,U,M,E,p,14,s[26]),E=u(E,H,U,M,b,20,s[27]),M=u(M,E,H,U,A,5,s[28]),U=u(U,M,E,H,d,9,s[29]),H=u(H,U,M,E,m,14,s[30]),M=f(M,E=u(E,H,U,M,x,20,s[31]),H,U,v,4,s[32]),U=f(U,M,E,H,b,11,s[33]),H=f(H,U,M,E,k,16,s[34]),E=f(E,H,U,M,S,23,s[35]),M=f(M,E,H,U,c,4,s[36]),U=f(U,M,E,H,g,11,s[37]),H=f(H,U,M,E,m,16,s[38]),E=f(E,H,U,M,_,23,s[39]),M=f(M,E,H,U,A,4,s[40]),U=f(U,M,E,H,a,11,s[41]),H=f(H,U,M,E,p,16,s[42]),E=f(E,H,U,M,y,23,s[43]),M=f(M,E,H,U,w,4,s[44]),U=f(U,M,E,H,x,11,s[45]),H=f(H,U,M,E,B,16,s[46]),M=h(M,E=f(E,H,U,M,d,23,s[47]),H,U,a,6,s[48]),U=h(U,M,E,H,m,10,s[49]),H=h(H,U,M,E,S,15,s[50]),E=h(E,H,U,M,v,21,s[51]),M=h(M,E,H,U,x,6,s[52]),U=h(U,M,E,H,p,10,s[53]),H=h(H,U,M,E,_,15,s[54]),E=h(E,H,U,M,c,21,s[55]),M=h(M,E,H,U,b,6,s[56]),U=h(U,M,E,H,B,10,s[57]),H=h(H,U,M,E,y,15,s[58]),E=h(E,H,U,M,A,21,s[59]),M=h(M,E,H,U,g,6,s[60]),U=h(U,M,E,H,k,10,s[61]),H=h(H,U,M,E,d,15,s[62]),E=h(E,H,U,M,w,21,s[63]),o[0]=o[0]+M|0,o[1]=o[1]+E|0,o[2]=o[2]+H|0,o[3]=o[3]+U|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function u(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),n.MD5)},8568:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.mode.CFB=function(){var e=n.lib.BlockCipherMode.extend();function t(e,t,r,n){var i=this._iv;if(i){var o=i.slice(0);this._iv=void 0}else o=this._prevBlock;n.encryptBlock(o,0);for(var a=0;a<r;a++)e[t+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize;t.call(this,e,r,i,n),this._prevBlock=e.slice(r,r+i)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=e.slice(r,r+i);t.call(this,e,r,i,n),this._prevBlock=o}}),e}(),n.mode.CFB)},9968:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.mode.CTRGladman=function(){var e=n.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);n.encryptBlock(s,0);for(var c=0;c<i;c++)e[r+c]^=s[c]}});return e.Decryptor=r,e}(),n.mode.CTRGladman)},4242:function(e,t,r){var n,i,o;e.exports=(o=r(8249),r(5109),o.mode.CTR=(i=(n=o.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);r.encryptBlock(a,0),o[n-1]=o[n-1]+1|0;for(var s=0;s<n;s++)e[t+s]^=a[s]}}),n.Decryptor=i,n),o.mode.CTR)},1148:function(e,t,r){var n,i;e.exports=(i=r(8249),r(5109),i.mode.ECB=((n=i.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),n.Decryptor=n.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),n),i.mode.ECB)},7660:function(e,t,r){var n,i,o;e.exports=(o=r(8249),r(5109),o.mode.OFB=(i=(n=o.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var a=0;a<n;a++)e[t+a]^=o[a]}}),n.Decryptor=i,n),o.mode.OFB)},3615:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Ansix923)},2807:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.pad.Iso10126={pad:function(e,t){var r=4*t,i=r-e.sigBytes%r;e.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)},1077:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)},6991:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},6475:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1;!(t[r>>>2]>>>24-r%4*8&255);)r--;e.sigBytes=r+1}},n.pad.ZeroPadding)},2112:function(e,t,r){var n,i,o,a,s,c,l,u,f;e.exports=(f=r(8249),r(2783),r(9824),o=(i=(n=f).lib).Base,a=i.WordArray,c=(s=n.algo).SHA1,l=s.HMAC,u=s.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=l.create(r.hasher,e),i=a.create(),o=a.create([1]),s=i.words,c=o.words,u=r.keySize,f=r.iterations;s.length<u;){var h=n.update(t).finalize(o);n.reset();for(var d=h.words,p=d.length,g=h,v=1;v<f;v++){g=n.finalize(g),n.reset();for(var y=g.words,m=0;m<p;m++)d[m]^=y[m]}i.concat(h),c[0]++}return i.sigBytes=4*u,i}}),n.PBKDF2=function(e,t,r){return u.create(r).compute(e,t)},f.PBKDF2)},3974:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=l>>>16|4294901760&u,h=u<<16|65535&l;for(n[0]^=l,n[1]^=f,n[2]^=u,n[3]^=h,n[4]^=l,n[5]^=f,n[6]^=u,n[7]^=h,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),n.RabbitLegacy)},4454:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=l>>>16|4294901760&u,h=u<<16|65535&l;for(i[0]^=l,i[1]^=f,i[2]^=u,i[3]^=h,i[4]^=l,i[5]^=f,i[6]^=u,i[7]^=h,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),n.Rabbit)},1857:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=r.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}e.RC4=t._createHelper(i);var a=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),n.RC4)},706:function(e,t,r){var n;e.exports=(n=r(8249),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=i.create([0,1518500249,1859775393,2400959708,2840853838]),h=i.create([1352829926,1548603684,1836072691,2053994217,0]),d=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,d,w,_,k,x,A,S,B,M,E=this._hash.words,H=f.words,U=h.words,O=s.words,z=c.words,C=l.words,N=u.words;for(k=o=E[0],x=a=E[1],A=d=E[2],S=w=E[3],B=_=E[4],r=0;r<80;r+=1)M=o+e[t+O[r]]|0,M+=r<16?p(a,d,w)+H[0]:r<32?g(a,d,w)+H[1]:r<48?v(a,d,w)+H[2]:r<64?y(a,d,w)+H[3]:m(a,d,w)+H[4],M=(M=b(M|=0,C[r]))+_|0,o=_,_=w,w=b(d,10),d=a,a=M,M=k+e[t+z[r]]|0,M+=r<16?m(x,A,S)+U[0]:r<32?y(x,A,S)+U[1]:r<48?v(x,A,S)+U[2]:r<64?g(x,A,S)+U[3]:p(x,A,S)+U[4],M=(M=b(M|=0,N[r]))+B|0,k=B,B=S,S=b(A,10),A=x,x=M;M=E[1]+d+S|0,E[1]=E[2]+w+B|0,E[2]=E[3]+_+k|0,E[3]=E[4]+o+x|0,E[4]=E[0]+a+A|0,E[0]=M},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function g(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function y(e,t,r){return e&r|t&~r}function m(e,t,r){return e^(t|~r)}function b(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(d),t.HmacRIPEMD160=o._createHmacHelper(d)}(Math),n.RIPEMD160)},2783:function(e,t,r){var n,i,o,a,s,c,l,u;e.exports=(i=(n=u=r(8249)).lib,o=i.WordArray,a=i.Hasher,s=n.algo,c=[],l=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=0;l<80;l++){if(l<16)c[l]=0|e[t+l];else{var u=c[l-3]^c[l-8]^c[l-14]^c[l-16];c[l]=u<<1|u>>>31}var f=(n<<5|n>>>27)+s+c[l];f+=l<20?1518500249+(i&o|~i&a):l<40?1859775393+(i^o^a):l<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=a._createHelper(l),n.HmacSHA1=a._createHmacHelper(l),u.SHA1)},7792:function(e,t,r){var n,i,o,a,s,c;e.exports=(c=r(8249),r(2153),i=(n=c).lib.WordArray,o=n.algo,a=o.SHA256,s=o.SHA224=a.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=a._createHelper(s),n.HmacSHA224=a._createHmacHelper(s),c.SHA224)},2153:function(e,t,r){var n;e.exports=(n=r(8249),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=r(e.pow(n,.5))),c[i]=r(e.pow(n,1/3)),i++),n++}();var l=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],f=r[6],h=r[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var p=l[d-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,v=l[d-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;l[d]=g+l[d-7]+y+l[d-16]}var m=n&i^n&o^i&o,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&f)+c[d]+l[d];h=f,f=u,u=s,s=a+w|0,a=o,o=i,i=n,n=w+(b+m)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+u|0,r[6]=r[6]+f|0,r[7]=r[7]+h|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),n.SHA256)},3327:function(e,t,r){var n;e.exports=(n=r(8249),r(4938),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.x64.Word,s=t.algo,c=[],l=[],u=[];!function(){for(var e=1,t=0,r=0;r<24;r++){c[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,f=0,h=0;h<7;h++){if(1&i){var d=(1<<h)-1;d<32?f^=1<<d:s^=1<<d-32}128&i?i=i<<1^113:i<<=1}u[o]=a.create(s,f)}}();var f=[];!function(){for(var e=0;e<25;e++)f[e]=a.create()}();var h=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=e[t+2*i],a=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(E=r[i]).high^=a,E.low^=o}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var d=0,p=0,g=0;g<5;g++)d^=(E=r[h+5*g]).high,p^=E.low;var v=f[h];v.high=d,v.low=p}for(h=0;h<5;h++){var y=f[(h+4)%5],m=f[(h+1)%5],b=m.high,w=m.low;for(d=y.high^(b<<1|w>>>31),p=y.low^(w<<1|b>>>31),g=0;g<5;g++)(E=r[h+5*g]).high^=d,E.low^=p}for(var _=1;_<25;_++){var k=(E=r[_]).high,x=E.low,A=c[_];A<32?(d=k<<A|x>>>32-A,p=x<<A|k>>>32-A):(d=x<<A-32|k>>>64-A,p=k<<A-32|x>>>64-A);var S=f[l[_]];S.high=d,S.low=p}var B=f[0],M=r[0];for(B.high=M.high,B.low=M.low,h=0;h<5;h++)for(g=0;g<5;g++){var E=r[_=h+5*g],H=f[_],U=f[(h+1)%5+5*g],O=f[(h+2)%5+5*g];E.high=H.high^~U.high&O.high,E.low=H.low^~U.low&O.low}E=r[0];var z=u[s];E.high^=z.high,E.low^=z.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,c=s/8,l=[],u=0;u<c;u++){var f=a[u],h=f.high,d=f.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),l.push(d),l.push(h)}return new i.init(l,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(h),t.HmacSHA3=o._createHmacHelper(h)}(Math),n.SHA3)},7460:function(e,t,r){var n,i,o,a,s,c,l,u;e.exports=(u=r(8249),r(4938),r(34),i=(n=u).x64,o=i.Word,a=i.WordArray,s=n.algo,c=s.SHA512,l=s.SHA384=c.extend({_doReset:function(){this._hash=new a.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var e=c._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=c._createHelper(l),n.HmacSHA384=c._createHmacHelper(l),u.SHA384)},34:function(e,t,r){var n;e.exports=(n=r(8249),r(4938),function(){var e=n,t=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=s()}();var u=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],f=r[6],h=r[7],d=n.high,p=n.low,g=i.high,v=i.low,y=o.high,m=o.low,b=a.high,w=a.low,_=s.high,k=s.low,x=u.high,A=u.low,S=f.high,B=f.low,M=h.high,E=h.low,H=d,U=p,O=g,z=v,C=y,N=m,R=b,I=w,D=_,P=k,T=x,j=A,F=S,K=B,L=M,W=E,q=0;q<80;q++){var X=l[q];if(q<16)var G=X.high=0|e[t+2*q],Z=X.low=0|e[t+2*q+1];else{var $=l[q-15],V=$.high,Y=$.low,J=(V>>>1|Y<<31)^(V>>>8|Y<<24)^V>>>7,Q=(Y>>>1|V<<31)^(Y>>>8|V<<24)^(Y>>>7|V<<25),ee=l[q-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=l[q-7],ae=oe.high,se=oe.low,ce=l[q-16],le=ce.high,ue=ce.low;G=(G=(G=J+ae+((Z=Q+se)>>>0<Q>>>0?1:0))+ne+((Z+=ie)>>>0<ie>>>0?1:0))+le+((Z+=ue)>>>0<ue>>>0?1:0),X.high=G,X.low=Z}var fe,he=D&T^~D&F,de=P&j^~P&K,pe=H&O^H&C^O&C,ge=U&z^U&N^z&N,ve=(H>>>28|U<<4)^(H<<30|U>>>2)^(H<<25|U>>>7),ye=(U>>>28|H<<4)^(U<<30|H>>>2)^(U<<25|H>>>7),me=(D>>>14|P<<18)^(D>>>18|P<<14)^(D<<23|P>>>9),be=(P>>>14|D<<18)^(P>>>18|D<<14)^(P<<23|D>>>9),we=c[q],_e=we.high,ke=we.low,xe=L+me+((fe=W+be)>>>0<W>>>0?1:0),Ae=ye+ge;L=F,W=K,F=T,K=j,T=D,j=P,D=R+(xe=(xe=(xe=xe+he+((fe+=de)>>>0<de>>>0?1:0))+_e+((fe+=ke)>>>0<ke>>>0?1:0))+G+((fe+=Z)>>>0<Z>>>0?1:0))+((P=I+fe|0)>>>0<I>>>0?1:0)|0,R=C,I=N,C=O,N=z,O=H,z=U,H=xe+(ve+pe+(Ae>>>0<ye>>>0?1:0))+((U=fe+Ae|0)>>>0<fe>>>0?1:0)|0}p=n.low=p+U,n.high=d+H+(p>>>0<U>>>0?1:0),v=i.low=v+z,i.high=g+O+(v>>>0<z>>>0?1:0),m=o.low=m+N,o.high=y+C+(m>>>0<N>>>0?1:0),w=a.low=w+I,a.high=b+R+(w>>>0<I>>>0?1:0),k=s.low=k+P,s.high=_+D+(k>>>0<P>>>0?1:0),A=u.low=A+j,u.high=x+T+(A>>>0<j>>>0?1:0),B=f.low=B+K,f.high=S+F+(B>>>0<K>>>0?1:0),E=h.low=E+W,h.high=M+L+(E>>>0<W>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(u),e.HmacSHA512=t._createHmacHelper(u)}(),n.SHA512)},4253:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib,r=t.WordArray,i=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var l=i[o]=[],u=c[o];for(r=0;r<24;r++)l[r/6|0]|=t[(s[r]-1+u)%28]<<31-r%6,l[4+(r/6|0)]|=t[28+(s[r+24]-1+u)%28]<<31-r%6;for(l[0]=l[0]<<1|l[0]>>>31,r=1;r<7;r++)l[r]=l[r]>>>4*(r-1)+3;l[7]=l[7]<<5|l[7]>>>27}var f=this._invSubKeys=[];for(r=0;r<16;r++)f[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),h.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,c=0;c<8;c++)s|=l[c][((a^i[c])&u[c])>>>0];this._lBlock=a,this._rBlock=o^s}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,h.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function d(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}e.DES=i._createHelper(f);var p=o.TripleDES=i.extend({_doReset:function(){var e=this._key.words;this._des1=f.createEncryptor(r.create(e.slice(0,2))),this._des2=f.createEncryptor(r.create(e.slice(2,4))),this._des3=f.createEncryptor(r.create(e.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=i._createHelper(p)}(),n.TripleDES)},4938:function(e,t,r){var n,i,o,a,s,c;e.exports=(n=r(8249),o=(i=n).lib,a=o.Base,s=o.WordArray,(c=i.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),c.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var i=e[n];r.push(i.high),r.push(i.low)}return s.create(r,this.sigBytes)},clone:function(){for(var e=a.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}}),n)},8492:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.box=t.tools=t.block=t.wallet=void 0;var s=a(r(6435)),c=a(r(9185)),l=a(r(4333)),u=a(r(2768)),f=a(r(2604)),h=a(r(9646)),d=a(r(7243)),p=a(r(9489)),g={generate:function(e,t){return s.default.generateWallet(e,t)},generateLegacy:function(e){return s.default.generateLegacyWallet(e)},fromMnemonic:function(e,t){return c.default.fromMnemonic(e,t)},fromLegacyMnemonic:function(e){return c.default.fromLegacyMnemonic(e)},fromSeed:function(e){return c.default.fromSeed(e)},fromLegacySeed:function(e){return c.default.fromLegacySeed(e)},accounts:function(e,t,r){return c.default.fromSeed(e,t,r).accounts},legacyAccounts:function(e,t,r){return c.default.fromLegacySeed(e,t,r).accounts}};t.wallet=g;var v={send:function(e,t){return l.default.send(e,t)},receive:function(e,t){return l.default.receive(e,t)},representative:function(e,t){var r=n(n({},e),{fromAddress:e.address,amountRaw:"0",toAddress:"nano_1111111111111111111111111111111111111111111111111111hifc8npp"});return l.default.send(r,t)}};t.block=v;var y={convert:function(e,t,r){return h.default.convert(e,t,r)},sign:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=t.map(p.default.stringToHex);return d.default.sign.apply(d.default,o([e],i(n),!1))},verify:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r.map(p.default.stringToHex);return d.default.verify.apply(d.default,o([e,t],i(a),!1))},verifyBlock:function(e,t){var r=6..toString().padStart(64,"0");return d.default.verify(e,t.signature,r,f.default.nanoAddressToHexString(t.account),t.previous,f.default.nanoAddressToHexString(t.representative),p.default.dec2hex(t.balance,16).toUpperCase(),t.link)},validateAddress:function(e){return f.default.validateNanoAddress(e)},validateMnemonic:function(e){return c.default.validateMnemonic(e)},addressToPublicKey:function(e){return f.default.addressToPublicKey(e)},publicKeyToAddress:function(e){return f.default.deriveAddress(e)},blake2b:function(e){return Array.isArray(e)?p.default.ab2hex(d.default.generateHash(e.map(p.default.stringToHex))):p.default.ab2hex(d.default.generateHash([p.default.stringToHex(e)]))}};t.tools=y;var m={encrypt:function(e,t,r){return u.default.encrypt(e,t,r)},decrypt:function(e,t,r){return u.default.decrypt(e,t,r)}};t.box=m},6435:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(r(9185)),a=i(r(7874)),s=function(){function e(){}return e.generateWallet=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");var r=a.default.createWallet(e,t),i=o.default.fromSeed(r.seed,0,0);return n(n({},i),{mnemonic:r.mnemonic})},e.generateLegacyWallet=function(e){var t=a.default.createLegacyWallet(e);return o.default.fromLegacySeed(t.seed,0,0,t.mnemonic)},e}();t.default=s},9185:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(4486)),o=n(r(7874)),a=n(r(4450)),s=n(r(2604)),c=n(r(7243)),l=n(r(9489)),u=function(){function e(){}var t;return t=e,e.fromMnemonic=function(e,r){if(void 0===r&&(r=""),!o.default.validateMnemonic(e))throw new Error("Invalid mnemonic phrase");var n=o.default.mnemonicToSeed(e,r);return{mnemonic:e,seed:n,accounts:t.accounts(n,0,0)}},e.fromLegacyMnemonic=function(e){if(!o.default.validateMnemonic(e))throw new Error("Invalid mnemonic phrase");var r=o.default.mnemonicToLegacySeed(e);return t.fromLegacySeed(r,0,0,e)},e.validateMnemonic=function(e){return o.default.validateMnemonic(e)},e.fromSeed=function(e,r,n){if(void 0===r&&(r=0),void 0===n&&(n=0),128!==e.length)throw new Error("Invalid seed length, must be a 128 byte hexadecimal string");if(!/^[0-9a-fA-F]+$/i.test(e))throw new Error("Seed is not a valid hexadecimal string");return{mnemonic:void 0,seed:e,accounts:t.accounts(e,r,n)}},e.fromLegacySeed=function(e,r,n,i){if(void 0===r&&(r=0),void 0===n&&(n=0),64!==e.length)throw new Error("Invalid seed length, must be a 64 byte hexadecimal string");if(!/^[0-9a-fA-F]+$/i.test(e))throw new Error("Seed is not a valid hexadecimal string");var a=t.legacyAccounts(e,r,n);return{mnemonic:i||o.default.deriveMnemonic(e),seed:e,accounts:a}},e.accounts=function(e,t,r){for(var n=[],o=t;o<=r;o++){var c=i.default.derivePath("44'/165'/".concat(o,"'"),e).key,l=(new a.default).generateKeys(c),u=s.default.deriveAddress(l.publicKey);n.push({accountIndex:o,privateKey:l.privateKey,publicKey:l.publicKey,address:u})}return n},e.legacyAccounts=function(e,t,r){for(var n=[],i=t;i<=r;i++){var o=l.default.ab2hex(c.default.generateHash([e,l.default.dec2hex(i,4)])),u=(new a.default).generateKeys(o),f=s.default.deriveAddress(u.publicKey);n.push({accountIndex:i,privateKey:u.privateKey,publicKey:u.publicKey,address:f})}return n},e}();t.default=u},4486:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(1354),o=n(r(9489)),a=function(){function e(){}var t;return t=e,e.derivePath=function(e,r){var n=t.getKeyFromSeed(r),i=n.key,o=n.chainCode;return e.split("/").map((function(e){return e.replace("'","")})).map((function(e){return parseInt(e,10)})).reduce((function(e,r){return t.CKDPriv(e,r+2147483648)}),{key:i,chainCode:o})},e.getKeyFromSeed=function(e){return t.derive(i.enc.Hex.parse(e),i.enc.Utf8.parse("ed25519 seed"))},e.CKDPriv=function(e,r){var n=e.key,a=e.chainCode,s=[];s.push(r>>24&255),s.push(r>>16&255),s.push(r>>8&255),s.push(255&r);var c="00"+n+o.default.ab2hex(new Uint8Array(s).buffer);return t.derive(i.enc.Hex.parse(c),i.enc.Hex.parse(a))},e.derive=function(e,t){var r=i.algo.HMAC.create(i.algo.SHA512,t).update(e).finalize().toString();return{key:r.slice(0,r.length/2),chainCode:r.slice(r.length/2)}},e}();t.default=a},7874:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(1354),o=n(r(9489)),a=n(r(3188)),s=n(r(4151)),c=function(){function e(){}var t;return t=e,e.createWallet=function(e,r){if(e){if(64!==e.length)throw new Error("Invalid entropy length, must be a 32 bit hexadecimal string");if(!/^[0-9a-fA-F]+$/i.test(e))throw new Error("Entopy is not a valid hexadecimal string")}e||(e=t.randomHex(32));var n=t.deriveMnemonic(e);return{mnemonic:n,seed:t.mnemonicToSeed(n,r)}},e.createLegacyWallet=function(e){if(e){if(64!==e.length)throw new Error("Invalid entropy length, must be a 32 bit hexadecimal string");if(!/^[0-9a-fA-F]+$/i.test(e))throw new Error("Entopy is not a valid hexadecimal string")}return e||(e=t.randomHex(32)),{mnemonic:t.deriveMnemonic(e),seed:e}},e.deriveMnemonic=function(e){for(var r=o.default.hexStringToBinary(e)+o.default.hexStringToBinary(t.calculateChecksum(e)),n=[],i=0;i<r.length;i+=11)n.push(s.default[parseInt(r.substr(i,11),2)]);return n.join(" ")},e.validateMnemonic=function(e){var r=a.default.normalizeUTF8(e).split(" ");if(r.length%3!=0)return!1;var n=r.map((function(e){var t=s.default.indexOf(e);return-1!==t&&o.default.dec2bin(t).padStart(11,"0")})).join(""),i=32*Math.floor(n.length/33),c=n.slice(0,i),l=n.slice(i),u=c.match(/(.{1,8})/g).map((function(e){return parseInt(e,2)}));if(u.length<16)return!1;if(u.length>32)return!1;if(u.length%4!=0)return!1;var f=o.default.bytesToHexString(u),h=t.calculateChecksum(f),d=o.default.binaryToHexString(l);return parseInt(h,16)==parseInt(d,16)},e.mnemonicToLegacySeed=function(e){var t=a.default.normalizeUTF8(e).split(" ").map((function(e){var t=s.default.indexOf(e);return-1!==t&&o.default.dec2bin(t).padStart(11,"0")})).join(""),r=32*Math.floor(t.length/33),n=t.slice(0,r).match(/(.{1,8})/g).map((function(e){return parseInt(e,2)}));return o.default.bytesToHexString(n)},e.mnemonicToSeed=function(e,t){var r=a.default.normalizeUTF8(e),n="mnemonic"+a.default.normalizeUTF8(t);return(0,i.PBKDF2)(r,n,{keySize:16,iterations:2048,hasher:i.algo.SHA512}).toString(i.enc.Hex)},e.randomHex=function(e){return i.lib.WordArray.random(e).toString()},e.calculateChecksum=function(e){var t=(0,i.SHA256)(i.enc.Hex.parse(e)).toString();return t.substr(0,t.length/32)},e}();t.default=c},4333:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(4431)),o=n(r(2604)),a=n(r(9646)),s=n(r(7243)),c=n(r(9489)),l=function(){function e(){}var t;return t=e,e.preamble=6..toString().padStart(64,"0"),e.receive=function(e,r){var n=function(e){return!!e&&!isNaN(+e)};if(!n(e.walletBalanceRaw))throw new Error("Invalid format in wallet balance");if(!n(e.amountRaw))throw new Error("Invalid format in send amount");if(!o.default.validateNanoAddress(e.toAddress))throw new Error("Invalid toAddress");if(!o.default.validateNanoAddress(e.representativeAddress))throw new Error("Invalid representativeAddress");if(!e.transactionHash)throw new Error("No transaction hash");if(!e.frontier)throw new Error("No frontier");if(!r)throw new Error("Please input the private key to sign the block");var l=a.default.convert(e.walletBalanceRaw,"RAW","NANO"),u=a.default.convert(e.amountRaw,"RAW","NANO"),f=new i.default(l).plus(new i.default(u)),h=a.default.convert(f,"NANO","RAW"),d=c.default.dec2hex(h,16).toUpperCase(),p=o.default.nanoAddressToHexString(e.toAddress),g=e.transactionHash,v=o.default.nanoAddressToHexString(e.representativeAddress),y=s.default.sign(r,t.preamble,p,e.frontier,v,d,g);return{type:"state",account:e.toAddress,previous:e.frontier,representative:e.representativeAddress,balance:h,link:g,signature:y,work:e.work||""}},e.send=function(e,r){var n=function(e){return!!e&&!isNaN(+e)};if(!n(e.walletBalanceRaw))throw new Error("Invalid format in wallet balance");if(!n(e.amountRaw))throw new Error("Invalid format in send amount");if(!o.default.validateNanoAddress(e.toAddress))throw new Error("Invalid toAddress");if(!o.default.validateNanoAddress(e.fromAddress))throw new Error("Invalid fromAddress");if(!o.default.validateNanoAddress(e.representativeAddress))throw new Error("Invalid representativeAddress");if(!e.frontier)throw new Error("Frontier is not set");if(!r)throw new Error("Please input the private key to sign the block");var l=a.default.convert(e.walletBalanceRaw,"RAW","NANO"),u=a.default.convert(e.amountRaw,"RAW","NANO"),f=new i.default(l).minus(new i.default(u)),h=a.default.convert(f,"NANO","RAW"),d=c.default.dec2hex(h,16).toUpperCase(),p=o.default.nanoAddressToHexString(e.fromAddress),g=o.default.nanoAddressToHexString(e.toAddress),v=o.default.nanoAddressToHexString(e.representativeAddress),y=s.default.sign(r,t.preamble,p,e.frontier,v,d,g);return{type:"state",account:e.fromAddress,previous:e.frontier,representative:e.representativeAddress,balance:h,link:g,signature:y,work:e.work||""}},e}();t.default=l},2768:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(r(1294)),c=r(1354),l=a(r(4450)),u=a(r(2604)),f=a(r(9489)),h=a(r(5067)),d=function(){function e(){}return e.encrypt=function(e,t,r){if(!e)throw new Error("No message to encrypt");var n=u.default.addressToPublicKey(t),i=(new l.default).convertKeys({privateKey:r,publicKey:n}),o=i.privateKey,a=i.publicKey,d=f.default.hex2ab(c.lib.WordArray.random(this.NONCE_LENGTH).toString()),p=(new h.default).box(f.default.decodeUTF8(e),d,f.default.hex2ab(a),f.default.hex2ab(o)),g=new Uint8Array(d.length+p.length);return g.set(d),g.set(p,d.length),s.bytesToBase64(g)},e.decrypt=function(e,t,r){if(!e)throw new Error("No message to decrypt");var n=u.default.addressToPublicKey(t),i=(new l.default).convertKeys({privateKey:r,publicKey:n}),o=i.privateKey,a=i.publicKey,c=s.base64ToBytes(e),d=c.slice(0,this.NONCE_LENGTH),p=c.slice(this.NONCE_LENGTH,e.length),g=(new h.default).boxOpen(p,d,f.default.hex2ab(a),f.default.hex2ab(o));if(!g)throw new Error("Could not decrypt message");return f.default.encodeUTF8(g)},e.NONCE_LENGTH=24,e}();t.default=d},4450:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(1191),o=n(r(9489)),a=n(r(5067)),s=n(r(3188)),c=function(){function e(){this.curve=new a.default,this.X=this.curve.gf([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),this.Y=this.curve.gf([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),this.L=new Uint8Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16])}return e.prototype.pack=function(e,t){var r=this.curve,n=r.gf(),i=r.gf(),o=r.gf();r.inv25519(o,t[2]),r.M(n,t[0],o),r.M(i,t[1],o),r.pack25519(e,i),e[31]^=r.par25519(n)<<7},e.prototype.modL=function(e,t){var r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)t[i]+=r-16*t[n]*this.L[i-(n-32)],r=t[i]+128>>8,t[i]-=256*r;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;i++)t[i]+=r-(t[31]>>4)*this.L[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*this.L[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>>8,e[n]=255&t[n]},e.prototype.reduce=function(e){for(var t=new Uint32Array(64),r=0;r<64;r++)t[r]=e[r];this.modL(e,t)},e.prototype.scalarmult=function(e,t,r){var n=this.curve;n.set25519(e[0],n.gf0),n.set25519(e[1],n.gf1),n.set25519(e[2],n.gf1),n.set25519(e[3],n.gf0);for(var i=255;i>=0;--i){var o=r[i/8|0]>>>(7&i)&1;n.cswap(e,t,o),n.add(t,e),n.add(e,e),n.cswap(e,t,o)}},e.prototype.scalarbase=function(e,t){var r=this.curve,n=[r.gf(),r.gf(),r.gf(),r.gf()];r.set25519(n[0],this.X),r.set25519(n[1],this.Y),r.set25519(n[2],r.gf1),r.M(n[3],this.X,this.Y),this.scalarmult(e,n,t)},e.prototype.generateKeys=function(e){var t=new Uint8Array(32),r=[this.curve.gf(),this.curve.gf(),this.curve.gf(),this.curve.gf()],n=(0,i.blake2b)(o.default.hex2ab(e),void 0,64).slice(0,32);return n[0]&=248,n[31]&=127,n[31]|=64,this.scalarbase(r,n),this.pack(t,r),{privateKey:e,publicKey:o.default.ab2hex(t)}},e.prototype.convertKeys=function(e){var t=o.default.ab2hex(this.curve.convertEd25519PublicKeyToCurve25519(o.default.hex2ab(e.publicKey)));return t?{publicKey:t,privateKey:o.default.ab2hex(this.curve.convertEd25519SecretKeyToCurve25519(o.default.hex2ab(e.privateKey)))}:null},e.prototype.sign=function(e,t){for(var r=this.naclSign(e,t),n=new Uint8Array(64),i=0;i<n.length;i++)n[i]=r[i];return n},e.prototype.verify=function(e,t,r){var n=this.curve,o=[n.gf(),n.gf(),n.gf(),n.gf()],a=[n.gf(),n.gf(),n.gf(),n.gf()];if(64!==r.length)return!1;if(32!==t.length)return!1;if(n.unpackNeg(a,t))return!1;var c=(0,i.blake2bInit)(64,void 0);(0,i.blake2bUpdate)(c,r.subarray(0,32)),(0,i.blake2bUpdate)(c,t),(0,i.blake2bUpdate)(c,e);var l=(0,i.blake2bFinal)(c);this.reduce(l),this.scalarmult(o,a,l);var u=new Uint8Array(32);return this.scalarbase(a,r.subarray(32)),n.add(o,a),this.pack(u,o),s.default.compare(r.subarray(0,32),u)},e.prototype.naclSign=function(e,t){if(32!==t.length)throw new Error("bad secret key size");var r=new Uint8Array(64+e.length);return this.cryptoSign(r,e,e.length,t),r},e.prototype.cryptoSign=function(e,t,r,n){var i,a,s=this.curve,c=new Uint8Array(64),l=new Uint8Array(64),u=new Uint8Array(64),f=new Float64Array(64),h=[s.gf(),s.gf(),s.gf(),s.gf()],d=o.default.hex2ab(this.generateKeys(o.default.ab2hex(n)).publicKey);this.curve.cryptoHash(c,n,32),c[0]&=248,c[31]&=127,c[31]|=64;var p=r+64;for(i=0;i<r;i++)e[64+i]=t[i];for(i=0;i<32;i++)e[32+i]=c[32+i];for(this.curve.cryptoHash(u,e.subarray(32),r+32),this.reduce(u),this.scalarbase(h,u),this.pack(e,h),i=32;i<64;i++)e[i]=d[i-32];for(this.curve.cryptoHash(l,e,r+64),this.reduce(l),i=0;i<64;i++)f[i]=0;for(i=0;i<32;i++)f[i]=u[i];for(i=0;i<32;i++)for(a=0;a<32;a++)f[i+a]+=l[i]*c[a];return this.modL(e.subarray(32),f),p},e}();t.default=c},2604:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(1191),o=n(r(9489)),a=function(){function e(){}var t;return e.stripAddress=function(e){return e.slice(e.indexOf("_")+1,-8)},e.readChar=function(e){var t=this.alphabet.indexOf(e);if(-1===t)throw new Error("Invalid character found: ".concat(e));return t},t=e,e.alphabet="13456789abcdefghijkmnopqrstuwxyz",e.prefix="nano_",e.deriveAddress=function(e){var r=o.default.hex2ab(e),n=(0,i.blake2b)(r,void 0,5).reverse(),a=t.encodeNanoBase32(r),s=t.encodeNanoBase32(n);return t.prefix+a+s},e.encodeNanoBase32=function(e){for(var r=e.length,n=8*r%5,i=0===n?0:5-n,o=0,a="",s=0,c=0;c<r;c++)for(o=o<<8|e[c],s+=8;s>=5;)a+=t.alphabet[o>>>s+i-5&31],s-=5;return s>0&&(a+=t.alphabet[o<<5-(s+i)&31]),a},e.addressToPublicKey=function(t){var r=t.replace("nano_","").replace("xrb_",""),n=e.decodeNanoBase32(r);return o.default.ab2hex(n).slice(0,64)},e.decodeNanoBase32=function(e){for(var r=e.length,n=5*r%8,i=0===n?0:8-n,o=0,a=0,s=0,c=new Uint8Array(Math.ceil(5*r/8)),l=0;l<r;l++)a=a<<5|t.readChar(e[l]),(o+=5)>=8&&(c[s++]=a>>>o+i-8&255,o-=8);return o>0&&(c[s++]=a<<o+i-8&255),0!==n&&(c=c.slice(1)),c},e.validateNanoAddress=function(e){if(void 0===e)throw Error("Address must be defined.");if("string"!=typeof e)throw TypeError("Address must be a string.");if(!new RegExp("^(".concat(["nano","xrb"].join("|"),")_[13]{1}[13456789abcdefghijkmnopqrstuwxyz]{59}$")).test(e))return!1;var r=e.slice(-8),n=t.stripAddress(e),o=t.decodeNanoBase32(n),a=(0,i.blake2b)(o,null,5).reverse();return r===t.encodeNanoBase32(a)},e.nanoAddressToHexString=function(e){if(e=e.slice(-60),/^[13456789abcdefghijkmnopqrstuwxyz]+$/.test(e)){var r=t.decodeNanoBase32(e.substring(0,52)),n=t.decodeNanoBase32(e.substring(52,60)),a=(0,i.blake2b)(r,void 0,5).reverse();if(o.default.ab2hex(n)==o.default.ab2hex(a))return o.default.ab2hex(r).toUpperCase();throw new Error("Checksum mismatch in address")}throw new Error("Illegal characters in address")},e}();t.default=a},9646:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(4431)),o=function(){function e(){}return e.convert=function(e,t,r){var n=new i.default(e.toString());switch(t){case"RAW":n=n;break;case"NANO":case"MRAI":n=n.shiftedBy(30);break;case"KRAI":n=n.shiftedBy(27);break;case"RAI":n=n.shiftedBy(24);break;default:throw new Error("Unkown input unit ".concat(t,", expected one of the following: RAW, NANO, MRAI, KRAI, RAI"))}switch(r){case"RAW":return n.toFixed(0);case"NANO":case"MRAI":return n.shiftedBy(-30).toFixed(30,1);case"KRAI":return n.shiftedBy(-27).toFixed(27,1);case"RAI":return n.shiftedBy(-24).toFixed(24,1);default:throw new Error("Unknown output unit ".concat(r,", expected one of the following: RAW, NANO, MRAI, KRAI, RAI"))}},e}();t.default=o},7243:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(1191),o=n(r(4450)),a=n(r(9489)),s=function(){function e(){}var t;return t=e,e.sign=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=(new o.default).sign(t.generateHash(r),a.default.hex2ab(e));return a.default.ab2hex(i)},e.verify=function(e,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return(new o.default).verify(t.generateHash(n),a.default.hex2ab(e),a.default.hex2ab(r))},e.generateHash=function(e){var t=(0,i.blake2bInit)(32,void 0);return e.forEach((function(e){return(0,i.blake2bUpdate)(t,a.default.hex2ab(e))})),(0,i.blake2bFinal)(t)},e}();t.default=s},9489:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},n=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.str2bin=function(e){e=e.replace(/\r\n/g,"\n");for(var t=new Uint8Array(3*e.length),r=0,n=0,i=e.length;n<i;n++){var o=e.charCodeAt(n);o<128?t[r++]=o:o<2048?(t[r++]=o>>>6|192,t[r++]=63&o|128):(t[r++]=o>>>12|224,t[r++]=o>>>6&63|128,t[r++]=63&o|128)}return t.subarray(0,r)},e.encodeUTF8=function(e){for(var t=[],r=0;r<e.length;r++)t.push(String.fromCharCode(e[r]));return decodeURIComponent(escape(t.join("")))},e.decodeUTF8=function(e){if("string"!=typeof e)throw new TypeError("expected string");for(var t=unescape(encodeURIComponent(e)),r=new Uint8Array(t.length),n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r},e.ab2hex=function(e){return Array.prototype.map.call(new Uint8Array(e),(function(e){return("00"+e.toString(16)).slice(-2)})).join("")},e.hex2ab=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return new Uint8Array(t)},e.dec2hex=function(e,t){for(var r,n,i=e.toString().split(""),o=[],a=[];i.length;)for(n=1*+i.shift(),r=0;n||r<o.length;r++)n+=10*(o[r]||0),o[r]=n%16,n=(n-o[r])/16;for(;o.length;)a.push(o.pop().toString(16));var s=a.join("");if(s.length%2!=0&&(s="0"+s),t>s.length/2)for(var c=t-s.length/2,l=0;l<c;l++)s="00"+s;return s},e.dec2bin=function(e){return(e>>>0).toString(2)},e.bytesToHexString=function(e){return n([],r(e),!1).map((function(e){return e.toString(16).padStart(2,"0")})).join("")},e.hexStringToBinary=function(t){return n([],r(t),!1).map((function(t){return e.dec2bin(parseInt(t,16)).padStart(4,"0")})).join("")},e.binaryToHexString=function(e){return parseInt(e,2).toString(16)},e.stringToHex=function(e){return n([],r(e),!1).map((function(e){return e.charCodeAt(0).toString(16)})).join("")},e}();t.default=i},5067:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(1191),o=n(r(3188)),a=function(){function e(){this.gf0=this.gf(),this.gf1=this.gf([1]),this._9=new Uint8Array(32),this._9[0]=9,this._121665=this.gf([56129,1]),this.D=this.gf([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),this.D2=this.gf([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),this.I=this.gf([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]),this._0=new Uint8Array(16),this.sigma=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]),this.minusp=new Uint32Array([5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,252])}return e.prototype.gf=function(e){var t=new Int32Array(16);if(e)for(var r=0;r<e.length;r++)t[r]=e[r];return t},e.prototype.A=function(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]},e.prototype.Z=function(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]},e.prototype.M=function(e,t,r){var n,i,o=0,a=0,s=0,c=0,l=0,u=0,f=0,h=0,d=0,p=0,g=0,v=0,y=0,m=0,b=0,w=0,_=0,k=0,x=0,A=0,S=0,B=0,M=0,E=0,H=0,U=0,O=0,z=0,C=0,N=0,R=0,I=r[0],D=r[1],P=r[2],T=r[3],j=r[4],F=r[5],K=r[6],L=r[7],W=r[8],q=r[9],X=r[10],G=r[11],Z=r[12],$=r[13],V=r[14],Y=r[15];o+=(n=t[0])*I,a+=n*D,s+=n*P,c+=n*T,l+=n*j,u+=n*F,f+=n*K,h+=n*L,d+=n*W,p+=n*q,g+=n*X,v+=n*G,y+=n*Z,m+=n*$,b+=n*V,w+=n*Y,a+=(n=t[1])*I,s+=n*D,c+=n*P,l+=n*T,u+=n*j,f+=n*F,h+=n*K,d+=n*L,p+=n*W,g+=n*q,v+=n*X,y+=n*G,m+=n*Z,b+=n*$,w+=n*V,_+=n*Y,s+=(n=t[2])*I,c+=n*D,l+=n*P,u+=n*T,f+=n*j,h+=n*F,d+=n*K,p+=n*L,g+=n*W,v+=n*q,y+=n*X,m+=n*G,b+=n*Z,w+=n*$,_+=n*V,k+=n*Y,c+=(n=t[3])*I,l+=n*D,u+=n*P,f+=n*T,h+=n*j,d+=n*F,p+=n*K,g+=n*L,v+=n*W,y+=n*q,m+=n*X,b+=n*G,w+=n*Z,_+=n*$,k+=n*V,x+=n*Y,l+=(n=t[4])*I,u+=n*D,f+=n*P,h+=n*T,d+=n*j,p+=n*F,g+=n*K,v+=n*L,y+=n*W,m+=n*q,b+=n*X,w+=n*G,_+=n*Z,k+=n*$,x+=n*V,A+=n*Y,u+=(n=t[5])*I,f+=n*D,h+=n*P,d+=n*T,p+=n*j,g+=n*F,v+=n*K,y+=n*L,m+=n*W,b+=n*q,w+=n*X,_+=n*G,k+=n*Z,x+=n*$,A+=n*V,S+=n*Y,f+=(n=t[6])*I,h+=n*D,d+=n*P,p+=n*T,g+=n*j,v+=n*F,y+=n*K,m+=n*L,b+=n*W,w+=n*q,_+=n*X,k+=n*G,x+=n*Z,A+=n*$,S+=n*V,B+=n*Y,h+=(n=t[7])*I,d+=n*D,p+=n*P,g+=n*T,v+=n*j,y+=n*F,m+=n*K,b+=n*L,w+=n*W,_+=n*q,k+=n*X,x+=n*G,A+=n*Z,S+=n*$,B+=n*V,M+=n*Y,d+=(n=t[8])*I,p+=n*D,g+=n*P,v+=n*T,y+=n*j,m+=n*F,b+=n*K,w+=n*L,_+=n*W,k+=n*q,x+=n*X,A+=n*G,S+=n*Z,B+=n*$,M+=n*V,E+=n*Y,p+=(n=t[9])*I,g+=n*D,v+=n*P,y+=n*T,m+=n*j,b+=n*F,w+=n*K,_+=n*L,k+=n*W,x+=n*q,A+=n*X,S+=n*G,B+=n*Z,M+=n*$,E+=n*V,H+=n*Y,g+=(n=t[10])*I,v+=n*D,y+=n*P,m+=n*T,b+=n*j,w+=n*F,_+=n*K,k+=n*L,x+=n*W,A+=n*q,S+=n*X,B+=n*G,M+=n*Z,E+=n*$,H+=n*V,U+=n*Y,v+=(n=t[11])*I,y+=n*D,m+=n*P,b+=n*T,w+=n*j,_+=n*F,k+=n*K,x+=n*L,A+=n*W,S+=n*q,B+=n*X,M+=n*G,E+=n*Z,H+=n*$,U+=n*V,O+=n*Y,y+=(n=t[12])*I,m+=n*D,b+=n*P,w+=n*T,_+=n*j,k+=n*F,x+=n*K,A+=n*L,S+=n*W,B+=n*q,M+=n*X,E+=n*G,H+=n*Z,U+=n*$,O+=n*V,z+=n*Y,m+=(n=t[13])*I,b+=n*D,w+=n*P,_+=n*T,k+=n*j,x+=n*F,A+=n*K,S+=n*L,B+=n*W,M+=n*q,E+=n*X,H+=n*G,U+=n*Z,O+=n*$,z+=n*V,C+=n*Y,b+=(n=t[14])*I,w+=n*D,_+=n*P,k+=n*T,x+=n*j,A+=n*F,S+=n*K,B+=n*L,M+=n*W,E+=n*q,H+=n*X,U+=n*G,O+=n*Z,z+=n*$,C+=n*V,N+=n*Y,w+=(n=t[15])*I,a+=38*(k+=n*P),s+=38*(x+=n*T),c+=38*(A+=n*j),l+=38*(S+=n*F),u+=38*(B+=n*K),f+=38*(M+=n*L),h+=38*(E+=n*W),d+=38*(H+=n*q),p+=38*(U+=n*X),g+=38*(O+=n*G),v+=38*(z+=n*Z),y+=38*(C+=n*$),m+=38*(N+=n*V),b+=38*(R+=n*Y),o=(n=(o+=38*(_+=n*D))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=c,e[4]=l,e[5]=u,e[6]=f,e[7]=h,e[8]=d,e[9]=p,e[10]=g,e[11]=v,e[12]=y,e[13]=m,e[14]=b,e[15]=w},e.prototype.coreSalsa20=function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,c=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,l=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,u=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,d=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,v=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,y=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,m=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,b=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=o,k=a,x=s,A=c,S=l,B=u,M=f,E=h,H=d,U=p,O=g,z=v,C=y,N=m,R=b,I=w,D=0;D<20;D+=2)_^=(i=(C^=(i=(H^=(i=(S^=(i=_+C|0)<<7|i>>>25)+_|0)<<9|i>>>23)+S|0)<<13|i>>>19)+H|0)<<18|i>>>14,B^=(i=(k^=(i=(N^=(i=(U^=(i=B+k|0)<<7|i>>>25)+B|0)<<9|i>>>23)+U|0)<<13|i>>>19)+N|0)<<18|i>>>14,O^=(i=(M^=(i=(x^=(i=(R^=(i=O+M|0)<<7|i>>>25)+O|0)<<9|i>>>23)+R|0)<<13|i>>>19)+x|0)<<18|i>>>14,I^=(i=(z^=(i=(E^=(i=(A^=(i=I+z|0)<<7|i>>>25)+I|0)<<9|i>>>23)+A|0)<<13|i>>>19)+E|0)<<18|i>>>14,_^=(i=(A^=(i=(x^=(i=(k^=(i=_+A|0)<<7|i>>>25)+_|0)<<9|i>>>23)+k|0)<<13|i>>>19)+x|0)<<18|i>>>14,B^=(i=(S^=(i=(E^=(i=(M^=(i=B+S|0)<<7|i>>>25)+B|0)<<9|i>>>23)+M|0)<<13|i>>>19)+E|0)<<18|i>>>14,O^=(i=(U^=(i=(H^=(i=(z^=(i=O+U|0)<<7|i>>>25)+O|0)<<9|i>>>23)+z|0)<<13|i>>>19)+H|0)<<18|i>>>14,I^=(i=(R^=(i=(N^=(i=(C^=(i=I+R|0)<<7|i>>>25)+I|0)<<9|i>>>23)+C|0)<<13|i>>>19)+N|0)<<18|i>>>14;_=_+o|0,k=k+a|0,x=x+s|0,A=A+c|0,S=S+l|0,B=B+u|0,M=M+f|0,E=E+h|0,H=H+d|0,U=U+p|0,O=O+g|0,z=z+v|0,C=C+y|0,N=N+m|0,R=R+b|0,I=I+w|0,e[0]=_>>>0&255,e[1]=_>>>8&255,e[2]=_>>>16&255,e[3]=_>>>24&255,e[4]=k>>>0&255,e[5]=k>>>8&255,e[6]=k>>>16&255,e[7]=k>>>24&255,e[8]=x>>>0&255,e[9]=x>>>8&255,e[10]=x>>>16&255,e[11]=x>>>24&255,e[12]=A>>>0&255,e[13]=A>>>8&255,e[14]=A>>>16&255,e[15]=A>>>24&255,e[16]=S>>>0&255,e[17]=S>>>8&255,e[18]=S>>>16&255,e[19]=S>>>24&255,e[20]=B>>>0&255,e[21]=B>>>8&255,e[22]=B>>>16&255,e[23]=B>>>24&255,e[24]=M>>>0&255,e[25]=M>>>8&255,e[26]=M>>>16&255,e[27]=M>>>24&255,e[28]=E>>>0&255,e[29]=E>>>8&255,e[30]=E>>>16&255,e[31]=E>>>24&255,e[32]=H>>>0&255,e[33]=H>>>8&255,e[34]=H>>>16&255,e[35]=H>>>24&255,e[36]=U>>>0&255,e[37]=U>>>8&255,e[38]=U>>>16&255,e[39]=U>>>24&255,e[40]=O>>>0&255,e[41]=O>>>8&255,e[42]=O>>>16&255,e[43]=O>>>24&255,e[44]=z>>>0&255,e[45]=z>>>8&255,e[46]=z>>>16&255,e[47]=z>>>24&255,e[48]=C>>>0&255,e[49]=C>>>8&255,e[50]=C>>>16&255,e[51]=C>>>24&255,e[52]=N>>>0&255,e[53]=N>>>8&255,e[54]=N>>>16&255,e[55]=N>>>24&255,e[56]=R>>>0&255,e[57]=R>>>8&255,e[58]=R>>>16&255,e[59]=R>>>24&255,e[60]=I>>>0&255,e[61]=I>>>8&255,e[62]=I>>>16&255,e[63]=I>>>24&255},e.prototype.coreHsalsa20=function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,c=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,l=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,u=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,d=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,v=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,y=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,m=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,b=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=0;_<20;_+=2)o^=(i=(y^=(i=(d^=(i=(l^=(i=o+y|0)<<7|i>>>25)+o|0)<<9|i>>>23)+l|0)<<13|i>>>19)+d|0)<<18|i>>>14,u^=(i=(a^=(i=(m^=(i=(p^=(i=u+a|0)<<7|i>>>25)+u|0)<<9|i>>>23)+p|0)<<13|i>>>19)+m|0)<<18|i>>>14,g^=(i=(f^=(i=(s^=(i=(b^=(i=g+f|0)<<7|i>>>25)+g|0)<<9|i>>>23)+b|0)<<13|i>>>19)+s|0)<<18|i>>>14,w^=(i=(v^=(i=(h^=(i=(c^=(i=w+v|0)<<7|i>>>25)+w|0)<<9|i>>>23)+c|0)<<13|i>>>19)+h|0)<<18|i>>>14,o^=(i=(c^=(i=(s^=(i=(a^=(i=o+c|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,u^=(i=(l^=(i=(h^=(i=(f^=(i=u+l|0)<<7|i>>>25)+u|0)<<9|i>>>23)+f|0)<<13|i>>>19)+h|0)<<18|i>>>14,g^=(i=(p^=(i=(d^=(i=(v^=(i=g+p|0)<<7|i>>>25)+g|0)<<9|i>>>23)+v|0)<<13|i>>>19)+d|0)<<18|i>>>14,w^=(i=(b^=(i=(m^=(i=(y^=(i=w+b|0)<<7|i>>>25)+w|0)<<9|i>>>23)+y|0)<<13|i>>>19)+m|0)<<18|i>>>14;e[0]=o>>>0&255,e[1]=o>>>8&255,e[2]=o>>>16&255,e[3]=o>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=g>>>0&255,e[9]=g>>>8&255,e[10]=g>>>16&255,e[11]=g>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=f>>>0&255,e[17]=f>>>8&255,e[18]=f>>>16&255,e[19]=f>>>24&255,e[20]=h>>>0&255,e[21]=h>>>8&255,e[22]=h>>>16&255,e[23]=h>>>24&255,e[24]=d>>>0&255,e[25]=d>>>8&255,e[26]=d>>>16&255,e[27]=d>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255},e.prototype.S=function(e,t){this.M(e,t,t)},e.prototype.add=function(e,t){var r=this.gf(),n=this.gf(),i=this.gf(),o=this.gf(),a=this.gf(),s=this.gf(),c=this.gf(),l=this.gf(),u=this.gf();this.Z(r,e[1],e[0]),this.Z(u,t[1],t[0]),this.M(r,r,u),this.A(n,e[0],e[1]),this.A(u,t[0],t[1]),this.M(n,n,u),this.M(i,e[3],t[3]),this.M(i,i,this.D2),this.M(o,e[2],t[2]),this.A(o,o,o),this.Z(a,n,r),this.Z(s,o,i),this.A(c,o,i),this.A(l,n,r),this.M(e[0],a,s),this.M(e[1],l,c),this.M(e[2],c,s),this.M(e[3],a,l)},e.prototype.set25519=function(e,t){for(var r=0;r<16;r++)e[r]=t[r]},e.prototype.car25519=function(e){var t,r,n=1;for(t=0;t<16;t++)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)},e.prototype.sel25519=function(e,t,r){var n,i,o=~(r-1);for(n=0;n<16;n++)i=o&(e[n]^t[n]),e[n]^=i,t[n]^=i},e.prototype.inv25519=function(e,t){var r,n=this.gf();for(r=0;r<16;r++)n[r]=t[r];for(r=253;r>=0;r--)this.S(n,n),2!==r&&4!==r&&this.M(n,n,t);for(r=0;r<16;r++)e[r]=n[r]},e.prototype.neq25519=function(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return this.pack25519(r,e),this.pack25519(n,t),!o.default.compare(r,n)},e.prototype.par25519=function(e){var t=new Uint8Array(32);return this.pack25519(t,e),1&t[0]},e.prototype.pow2523=function(e,t){var r,n=this.gf();for(r=0;r<16;r++)n[r]=t[r];for(r=250;r>=0;r--)this.S(n,n),1!==r&&this.M(n,n,t);for(r=0;r<16;r++)e[r]=n[r]},e.prototype.cswap=function(e,t,r){for(var n=0;n<4;n++)this.sel25519(e[n],t[n],r)},e.prototype.pack25519=function(e,t){var r,n=this.gf(),i=this.gf();for(r=0;r<16;r++)i[r]=t[r];this.car25519(i),this.car25519(i),this.car25519(i);for(var o=0;o<2;o++){for(n[0]=i[0]-65517,r=1;r<15;r++)n[r]=i[r]-65535-(n[r-1]>>>16&1),n[r-1]&=65535;n[15]=i[15]-32767-(n[14]>>>16&1);var a=n[15]>>>16&1;n[14]&=65535,this.sel25519(i,n,1-a)}for(r=0;r<16;r++)e[2*r]=255&i[r],e[2*r+1]=i[r]>>>8},e.prototype.unpack25519=function(e,t){for(var r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767},e.prototype.unpackNeg=function(e,t){var r=this.gf(),n=this.gf(),i=this.gf(),o=this.gf(),a=this.gf(),s=this.gf(),c=this.gf();return this.set25519(e[2],this.gf1),this.unpack25519(e[1],t),this.S(i,e[1]),this.M(o,i,this.D),this.Z(i,i,e[2]),this.A(o,e[2],o),this.S(a,o),this.S(s,a),this.M(c,s,a),this.M(r,c,i),this.M(r,r,o),this.pow2523(r,r),this.M(r,r,i),this.M(r,r,o),this.M(r,r,o),this.M(e[0],r,o),this.S(n,e[0]),this.M(n,n,o),this.neq25519(n,i)&&this.M(e[0],e[0],this.I),this.S(n,e[0]),this.M(n,n,o),this.neq25519(n,i)?-1:(this.par25519(e[0])===t[31]>>>7&&this.Z(e[0],this.gf0,e[0]),this.M(e[3],e[0],e[1]),0)},e.prototype.vn=function(e,t,r,n,i){var o,a=0;for(o=0;o<i;o++)a|=e[t+o]^r[n+o];return(1&a-1>>>8)-1},e.prototype.cryptoScalarmult=function(e,t,r){var n,i,o=new Int32Array(80),a=this.gf(),s=this.gf(),c=this.gf(),l=this.gf(),u=this.gf(),f=this.gf();for(this.unpack25519(o,r),i=0;i<16;i++)s[i]=o[i],l[i]=a[i]=c[i]=0;for(a[0]=l[0]=1,i=254;i>=0;--i)n=t[i>>>3]>>>(7&i)&1,this.sel25519(a,s,n),this.sel25519(c,l,n),this.A(u,a,c),this.Z(a,a,c),this.A(c,s,l),this.Z(s,s,l),this.S(l,u),this.S(f,a),this.M(a,c,a),this.M(c,s,u),this.A(u,a,c),this.Z(a,a,c),this.S(s,a),this.Z(c,l,f),this.M(a,c,this._121665),this.A(a,a,l),this.M(c,c,a),this.M(a,l,f),this.M(l,s,o),this.S(s,u),this.sel25519(a,s,n),this.sel25519(c,l,n);for(i=0;i<16;i++)o[i+16]=a[i],o[i+32]=c[i],o[i+48]=s[i],o[i+64]=l[i];var h=o.subarray(32),d=o.subarray(16);this.inv25519(h,h),this.M(d,d,h),this.pack25519(e,d)},e.prototype.cryptoStreamSalsa20Xor=function(e,t,r,n,i,o,a){var s,c,l=new Uint8Array(16),u=new Uint8Array(64);for(c=0;c<16;c++)l[c]=0;for(c=0;c<8;c++)l[c]=o[c];for(;i>=64;){for(this.coreSalsa20(u,l,a,this.sigma),c=0;c<64;c++)e[t+c]=r[n+c]^u[c];for(s=1,c=8;c<16;c++)s=s+(255&l[c])|0,l[c]=255&s,s>>>=8;i-=64,t+=64,n+=64}if(i>0)for(this.coreSalsa20(u,l,a,this.sigma),c=0;c<i;c++)e[t+c]=r[n+c]^u[c];return 0},e.prototype.cryptoStreamSalsa20=function(e,t,r,n,i){var o,a,s=new Uint8Array(16),c=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=n[a];for(;r>=64;){for(this.coreSalsa20(c,s,i,this.sigma),a=0;a<64;a++)e[t+a]=c[a];for(o=1,a=8;a<16;a++)o=o+(255&s[a])|0,s[a]=255&o,o>>>=8;r-=64,t+=64}if(r>0)for(this.coreSalsa20(c,s,i,this.sigma),a=0;a<r;a++)e[t+a]=c[a];return 0},e.prototype.add1305=function(e,t){var r,n=0;for(r=0;r<17;r++)n=n+(e[r]+t[r]|0)|0,e[r]=255&n,n>>>=8},e.prototype.cryptoOnetimeauth=function(e,t,r,n,i,o){var a,s,c,l,u=new Uint32Array(17),f=new Uint32Array(17),h=new Uint32Array(17),d=new Uint32Array(17),p=new Uint32Array(17);for(c=0;c<17;c++)f[c]=h[c]=0;for(c=0;c<16;c++)f[c]=o[c];for(f[3]&=15,f[4]&=252,f[7]&=15,f[8]&=252,f[11]&=15,f[12]&=252,f[15]&=15;i>0;){for(c=0;c<17;c++)d[c]=0;for(c=0;c<16&&c<i;++c)d[c]=r[n+c];for(d[c]=1,n+=c,i-=c,this.add1305(h,d),s=0;s<17;s++)for(u[s]=0,c=0;c<17;c++)u[s]=0|u[s]+h[c]*(c<=s?f[s-c]:320*f[s+17-c]|0);for(s=0;s<17;s++)h[s]=u[s];for(l=0,c=0;c<16;c++)l=l+h[c]|0,h[c]=255&l,l>>>=8;for(l=l+h[16]|0,h[16]=3&l,l=5*(l>>>2)|0,c=0;c<16;c++)l=l+h[c]|0,h[c]=255&l,l>>>=8;l=l+h[16]|0,h[16]=l}for(c=0;c<17;c++)p[c]=h[c];for(this.add1305(h,this.minusp),a=0|-(h[16]>>>7),c=0;c<17;c++)h[c]^=a&(p[c]^h[c]);for(c=0;c<16;c++)d[c]=o[c+16];for(d[16]=0,this.add1305(h,d),c=0;c<16;c++)e[t+c]=h[c];return 0},e.prototype.cryptoOnetimeauthVerify=function(e,t,r,n,i,o){var a=new Uint8Array(16);return this.cryptoOnetimeauth(a,0,r,n,i,o),this.cryptoVerify16(e,t,a,0)},e.prototype.cryptoVerify16=function(e,t,r,n){return this.vn(e,t,r,n,16)},e.prototype.cryptoBoxBeforenm=function(e,t,r){var n=new Uint8Array(32);return this.cryptoScalarmult(n,r,t),this.coreHsalsa20(e,this._0,n,this.sigma)},e.prototype.cryptoSecretbox=function(e,t,r,n,i){var o;if(r<32)return-1;for(this.cryptoStreamXor(e,0,t,0,r,n,i),this.cryptoOnetimeauth(e,16,e,32,r-32,e),o=0;o<16;o++)e[o]=0;return 0},e.prototype.cryptoSecretboxOpen=function(e,t,r,n,i){var o,a=new Uint8Array(32);if(r<32)return-1;if(this.cryptoStream(a,0,32,n,i),0!==this.cryptoOnetimeauthVerify(t,16,t,32,r-32,a))return-1;for(this.cryptoStreamXor(e,0,t,0,r,n,i),o=0;o<32;o++)e[o]=0;return 0},e.prototype.cryptoStream=function(e,t,r,n,i){var o=new Uint8Array(32);this.coreHsalsa20(o,n,i,this.sigma);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=n[s+16];return this.cryptoStreamSalsa20(e,t,r,a,o)},e.prototype.cryptoStreamXor=function(e,t,r,n,i,o,a){var s=new Uint8Array(32);this.coreHsalsa20(s,o,a,this.sigma);for(var c=new Uint8Array(8),l=0;l<8;l++)c[l]=o[l+16];return this.cryptoStreamSalsa20Xor(e,t,r,n,i,c,s)},e.prototype.checkLengths=function(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")},e.prototype.checkBoxLengths=function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")},e.prototype.checkArrayTypes=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0;r<e.length;r++)if(!(e[r]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")},e.prototype.secretbox=function(e,t,r){this.checkArrayTypes(e,t,r),this.checkLengths(r,t);for(var n=new Uint8Array(32+e.length),i=new Uint8Array(n.length),o=0;o<e.length;o++)n[o+32]=e[o];return this.cryptoSecretbox(i,n,n.length,t,r),i.subarray(16)},e.prototype.secretboxOpen=function(e,t,r){this.checkArrayTypes(e,t,r),this.checkLengths(r,t);for(var n=new Uint8Array(16+e.length),i=new Uint8Array(n.length),o=0;o<e.length;o++)n[o+16]=e[o];return n.length<32||0!==this.cryptoSecretboxOpen(i,n,n.length,t,r)?null:i.subarray(32)},e.prototype.box=function(e,t,r,n){var i=this.boxBefore(r,n);return this.secretbox(e,t,i)},e.prototype.boxOpen=function(e,t,r,n){var i=this.boxBefore(r,n);return this.secretboxOpen(e,t,i)},e.prototype.boxBefore=function(e,t){this.checkArrayTypes(e,t),this.checkBoxLengths(e,t);var r=new Uint8Array(32);return this.cryptoBoxBeforenm(r,e,t),r},e.prototype.scalarMult=function(e,t){var r=new Uint8Array(32);return this.cryptoScalarmult(r,e,t),r},e.prototype.generateKeys=function(e){var t=e.slice(),r=new Uint8Array(32);if(32!==t.length)throw new Error("Invalid secret key size, expected 32 bytes");return t[0]&=248,t[31]&=127,t[31]|=64,this.cryptoScalarmult(r,t,this._9),{sk:t,pk:r}},e.prototype.convertEd25519PublicKeyToCurve25519=function(e){var t=new Uint8Array(32),r=[this.gf(),this.gf(),this.gf(),this.gf()],n=this.gf(),i=this.gf();if(this.unpackNeg(r,e))return null;var o=r[1];return this.A(n,this.gf1,o),this.Z(i,this.gf1,o),this.inv25519(i,i),this.M(n,n,i),this.pack25519(t,n),t},e.prototype.convertEd25519SecretKeyToCurve25519=function(e){var t,r=new Uint8Array(64),n=new Uint8Array(32);for(this.cryptoHash(r,e,32),r[0]&=248,r[31]&=127,r[31]|=64,t=0;t<32;t++)n[t]=r[t];for(t=0;t<64;t++)r[t]=0;return n},e.prototype.cryptoHash=function(e,t,r){for(var n=new Uint8Array(r),o=0;o<r;++o)n[o]=t[o];var a=(0,i.blake2b)(n);for(o=0;o<64;++o)e[o]=a[o];return 0},e}();t.default=a},3188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.compare=function(e,t){if(e.length!==t.length)return!1;var r,n=0,i=e.length;for(r=0;r<i;r++)n|=e[r]^t[r];return 0===n},e.normalizeUTF8=function(e){return e?e.normalize("NFKD"):""},e}();t.default=r},4151:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[]}},t={},r=function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}(8492);NanocurrencyWeb=r})();