text: !function(t){function e(r){if(i[r])return i[r].exports;var n=i[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,r){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=46)}([function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}},function(t,e,i){var r=e;r.utils=i(34),r.common=i(30),r.sha=i(33),r.ripemd=i(32),r.hmac=i(31),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(t,e,i){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}function s(t,e,i){for(var r=0,n=Math.min(t.length,i),o=e;o<n;o++){var s=t.charCodeAt(o)-48;r<<=4,r|=s>=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return r}function h(t,e,i,r){for(var n=0,o=Math.min(t.length,i),s=e;s<o;s++){var h=t.charCodeAt(s)-48;n*=r,n+=h>=49?h-49+10:h>=17?h-17+10:h}return n}function u(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var r=i/26|0,n=i%26;e[i]=(t.words[r]&1<<n)>>>n}return e}function a(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],o=0|e.words[0],s=n*o,h=67108863&s,u=s/67108864|0;i.words[0]=h;for(var a=1;a<r;a++){for(var f=u>>>26,l=67108863&u,c=Math.min(a,e.length-1),p=Math.max(0,a-t.length+1);p<=c;p++){var d=a-p|0;n=0|t.words[d],o=0|e.words[p],s=n*o+l,f+=s/67108864|0,l=67108863&s}i.words[a]=0|l,u=0|f}return 0!==u?i.words[a]=0|u:i.length--,i.strip()}function f(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o<i.length-1;o++){var s=n;n=0;for(var h=67108863&r,u=Math.min(o,e.length-1),a=Math.max(0,o-t.length+1);a<=u;a++){var f=o-a,l=0|t.words[f],c=0|e.words[a],p=l*c,d=67108863&p;s=s+(p/67108864|0)|0,d=d+h|0,h=67108863&d,s=s+(d>>>26)|0,n+=s>>>26,s&=67108863}i.words[o]=h,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}function l(t,e,i){return(new c).mulp(t,e,i)}function c(t,e){this.x=t,this.y=e}function p(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function d(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function m(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function g(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function v(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function y(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function b(t){y.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;var w;try{w=i(5).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var n=0;"-"===t[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,s,h=0;if("be"===i)for(n=t.length-1,o=0;n>=0;n-=3)s=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[o]|=s<<h&67108863,this.words[o+1]=s>>>26-h&67108863,(h+=24)>=26&&(h-=26,o++);else if("le"===i)for(n=0,o=0;n<t.length;n+=3)s=t[n]|t[n+1]<<8|t[n+2]<<16,this.words[o]|=s<<h&67108863,this.words[o+1]=s>>>26-h&67108863,(h+=24)>=26&&(h-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n,o=0;for(i=t.length-6,r=0;i>=e;i-=6)n=s(t,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==e&&(n=s(t,e,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=e)r++;r--,n=n/e|0;for(var o=t.length-i,s=o%r,u=Math.min(o,o-s)+i,a=0,f=i;f<u;f+=r)a=h(t,f,f+r,e),this.imuln(n),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(0!==s){var l=1;for(a=h(t,f,t.length,e),f=0;f<s;f++)l*=e;this.imuln(l),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){t=t||10,e=0|e||1;var i;if(16===t||"hex"===t){i="";for(var n=0,o=0,s=0;s<this.length;s++){var h=this.words[s],u=(16777215&(h<<n|o)).toString(16);o=h>>>24-n&16777215,i=0!==o||s!==this.length-1?_[6-u.length]+u+i:u+i,n+=2,n>=26&&(n-=26,s--)}for(0!==o&&(i=o.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var a=M[t],f=A[t];i="";var l=this.clone();for(l.negative=0;!l.isZero();){var c=l.modn(f).toString(t);l=l.idivn(f),i=l.isZero()?c+i:_[a-c.length]+c+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==w),this.toArrayLike(w,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n=this.byteLength(),o=i||Math.max(1,n);r(n<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var s,h,u="le"===e,a=new t(o),f=this.clone();if(u){for(h=0;!f.isZero();h++)s=f.andln(255),f.iushrn(8),a[h]=s;for(;h<o;h++)a[h]=0}else{for(h=0;h<o-n;h++)a[h]=0;for(h=0;!f.isZero();h++)s=f.andln(255),f.iushrn(8),a[o-h-1]=s}return a},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,i=0;return e>=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var r=0;r<i.length;r++)this.words[r]=e.words[r]^i.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var n=0;n<e;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var i=t/26|0,n=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<<n:this.words[i]&~(1<<n),this.strip()},o.prototype.iadd=function(t){var e;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();var i,r;this.length>t.length?(i=this,r=t):(i=t,r=this);for(var n=0,o=0;o<r.length;o++)e=(0|i.words[o])+(0|r.words[o])+n,this.words[o]=67108863&e,n=e>>>26;for(;0!==n&&o<i.length;o++)e=(0|i.words[o])+n,this.words[o]=67108863&e,n=e>>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;var r,n;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|r.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)e=(0|r.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var S=function(t,e,i){var r,n,o,s=t.words,h=e.words,u=i.words,a=0,f=0|s[0],l=8191&f,c=f>>>13,p=0|s[1],d=8191&p,m=p>>>13,g=0|s[2],v=8191&g,y=g>>>13,b=0|s[3],w=8191&b,_=b>>>13,M=0|s[4],A=8191&M,S=M>>>13,E=0|s[5],k=8191&E,x=E>>>13,R=0|s[6],I=8191&R,T=R>>>13,B=0|s[7],j=8191&B,C=B>>>13,P=0|s[8],N=8191&P,D=P>>>13,L=0|s[9],U=8191&L,O=L>>>13,q=0|h[0],z=8191&q,Y=q>>>13,K=0|h[1],V=8191&K,F=K>>>13,Z=0|h[2],H=8191&Z,G=Z>>>13,W=0|h[3],Q=8191&W,$=W>>>13,J=0|h[4],X=8191&J,tt=J>>>13,et=0|h[5],it=8191&et,rt=et>>>13,nt=0|h[6],ot=8191&nt,st=nt>>>13,ht=0|h[7],ut=8191&ht,at=ht>>>13,ft=0|h[8],lt=8191&ft,ct=ft>>>13,pt=0|h[9],dt=8191&pt,mt=pt>>>13;i.negative=t.negative^e.negative,i.length=19,r=Math.imul(l,z),n=Math.imul(l,Y),n=n+Math.imul(c,z)|0,o=Math.imul(c,Y);var gt=(a+r|0)+((8191&n)<<13)|0;a=(o+(n>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(d,z),n=Math.imul(d,Y),n=n+Math.imul(m,z)|0,o=Math.imul(m,Y),r=r+Math.imul(l,V)|0,n=n+Math.imul(l,F)|0,n=n+Math.imul(c,V)|0,o=o+Math.imul(c,F)|0;var vt=(a+r|0)+((8191&n)<<13)|0;a=(o+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,z),n=Math.imul(v,Y),n=n+Math.imul(y,z)|0,o=Math.imul(y,Y),r=r+Math.imul(d,V)|0,n=n+Math.imul(d,F)|0,n=n+Math.imul(m,V)|0,o=o+Math.imul(m,F)|0,r=r+Math.imul(l,H)|0,n=n+Math.imul(l,G)|0,n=n+Math.imul(c,H)|0,o=o+Math.imul(c,G)|0;var yt=(a+r|0)+((8191&n)<<13)|0;a=(o+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(w,z),n=Math.imul(w,Y),n=n+Math.imul(_,z)|0,o=Math.imul(_,Y),r=r+Math.imul(v,V)|0,n=n+Math.imul(v,F)|0,n=n+Math.imul(y,V)|0,o=o+Math.imul(y,F)|0,r=r+Math.imul(d,H)|0,n=n+Math.imul(d,G)|0,n=n+Math.imul(m,H)|0,o=o+Math.imul(m,G)|0,r=r+Math.imul(l,Q)|0,n=n+Math.imul(l,$)|0,n=n+Math.imul(c,Q)|0,o=o+Math.imul(c,$)|0;var bt=(a+r|0)+((8191&n)<<13)|0;a=(o+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(A,z),n=Math.imul(A,Y),n=n+Math.imul(S,z)|0,o=Math.imul(S,Y),r=r+Math.imul(w,V)|0,n=n+Math.imul(w,F)|0,n=n+Math.imul(_,V)|0,o=o+Math.imul(_,F)|0,r=r+Math.imul(v,H)|0,n=n+Math.imul(v,G)|0,n=n+Math.imul(y,H)|0,o=o+Math.imul(y,G)|0,r=r+Math.imul(d,Q)|0,n=n+Math.imul(d,$)|0,n=n+Math.imul(m,Q)|0,o=o+Math.imul(m,$)|0,r=r+Math.imul(l,X)|0,n=n+Math.imul(l,tt)|0,n=n+Math.imul(c,X)|0,o=o+Math.imul(c,tt)|0;var wt=(a+r|0)+((8191&n)<<13)|0;a=(o+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(k,z),n=Math.imul(k,Y),n=n+Math.imul(x,z)|0,o=Math.imul(x,Y),r=r+Math.imul(A,V)|0,n=n+Math.imul(A,F)|0,n=n+Math.imul(S,V)|0,o=o+Math.imul(S,F)|0,r=r+Math.imul(w,H)|0,n=n+Math.imul(w,G)|0,n=n+Math.imul(_,H)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(v,Q)|0,n=n+Math.imul(v,$)|0,n=n+Math.imul(y,Q)|0,o=o+Math.imul(y,$)|0,r=r+Math.imul(d,X)|0,n=n+Math.imul(d,tt)|0,n=n+Math.imul(m,X)|0,o=o+Math.imul(m,tt)|0,r=r+Math.imul(l,it)|0,n=n+Math.imul(l,rt)|0,n=n+Math.imul(c,it)|0,o=o+Math.imul(c,rt)|0;var _t=(a+r|0)+((8191&n)<<13)|0;a=(o+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(I,z),n=Math.imul(I,Y),n=n+Math.imul(T,z)|0,o=Math.imul(T,Y),r=r+Math.imul(k,V)|0,n=n+Math.imul(k,F)|0,n=n+Math.imul(x,V)|0,o=o+Math.imul(x,F)|0,r=r+Math.imul(A,H)|0,n=n+Math.imul(A,G)|0,n=n+Math.imul(S,H)|0,o=o+Math.imul(S,G)|0,r=r+Math.imul(w,Q)|0,n=n+Math.imul(w,$)|0,n=n+Math.imul(_,Q)|0,o=o+Math.imul(_,$)|0,r=r+Math.imul(v,X)|0,n=n+Math.imul(v,tt)|0,n=n+Math.imul(y,X)|0,o=o+Math.imul(y,tt)|0,r=r+Math.imul(d,it)|0,n=n+Math.imul(d,rt)|0,n=n+Math.imul(m,it)|0,o=o+Math.imul(m,rt)|0,r=r+Math.imul(l,ot)|0,n=n+Math.imul(l,st)|0,n=n+Math.imul(c,ot)|0,o=o+Math.imul(c,st)|0;var Mt=(a+r|0)+((8191&n)<<13)|0;a=(o+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(j,z),n=Math.imul(j,Y),n=n+Math.imul(C,z)|0,o=Math.imul(C,Y),r=r+Math.imul(I,V)|0,n=n+Math.imul(I,F)|0,n=n+Math.imul(T,V)|0,o=o+Math.imul(T,F)|0,r=r+Math.imul(k,H)|0,n=n+Math.imul(k,G)|0,n=n+Math.imul(x,H)|0,o=o+Math.imul(x,G)|0,r=r+Math.imul(A,Q)|0,n=n+Math.imul(A,$)|0,n=n+Math.imul(S,Q)|0,o=o+Math.imul(S,$)|0,r=r+Math.imul(w,X)|0,n=n+Math.imul(w,tt)|0,n=n+Math.imul(_,X)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(v,it)|0,n=n+Math.imul(v,rt)|0,n=n+Math.imul(y,it)|0,o=o+Math.imul(y,rt)|0,r=r+Math.imul(d,ot)|0,n=n+Math.imul(d,st)|0,n=n+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,r=r+Math.imul(l,ut)|0,n=n+Math.imul(l,at)|0,n=n+Math.imul(c,ut)|0,o=o+Math.imul(c,at)|0;var At=(a+r|0)+((8191&n)<<13)|0;a=(o+(n>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(N,z),n=Math.imul(N,Y),n=n+Math.imul(D,z)|0,o=Math.imul(D,Y),r=r+Math.imul(j,V)|0,n=n+Math.imul(j,F)|0,n=n+Math.imul(C,V)|0,o=o+Math.imul(C,F)|0,r=r+Math.imul(I,H)|0,n=n+Math.imul(I,G)|0,n=n+Math.imul(T,H)|0,o=o+Math.imul(T,G)|0,r=r+Math.imul(k,Q)|0,n=n+Math.imul(k,$)|0,n=n+Math.imul(x,Q)|0,o=o+Math.imul(x,$)|0,r=r+Math.imul(A,X)|0,n=n+Math.imul(A,tt)|0,n=n+Math.imul(S,X)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(w,it)|0,n=n+Math.imul(w,rt)|0,n=n+Math.imul(_,it)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(v,ot)|0,n=n+Math.imul(v,st)|0,n=n+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,r=r+Math.imul(d,ut)|0,n=n+Math.imul(d,at)|0,n=n+Math.imul(m,ut)|0,o=o+Math.imul(m,at)|0,r=r+Math.imul(l,lt)|0,n=n+Math.imul(l,ct)|0,n=n+Math.imul(c,lt)|0,o=o+Math.imul(c,ct)|0;var St=(a+r|0)+((8191&n)<<13)|0;a=(o+(n>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(U,z),n=Math.imul(U,Y),n=n+Math.imul(O,z)|0,o=Math.imul(O,Y),r=r+Math.imul(N,V)|0,n=n+Math.imul(N,F)|0,n=n+Math.imul(D,V)|0,o=o+Math.imul(D,F)|0,r=r+Math.imul(j,H)|0,n=n+Math.imul(j,G)|0,n=n+Math.imul(C,H)|0,o=o+Math.imul(C,G)|0,r=r+Math.imul(I,Q)|0,n=n+Math.imul(I,$)|0,n=n+Math.imul(T,Q)|0,o=o+Math.imul(T,$)|0,r=r+Math.imul(k,X)|0,n=n+Math.imul(k,tt)|0,n=n+Math.imul(x,X)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(A,it)|0,n=n+Math.imul(A,rt)|0,n=n+Math.imul(S,it)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(w,ot)|0,n=n+Math.imul(w,st)|0,n=n+Math.imul(_,ot)|0,o=o+Math.imul(_,st)|0,r=r+Math.imul(v,ut)|0,n=n+Math.imul(v,at)|0,n=n+Math.imul(y,ut)|0,o=o+Math.imul(y,at)|0,r=r+Math.imul(d,lt)|0,n=n+Math.imul(d,ct)|0,n=n+Math.imul(m,lt)|0,o=o+Math.imul(m,ct)|0,r=r+Math.imul(l,dt)|0,n=n+Math.imul(l,mt)|0,n=n+Math.imul(c,dt)|0,o=o+Math.imul(c,mt)|0;var Et=(a+r|0)+((8191&n)<<13)|0;a=(o+(n>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(U,V),n=Math.imul(U,F),n=n+Math.imul(O,V)|0,o=Math.imul(O,F),r=r+Math.imul(N,H)|0,n=n+Math.imul(N,G)|0,n=n+Math.imul(D,H)|0,o=o+Math.imul(D,G)|0,r=r+Math.imul(j,Q)|0,n=n+Math.imul(j,$)|0,n=n+Math.imul(C,Q)|0,o=o+Math.imul(C,$)|0,r=r+Math.imul(I,X)|0,n=n+Math.imul(I,tt)|0,n=n+Math.imul(T,X)|0,o=o+Math.imul(T,tt)|0,r=r+Math.imul(k,it)|0,n=n+Math.imul(k,rt)|0,n=n+Math.imul(x,it)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(A,ot)|0,n=n+Math.imul(A,st)|0,n=n+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,r=r+Math.imul(w,ut)|0,n=n+Math.imul(w,at)|0,n=n+Math.imul(_,ut)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(v,lt)|0,n=n+Math.imul(v,ct)|0,n=n+Math.imul(y,lt)|0,o=o+Math.imul(y,ct)|0,r=r+Math.imul(d,dt)|0,n=n+Math.imul(d,mt)|0,n=n+Math.imul(m,dt)|0,o=o+Math.imul(m,mt)|0;var kt=(a+r|0)+((8191&n)<<13)|0;a=(o+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(U,H),n=Math.imul(U,G),n=n+Math.imul(O,H)|0,o=Math.imul(O,G),r=r+Math.imul(N,Q)|0,n=n+Math.imul(N,$)|0,n=n+Math.imul(D,Q)|0,o=o+Math.imul(D,$)|0,r=r+Math.imul(j,X)|0,n=n+Math.imul(j,tt)|0,n=n+Math.imul(C,X)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(I,it)|0,n=n+Math.imul(I,rt)|0,n=n+Math.imul(T,it)|0,o=o+Math.imul(T,rt)|0,r=r+Math.imul(k,ot)|0,n=n+Math.imul(k,st)|0,n=n+Math.imul(x,ot)|0,o=o+Math.imul(x,st)|0,r=r+Math.imul(A,ut)|0,n=n+Math.imul(A,at)|0,n=n+Math.imul(S,ut)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(w,lt)|0,n=n+Math.imul(w,ct)|0,n=n+Math.imul(_,lt)|0,o=o+Math.imul(_,ct)|0,r=r+Math.imul(v,dt)|0,n=n+Math.imul(v,mt)|0,n=n+Math.imul(y,dt)|0,o=o+Math.imul(y,mt)|0;var xt=(a+r|0)+((8191&n)<<13)|0;a=(o+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(U,Q),n=Math.imul(U,$),n=n+Math.imul(O,Q)|0,o=Math.imul(O,$),r=r+Math.imul(N,X)|0,n=n+Math.imul(N,tt)|0,n=n+Math.imul(D,X)|0,o=o+Math.imul(D,tt)|0,r=r+Math.imul(j,it)|0,n=n+Math.imul(j,rt)|0,n=n+Math.imul(C,it)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(I,ot)|0,n=n+Math.imul(I,st)|0,n=n+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,r=r+Math.imul(k,ut)|0,n=n+Math.imul(k,at)|0,n=n+Math.imul(x,ut)|0,o=o+Math.imul(x,at)|0,r=r+Math.imul(A,lt)|0,n=n+Math.imul(A,ct)|0,n=n+Math.imul(S,lt)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(w,dt)|0,n=n+Math.imul(w,mt)|0,n=n+Math.imul(_,dt)|0,o=o+Math.imul(_,mt)|0;var Rt=(a+r|0)+((8191&n)<<13)|0;a=(o+(n>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(U,X),n=Math.imul(U,tt),n=n+Math.imul(O,X)|0,o=Math.imul(O,tt),r=r+Math.imul(N,it)|0,n=n+Math.imul(N,rt)|0,n=n+Math.imul(D,it)|0,o=o+Math.imul(D,rt)|0,r=r+Math.imul(j,ot)|0,n=n+Math.imul(j,st)|0,n=n+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,r=r+Math.imul(I,ut)|0,n=n+Math.imul(I,at)|0,n=n+Math.imul(T,ut)|0,o=o+Math.imul(T,at)|0,r=r+Math.imul(k,lt)|0,n=n+Math.imul(k,ct)|0,n=n+Math.imul(x,lt)|0,o=o+Math.imul(x,ct)|0,r=r+Math.imul(A,dt)|0,n=n+Math.imul(A,mt)|0,n=n+Math.imul(S,dt)|0,o=o+Math.imul(S,mt)|0;var It=(a+r|0)+((8191&n)<<13)|0;a=(o+(n>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(U,it),n=Math.imul(U,rt),n=n+Math.imul(O,it)|0,o=Math.imul(O,rt),r=r+Math.imul(N,ot)|0,n=n+Math.imul(N,st)|0,n=n+Math.imul(D,ot)|0,o=o+Math.imul(D,st)|0,r=r+Math.imul(j,ut)|0,n=n+Math.imul(j,at)|0,n=n+Math.imul(C,ut)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(I,lt)|0,n=n+Math.imul(I,ct)|0,n=n+Math.imul(T,lt)|0,o=o+Math.imul(T,ct)|0,r=r+Math.imul(k,dt)|0,n=n+Math.imul(k,mt)|0,n=n+Math.imul(x,dt)|0,o=o+Math.imul(x,mt)|0;var Tt=(a+r|0)+((8191&n)<<13)|0;a=(o+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(U,ot),n=Math.imul(U,st),n=n+Math.imul(O,ot)|0,o=Math.imul(O,st),r=r+Math.imul(N,ut)|0,n=n+Math.imul(N,at)|0,n=n+Math.imul(D,ut)|0,o=o+Math.imul(D,at)|0,r=r+Math.imul(j,lt)|0,n=n+Math.imul(j,ct)|0,n=n+Math.imul(C,lt)|0,o=o+Math.imul(C,ct)|0,r=r+Math.imul(I,dt)|0,n=n+Math.imul(I,mt)|0,n=n+Math.imul(T,dt)|0,o=o+Math.imul(T,mt)|0;var Bt=(a+r|0)+((8191&n)<<13)|0;a=(o+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(U,ut),n=Math.imul(U,at),n=n+Math.imul(O,ut)|0,o=Math.imul(O,at),r=r+Math.imul(N,lt)|0,n=n+Math.imul(N,ct)|0,n=n+Math.imul(D,lt)|0,o=o+Math.imul(D,ct)|0,r=r+Math.imul(j,dt)|0,n=n+Math.imul(j,mt)|0,n=n+Math.imul(C,dt)|0,o=o+Math.imul(C,mt)|0;var jt=(a+r|0)+((8191&n)<<13)|0;a=(o+(n>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(U,lt),n=Math.imul(U,ct),n=n+Math.imul(O,lt)|0,o=Math.imul(O,ct),r=r+Math.imul(N,dt)|0,n=n+Math.imul(N,mt)|0,n=n+Math.imul(D,dt)|0,o=o+Math.imul(D,mt)|0;var Ct=(a+r|0)+((8191&n)<<13)|0;a=(o+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(U,dt),n=Math.imul(U,mt),n=n+Math.imul(O,dt)|0,o=Math.imul(O,mt);var Pt=(a+r|0)+((8191&n)<<13)|0;return a=(o+(n>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=gt,u[1]=vt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=_t,u[6]=Mt,u[7]=At,u[8]=St,u[9]=Et,u[10]=kt,u[11]=xt,u[12]=Rt,u[13]=It,u[14]=Tt,u[15]=Bt,u[16]=jt,u[17]=Ct,u[18]=Pt,0!==a&&(u[19]=a,i.length++),i};Math.imul||(S=a),o.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?S(this,t,e):i<63?a(this,t,e):i<1024?f(this,t,e):l(this,t,e)},c.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},c.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=0,n=0;n<e;n++)r|=(1&t)<<e-n-1,t>>=1;return r},c.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},c.prototype.transform=function(t,e,i,r,n,o){this.permute(o,t,e,i,r,n);for(var s=1;s<n;s<<=1)for(var h=s<<1,u=Math.cos(2*Math.PI/h),a=Math.sin(2*Math.PI/h),f=0;f<n;f+=h)for(var l=u,c=a,p=0;p<s;p++){var d=i[f+p],m=r[f+p],g=i[f+p+s],v=r[f+p+s],y=l*g-c*v;v=l*v+c*g,g=y,i[f+p]=d+g,r[f+p]=m+v,i[f+p+s]=d-g,r[f+p+s]=m-v,p!==h&&(y=u*l-a*c,c=u*c+a*l,l=y)}},c.prototype.guessLen13b=function(t,e){var i=1|Math.max(e,t),r=1&i,n=0;for(i=i/2|0;i;i>>>=1)n++;return 1<<n+1+r},c.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},c.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++){var n=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i;t[r]=67108863&n,i=n<67108864?0:n/67108864|0}return t},c.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(o&-8192))},c.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},c.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=new Array(r),h=new Array(r),u=new Array(r),a=new Array(r),f=new Array(r),l=new Array(r),c=i.words;c.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,a,r),this.transform(s,o,h,u,r,n),this.transform(a,o,f,l,r,n);for(var p=0;p<r;p++){var d=h[p]*f[p]-u[p]*l[p];u[p]=h[p]*l[p]+u[p]*f[p],h[p]=d}return this.conjugate(h,u,r),this.transform(h,u,c,o,r,n),this.conjugate(c,o,r),this.normalize13b(c,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),l(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=u(t);if(0===e.length)return new o(1);for(var i=this,r=0;r<e.length&&0===e[r];r++,i=i.sqr());if(++r<e.length)for(var n=i.sqr();r<e.length;r++,n=n.sqr())0!==e[r]&&(i=i.mul(n));return i},o.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,i=t%26,n=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(e=0;e<this.length;e++){var h=this.words[e]&o,u=(0|this.words[e])-h<<i;this.words[e]=u|s,s=h>>>26-i}s&&(this.words[e]=s,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e<n;e++)this.words[e]=0;this.length+=n}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&t>=0);var n;n=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),h=67108863^67108863>>>o<<o,u=i;if(n-=s,n=Math.max(0,n),u){for(var a=0;a<s;a++)u.words[a]=this.words[a];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,a=0;a<this.length;a++)this.words[a]=this.words[a+s];else this.words[0]=0,this.length=1;var f=0;for(a=this.length-1;a>=0&&(0!==f||a>=n);a--){var l=0|this.words[a];this.words[a]=f<<26-o|l>>>o,f=l&h}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26,n=1<<e;return!(this.length<=i)&&!!(this.words[i]&n)},o.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var n=67108863^67108863>>>e<<e;this.words[this.length-1]&=n}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var n,o=t.length+i;this._expand(o);var s,h=0;for(n=0;n<t.length;n++){s=(0|this.words[n+i])+h;var u=(0|t.words[n])*e;s-=67108863&u,h=(s>>26)-(u/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)s=(0|this.words[n+i])+h,h=s>>26,this.words[n+i]=67108863&s;if(0===h)return this.strip();for(r(h===-1),h=0,n=0;n<this.length;n++)s=-(0|this.words[n])+h,h=s>>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.length-t.length,r=this.clone(),n=t,s=0|n.words[n.length-1];0!==(i=26-this._countBits(s))&&(n=n.ushln(i),r.iushln(i),s=0|n.words[n.length-1]);var h,u=r.length-n.length;if("mod"!==e){h=new o(null),h.length=u+1,h.words=new Array(h.length);for(var a=0;a<h.length;a++)h.words[a]=0}var f=r.clone()._ishlnsubmul(n,1,u);0===f.negative&&(r=f,h&&(h.words[u]=1));for(var l=u-1;l>=0;l--){var c=67108864*(0|r.words[n.length+l])+(0|r.words[n.length+l-1]);for(c=Math.min(c/s|0,67108863),r._ishlnsubmul(n,c,l);0!==r.negative;)c--,r.negative=0,r._ishlnsubmul(n,1,l),r.isZero()||(r.negative^=1);h&&(h.words[l]=c)}return h&&h.strip(),r.strip(),"div"!==e&&0!==i&&r.iushrn(i),{div:h||null,mod:r}},o.prototype.divmod=function(t,e,i){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var n,s,h;return 0!==this.negative&&0===t.negative?(h=this.neg().divmod(t,e),"mod"!==e&&(n=h.div.neg()),"div"!==e&&(s=h.mod.neg(),i&&0!==s.negative&&s.iadd(t)),{div:n,mod:s}):0===this.negative&&0!==t.negative?(h=this.divmod(t.neg(),e),"mod"!==e&&(n=h.div.neg()),{div:n,mod:h.mod}):0!=(this.negative&t.negative)?(h=this.neg().divmod(t.neg(),e),"div"!==e&&(s=h.mod.neg(),i&&0!==s.negative&&s.isub(t)),{div:h.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),n=t.andln(1),o=i.cmp(r);return o<0||1===n&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,i=0,n=this.length-1;n>=0;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*e;this.words[i]=n/t|0,e=n%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),h=new o(0),u=new o(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var f=i.clone(),l=e.clone();!e.isZero();){for(var c=0,p=1;0==(e.words[0]&p)&&c<26;++c,p<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(f),s.isub(l)),n.iushrn(1),s.iushrn(1);for(var d=0,m=1;0==(i.words[0]&m)&&d<26;++d,m<<=1);if(d>0)for(i.iushrn(d);d-- >0;)(h.isOdd()||u.isOdd())&&(h.iadd(f),u.isub(l)),h.iushrn(1),u.iushrn(1);e.cmp(i)>=0?(e.isub(i),n.isub(h),s.isub(u)):(i.isub(e),h.isub(n),u.isub(s))}return{a:h,b:u,gcd:i.iushln(a)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),h=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,a=1;0==(e.words[0]&a)&&u<26;++u,a<<=1);if(u>0)for(e.iushrn(u);u-- >0;)n.isOdd()&&n.iadd(h),n.iushrn(1);for(var f=0,l=1;0==(i.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(i.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(h),s.iushrn(1);e.cmp(i)>=0?(e.isub(i),n.isub(s)):(i.isub(e),s.isub(n))}var c;return c=0===e.cmpn(1)?n:s,c.cmpn(0)<0&&c.iadd(t),c},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var r=0;e.isEven()&&i.isEven();r++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=e.cmp(i);if(n<0){var o=e;e=i,i=o}else if(0===n||0===i.cmpn(1))break;e.isub(i)}return i.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,i=(t-e)/26,n=1<<e;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var o=n,s=i;0!==o&&s<this.length;s++){var h=0|this.words[s];h+=o,o=h>>>26,h&=67108863,this.words[s]=h}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=t<0;if(0!==this.negative&&!e)return-1;if(0===this.negative&&e)return 1;this.strip();var i;if(this.length>1)i=1;else{e&&(t=-t),r(t<=67108863,"Number is too big");var n=0|this.words[0];i=n===t?0:n<t?-1:1}return 0!==this.negative?0|-i:i},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){r<n?e=-1:r>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return this.cmpn(t)===-1},o.prototype.lt=function(t){return this.cmp(t)===-1},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new y(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var E={k256:null,p224:null,p192:null,p25519:null};p.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},p.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),i=this.imulK(i),i=i.iadd(this.tmp),e=i.bitLength()}while(e>this.n);var r=e<this.n?-1:i.ucmp(this.p);return 0===r?(i.words[0]=0,i.length=1):r>0?i.isub(this.p):i.strip(),i},p.prototype.split=function(t,e){t.iushrn(this.n,0,e)},p.prototype.imulK=function(t){return t.imul(this.k)},n(d,p),d.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,t.length<=9)return t.words[0]=0,void(t.length=1);var n=t.words[9];for(e.words[e.length++]=4194303&n,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|n>>>22,n=o}n>>>=22,t.words[r-10]=n,0===n&&t.length>10?t.length-=10:t.length-=9},d.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(m,p),n(g,p),n(v,p),v.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(E[t])return E[t];var e;if("k256"===t)e=new d;else if("p224"===t)e=new m;else if("p192"===t)e=new g;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new v}return E[t]=e,e},y.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},y.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},y.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},y.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},y.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},y.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},y.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},y.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},y.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},y.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},y.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},y.prototype.isqr=function(t){return this.imul(t,t.clone())},y.prototype.sqr=function(t){return this.mul(t,t)},y.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var i=this.m.add(new o(1)).iushrn(2);return this.pow(t,i)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);r(!n.isZero());var h=new o(1).toRed(this),u=h.redNeg(),a=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,a).cmp(u);)f.redIAdd(u);for(var l=this.pow(f,n),c=this.pow(t,n.addn(1).iushrn(1)),p=this.pow(t,n),d=s;0!==p.cmp(h);){for(var m=p,g=0;0!==m.cmp(h);g++)m=m.redSqr();r(g<d);var v=this.pow(l,new o(1).iushln(d-g-1));c=c.redMul(v),l=v.redSqr(),p=p.redMul(l),d=g}return c},y.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},y.prototype.pow=function(t,e){if(e.isZero())return new o(1);if(0===e.cmpn(1))return t.clone();var i=new Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);var n=i[0],s=0,h=0,u=e.bitLength()%26;for(0===u&&(u=26),r=e.length-1;r>=0;r--){for(var a=e.words[r],f=u-1;f>=0;f--){var l=a>>f&1;n!==i[0]&&(n=this.sqr(n)),0!==l||0!==s?(s<<=1,s|=l,(4===++h||0===r&&0===f)&&(n=this.mul(n,i[s]),h=0,s=0)):h=0}u=26}return n},y.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},y.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new b(t)},n(b,y),b.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},b.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},b.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},b.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var i=t.mul(e),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},b.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)}).call(e,i(45)(t))},function(t,e,i){var r=e;r.bignum=i(2),r.define=i(20).define,r.base=i(4),r.constants=i(11),r.decoders=i(24),r.encoders=i(26)},function(t,e,i){var r=e;r.Reporter=i(22).Reporter,r.DecoderBuffer=i(10).DecoderBuffer,r.EncoderBuffer=i(10).EncoderBuffer,r.Node=i(21)},function(t,e,i){"use strict";(function(t){function r(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function n(t,e){if(r()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,i){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,i);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return a(this,t)}return s(this,t,e,i)}function s(t,e,i,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?c(t,e,i,r):"string"==typeof e?f(t,e,i):p(t,e)}function h(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function u(t,e,i,r){return h(e),e<=0?n(t,e):void 0!==i?"string"==typeof r?n(t,e).fill(i,r):n(t,e).fill(i):n(t,e)}function a(t,e){if(h(e),t=n(t,e<0?0:0|d(e)),!o.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function f(t,e,i){if("string"==typeof i&&""!==i||(i="utf8"),!o.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var r=0|g(e,i);t=n(t,r);var s=t.write(e,i);return s!==r&&(t=t.slice(0,s)),t}function l(t,e){var i=e.length<0?0:0|d(e.length);t=n(t,i);for(var r=0;r<i;r+=1)t[r]=255&e[r];return t}function c(t,e,i,r){if(e.byteLength,i<0||e.byteLength<i)throw new RangeError("'offset' is out of bounds");if(e.byteLength<i+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===i&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,i):new Uint8Array(e,i,r),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=l(t,e),t}function p(t,e){if(o.isBuffer(e)){var i=0|d(e.length);return t=n(t,i),0===t.length?t:(e.copy(t,0,0,i),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||W(e.length)?n(t,0):l(t,e);if("Buffer"===e.type&&J(e.data))return l(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(t){if(t>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function m(t){return+t!=t&&(t=0),o.alloc(+t)}function g(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return H(t).length;default:if(r)return V(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,i){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,e>>>=0,i<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return j(this,e,i);case"utf8":case"utf-8":return R(this,e,i);case"ascii":return T(this,e,i);case"latin1":case"binary":return B(this,e,i);case"base64":return x(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,i);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function y(t,e,i){var r=t[e];t[e]=t[i],t[i]=r}function b(t,e,i,r,n){if(0===t.length)return-1;if("string"==typeof i?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=n?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(n)return-1;i=t.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof e&&(e=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:w(t,e,i,r,n);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):w(t,[e],i,r,n);throw new TypeError("val must be string, number or Buffer")}function w(t,e,i,r,n){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var s=1,h=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,h/=2,u/=2,i/=2}var a;if(n){var f=-1;for(a=i;a<h;a++)if(o(t,a)===o(e,f===-1?0:a-f)){if(f===-1&&(f=a),a-f+1===u)return f*s}else f!==-1&&(a-=a-f),f=-1}else for(i+u>h&&(i=h-u),a=i;a>=0;a--){for(var l=!0,c=0;c<u;c++)if(o(t,a+c)!==o(e,c)){l=!1;break}if(l)return a}return-1}function _(t,e,i,r){i=Number(i)||0;var n=t.length-i;r?(r=Number(r))>n&&(r=n):r=n;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var h=parseInt(e.substr(2*s,2),16);if(isNaN(h))return s;t[i+s]=h}return s}function M(t,e,i,r){return G(V(e,t.length-i),t,i,r)}function A(t,e,i,r){return G(F(e),t,i,r)}function S(t,e,i,r){return A(t,e,i,r)}function E(t,e,i,r){return G(H(e),t,i,r)}function k(t,e,i,r){return G(Z(e,t.length-i),t,i,r)}function x(t,e,i){return 0===e&&i===t.length?Q.fromByteArray(t):Q.fromByteArray(t.slice(e,i))}function R(t,e,i){i=Math.min(t.length,i);for(var r=[],n=e;n<i;){var o=t[n],s=null,h=o>239?4:o>223?3:o>191?2:1;if(n+h<=i){var u,a,f,l;switch(h){case 1:o<128&&(s=o);break;case 2:u=t[n+1],128==(192&u)&&(l=(31&o)<<6|63&u)>127&&(s=l);break;case 3:u=t[n+1],a=t[n+2],128==(192&u)&&128==(192&a)&&(l=(15&o)<<12|(63&u)<<6|63&a)>2047&&(l<55296||l>57343)&&(s=l);break;case 4:u=t[n+1],a=t[n+2],f=t[n+3],128==(192&u)&&128==(192&a)&&128==(192&f)&&(l=(15&o)<<18|(63&u)<<12|(63&a)<<6|63&f)>65535&&l<1114112&&(s=l)}}null===s?(s=65533,h=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),n+=h}return I(r)}function I(t){var e=t.length;if(e<=X)return String.fromCharCode.apply(String,t);for(var i="",r=0;r<e;)i+=String.fromCharCode.apply(String,t.slice(r,r+=X));return i}function T(t,e,i){var r="";i=Math.min(t.length,i);for(var n=e;n<i;++n)r+=String.fromCharCode(127&t[n]);return r}function B(t,e,i){var r="";i=Math.min(t.length,i);for(var n=e;n<i;++n)r+=String.fromCharCode(t[n]);return r}function j(t,e,i){var r=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>r)&&(i=r);for(var n="",o=e;o<i;++o)n+=K(t[o]);return n}function C(t,e,i){for(var r=t.slice(e,i),n="",o=0;o<r.length;o+=2)n+=String.fromCharCode(r[o]+256*r[o+1]);return n}function P(t,e,i){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function N(t,e,i,r,n,s){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<s)throw new RangeError('"value" argument is out of bounds');if(i+r>t.length)throw new RangeError("Index out of range")}function D(t,e,i,r){e<0&&(e=65535+e+1);for(var n=0,o=Math.min(t.length-i,2);n<o;++n)t[i+n]=(e&255<<8*(r?n:1-n))>>>8*(r?n:1-n)}function L(t,e,i,r){e<0&&(e=4294967295+e+1);for(var n=0,o=Math.min(t.length-i,4);n<o;++n)t[i+n]=e>>>8*(r?n:3-n)&255}function U(t,e,i,r,n,o){if(i+r>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function O(t,e,i,r,n){return n||U(t,e,i,4,3.4028234663852886e38,-3.4028234663852886e38),$.write(t,e,i,r,23,4),i+4}function q(t,e,i,r,n){return n||U(t,e,i,8,1.7976931348623157e308,-1.7976931348623157e308),$.write(t,e,i,r,52,8),i+8}function z(t){if(t=Y(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function Y(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function K(t){return t<16?"0"+t.toString(16):t.toString(16)}function V(t,e){e=e||1/0;for(var i,r=t.length,n=null,o=[],s=0;s<r;++s){if((i=t.charCodeAt(s))>55295&&i<57344){if(!n){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}n=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&(e-=3)>-1&&o.push(239,191,189);if(n=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function F(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}function Z(t,e){for(var i,r,n,o=[],s=0;s<t.length&&!((e-=2)<0);++s)i=t.charCodeAt(s),r=i>>8,n=i%256,o.push(n),o.push(r);return o}function H(t){return Q.toByteArray(z(t))}function G(t,e,i,r){for(var n=0;n<r&&!(n+i>=e.length||n>=t.length);++n)e[n+i]=t[n];return n}function W(t){return t!==t}/*!
   * The buffer module from node.js, for the browser.
   *
   * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
   * @license  MIT
   */
  var Q=i(28),$=i(36),J=i(38);e.Buffer=o,e.SlowBuffer=m,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=r(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,i){return s(null,t,e,i)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,i){return u(null,t,e,i)},o.allocUnsafe=function(t){return a(null,t)},o.allocUnsafeSlow=function(t){return a(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,r=e.length,n=0,s=Math.min(i,r);n<s;++n)if(t[n]!==e[n]){i=t[n],r=e[n];break}return i<r?-1:r<i?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!J(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var r=o.allocUnsafe(e),n=0;for(i=0;i<t.length;++i){var s=t[i];if(!o.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,n),n+=s.length}return r},o.byteLength=g,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?R(this,0,t):v.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,i,r,n){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),e<0||i>t.length||r<0||n>this.length)throw new RangeError("out of range index");if(r>=n&&e>=i)return 0;if(r>=n)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,r>>>=0,n>>>=0,this===t)return 0;for(var s=n-r,h=i-e,u=Math.min(s,h),a=this.slice(r,n),f=t.slice(e,i),l=0;l<u;++l)if(a[l]!==f[l]){s=a[l],h=f[l];break}return s<h?-1:h<s?1:0},o.prototype.includes=function(t,e,i){return this.indexOf(t,e,i)!==-1},o.prototype.indexOf=function(t,e,i){return b(this,t,e,i,!0)},o.prototype.lastIndexOf=function(t,e,i){return b(this,t,e,i,!1)},o.prototype.write=function(t,e,i,r){if(void 0===e)r="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)r=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(i)?(i|=0,void 0===r&&(r="utf8")):(r=i,i=void 0)}var n=this.length-e;if((void 0===i||i>n)&&(i=n),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,t,e,i);case"utf8":case"utf-8":return M(this,t,e,i);case"ascii":return A(this,t,e,i);case"latin1":case"binary":return S(this,t,e,i);case"base64":return E(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var X=4096;o.prototype.slice=function(t,e){var i=this.length;t=~~t,e=void 0===e?i:~~e,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),e<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t);var r;if(o.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=o.prototype;else{var n=e-t;r=new o(n,void 0);for(var s=0;s<n;++s)r[s]=this[s+t]}return r},o.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||P(t,e,this.length);for(var r=this[t],n=1,o=0;++o<e&&(n*=256);)r+=this[t+o]*n;return r},o.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||P(t,e,this.length);for(var r=this[t+--e],n=1;e>0&&(n*=256);)r+=this[t+--e]*n;return r},o.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||P(t,e,this.length);for(var r=this[t],n=1,o=0;++o<e&&(n*=256);)r+=this[t+o]*n;return n*=128,r>=n&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||P(t,e,this.length);for(var r=e,n=1,o=this[t+--r];r>0&&(n*=256);)o+=this[t+--r]*n;return n*=128,o>=n&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},o.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},o.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},o.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),$.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),$.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),$.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),$.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,i,r){if(t=+t,e|=0,i|=0,!r){N(this,t,e,i,Math.pow(2,8*i)-1,0)}var n=1,o=0;for(this[e]=255&t;++o<i&&(n*=256);)this[e+o]=t/n&255;return e+i},o.prototype.writeUIntBE=function(t,e,i,r){if(t=+t,e|=0,i|=0,!r){N(this,t,e,i,Math.pow(2,8*i)-1,0)}var n=i-1,o=1;for(this[e+n]=255&t;--n>=0&&(o*=256);)this[e+n]=t/o&255;return e+i},o.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):L(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,i,r){if(t=+t,e|=0,!r){var n=Math.pow(2,8*i-1);N(this,t,e,i,n-1,-n)}var o=0,s=1,h=0;for(this[e]=255&t;++o<i&&(s*=256);)t<0&&0===h&&0!==this[e+o-1]&&(h=1),this[e+o]=(t/s>>0)-h&255;return e+i},o.prototype.writeIntBE=function(t,e,i,r){if(t=+t,e|=0,!r){var n=Math.pow(2,8*i-1);N(this,t,e,i,n-1,-n)}var o=i-1,s=1,h=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===h&&0!==this[e+o+1]&&(h=1),this[e+o]=(t/s>>0)-h&255;return e+i},o.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):L(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,i){return O(this,t,e,!0,i)},o.prototype.writeFloatBE=function(t,e,i){return O(this,t,e,!1,i)},o.prototype.writeDoubleLE=function(t,e,i){return q(this,t,e,!0,i)},o.prototype.writeDoubleBE=function(t,e,i){return q(this,t,e,!1,i)},o.prototype.copy=function(t,e,i,r){if(i||(i=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<i&&(r=i),r===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-i&&(r=t.length-e+i);var n,s=r-i;if(this===t&&i<e&&e<r)for(n=s-1;n>=0;--n)t[n+e]=this[n+i];else if(s<1e3||!o.TYPED_ARRAY_SUPPORT)for(n=0;n<s;++n)t[n+e]=this[n+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+s),e);return s},o.prototype.fill=function(t,e,i,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,i=this.length):"string"==typeof i&&(r=i,i=this.length),1===t.length){var n=t.charCodeAt(0);n<256&&(t=n)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0);var s;if("number"==typeof t)for(s=e;s<i;++s)this[s]=t;else{var h=o.isBuffer(t)?t:V(new o(t,r).toString()),u=h.length;for(s=0;s<i-e;++s)this[s+e]=h[s%u]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,i(15))},function(t,e,i){function r(t){this.rand=t}var n;if(t.exports=function(t){return n||(n=new r(null)),n.generate(t)},t.exports.Rand=r,r.prototype.generate=function(t){return this._rand(t)},r.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),i=0;i<e.length;i++)e[i]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?r.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?r.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(r.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=i(47);if("function"!=typeof o.randomBytes)throw new Error("Not supported");r.prototype._rand=function(t){return o.randomBytes(t)}}catch(t){}},function(t,e,i){(function(e){function r(t){this.options=t||{},this.rand=new o.Rand(this.options.prng),this.primal=s.create({"miller-rabin":this.rand})}var n=i(2),o=i(6),s=i(41),h=i(9),u=i(18),a=i(29).EventEmitter;t.exports=r,r.create=function(t){return new r(t)},r.prototype.getPrime=function(t,i){function r(){do{var u=o.rand.generate(Math.ceil(t/8));if(u[0]|=192,u[u.length-1]|=3,u=new n(u),s.emit("try","miller-rabin"),o.primal.test(u))return s.emit("try","prime"),i?i(null,u):u}while(!i);if(h)return i(new Error("aborted"));e(r)}var o=this,s=new a,h=!1;return s.abort=function(){h=!0},i?(e(r),s):r()},r.prototype.getKeyData=function(t,e){if(0===t.cmp(e))return!1;var i=t.subn(1),r=e.subn(1),o=i.mul(r),s=new n(65537),h=s.invm(o),u=h.mod(i),a=h.mod(r),f=i.mul(r).div(i.gcd(r));return 0===h.mul(s).mod(f).cmpn(1)&&{version:0,modulus:t.mul(e),publicExponent:s,privateExponent:h,prime1:t,prime2:e,exponent1:u,exponent2:a,coefficient:e.invm(t)}},r.prototype._pemWrap=function(t,e){for(var i=t.toString("base64"),r=["-----BEGIN "+e+"-----"],n=0;n<i.length;n+=64)r.push(i.slice(n,n+64));return r.push("-----END "+e+"-----"),r.join("\n")},r.prototype.getPrivate=function(t,e){var i=h.RSAPrivateKey.encode(t,"der");return"pem"!==e?i:this._pemWrap(i,"RSA PRIVATE KEY")},r.prototype.getPublic=function(t,e){var i=h.RSAPublicKey.encode(t,"der");return"pem"!==e?i:this._pemWrap(i,"RSA PUBLIC KEY")},r.prototype.getCertTBSData=function(t){function e(t){return h.IA5Str.encode(t,"der")}var i,r=new Date,n=[];t.dnsNames?i=t.dnsNames:t.dnsName&&(i=[t.dnsName]),i&&n.push({extnID:h.ALTNAME,critical:!1,extnValue:h.GeneralNames.encode(i.map(function(t){return{type:"dNSName",value:t}}),"der")}),t.extensions&&(n=n.concat(t.extensions));return{version:"v3",serialNumber:t.serial||65537,signature:{algorithm:h.SHA512RSA,parameters:h.EMPTY_PARAMETERS},issuer:t.issuer?t.issuer.tbsCertificate.subject:{type:"rdnSequence",value:[[{type:h.COMMONNAME,value:e(t.issuerName||t.commonName)}]]},validity:{notBefore:{type:"utcTime",value:t.notBefore||new Date(+r-864e5)},notAfter:{type:"utcTime",value:t.notAfter||new Date(+r+(t.validity||31536e7))}},subject:{type:"rdnSequence",value:[[{type:h.COMMONNAME,value:e(t.commonName)}]]},subjectPublicKeyInfo:{algorithm:{algorithm:h.RSA,parameters:h.EMPTY_PARAMETERS},subjectPublicKey:{unused:0,data:this.getPublic(t.keyData)}},extensions:n}},r.prototype.getCertData=function(t){var e=this.getCertTBSData(t),i=h.TBSCertificate.encode(e,"der"),r=u.sign(i,t.issuerKeyData||t.keyData);return{tbsCertificate:e,signatureAlgorithm:{algorithm:h.SHA512RSA,parameters:h.EMPTY_PARAMETERS},signature:{unused:0,data:r}}},r.prototype.getCert=function(t,e){var i=h.Certificate.encode(t,"der");return"pem"!==e?i:this._pemWrap(i,"CERTIFICATE")}}).call(e,i(8).setImmediate)},function(t,e,i){function r(t,e){this._id=t,this._clearFn=e}var n=Function.prototype.apply;e.setTimeout=function(){return new r(n.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new r(n.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},i(43),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},function(t,e,i){var r=i(3),n=i(19),o=r.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});e.RSAPrivateKey=o;var s=r.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});e.RSAPublicKey=s;var h=r.define("GeneralName",function(){this.choice({dNSName:this.implicit(2).ia5str()})});e.GeneralName=h;var u=r.define("GeneralNames",function(){this.seqof(h)});e.GeneralNames=u;var a=r.define("Signature",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("algorithm").objid(),this.null_()),this.key("digest").octstr())});e.Signature=a;var f=r.define("IA5Str",function(){this.ia5str()});e.IA5Str=f;var l=r.define("Null",function(){this.null_()});e.SHA256=[2,16,840,1,101,3,4,2,1],e.SHA256RSA=[1,2,840,113549,1,1,11],e.SHA512=[2,16,840,1,101,3,4,2,3],e.SHA512RSA=[1,2,840,113549,1,1,13],e.RSA=[1,2,840,113549,1,1,1],e.COMMONNAME=[2,5,4,3],e.ALTNAME=[2,5,29,17],e.TBSCertificate=n.TBSCertificate,e.Certificate=n.Certificate,e.EMPTY_PARAMETERS=l.encode(null,"der")},function(t,e,i){function r(t,e){if(s.call(this,e),!h.isBuffer(t))return void this.error("Input not Buffer");this.base=t,this.offset=0,this.length=t.length}function n(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(t){return t instanceof n||(t=new n(t,e)),this.length+=t.length,t},this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=h.byteLength(t);else{if(!h.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}var o=i(0),s=i(4).Reporter,h=i(5).Buffer;o(r,s),e.DecoderBuffer=r,r.prototype.save=function(){return{offset:this.offset,reporter:s.prototype.save.call(this)}},r.prototype.restore=function(t){var e=new r(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,s.prototype.restore.call(this,t.reporter),e},r.prototype.isEmpty=function(){return this.offset===this.length},r.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},r.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var i=new r(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+t,this.offset+=t,i},r.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=n,n.prototype.join=function(t,e){return t||(t=new h(this.length)),e||(e=0),0===this.length?t:(Array.isArray(this.value)?this.value.forEach(function(i){i.join(t,e),e+=i.length}):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):h.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length),t)}},function(t,e,i){var r=e;r._reverse=function(t){var e={};return Object.keys(t).forEach(function(i){(0|i)==i&&(i|=0);var r=t[i];e[r]=i}),e},r.der=i(23)},function(t,e,i){function r(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new n,this.tree._init(t.body)}function n(t){a.Node.call(this,"der",t)}function o(t,e){var i=t.readUInt8(e);if(t.isError(i))return i;var r=l.tagClass[i>>6],n=0==(32&i);if(31==(31&i)){var o=i;for(i=0;128==(128&o);){if(o=t.readUInt8(e),t.isError(o))return o;i<<=7,i|=127&o}}else i&=31;return{cls:r,primitive:n,tag:i,tagStr:l.tag[i]}}function s(t,e,i){var r=t.readUInt8(i);if(t.isError(r))return r;if(!e&&128===r)return null;if(0==(128&r))return r;var n=127&r;if(n>4)return t.error("length octect is too long");r=0;for(var o=0;o<n;o++){r<<=8;var s=t.readUInt8(i);if(t.isError(s))return s;r|=s}return r}var h=i(0),u=i(3),a=u.base,f=u.bignum,l=u.constants.der;t.exports=r,r.prototype.decode=function(t,e){return t instanceof a.DecoderBuffer||(t=new a.DecoderBuffer(t,e)),this.tree._decode(t,e)},h(n,a.Node),n.prototype._peekTag=function(t,e,i){if(t.isEmpty())return!1;var r=t.save(),n=o(t,'Failed to peek tag: "'+e+'"');return t.isError(n)?n:(t.restore(r),n.tag===e||n.tagStr===e||n.tagStr+"of"===e||i)},n.prototype._decodeTag=function(t,e,i){var r=o(t,'Failed to decode tag of "'+e+'"');if(t.isError(r))return r;var n=s(t,r.primitive,'Failed to get length of "'+e+'"');if(t.isError(n))return n;if(!i&&r.tag!==e&&r.tagStr!==e&&r.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(r.primitive||null!==n)return t.skip(n,'Failed to match body of: "'+e+'"');var h=t.save(),u=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(u)?u:(n=t.offset-h.offset,t.restore(h),t.skip(n,'Failed to match body of: "'+e+'"'))},n.prototype._skipUntilEnd=function(t,e){for(;;){var i=o(t,e);if(t.isError(i))return i;var r=s(t,i.primitive,e);if(t.isError(r))return r;var n;if(n=i.primitive||null!==r?t.skip(r):this._skipUntilEnd(t,e),t.isError(n))return n;if("end"===i.tagStr)break}},n.prototype._decodeList=function(t,e,i,r){for(var n=[];!t.isEmpty();){var o=this._peekTag(t,"end");if(t.isError(o))return o;var s=i.decode(t,"der",r);if(t.isError(s)&&o)break;n.push(s)}return n},n.prototype._decodeStr=function(t,e){if("bitstr"===e){var i=t.readUInt8();return t.isError(i)?i:{unused:i,data:t.raw()}}if("bmpstr"===e){var r=t.raw();if(r.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");for(var n="",o=0;o<r.length/2;o++)n+=String.fromCharCode(r.readUInt16BE(2*o));return n}if("numstr"===e){var s=t.raw().toString("ascii");return this._isNumstr(s)?s:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){var h=t.raw().toString("ascii");return this._isPrintstr(h)?h:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},n.prototype._decodeObjid=function(t,e,i){for(var r,n=[],o=0;!t.isEmpty();){var s=t.readUInt8();o<<=7,o|=127&s,0==(128&s)&&(n.push(o),o=0)}128&s&&n.push(o);var h=n[0]/40|0,u=n[0]%40;if(r=i?n:[h,u].concat(n.slice(1)),e){var a=e[r.join(" ")];void 0===a&&(a=e[r.join(".")]),void 0!==a&&(r=a)}return r},n.prototype._decodeTime=function(t,e){var i=t.raw().toString();if("gentime"===e)var r=0|i.slice(0,4),n=0|i.slice(4,6),o=0|i.slice(6,8),s=0|i.slice(8,10),h=0|i.slice(10,12),u=0|i.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");var r=0|i.slice(0,2),n=0|i.slice(2,4),o=0|i.slice(4,6),s=0|i.slice(6,8),h=0|i.slice(8,10),u=0|i.slice(10,12);r=r<70?2e3+r:1900+r}return Date.UTC(r,n-1,o,s,h,u,0)},n.prototype._decodeNull=function(t){return null},n.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},n.prototype._decodeInt=function(t,e){var i=t.raw(),r=new f(i);return e&&(r=e[r.toString(10)]||r),r},n.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},function(t,e,i){function r(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new n,this.tree._init(t.body)}function n(t){f.Node.call(this,"der",t)}function o(t){return t<10?"0"+t:t}function s(t,e,i,r){var n;if("seqof"===t?t="seq":"setof"===t&&(t="set"),l.tagByName.hasOwnProperty(t))n=l.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return r.error("Unknown tag: "+t);n=t}return n>=31?r.error("Multi-octet tag encoding unsupported"):(e||(n|=32),n|=l.tagClassByName[i||"universal"]<<6)}var h=i(0),u=i(5).Buffer,a=i(3),f=a.base,l=a.constants.der;t.exports=r,r.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},h(n,f.Node),n.prototype._encodeComposite=function(t,e,i,r){var n=s(t,e,i,this.reporter);if(r.length<128){var o=new u(2);return o[0]=n,o[1]=r.length,this._createEncoderBuffer([o,r])}for(var h=1,a=r.length;a>=256;a>>=8)h++;var o=new u(2+h);o[0]=n,o[1]=128|h;for(var a=1+h,f=r.length;f>0;a--,f>>=8)o[a]=255&f;return this._createEncoderBuffer([o,r])},n.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var i=new u(2*t.length),r=0;r<t.length;r++)i.writeUInt16BE(t.charCodeAt(r),2*r);return this._createEncoderBuffer(i)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)?this._createEncoderBuffer(t):"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},n.prototype._encodeObjid=function(t,e,i){if("string"==typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s\.]+/g);for(var r=0;r<t.length;r++)t[r]|=0}else if(Array.isArray(t)){t=t.slice();for(var r=0;r<t.length;r++)t[r]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!i){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}for(var n=0,r=0;r<t.length;r++){var o=t[r];for(n++;o>=128;o>>=7)n++}for(var s=new u(n),h=s.length-1,r=t.length-1;r>=0;r--){var o=t[r];for(s[h--]=127&o;(o>>=7)>0;)s[h--]=128|127&o}return this._createEncoderBuffer(s)},n.prototype._encodeTime=function(t,e){var i,r=new Date(t);return"gentime"===e?i=[o(r.getFullYear()),o(r.getUTCMonth()+1),o(r.getUTCDate()),o(r.getUTCHours()),o(r.getUTCMinutes()),o(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?i=[o(r.getFullYear()%100),o(r.getUTCMonth()+1),o(r.getUTCDate()),o(r.getUTCHours()),o(r.getUTCMinutes()),o(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(i,"octstr")},n.prototype._encodeNull=function(){return this._createEncoderBuffer("")},n.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!u.isBuffer(t)){var i=t.toArray();!t.sign&&128&i[0]&&i.unshift(0),t=new u(i)}if(u.isBuffer(t)){var r=t.length;0===t.length&&r++;var n=new u(r);return t.copy(n),0===t.length&&(n[0]=0),this._createEncoderBuffer(n)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);for(var r=1,o=t;o>=256;o>>=8)r++;for(var n=new Array(r),o=n.length-1;o>=0;o--)n[o]=255&t,t>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(new u(n))},n.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},n.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},n.prototype._skipDefault=function(t,e,i){var r,n=this._baseState;if(null===n.default)return!1;var o=t.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,e,i).join()),o.length!==n.defaultBuffer.length)return!1;for(r=0;r<o.length;r++)if(o[r]!==n.defaultBuffer[r])return!1;return!0}},function(t,e){function i(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=i,i.equal=function(t,e,i){if(t!=e)throw new Error(i||"Assertion failed: "+t+" != "+e)}},function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e){e.worker={fermat:0,miller:1,prime:2,noCert:3}},function(t,e,i){var r=i(1),n=i(35),o=null;e.seed=function(t){o=new n({hash:r.sha512,entropy:t,nonce:"self-signed",nonceEnc:"utf8"}),e.getBytes=function(t){return o.generate(t)}},e.getByte=function(){return 256*Math.random()|0}},function(t,e,i){var r=i(1),n=(i(6),i(2)),o=i(9);e.sign=function(t,e){var i=(new r.sha512).update(t).digest();i=o.Signature.encode({algorithm:{algorithm:o.SHA512},digest:i},"der");for(var s=e.modulus.byteLength(),h=[0,1];i.length+h.length+1<s;)h.push(255);h.push(0);for(var u=0;u<i.length;u++)h.push(i[u]);i=h;var a=n.mont(e.modulus);return i=new n(i).toRed(a),i=i.redPow(e.privateExponent),i.fromRed().toArray()}},function(t,e,i){try{var r=i(3)}catch(t){var r=i(7)}var n=e,o={"2 5 29 9":"subjectDirectoryAttributes","2 5 29 14":"subjectKeyIdentifier","2 5 29 15":"keyUsage","2 5 29 17":"subjectAlternativeName","2 5 29 18":"issuerAlternativeName","2 5 29 19":"basicConstraints","2 5 29 20":"cRLNumber","2 5 29 21":"reasonCode","2 5 29 24":"invalidityDate","2 5 29 27":"deltaCRLIndicator","2 5 29 28":"issuingDistributionPoint","2 5 29 29":"certificateIssuer","2 5 29 30":"nameConstraints","2 5 29 31":"cRLDistributionPoints","2 5 29 32":"certificatePolicies","2 5 29 33":"policyMappings","2 5 29 35":"authorityKeyIdentifier","2 5 29 36":"policyConstraints","2 5 29 37":"extendedKeyUsage","2 5 29 46":"freshestCRL","2 5 29 54":"inhibitAnyPolicy","1 3 6 1 5 5 7 1 1":"authorityInformationAccess","1 3 6 1 5 5 7 11":"subjectInformationAccess"},s=r.define("CertificateList",function(){this.seq().obj(this.key("tbsCertList").use(d),this.key("signatureAlgorithm").use(h),this.key("signature").bitstr())});n.CertificateList=s;var h=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional().any())});n.AlgorithmIdentifier=h;var u=r.define("Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(a),this.key("signatureAlgorithm").use(h),this.key("signature").bitstr())});n.Certificate=u;var a=r.define("TBSCertificate",function(){this.seq().obj(this.key("version").def("v1").explicit(0).use(f),this.key("serialNumber").int(),this.key("signature").use(h),this.key("issuer").use(v),this.key("validity").use(l),this.key("subject").use(v),this.key("subjectPublicKeyInfo").use(p),this.key("issuerUniqueID").optional().implicit(1).bitstr(),this.key("subjectUniqueID").optional().implicit(2).bitstr(),this.key("extensions").optional().explicit(3).seqof(g))});n.TBSCertificate=a;var f=r.define("Version",function(){this.int({0:"v1",1:"v2",2:"v3"})});n.Version=f;var l=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(c),this.key("notAfter").use(c))});n.Validity=l;var c=r.define("Time",function(){this.choice({utcTime:this.utctime(),genTime:this.gentime()})});n.Time=c;var p=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(h),this.key("subjectPublicKey").bitstr())});n.SubjectPublicKeyInfo=p;var d=r.define("TBSCertList",function(){this.seq().obj(this.key("version").optional().int(),this.key("signature").use(h),this.key("issuer").use(v),this.key("thisUpdate").use(c),this.key("nextUpdate").use(c),this.key("revokedCertificates").optional().seqof(m),this.key("crlExtensions").explicit(0).optional().seqof(g))});n.TBSCertList=d;var m=r.define("RevokedCertificate",function(){this.seq().obj(this.key("userCertificate").use(B),this.key("revocationDate").use(c),this.key("crlEntryExtensions").optional().seqof(g))}),g=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(o),this.key("critical").bool().def(!1),this.key("extnValue").octstr().contains(function(t){var e=jt[t.extnID];return e||r.define("OctString",function(){this.any()})}))});n.Extension=g;var v=r.define("Name",function(){this.choice({rdnSequence:this.use(M)})});n.Name=v;var y=r.define("GeneralName",function(){this.choice({otherName:this.implicit(0).use(w),rfc822Name:this.implicit(1).ia5str(),dNSName:this.implicit(2).ia5str(),directoryName:this.explicit(4).use(v),ediPartyName:this.implicit(5).use(_),uniformResourceIdentifier:this.implicit(6).ia5str(),iPAddress:this.implicit(7).octstr(),registeredID:this.implicit(8).objid()})});n.GeneralName=y;var b=r.define("GeneralNames",function(){this.seqof(y)});n.GeneralNames=b;var w=r.define("AnotherName",function(){this.seq().obj(this.key("type-id").objid(),this.key("value").explicit(0).any())});n.AnotherName=w;var _=r.define("EDIPartyName",function(){this.seq().obj(this.key("nameAssigner").implicit(0).optional().use(R),this.key("partyName").implicit(1).use(R))});n.EDIPartyName=_;var M=r.define("RDNSequence",function(){this.seqof(A)});n.RDNSequence=M;var A=r.define("RelativeDistinguishedName",function(){this.setof(S)});n.RelativeDistinguishedName=A;var S=r.define("AttributeTypeAndValue",function(){this.seq().obj(this.key("type").use(k),this.key("value").use(x))});n.AttributeTypeAndValue=S;var E=r.define("Attribute",function(){this.seq().obj(this.key("type").use(k),this.key("values").setof(x))});n.Attribute=E;var k=r.define("AttributeType",function(){this.objid()});n.AttributeType=k;var x=r.define("AttributeValue",function(){this.any()});n.AttributeValue=x;var R=r.define("DirectoryString",function(){this.choice({teletexString:this.t61str(),printableString:this.printstr(),universalString:this.unistr(),utf8String:this.utf8str(),bmpString:this.bmpstr()})});n.DirectoryString=R;var I=r.define("AuthorityKeyIdentifier",function(){this.seq().obj(this.key("keyIdentifier").implicit(0).optional().use(T),this.key("authorityCertIssuer").implicit(1).optional().use(b),this.key("authorityCertSerialNumber").implicit(2).optional().use(B))});n.AuthorityKeyIdentifier=I;var T=r.define("KeyIdentifier",function(){this.octstr()});n.KeyIdentifier=T;var B=r.define("CertificateSerialNumber",function(){this.int()});n.CertificateSerialNumber=B;var j=r.define("ORAddress",function(){this.seq().obj(this.key("builtInStandardAttributes").use(C),this.key("builtInDomainDefinedAttributes").optional().use(F),this.key("extensionAttributes").optional().use(H))});n.ORAddress=j;var C=r.define("BuiltInStandardAttributes",function(){this.seq().obj(this.key("countryName").optional().use(P),this.key("administrationDomainName").optional().use(N),this.key("networkAddress").implicit(0).optional().use(D),this.key("terminalIdentifier").implicit(1).optional().use(U),this.key("privateDomainName").explicit(2).optional().use(O),this.key("organizationName").implicit(3).optional().use(q),this.key("numericUserIdentifier").implicit(4).optional().use(z),this.key("personalName").implicit(5).optional().use(Y),this.key("organizationalUnitNames").implicit(6).optional().use(K))});n.BuiltInStandardAttributes=C;var P=r.define("CountryName",function(){this.choice({x121DccCode:this.numstr(),iso3166Alpha2Code:this.printstr()})});n.CountryName=P;var N=r.define("AdministrationDomainName",function(){this.choice({numeric:this.numstr(),printable:this.printstr()})});n.AdministrationDomainName=N;var D=r.define("NetworkAddress",function(){this.use(L)});n.NetworkAddress=D;var L=r.define("X121Address",function(){this.numstr()});n.X121Address=L;var U=r.define("TerminalIdentifier",function(){this.printstr()});n.TerminalIdentifier=U;var O=r.define("PrivateDomainName",function(){this.choice({numeric:this.numstr(),printable:this.printstr()})});n.PrivateDomainName=O;var q=r.define("OrganizationName",function(){this.printstr()});n.OrganizationName=q;var z=r.define("NumericUserIdentifier",function(){this.numstr()});n.NumericUserIdentifier=z;var Y=r.define("PersonalName",function(){this.set().obj(this.key("surname").implicit(0).printstr(),this.key("givenName").implicit(1).printstr(),this.key("initials").implicit(2).printstr(),this.key("generationQualifier").implicit(3).printstr())});n.PersonalName=Y;var K=r.define("OrganizationalUnitNames",function(){this.seqof(V)});n.OrganizationalUnitNames=K;var V=r.define("OrganizationalUnitName",function(){this.printstr()});n.OrganizationalUnitName=V;var F=r.define("BuiltInDomainDefinedAttributes",function(){this.seqof(Z)});n.BuiltInDomainDefinedAttributes=F;var Z=r.define("BuiltInDomainDefinedAttribute",function(){this.seq().obj(this.key("type").printstr(),this.key("value").printstr())});n.BuiltInDomainDefinedAttribute=Z;var H=r.define("ExtensionAttributes",function(){this.seqof(G)});n.ExtensionAttributes=H;var G=r.define("ExtensionAttribute",function(){this.seq().obj(this.key("extensionAttributeType").implicit(0).int(),this.key("extensionAttributeValue").any().explicit(1).int())});n.ExtensionAttribute=G;var W=r.define("SubjectKeyIdentifier",function(){this.use(T)});n.SubjectKeyIdentifier=W;var Q=r.define("KeyUsage",function(){this.bitstr()});n.KeyUsage=Q;var $=r.define("CertificatePolicies",function(){this.seqof(J)});n.CertificatePolicies=$;var J=r.define("PolicyInformation",function(){this.seq().obj(this.key("policyIdentifier").use(X),this.key("policyQualifiers").optional().use(tt))});n.PolicyInformation=J;var X=r.define("CertPolicyId",function(){this.objid()});n.CertPolicyId=X;var tt=r.define("PolicyQualifiers",function(){this.seqof(et)});n.PolicyQualifiers=tt;var et=r.define("PolicyQualifierInfo",function(){this.seq().obj(this.key("policyQualifierId").use(it),this.key("qualifier").any())});n.PolicyQualifierInfo=et;var it=r.define("PolicyQualifierId",function(){this.objid()});n.PolicyQualifierId=it;var rt=r.define("PolicyMappings",function(){this.seqof(nt)});n.PolicyMappings=rt;var nt=r.define("PolicyMapping",function(){this.seq().obj(this.key("issuerDomainPolicy").use(X),this.key("subjectDomainPolicy").use(X))});n.PolicyMapping=nt;var ot=r.define("SubjectAlternativeName",function(){this.use(b)});n.SubjectAlternativeName=ot;var st=r.define("IssuerAlternativeName",function(){this.use(b)});n.IssuerAlternativeName=st;var ht=r.define("SubjectDirectoryAttributes",function(){this.seqof(E)});n.SubjectDirectoryAttributes=ht;var ut=r.define("BasicConstraints",function(){this.seq().obj(this.key("cA").bool().def(!1),this.key("pathLenConstraint").optional().int())});n.BasicConstraints=ut;var at=r.define("NameConstraints",function(){this.seq().obj(this.key("permittedSubtrees").implicit(0).optional().use(ft),this.key("excludedSubtrees").implicit(1).optional().use(ft))});n.NameConstraints=at;var ft=r.define("GeneralSubtrees",function(){this.seqof(lt)});n.GeneralSubtrees=ft;var lt=r.define("GeneralSubtree",function(){this.seq().obj(this.key("base").use(y),this.key("minimum").implicit(0).def(0).use(ct),this.key("maximum").implicit(0).optional().use(ct))});n.GeneralSubtree=lt;var ct=r.define("BaseDistance",function(){this.int()});n.BaseDistance=ct;var pt=r.define("PolicyConstraints",function(){this.seq().obj(this.key("requireExplicitPolicy").implicit(0).optional().use(dt),this.key("inhibitPolicyMapping").implicit(1).optional().use(dt))});n.PolicyConstraints=pt;var dt=r.define("SkipCerts",function(){this.int()});n.SkipCerts=dt;var mt=r.define("ExtendedKeyUsage",function(){this.seqof(gt)});n.ExtendedKeyUsage=mt;var gt=r.define("KeyPurposeId",function(){this.objid()});n.KeyPurposeId=gt;var vt=r.define("CRLDistributionPoints",function(){this.seqof(yt)});n.CRLDistributionPoints=vt;var yt=r.define("DistributionPoint",function(){this.seq().obj(this.key("distributionPoint").optional().explicit(0).use(bt),this.key("reasons").optional().implicit(1).use(wt),this.key("cRLIssuer").optional().implicit(2).use(b))});n.DistributionPoint=yt;var bt=r.define("DistributionPointName",function(){this.choice({fullName:this.implicit(0).use(b),nameRelativeToCRLIssuer:this.implicit(1).use(A)})});n.DistributionPointName=bt;var wt=r.define("ReasonFlags",function(){this.bitstr()});n.ReasonFlags=wt;var _t=r.define("InhibitAnyPolicy",function(){this.use(dt)});n.InhibitAnyPolicy=_t;var Mt=r.define("FreshestCRL",function(){this.use(vt)});n.FreshestCRL=Mt;var At=r.define("AuthorityInfoAccessSyntax",function(){this.seqof(St)});n.AuthorityInfoAccessSyntax=At;var St=r.define("AccessDescription",function(){this.seq().obj(this.key("accessMethod").objid(),this.key("accessLocation").use(y))});n.AccessDescription=St;var Et=r.define("SubjectInformationAccess",function(){this.seqof(St)});n.SubjectInformationAccess=Et;var kt=r.define("CRLNumber",function(){this.int()});n.CRLNumber=kt;var xt=r.define("DeltaCRLIndicator",function(){this.use(kt)});n.DeltaCRLIndicator=xt;var Rt=r.define("IssuingDistributionPoint",function(){this.seq().obj(this.key("distributionPoint").explicit(0).optional().use(bt),this.key("onlyContainsUserCerts").implicit(1).def(!1).bool(),this.key("onlyContainsCACerts").implicit(2).def(!1).bool(),this.key("onlySomeReasons").implicit(3).optional().use(wt),this.key("indirectCRL").implicit(4).def(!1).bool(),this.key("onlyContainsAttributeCerts").implicit(5).def(!1).bool())});n.IssuingDistributionPoint=Rt;var It=r.define("ReasonCode",function(){this.enum()});n.ReasonCode=It;var Tt=r.define("InvalidityDate",function(){this.gentime()});n.InvalidityDate=Tt;var Bt=r.define("CertificateIssuer",function(){this.use(b)});n.CertificateIssuer=Bt;var jt={subjectDirectoryAttributes:ht,subjectKeyIdentifier:W,keyUsage:Q,subjectAlternativeName:ot,issuerAlternativeName:st,basicConstraints:ut,cRLNumber:kt,reasonCode:It,invalidityDate:Tt,deltaCRLIndicator:xt,issuingDistributionPoint:Rt,certificateIssuer:Bt,nameConstraints:at,cRLDistributionPoints:vt,certificatePolicies:$,policyMappings:rt,authorityKeyIdentifier:I,policyConstraints:pt,extendedKeyUsage:mt,freshestCRL:Mt,inhibitAnyPolicy:_t,authorityInformationAccess:At,subjectInformationAccess:Et}},function(t,e,i){function r(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}var n=i(3),o=i(0);e.define=function(t,e){return new r(t,e)},r.prototype._createNamed=function(t){var e;try{e=i(44).runInThisContext("(function "+this.name+"(entity) {\n  this._initNamed(entity);\n})")}catch(t){e=function(t){this._initNamed(t)}}return o(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},r.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(n.decoders[t])),this.decoders[t]},r.prototype.decode=function(t,e,i){return this._getDecoder(e).decode(t,i)},r.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(n.encoders[t])),this.encoders[t]},r.prototype.encode=function(t,e,i){return this._getEncoder(e).encode(t,i)}},function(t,e,i){function r(t,e){var i={};this._baseState=i,i.enc=t,i.parent=e||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}var n=i(4).Reporter,o=i(4).EncoderBuffer,s=i(4).DecoderBuffer,h=i(14),u=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],a=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(u),f=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];t.exports=r;var l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];r.prototype.clone=function(){var t=this._baseState,e={};l.forEach(function(i){e[i]=t[i]});var i=new this.constructor(e.parent);return i._baseState=e,i},r.prototype._wrap=function(){var t=this._baseState;a.forEach(function(e){this[e]=function(){var i=new this.constructor(this);return t.children.push(i),i[e].apply(i,arguments)}},this)},r.prototype._init=function(t){var e=this._baseState;h(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),h.equal(e.children.length,1,"Root node can have only one child")},r.prototype._useArgs=function(t){var e=this._baseState,i=t.filter(function(t){return t instanceof this.constructor},this);t=t.filter(function(t){return!(t instanceof this.constructor)},this),0!==i.length&&(h(null===e.children),e.children=i,i.forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(h(null===e.args),e.args=t,e.reverseArgs=t.map(function(t){if("object"!=typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach(function(i){i==(0|i)&&(i|=0);var r=t[i];e[r]=i}),e}))},f.forEach(function(t){r.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}}),u.forEach(function(t){r.prototype[t]=function(){var e=this._baseState,i=Array.prototype.slice.call(arguments);return h(null===e.tag),e.tag=t,this._useArgs(i),this}}),r.prototype.use=function(t){h(t);var e=this._baseState;return h(null===e.use),e.use=t,this},r.prototype.optional=function(){return this._baseState.optional=!0,this},r.prototype.def=function(t){var e=this._baseState;return h(null===e.default),e.default=t,e.optional=!0,this},r.prototype.explicit=function(t){var e=this._baseState;return h(null===e.explicit&&null===e.implicit),e.explicit=t,this},r.prototype.implicit=function(t){var e=this._baseState;return h(null===e.explicit&&null===e.implicit),e.implicit=t,this},r.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},r.prototype.key=function(t){var e=this._baseState;return h(null===e.key),e.key=t,this},r.prototype.any=function(){return this._baseState.any=!0,this},r.prototype.choice=function(t){var e=this._baseState;return h(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map(function(e){return t[e]})),this},r.prototype.contains=function(t){var e=this._baseState;return h(null===e.use),e.contains=t,this},r.prototype._decode=function(t,e){var i=this._baseState;if(null===i.parent)return t.wrapResult(i.children[0]._decode(t,e));var r=i.default,n=!0,o=null;if(null!==i.key&&(o=t.enterKey(i.key)),i.optional){var h=null;if(null!==i.explicit?h=i.explicit:null!==i.implicit?h=i.implicit:null!==i.tag&&(h=i.tag),null!==h||i.any){if(n=this._peekTag(t,h,i.any),t.isError(n))return n}else{var u=t.save();try{null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e),n=!0}catch(t){n=!1}t.restore(u)}}var a;if(i.obj&&n&&(a=t.enterObject()),n){if(null!==i.explicit){var f=this._decodeTag(t,i.explicit);if(t.isError(f))return f;t=f}var l=t.offset;if(null===i.use&&null===i.choice){if(i.any)var u=t.save();var c=this._decodeTag(t,null!==i.implicit?i.implicit:i.tag,i.any);if(t.isError(c))return c;i.any?r=t.raw(u):t=c}if(e&&e.track&&null!==i.tag&&e.track(t.path(),l,t.length,"tagged"),e&&e.track&&null!==i.tag&&e.track(t.path(),t.offset,t.length,"content"),r=i.any?r:null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e),t.isError(r))return r;if(i.any||null!==i.choice||null===i.children||i.children.forEach(function(i){i._decode(t,e)}),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){var p=new s(r);r=this._getUse(i.contains,t._reporterState.obj)._decode(p,e)}}return i.obj&&n&&(r=t.leaveObject(a)),null===i.key||null===r&&n!==!0?null!==o&&t.exitKey(o):t.leaveKey(o,i.key,r),r},r.prototype._decodeGeneric=function(t,e,i){var r=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,r.args[0],i):/str$/.test(t)?this._decodeStr(e,t,i):"objid"===t&&r.args?this._decodeObjid(e,r.args[0],r.args[1],i):"objid"===t?this._decodeObjid(e,null,null,i):"gentime"===t||"utctime"===t?this._decodeTime(e,t,i):"null_"===t?this._decodeNull(e,i):"bool"===t?this._decodeBool(e,i):"objDesc"===t?this._decodeStr(e,t,i):"int"===t||"enum"===t?this._decodeInt(e,r.args&&r.args[0],i):null!==r.use?this._getUse(r.use,e._reporterState.obj)._decode(e,i):e.error("unknown tag: "+t)},r.prototype._getUse=function(t,e){var i=this._baseState;return i.useDecoder=this._use(t,e),h(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},r.prototype._decodeChoice=function(t,e){var i=this._baseState,r=null,n=!1;return Object.keys(i.choice).some(function(o){var s=t.save(),h=i.choice[o];try{var u=h._decode(t,e);if(t.isError(u))return!1;r={type:o,value:u},n=!0}catch(e){return t.restore(s),!1}return!0},this),n?r:t.error("Choice not matched")},r.prototype._createEncoderBuffer=function(t){return new o(t,this.reporter)},r.prototype._encode=function(t,e,i){var r=this._baseState;if(null===r.default||r.default!==t){var n=this._encodeValue(t,e,i);if(void 0!==n&&!this._skipDefault(n,e,i))return n}},r.prototype._encodeValue=function(t,e,i){var r=this._baseState;if(null===r.parent)return r.children[0]._encode(t,e||new n);var o=null;if(this.reporter=e,r.optional&&void 0===t){if(null===r.default)return;t=r.default}var s=null,h=!1;if(r.any)o=this._createEncoderBuffer(t);else if(r.choice)o=this._encodeChoice(t,e);else if(r.contains)s=this._getUse(r.contains,i)._encode(t,e),h=!0;else if(r.children)s=r.children.map(function(i){if("null_"===i._baseState.tag)return i._encode(null,e,t);if(null===i._baseState.key)return e.error("Child should have a key");var r=e.enterKey(i._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");var n=i._encode(t[i._baseState.key],e,t);return e.leaveKey(r),n},this).filter(function(t){return t}),s=this._createEncoderBuffer(s);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return e.error("Too many args for : "+r.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,s=this._createEncoderBuffer(t.map(function(i){var r=this._baseState;return this._getUse(r.args[0],t)._encode(i,e)},u))}else null!==r.use?o=this._getUse(r.use,i)._encode(t,e):(s=this._encodePrimitive(r.tag,t),h=!0);var o;if(!r.any&&null===r.choice){var a=null!==r.implicit?r.implicit:r.tag,f=null===r.implicit?"universal":"context";null===a?null===r.use&&e.error("Tag could be ommited only for .use()"):null===r.use&&(o=this._encodeComposite(a,h,f,s))}return null!==r.explicit&&(o=this._encodeComposite(r.explicit,!1,"context",o)),o},r.prototype._encodeChoice=function(t,e){var i=this._baseState,r=i.choice[t.type];return r||h(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),r._encode(t.value,e)},r.prototype._encodePrimitive=function(t,e){var i=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&i.args)return this._encodeObjid(e,i.reverseArgs[0],i.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,i.args&&i.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},r.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},r.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},function(t,e,i){function r(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function n(t,e){this.path=t,this.rethrow(e)}var o=i(0);e.Reporter=r,r.prototype.isError=function(t){return t instanceof n},r.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},r.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},r.prototype.enterKey=function(t){return this._reporterState.path.push(t)},r.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},r.prototype.leaveKey=function(t,e,i){var r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=i)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},r.prototype.leaveObject=function(t){var e=this._reporterState,i=e.obj;return e.obj=t,i},r.prototype.error=function(t){var e,i=this._reporterState,r=t instanceof n;if(e=r?t:new n(i.path.map(function(t){return"["+JSON.stringify(t)+"]"}).join(""),t.message||t,t.stack),!i.options.partial)throw e;return r||i.errors.push(e),e},r.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},o(n,Error),n.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,n),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,i){var r=i(11);e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=r._reverse(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=r._reverse(e.tag)},function(t,e,i){var r=e;r.der=i(12),r.pem=i(25)},function(t,e,i){function r(t){s.call(this,t),this.enc="pem"}var n=i(0),o=i(5).Buffer,s=i(12);n(r,s),t.exports=r,r.prototype.decode=function(t,e){for(var i=t.toString().split(/[\r\n]+/g),r=e.label.toUpperCase(),n=-1,h=-1,u=0;u<i.length;u++){var a=i[u].match(/^-----(BEGIN|END) ([^-]+)-----$/);if(null!==a&&a[2]===r){if(n!==-1){if("END"!==a[1])break;h=u;break}if("BEGIN"!==a[1])break;n=u}}if(n===-1||h===-1)throw new Error("PEM section not found for: "+r);var f=i.slice(n+1,h).join("");f.replace(/[^a-z0-9\+\/=]+/gi,"");var l=new o(f,"base64");return s.prototype.decode.call(this,l,e)}},function(t,e,i){var r=e;r.der=i(13),r.pem=i(27)},function(t,e,i){function r(t){o.call(this,t),this.enc="pem"}var n=i(0),o=i(13);n(r,o),t.exports=r,r.prototype.encode=function(t,e){for(var i=o.prototype.encode.call(this,t),r=i.toString("base64"),n=["-----BEGIN "+e.label+"-----"],s=0;s<r.length;s+=64)n.push(r.slice(s,s+64));return n.push("-----END "+e.label+"-----"),n.join("\n")}},function(t,e,i){"use strict";function r(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function n(t){return 3*t.length/4-r(t)}function o(t){var e,i,n,o,s,h,u=t.length;s=r(t),h=new l(3*u/4-s),n=s>0?u-4:u;var a=0;for(e=0,i=0;e<n;e+=4,i+=3)o=f[t.charCodeAt(e)]<<18|f[t.charCodeAt(e+1)]<<12|f[t.charCodeAt(e+2)]<<6|f[t.charCodeAt(e+3)],h[a++]=o>>16&255,h[a++]=o>>8&255,h[a++]=255&o;return 2===s?(o=f[t.charCodeAt(e)]<<2|f[t.charCodeAt(e+1)]>>4,h[a++]=255&o):1===s&&(o=f[t.charCodeAt(e)]<<10|f[t.charCodeAt(e+1)]<<4|f[t.charCodeAt(e+2)]>>2,h[a++]=o>>8&255,h[a++]=255&o),h}function s(t){return a[t>>18&63]+a[t>>12&63]+a[t>>6&63]+a[63&t]}function h(t,e,i){for(var r,n=[],o=e;o<i;o+=3)r=(t[o]<<16)+(t[o+1]<<8)+t[o+2],n.push(s(r));return n.join("")}function u(t){for(var e,i=t.length,r=i%3,n="",o=[],s=0,u=i-r;s<u;s+=16383)o.push(h(t,s,s+16383>u?u:s+16383));return 1===r?(e=t[i-1],n+=a[e>>2],n+=a[e<<4&63],n+="=="):2===r&&(e=(t[i-2]<<8)+t[i-1],n+=a[e>>10],n+=a[e>>4&63],n+=a[e<<2&63],n+="="),o.push(n),o.join("")}e.byteLength=n,e.toByteArray=o,e.fromByteArray=u;for(var a=[],f=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,d=c.length;p<d;++p)a[p]=c[p],f[c.charCodeAt(p)]=p;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},function(t,e){function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function n(t){return"number"==typeof t}function o(t){return"object"==typeof t&&null!==t}function s(t){return void 0===t}t.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(t){if(!n(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},i.prototype.emit=function(t){var e,i,n,h,u,a;if(this._events||(this._events={}),"error"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var f=new Error('Uncaught, unspecified "error" event. ('+e+")");throw f.context=e,f}if(i=this._events[t],s(i))return!1;if(r(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:h=Array.prototype.slice.call(arguments,1),i.apply(this,h)}else if(o(i))for(h=Array.prototype.slice.call(arguments,1),a=i.slice(),n=a.length,u=0;u<n;u++)a[u].apply(this,h);return!0},i.prototype.addListener=function(t,e){var n;if(!r(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,r(e.listener)?e.listener:e),this._events[t]?o(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,o(this._events[t])&&!this._events[t].warned&&(n=s(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[t].length>n&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(t,e){function i(){this.removeListener(t,i),n||(n=!0,e.apply(this,arguments))}if(!r(e))throw TypeError("listener must be a function");var n=!1;return i.listener=e,this.on(t,i),this},i.prototype.removeListener=function(t,e){var i,n,s,h;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=this._events[t],s=i.length,n=-1,i===e||r(i.listener)&&i.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(i)){for(h=s;h-- >0;)if(i[h]===e||i[h].listener&&i[h].listener===e){n=h;break}if(n<0)return this;1===i.length?(i.length=0,delete this._events[t]):i.splice(n,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},i.prototype.removeAllListeners=function(t){var e,i;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(i=this._events[t],r(i))this.removeListener(t,i);else if(i)for(;i.length;)this.removeListener(t,i[i.length-1]);return delete this._events[t],this},i.prototype.listeners=function(t){return this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},i.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},i.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,i){function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var n=i(1),o=n.utils,s=o.assert;e.BlockHash=r,r.prototype.update=function(t,e){if(t=o.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var i=t.length%this._delta8;this.pending=t.slice(t.length-i,t.length),0===this.pending.length&&(this.pending=null),t=o.join32(t,0,t.length-i,this.endian);for(var r=0;r<t.length;r+=this._delta32)this._update(t,r,r+this._delta32)}return this},r.prototype.digest=function(t){return this.update(this._pad()),s(null===this.pending),this._digest(t)},r.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,i=e-(t+this.padLength)%e,r=new Array(i+this.padLength);r[0]=128;for(var n=1;n<i;n++)r[n]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[n++]=0;r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=t>>>24&255,r[n++]=t>>>16&255,r[n++]=t>>>8&255,r[n++]=255&t}else{r[n++]=255&t,r[n++]=t>>>8&255,r[n++]=t>>>16&255,r[n++]=t>>>24&255,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0;for(var o=8;o<this.padLength;o++)r[n++]=0}return r}},function(t,e,i){function r(t,e,i){if(!(this instanceof r))return new r(t,e,i);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(o.toArray(e,i))}var n=i(1),o=n.utils,s=o.assert;t.exports=r,r.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),s(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(var e=0;e<t.length;e++)t[e]^=54;this.inner=(new this.Hash).update(t);for(var e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},r.prototype.update=function(t,e){return this.inner.update(t,e),this},r.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},function(t,e,i){function r(){if(!(this instanceof r))return new r;p.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function n(t,e,i,r){return t<=15?e^i^r:t<=31?e&i|~e&r:t<=47?(e|~i)^r:t<=63?e&r|i&~r:e^(i|~r)}function o(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function s(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}var h=i(1),u=h.utils,a=u.rotl32,f=u.sum32,l=u.sum32_3,c=u.sum32_4,p=h.common.BlockHash;u.inherits(r,p),e.ripemd160=r,r.blockSize=512,r.outSize=160,r.hmacStrength=192,r.padLength=64,r.prototype._update=function(t,e){for(var i=this.h[0],r=this.h[1],h=this.h[2],u=this.h[3],p=this.h[4],y=i,b=r,w=h,_=u,M=p,A=0;A<80;A++){var S=f(a(c(i,n(A,r,h,u),t[d[A]+e],o(A)),g[A]),p);i=p,p=u,u=a(h,10),h=r,r=S,S=f(a(c(y,n(79-A,b,w,_),t[m[A]+e],s(A)),v[A]),M),y=M,M=_,_=a(w,10),w=b,b=S}S=l(this.h[1],h,_),this.h[1]=l(this.h[2],u,M),this.h[2]=l(this.h[3],p,y),this.h[3]=l(this.h[4],i,b),this.h[4]=l(this.h[0],r,w),this.h[0]=S},r.prototype._digest=function(t){return"hex"===t?u.toHex32(this.h,"little"):u.split32(this.h,"little")};var d=[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],m=[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],g=[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],v=[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]},function(t,e,i){function r(){if(!(this instanceof r))return new r;H.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=G,this.W=new Array(64)}function n(){if(!(this instanceof n))return new n;r.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}function o(){if(!(this instanceof o))return new o;H.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=W,this.W=new Array(160)}function s(){if(!(this instanceof s))return new s;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}function h(){if(!(this instanceof h))return new h;H.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}function u(t,e,i){return t&e^~t&i}function a(t,e,i){return t&e^t&i^e&i}function f(t,e,i){return t^e^i}function l(t){return B(t,2)^B(t,13)^B(t,22)}function c(t){return B(t,6)^B(t,11)^B(t,25)}function p(t){return B(t,7)^B(t,18)^t>>>3}function d(t){return B(t,17)^B(t,19)^t>>>10}function m(t,e,i,r){return 0===t?u(e,i,r):1===t||3===t?f(e,i,r):2===t?a(e,i,r):void 0}function g(t,e,i,r,n,o){var s=t&i^~t&n;return s<0&&(s+=4294967296),s}function v(t,e,i,r,n,o){var s=e&r^~e&o;return s<0&&(s+=4294967296),s}function y(t,e,i,r,n,o){var s=t&i^t&n^i&n;return s<0&&(s+=4294967296),s}function b(t,e,i,r,n,o){var s=e&r^e&o^r&o;return s<0&&(s+=4294967296),s}function w(t,e){var i=D(t,e,28),r=D(e,t,2),n=D(e,t,7),o=i^r^n;return o<0&&(o+=4294967296),o}function _(t,e){var i=L(t,e,28),r=L(e,t,2),n=L(e,t,7),o=i^r^n;return o<0&&(o+=4294967296),o}function M(t,e){var i=D(t,e,14),r=D(t,e,18),n=D(e,t,9),o=i^r^n;return o<0&&(o+=4294967296),o}function A(t,e){var i=L(t,e,14),r=L(t,e,18),n=L(e,t,9),o=i^r^n;return o<0&&(o+=4294967296),o}function S(t,e){var i=D(t,e,1),r=D(t,e,8),n=U(t,e,7),o=i^r^n;return o<0&&(o+=4294967296),o}function E(t,e){var i=L(t,e,1),r=L(t,e,8),n=O(t,e,7),o=i^r^n;return o<0&&(o+=4294967296),o}function k(t,e){var i=D(t,e,19),r=D(e,t,29),n=U(t,e,6),o=i^r^n;return o<0&&(o+=4294967296),o}function x(t,e){var i=L(t,e,19),r=L(e,t,29),n=O(t,e,6),o=i^r^n;return o<0&&(o+=4294967296),o}var R=i(1),I=R.utils,T=I.assert,B=I.rotr32,j=I.rotl32,C=I.sum32,P=I.sum32_4,N=I.sum32_5,D=I.rotr64_hi,L=I.rotr64_lo,U=I.shr64_hi,O=I.shr64_lo,q=I.sum64,z=I.sum64_hi,Y=I.sum64_lo,K=I.sum64_4_hi,V=I.sum64_4_lo,F=I.sum64_5_hi,Z=I.sum64_5_lo,H=R.common.BlockHash,G=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],Q=[1518500249,1859775393,2400959708,3395469782];I.inherits(r,H),e.sha256=r,r.blockSize=512,r.outSize=256,r.hmacStrength=192,r.padLength=64,r.prototype._update=function(t,e){for(var i=this.W,r=0;r<16;r++)i[r]=t[e+r];for(;r<i.length;r++)i[r]=P(d(i[r-2]),i[r-7],p(i[r-15]),i[r-16]);var n=this.h[0],o=this.h[1],s=this.h[2],h=this.h[3],f=this.h[4],m=this.h[5],g=this.h[6],v=this.h[7];T(this.k.length===i.length);for(var r=0;r<i.length;r++){var y=N(v,c(f),u(f,m,g),this.k[r],i[r]),b=C(l(n),a(n,o,s));v=g,g=m,m=f,f=C(h,y),h=s,s=o,o=n,n=C(y,b)}this.h[0]=C(this.h[0],n),this.h[1]=C(this.h[1],o),this.h[2]=C(this.h[2],s),this.h[3]=C(this.h[3],h),this.h[4]=C(this.h[4],f),this.h[5]=C(this.h[5],m),this.h[6]=C(this.h[6],g),this.h[7]=C(this.h[7],v)},r.prototype._digest=function(t){return"hex"===t?I.toHex32(this.h,"big"):I.split32(this.h,"big")},I.inherits(n,r),e.sha224=n,n.blockSize=512,n.outSize=224,n.hmacStrength=192,n.padLength=64,n.prototype._digest=function(t){return"hex"===t?I.toHex32(this.h.slice(0,7),"big"):I.split32(this.h.slice(0,7),"big")},I.inherits(o,H),e.sha512=o,o.blockSize=1024,o.outSize=512,o.hmacStrength=192,o.padLength=128,o.prototype._prepareBlock=function(t,e){for(var i=this.W,r=0;r<32;r++)i[r]=t[e+r];for(;r<i.length;r+=2){var n=k(i[r-4],i[r-3]),o=x(i[r-4],i[r-3]),s=i[r-14],h=i[r-13],u=S(i[r-30],i[r-29]),a=E(i[r-30],i[r-29]),f=i[r-32],l=i[r-31];i[r]=K(n,o,s,h,u,a,f,l),i[r+1]=V(n,o,s,h,u,a,f,l)}},o.prototype._update=function(t,e){this._prepareBlock(t,e);var i=this.W,r=this.h[0],n=this.h[1],o=this.h[2],s=this.h[3],h=this.h[4],u=this.h[5],a=this.h[6],f=this.h[7],l=this.h[8],c=this.h[9],p=this.h[10],d=this.h[11],m=this.h[12],S=this.h[13],E=this.h[14],k=this.h[15];T(this.k.length===i.length);for(var x=0;x<i.length;x+=2){var R=E,I=k,B=M(l,c),j=A(l,c),C=g(l,c,p,d,m,S),P=v(l,c,p,d,m,S),N=this.k[x],D=this.k[x+1],L=i[x],U=i[x+1],O=F(R,I,B,j,C,P,N,D,L,U),K=Z(R,I,B,j,C,P,N,D,L,U),R=w(r,n),I=_(r,n),B=y(r,n,o,s,h,u),j=b(r,n,o,s,h,u),V=z(R,I,B,j),H=Y(R,I,B,j);E=m,k=S,m=p,S=d,p=l,d=c,l=z(a,f,O,K),c=Y(f,f,O,K),a=h,f=u,h=o,u=s,o=r,s=n,r=z(O,K,V,H),n=Y(O,K,V,H)}q(this.h,0,r,n),q(this.h,2,o,s),q(this.h,4,h,u),q(this.h,6,a,f),q(this.h,8,l,c),q(this.h,10,p,d),q(this.h,12,m,S),q(this.h,14,E,k)},o.prototype._digest=function(t){return"hex"===t?I.toHex32(this.h,"big"):I.split32(this.h,"big")},I.inherits(s,o),e.sha384=s,s.blockSize=1024,s.outSize=384,s.hmacStrength=192,s.padLength=128,s.prototype._digest=function(t){return"hex"===t?I.toHex32(this.h.slice(0,12),"big"):I.split32(this.h.slice(0,12),"big")},I.inherits(h,H),e.sha1=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(t,e){for(var i=this.W,r=0;r<16;r++)i[r]=t[e+r];for(;r<i.length;r++)i[r]=j(i[r-3]^i[r-8]^i[r-14]^i[r-16],1);for(var n=this.h[0],o=this.h[1],s=this.h[2],h=this.h[3],u=this.h[4],r=0;r<i.length;r++){var a=~~(r/20),f=N(j(n,5),m(a,o,s,h),u,i[r],Q[a]);u=h,h=s,s=j(o,30),o=n,n=f}this.h[0]=C(this.h[0],n),this.h[1]=C(this.h[1],o),this.h[2]=C(this.h[2],s),this.h[3]=C(this.h[3],h),this.h[4]=C(this.h[4],u)},h.prototype._digest=function(t){return"hex"===t?I.toHex32(this.h,"big"):I.split32(this.h,"big")}},function(t,e,i){function r(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i=[];if("string"==typeof t)if(e){if("hex"===e){t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!=0&&(t="0"+t);for(var r=0;r<t.length;r+=2)i.push(parseInt(t[r]+t[r+1],16))}}else for(var r=0;r<t.length;r++){var n=t.charCodeAt(r),o=n>>8,s=255&n;o?i.push(o,s):i.push(s)}else for(var r=0;r<t.length;r++)i[r]=0|t[r];return i}function n(t){for(var e="",i=0;i<t.length;i++)e+=h(t[i].toString(16));return e}function o(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function s(t,e){for(var i="",r=0;r<t.length;r++){var n=t[r];"little"===e&&(n=o(n)),i+=u(n.toString(16))}return i}function h(t){return 1===t.length?"0"+t:t}function u(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}function a(t,e,i,r){var n=i-e;v(n%4==0);for(var o=new Array(n/4),s=0,h=e;s<o.length;s++,h+=4){var u;u="big"===r?t[h]<<24|t[h+1]<<16|t[h+2]<<8|t[h+3]:t[h+3]<<24|t[h+2]<<16|t[h+1]<<8|t[h],o[s]=u>>>0}return o}function f(t,e){for(var i=new Array(4*t.length),r=0,n=0;r<t.length;r++,n+=4){var o=t[r];"big"===e?(i[n]=o>>>24,i[n+1]=o>>>16&255,i[n+2]=o>>>8&255,i[n+3]=255&o):(i[n+3]=o>>>24,i[n+2]=o>>>16&255,i[n+1]=o>>>8&255,i[n]=255&o)}return i}function l(t,e){return t>>>e|t<<32-e}function c(t,e){return t<<e|t>>>32-e}function p(t,e){return t+e>>>0}function d(t,e,i){return t+e+i>>>0}function m(t,e,i,r){return t+e+i+r>>>0}function g(t,e,i,r,n){return t+e+i+r+n>>>0}function v(t,e){if(!t)throw new Error(e||"Assertion failed")}function y(t,e,i,r){var n=t[e],o=t[e+1],s=r+o>>>0,h=(s<r?1:0)+i+n;t[e]=h>>>0,t[e+1]=s}function b(t,e,i,r){return(e+r>>>0<e?1:0)+t+i>>>0}function w(t,e,i,r){return e+r>>>0}function _(t,e,i,r,n,o,s,h){var u=0,a=e;return a=a+r>>>0,u+=a<e?1:0,a=a+o>>>0,u+=a<o?1:0,a=a+h>>>0,u+=a<h?1:0,t+i+n+s+u>>>0}function M(t,e,i,r,n,o,s,h){return e+r+o+h>>>0}function A(t,e,i,r,n,o,s,h,u,a){var f=0,l=e;return l=l+r>>>0,f+=l<e?1:0,l=l+o>>>0,f+=l<o?1:0,l=l+h>>>0,f+=l<h?1:0,l=l+a>>>0,f+=l<a?1:0,t+i+n+s+u+f>>>0}function S(t,e,i,r,n,o,s,h,u,a){return e+r+o+h+a>>>0}function E(t,e,i){return(e<<32-i|t>>>i)>>>0}function k(t,e,i){return(t<<32-i|e>>>i)>>>0}function x(t,e,i){return t>>>i}function R(t,e,i){return(t<<32-i|e>>>i)>>>0}var I=e,T=i(0);I.toArray=r,I.toHex=n,I.htonl=o,I.toHex32=s,I.zero2=h,I.zero8=u,I.join32=a,I.split32=f,I.rotr32=l,I.rotl32=c,I.sum32=p,I.sum32_3=d,I.sum32_4=m,I.sum32_5=g,I.assert=v,I.inherits=T,e.sum64=y,e.sum64_hi=b,e.sum64_lo=w,e.sum64_4_hi=_,e.sum64_4_lo=M,e.sum64_5_hi=A,e.sum64_5_lo=S,e.rotr64_hi=E,e.rotr64_lo=k,e.shr64_hi=x,e.shr64_lo=R},function(t,e,i){"use strict";function r(t){if(!(this instanceof r))return new r(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this.reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=o.toArray(t.entropy,t.entropyEnc||"hex"),i=o.toArray(t.nonce,t.nonceEnc||"hex"),n=o.toArray(t.pers,t.persEnc||"hex");s(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,i,n)}var n=i(1),o=i(40),s=i(14);t.exports=r,r.prototype._init=function(t,e,i){var r=t.concat(e).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(r),this.reseed=1,this.reseedInterval=281474976710656},r.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},r.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},r.prototype.reseed=function(t,e,i,r){"string"!=typeof e&&(r=i,i=e,e=null),t=o.toArray(t,e),i=o.toArray(i,r),s(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(i||[])),this.reseed=1},r.prototype.generate=function(t,e,i,r){if(this.reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=i,i=e,e=null),i&&(i=o.toArray(i,r||"hex"),this._update(i));for(var n=[];n.length<t;)this.V=this._hmac().update(this.V).digest(),n=n.concat(this.V);var s=n.slice(0,t);return this._update(i),this.reseed++,o.encode(s,e)}},function(t,e){e.read=function(t,e,i,r,n){var o,s,h=8*n-r-1,u=(1<<h)-1,a=u>>1,f=-7,l=i?n-1:0,c=i?-1:1,p=t[e+l];for(l+=c,o=p&(1<<-f)-1,p>>=-f,f+=h;f>0;o=256*o+t[e+l],l+=c,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=r;f>0;s=256*s+t[e+l],l+=c,f-=8);if(0===o)o=1-a;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),o-=a}return(p?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,i,r,n,o){var s,h,u,a=8*o-n-1,f=(1<<a)-1,l=f>>1,c=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(h=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),e+=s+l>=1?c/u:c*Math.pow(2,1-l),e*u>=2&&(s++,u/=2),s+l>=f?(h=0,s=f):s+l>=1?(h=(e*u-1)*Math.pow(2,n),s+=l):(h=e*Math.pow(2,l-1)*Math.pow(2,n),s=0));n>=8;t[i+p]=255&h,p+=d,h/=256,n-=8);for(s=s<<n|h,a+=n;a>0;t[i+p]=255&s,p+=d,s/=256,a-=8);t[i+p-d]|=128*m}},function(t,e){var i=[].indexOf;t.exports=function(t,e){if(i)return t.indexOf(e);for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}},function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},function(t,e,i){function r(t){this.rand=t||new o.Rand}var n=i(2),o=i(6);t.exports=r,r.create=function(t){return new r(t)},r.prototype._rand=function(t){var e=t.bitLength(),i=this.rand.generate(Math.ceil(e/8));i[0]|=3;var r=7&e;return 0!==r&&(i[i.length-1]>>=7-r),new n(i)},r.prototype.test=function(t,e,i){var r=t.bitLength(),o=n.mont(t),s=new n(1).toRed(o);e||(e=Math.max(1,r/48|0));for(var h=t.subn(1),u=h.subn(1),a=0;!h.testn(a);a++);for(var f=t.shrn(a),l=h.toRed(o);e>0;e--){var c=this._rand(u);i&&i(c);var p=c.toRed(o).redPow(f);if(0!==p.cmp(s)&&0!==p.cmp(l)){for(var d=1;d<a;d++){if(p=p.redSqr(),0===p.cmp(s))return!1;if(0===p.cmp(l))break}if(d===a)return!1}}return!0},r.prototype.getDivisor=function(t,e){var i=t.bitLength(),r=n.mont(t),o=new n(1).toRed(r);e||(e=Math.max(1,i/48|0));for(var s=t.subn(1),h=s.subn(1),u=0;!s.testn(u);u++);for(var a=t.shrn(u),f=s.toRed(r);e>0;e--){var l=this._rand(h),c=t.gcd(l);if(0!==c.cmpn(1))return c;var p=l.toRed(r).redPow(a);if(0!==p.cmp(o)&&0!==p.cmp(f)){for(var d=1;d<u;d++){if(p=p.redSqr(),0===p.cmp(o))return p.fromRed().subn(1).gcd(t);if(0===p.cmp(f))break}if(d===u)return p=p.redSqr(),p.fromRed().subn(1).gcd(t)}}return!1}},function(t,e,i){"use strict";function r(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i=[];if("string"!=typeof t){for(var r=0;r<t.length;r++)i[r]=0|t[r];return i}if("hex"===e){t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!=0&&(t="0"+t);for(var r=0;r<t.length;r+=2)i.push(parseInt(t[r]+t[r+1],16))}else for(var r=0;r<t.length;r++){var n=t.charCodeAt(r),o=n>>8,s=255&n;o?i.push(o,s):i.push(s)}return i}function n(t){return 1===t.length?"0"+t:t}function o(t){for(var e="",i=0;i<t.length;i++)e+=n(t[i].toString(16));return e}var s=e;s.toArray=r,s.zero2=n,s.toHex=o,s.encode=function(t,e){return"hex"===e?o(t):t}},function(t,e,i){"use strict";function r(t){this.options=t||{},this.mr=n.create(this.options["miller-rabin"]),this.sieveLimit=this.options.sieveLimit||1048576}var n=i(39),o=i(2);t.exports=r,r.create=function(t){return new r(t)},r.prototype.test=function(t,e){return!!this.simpleSieve(t)&&(!!this.fermatTest(t)&&!!this.mr.test(t,e))};var s=null;r.prototype._getPrimes=function(){if(null!==s)return s;var t=this.sieveLimit,e=[];e[0]=2;for(var i=1,r=3;r<t;r+=2){for(var n=Math.ceil(Math.sqrt(r)),o=0;o<i&&e[o]<=n&&r%e[o]!=0;o++);i!==o&&e[o]<=n||(e[i++]=r)}return s=e,e},r.prototype.simpleSieve=function(t){for(var e=this._getPrimes(),i=0;i<e.length;i++)if(0===t.modn(e[i]))return!1;return!0},r.prototype.fermatTest=function(t){var e=o.mont(t);return 0===new o(2).toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}},function(t,e){function i(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function n(t){if(f===setTimeout)return setTimeout(t,0);if((f===i||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function o(t){if(l===clearTimeout)return clearTimeout(t);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function s(){m&&p&&(m=!1,p.length?d=p.concat(d):g=-1,d.length&&h())}function h(){if(!m){var t=n(s);m=!0;for(var e=d.length;e;){for(p=d,d=[];++g<e;)p&&p[g].run();g=-1,e=d.length}p=null,m=!1,o(t)}}function u(t,e){this.fun=t,this.array=e}function a(){}var f,l,c=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:i}catch(t){f=i}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(t){l=r}}();var p,d=[],m=!1,g=-1;c.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];d.push(new u(t,e)),1!==d.length||m||n(h)},u.prototype.run=function(){this.fun.apply(null,this.array)},c.title="browser",c.browser=!0,c.env={},c.argv=[],c.version="",c.versions={},c.on=a,c.addListener=a,c.once=a,c.off=a,c.removeListener=a,c.removeAllListeners=a,c.emit=a,c.binding=function(t){throw new Error("process.binding is not supported")},c.cwd=function(){return"/"},c.chdir=function(t){throw new Error("process.chdir is not supported")},c.umask=function(){return 0}},function(t,e,i){(function(t,e){!function(t,i){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];var r={callback:t,args:e};return a[u]=r,h(u),u++}function n(t){delete a[t]}function o(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(i,r)}}function s(t){if(f)setTimeout(s,0,t);else{var e=a[t];if(e){f=!0;try{o(e)}finally{n(t),f=!1}}}}if(!t.setImmediate){var h,u=1,a={},f=!1,l=t.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(t);c=c&&c.setTimeout?c:t,"[object process]"==={}.toString.call(t.process)?function(){h=function(t){e.nextTick(function(){s(t)})}}():function(){if(t.postMessage&&!t.importScripts){var e=!0,i=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=i,e}}()?function(){var e="setImmediate$"+Math.random()+"$",i=function(i){i.source===t&&"string"==typeof i.data&&0===i.data.indexOf(e)&&s(+i.data.slice(e.length))};t.addEventListener?t.addEventListener("message",i,!1):t.attachEvent("onmessage",i),h=function(i){t.postMessage(e+i,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){s(t.data)},h=function(e){t.port2.postMessage(e)}}():l&&"onreadystatechange"in l.createElement("script")?function(){var t=l.documentElement;h=function(e){var i=l.createElement("script");i.onreadystatechange=function(){s(e),i.onreadystatechange=null,t.removeChild(i),i=null},t.appendChild(i)}}():function(){h=function(t){setTimeout(s,0,t)}}(),c.setImmediate=r,c.clearImmediate=n}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,i(15),i(42))},function(module,exports,__webpack_require__){function Context(){}var indexOf=__webpack_require__(37),Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var i in t)e.push(i);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var i=0;i<t.length;i++)e(t[i],i,t)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(t,e,i){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:i})}}catch(t){return function(t,e,i){t[e]=i}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];Context.prototype={};var Script=exports.Script=function(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var i=e.contentWindow,r=i.eval,n=i.execScript;!r&&n&&(n.call(i,"null"),r=i.eval),forEach(Object_keys(t),function(e){i[e]=t[e]}),forEach(globals,function(e){t[e]&&(i[e]=t[e])});var o=Object_keys(i),s=r.call(i,this.code);return forEach(Object_keys(i),function(e){(e in t||indexOf(o,e)===-1)&&(t[e]=i[e])}),forEach(globals,function(e){e in t||defineProp(t,e,i[e])}),document.body.removeChild(e),s},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),i=this.runInContext(e);return forEach(Object_keys(e),function(i){t[i]=e[i]}),i},forEach(Object_keys(Script.prototype),function(t){exports[t]=Script[t]=function(e){var i=Script(e);return i[t].apply(i,[].slice.call(arguments,1))}}),exports.createScript=function(t){return exports.Script(t)},exports.createContext=Script.createContext=function(t){var e=new Context;return"object"==typeof t&&forEach(Object_keys(t),function(i){e[i]=t[i]}),e}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){(function(t){function e(){var t=Date.now();n.getPrime(1024,function(i,r){var n=Date.now();o(n-t),--h>0&&e()})}var r=i(17),n=i(7).create({prng:r});i(2),i(16);r.seed(new Uint8Array(32));var o="object"==typeof console?console.log.bind(console):print,s=[];t=function(t){s.push(t)},setTimeout=t;var h=8;for(e();s.length;)s.shift()()}).call(e,i(8).setImmediate)},function(t,e){}]);