UNPKG

@nano/wallet

Version:

Nano Javascript Wallet

9 lines (8 loc) 207 kB
// NanoPay 1.5.7 // January 27, 2025 // https://github.com/fwd/nano-js // (c) @nano2dev <support@nano.to> // Released under MIT License // NanocurrencyWeb // https://github.com/numsu/nanocurrency-web-js 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?