From 7422ecbf81e34c1cb73469baa618e1b77a422873 Mon Sep 17 00:00:00 2001 From: viktor Date: Tue, 15 Aug 2017 17:34:25 +0300 Subject: [PATCH] web3 update to v0.19 --- assets/javascripts/vendor/web3.js | 6 +++++- index.html | 2 +- package.json | 3 +-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/assets/javascripts/vendor/web3.js b/assets/javascripts/vendor/web3.js index 425c3fb..ce94fe5 100755 --- a/assets/javascripts/vendor/web3.js +++ b/assets/javascripts/vendor/web3.js @@ -1 +1,5 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["web3.js"]=t():e["web3.js"]=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=329)}([function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(107),o=r(a);t.default=function(){function e(e,t){for(var n=0;n>>2]>>>24-o%4*8&255;t[r+o>>>2]|=s<<24-(r+o)%4*8}else for(var o=0;o>>2]=n[o>>>2];return this.sigBytes+=a,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],a=function(t){var t=t,n=987654321,r=4294967295;return function(){n=36969*(65535&n)+(n>>16)&r,t=18e3*(65535&t)+(t>>16)&r;var a=(n<<16)+t&r;return a/=4294967296,(a+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-a%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new s.init(n,t/2)}},u=i.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],a=0;a>>2]>>>24-a%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new s.init(n,t)}},d=i.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},l=a.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,a=n.sigBytes,o=this.blockSize,i=4*o,c=a/i;c=t?e.ceil(c):e.max((0|c)-this._minBufferSize,0);var u=c*o,d=e.min(4*u,a);if(u){for(var l=0;l>>2];e.sigBytes-=t}},y=(r.BlockCipher=l.extend({cfg:l.cfg.extend({mode:h,padding:b}),reset:function(){l.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var r=n.createEncryptor;else{var r=n.createDecryptor;this._minBufferSize=1}this._mode=r.call(n,this,t&&t.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),g=n.format={},v=g.OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;if(n)var r=o.create([1398893684,1701076831]).concat(n).concat(t);else var r=t;return r.toString(c)},parse:function(e){var t=c.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var r=o.create(n.slice(2,4));n.splice(0,4),t.sigBytes-=16}return y.create({ciphertext:t,salt:r})}},x=r.SerializableCipher=a.extend({cfg:a.extend({format:v}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var a=e.createEncryptor(n,r),o=a.finalize(t),s=a.cfg;return y.create({ciphertext:o,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=n.kdf={},_=w.OpenSSL={execute:function(e,t,n,r){r||(r=o.random(8));var a=d.create({keySize:t+n}).compute(e,r),s=o.create(a.words.slice(t),4*n);return a.sigBytes=4*t,y.create({key:a,iv:s,salt:r})}},k=r.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:_}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var a=r.kdf.execute(n,e.keySize,e.ivSize);r.iv=a.iv;var o=x.encrypt.call(this,e,t,a.key,r);return o.mixIn(a),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var a=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=a.iv,x.decrypt.call(this,e,t,a.key,r)}})}()})},function(e,t,n){var r=n(46),a=n(43),o=n(70),s={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"},i=function(e,t,n){return new Array(t-e.length+1).join(n?n:"0")+e},c=function(e,t,n){return e+new Array(t-e.length+1).join(n?n:"0")},u=function(e){var t="",n=0,r=e.length;for("0x"===e.substring(0,2)&&(n=2);n7&&e[n].toUpperCase()!==e[n]||parseInt(t[n],16)<=7&&e[n].toLowerCase()!==e[n])return!1;return!0},T=function(e){if(void 0===e)return"";e=e.toLowerCase().replace("0x","");for(var t=a(e),n="0x",r=0;r7?n+=e[r].toUpperCase():n+=e[r];return n},C=function(e){return A(e)?e:/^[0-9a-f]{40}$/.test(e)?"0x"+e:"0x"+i(g(e).substr(2),40)},D=function(e){return e instanceof r||e&&e.constructor&&"BigNumber"===e.constructor.name},P=function(e){return"string"==typeof e||e&&e.constructor&&"String"===e.constructor.name},O=function(e){return"function"==typeof e},F=function(e){return"object"==typeof e},R=function(e){return"boolean"==typeof e},I=function(e){return e instanceof Array},N=function(e){try{return!!JSON.parse(e)}catch(e){return!1}};e.exports={padLeft:i,padRight:c,toHex:g,toDecimal:b,fromDecimal:y,toUtf8:u,toAscii:d,fromUtf8:l,fromAscii:f,transformToFullName:p,extractDisplayName:h,extractTypeName:m,toWei:w,fromWei:x,toBigNumber:_,toTwosComplement:k,toAddress:C,isBigNumber:D,isStrictAddress:A,isAddress:B,isChecksumAddress:S,toChecksumAddress:T,isFunction:O,isString:P,isObject:F,isBoolean:R,isArray:I,isJson:N}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},,function(e,t,n){var r=n(46),a=n(5),o=n(66),s=n(133),i=function(e){r.config(o.ETH_BIGNUMBER_ROUNDING_MODE);var t=a.padLeft(a.toTwosComplement(e).round().toString(16),64);return new s(t)},c=function(e){var t=a.toHex(e).substr(2),n=Math.floor((t.length+63)/64);return t=a.padRight(t,64*n),new s(t)},u=function(e){var t=a.toHex(e).substr(2),n=t.length/2,r=Math.floor((t.length+63)/64);return t=a.padRight(t,64*r),new s(i(n).value+t)},d=function(e){var t=a.fromUtf8(e).substr(2),n=t.length/2,r=Math.floor((t.length+63)/64);return t=a.padRight(t,64*r),new s(i(n).value+t)},l=function(e){return new s("000000000000000000000000000000000000000000000000000000000000000"+(e?"1":"0"))},f=function(e){return i(new r(e).times(new r(2).pow(128)))},p=function(e){return"1"===new r(e.substr(0,1),16).toString(2).substr(0,1)},h=function(e){var t=e.staticPart()||"0";return p(t)?new r(t,16).minus(new r("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16)).minus(1):new r(t,16)},m=function(e){var t=e.staticPart()||"0";return new r(t,16)},b=function(e){return h(e).dividedBy(new r(2).pow(128))},y=function(e){return m(e).dividedBy(new r(2).pow(128))},g=function(e){return"0000000000000000000000000000000000000000000000000000000000000001"===e.staticPart()},v=function(e){return"0x"+e.staticPart()},x=function(e){var t=2*new r(e.dynamicPart().slice(0,64),16).toNumber();return"0x"+e.dynamicPart().substr(64,t)},w=function(e){var t=2*new r(e.dynamicPart().slice(0,64),16).toNumber();return a.toUtf8(e.dynamicPart().substr(64,t))},_=function(e){var t=e.staticPart();return"0x"+t.slice(t.length-40,t.length)};e.exports={formatInputInt:i,formatInputBytes:c,formatInputDynamicBytes:u,formatInputString:d,formatInputBool:l,formatInputReal:f,formatOutputInt:h,formatOutputUInt:m,formatOutputReal:b,formatOutputUReal:y,formatOutputBool:g,formatOutputBytes:v,formatOutputDynamicBytes:x,formatOutputString:w,formatOutputAddress:_}},function(e,t,n){e.exports=!n(16)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(6),a=n(3),o=n(32),s=n(18),i="prototype",c=function(e,t,n){var u,d,l,f=e&c.F,p=e&c.G,h=e&c.S,m=e&c.P,b=e&c.B,y=e&c.W,g=p?a:a[t]||(a[t]={}),v=g[i],x=p?r:h?r[t]:(r[t]||{})[i];p&&(n=t);for(u in n)(d=!f&&x&&void 0!==x[u])&&u in g||(l=d?x[u]:n[u],g[u]=p&&"function"!=typeof x[u]?n[u]:b&&d?o(l,r):y&&x[u]==l?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[i]=e[i],t}(l):m&&"function"==typeof l?o(Function.call,l):l,m&&((g.virtual||(g.virtual={}))[u]=l,e&c.R&&v&&!v[u]&&s(v,u,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){var r=n(19);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(11),a=n(81),o=n(61),s=Object.defineProperty;t.f=n(9)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),a)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(82),a=n(47);e.exports=function(e){return r(a(e))}},function(e,t,n){var r=n(8),a=n(133),o=function(e){this._inputFormatter=e.inputFormatter,this._outputFormatter=e.outputFormatter};o.prototype.isType=function(e){throw"this method should be overrwritten for type "+e},o.prototype.staticPartLength=function(e){throw"this method should be overrwritten for type: "+e},o.prototype.isDynamicArray=function(e){var t=this.nestedTypes(e);return!!t&&!t[t.length-1].match(/[0-9]{1,}/g)},o.prototype.isStaticArray=function(e){var t=this.nestedTypes(e);return!!t&&!!t[t.length-1].match(/[0-9]{1,}/g)},o.prototype.staticArrayLength=function(e){var t=this.nestedTypes(e);return t?parseInt(t[t.length-1].match(/[0-9]{1,}/g)||1):1},o.prototype.nestedName=function(e){var t=this.nestedTypes(e);return t?e.substr(0,e.length-t[t.length-1].length):e},o.prototype.isDynamicType=function(){return!1},o.prototype.nestedTypes=function(e){return e.match(/(\[[0-9]*\])/g)},o.prototype.encode=function(e,t){var n=this;return this.isDynamicArray(t)?function(){var a=e.length,o=n.nestedName(t),s=[];return s.push(r.formatInputInt(a).encode()),e.forEach(function(e){s.push(n.encode(e,o))}),s}():this.isStaticArray(t)?function(){for(var r=n.staticArrayLength(t),a=n.nestedName(t),o=[],s=0;s>>6-s%4*2;r[o>>>2]|=(i|c)<<24-o%4*8,o++}return a.create(r,o)}var n=e,r=n.lib,a=r.WordArray,o=n.enc;o.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var a=[],o=0;o>>2]>>>24-o%4*8&255,i=t[o+1>>>2]>>>24-(o+1)%4*8&255,c=t[o+2>>>2]>>>24-(o+2)%4*8&255,u=s<<16|i<<8|c,d=0;d<4&&o+.75*d>>6*(3-d)&63));var l=r.charAt(64);if(l)for(;a.length%4;)a.push(l);return a.join("")},parse:function(e){var n=e.length,r=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var o=0;o>>32-o)+t}function r(e,t,n,r,a,o,s){var i=e+(t&r|n&~r)+a+s;return(i<>>32-o)+t}function a(e,t,n,r,a,o,s){var i=e+(t^n^r)+a+s;return(i<>>32-o)+t}function o(e,t,n,r,a,o,s){var i=e+(n^(t|~r))+a+s;return(i<>>32-o)+t}var s=e,i=s.lib,c=i.WordArray,u=i.Hasher,d=s.algo,l=[];!function(){for(var e=0;e<64;e++)l[e]=4294967296*t.abs(t.sin(e+1))|0}();var f=d.MD5=u.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var s=0;s<16;s++){var i=t+s,c=e[i];e[i]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}var u=this._hash.words,d=e[t+0],f=e[t+1],p=e[t+2],h=e[t+3],m=e[t+4],b=e[t+5],y=e[t+6],g=e[t+7],v=e[t+8],x=e[t+9],w=e[t+10],_=e[t+11],k=e[t+12],A=e[t+13],B=e[t+14],S=e[t+15],T=u[0],C=u[1],D=u[2],P=u[3];T=n(T,C,D,P,d,7,l[0]),P=n(P,T,C,D,f,12,l[1]),D=n(D,P,T,C,p,17,l[2]),C=n(C,D,P,T,h,22,l[3]),T=n(T,C,D,P,m,7,l[4]),P=n(P,T,C,D,b,12,l[5]),D=n(D,P,T,C,y,17,l[6]),C=n(C,D,P,T,g,22,l[7]),T=n(T,C,D,P,v,7,l[8]),P=n(P,T,C,D,x,12,l[9]),D=n(D,P,T,C,w,17,l[10]),C=n(C,D,P,T,_,22,l[11]),T=n(T,C,D,P,k,7,l[12]),P=n(P,T,C,D,A,12,l[13]),D=n(D,P,T,C,B,17,l[14]),C=n(C,D,P,T,S,22,l[15]),T=r(T,C,D,P,f,5,l[16]),P=r(P,T,C,D,y,9,l[17]),D=r(D,P,T,C,_,14,l[18]),C=r(C,D,P,T,d,20,l[19]),T=r(T,C,D,P,b,5,l[20]),P=r(P,T,C,D,w,9,l[21]),D=r(D,P,T,C,S,14,l[22]),C=r(C,D,P,T,m,20,l[23]),T=r(T,C,D,P,x,5,l[24]),P=r(P,T,C,D,B,9,l[25]),D=r(D,P,T,C,h,14,l[26]),C=r(C,D,P,T,v,20,l[27]),T=r(T,C,D,P,A,5,l[28]),P=r(P,T,C,D,p,9,l[29]),D=r(D,P,T,C,g,14,l[30]),C=r(C,D,P,T,k,20,l[31]),T=a(T,C,D,P,b,4,l[32]),P=a(P,T,C,D,v,11,l[33]),D=a(D,P,T,C,_,16,l[34]),C=a(C,D,P,T,B,23,l[35]),T=a(T,C,D,P,f,4,l[36]),P=a(P,T,C,D,m,11,l[37]),D=a(D,P,T,C,g,16,l[38]),C=a(C,D,P,T,w,23,l[39]),T=a(T,C,D,P,A,4,l[40]),P=a(P,T,C,D,d,11,l[41]),D=a(D,P,T,C,h,16,l[42]),C=a(C,D,P,T,y,23,l[43]),T=a(T,C,D,P,x,4,l[44]),P=a(P,T,C,D,k,11,l[45]),D=a(D,P,T,C,S,16,l[46]),C=a(C,D,P,T,p,23,l[47]),T=o(T,C,D,P,d,6,l[48]),P=o(P,T,C,D,g,10,l[49]),D=o(D,P,T,C,B,15,l[50]),C=o(C,D,P,T,b,21,l[51]),T=o(T,C,D,P,k,6,l[52]),P=o(P,T,C,D,h,10,l[53]),D=o(D,P,T,C,w,15,l[54]),C=o(C,D,P,T,f,21,l[55]),T=o(T,C,D,P,v,6,l[56]),P=o(P,T,C,D,S,10,l[57]),D=o(D,P,T,C,y,15,l[58]),C=o(C,D,P,T,A,21,l[59]),T=o(T,C,D,P,m,6,l[60]),P=o(P,T,C,D,_,10,l[61]),D=o(D,P,T,C,p,15,l[62]),C=o(C,D,P,T,x,21,l[63]),u[0]=u[0]+T|0,u[1]=u[1]+C|0,u[2]=u[2]+D|0,u[3]=u[3]+P|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,a=8*e.sigBytes;n[a>>>5]|=128<<24-a%32;var o=t.floor(r/4294967296),s=r;n[15+(a+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(a+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),e.sigBytes=4*(n.length+1),this._process();for(var i=this._hash,c=i.words,u=0;u<4;u++){var d=c[u];c[u]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return i},clone:function(){var e=u.clone.call(this);return e._hash=this._hash.clone(),e}});s.MD5=u._createHelper(f),s.HmacMD5=u._createHmacHelper(f)}(Math),e.MD5})},function(e,t,n){var r=n(5),a=n(44),o=function(e){this.name=e.name,this.call=e.call,this.params=e.params||0,this.inputFormatter=e.inputFormatter,this.outputFormatter=e.outputFormatter,this.requestManager=null};o.prototype.setRequestManager=function(e){this.requestManager=e},o.prototype.getCall=function(e){return r.isFunction(this.call)?this.call(e):this.call},o.prototype.extractCallback=function(e){if(r.isFunction(e[e.length-1]))return e.pop()},o.prototype.validateArgs=function(e){if(e.length!==this.params)throw a.InvalidNumberOfParams()},o.prototype.formatInput=function(e){return this.inputFormatter?this.inputFormatter.map(function(t,n){return t?t(e[n]):e[n]}):e},o.prototype.formatOutput=function(e){return this.outputFormatter&&e?this.outputFormatter(e):e},o.prototype.toPayload=function(e){var t=this.getCall(e),n=this.extractCallback(e),r=this.formatInput(e);return this.validateArgs(r),{method:t,params:r,callback:n}},o.prototype.attachToObject=function(e){var t=this.buildCall();t.call=this.call;var n=this.name.split(".");n.length>1?(e[n[0]]=e[n[0]]||{},e[n[0]][n[1]]=t):e[n[0]]=t},o.prototype.buildCall=function(){var e=this,t=function(){var t=e.toPayload(Array.prototype.slice.call(arguments));return t.callback?e.requestManager.sendAsync(t,function(n,r){t.callback(n,e.formatOutput(r))}):e.formatOutput(e.requestManager.send(t))};return t.request=this.request.bind(this),t},o.prototype.request=function(){var e=this.toPayload(Array.prototype.slice.call(arguments));return e.format=this.formatOutput.bind(this),e},e.exports=o},function(e,t,n){e.exports={default:n(110),__esModule:!0}},,function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(47);e.exports=function(e){return Object(r(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(248),a=n(127);e.exports=function(e,t){return t&&"hex"===t.encoding&&(e.length>2&&"0x"===e.substr(0,2)&&(e=e.substr(2)),e=r.enc.Hex.parse(e)),a(e,{outputLength:256}).toString()}},function(e,t){e.exports={InvalidNumberOfParams:function(){return new Error("Invalid number of input parameters")},InvalidConnection:function(e){return new Error("CONNECTION ERROR: Couldn't connect to node "+e+".")},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(e){var t=e&&e.error&&e.error.message?e.error.message:"Invalid JSON RPC response: "+JSON.stringify(e);return new Error(t)}}},function(e,t,n){var r=n(5),a=function(e){this.name=e.name,this.getter=e.getter,this.setter=e.setter,this.outputFormatter=e.outputFormatter,this.inputFormatter=e.inputFormatter,this.requestManager=null};a.prototype.setRequestManager=function(e){this.requestManager=e},a.prototype.formatInput=function(e){return this.inputFormatter?this.inputFormatter(e):e},a.prototype.formatOutput=function(e){return this.outputFormatter&&null!==e?this.outputFormatter(e):e},a.prototype.extractCallback=function(e){if(r.isFunction(e[e.length-1]))return e.pop()},a.prototype.attachToObject=function(e){var t={get:this.buildGet(),enumerable:!0},n=this.name.split("."),r=n[0];n.length>1&&(e[n[0]]=e[n[0]]||{},e=e[n[0]],r=n[1]),Object.defineProperty(e,r,t),e[o(r)]=this.buildAsyncGet()};var o=function(e){return"get"+e.charAt(0).toUpperCase()+e.slice(1)};a.prototype.buildGet=function(){var e=this;return function(){return e.formatOutput(e.requestManager.send({method:e.getter}))}},a.prototype.buildAsyncGet=function(){var e=this,t=function(t){e.requestManager.sendAsync({method:e.getter},function(n,r){t(n,e.formatOutput(r))})};return t.request=this.request.bind(this),t},a.prototype.request=function(){var e={method:this.getter,params:[],callback:this.extractCallback(Array.prototype.slice.call(arguments))};return e.format=this.formatOutput.bind(this),e},e.exports=a},function(e,t,n){var r;!function(a){"use strict";function o(e){function t(e,r){var a,o,s,i,c,u,d=this;if(!(d instanceof t))return G&&F(26,"constructor call without new",e),new t(e,r);if(null!=r&&W(r,2,64,N,"base")){if(r|=0,u=e+"",10==r)return d=new t(e instanceof t?e:u),R(d,H+d.e+1,j);if((i="number"==typeof e)&&0*e!=0||!new RegExp("^-?"+(a="["+A.slice(0,r)+"]+")+"(?:\\."+a+")?$",r<37?"i":"").test(u))return y(d,u,i,r);i?(d.s=1/e<0?(u=u.slice(1),-1):1,G&&u.replace(/^0\.0*|\./,"").length>15&&F(N,k,e),i=!1):d.s=45===u.charCodeAt(0)?(u=u.slice(1),-1):1,u=n(u,10,r,d.s)}else{if(e instanceof t)return d.s=e.s,d.e=e.e,d.c=(e=e.c)?e.slice():e,void(N=0);if((i="number"==typeof e)&&0*e==0){if(d.s=1/e<0?(e=-e,-1):1,e===~~e){for(o=0,s=e;s>=10;s/=10,o++);return d.e=o,d.c=[e],void(N=0)}u=e+""}else{if(!g.test(u=e+""))return y(d,u,i);d.s=45===u.charCodeAt(0)?(u=u.slice(1),-1):1}}for((o=u.indexOf("."))>-1&&(u=u.replace(".","")),(s=u.search(/e/i))>0?(o<0&&(o=s),o+=+u.slice(s+1),u=u.substring(0,s)):o<0&&(o=u.length),s=0;48===u.charCodeAt(s);s++);for(c=u.length;48===u.charCodeAt(--c););if(u=u.slice(s,c+1))if(c=u.length,i&&G&&c>15&&F(N,k,d.s*e),(o=o-s-1)>z)d.c=d.e=null;else if(o=0&&(c=Q,Q=0,e=e.replace(".",""),h=new t(r),d=h.pow(e.length-m),Q=c,h.c=l(p(i(d.c),d.e),10,n),h.e=h.c.length),f=l(e,r,n),s=c=f.length;0==f[--c];f.pop());if(!f[0])return"0";if(m<0?--s:(d.c=f,d.e=s,d.s=a,d=I(d,h,b,y,n),f=d.c,u=d.r,s=d.e),o=s+b+1,m=f[o],c=n/2,u=u||o<0||null!=f[o+1],u=y<4?(null!=m||u)&&(0==y||y==(d.s<0?3:2)):m>c||m==c&&(4==y||u||6==y&&1&f[o-1]||y==(d.s<0?8:7)),o<1||!f[0])e=u?p("1",-b):"0";else{if(f.length=o,u)for(--n;++f[--o]>n;)f[o]=0,o||(++s,f.unshift(1));for(c=f.length;!f[--c];);for(m=0,e="";m<=c;e+=A.charAt(f[m++]));e=p(e,s)}return e}function r(e,n,r,a){var o,s,c,u,d;if(r=null!=r&&W(r,0,8,a,_)?0|r:j,!e.c)return e.toString();if(o=e.c[0],c=e.e,null==n)d=i(e.c),d=19==a||24==a&&c<=q?f(d,c):p(d,c);else if(e=R(new t(e),n,r),s=e.e,d=i(e.c),u=d.length,19==a||24==a&&(n<=s||s<=q)){for(;uu){if(--n>0)for(d+=".";n--;d+="0");}else if((n+=s-u)>0)for(s+1==u&&(d+=".");n--;d+="0");return e.s<0&&o?"-"+d:d}function a(e,n){var r,a,o=0;for(d(e[0])&&(e=e[0]),r=new t(e[0]);++on||e!=h(e))&&F(r,(a||"decimal places")+(en?" out of range":" not an integer"),e),!0}function O(e,t,n){for(var r=1,a=t.length;!t[--a];t.pop());for(a=t[0];a>=10;a/=10,r++);return(n=r+n*S-1)>z?e.c=e.e=null:n=10;i/=10,a++);if((o=t-a)<0)o+=S,s=t,c=l[u=0],d=c/f[a-s-1]%10|0;else if((u=v((o+1)/S))>=l.length){if(!r)break e;for(;l.length<=u;l.push(0));c=d=0,a=1,o%=S,s=o-S+1}else{for(c=i=l[u],a=1;i>=10;i/=10,a++);o%=S,s=o-S+a,d=s<0?0:c/f[a-s-1]%10|0}if(r=r||t<0||null!=l[u+1]||(s<0?c:c%f[a-s-1]),r=n<4?(d||r)&&(0==n||n==(e.s<0?3:2)):d>5||5==d&&(4==n||r||6==n&&(o>0?s>0?c/f[a-s]:0:l[u-1])%10&1||n==(e.s<0?8:7)),t<1||!l[0])return l.length=0,r?(t-=e.e+1,l[0]=f[t%S],e.e=-t||0):l[0]=e.e=0,e;if(0==o?(l.length=u,i=1,u--):(l.length=u+1,i=f[S-o],l[u]=s>0?x(c/f[a-s]%f[s])*i:0),r)for(;;){if(0==u){for(o=1,s=l[0];s>=10;s/=10,o++);for(s=l[0]+=i,i=1;s>=10;s/=10,i++);o!=i&&(e.e++,l[0]==B&&(l[0]=1));break}if(l[u]+=i,l[u]!=B)break;l[u--]=0,i=1}for(o=l.length;0===l[--o];l.pop());}e.e>z?e.c=e.e=null:e.en)return null!=(e=a[n++])};return s(t="DECIMAL_PLACES")&&W(e,0,P,2,t)&&(H=0|e),r[t]=H,s(t="ROUNDING_MODE")&&W(e,0,8,2,t)&&(j=0|e),r[t]=j,s(t="EXPONENTIAL_AT")&&(d(e)?W(e[0],-P,0,2,t)&&W(e[1],0,P,2,t)&&(q=0|e[0],L=0|e[1]):W(e,-P,P,2,t)&&(q=-(L=0|(e<0?-e:e)))),r[t]=[q,L],s(t="RANGE")&&(d(e)?W(e[0],-P,-1,2,t)&&W(e[1],1,P,2,t)&&(U=0|e[0],z=0|e[1]):W(e,-P,P,2,t)&&(0|e?U=-(z=0|(e<0?-e:e)):G&&F(2,t+" cannot be zero",e))),r[t]=[U,z],s(t="ERRORS")&&(e===!!e||1===e||0===e?(N=0,W=(G=!!e)?m:u):G&&F(2,t+w,e)),r[t]=G,s(t="CRYPTO")&&(e===!!e||1===e||0===e?(V=!(!e||!b||"object"!=typeof b),e&&!V&&G&&F(2,"crypto unavailable",b)):G&&F(2,t+w,e)),r[t]=V,s(t="MODULO_MODE")&&W(e,0,9,2,t)&&(J=0|e),r[t]=J,s(t="POW_PRECISION")&&W(e,0,P,2,t)&&(Q=0|e),r[t]=Q,s(t="FORMAT")&&("object"==typeof e?K=e:G&&F(2,t+" not an object",e)),r[t]=K,r},t.max=function(){return a(arguments,E.lt)},t.min=function(){return a(arguments,E.gt)},t.random=function(){var e=9007199254740992,n=Math.random()*e&2097151?function(){return x(Math.random()*e)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(e){var r,a,o,s,i,c=0,u=[],d=new t(M);if(e=null!=e&&W(e,0,P,14)?0|e:H,s=v(e/S),V)if(b&&b.getRandomValues){for(r=b.getRandomValues(new Uint32Array(s*=2));c>>11),i>=9e15?(a=b.getRandomValues(new Uint32Array(2)),r[c]=a[0],r[c+1]=a[1]):(u.push(i%1e14),c+=2);c=s/2}else if(b&&b.randomBytes){for(r=b.randomBytes(s*=7);c=9e15?b.randomBytes(7).copy(r,c):(u.push(i%1e14),c+=7);c=s/7}else G&&F(14,"crypto unavailable",b);if(!c)for(;c=10;i/=10,c++);cr?1:-1;else for(a=o=0;at[a]?1:-1;break}return o}function r(e,t,n,r){for(var a=0;n--;)e[n]-=a,a=e[n]1;e.shift());}return function(a,o,i,c,u){var d,l,f,p,h,m,b,y,g,v,w,_,k,A,T,C,D,P=a.s==o.s?1:-1,O=a.c,F=o.c;if(!(O&&O[0]&&F&&F[0]))return new t(a.s&&o.s&&(O?!F||O[0]!=F[0]:F)?O&&0==O[0]||!F?0*P:P/0:NaN);for(y=new t(P),g=y.c=[],l=a.e-o.e,P=i+l+1,u||(u=B,l=s(a.e/S)-s(o.e/S),P=P/S|0),f=0;F[f]==(O[f]||0);f++);if(F[f]>(O[f]||0)&&l--,P<0)g.push(1),p=!0;else{for(A=O.length,C=F.length,f=0,P+=2,h=x(u/(F[0]+1)),h>1&&(F=e(F,h,u),O=e(O,h,u),C=F.length,A=O.length),k=C,v=O.slice(0,C),w=v.length;w=u/2&&T++;do{if(h=0,(d=n(F,v,C,w))<0){if(_=v[0],C!=w&&(_=_*u+(v[1]||0)),(h=x(_/T))>1)for(h>=u&&(h=u-1),m=e(F,h,u),b=m.length,w=v.length;1==n(m,v,b,w);)h--,r(m,C=10;P/=10,f++);R(y,i+(y.e=f+l*S-1)+1,c,p)}else y.e=l,y.r=+p;return y}}(),y=function(){var e=/^(-?)0([xbo])/i,n=/^([^.]+)\.$/,r=/^\.([^.]+)$/,a=/^-?(Infinity|NaN)$/,o=/^\s*\+|^\s+|\s+$/g;return function(s,i,c,u){var d,l=c?i:i.replace(o,"");if(a.test(l))s.s=isNaN(l)?null:l<0?-1:1;else{if(!c&&(l=l.replace(e,function(e,t,n){return d="x"==(n=n.toLowerCase())?16:"b"==n?2:8,u&&u!=d?e:t}),u&&(d=u,l=l.replace(n,"$1").replace(r,"0.$1")),i!=l))return new t(l,d);G&&F(N,"not a"+(u?" base "+u:"")+" number",i),s.s=null}s.c=s.e=null,N=0}}(),E.absoluteValue=E.abs=function(){var e=new t(this);return e.s<0&&(e.s=1),e},E.ceil=function(){return R(new t(this),this.e+1,2)},E.comparedTo=E.cmp=function(e,n){return N=1,c(this,new t(e,n))},E.decimalPlaces=E.dp=function(){var e,t,n=this.c;if(!n)return null;if(e=((t=n.length-1)-s(this.e/S))*S,t=n[t])for(;t%10==0;t/=10,e--);return e<0&&(e=0),e},E.dividedBy=E.div=function(e,n){return N=3,I(this,new t(e,n),H,j)},E.dividedToIntegerBy=E.divToInt=function(e,n){return N=4,I(this,new t(e,n),0,1)},E.equals=E.eq=function(e,n){return N=5,0===c(this,new t(e,n))},E.floor=function(){return R(new t(this),this.e+1,3)},E.greaterThan=E.gt=function(e,n){return N=6,c(this,new t(e,n))>0},E.greaterThanOrEqualTo=E.gte=function(e,n){return N=7,1===(n=c(this,new t(e,n)))||0===n},E.isFinite=function(){return!!this.c},E.isInteger=E.isInt=function(){return!!this.c&&s(this.e/S)>this.c.length-2},E.isNaN=function(){return!this.s},E.isNegative=E.isNeg=function(){return this.s<0},E.isZero=function(){return!!this.c&&0==this.c[0]},E.lessThan=E.lt=function(e,n){return N=8,c(this,new t(e,n))<0},E.lessThanOrEqualTo=E.lte=function(e,n){return N=9,(n=c(this,new t(e,n)))===-1||0===n},E.minus=E.sub=function(e,n){var r,a,o,i,c=this,u=c.s;if(N=10,e=new t(e,n),n=e.s,!u||!n)return new t(NaN);if(u!=n)return e.s=-n,c.plus(e);var d=c.e/S,l=e.e/S,f=c.c,p=e.c;if(!d||!l){if(!f||!p)return f?(e.s=-n,e):new t(p?c:NaN);if(!f[0]||!p[0])return p[0]?(e.s=-n,e):new t(f[0]?c:3==j?-0:0)}if(d=s(d),l=s(l),f=f.slice(),u=d-l){for((i=u<0)?(u=-u,o=f):(l=d,o=p),o.reverse(),n=u;n--;o.push(0));o.reverse()}else for(a=(i=(u=f.length)<(n=p.length))?u:n,u=n=0;n0)for(;n--;f[r++]=0);for(n=B-1;a>u;){if(f[--a]0?(c=i,r=d):(o=-o,r=u),r.reverse();o--;r.push(0));r.reverse()}for(o=u.length,n=d.length,o-n<0&&(r=d,d=u,u=r,n=o),o=0;n;)o=(u[--n]=u[n]+d[n]+o)/B|0,u[n]%=B;return o&&(u.unshift(o),++c),O(e,u,c)},E.precision=E.sd=function(e){var t,n,r=this,a=r.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&(G&&F(13,"argument"+w,e),e!=!!e&&(e=null)),!a)return null;if(n=a.length-1,t=n*S+1,n=a[n]){for(;n%10==0;n/=10,t--);for(n=a[0];n>=10;n/=10,t++);}return e&&r.e+1>t&&(t=r.e+1),t},E.round=function(e,n){var r=new t(this);return(null==e||W(e,0,P,15))&&R(r,~~e+this.e+1,null!=n&&W(n,0,8,15,_)?0|n:j),r},E.shift=function(e){var n=this;return W(e,-T,T,16,"argument")?n.times("1e"+h(e)):new t(n.c&&n.c[0]&&(e<-T||e>T)?n.s*(e<0?0:1/0):n)},E.squareRoot=E.sqrt=function(){var e,n,r,a,o,c=this,u=c.c,d=c.s,l=c.e,f=H+4,p=new t("0.5");if(1!==d||!u||!u[0])return new t(!d||d<0&&(!u||u[0])?NaN:u?c:1/0);if(d=Math.sqrt(+c),0==d||d==1/0?(n=i(u),(n.length+l)%2==0&&(n+="0"),d=Math.sqrt(n),l=s((l+1)/2)-(l<0||l%2),d==1/0?n="1e"+l:(n=d.toExponential(),n=n.slice(0,n.indexOf("e")+1)+l),r=new t(n)):r=new t(d+""),r.c[0])for(l=r.e,d=l+f,d<3&&(d=0);;)if(o=r,r=p.times(o.plus(I(c,o,f,1))),i(o.c).slice(0,d)===(n=i(r.c)).slice(0,d)){if(r.e=0;){for(r=0,h=w[o]%g,m=w[o]/g|0,c=d,i=o+c;i>o;)l=x[--c]%g,f=x[c]/g|0,u=m*l+f*h,l=h*l+u%g*g+b[i]+r,r=(l/y|0)+(u/g|0)+m*f,b[i--]=l%y;b[i]=r}return r?++a:b.shift(),O(e,b,a)},E.toDigits=function(e,n){var r=new t(this);return e=null!=e&&W(e,1,P,18,"precision")?0|e:null,n=null!=n&&W(n,0,8,18,_)?0|n:j,e?R(r,e,n):r},E.toExponential=function(e,t){return r(this,null!=e&&W(e,0,P,19)?1+~~e:null,t,19)},E.toFixed=function(e,t){return r(this,null!=e&&W(e,0,P,20)?~~e+this.e+1:null,t,20)},E.toFormat=function(e,t){var n=r(this,null!=e&&W(e,0,P,21)?~~e+this.e+1:null,t,21);if(this.c){var a,o=n.split("."),s=+K.groupSize,i=+K.secondaryGroupSize,c=K.groupSeparator,u=o[0],d=o[1],l=this.s<0,f=l?u.slice(1):u,p=f.length;if(i&&(a=s,s=i,i=a,p-=a),s>0&&p>0){for(a=p%s||s,u=f.substr(0,a);a0&&(u+=c+f.slice(a)),l&&(u="-"+u)}n=d?u+K.decimalSeparator+((i=+K.fractionGroupSize)?d.replace(new RegExp("\\d{"+i+"}\\B","g"),"$&"+K.fractionGroupSeparator):d):u}return n},E.toFraction=function(e){var n,r,a,o,s,c,u,d,l,f=G,p=this,h=p.c,m=new t(M),b=r=new t(M),y=u=new t(M);if(null!=e&&(G=!1,c=new t(e),G=f,(f=c.isInt())&&!c.lt(M)||(G&&F(22,"max denominator "+(f?"out of range":"not an integer"),e),e=!f&&c.c&&R(c,c.e+1,1).gte(M)?c:null)),!h)return p.toString();for(l=i(h),o=m.e=l.length-p.e-1,m.c[0]=C[(s=o%S)<0?S+s:s],e=!e||c.cmp(m)>0?o>0?m:b:c,s=z,z=1/0,c=new t(l),u.c[0]=0;d=I(c,m,0,1),a=r.plus(d.times(y)),1!=a.cmp(e);)r=y,y=a,b=u.plus(d.times(a=b)),u=a,m=c.minus(d.times(a=m)),c=a;return a=I(e.minus(r),y,0,1),u=u.plus(a.times(b)),r=r.plus(a.times(y)),u.s=b.s=p.s,o*=2,n=I(b,y,o,j).minus(p).abs().cmp(I(u,r,o,j).minus(p).abs())<1?[b.toString(),y.toString()]:[u.toString(),r.toString()],z=s,n},E.toNumber=function(){var e=this;return+e||(e.s?0*e.s:NaN)},E.toPower=E.pow=function(e){var n,r,a=x(e<0?-e:+e),o=this;if(!W(e,-T,T,23,"exponent")&&(!isFinite(e)||a>T&&(e/=0)||parseFloat(e)!=e&&!(e=NaN)))return new t(Math.pow(+o,e));for(n=Q?v(Q/S+2):0,r=new t(M);;){if(a%2){if(r=r.times(o),!r.c)break;n&&r.c.length>n&&(r.c.length=n)}if(!(a=x(a/2)))break;o=o.times(o),n&&o.c&&o.c.length>n&&(o.c.length=n)}return e<0&&(r=M.div(r)),n?R(r,Q,j):r},E.toPrecision=function(e,t){return r(this,null!=e&&W(e,1,P,24,"precision")?0|e:null,t,24)},E.toString=function(e){var t,r=this,a=r.s,o=r.e;return null===o?a?(t="Infinity",a<0&&(t="-"+t)):t="NaN":(t=i(r.c),t=null!=e&&W(e,2,64,25,"base")?n(p(t,o),0|e,10,a):o<=q||o>=L?f(t,o):p(t,o),a<0&&r.c[0]&&(t="-"+t)),t},E.truncated=E.trunc=function(){return R(new t(this),this.e+1,1)},E.valueOf=E.toJSON=function(){return this.toString()},null!=e&&t.config(e),t}function s(e){var t=0|e;return e>0||e===t?t:t-1}function i(e){for(var t,n,r=1,a=e.length,o=e[0]+"";ru^n?1:-1;for(i=(c=a.length)<(u=o.length)?c:u,s=0;so[s]^n?1:-1;return c==u?0:c>u^n?1:-1}function u(e,t,n){return(e=h(e))>=t&&e<=n}function d(e){return"[object Array]"==Object.prototype.toString.call(e)}function l(e,t,n){for(var r,a,o=[0],s=0,i=e.length;sn-1&&(null==o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}function f(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function p(e,t){var n,r;if(t<0){for(r="0.";++t;r+="0");e=r+e}else if(n=e.length,++t>n){for(r="0",t-=n;--t;r+="0");e+=r}else t0?r:n)(e)}},,,,,,function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(19),a=n(6).document,o=r(a)&&r(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},,,function(e,t,n){var r=n(60)("keys"),a=n(42);e.exports=function(e){return r[e]||(r[e]=a(e))}},function(e,t,n){var r=n(6),a="__core-js_shared__",o=r[a]||(r[a]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,n){var r=n(19);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},,,function(e,t,n){!function(r,a){e.exports=t=a(n(2))}(0,function(e){return function(t){var n=e,r=n.lib,a=r.Base,o=r.WordArray,s=n.x64={};s.Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=a.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r0&&c(o),"function"==typeof a)return o.watch(a)}),this};u.prototype.watch=function(e){return this.callbacks.push(e),this.filterId&&(i(this,e),c(this)),this},u.prototype.stopWatching=function(e){if(this.requestManager.stopPolling(this.filterId),this.callbacks=[],!e)return this.implementation.uninstallFilter(this.filterId);this.implementation.uninstallFilter(this.filterId,e)},u.prototype.get=function(e){var t=this;if(!a.isFunction(e)){if(null===this.filterId)throw new Error("Filter ID Error: filter().get() can't be chained synchronous, please provide a callback for the get() method.");return this.implementation.getLogs(this.filterId).map(function(e){return t.formatter?t.formatter(e):e})}return null===this.filterId?this.getLogsCallbacks.push(e):this.implementation.getLogs(this.filterId,function(n,r){n?e(n):e(null,r.map(function(e){return t.formatter?t.formatter(e):e}))}),this},e.exports=u},function(e,t,n){var r=n(46),a=function(e,t){for(var n=e;n.length<2*t;)n="0"+n;return n},o=function(e){var t="A".charCodeAt(0),n="Z".charCodeAt(0);return e=e.toUpperCase(),e=e.substr(4)+e.substr(0,4),e.split("").map(function(e){var r=e.charCodeAt(0);return r>=t&&r<=n?r-t+10:e}).join("")},s=function(e){for(var t,n=e;n.length>2;)t=n.slice(0,9),n=parseInt(t,10)%97+n.slice(t.length);return parseInt(n,10)%97},i=function(e){this._iban=e};i.fromAddress=function(e){var t=new r(e,16),n=t.toString(36),o=a(n,15);return i.fromBban(o.toUpperCase())},i.fromBban=function(e){var t="XE",n=s(o(t+"00"+e)),r=("0"+(98-n)).slice(-2);return new i(t+r+e)},i.createIndirect=function(e){return i.fromBban("ETH"+e.institution+e.identifier)},i.isValid=function(e){return new i(e).isValid()},i.prototype.isValid=function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===s(o(this._iban))},i.prototype.isDirect=function(){return 34===this._iban.length||35===this._iban.length},i.prototype.isIndirect=function(){return 20===this._iban.length},i.prototype.checksum=function(){return this._iban.substr(2,2)},i.prototype.institution=function(){return this.isIndirect()?this._iban.substr(7,4):""},i.prototype.client=function(){return this.isIndirect()?this._iban.substr(11):""},i.prototype.address=function(){if(this.isDirect()){var e=this._iban.substr(4),t=new r(e,36);return a(t.toString(16),20)}return""},i.prototype.toString=function(){return this._iban},e.exports=i},function(e,t,n){var r=n(37),a=function(){return[new r({name:"newFilter",call:function(e){switch(e[0]){case"latest":return e.shift(),this.params=0,"eth_newBlockFilter";case"pending":return e.shift(),this.params=0,"eth_newPendingTransactionFilter";default:return"eth_newFilter"}},params:1}),new r({name:"uninstallFilter",call:"eth_uninstallFilter",params:1}),new r({name:"getLogs",call:"eth_getFilterLogs",params:1}),new r({name:"poll",call:"eth_getFilterChanges",params:1})]},o=function(){return[new r({name:"newFilter",call:"shh_newFilter",params:1}),new r({name:"uninstallFilter",call:"shh_uninstallFilter",params:1}),new r({name:"getLogs",call:"shh_getMessages",params:1}),new r({name:"poll",call:"shh_getFilterChanges",params:1})]};e.exports={eth:a,shh:o}},function(e,t,n){(function(e,r){var a;!function(o){function s(e){for(var t,n,r=[],a=0,o=e.length;a=55296&&t<=56319&&a65535&&(t-=65536,a+=x(t>>>10&1023|55296),t=56320|1023&t),a+=x(t);return a}function c(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function u(e,t){return x(e>>t&63|128)}function d(e){if(0==(4294967168&e))return x(e);var t="";return 0==(4294965248&e)?t=x(e>>6&31|192):0==(4294901760&e)?(c(e),t=x(e>>12&15|224),t+=u(e,6)):0==(4292870144&e)&&(t=x(e>>18&7|240),t+=u(e,12),t+=u(e,6)),t+=x(63&e|128)}function l(e){for(var t,n=s(e),r=n.length,a=-1,o="";++a=g)throw Error("Invalid byte index");var e=255&y[v];if(v++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function p(){var e,t,n,r,a;if(v>g)throw Error("Invalid byte index");if(v==g)return!1;if(e=255&y[v],v++,0==(128&e))return e;if(192==(224&e)){if(t=f(),(a=(31&e)<<6|t)>=128)return a;throw Error("Invalid continuation byte")}if(224==(240&e)){if(t=f(),n=f(),(a=(15&e)<<12|t<<6|n)>=2048)return c(a),a;throw Error("Invalid continuation byte")}if(240==(248&e)&&(t=f(),n=f(),r=f(),(a=(7&e)<<18|t<<12|n<<6|r)>=65536&&a<=1114111))return a;throw Error("Invalid UTF-8 detected")}function h(e){y=s(e),g=y.length,v=0;for(var t,n=[];(t=p())!==!1;)n.push(t);return i(n)}var m="object"==typeof t&&t,b=("object"==typeof e&&e&&e.exports,"object"==typeof r&&r);b.global!==b&&b.window;var y,g,v,x=String.fromCharCode,w={version:"2.1.2",encode:l,decode:h};void 0!==(a=function(){return w}.call(t,n,t,e))&&(e.exports=a)}()}).call(t,n(136)(e),n(25))},,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return Object.defineProperty(t,"_preamble",{value:e.trim(),enumerable:!1}),t}function o(e,t){var n=null==e?null:e.constructor;return n===Object||n===Array?(Object.defineProperty(e,"_comment",{value:t,enumerable:!1}),e):new p(e,t)}function s(e){return o("0x"+e.toString(16),e.toString())}Object.defineProperty(t,"__esModule",{value:!0}),t.Dummy=void 0;var i=n(38),c=r(i),u=n(0),d=r(u),l=n(1),f=r(l);t.withPreamble=a,t.withComment=o,t.fromDecimal=s;var p=(t.Dummy=function(){function e(t){(0,d.default)(this,e),this.value=t}return(0,f.default)(e,[{key:"toString",value:function(){return this.value}},{key:"toJSON",value:function(){return"##"+this.value+"##"}}],[{key:"fixJSON",value:function(e){return e.replace(/"##([^#]+)##"/g,"$1")}},{key:"isDummy",value:function(t){return t instanceof e}},{key:"stringifyJSON",value:function(t){return e.fixJSON((0,c.default)(t))}}]),e}(),function(){function e(t,n){(0,d.default)(this,e),this._value=t,this._comment=n}return(0,f.default)(e,[{key:"toJSON",value:function(){return this._value}}]),e}())},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionResponse=t.TransactionRequest=t.CallRequest=t.BlockNumber=t.Quantity=t.Integer=t.Hash=t.Data=t.Address=void 0;var a,o,s,i,c,u,d,l,f=n(0),p=r(f),h=t.Address=function e(){(0,p.default)(this,e)},m=t.Data=function e(){(0,p.default)(this,e)},b=t.Hash=function e(){(0,p.default)(this,e)},y=(t.Integer=function e(){(0,p.default)(this,e)},t.Quantity=function e(){(0,p.default)(this,e)}),g=t.BlockNumber=(o=a=function e(){(0,p.default)(this,e)},a.print="`Quantity` | `Tag`",o);t.CallRequest=(i=s=function e(){(0,p.default)(this,e)},s.print="`Object`",s.details={from:{type:h,desc:"20 Bytes - The address the transaction is send from.",optional:!0},to:{type:h,desc:"(optional when creating new contract) 20 Bytes - The address the transaction is directed to."},gas:{type:y,desc:"Integer of the gas provided for the transaction execution. eth_call consumes zero gas, but this parameter may be needed by some executions.",optional:!0},gasPrice:{type:y,desc:"Integer of the gas price used for each paid gas.",optional:!0},value:{type:y,desc:"Integer of the value sent with this transaction.",optional:!0},data:{type:m,desc:"4 byte hash of the method signature followed by encoded parameters. For details see [Ethereum Contract ABI](https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI).",optional:!0}},i),t.TransactionRequest=(u=c=function e(){(0,p.default)(this,e)},c.print="`Object`",c.details={from:{type:h,desc:"20 Bytes - The address the transaction is send from."},to:{type:h,desc:"20 Bytes - The address the transaction is directed to.",optional:!0},gas:{type:y,desc:"Integer of the gas provided for the transaction execution. eth_call consumes zero gas, but this parameter may be needed by some executions.",optional:!0},gasPrice:{type:y,desc:"Integer of the gas price used for each paid gas.",optional:!0},value:{type:y,desc:"Integer of the value sent with this transaction.",optional:!0},data:{type:m,desc:"4 byte hash of the method signature followed by encoded parameters. For details see [Ethereum Contract ABI](https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI).",optional:!0},nonce:{type:y,desc:"Integer of a nonce. This allows to overwrite your own pending transactions that use the same nonce.",optional:!0},condition:{type:Object,desc:"Conditional submission of the transaction. Can be either an integer block number `{ block: 1 }` or UTC timestamp (in seconds) `{ time: 1491290692 }` or `null`.",optional:!0}},u),t.TransactionResponse=(l=d=function e(){(0,p.default)(this,e)},d.print="`Object`",d.details={hash:{type:b,desc:"32 Bytes - hash of the transaction."},nonce:{type:y,desc:"The number of transactions made by the sender prior to this one."},blockHash:{type:b,desc:"32 Bytes - hash of the block where this transaction was in. `null` when its pending."},blockNumber:{type:g,desc:"Block number where this transaction was in. `null` when its pending."},transactionIndex:{type:y,desc:"Integer of the transactions index position in the block. `null` when its pending."},from:{type:h,desc:"20 Bytes - address of the sender."},to:{type:h,desc:"20 Bytes - address of the receiver. `null` when its a contract creation transaction."},value:{type:y,desc:"Value transferred in Wei."},gasPrice:{type:y,desc:"Gas price provided by the sender in Wei."},gas:{type:y,desc:"Gas provided by the sender."},input:{type:m,desc:"The data send along with the transaction."},creates:{type:h,optional:!0,desc:"Address of a created contract or `null`."},raw:{type:m,desc:"Raw transaction data."},publicKey:{type:m,desc:"Public key of the signer."},networkId:{type:y,desc:"The network id of the transaction, if any."},standardV:{type:y,desc:"The standardized V field of the signature (0 or 1)."},v:{type:y,desc:"The V field of the signature."},r:{type:y,desc:"The R field of the signature."},s:{type:y,desc:"The S field of the signature."},condition:{type:Object,optional:!0,desc:"Conditional submission, Block number in `block` or timestamp in `time` or `null`."}},l)},,,,function(e,t,n){e.exports=!n(9)&&!n(16)(function(){return 7!=Object.defineProperty(n(55)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(31);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},,,function(e,t,n){var r=n(17),a=n(13),o=n(113)(!1),s=n(59)("IE_PROTO");e.exports=function(e,t){var n,i=a(e),c=0,u=[];for(n in i)n!=s&&r(i,n)&&u.push(n);for(;t.length>c;)r(i,n=t[c++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){var r=n(10),a=n(3),o=n(16);e.exports=function(e,t){var n=(a.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},function(e,t,n){var r=n(48),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},,,function(e,t,n){!function(r,a){e.exports=t=a(n(2))}(0,function(e){!function(){var t=e,n=t.lib,r=n.Base,a=t.enc,o=a.Utf8,s=t.algo;s.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),s=this._iKey=t.clone(),i=a.words,c=s.words,u=0;u>>31}var l=(r<<5|r>>>27)+c+s[u];l+=u<20?1518500249+(a&o|~a&i):u<40?1859775393+(a^o^i):u<60?(a&o|a&i|o&i)-1894007588:(a^o^i)-899497514,c=i,i=o,o=a<<30|a>>>2,a=r,r=l}n[0]=n[0]+r|0,n[1]=n[1]+a|0,n[2]=n[2]+o|0,n[3]=n[3]+i|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=a._createHelper(i),t.HmacSHA1=a._createHmacHelper(i)}(),e.SHA1})},,function(e,t,n){var r=n(8),a=n(296),o=n(297),s=n(300),i=n(303),c=n(299),u=n(302),d=n(301),l=n(304),f=n(298),p=function(e){this._types=e};p.prototype._requireType=function(e){var t=this._types.filter(function(t){return t.isType(e)})[0];if(!t)throw Error("invalid solidity type!: "+e);return t},p.prototype.encodeParam=function(e,t){return this.encodeParams([e],[t])},p.prototype.encodeParams=function(e,t){var n=this.getSolidityTypes(e),r=n.map(function(n,r){return n.encode(t[r],e[r])}),a=n.reduce(function(t,n,r){var a=n.staticPartLength(e[r]);return t+32*Math.floor((a+31)/32)},0);return this.encodeMultiWithOffset(e,n,r,a)},p.prototype.encodeMultiWithOffset=function(e,t,n,a){var o="",s=this,i=function(n){return t[n].isDynamicArray(e[n])||t[n].isDynamicType(e[n])};return e.forEach(function(c,u){if(i(u)){o+=r.formatInputInt(a).encode();var d=s.encodeWithOffset(e[u],t[u],n[u],a);a+=d.length/2}else o+=s.encodeWithOffset(e[u],t[u],n[u],a)}),e.forEach(function(r,c){if(i(c)){var u=s.encodeWithOffset(e[c],t[c],n[c],a);a+=u.length/2,o+=u}}),o},p.prototype.encodeWithOffset=function(e,t,n,a){var o=this;return t.isDynamicArray(e)?function(){var s=t.nestedName(e),i=t.staticPartLength(s),c=n[0];return function(){var e=2;if(t.isDynamicArray(s))for(var o=1;od;)if((i=c[d++])!=i)return!0}else for(;u>d;d++)if((e||d in c)&&c[d]===n)return e||d||0;return!e&&-1}}},,,,,,,,function(e,t,n){var r=n(48),a=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?a(e+t,0):o(e,t)}},,function(e,t,n){var r=n(10);r(r.S+r.F*!n(9),"Object",{defineProperty:n(12).f})},function(e,t,n){var r=n(41),a=n(20);n(86)("keys",function(){return function(e){return a(r(e))}})},,function(e,t,n){!function(r,a){e.exports=t=a(n(2))}(0,function(e){return function(t){var n=e,r=n.lib,a=r.WordArray,o=r.Hasher,s=n.algo,i=[],c=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,a=0;a<64;)e(r)&&(a<8&&(i[a]=n(t.pow(r,.5))),c[a]=n(t.pow(r,1/3)),a++),r++}();var u=[],d=s.SHA256=o.extend({_doReset:function(){this._hash=new a.init(i.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],a=n[1],o=n[2],s=n[3],i=n[4],d=n[5],l=n[6],f=n[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var h=u[p-15],m=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,b=u[p-2],y=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;u[p]=m+u[p-7]+y+u[p-16]}var g=i&d^~i&l,v=r&a^r&o^a&o,x=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=(i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25),_=f+w+g+c[p]+u[p],k=x+v;f=l,l=d,d=i,i=s+_|0,s=o,o=a,a=r,r=_+k|0}n[0]=n[0]+r|0,n[1]=n[1]+a|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+i|0,n[5]=n[5]+d|0,n[6]=n[6]+l|0,n[7]=n[7]+f|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,a=8*e.sigBytes;return n[a>>>5]|=128<<24-a%32,n[14+(a+64>>>9<<4)]=t.floor(r/4294967296),n[15+(a+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=o._createHelper(d),n.HmacSHA256=o._createHmacHelper(d)}(Math),e.SHA256})},function(e,t,n){!function(r,a,o){e.exports=t=a(n(2),n(64))}(0,function(e){return function(t){var n=e,r=n.lib,a=r.WordArray,o=r.Hasher,s=n.x64,i=s.Word,c=n.algo,u=[],d=[],l=[];!function(){for(var e=1,t=0,n=0;n<24;n++){u[e+5*t]=(n+1)*(n+2)/2%64;var r=t%5,a=(2*e+3*t)%5;e=r,t=a}for(var e=0;e<5;e++)for(var t=0;t<5;t++)d[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,s=0;s<24;s++){for(var c=0,f=0,p=0;p<7;p++){if(1&o){var h=(1<>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);var i=n[a];i.high^=s,i.low^=o}for(var c=0;c<24;c++){for(var p=0;p<5;p++){for(var h=0,m=0,b=0;b<5;b++){var i=n[p+5*b];h^=i.high,m^=i.low}var y=f[p];y.high=h,y.low=m}for(var p=0;p<5;p++)for(var g=f[(p+4)%5],v=f[(p+1)%5],x=v.high,w=v.low,h=g.high^(x<<1|w>>>31),m=g.low^(w<<1|x>>>31),b=0;b<5;b++){var i=n[p+5*b];i.high^=h,i.low^=m}for(var _=1;_<25;_++){var i=n[_],k=i.high,A=i.low,B=u[_];if(B<32)var h=k<>>32-B,m=A<>>32-B;else var h=A<>>64-B,m=k<>>64-B;var S=f[d[_]];S.high=h,S.low=m}var T=f[0],C=n[0];T.high=C.high,T.low=C.low;for(var p=0;p<5;p++)for(var b=0;b<5;b++){var _=p+5*b,i=n[_],D=f[_],P=f[(p+1)%5+5*b],O=f[(p+2)%5+5*b];i.high=D.high^~P.high&O.high,i.low=D.low^~P.low&O.low}var i=n[0],F=l[c];i.high^=F.high,i.low^=F.low}},_doFinalize:function(){var e=this._data,n=e.words,r=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var s=this._state,i=this.cfg.outputLength/8,c=i/8,u=[],d=0;d>>24)|4278255360&(f<<24|f>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),u.push(p),u.push(f)}return new a.init(u,i)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=o._createHelper(p),n.HmacSHA3=o._createHmacHelper(p)}(Math),e.SHA3})},function(e,t,n){!function(r,a,o){e.exports=t=a(n(2),n(64))}(0,function(e){return function(){function t(){return s.create.apply(s,arguments)}var n=e,r=n.lib,a=r.Hasher,o=n.x64,s=o.Word,i=o.WordArray,c=n.algo,u=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],d=[];!function(){for(var e=0;e<80;e++)d[e]=t()}();var l=c.SHA512=a.extend({_doReset:function(){this._hash=new i.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],a=n[1],o=n[2],s=n[3],i=n[4],c=n[5],l=n[6],f=n[7],p=r.high,h=r.low,m=a.high,b=a.low,y=o.high,g=o.low,v=s.high,x=s.low,w=i.high,_=i.low,k=c.high,A=c.low,B=l.high,S=l.low,T=f.high,C=f.low,D=p,P=h,O=m,F=b,R=y,I=g,N=v,E=x,M=w,H=_,j=k,q=A,L=B,U=S,z=T,G=C,W=0;W<80;W++){var V=d[W];if(W<16)var J=V.high=0|e[t+2*W],Q=V.low=0|e[t+2*W+1];else{var K=d[W-15],X=K.high,$=K.low,Z=(X>>>1|$<<31)^(X>>>8|$<<24)^X>>>7,Y=($>>>1|X<<31)^($>>>8|X<<24)^($>>>7|X<<25),ee=d[W-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ae=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=d[W-7],se=oe.high,ie=oe.low,ce=d[W-16],ue=ce.high,de=ce.low,Q=Y+ie,J=Z+se+(Q>>>0>>0?1:0),Q=Q+ae,J=J+re+(Q>>>0>>0?1:0),Q=Q+de,J=J+ue+(Q>>>0>>0?1:0);V.high=J,V.low=Q}var le=M&j^~M&L,fe=H&q^~H&U,pe=D&O^D&R^O&R,he=P&F^P&I^F&I,me=(D>>>28|P<<4)^(D<<30|P>>>2)^(D<<25|P>>>7),be=(P>>>28|D<<4)^(P<<30|D>>>2)^(P<<25|D>>>7),ye=(M>>>14|H<<18)^(M>>>18|H<<14)^(M<<23|H>>>9),ge=(H>>>14|M<<18)^(H>>>18|M<<14)^(H<<23|M>>>9),ve=u[W],xe=ve.high,we=ve.low,_e=G+ge,ke=z+ye+(_e>>>0>>0?1:0),_e=_e+fe,ke=ke+le+(_e>>>0>>0?1:0),_e=_e+we,ke=ke+xe+(_e>>>0>>0?1:0),_e=_e+Q,ke=ke+J+(_e>>>0>>0?1:0),Ae=be+he,Be=me+pe+(Ae>>>0>>0?1:0);z=L,G=U,L=j,U=q,j=M,q=H,H=E+_e|0,M=N+ke+(H>>>0>>0?1:0)|0,N=R,E=I,R=O,I=F,O=D,F=P,P=_e+Ae|0,D=ke+Be+(P>>>0<_e>>>0?1:0)|0}h=r.low=h+P,r.high=p+D+(h>>>0

>>0?1:0),b=a.low=b+F,a.high=m+O+(b>>>0>>0?1:0),g=o.low=g+I,o.high=y+R+(g>>>0>>0?1:0),x=s.low=x+E,s.high=v+N+(x>>>0>>0?1:0),_=i.low=_+H,i.high=w+M+(_>>>0>>0?1:0),A=c.low=A+q,c.high=k+j+(A>>>0>>0?1:0),S=l.low=S+U,l.high=B+L+(S>>>0>>0?1:0),C=f.low=C+G,f.high=T+z+(C>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});n.SHA512=a._createHelper(l),n.HmacSHA512=a._createHmacHelper(l)}(),e.SHA512})},,,,,function(e,t,n){var r=n(5),a=function(e,t){this.value=e||"",this.offset=t};a.prototype.dynamicPartLength=function(){return this.dynamicPart().length/2},a.prototype.withOffset=function(e){return new a(this.value,e)},a.prototype.combine=function(e){return new a(this.value+e.value)},a.prototype.isDynamic=function(){return void 0!==this.offset},a.prototype.offsetAsBytes=function(){return this.isDynamic()?r.padLeft(r.toTwosComplement(this.offset).toString(16),64):""},a.prototype.staticPart=function(){return this.isDynamic()?this.offsetAsBytes():this.value},a.prototype.dynamicPart=function(){return this.isDynamic()?this.value:""},a.prototype.encode=function(){return this.staticPart()+this.dynamicPart()},a.encodeList=function(e){var t=32*e.length,n=e.map(function(e){if(!e.isDynamic())return e;var n=t;return t+=e.dynamicPartLength(),e.withOffset(n)});return n.reduce(function(e,t){return e+t.dynamicPart()},n.reduce(function(e,t){return e+t.staticPart()},""))},e.exports=a},function(e,t,n){var r=n(5),a=n(93),o=n(15),s=n(43),i=n(67),c=n(69),u=function(e,t,n){this._requestManager=e,this._params=t.inputs,this._name=r.transformToFullName(t),this._address=n,this._anonymous=t.anonymous};u.prototype.types=function(e){return this._params.filter(function(t){return t.indexed===e}).map(function(e){return e.type})},u.prototype.displayName=function(){return r.extractDisplayName(this._name)},u.prototype.typeName=function(){return r.extractTypeName(this._name)},u.prototype.signature=function(){return s(this._name)},u.prototype.encode=function(e,t){e=e||{},t=t||{};var n={};["fromBlock","toBlock"].filter(function(e){return void 0!==t[e]}).forEach(function(e){n[e]=o.inputBlockNumberFormatter(t[e])}),n.topics=[],n.address=this._address,this._anonymous||n.topics.push("0x"+this.signature());var s=this._params.filter(function(e){return e.indexed===!0}).map(function(t){var n=e[t.name];return void 0===n||null===n?null:r.isArray(n)?n.map(function(e){return"0x"+a.encodeParam(t.type,e)}):"0x"+a.encodeParam(t.type,n)});return n.topics=n.topics.concat(s),n},u.prototype.decode=function(e){e.data=e.data||"",e.topics=e.topics||[];var t=this._anonymous?e.topics:e.topics.slice(1),n=t.map(function(e){return e.slice(2)}).join(""),r=a.decodeParams(this.types(!0),n),s=e.data.slice(2),i=a.decodeParams(this.types(!1),s),c=o.outputLogFormatter(e);return c.event=this.displayName(),c.address=e.address,c.args=this._params.reduce(function(e,t){return e[t.name]=t.indexed?r.shift():i.shift(),e},{}),delete c.data,delete c.topics,c},u.prototype.execute=function(e,t,n){r.isFunction(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],2===arguments.length&&(t=null),1===arguments.length&&(t=null,e={}));var a=this.encode(e,t),o=this.decode.bind(this);return new i(this._requestManager,a,c.eth(),o,n)},u.prototype.attachToContract=function(e){var t=this.execute.bind(this),n=this.displayName();e[n]||(e[n]=t),e[n][this.typeName()]=this.execute.bind(this,e)},e.exports=u},function(e,t){var n={messageId:0};n.toPayload=function(e,t){return e||console.error("jsonrpc method should be specified!"),n.messageId++,{jsonrpc:"2.0",id:n.messageId,method:e,params:t||[]}},n.isValidResponse=function(e){function t(e){return!!e&&!e.error&&"2.0"===e.jsonrpc&&"number"==typeof e.id&&void 0!==e.result}return Array.isArray(e)?e.every(t):t(e)},n.toBatchPayload=function(e){return e.map(function(e){return n.toPayload(e.method,e.params)})},e.exports=n},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},,function(e,t,n){"use strict";(function(e){function t(e){return e&&e.__esModule?e:{default:e}}var r=n(295),a=t(r),o=n(191),s=t(o);n(271);var i=new a.default.providers.HttpProvider("/rpc/"),c=new a.default(i);c.eth.getAccounts(function(e,t){!e&&t&&t[0]&&(c.eth.defaultAccount=t[0])}),(0,s.default)(c).map(function(e){return c._extend(e)}),e.web3=c}).call(t,n(25))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(77),a=n(76),o="Accounts (read-only) and Signatures",s="Development",i='Block Authoring (aka "mining")',c="Network Information",u="Node Settings",d="Account Vaults",l="set",f="accounts";t.default={accountsInfo:{section:o,desc:"Provides metadata for accounts.",params:[],returns:{type:Object,desc:"Maps account address to metadata.",details:{name:{type:String,desc:"Account name"}},example:{"0x0024d0c7ab4c52f723f3aaf0872b9ea4406846a4":{name:"Foo"},"0x004385d8be6140e6f889833f68b51e17b6eacb29":{name:"Bar"},"0x009047ed78fa2be48b62aaf095b64094c934dab0":{name:"Baz"}}}},chainStatus:{section:c,desc:"Returns the information on warp sync blocks",params:[],returns:{type:Object,desc:"The status object",details:{blockGap:{type:Array,desc:"Describes the gap in the blockchain, if there is one: (first, last)",optional:!0}}}},changeVault:{section:d,desc:"Changes the current valut for the account",params:[{type:r.Address,desc:"Account address",example:"0x63Cf90D3f0410092FC0fca41846f596223979195"},{type:String,desc:"Vault name",example:"StrongVault"}],returns:{type:Boolean,desc:"True on success",example:!0}},changeVaultPassword:{section:d,desc:"Changes the password for any given vault",params:[{type:String,desc:"Vault name",example:"StrongVault"},{type:String,desc:"New Password",example:"p@55w0rd"}],returns:{type:Boolean,desc:"True on success",example:!0}},closeVault:{section:d,desc:"Closes a vault with the given name",params:[{type:String,desc:"Vault name",example:"StrongVault"}],returns:{type:Boolean,desc:"True on success",example:!0}},consensusCapability:{desc:"Returns information on current consensus capability.",params:[],returns:{type:Object,desc:'or `String` - Either `"capable"`, `{"capableUntil":N}`, `{"incapableSince":N}` or `"unknown"` (`N` is a block number).',example:"capable"}},dappsList:{subdoc:l,desc:"Returns a list of available local dapps.",params:[],returns:{type:Array,desc:"The list of dapps",example:[{author:"Parity Technologies Ltd",description:"A skeleton dapp",iconUrl:"title.png",id:"skeleton",name:"Skeleton",version:"0.1"}]}},dappsUrl:{section:u,desc:"Returns the hostname and the port of dapps/rpc server, error if not enabled.",params:[],returns:{type:String,desc:"The hostname and port number",example:"localhost:8545"}},defaultAccount:{section:o,desc:"Returns the defaultAccount that is to be used with transactions",params:[],returns:{type:r.Address,desc:"The account address",example:"0x63Cf90D3f0410092FC0fca41846f596223979195"}},defaultExtraData:{section:i,desc:"Returns the default extra data",params:[],returns:{type:r.Data,desc:"Extra data",example:"0xd5830106008650617269747986312e31342e30826c69"}},devLogs:{section:s,desc:"Returns latest stdout logs of your node.",params:[],returns:{type:Array,desc:"Development logs",example:["2017-01-20 18:14:19 Updated conversion rate to Ξ1 = US$10.63 (11199212000 wei/gas)","2017-01-20 18:14:19 Configured for DevelopmentChain using InstantSeal engine","2017-01-20 18:14:19 Operating mode: active","2017-01-20 18:14:19 State DB configuration: fast","2017-01-20 18:14:19 Starting Parity/v1.7.0-unstable-2ae8b4c-20170120/x86_64-linux-gnu/rustc1.14.0"]}},devLogsLevels:{section:s,desc:'Returns current logging level settings. Logging level can be set with `--logging` and be one of: `""` (default), `"info"`, `"debug"`, `"warn"`, `"error"`, `"trace"`.',params:[],returns:{type:String,decs:"Current log level.",example:"debug"}},enode:{section:u,desc:"Returns the node enode URI.",params:[],returns:{type:String,desc:"Enode URI",example:"enode://050929adcfe47dbe0b002cb7ef2bf91ca74f77c4e0f68730e39e717f1ce38908542369ae017148bee4e0d968340885e2ad5adea4acd19c95055080a4b625df6a@172.17.0.1:30303"}},extraData:{section:i,desc:"Returns currently set extra data.",params:[],returns:{type:r.Data,desc:"Extra data.",example:"0xd5830106008650617269747986312e31342e30826c69"}},gasFloorTarget:{section:i,desc:"Returns current target for gas floor.",params:[],returns:{type:r.Quantity,desc:"Gas floor target.",format:"outputBigNumberFormatter",example:(0,a.fromDecimal)(47e5)}},gasCeilTarget:{section:i,desc:"Returns current target for gas ceiling.",params:[],returns:{type:r.Quantity,desc:"Gas ceiling target.",format:"outputBigNumberFormatter",example:(0,a.fromDecimal)(6283184)}},gasPriceHistogram:{section:c,desc:"Returns a snapshot of the historic gas prices.",params:[],returns:{type:Object,desc:"Historic values",details:{bucketBounds:{type:Array,desc:"Array of bound values."},count:{type:Array,desc:"Array of counts."}},example:{bucketBounds:["0x4a817c800","0x525433d01","0x5a26eb202","0x61f9a2703","0x69cc59c04","0x719f11105","0x7971c8606","0x81447fb07","0x891737008","0x90e9ee509","0x98bca5a0a"],counts:[487,9,7,1,8,0,0,0,0,14]}}},generateSecretPhrase:{section:o,desc:"Creates a secret phrase that can be associated with an account.",params:[],returns:{type:String,desc:"The secret phrase.",example:"boasting breeches reshape reputably exit handrail stony jargon moneywise unhinge handed ruby"}},getVaultMeta:{section:d,desc:"Returns the metadata for a specific vault",params:[{type:String,desc:"Vault name",example:"StrongVault"}],returns:{type:String,desc:"The associated JSON metadata for this vault",example:'{"passwordHint":"something"}'}},hardwareAccountsInfo:{section:o,desc:"Provides metadata for attached hardware wallets",params:[],returns:{type:Object,desc:"Maps account address to metadata.",details:{manufacturer:{type:String,desc:"Manufacturer"},name:{type:String,desc:"Account name"}},example:{"0x0024d0c7ab4c52f723f3aaf0872b9ea4406846a4":{manufacturer:"Ledger",name:"Nano S"}}}},listOpenedVaults:{desc:"Returns a list of all opened vaults",params:[],returns:{type:Array,desc:"Names of all opened vaults",example:"['Personal']"}},listVaults:{desc:"Returns a list of all available vaults",params:[],returns:{type:Array,desc:"Names of all available vaults",example:"['Personal','Work']"}},localTransactions:{desc:"Returns an object of current and past local transactions.",params:[],returns:{type:Object,desc:"Mapping of transaction hashes to status objects status object.",example:{"0x09e64eb1ae32bb9ac415ce4ddb3dbad860af72d9377bb5f073c9628ab413c532":{status:"mined",transaction:{from:"0x00a329c0648769a73afac7f9381e08fb43dbea72",to:"0x00a289b43e1e4825dbedf2a78ba60a640634dc40",value:"0xfffff",blockHash:null,blockNumber:null,creates:null,gas:"0xe57e0",gasPrice:"0x2d20cff33",hash:"0x09e64eb1ae32bb9ac415ce4ddb3dbad860af72d9377bb5f073c9628ab413c532",input:"0x",condition:{block:1},networkId:null,nonce:"0x0",publicKey:"0x3fa8c08c65a83f6b4ea3e04e1cc70cbe3cd391499e3e05ab7dedf28aff9afc538200ff93e3f2b2cb5029f03c7ebee820d63a4c5a9541c83acebe293f54cacf0e",raw:"0xf868808502d20cff33830e57e09400a289b43e1e4825dbedf2a78ba60a640634dc40830fffff801ca034c333b0b91cd832a3414d628e3fea29a00055cebf5ba59f7038c188404c0cf3a0524fd9b35be170439b5ffe89694ae0cfc553cb49d1d8b643239e353351531532",standardV:"0x1",v:"0x1c",r:"0x34c333b0b91cd832a3414d628e3fea29a00055cebf5ba59f7038c188404c0cf3",s:"0x524fd9b35be170439b5ffe89694ae0cfc553cb49d1d8b643239e353351531532",transactionIndex:null}},"0x...":new a.Dummy("{ ... }")}}},minGasPrice:{section:i,desc:"Returns currently set minimal gas price",params:[],returns:{type:r.Quantity,desc:"Minimal Gas Price",format:"outputBigNumberFormatter",example:(0,a.fromDecimal)(11262783488)}},mode:{section:u,desc:'Get the mode. Results one of: `"active"`, `"passive"`, `"dark"`, `"offline"`.',params:[],returns:{type:String,desc:"The mode.",example:"active"}},nodeKind:{section:u,desc:"Returns the node type availability and capability",params:[],returns:{type:Object,desc:"Availability and Capability.",details:{availability:{type:String,desc:"Availability, either `personal` or `public`."},capability:{type:String,desc:"Capability, either `full` or `light`."}},example:{availability:"personal",capability:"light"}}},netChain:{section:c,desc:"Returns the name of the connected chain. DEPRECATED use `parity_chain` instead.",params:[],returns:{type:String,desc:"chain name.",example:"homestead"}},chain:{section:c,desc:"Returns the name of the connected chain. ",params:[],returns:{type:String,desc:'chain name, one of: "foundation", "kovan", &c. of a filename.',example:"homestead"}},netPeers:{section:c,desc:"Returns number of peers.",params:[],returns:{type:Object,desc:"Number of peers",details:{active:{type:r.Quantity,desc:"Number of active peers."},connected:{type:r.Quantity,desc:"Number of connected peers."},max:{type:r.Quantity,desc:"Maximum number of connected peers."},peers:{type:Array,desc:"List of all peers with details."}},example:{active:0,connected:25,max:25,peers:[new a.Dummy("{ ... }, { ... }, { ... }, ...")]}}},netPort:{section:c,desc:"Returns network port the node is listening on.",params:[],returns:{type:r.Quantity,desc:"Port number",example:30303}},newVault:{section:d,desc:"Creates a new vault with the given name & password",params:[{type:String,desc:"Vault name",example:"StrongVault"},{type:String,desc:"Password",example:"p@55w0rd"}],returns:{type:Boolean,desc:"True on success",example:!0}},nextNonce:{section:c,desc:"Returns next available nonce for transaction from given account. Includes pending block and transaction queue.",params:[{type:r.Address,desc:"Account",example:"0x00A289B43e1e4825DbEDF2a78ba60a640634DC40"}],returns:{type:r.Quantity,desc:"Next valid nonce",example:(0,a.fromDecimal)(12)}},nodeName:{section:u,desc:"Returns node name, set when starting parity with `--identity NAME`.",params:[],returns:{type:String,desc:"Node name.",example:"Doge"}},openVault:{section:d,desc:"Opens a vault with the given name & password",params:[{type:String,desc:"Vault name",example:"StrongVault"},{type:String,desc:"Password",example:"p@55w0rd"}],returns:{type:Boolean,desc:"True on success",example:!0}},pendingTransactions:{section:c,desc:"Returns a list of transactions currently in the queue.",params:[],returns:{type:Array,desc:"Transactions ordered by priority",details:r.TransactionResponse.details,example:[{blockHash:null,blockNumber:null,creates:null,from:"0xee3ea02840129123d5397f91be0391283a25bc7d",gas:"0x23b58",gasPrice:"0xba43b7400",hash:"0x160b3c30ab1cf5871083f97ee1cee3901cfba3b0a2258eb337dd20a7e816b36e",input:"0x095ea7b3000000000000000000000000bf4ed7b27f1d666546e30d74d50d173d20bca75400000000000000000000000000002643c948210b4bd99244ccd64d5555555555",condition:{block:1},networkId:1,nonce:"0x5",publicKey:"0x96157302dade55a1178581333e57d60ffe6fdf5a99607890456a578b4e6b60e335037d61ed58aa4180f9fd747dc50d44a7924aa026acbfb988b5062b629d6c36",r:"0x92e8beb19af2bad0511d516a86e77fa73004c0811b2173657a55797bdf8558e1",raw:"0xf8aa05850ba43b740083023b5894bb9bc244d798123fde783fcc1c72d3bb8c18941380b844095ea7b3000000000000000000000000bf4ed7b27f1d666546e30d74d50d173d20bca75400000000000000000000000000002643c948210b4bd99244ccd64d555555555526a092e8beb19af2bad0511d516a86e77fa73004c0811b2173657a55797bdf8558e1a062b4d4d125bbcb9c162453bc36ca156537543bb4414d59d1805d37fb63b351b8",s:"0x62b4d4d125bbcb9c162453bc36ca156537543bb4414d59d1805d37fb63b351b8",standardV:"0x1",to:"0xbb9bc244d798123fde783fcc1c72d3bb8c189413",transactionIndex:null,v:"0x26",value:"0x0"},new a.Dummy("{ ... }"),new a.Dummy("{ ... }")]}},pendingTransactionsStats:{section:c,desc:"Returns propagation stats for transactions in the queue.",params:[],returns:{type:Object,desc:"mapping of transaction hashes to stats.",example:{"0xdff37270050bcfba242116c745885ce2656094b2d3a0f855649b4a0ee9b5d15a":{firstSeen:3032066,propagatedTo:{"0x605e04a43b1156966b3a3b66b980c87b7f18522f7f712035f84576016be909a2798a438b2b17b1a8c58db314d88539a77419ca4be36148c086900fba487c9d39":1,"0xbab827781c852ecf52e7c8bf89b806756329f8cbf8d3d011e744a0bc5e3a0b0e1095257af854f3a8415ebe71af11b0c537f8ba797b25972f519e75339d6d1864":1}}}}},removeTransaction:{section:c,desc:"Removes transaction from local transaction pool. Scheduled transactions and not-propagated transactions are safe to remove, removal of other transactions may have no effect though.",params:[{type:r.Hash,desc:"Hash of transaction to remove.",example:"0x2547ea3382099c7c76d33dd468063b32d41016aacb02cbd51ebc14ff5d2b6a43"}],returns:{type:Object,desc:"Removed transaction or `null`.",details:r.TransactionResponse.details,example:[{blockHash:null,blockNumber:null,creates:null,from:"0xee3ea02840129123d5397f91be0391283a25bc7d",gas:"0x23b58",gasPrice:"0xba43b7400",hash:"0x160b3c30ab1cf5871083f97ee1cee3901cfba3b0a2258eb337dd20a7e816b36e",input:"0x095ea7b3000000000000000000000000bf4ed7b27f1d666546e30d74d50d173d20bca75400000000000000000000000000002643c948210b4bd99244ccd64d5555555555",condition:{block:1},networkId:1,nonce:"0x5",publicKey:"0x96157302dade55a1178581333e57d60ffe6fdf5a99607890456a578b4e6b60e335037d61ed58aa4180f9fd747dc50d44a7924aa026acbfb988b5062b629d6c36",r:"0x92e8beb19af2bad0511d516a86e77fa73004c0811b2173657a55797bdf8558e1",raw:"0xf8aa05850ba43b740083023b5894bb9bc244d798123fde783fcc1c72d3bb8c18941380b844095ea7b3000000000000000000000000bf4ed7b27f1d666546e30d74d50d173d20bca75400000000000000000000000000002643c948210b4bd99244ccd64d555555555526a092e8beb19af2bad0511d516a86e77fa73004c0811b2173657a55797bdf8558e1a062b4d4d125bbcb9c162453bc36ca156537543bb4414d59d1805d37fb63b351b8",s:"0x62b4d4d125bbcb9c162453bc36ca156537543bb4414d59d1805d37fb63b351b8",standardV:"0x1",to:"0xbb9bc244d798123fde783fcc1c72d3bb8c189413",transactionIndex:null,v:"0x26",value:"0x0"},new a.Dummy("{ ... }"),new a.Dummy("{ ... }")]}},phraseToAddress:{section:o,desc:"Converts a secret phrase into the corresponding address.",params:[{type:String,desc:"The phrase",example:"stylus outing overhand dime radial seducing harmless uselessly evasive tastiness eradicate imperfect"}],returns:{type:r.Address,desc:"Corresponding address",example:"0x004385d8be6140e6f889833f68b51e17b6eacb29"}},releasesInfo:{desc:"returns a ReleasesInfo object describing the current status of releases",params:[],returns:{type:Object,desc:"Information on current releases, `null` if not available.",details:{fork:{type:r.Quantity,desc:"Block number representing the last known fork for this chain, which may be in the future."},minor:{type:Object,desc:"Information about latest minor update to current version, `null` if this is the latest minor version."},track:{type:Object,desc:"Information about the latest release in this track."}},example:null}},registryAddress:{section:c,desc:"The address for the global registry.",params:[],returns:{type:r.Address,desc:"The registry address.",example:"0x3bb2bb5c6c9c9b7f4ef430b47dc7e026310042ea"}},rpcSettings:{section:c,desc:"Provides current JSON-RPC API settings.",params:[],returns:{type:Object,desc:"JSON-RPC settings.",details:{enabled:{type:Boolean,desc:"`true` if JSON-RPC is enabled (default)."},interface:{type:String,desc:"Interface on which JSON-RPC is running."},port:{type:r.Quantity,desc:"Port on which JSON-RPC is running."}},example:{enabled:!0,interface:"local",port:8545}}},setVaultMeta:{section:d,desc:"Sets the metadata for a specific vault",params:[{type:String,desc:"Vault name",example:"StrongVault"},{type:String,desc:"The metadata as a JSON string",example:'{"passwordHint":"something"}'}],returns:{type:Boolean,desc:"The boolean call result, true on success",example:!0}},transactionsLimit:{section:i,desc:"Changes limit for transactions in queue.",params:[],returns:{type:r.Quantity,desc:"Current max number of transactions in queue.",format:"outputBigNumberFormatter",example:1024}},unsignedTransactionsCount:{section:c,desc:"Returns number of unsigned transactions when running with Trusted Signer. Error otherwise",params:[],returns:{type:r.Quantity,desc:"Number of unsigned transactions",example:0}},versionInfo:{desc:"Provides information about running version of Parity.",params:[],returns:{type:Object,desc:"Information on current version.",details:{hash:{type:r.Hash,desc:"20 Byte hash of the current build."},track:{type:String,desc:'Track on which it was released, one of: `"stable"`, `"beta"`, `"nightly"`, `"testing"`, `"null"` (unknown or self-built).'},version:{type:Object,desc:"Version number composed of `major`, `minor` and `patch` integers."}},example:{hash:"0x2ae8b4ca278dd7b896090366615fef81cbbbc0e0",track:"null",version:{major:1,minor:6,patch:0}}}},listAccounts:{desc:"Returns all addresses if Fat DB is enabled (`--fat-db`), `null` otherwise.",section:o,params:[{type:r.Quantity,desc:"Integer number of addresses to display in a batch.",example:5},{type:r.Address,desc:"20 Bytes - Offset address from which the batch should start in order, or `null`.",example:null},{type:r.BlockNumber,desc:"integer block number, or the string `'latest'`, `'earliest'` or `'pending'`.",format:"inputDefaultBlockNumberFormatter",optional:!0}],returns:{type:Array,desc:"Requested number of `Address`es or `null` if Fat DB is not enabled.",example:["0x7205b1bb42edce6e0ced37d1fd0a9d684f5a860f","0x98a2559a814c300b274325c92df1682ae0d344e3","0x2d7a7d0adf9c5f9073fefbdc18188bd23c68b633","0xd4bb3284201db8b03c06d8a3057dd32538e3dfda","0xa6396904b08aa31300ca54278b8e066ecc38e4a0"]}},listStorageKeys:{desc:"Returns all storage keys of the given address (first parameter) if Fat DB is enabled (`--fat-db`), `null` otherwise.",params:[{type:r.Address,desc:"20 Bytes - Account for which to retrieve the storage keys.",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"},{type:r.Quantity,desc:"Integer number of addresses to display in a batch.",example:5},{type:r.Hash,desc:"32 Bytes - Offset storage key from which the batch should start in order, or `null`.",example:null},{type:r.BlockNumber,desc:"integer block number, or the string `'latest'`, `'earliest'` or `'pending'`.",format:"inputDefaultBlockNumberFormatter",optional:!0}],returns:{type:Array,desc:"Requested number of 32 byte long storage keys for the given account or `null` if Fat DB is not enabled.",example:["0xaab1a2940583e213f1d57a3ed358d5f5406177c8ff3c94516bfef3ea62d00c22","0xba8469eca5641b186e86cbc5343dfa5352df04feb4564cd3cf784f213aaa0319","0x769d107ba778d90205d7a159e820c41c20bf0783927b426c602561e74b7060e5","0x0289865bcaa58f7f5bf875495ac7af81e3630eb88a3a0358407c7051a850624a","0x32e0536502b9163b0a1ce6e3aabd95fa4a2bf602bbde1b9118015648a7a51178"]}},encryptMessage:{desc:"Encrypt some data with a public key under ECIES.",params:[{type:r.Hash,desc:"Public EC key generated with `secp256k1` curve, truncated to the last 64 bytes.",example:"0xD219959D466D666060284733A80DDF025529FEAA8337169540B3267B8763652A13D878C40830DD0952639A65986DBEC611CF2171A03CFDC37F5A40537068AA4F"},{type:r.Data,desc:"The message to encrypt.",example:(0,a.withComment)("0x68656c6c6f20776f726c64",'"hello world"')}],returns:{type:r.Data,desc:"Encrypted message.",example:"0x0491debeec5e874a453f84114c084c810708ebcb553b02f1b8c05511fa4d1a25fa38eb49a32c815e2b39b7bcd56d66648bf401067f15413dae683084ca7b01e21df89be9ec4bc6c762a657dbd3ba1540f557e366681b53629bb2c02e1443b5c0adc6b68f3442c879456d6a21ec9ed07847fa3c3ecb73ec7ee9f8e32d"}},futureTransactions:{desc:"Returns all future transactions from transaction queue.",params:[],returns:{type:Array,desc:"Transaction list.",details:r.TransactionResponse.details,example:[{hash:"0x80de421cd2e7e46824a91c343ca42b2ff339409eef09e2d9d73882462f8fce31",nonce:"0x1",blockHash:null,blockNumber:null,transactionIndex:null,from:"0xe53e478c072265e2d9a99a4301346700c5fbb406",to:"0xf5d405530dabfbd0c1cab7a5812f008aa5559adf",value:"0x2efc004ac03a4996",gasPrice:"0x4a817c800",gas:"0x5208",input:"0x",creates:null,raw:"0xf86c018504a817c80082520894f5d405530dabfbd0c1cab7a5812f008aa5559adf882efc004ac03a49968025a0b40c6967a7e8bbdfd99a25fd306b9ef23b80e719514aeb7ddd19e2303d6fc139a06bf770ab08119e67dc29817e1412a0e3086f43da308c314db1b3bca9fb6d32bd",publicKey:"0xeba33fd74f06236e17475bc5b6d1bac718eac048350d77d3fc8fbcbd85782a57c821255623c4fd1ebc9d555d07df453b2579ee557b7203fc256ca3b3401e4027",networkId:1,standardV:"0x0",v:"0x25",r:"0xb40c6967a7e8bbdfd99a25fd306b9ef23b80e719514aeb7ddd19e2303d6fc139",s:"0x6bf770ab08119e67dc29817e1412a0e3086f43da308c314db1b3bca9fb6d32bd",condition:{block:1}},new a.Dummy("{ ... }, { ... }, ...")]}},allAccountsInfo:{subdoc:f,desc:"returns a map of accounts as an object.",params:[],returns:{type:Array,desc:"Account metadata.",details:{name:{type:String,desc:"Account name."},meta:{type:String,desc:"Encoded JSON string the defines additional account metadata."},uuid:{type:String,desc:"The account Uuid, or `null` if not available/unknown/not applicable."}},example:{"0x00a289b43e1e4825dbedf2a78ba60a640634dc40":{meta:"{}",name:"Foobar",uuid:"0b9e70e6-235b-682d-a15c-2a98c71b3945"}}}},newAccountFromPhrase:{subdoc:f,desc:"Creates a new account from a recovery phrase.",params:[{type:String,desc:"Recovery phrase.",example:"stylus outing overhand dime radial seducing harmless uselessly evasive tastiness eradicate imperfect"},{type:String,desc:"Password.",example:"hunter2"}],returns:{type:r.Address,desc:"The created address.",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"}},newAccountFromSecret:{subdoc:f,desc:"Creates a new account from a private ethstore secret key.",params:[{type:r.Data,desc:"Secret, 32-byte hex",example:"0x1db2c0cf57505d0f4a3d589414f0a0025ca97421d2cd596a9486bc7e2cd2bf8b"},{type:String,desc:"Password",example:"hunter2"}],returns:{type:r.Address,desc:"The created address.",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"}},newAccountFromWallet:{subdoc:f,desc:"Creates a new account from a JSON import",params:[{type:String,desc:"Wallet JSON encoded to a string.",example:'{"id": "9c62e86b-3cf9...", ...}'},{type:String,desc:"Password.",example:"hunter2"}],returns:{type:r.Address,desc:"The created address",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"}},setAccountName:{subdoc:f,desc:"Sets a name for the account",params:[{type:r.Address,desc:"Address",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"},{type:String,desc:"Name",example:"Foobar"}],returns:{type:Boolean,desc:"`true` if the call was successful.",example:!0}},setAccountMeta:{subdoc:f,desc:"Sets metadata for the account",params:[{type:r.Address,desc:"Address",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"},{type:String,desc:"Metadata (JSON encoded)",example:'{"foo":"bar"}'}],returns:{type:Boolean,desc:"`true` if the call was successful.",example:!0}},testPassword:{subdoc:f,desc:"Checks if a given password can unlock a given account, without actually unlocking it.",params:[{type:r.Address,desc:"Account to test.",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"},{type:String,desc:"Password to test.",example:"hunter2"}],returns:{type:Boolean,desc:"`true` if the account and password are valid.",example:!0}},changePassword:{subdoc:f,desc:"Change the password for a given account.",params:[{type:r.Address,desc:"Address of the account.",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"},{type:String,desc:"Old password.",example:"hunter2"},{type:String,desc:"New password.",example:"bazqux5"}],returns:{type:Boolean,desc:"`true` if the call was successful.",example:!0}},killAccount:{subdoc:f,desc:"Deletes an account.",params:[{type:r.Address,desc:"The account to remove.",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"},{type:String,desc:"Account password.",example:"hunter2"}],returns:{type:Boolean,desc:"`true` if the call was successful.",example:!0}},removeAddress:{subdoc:f,desc:"Removes an address from the addressbook.",params:[{type:r.Address,desc:"The address to remove.",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"}],returns:{type:Boolean,desc:"`true`if the call was successful.",example:!0}},setDappAddresses:{subdoc:f,desc:"Sets the available addresses for a dapp. When provided with non-empty list changes the default account as well.",params:[{type:String,desc:"Dapp Id.",example:"web"},{type:Array,desc:"Array of available accounts available to the dapp or `null` for default list.",example:["0x407d73d8a49eeb85d32cf465507dd71d507100c1"]}],returns:{type:Boolean,desc:"`true` if the call was successful.",example:!0}},getDappAddresses:{subdoc:f,desc:"Returns the list of accounts available to a specific dapp.",params:[{type:String,desc:"Dapp Id.",example:"web"}],returns:{type:Array,desc:"The list of available accounts.",example:["0x407d73d8a49eeb85d32cf465507dd71d507100c1"]}},setDappDefaultAddress:{subdoc:f,desc:"Changes dapp default address. Does not affect other accounts exposed for this dapp, but default account will always be retured as the first one.",params:[{type:String,desc:"Dapp Id.",example:"web"},{type:r.Address,desc:"Default Address.",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"}],returns:{type:Boolean,desc:"`true` if the call was successful",example:!0}},getDappDefaultAddress:{subdoc:f,desc:"Returns a default account available to a specific dapp.",params:[{type:String,desc:"Dapp Id.",example:"web"}],returns:{type:r.Address,desc:"Default Address",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"}},setNewDappsAddresses:{subdoc:f,desc:"Sets the list of accounts available to new dapps.",params:[{type:Array,desc:"List of accounts available by default or `null` for all accounts.",example:["0x407d73d8a49eeb85d32cf465507dd71d507100c1"]}],returns:{type:Boolean,desc:"`true` if the call was successful",example:!0}},getNewDappsAddresses:{subdoc:f,desc:"Returns the list of accounts available to a new dapps.",params:[],returns:{type:Array,desc:"The list of available accounts, can be `null`.",example:["0x407d73d8a49eeb85d32cf465507dd71d507100c1"]}},setNewDappsDefaultAddress:{subdoc:f,desc:"Changes global default address. This setting may be overriden for a specific dapp.",params:[{type:r.Address,desc:"Default Address.",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"}],returns:{type:Boolean,desc:"`true` if the call was successful",example:!0}},getNewDappsDefaultAddress:{subdoc:f,desc:"Returns a default account available to dapps.",params:[],returns:{type:r.Address,desc:"Default Address",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"}},listRecentDapps:{subdoc:f,desc:"Returns a list of the most recent active dapps.",params:[],returns:{type:Array,desc:"Array of Dapp Ids.",example:["web"]}},importGethAccounts:{subdoc:f,desc:"Imports a list of accounts from Geth.",params:[{type:Array,desc:"List of the Geth addresses to import.",example:["0x407d73d8a49eeb85d32cf465507dd71d507100c1"]}],returns:{type:Array,desc:"Array of the imported addresses.",example:["0x407d73d8a49eeb85d32cf465507dd71d507100c1"]}},listGethAccounts:{subdoc:f,desc:"Returns a list of the accounts available from Geth.",params:[],returns:{type:Array,desc:"20 Bytes addresses owned by the client.",example:["0x407d73d8a49eeb85d32cf465507dd71d507100c1"]}},deriveAddressHash:{subdoc:f,desc:"Derive new address from given account address using specific hash.",params:[{type:r.Address,desc:"Account address to derive from.",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"},{type:String,desc:"Password to the account.",example:"hunter2"},{type:Object,desc:'Derivation hash and type (`soft` or `hard`). E.g. `{ hash: "0x123..123", type: "hard" }`.',example:{hash:"0x2547ea3382099c7c76d33dd468063b32d41016aacb02cbd51ebc14ff5d2b6a43",type:"hard"}},{type:Boolean,desc:"Flag indicating if the account should be saved.",example:!1}],returns:{type:r.Address,desc:"20 Bytes new derived address.",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"}},deriveAddressIndex:{subdoc:f,desc:"Derive new address from given account address using hierarchical derivation (sequence of 32-bit integer indices).",params:[{type:r.Address,desc:"Account address to export.",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"},{type:String,desc:"Password to the account.",example:"hunter2"},{type:Array,desc:'Hierarchical derivation sequence of index and type (`soft` or `hard`). E.g. `[{index:1,type:"hard"},{index:2,type:"soft"}]`.',example:[{index:1,type:"hard"},{index:2,type:"soft"}]},{type:Boolean,desc:"Flag indicating if the account should be saved.",example:!1}],returns:{type:r.Address,desc:"20 Bytes new derived address.",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"}},exportAccount:{subdoc:f,desc:"Returns a standard wallet file for given account if password matches.",params:[{type:r.Address,desc:"Account address to export.",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"},{type:String,desc:"Password to the account.",example:"hunter2"}],returns:{type:Object,desc:"Standard wallet JSON.",example:{address:"0042e5d2a662eeaca8a7e828c174f98f35d8925b",crypto:{cipher:"aes-128-ctr",cipherparams:{iv:"a1c6ff99070f8032ca1c4e8add006373"},ciphertext:"df27e3db64aa18d984b6439443f73660643c2d119a6f0fa2fa9a6456fc802d75",kdf:"pbkdf2",kdfparams:{c:10240,dklen:32,prf:"hmac-sha256",salt:"ddc325335cda5567a1719313e73b4842511f3e4a837c9658eeb78e51ebe8c815"},mac:"3dc888ae79cbb226ff9c455669f6cf2d79be72120f2298f6cb0d444fddc0aa3d"},id:"6a186c80-7797-cff2-bc2e-7c1d6a6cc76e",meta:'{"passwordHint":"parity-export-test","timestamp":1490017814987}',name:"parity-export-test",version:3}}},setMinGasPrice:{subdoc:l,desc:"Changes minimal gas price for transaction to be accepted to the queue.",params:[{type:r.Quantity,desc:"Minimal gas price",format:"utils.toHex",example:(0,a.fromDecimal)(1e3)}],returns:{type:Boolean,desc:"whether the call was successful",example:!0}},setGasFloorTarget:{subdoc:l,desc:"Sets a new gas floor target for mined blocks..",params:[{type:r.Quantity,desc:"(default: `0x0`) Gas floor target.",format:"utils.toHex",example:(0,a.fromDecimal)(1e3)}],returns:{type:Boolean,desc:"`true` if the call was successful.",example:!0}},setGasCeilTarget:{subdoc:l,desc:"Sets new gas ceiling target for mined blocks.",params:[{type:r.Quantity,desc:"(default: `0x0`) Gas ceiling target.",format:"utils.toHex",example:(0,a.fromDecimal)(1e10)}],returns:{type:Boolean,desc:"`true` if the call was successful.",example:!0}},setExtraData:{subdoc:l,desc:"Changes extra data for newly mined blocks",params:[{type:r.Data,desc:"Extra Data",format:"utils.toHex",example:"0x"}],returns:{type:Boolean,desc:"whether the call was successful",example:!0}},setAuthor:{subdoc:l,desc:"Changes author (coinbase) for mined blocks.",params:[{type:r.Address,desc:"20 Bytes - Address",format:"inputAddressFormatter",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"}],returns:{type:Boolean,desc:"`true` if the call was successful.",example:!0}},setMaxTransactionGas:{subdoc:l,desc:"Sets the maximum amount of gas a single transaction may consume.",params:[{type:r.Quantity,desc:"Gas amount",format:"utils.toHex",example:(0,a.fromDecimal)(1e5)}],returns:{type:Boolean,desc:"`true` if the call was successful.",example:!0}},setTransactionsLimit:{subdoc:l,desc:"Changes limit for transactions in queue.",params:[{type:r.Quantity,desc:"New Limit",format:"utils.toHex",example:(0,a.fromDecimal)(1e3)}],returns:{type:Boolean,desc:"whether the call was successful",example:!0}},addReservedPeer:{subdoc:l,desc:"Add a reserved peer.",params:[{type:String,desc:"Enode address",example:"enode://a979fb575495b8d6db44f750317d0f4622bf4c2aa3365d6af7c284339968eef29b69ad0dce72a4d8db5ebb4968de0e3bec910127f134779fbcb0cb6d3331163c@22.99.55.44:7770"}],returns:{type:Boolean,desc:"`true` if successful.",example:!0}},removeReservedPeer:{subdoc:l,desc:"Remove a reserved peer.",params:[{type:String,desc:"Encode address",example:"enode://a979fb575495b8d6db44f750317d0f4622bf4c2aa3365d6af7c284339968eef29b69ad0dce72a4d8db5ebb4968de0e3bec910127f134779fbcb0cb6d3331163c@22.99.55.44:7770"}],returns:{type:Boolean,desc:"`true` if successful.",example:!0}},dropNonReservedPeers:{subdoc:l,desc:"Set Parity to drop all non-reserved peers. To restore default behavior call [parity_acceptNonReservedPeers](#parity_acceptnonreservedpeers).",params:[],returns:{type:Boolean,desc:"`true` if successful.",example:!0}},acceptNonReservedPeers:{subdoc:l,desc:"Set Parity to accept non-reserved peers (default behavior).",params:[],returns:{type:Boolean,desc:"`true` if successful.",example:!0}},hashContent:{subdoc:l,desc:"Creates a hash of a file at a given URL.",params:[{type:String,desc:"The url of the content.",example:"https://raw.githubusercontent.com/paritytech/parity/master/README.md"}],returns:{type:r.Hash,desc:"The SHA-3 hash of the content.",example:"0x2547ea3382099c7c76d33dd468063b32d41016aacb02cbd51ebc14ff5d2b6a43"}},setChain:{subdoc:l,desc:"Sets the network spec file Parity is using.",params:[{type:String,desc:'Chain spec name, one of: "foundation", "ropsten", "morden", "kovan", "olympic", "classic", "dev", "expanse" or a filename.',example:"foundation"}],returns:{type:Boolean,desc:"`true` if the call succeeded.",example:!0}},setMode:{subdoc:l,desc:"Changes the operating mode of Parity.",params:[{type:String,desc:'The mode to set, one of:\n * `"active"` - Parity continuously syncs the chain.\n * `"passive"` - Parity syncs initially, then sleeps and wakes regularly to resync.\n * `"dark"` - Parity syncs only when the RPC is active.\n * `"offline"` - Parity doesn\'t sync.\n',example:"passive"}],returns:{type:Boolean,desc:"`true` if the call succeeded.",example:!0}},setEngineSigner:{subdoc:l,desc:"Sets an authority account for signing consensus messages. For more information check the [[Proof of Authority Chains]] page.",params:[{type:r.Address,desc:"Identifier of a valid authority account.",example:"0x407d73d8a49eeb85d32cf465507dd71d507100c1"},{type:String,desc:"Passphrase to unlock the account.",example:"hunter2"}],returns:{type:Boolean,desc:"True if the call succeeded",example:!0}},upgradeReady:{subdoc:l,desc:"Returns a ReleaseInfo object describing the release which is available for upgrade or `null` if none is available.",params:[],returns:{type:Object,desc:"Details or `null` if no new release is available.",details:{version:{type:Object,desc:"Information on the version."},is_critical:{type:Boolean,desc:"Does this release contain critical security updates?"},fork:{type:r.Quantity,desc:"The latest fork that this release can handle."},binary:{type:r.Data,desc:"Keccak-256 checksum of the release parity binary, if known.",optional:!0}},example:null}},executeUpgrade:{subdoc:l,desc:"Attempts to upgrade Parity to the version specified in [parity_upgradeReady](#parity_upgradeready).",params:[],returns:{type:Boolean,desc:"returns `true` if the upgrade to the new release was successfully executed, `false` if not.",example:!0}},postSign:{section:o,desc:"Request an arbitrary transaction to be signed by an account.",params:[{type:r.Address,desc:"Account address.",example:"0xb60e8dd61c5d32be8058bb8eb970870f07233155"},{type:r.Hash,desc:"Transaction hash.",example:"0x8cda01991ae267a539135736132f1f987e76868ce0269b7537d3aab37b7b185e"}],returns:{type:r.Quantity,desc:"The id of the request to the signer. If the account was already unlocked, returns `Hash` of the transaction instead.",example:"0x1"}},postTransaction:{section:o,desc:"Posts a transaction to the signer without waiting for the signer response.",params:[{type:r.TransactionRequest,desc:"see [`eth_sendTransaction`](JSONRPC-eth-module#eth_sendtransaction).",format:"inputCallFormatter",example:{from:"0xb60e8dd61c5d32be8058bb8eb970870f07233155",to:"0xd46e8dd67c5d32be8058bb8eb970870f07244567",gas:(0,a.fromDecimal)(30400),gasPrice:(0,a.fromDecimal)(1e13),value:(0,a.fromDecimal)(2441406250),data:"0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",condition:{block:354221,time:new Date}}}],returns:{type:r.Quantity,desc:"The id of the request to the signer. If the account was already unlocked, returns `Hash` of the transaction instead.",format:"utils.toDecimal",example:"0x1"}},checkRequest:{section:o,desc:"Get the the transaction hash of the request previously posted to [`parity_postTransaction`](#parity_posttransaction) or [`parity_postSign`](#parity_postsign). Will return a JSON-RPC error if the request was rejected.",params:[{type:r.Quantity,desc:"The id of the request sent to the signer.",example:"0x1"}],returns:{type:r.Hash,desc:"32 Bytes - the transaction hash or `null` if the request hasn't been signed yet.",example:"0xde8dfd9642f7eeef12402f2a560dbf40921b4f0bda01fb84709b9d71f6c181be"}},decryptMessage:{desc:"Decrypt a message encrypted with a ECIES public key.",params:[{type:r.Address,desc:"Account which can decrypt the message.",example:"0x00a329c0648769a73afac7f9381e08fb43dbea72"},{type:r.Data,desc:"Encrypted message.",example:"0x0405afee7fa2ab3e48c27b00d543389270cb7267fc191ca1311f297255a83cbe8d77a4ba135b51560700a582924fa86d2b19029fcb50d2b68d60a7df1ba81df317a19c8def117f2b9cf8c2618be0e3f146a5272fb9e5528719d2d7a1bd91fa620901cffa756305c79c093e7af30fa3c1587029421351c34a7c1e5a2b"}],returns:{type:r.Data,desc:"Decrypted message.",example:(0,a.withComment)("0x68656c6c6f20776f726c64","hello world")}},signMessage:{desc:"Sign the hashed message bytes with the given account.",params:[{type:r.Address,desc:"Account which signs the message.",example:"0xc171033d5cbff7175f29dfd3a63dda3d6f8f385e"},{type:String,desc:"Passphrase to unlock the account.",example:"password1"},{type:r.Data,desc:"Hashed message.",example:"0xbc36789e7a1e281436464229828f817d6612f7b477d66591ff96a9e064bcc98a"}],returns:{type:r.Data,desc:"Message signature.",example:"0x1d9e33a8cf8bfc089a172bca01da462f9e359c6cb1b0f29398bc884e4d18df4f78588aee4fb5cc067ca62d2abab995e0bba29527be6ac98105b0320020a2efaf00"}},wsUrl:{section:u,desc:"Returns the hostname and the port of WebSockets/Signer server, error if not enabled.",params:[],returns:{type:String,desc:"The hostname and port number",example:"localhost:8546"}},composeTransaction:{desc:"Given partial transaction request produces transaction with all fields filled in. Such transaction can be then signed externally.",params:[{type:r.TransactionRequest,desc:"see [`eth_sendTransaction`](JSONRPC-eth-module#eth_sendtransaction).",format:"inputCallFormatter",example:{from:"0xb60e8dd61c5d32be8058bb8eb970870f07233155",to:"0xd46e8dd67c5d32be8058bb8eb970870f07244567",value:(0,a.fromDecimal)(2441406250)}}],returns:{type:Object,desc:"Transaction object (same as the parameter) with missing optional fields filled in by defaults.",example:{condition:null,data:"0x",from:"0xb60e8dd61c5d32be8058bb8eb970870f07233155",gas:"0xe57e0",gasPrice:"0x4a817c800",nonce:"0x0",to:"0xd46e8dd67c5d32be8058bb8eb970870f07244567",value:"0x9184e72a"}}},getBlockHeaderByNumber:{desc:"Get block header. Same as [`eth_getBlockByNumber`](JSONRPC-eth-module#eth_getblockbynumber) but without uncles and transactions.",params:[{type:r.BlockNumber,desc:"integer of a block number, or the string `'earliest'`, `'latest'` or `'pending'`, as in the [default block parameter](#the-default-block-parameter).",example:(0,a.fromDecimal)(436)}],returns:{type:Object,desc:"Block header",example:{author:"0xbb7b8287f3f0a933474a79eae42cbca977791171",difficulty:"0x4ea3f27bc",extraData:"0x476574682f4c5649562f76312e302e302f6c696e75782f676f312e342e32",gasLimit:"0x1388",gasUsed:"0x0",hash:"0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae",logsBloom:"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",miner:"0xbb7b8287f3f0a933474a79eae42cbca977791171",mixHash:"0x4fffe9ae21f1c9e15207b1f472d5bbdd68c9595d461666602f2be20daf5e7843",nonce:"0x689056015818adbe",number:"0x1b4",parentHash:"0xe99e022112df268087ea7eafaf4790497fd21dbeeb6bd7a1721df161a6657a54",receiptsRoot:"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",sealFields:["0xa04fffe9ae21f1c9e15207b1f472d5bbdd68c9595d461666602f2be20daf5e7843","0x88689056015818adbe"],sha3Uncles:"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",size:"0x21b",stateRoot:"0xddc8b0234c2e0cad087c8b389aa7ef01f7d79b2570bccb77ce48648aa61c904d",timestamp:"0x55ba467c",transactionsRoot:"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"}}},cidV0:{desc:"Compute a v0 IPFS Content ID from protobuf encoded bytes.",params:[{type:r.Data,desc:"to encode.",example:"0x666f6f626172"}],returns:{type:String,desc:"Base58 encoded CID",example:"QmSbFjqjd6nFwNHqsBCC7SK8GShGcayLUEtysJjNGhZAnC"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(77),a=n(76);t.default={generateAuthorizationToken:{desc:"Generates a new authorization token.",params:[],returns:{type:String,desc:"The new authorization token.",example:"bNGY-iIPB-j7zK-RSYZ"}},generateWebProxyAccessToken:{desc:"Generates a new web proxy access token.",params:[],returns:{type:String,desc:"The new web proxy access token.",example:"MOWm0tEJjwthDiTU"}},requestsToConfirm:{desc:"Returns a list of the transactions awaiting authorization.",params:[],returns:{type:Array,desc:"A list of the outstanding transactions.",example:new a.Dummy("[ ... ]")}},confirmRequest:{desc:"Confirm a request in the signer queue",params:[{type:r.Quantity,desc:"The request id.",example:(0,a.fromDecimal)(1)},{type:Object,desc:"Modify the transaction before confirmation.",details:{gasPrice:{type:r.Quantity,desc:"Modify the gas price provided by the sender in Wei.",optional:!0},gas:{type:r.Quantity,desc:"Gas provided by the sender in Wei.",optional:!0},condition:{type:Object,desc:"Condition for scheduled transaction. Can be either an integer block number `{ block: 1 }` or UTC timestamp (in seconds) `{ timestamp: 1491290692 }`.",optional:!0}},example:{}},{type:String,desc:"The account password",example:"hunter2"}],returns:{type:Object,desc:"The status of the confirmation, depending on the request type.",example:{}}},confirmRequestRaw:{desc:"Confirm a request in the signer queue providing signed request.",params:[{type:r.Quantity,desc:"Integer - The request id",example:(0,a.fromDecimal)(1)},{type:r.Data,desc:"Signed request (RLP encoded transaction)",example:"0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}],returns:{type:Object,desc:"The status of the confirmation, depending on the request type.",example:{}}},confirmRequestWithToken:{desc:"Confirm specific request with rolling token.",params:[{type:r.Quantity,desc:"The request id.",example:(0,a.fromDecimal)(1)},{type:Object,desc:"Modify the transaction before confirmation.",details:{gasPrice:{type:r.Quantity,desc:"Modify the gas price provided by the sender in Wei.",optional:!0},gas:{type:r.Quantity,desc:"Gas provided by the sender in Wei.",optional:!0},condition:{type:Object,desc:"Conditional submission of the transaction. Can be either an integer block number `{ block: 1 }` or UTC timestamp (in seconds) `{ time: 1491290692 }` or `null`.",optional:!0}},example:{}},{type:String,desc:"Password (initially) or a token returned by the previous call.",example:"hunter2"}],returns:{type:Object,desc:"Status.",details:{result:{type:Object,desc:"The status of the confirmation, depending on the request type."},token:{type:String,desc:"Token used to authenticate the next request."}},example:{result:new a.Dummy("{ ... }"),token:"cAF2w5LE7XUZ3v3N"}}},rejectRequest:{desc:"Rejects a request in the signer queue",params:[{type:r.Quantity,desc:"Integer - The request id",example:(0,a.fromDecimal)(1)}],returns:{type:Boolean,desc:"The status of the rejection",example:!0}},signerEnabled:{nodoc:"Not present in Rust code",desc:"Returns whether signer is enabled/disabled.",params:[],returns:{type:Boolean,desc:"`true` when enabled, `false` when disabled.",example:!0}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(77),a=n(76),o="Transaction-Trace Filtering",s="Ad-hoc Tracing";t.default=(0,a.withPreamble)("\n\nThe trace module is for getting a deeper insight into transaction processing.\nIt includes two sets of calls; the transaction trace filtering API and the ad-hoc tracing API.\n\n**Note:** In order to use these API Parity must be fully synced with flags `$ parity --tracing on`.\n\n## The Ad-hoc Tracing API\n\nThe ad-hoc tracing API allows you to perform a number of different diagnostics on calls or transactions,\neither historical ones from the chain or hypothetical ones not yet mined. The diagnostics include:\n\n- `trace` **Transaction trace**. An equivalent trace to that in the previous section.\n- `vmTrace` **Virtual Machine execution trace**. Provides a full trace of the VM's state throughout the execution of the transaction, including for any subcalls.\n- `stateDiff` **State difference**. Provides information detailing all altered portions of the Ethereum state made due to the execution of the transaction.\n\nThere are three means of providing a transaction to execute; either providing the same information as when making\na call using `eth_call` (see `trace_call`), through providing raw, signed, transaction data as when using\n`eth_sendRawTransaction` (see `trace_rawTransaction`) or simply a transaction hash for a previously mined\ntransaction (see `trace_replayTransaction`). In the latter case, your node must be in archive mode or the\ntransaction should be within the most recent 1000 blocks.\n\n## The Transaction-Trace Filtering API\n\nThese APIs allow you to get a full *externality* trace on any transaction executed throughout the Parity chain.\nUnlike the log filtering API, you are able to search and filter based only upon address information.\nInformation returned includes the execution of all `CREATE`s, `SUICIDE`s and all variants of `CALL` together\nwith input data, output data, gas usage, amount transferred and the success status of each individual action.\n\n### `traceAddress` field\n\nThe `traceAddress` field of all returned traces, gives the exact location in the call trace [index in root,\nindex in first `CALL`, index in second `CALL`, ...].\n\ni.e. if the trace is:\n```\nA\n CALLs B\n CALLs G\n CALLs C\n CALLs G\n```\nthen it should look something like:\n\n`[ {A: []}, {B: [0]}, {G: [0, 0]}, {C: [1]}, {G: [1, 0]} ]`\n\n",{block:{section:o,desc:"Returns traces created at given block.",params:[{type:r.BlockNumber,desc:"Integer of a block number, or the string `'earliest'`, `'latest'` or `'pending'`.",example:(0,a.fromDecimal)(3068185)}],returns:{type:Array,desc:"Block traces.",example:[{action:{callType:"call",from:"0xaa7b131dc60b80d3cf5e59b5a21a666aa039c951",gas:"0x0",input:"0x",to:"0xd40aba8166a212d6892125f079c33e6f5ca19814",value:"0x4768d7effc3fbe"},blockHash:"0x7eb25504e4c202cf3d62fd585d3e238f592c780cca82dacb2ed3cb5b38883add",blockNumber:3068185,result:{gasUsed:"0x0",output:"0x"},subtraces:0,traceAddress:[],transactionHash:"0x07da28d752aba3b9dd7060005e554719c6205c8a3aea358599fc9b245c52f1f6",transactionPosition:0,type:"call"},new a.Dummy("...")]}},filter:{section:o,desc:"Returns traces matching given filter",params:[{type:Object,desc:"The filter object",details:{fromBlock:{type:r.BlockNumber,desc:"From this block.",optional:!0},toBlock:{type:r.BlockNumber,desc:"To this block.",optional:!0},fromAddress:{type:Array,desc:"Sent from these addresses.",optional:!0},toAddress:{type:r.Address,desc:"Sent to these addresses.",optional:!0}},example:{fromBlock:(0,a.fromDecimal)(3068100),toBlock:(0,a.fromDecimal)(3068200),toAddress:["0x8bbB73BCB5d553B5A556358d27625323Fd781D37"]}}],returns:{type:Array,desc:"Traces matching given filter",example:[{action:{callType:"call",from:"0x32be343b94f860124dc4fee278fdcbd38c102d88",gas:"0x4c40d",input:"0x",to:"0x8bbb73bcb5d553b5a556358d27625323fd781d37",value:"0x3f0650ec47fd240000"},blockHash:"0x86df301bcdd8248d982dbf039f09faf792684e1aeee99d5b58b77d620008b80f",blockNumber:3068183,result:{gasUsed:"0x0",output:"0x"},subtraces:0,traceAddress:[],transactionHash:"0x3321a7708b1083130bd78da0d62ead9f6683033231617c9d268e2c7e3fa6c104",transactionPosition:3,type:"call"},new a.Dummy("...")]}},get:{section:o,desc:"Returns trace at given position.",params:[{type:r.Hash,desc:"Transaction hash.",example:"0x17104ac9d3312d8c136b7f44d4b8b47852618065ebfa534bd2d3b5ef218ca1f3"},{type:Array,desc:"Index positions of the traces.",example:["0x0"]}],returns:{type:Object,desc:"Trace object",example:{action:{callType:"call",from:"0x1c39ba39e4735cb65978d4db400ddd70a72dc750",gas:"0x13e99",input:"0x16c72721",to:"0x2bd2326c993dfaef84f696526064ff22eba5b362",value:"0x0"},blockHash:"0x7eb25504e4c202cf3d62fd585d3e238f592c780cca82dacb2ed3cb5b38883add",blockNumber:3068185,result:{gasUsed:"0x183",output:"0x0000000000000000000000000000000000000000000000000000000000000001"},subtraces:0,traceAddress:[0],transactionHash:"0x17104ac9d3312d8c136b7f44d4b8b47852618065ebfa534bd2d3b5ef218ca1f3",transactionPosition:2,type:"call"}}},transaction:{section:o,desc:"Returns all traces of given transaction",params:[{type:r.Hash,desc:"Transaction hash",example:"0x17104ac9d3312d8c136b7f44d4b8b47852618065ebfa534bd2d3b5ef218ca1f3"}],returns:{type:Array,desc:"Traces of given transaction",example:[{action:{callType:"call",from:"0x1c39ba39e4735cb65978d4db400ddd70a72dc750",gas:"0x13e99",input:"0x16c72721",to:"0x2bd2326c993dfaef84f696526064ff22eba5b362",value:"0x0"},blockHash:"0x7eb25504e4c202cf3d62fd585d3e238f592c780cca82dacb2ed3cb5b38883add",blockNumber:3068185,result:{gasUsed:"0x183",output:"0x0000000000000000000000000000000000000000000000000000000000000001"},subtraces:0,traceAddress:[0],transactionHash:"0x17104ac9d3312d8c136b7f44d4b8b47852618065ebfa534bd2d3b5ef218ca1f3",transactionPosition:2,type:"call"},new a.Dummy("...")]}},call:{section:s,desc:"Executes the given call and returns a number of possible traces for it.",params:[{type:r.CallRequest,desc:"Call options, same as `eth_call`.",example:new a.Dummy("{ ... }")},{type:Array,desc:'Type of trace, one or more of: `"vmTrace"`, `"trace"`, `"stateDiff"`.',example:["trace"]},{type:r.BlockNumber,optional:!0,desc:"Integer of a block number, or the string `'earliest'`, `'latest'` or `'pending'`."}],returns:{type:Array,desc:"Block traces",example:{output:"0x",stateDiff:null,trace:[{action:new a.Dummy("{ ... }"),result:{gasUsed:"0x0",output:"0x"},subtraces:0,traceAddress:[],type:"call"}],vmTrace:null}}},rawTransaction:{section:s,desc:"Traces a call to `eth_sendRawTransaction` without making the call, returning the traces",params:[{type:r.Data,desc:"Raw transaction data.",example:"0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"},{type:Array,desc:'Type of trace, one or more of: `"vmTrace"`, `"trace"`, `"stateDiff"`.',example:["trace"]}],returns:{type:Object,desc:"Block traces.",example:{output:"0x",stateDiff:null,trace:[{action:new a.Dummy("{ ... }"),result:{gasUsed:"0x0",output:"0x"},subtraces:0,traceAddress:[],type:"call"}],vmTrace:null}}},replayTransaction:{section:s,desc:"Replays a transaction, returning the traces.",params:[{type:r.Hash,desc:"Transaction hash.",example:"0x02d4a872e096445e80d05276ee756cefef7f3b376bcec14246469c0cd97dad8f"},{type:Array,desc:'Type of trace, one or more of: `"vmTrace"`, `"trace"`, `"stateDiff"`.',example:["trace"]}],returns:{type:Object,desc:"Block traces.",example:{output:"0x",stateDiff:null,trace:[{action:new a.Dummy("{ ... }"),result:{gasUsed:"0x0",output:"0x"},subtraces:0,traceAddress:[],type:"call"}],vmTrace:null}}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=e._extend.Method,n=function(e,n){return(0,s.default)(e).map(function(r){return new t({name:r,call:n+"_{method}",params:e[r].params.length})})};return[{property:"parity",methods:n(c.default,"parity"),properties:[]},{property:"signer",methods:n(d.default,"signer"),properties:[]},{property:"trace",methods:n(f.default,"trace"),properties:[]}]}Object.defineProperty(t,"__esModule",{value:!0});var o=n(26),s=r(o);t.default=a;var i=n(188),c=r(i),u=n(189),d=r(u),l=n(190),f=r(l)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){!function(r,a,o){e.exports=t=a(n(2),n(34),n(36),n(35),n(4))}(0,function(e){return function(){var t=e,n=t.lib,r=n.BlockCipher,a=t.algo,o=[],s=[],i=[],c=[],u=[],d=[],l=[],f=[],p=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=0,r=0,t=0;t<256;t++){var a=r^r<<1^r<<2^r<<3^r<<4;a=a>>>8^255&a^99,o[n]=a,s[a]=n;var m=e[n],b=e[m],y=e[b],g=257*e[a]^16843008*a;i[n]=g<<24|g>>>8,c[n]=g<<16|g>>>16,u[n]=g<<8|g>>>24,d[n]=g;var g=16843009*y^65537*b^257*m^16843008*n;l[a]=g<<24|g>>>8,f[a]=g<<16|g>>>16,p[a]=g<<8|g>>>24,h[a]=g,n?(n=m^e[e[e[y^m]]],r^=e[e[r]]):n=r=1}}();var m=[0,1,2,4,8,16,32,64,128,27,54],b=a.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=this._nRounds=n+6,a=4*(r+1),s=this._keySchedule=[],i=0;i6&&i%n==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=c<<8|c>>>24,c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=m[i/n|0]<<24),s[i]=s[i-n]^c}for(var u=this._invKeySchedule=[],d=0;d>>24]]^f[o[c>>>16&255]]^p[o[c>>>8&255]]^h[o[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,i,c,u,d,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,l,f,p,h,s);var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,a,o,s,i){for(var c=this._nRounds,u=e[t]^n[0],d=e[t+1]^n[1],l=e[t+2]^n[2],f=e[t+3]^n[3],p=4,h=1;h>>24]^a[d>>>16&255]^o[l>>>8&255]^s[255&f]^n[p++],b=r[d>>>24]^a[l>>>16&255]^o[f>>>8&255]^s[255&u]^n[p++],y=r[l>>>24]^a[f>>>16&255]^o[u>>>8&255]^s[255&d]^n[p++],g=r[f>>>24]^a[u>>>16&255]^o[d>>>8&255]^s[255&l]^n[p++];u=m,d=b,l=y,f=g}var m=(i[u>>>24]<<24|i[d>>>16&255]<<16|i[l>>>8&255]<<8|i[255&f])^n[p++],b=(i[d>>>24]<<24|i[l>>>16&255]<<16|i[f>>>8&255]<<8|i[255&u])^n[p++],y=(i[l>>>24]<<24|i[f>>>16&255]<<16|i[u>>>8&255]<<8|i[255&d])^n[p++],g=(i[f>>>24]<<24|i[u>>>16&255]<<16|i[d>>>8&255]<<8|i[255&l])^n[p++];e[t]=m,e[t+1]=b,e[t+2]=y,e[t+3]=g},keySize:8});t.AES=r._createHelper(b)}(),e.AES})},function(e,t,n){!function(r,a){e.exports=t=a(n(2))}(0,function(e){return function(){function t(e){return e<<8&4278255360|e>>>8&16711935}var n=e,r=n.lib,a=r.WordArray,o=n.enc;o.Utf16=o.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],a=0;a>>2]>>>16-a%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>1]|=e.charCodeAt(r)<<16-r%2*16;return a.create(n,2*t)}};o.Utf16LE={stringify:function(e){for(var n=e.words,r=e.sigBytes,a=[],o=0;o>>2]>>>16-o%4*8&65535);a.push(String.fromCharCode(s))}return a.join("")},parse:function(e){for(var n=e.length,r=[],o=0;o>>1]|=t(e.charCodeAt(o)<<16-o%2*16);return a.create(r,2*n)}}}(),e.enc.Utf16})},function(e,t,n){!function(r,a,o){e.exports=t=a(n(2),n(4))}(0,function(e){return function(t){var n=e,r=n.lib,a=r.CipherParams,o=n.enc,s=o.Hex,i=n.format;i.Hex={stringify:function(e){return e.ciphertext.toString(s)},parse:function(e){var t=s.parse(e);return a.create({ciphertext:t})}}}(),e.format.Hex})},function(e,t,n){!function(r,a,o){e.exports=t=a(n(2),n(64),n(249),n(246),n(34),n(36),n(91),n(126),n(265),n(128),n(266),n(127),n(264),n(90),n(260),n(35),n(4),n(250),n(252),n(251),n(254),n(253),n(255),n(256),n(257),n(259),n(258),n(247),n(245),n(267),n(263),n(262),n(261))}(0,function(e){return e})},function(e,t,n){!function(r,a){e.exports=t=a(n(2))}(0,function(e){return function(){if("function"==typeof ArrayBuffer){var t=e,n=t.lib,r=n.WordArray,a=r.init;(r.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],r=0;r>>2]|=e[r]<<24-r%4*8;a.call(this,n,t)}else a.apply(this,arguments)}).prototype=r}}(),e.lib.WordArray})},function(e,t,n){!function(r,a,o){e.exports=t=a(n(2),n(4))}(0,function(e){return e.mode.CFB=function(){function t(e,t,n,r){var a=this._iv;if(a){var o=a.slice(0);this._iv=void 0}else var o=this._prevBlock;r.encryptBlock(o,0);for(var s=0;s>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var r=e.lib.BlockCipherMode.extend(),a=r.Encryptor=r.extend({processBlock:function(e,t){var r=this._cipher,a=r.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),n(s);var i=s.slice(0);r.encryptBlock(i,0);for(var c=0;c>>2]|=a<<24-o%4*8,e.sigBytes+=a},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923})},function(e,t,n){!function(r,a,o){e.exports=t=a(n(2),n(4))}(0,function(e){return e.pad.Iso10126={pad:function(t,n){var r=4*n,a=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(a-1)).concat(e.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126})},function(e,t,n){!function(r,a,o){e.exports=t=a(n(2),n(4))}(0,function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971})},function(e,t,n){!function(r,a,o){e.exports=t=a(n(2),n(4))}(0,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})},function(e,t,n){!function(r,a,o){e.exports=t=a(n(2),n(4))}(0,function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},e.pad.ZeroPadding})},function(e,t,n){!function(r,a,o){e.exports=t=a(n(2),n(91),n(90))}(0,function(e){return function(){var t=e,n=t.lib,r=n.Base,a=n.WordArray,o=t.algo,s=o.SHA1,i=o.HMAC,c=o.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:s,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=i.create(n.hasher,e),o=a.create(),s=a.create([1]),c=o.words,u=s.words,d=n.keySize,l=n.iterations;c.length>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(var n=0;n<8;n++){var r=e[n]+t[n],a=65535&r,o=r>>>16,s=((a*a>>>17)+a*o>>>15)+o*o,u=((4294901760&r)*r|0)+((65535&r)*r|0);c[n]=s^u}e[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,e[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,e[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,e[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,e[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,e[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,e[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,e[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}var n=e,r=n.lib,a=r.StreamCipher,o=n.algo,s=[],i=[],c=[],u=o.RabbitLegacy=a.extend({_doReset:function(){var e=this._key.words,n=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)t.call(this);for(var o=0;o<8;o++)a[o]^=r[o+4&7];if(n){var s=n.words,i=s[0],c=s[1],u=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),d=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),l=u>>>16|4294901760&d,f=d<<16|65535&u;a[0]^=u,a[1]^=l,a[2]^=d,a[3]^=f,a[4]^=u,a[5]^=l,a[6]^=d,a[7]^=f;for(var o=0;o<4;o++)t.call(this)}},_doProcessBlock:function(e,n){var r=this._X;t.call(this),s[0]=r[0]^r[5]>>>16^r[3]<<16,s[1]=r[2]^r[7]>>>16^r[5]<<16,s[2]=r[4]^r[1]>>>16^r[7]<<16,s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var a=0;a<4;a++)s[a]=16711935&(s[a]<<8|s[a]>>>24)|4278255360&(s[a]<<24|s[a]>>>8),e[n+a]^=s[a]},blockSize:4,ivSize:2});n.RabbitLegacy=a._createHelper(u)}(),e.RabbitLegacy})},function(e,t,n){!function(r,a,o){e.exports=t=a(n(2),n(34),n(36),n(35),n(4))}(0,function(e){return function(){function t(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(var n=0;n<8;n++){var r=e[n]+t[n],a=65535&r,o=r>>>16,s=((a*a>>>17)+a*o>>>15)+o*o,u=((4294901760&r)*r|0)+((65535&r)*r|0);c[n]=s^u}e[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,e[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,e[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,e[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,e[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,e[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,e[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,e[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}var n=e,r=n.lib,a=r.StreamCipher,o=n.algo,s=[],i=[],c=[],u=o.Rabbit=a.extend({_doReset:function(){for(var e=this._key.words,n=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var a=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var r=0;r<4;r++)t.call(this);for(var r=0;r<8;r++)o[r]^=a[r+4&7];if(n){var s=n.words,i=s[0],c=s[1],u=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),d=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),l=u>>>16|4294901760&d,f=d<<16|65535&u;o[0]^=u,o[1]^=l,o[2]^=d,o[3]^=f,o[4]^=u,o[5]^=l,o[6]^=d,o[7]^=f;for(var r=0;r<4;r++)t.call(this)}},_doProcessBlock:function(e,n){var r=this._X;t.call(this),s[0]=r[0]^r[5]>>>16^r[3]<<16,s[1]=r[2]^r[7]>>>16^r[5]<<16,s[2]=r[4]^r[1]>>>16^r[7]<<16,s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var a=0;a<4;a++)s[a]=16711935&(s[a]<<8|s[a]>>>24)|4278255360&(s[a]<<24|s[a]>>>8),e[n+a]^=s[a]},blockSize:4,ivSize:2});n.Rabbit=a._createHelper(u)}(),e.Rabbit})},function(e,t,n){!function(r,a,o){e.exports=t=a(n(2),n(34),n(36),n(35),n(4))}(0,function(e){return function(){function t(){for(var e=this._S,t=this._i,n=this._j,r=0,a=0;a<4;a++){t=(t+1)%256,n=(n+e[t])%256;var o=e[t];e[t]=e[n],e[n]=o,r|=e[(e[t]+e[n])%256]<<24-8*a}return this._i=t,this._j=n,r}var n=e,r=n.lib,a=r.StreamCipher,o=n.algo,s=o.RC4=a.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],a=0;a<256;a++)r[a]=a;for(var a=0,o=0;a<256;a++){var s=a%n,i=t[s>>>2]>>>24-s%4*8&255;o=(o+r[a]+i)%256;var c=r[a];r[a]=r[o],r[o]=c}this._i=this._j=0},_doProcessBlock:function(e,n){e[n]^=t.call(this)},keySize:8,ivSize:0});n.RC4=a._createHelper(s);var i=o.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)t.call(this)}});n.RC4Drop=a._createHelper(i)}(),e.RC4})},function(e,t,n){!function(r,a){e.exports=t=a(n(2))}(0,function(e){return function(t){function n(e,t,n){return e^t^n}function r(e,t,n){return e&t|~e&n}function a(e,t,n){return(e|~t)^n}function o(e,t,n){return e&n|t&~n}function s(e,t,n){return e^(t|~n)}function i(e,t){return e<>>32-t}var c=e,u=c.lib,d=u.WordArray,l=u.Hasher,f=c.algo,p=d.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),h=d.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),m=d.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),b=d.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),y=d.create([0,1518500249,1859775393,2400959708,2840853838]),g=d.create([1352829926,1548603684,1836072691,2053994217,0]),v=f.RIPEMD160=l.extend({_doReset:function(){this._hash=d.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var c=0;c<16;c++){var u=t+c,d=e[u];e[u]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}var l,f,v,x,w,_,k,A,B,S,T=this._hash.words,C=y.words,D=g.words,P=p.words,O=h.words,F=m.words,R=b.words;_=l=T[0],k=f=T[1],A=v=T[2],B=x=T[3],S=w=T[4];for(var I,c=0;c<80;c+=1)I=l+e[t+P[c]]|0,I+=c<16?n(f,v,x)+C[0]:c<32?r(f,v,x)+C[1]:c<48?a(f,v,x)+C[2]:c<64?o(f,v,x)+C[3]:s(f,v,x)+C[4],I|=0,I=i(I,F[c]),I=I+w|0,l=w,w=x,x=i(v,10),v=f,f=I,I=_+e[t+O[c]]|0,I+=c<16?s(k,A,B)+D[0]:c<32?o(k,A,B)+D[1]:c<48?a(k,A,B)+D[2]:c<64?r(k,A,B)+D[3]:n(k,A,B)+D[4],I|=0,I=i(I,R[c]),I=I+S|0,_=S,S=B,B=i(A,10),A=k,k=I;I=T[1]+v+B|0,T[1]=T[2]+x+S|0,T[2]=T[3]+w+_|0,T[3]=T[4]+l+k|0,T[4]=T[0]+f+A|0,T[0]=I},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var a=this._hash,o=a.words,s=0;s<5;s++){var i=o[s];o[s]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}return a},clone:function(){var e=l.clone.call(this);return e._hash=this._hash.clone(),e}});c.RIPEMD160=l._createHelper(v),c.HmacRIPEMD160=l._createHmacHelper(v)}(Math),e.RIPEMD160})},function(e,t,n){!function(r,a,o){e.exports=t=a(n(2),n(126))}(0,function(e){return function(){var t=e,n=t.lib,r=n.WordArray,a=t.algo,o=a.SHA256,s=a.SHA224=o.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=o._createHelper(s),t.HmacSHA224=o._createHmacHelper(s)}(),e.SHA224})},function(e,t,n){!function(r,a,o){e.exports=t=a(n(2),n(64),n(128))}(0,function(e){return function(){var t=e,n=t.x64,r=n.Word,a=n.WordArray,o=t.algo,s=o.SHA512,i=o.SHA384=s.extend({_doReset:function(){this._hash=new a.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=s._createHelper(i),t.HmacSHA384=s._createHmacHelper(i)}(),e.SHA384})},function(e,t,n){!function(r,a,o){e.exports=t=a(n(2),n(34),n(36),n(35),n(4))}(0,function(e){return function(){function t(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<>>5]>>>31-a%32&1}for(var o=this._subKeys=[],s=0;s<16;s++){for(var i=o[s]=[],l=d[s],r=0;r<24;r++)i[r/6|0]|=n[(u[r]-1+l)%28]<<31-r%6,i[4+(r/6|0)]|=n[28+(u[r+24]-1+l)%28]<<31-r%6;i[0]=i[0]<<1|i[0]>>>31;for(var r=1;r<7;r++)i[r]=i[r]>>>4*(r-1)+3;i[7]=i[7]<<5|i[7]>>>27}for(var f=this._invSubKeys=[],r=0;r<16;r++)f[r]=o[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,r,a){this._lBlock=e[r],this._rBlock=e[r+1],t.call(this,4,252645135),t.call(this,16,65535),n.call(this,2,858993459),n.call(this,8,16711935),t.call(this,1,1431655765);for(var o=0;o<16;o++){for(var s=a[o],i=this._lBlock,c=this._rBlock,u=0,d=0;d<8;d++)u|=l[d][((c^s[d])&f[d])>>>0];this._lBlock=c,this._rBlock=i^u}var p=this._lBlock;this._lBlock=this._rBlock,this._rBlock=p,t.call(this,1,1431655765),n.call(this,8,16711935),n.call(this,2,858993459),t.call(this,16,65535),t.call(this,4,252645135),e[r]=this._lBlock,e[r+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});r.DES=s._createHelper(p);var h=i.TripleDES=s.extend({_doReset:function(){var e=this._key,t=e.words;this._des1=p.createEncryptor(o.create(t.slice(0,2))),this._des2=p.createEncryptor(o.create(t.slice(2,4))),this._des3=p.createEncryptor(o.create(t.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});r.TripleDES=s._createHelper(h)}(),e.TripleDES})},,,,function(e,t,n){e.exports=n.p+"dev.web3.html"},,,function(e,t){e.exports=[{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"name",outputs:[{name:"o_name",type:"bytes32"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"content",outputs:[{name:"",type:"bytes32"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"addr",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"reserve",outputs:[],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"subRegistrar",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_newOwner",type:"address"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_registrar",type:"address"}],name:"setSubRegistrar",outputs:[],type:"function"},{constant:!1,inputs:[],name:"Registrar",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_a",type:"address"},{name:"_primary",type:"bool"}],name:"setAddress",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_content",type:"bytes32"}],name:"setContent",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"disown",outputs:[],type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"_name",type:"bytes32"},{indexed:!1,name:"_winner",type:"address"}],name:"AuctionEnded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"_name",type:"bytes32"},{indexed:!1,name:"_bidder",type:"address"},{indexed:!1,name:"_value",type:"uint256"}],name:"NewBid",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"}],name:"Changed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"},{indexed:!0,name:"addr",type:"address"}],name:"PrimaryChanged",type:"event"}]},function(e,t){e.exports=[{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_refund",type:"address"}],name:"disown",outputs:[],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"addr",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"reserve",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_newOwner",type:"address"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_a",type:"address"}],name:"setAddr",outputs:[],type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"}],name:"Changed",type:"event"}]},function(e,t){e.exports=[{constant:!1,inputs:[{name:"from",type:"bytes32"},{name:"to",type:"address"},{name:"value",type:"uint256"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"from",type:"bytes32"},{name:"to",type:"address"},{name:"indirectId",type:"bytes32"},{name:"value",type:"uint256"}],name:"icapTransfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"to",type:"bytes32"}],name:"deposit",outputs:[],type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"AnonymousDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"bytes32"},{indexed:!1,name:"value",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"bytes32"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"bytes32"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"indirectId",type:"bytes32"},{indexed:!1,name:"value",type:"uint256"}],name:"IcapTransfer",type:"event"}]},function(e,t){e.exports={version:"0.17.0-alpha"}},,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(306);"undefined"!=typeof window&&void 0===window.Web3&&(window.Web3=r),e.exports=r},function(e,t,n){var r=n(8),a=n(14),o=function(){this._inputFormatter=r.formatInputInt,this._outputFormatter=r.formatOutputAddress};o.prototype=new a({}),o.prototype.constructor=o,o.prototype.isType=function(e){return!!e.match(/address(\[([0-9]*)\])?/)},o.prototype.staticPartLength=function(e){return 32*this.staticArrayLength(e)},e.exports=o},function(e,t,n){var r=n(8),a=n(14),o=function(){this._inputFormatter=r.formatInputBool,this._outputFormatter=r.formatOutputBool};o.prototype=new a({}),o.prototype.constructor=o,o.prototype.isType=function(e){return!!e.match(/^bool(\[([0-9]*)\])*$/)},o.prototype.staticPartLength=function(e){return 32*this.staticArrayLength(e)},e.exports=o},function(e,t,n){var r=n(8),a=n(14),o=function(){this._inputFormatter=r.formatInputBytes,this._outputFormatter=r.formatOutputBytes};o.prototype=new a({}),o.prototype.constructor=o,o.prototype.isType=function(e){return!!e.match(/^bytes([0-9]{1,})(\[([0-9]*)\])*$/)},o.prototype.staticPartLength=function(e){var t=e.match(/^bytes([0-9]*)/);return parseInt(t[1])*this.staticArrayLength(e)},e.exports=o},function(e,t,n){var r=n(8),a=n(14),o=function(){this._inputFormatter=r.formatInputDynamicBytes,this._outputFormatter=r.formatOutputDynamicBytes};o.prototype=new a({}),o.prototype.constructor=o,o.prototype.isType=function(e){return!!e.match(/^bytes(\[([0-9]*)\])*$/)},o.prototype.staticPartLength=function(e){return 32*this.staticArrayLength(e)},o.prototype.isDynamicType=function(){return!0},e.exports=o},function(e,t,n){var r=n(8),a=n(14),o=function(){this._inputFormatter=r.formatInputInt,this._outputFormatter=r.formatOutputInt};o.prototype=new a({}),o.prototype.constructor=o,o.prototype.isType=function(e){return!!e.match(/^int([0-9]*)?(\[([0-9]*)\])*$/)},o.prototype.staticPartLength=function(e){return 32*this.staticArrayLength(e)},e.exports=o},function(e,t,n){var r=n(8),a=n(14),o=function(){this._inputFormatter=r.formatInputReal,this._outputFormatter=r.formatOutputReal};o.prototype=new a({}),o.prototype.constructor=o,o.prototype.isType=function(e){return!!e.match(/real([0-9]*)?(\[([0-9]*)\])?/)},o.prototype.staticPartLength=function(e){return 32*this.staticArrayLength(e)},e.exports=o},function(e,t,n){var r=n(8),a=n(14),o=function(){this._inputFormatter=r.formatInputString,this._outputFormatter=r.formatOutputString};o.prototype=new a({}),o.prototype.constructor=o,o.prototype.isType=function(e){return!!e.match(/^string(\[([0-9]*)\])*$/)},o.prototype.staticPartLength=function(e){return 32*this.staticArrayLength(e)},o.prototype.isDynamicType=function(){return!0},e.exports=o},function(e,t,n){var r=n(8),a=n(14),o=function(){this._inputFormatter=r.formatInputInt,this._outputFormatter=r.formatOutputUInt};o.prototype=new a({}),o.prototype.constructor=o,o.prototype.isType=function(e){return!!e.match(/^uint([0-9]*)?(\[([0-9]*)\])*$/)},o.prototype.staticPartLength=function(e){return 32*this.staticArrayLength(e)},e.exports=o},function(e,t,n){var r=n(8),a=n(14),o=function(){this._inputFormatter=r.formatInputReal,this._outputFormatter=r.formatOutputUReal};o.prototype=new a({}),o.prototype.constructor=o,o.prototype.isType=function(e){return!!e.match(/^ureal([0-9]*)?(\[([0-9]*)\])*$/)},o.prototype.staticPartLength=function(e){return 32*this.staticArrayLength(e)},e.exports=o},function(e,t,n){"use strict";"undefined"==typeof XMLHttpRequest?t.XMLHttpRequest={}:t.XMLHttpRequest=XMLHttpRequest},function(e,t,n){function r(e){this._requestManager=new a(e),this.currentProvider=e,this.eth=new s(this),this.db=new i(this),this.shh=new c(this),this.net=new u(this),this.personal=new d(this),this.settings=new l,this.version={api:f.version},this.providers={HttpProvider:g,IpcProvider:v},this._extend=m(this),this._extend({properties:w()})}var a=n(320),o=n(68),s=n(315),i=n(314),c=n(318),u=n(316),d=n(317),l=n(321),f=n(277),p=n(5),h=n(43),m=n(310),b=n(308),y=n(45),g=n(312),v=n(313),x=n(46);r.providers={HttpProvider:g,IpcProvider:v},r.prototype.setProvider=function(e){this._requestManager.setProvider(e),this.currentProvider=e},r.prototype.reset=function(e){this._requestManager.reset(e),this.settings=new l},r.prototype.BigNumber=x,r.prototype.toHex=p.toHex,r.prototype.toAscii=p.toAscii,r.prototype.toUtf8=p.toUtf8,r.prototype.fromAscii=p.fromAscii,r.prototype.fromUtf8=p.fromUtf8,r.prototype.toDecimal=p.toDecimal,r.prototype.fromDecimal=p.fromDecimal,r.prototype.toBigNumber=p.toBigNumber,r.prototype.toWei=p.toWei,r.prototype.fromWei=p.fromWei,r.prototype.isAddress=p.isAddress,r.prototype.isChecksumAddress=p.isChecksumAddress,r.prototype.toChecksumAddress=p.toChecksumAddress,r.prototype.isIBAN=p.isIBAN,r.prototype.sha3=function(e,t){return"0x"+h(e,t)},r.prototype.fromICAP=function(e){return new o(e).address()};var w=function(){return[new y({name:"version.node",getter:"web3_clientVersion"}),new y({name:"version.network",getter:"net_version",inputFormatter:p.toDecimal}),new y({name:"version.ethereum",getter:"eth_protocolVersion",inputFormatter:p.toDecimal}),new y({name:"version.whisper",getter:"shh_version",inputFormatter:p.toDecimal})]};r.prototype.isConnected=function(){return this.currentProvider&&this.currentProvider.isConnected()},r.prototype.createBatch=function(){return new b(this)},e.exports=r},function(e,t,n){var r=n(43),a=n(134),o=n(15),s=n(5),i=n(67),c=n(69),u=function(e,t,n){this._requestManager=e,this._json=t,this._address=n};u.prototype.encode=function(e){e=e||{};var t={};return["fromBlock","toBlock"].filter(function(t){return void 0!==e[t]}).forEach(function(n){t[n]=o.inputBlockNumberFormatter(e[n])}),t.address=this._address,t},u.prototype.decode=function(e){e.data=e.data||"",e.topics=e.topics||[];var t=e.topics[0].slice(2),n=this._json.filter(function(e){return t===r(s.transformToFullName(e))})[0];return n?new a(this._requestManager,n,this._address).decode(e):(console.warn("cannot find event for log"),e)},u.prototype.execute=function(e,t){s.isFunction(arguments[arguments.length-1])&&(t=arguments[arguments.length-1],1===arguments.length&&(e=null));var n=this.encode(e),r=this.decode.bind(this);return new i(this._requestManager,n,c.eth(),r,t)},u.prototype.attachToContract=function(e){var t=this.execute.bind(this);e.allEvents=t},e.exports=u},function(e,t,n){var r=n(135),a=n(44),o=function(e){this.requestManager=e._requestManager,this.requests=[]};o.prototype.add=function(e){this.requests.push(e)},o.prototype.execute=function(){var e=this.requests;this.requestManager.sendBatch(e,function(t,n){n=n||[],e.map(function(e,t){return n[t]||{}}).forEach(function(t,n){if(e[n].callback){if(!r.isValidResponse(t))return e[n].callback(a.InvalidResponse(t));e[n].callback(null,e[n].format?e[n].format(t.result):t.result)}})})},e.exports=o},function(e,t,n){var r=n(5),a=n(93),o=n(134),s=n(311),i=n(307),c=function(e,t){return e.filter(function(e){return"constructor"===e.type&&e.inputs.length===t.length}).map(function(e){return e.inputs.map(function(e){return e.type})}).map(function(e){return a.encodeParams(e,t)})[0]||""},u=function(e){e.abi.filter(function(e){return"function"===e.type}).map(function(t){return new s(e._eth,t,e.address)}).forEach(function(t){t.attachToContract(e)})},d=function(e){var t=e.abi.filter(function(e){return"event"===e.type});new i(e._eth._requestManager,t,e.address).attachToContract(e),t.map(function(t){return new o(e._eth._requestManager,t,e.address)}).forEach(function(t){t.attachToContract(e)})},l=function(e,t){var n=0,r=!1,a=e._eth.filter("latest",function(o){if(!o&&!r)if(++n>50){if(a.stopWatching(),r=!0,!t)throw new Error("Contract transaction couldn't be found after 50 blocks");t(new Error("Contract transaction couldn't be found after 50 blocks"))}else e._eth.getTransactionReceipt(e.transactionHash,function(n,o){o&&!r&&e._eth.getCode(o.contractAddress,function(n,s){if(!r&&s)if(a.stopWatching(),r=!0,s.length>3)e.address=o.contractAddress,u(e),d(e),t&&t(null,e);else{if(!t)throw new Error("The contract code couldn't be stored, please check your gas amount.");t(new Error("The contract code couldn't be stored, please check your gas amount."))}})})})},f=function(e,t){this.eth=e,this.abi=t,this.new=function(){var e,t=new p(this.eth,this.abi),n={},a=Array.prototype.slice.call(arguments);r.isFunction(a[a.length-1])&&(e=a.pop());var o=a[a.length-1];r.isObject(o)&&!r.isArray(o)&&(n=a.pop());var s=c(this.abi,a);if(n.data+=s,e)this.eth.sendTransaction(n,function(n,r){n?e(n):(t.transactionHash=r,e(null,t),l(t,e))});else{var i=this.eth.sendTransaction(n);t.transactionHash=i,l(t)}return t},this.new.getData=this.getData.bind(this)};f.prototype.at=function(e,t){var n=new p(this.eth,this.abi,e);return u(n),d(n),t&&t(null,n),n},f.prototype.getData=function(){var e={},t=Array.prototype.slice.call(arguments),n=t[t.length-1];r.isObject(n)&&!r.isArray(n)&&(e=t.pop());var a=c(this.abi,t);return e.data+=a,e.data};var p=function(e,t,n){this._eth=e,this.transactionHash=null,this.address=n,this.abi=t};e.exports=f},function(e,t,n){var r=n(15),a=n(5),o=n(37),s=n(45),i=function(e){var t=function(t){var n;t.property?(e[t.property]||(e[t.property]={}),n=e[t.property]):n=e,t.methods&&t.methods.forEach(function(t){t.attachToObject(n),t.setRequestManager(e._requestManager)}),t.properties&&t.properties.forEach(function(t){t.attachToObject(n),t.setRequestManager(e._requestManager)})};return t.formatters=r,t.utils=a,t.Method=o,t.Property=s,t};e.exports=i},function(e,t,n){var r=n(93),a=n(5),o=n(15),s=n(43),i=function(e,t,n){this._eth=e,this._inputTypes=t.inputs.map(function(e){return e.type}),this._outputTypes=t.outputs.map(function(e){return e.type}),this._constant=t.constant,this._name=a.transformToFullName(t),this._address=n};i.prototype.extractCallback=function(e){if(a.isFunction(e[e.length-1]))return e.pop()},i.prototype.extractDefaultBlock=function(e){if(e.length>this._inputTypes.length&&!a.isObject(e[e.length-1]))return o.inputDefaultBlockNumberFormatter(e.pop())},i.prototype.toPayload=function(e){var t={};return e.length>this._inputTypes.length&&a.isObject(e[e.length-1])&&(t=e[e.length-1]),t.to=this._address,t.data="0x"+this.signature()+r.encodeParams(this._inputTypes,e),t},i.prototype.signature=function(){return s(this._name).slice(0,8)},i.prototype.unpackOutput=function(e){if(e){e=e.length>=2?e.slice(2):e;var t=r.decodeParams(this._outputTypes,e);return 1===t.length?t[0]:t}},i.prototype.call=function(){var e=Array.prototype.slice.call(arguments).filter(function(e){return void 0!==e}),t=this.extractCallback(e),n=this.extractDefaultBlock(e),r=this.toPayload(e);if(!t){var a=this._eth.call(r,n);return this.unpackOutput(a)}var o=this;this._eth.call(r,n,function(e,n){t(e,o.unpackOutput(n))})},i.prototype.sendTransaction=function(){var e=Array.prototype.slice.call(arguments).filter(function(e){return void 0!==e}),t=this.extractCallback(e),n=this.toPayload(e);if(!t)return this._eth.sendTransaction(n);this._eth.sendTransaction(n,t)},i.prototype.estimateGas=function(){var e=Array.prototype.slice.call(arguments),t=this.extractCallback(e),n=this.toPayload(e);if(!t)return this._eth.estimateGas(n);this._eth.estimateGas(n,t)},i.prototype.getData=function(){var e=Array.prototype.slice.call(arguments);return this.toPayload(e).data},i.prototype.displayName=function(){return a.extractDisplayName(this._name)},i.prototype.typeName=function(){return a.extractTypeName(this._name)},i.prototype.request=function(){var e=Array.prototype.slice.call(arguments),t=this.extractCallback(e),n=this.toPayload(e),r=this.unpackOutput.bind(this);return{method:this._constant?"eth_call":"eth_sendTransaction",callback:t,params:[n],format:r}},i.prototype.execute=function(){return this._constant?this.call.apply(this,Array.prototype.slice.call(arguments)):this.sendTransaction.apply(this,Array.prototype.slice.call(arguments))},i.prototype.attachToContract=function(e){var t=this.execute.bind(this);t.request=this.request.bind(this),t.call=this.call.bind(this),t.sendTransaction=this.sendTransaction.bind(this),t.estimateGas=this.estimateGas.bind(this),t.getData=this.getData.bind(this);var n=this.displayName();e[n]||(e[n]=t),e[n][this.typeName()]=t},e.exports=i},function(e,t,n){"use strict";var r,a=n(44);r="undefined"!=typeof window&&window.XMLHttpRequest?window.XMLHttpRequest:n(305).XMLHttpRequest;var o=function(e){this.host=e||"http://localhost:8545"};o.prototype.prepareRequest=function(e){var t=new r;return t.open("POST",this.host,e),t.setRequestHeader("Content-Type","application/json"),t},o.prototype.send=function(e){var t=this.prepareRequest(!1);try{t.send(JSON.stringify(e))}catch(e){throw a.InvalidConnection(this.host)}var n=t.responseText;try{n=JSON.parse(n)}catch(e){throw a.InvalidResponse(t.responseText)}return n},o.prototype.sendAsync=function(e,t){var n=this.prepareRequest(!0);n.onreadystatechange=function(){if(4===n.readyState){var e=n.responseText,r=null;try{e=JSON.parse(e)}catch(e){r=a.InvalidResponse(n.responseText)}t(r,e)}};try{n.send(JSON.stringify(e))}catch(e){t(a.InvalidConnection(this.host))}},o.prototype.isConnected=function(){try{return this.send({id:9999999999,jsonrpc:"2.0",method:"net_listening",params:[]}),!0}catch(e){return!1}},e.exports=o},function(e,t,n){"use strict";var r=n(5),a=n(44),o=function(e,t){var n=this;this.responseCallbacks={},this.path=e,this.connection=t.connect({path:this.path}),this.connection.on("error",function(e){console.error("IPC Connection Error",e),n._timeout()}),this.connection.on("end",function(){n._timeout()}),this.connection.on("data",function(e){n._parseResponse(e.toString()).forEach(function(e){var t=null;r.isArray(e)?e.forEach(function(e){n.responseCallbacks[e.id]&&(t=e.id)}):t=e.id,n.responseCallbacks[t]&&(n.responseCallbacks[t](null,e),delete n.responseCallbacks[t])})})};o.prototype._parseResponse=function(e){var t=this,n=[];return e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach(function(e){t.lastChunk&&(e=t.lastChunk+e);var r=null;try{r=JSON.parse(e)}catch(n){return t.lastChunk=e,clearTimeout(t.lastChunkTimeout),void(t.lastChunkTimeout=setTimeout(function(){throw t._timeout(),a.InvalidResponse(e)},15e3))}clearTimeout(t.lastChunkTimeout),t.lastChunk=null,r&&n.push(r)}),n},o.prototype._addResponseCallback=function(e,t){var n=e.id||e[0].id,r=e.method||e[0].method;this.responseCallbacks[n]=t,this.responseCallbacks[n].method=r},o.prototype._timeout=function(){for(var e in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(e)&&(this.responseCallbacks[e](a.InvalidConnection("on IPC")),delete this.responseCallbacks[e])},o.prototype.isConnected=function(){var e=this;return e.connection.writable||e.connection.connect({path:e.path}),!!this.connection.writable},o.prototype.send=function(e){if(this.connection.writeSync){var t;this.connection.writable||this.connection.connect({path:this.path});var n=this.connection.writeSync(JSON.stringify(e));try{t=JSON.parse(n)}catch(e){throw a.InvalidResponse(n)}return t}throw new Error('You tried to send "'+e.method+'" synchronously. Synchronous requests are not supported by the IPC provider.')},o.prototype.sendAsync=function(e,t){this.connection.writable||this.connection.connect({path:this.path}),this.connection.write(JSON.stringify(e)),this._addResponseCallback(e,t)},e.exports=o},function(e,t,n){var r=n(37),a=function(e){this._requestManager=e._requestManager;var t=this;o().forEach(function(n){n.attachToObject(t),n.setRequestManager(e._requestManager)})},o=function(){return[new r({name:"putString",call:"db_putString",params:3}),new r({name:"getString",call:"db_getString",params:2}),new r({name:"putHex",call:"db_putHex",params:3}),new r({name:"getHex",call:"db_getHex",params:2})]};e.exports=a},function(e,t,n){"use strict";function r(e){this._requestManager=e._requestManager;var t=this;w().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}),_().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}),this.iban=h,this.sendIBANTransaction=m.bind(null,this)}var a=n(15),o=n(5),s=n(37),i=n(45),c=n(66),u=n(309),d=n(69),l=n(67),f=n(322),p=n(319),h=n(68),m=n(323),b=function(e){return o.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getBlockByHash":"eth_getBlockByNumber"},y=function(e){return o.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getTransactionByBlockHashAndIndex":"eth_getTransactionByBlockNumberAndIndex"},g=function(e){return o.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getUncleByBlockHashAndIndex":"eth_getUncleByBlockNumberAndIndex"},v=function(e){return o.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getBlockTransactionCountByHash":"eth_getBlockTransactionCountByNumber"},x=function(e){return o.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getUncleCountByBlockHash":"eth_getUncleCountByBlockNumber"};Object.defineProperty(r.prototype,"defaultBlock",{get:function(){return c.defaultBlock},set:function(e){return c.defaultBlock=e,e}}),Object.defineProperty(r.prototype,"defaultAccount",{get:function(){return c.defaultAccount},set:function(e){return c.defaultAccount=e,e}});var w=function(){var e=new s({name:"getBalance",call:"eth_getBalance",params:2,inputFormatter:[a.inputAddressFormatter,a.inputDefaultBlockNumberFormatter],outputFormatter:a.outputBigNumberFormatter}),t=new s({name:"getStorageAt",call:"eth_getStorageAt",params:3,inputFormatter:[null,o.toHex,a.inputDefaultBlockNumberFormatter]}),n=new s({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[a.inputAddressFormatter,a.inputDefaultBlockNumberFormatter]}),r=new s({name:"getBlock",call:b,params:2,inputFormatter:[a.inputBlockNumberFormatter,function(e){return!!e}],outputFormatter:a.outputBlockFormatter}),i=new s({name:"getUncle",call:g,params:2,inputFormatter:[a.inputBlockNumberFormatter,o.toHex],outputFormatter:a.outputBlockFormatter}),c=new s({name:"getCompilers",call:"eth_getCompilers",params:0}),u=new s({name:"getBlockTransactionCount",call:v,params:1,inputFormatter:[a.inputBlockNumberFormatter],outputFormatter:o.toDecimal}),d=new s({name:"getBlockUncleCount",call:x,params:1,inputFormatter:[a.inputBlockNumberFormatter],outputFormatter:o.toDecimal}),l=new s({name:"getTransaction",call:"eth_getTransactionByHash",params:1,outputFormatter:a.outputTransactionFormatter}),f=new s({name:"getTransactionFromBlock",call:y,params:2,inputFormatter:[a.inputBlockNumberFormatter,o.toHex],outputFormatter:a.outputTransactionFormatter}),p=new s({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,outputFormatter:a.outputTransactionReceiptFormatter}),h=new s({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[null,a.inputDefaultBlockNumberFormatter],outputFormatter:o.toDecimal}),m=new s({name:"sendRawTransaction",call:"eth_sendRawTransaction",params:1,inputFormatter:[null]}),w=new s({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[a.inputTransactionFormatter]}),_=new s({name:"sign",call:"eth_sign",params:2,inputFormatter:[a.inputAddressFormatter,null]});return[e,t,n,r,i,c,u,d,l,f,p,h,new s({name:"call",call:"eth_call",params:2,inputFormatter:[a.inputCallFormatter,a.inputDefaultBlockNumberFormatter]}),new s({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[a.inputCallFormatter],outputFormatter:o.toDecimal}),m,w,_,new s({name:"compile.solidity",call:"eth_compileSolidity",params:1}),new s({name:"compile.lll",call:"eth_compileLLL",params:1}),new s({name:"compile.serpent",call:"eth_compileSerpent",params:1}),new s({name:"submitWork",call:"eth_submitWork",params:3}),new s({name:"getWork",call:"eth_getWork",params:0})]},_=function(){return[new i({name:"coinbase",getter:"eth_coinbase"}),new i({name:"mining",getter:"eth_mining"}),new i({name:"hashrate",getter:"eth_hashrate",outputFormatter:o.toDecimal}),new i({name:"syncing",getter:"eth_syncing",outputFormatter:a.outputSyncingFormatter}),new i({name:"gasPrice",getter:"eth_gasPrice",outputFormatter:a.outputBigNumberFormatter}),new i({name:"accounts",getter:"eth_accounts"}),new i({name:"blockNumber",getter:"eth_blockNumber",outputFormatter:o.toDecimal}),new i({name:"protocolVersion",getter:"eth_protocolVersion"})]};r.prototype.contract=function(e){return new u(this,e)},r.prototype.filter=function(e,t){return new l(this._requestManager,e,d.eth(),a.outputLogFormatter,t)},r.prototype.namereg=function(){return this.contract(p.global.abi).at(p.global.address)},r.prototype.icapNamereg=function(){return this.contract(p.icap.abi).at(p.icap.address)},r.prototype.isSyncing=function(e){return new f(this._requestManager,e)},e.exports=r},function(e,t,n){var r=n(5),a=n(45),o=function(e){this._requestManager=e._requestManager;var t=this;s().forEach(function(n){n.attachToObject(t),n.setRequestManager(e._requestManager)})},s=function(){return[new a({name:"listening",getter:"net_listening"}),new a({name:"peerCount",getter:"net_peerCount",outputFormatter:r.toDecimal})]};e.exports=o},function(e,t,n){"use strict";function r(e){this._requestManager=e._requestManager;var t=this;i().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}),c().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})}var a=n(37),o=n(45),s=n(15),i=function(){return[new a({name:"newAccount",call:"personal_newAccount",params:1,inputFormatter:[null]}),new a({name:"unlockAccount",call:"personal_unlockAccount",params:3,inputFormatter:[s.inputAddressFormatter,null,null]}),new a({name:"unlockAccountAndSendTransaction",call:"personal_signAndSendTransaction",params:2,inputFormatter:[s.inputTransactionFormatter,null]}),new a({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[s.inputAddressFormatter]})]},c=function(){return[new o({name:"listAccounts",getter:"personal_listAccounts"})]};e.exports=r},function(e,t,n){var r=n(37),a=n(15),o=n(67),s=n(69),i=function(e){this._requestManager=e._requestManager;var t=this;c().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})};i.prototype.filter=function(e,t){return new o(this._requestManager,e,s.shh(),a.outputPostFormatter,t)};var c=function(){return[new r({name:"post",call:"shh_post",params:1,inputFormatter:[a.inputPostFormatter]}),new r({name:"newIdentity",call:"shh_newIdentity",params:0}),new r({name:"hasIdentity",call:"shh_hasIdentity",params:1}),new r({name:"newGroup",call:"shh_newGroup",params:0}),new r({name:"addToGroup",call:"shh_addToGroup",params:0})]};e.exports=i},function(e,t,n){var r=n(274),a=n(275);e.exports={global:{abi:r,address:"0xc6d9d2cd449a754c494264e1809c50e34d64562b"},icap:{abi:a,address:"0xa1a111bc074c9cfa781f0c38e63bd51c91b8af00"}}},function(e,t,n){var r=n(135),a=n(5),o=n(66),s=n(44),i=function(e){this.provider=e,this.polls={},this.timeout=null};i.prototype.send=function(e){if(!this.provider)return console.error(s.InvalidProvider()),null;var t=r.toPayload(e.method,e.params),n=this.provider.send(t);if(!r.isValidResponse(n))throw s.InvalidResponse(n);return n.result},i.prototype.sendAsync=function(e,t){if(!this.provider)return t(s.InvalidProvider());var n=r.toPayload(e.method,e.params);this.provider.sendAsync(n,function(e,n){return e?t(e):r.isValidResponse(n)?void t(null,n.result):t(s.InvalidResponse(n))})},i.prototype.sendBatch=function(e,t){if(!this.provider)return t(s.InvalidProvider());var n=r.toBatchPayload(e);this.provider.sendAsync(n,function(e,n){return e?t(e):a.isArray(n)?void t(e,n):t(s.InvalidResponse(n))})},i.prototype.setProvider=function(e){this.provider=e},i.prototype.startPolling=function(e,t,n,r){this.polls[t]={data:e,id:t,callback:n,uninstall:r},this.timeout||this.poll()},i.prototype.stopPolling=function(e){delete this.polls[e],0===Object.keys(this.polls).length&&this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},i.prototype.reset=function(e){for(var t in this.polls)e&&t.indexOf("syncPoll_")!==-1||(this.polls[t].uninstall(),delete this.polls[t]);0===Object.keys(this.polls).length&&this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},i.prototype.poll=function(){if(this.timeout=setTimeout(this.poll.bind(this),o.ETH_POLLING_TIMEOUT),0!==Object.keys(this.polls).length){if(!this.provider)return void console.error(s.InvalidProvider());var e=[],t=[];for(var n in this.polls)e.push(this.polls[n].data),t.push(n);if(0!==e.length){var i=r.toBatchPayload(e),c={};i.forEach(function(e,n){c[e.id]=t[n]});var u=this;this.provider.sendAsync(i,function(e,t){if(!e){if(!a.isArray(t))throw s.InvalidResponse(t);t.map(function(e){var t=c[e.id];return!!u.polls[t]&&(e.callback=u.polls[t].callback,e)}).filter(function(e){return!!e}).filter(function(e){var t=r.isValidResponse(e);return t||e.callback(s.InvalidResponse(e)),t}).forEach(function(e){e.callback(null,e.result)})}})}}},e.exports=i},function(e,t){var n=function(){this.defaultBlock="latest",this.defaultAccount=void 0};e.exports=n},function(e,t,n){var r=n(15),a=n(5),o=1,s=function(e){var t=function(t,n){if(t)return e.callbacks.forEach(function(e){e(t)});a.isObject(n)&&n.startingBlock&&(n=r.outputSyncingFormatter(n)),e.callbacks.forEach(function(t){e.lastSyncState!==n&&(!e.lastSyncState&&a.isObject(n)&&t(null,!0),setTimeout(function(){t(null,n)},0),e.lastSyncState=n)})};e.requestManager.startPolling({method:"eth_syncing",params:[]},e.pollId,t,e.stopWatching.bind(e))},i=function(e,t){return this.requestManager=e,this.pollId="syncPoll_"+o++,this.callbacks=[],this.addCallback(t),this.lastSyncState=!1,s(this),this};i.prototype.addCallback=function(e){return e&&this.callbacks.push(e),this},i.prototype.stopWatching=function(){this.requestManager.stopPolling(this.pollId),this.callbacks=[]},e.exports=i},function(e,t,n){var r=n(68),a=n(276),o=function(e,t,n,a,o){var c=new r(n);if(!c.isValid())throw new Error("invalid iban address");if(c.isDirect())return s(e,t,c.address(),a,o);if(!o){var u=e.icapNamereg().addr(c.institution());return i(e,t,u,a,c.client())}e.icapNamereg().addr(c.institution(),function(n,r){return i(e,t,r,a,c.client(),o)})},s=function(e,t,n,r,a){return e.sendTransaction({address:n,from:t,value:r},a)},i=function(e,t,n,r,o,s){var i=a;return e.contract(i).at(n).deposit(o,{from:t,value:r},s)};e.exports=o},,,,,,function(e,t,n){e.exports=n(138)}])}); \ No newline at end of file +require=function t(e,n,r){function o(a,s){if(!n[a]){if(!e[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var f=n[a]={exports:{}};e[a][0].call(f.exports,function(t){var n=e[a][1][t];return o(n?n:t)},f,f.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a2&&"0x"===t.substr(0,2)&&(t=t.substr(2)),t=r.enc.Hex.parse(t)),o(t,{outputLength:256}).toString()}},{"crypto-js":58,"crypto-js/sha3":79}],20:[function(t,e,n){var r=t("bignumber.js"),o=t("./sha3.js"),i=t("utf8"),a={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"},s=function(t,e,n){return new Array(e-t.length+1).join(n?n:"0")+t},c=function(t,e,n){return t+new Array(e-t.length+1).join(n?n:"0")},u=function(t){var e="",n=0,r=t.length;for("0x"===t.substring(0,2)&&(n=2);n7&&t[n].toUpperCase()!==t[n]||parseInt(e[n],16)<=7&&t[n].toLowerCase()!==t[n])return!1;return!0},A=function(t){if("undefined"==typeof t)return"";t=t.toLowerCase().replace("0x","");for(var e=o(t),n="0x",r=0;r7?t[r].toUpperCase():t[r];return n},F=function(t){return B(t)?t:/^[0-9a-f]{40}$/.test(t)?"0x"+t:"0x"+s(v(t).substr(2),40)},I=function(t){return t instanceof r||t&&t.constructor&&"BigNumber"===t.constructor.name},O=function(t){return"string"==typeof t||t&&t.constructor&&"String"===t.constructor.name},N=function(t){return"function"==typeof t},T=function(t){return null!==t&&!(t instanceof Array)&&"object"==typeof t},D=function(t){return"boolean"==typeof t},R=function(t){return t instanceof Array},E=function(t){try{return!!JSON.parse(t)}catch(t){return!1}},P=function(t){return!!/^(0x)?[0-9a-f]{512}$/i.test(t)&&!(!/^(0x)?[0-9a-f]{512}$/.test(t)&&!/^(0x)?[0-9A-F]{512}$/.test(t))},M=function(t){return!!/^(0x)?[0-9a-f]{64}$/i.test(t)&&!(!/^(0x)?[0-9a-f]{64}$/.test(t)&&!/^(0x)?[0-9A-F]{64}$/.test(t))};e.exports={padLeft:s,padRight:c,toHex:v,toDecimal:y,fromDecimal:g,toUtf8:u,toAscii:f,fromUtf8:l,fromAscii:p,transformToFullName:h,extractDisplayName:d,extractTypeName:m,toWei:w,fromWei:_,toBigNumber:x,toTwosComplement:k,toAddress:F,isBigNumber:I,isStrictAddress:B,isAddress:S,isChecksumAddress:C,toChecksumAddress:A,isFunction:N,isString:O,isObject:T,isBoolean:D,isArray:R,isJson:E,isBloom:P,isTopic:M}},{"./sha3.js":19,"bignumber.js":"bignumber.js",utf8:84}],21:[function(t,e,n){e.exports={version:"0.19.0"}},{}],22:[function(t,e,n){function r(t){this._requestManager=new o(t),this.currentProvider=t,this.eth=new a(this),this.db=new s(this),this.shh=new c(this),this.net=new u(this),this.personal=new f(this),this.bzz=new l(this),this.settings=new p,this.version={api:h.version},this.providers={HttpProvider:b,IpcProvider:_},this._extend=y(this),this._extend({properties:x()})}var o=t("./web3/requestmanager"),i=t("./web3/iban"),a=t("./web3/methods/eth"),s=t("./web3/methods/db"),c=t("./web3/methods/shh"),u=t("./web3/methods/net"),f=t("./web3/methods/personal"),l=t("./web3/methods/swarm"),p=t("./web3/settings"),h=t("./version.json"),d=t("./utils/utils"),m=t("./utils/sha3"),y=t("./web3/extend"),g=t("./web3/batch"),v=t("./web3/property"),b=t("./web3/httpprovider"),_=t("./web3/ipcprovider"),w=t("bignumber.js");r.providers={HttpProvider:b,IpcProvider:_},r.prototype.setProvider=function(t){this._requestManager.setProvider(t),this.currentProvider=t},r.prototype.reset=function(t){this._requestManager.reset(t),this.settings=new p},r.prototype.BigNumber=w,r.prototype.toHex=d.toHex,r.prototype.toAscii=d.toAscii,r.prototype.toUtf8=d.toUtf8,r.prototype.fromAscii=d.fromAscii,r.prototype.fromUtf8=d.fromUtf8,r.prototype.toDecimal=d.toDecimal,r.prototype.fromDecimal=d.fromDecimal,r.prototype.toBigNumber=d.toBigNumber,r.prototype.toWei=d.toWei,r.prototype.fromWei=d.fromWei,r.prototype.isAddress=d.isAddress,r.prototype.isChecksumAddress=d.isChecksumAddress,r.prototype.toChecksumAddress=d.toChecksumAddress,r.prototype.isIBAN=d.isIBAN,r.prototype.padLeft=d.padLeft,r.prototype.padRight=d.padRight,r.prototype.sha3=function(t,e){return"0x"+m(t,e)},r.prototype.fromICAP=function(t){var e=new i(t);return e.address()};var x=function(){return[new v({name:"version.node",getter:"web3_clientVersion"}),new v({name:"version.network",getter:"net_version",inputFormatter:d.toDecimal}),new v({name:"version.ethereum",getter:"eth_protocolVersion",inputFormatter:d.toDecimal}),new v({name:"version.whisper",getter:"shh_version",inputFormatter:d.toDecimal})]};r.prototype.isConnected=function(){return this.currentProvider&&this.currentProvider.isConnected()},r.prototype.createBatch=function(){return new g(this)},e.exports=r},{"./utils/sha3":19,"./utils/utils":20,"./version.json":21,"./web3/batch":24,"./web3/extend":28,"./web3/httpprovider":32,"./web3/iban":33,"./web3/ipcprovider":34,"./web3/methods/db":37,"./web3/methods/eth":38,"./web3/methods/net":39,"./web3/methods/personal":40,"./web3/methods/shh":41,"./web3/methods/swarm":42,"./web3/property":45,"./web3/requestmanager":46,"./web3/settings":47,"bignumber.js":"bignumber.js"}],23:[function(t,e,n){var r=t("../utils/sha3"),o=t("./event"),i=t("./formatters"),a=t("../utils/utils"),s=t("./filter"),c=t("./methods/watches"),u=function(t,e,n){this._requestManager=t,this._json=e,this._address=n};u.prototype.encode=function(t){t=t||{};var e={};return["fromBlock","toBlock"].filter(function(e){return void 0!==t[e]}).forEach(function(n){e[n]=i.inputBlockNumberFormatter(t[n])}),e.address=this._address,e},u.prototype.decode=function(t){t.data=t.data||"",t.topics=t.topics||[];var e=t.topics[0].slice(2),n=this._json.filter(function(t){return e===r(a.transformToFullName(t))})[0];if(!n)return console.warn("cannot find event for log"),t;var i=new o(this._requestManager,n,this._address);return i.decode(t)},u.prototype.execute=function(t,e){a.isFunction(arguments[arguments.length-1])&&(e=arguments[arguments.length-1],1===arguments.length&&(t=null));var n=this.encode(t),r=this.decode.bind(this);return new s(this._requestManager,n,c.eth(),r,e)},u.prototype.attachToContract=function(t){var e=this.execute.bind(this);t.allEvents=e},e.exports=u},{"../utils/sha3":19,"../utils/utils":20,"./event":27,"./filter":29,"./formatters":30,"./methods/watches":43}],24:[function(t,e,n){var r=t("./jsonrpc"),o=t("./errors"),i=function(t){this.requestManager=t._requestManager,this.requests=[]};i.prototype.add=function(t){this.requests.push(t)},i.prototype.execute=function(){var t=this.requests;this.requestManager.sendBatch(t,function(e,n){n=n||[],t.map(function(t,e){return n[e]||{}}).forEach(function(e,n){if(t[n].callback){if(!r.isValidResponse(e))return t[n].callback(o.InvalidResponse(e));t[n].callback(null,t[n].format?t[n].format(e.result):e.result)}})})},e.exports=i},{"./errors":26,"./jsonrpc":35}],25:[function(t,e,n){var r=t("../utils/utils"),o=t("../solidity/coder"),i=t("./event"),a=t("./function"),s=t("./allevents"),c=function(t,e){return t.filter(function(t){return"constructor"===t.type&&t.inputs.length===e.length}).map(function(t){return t.inputs.map(function(t){return t.type})}).map(function(t){return o.encodeParams(t,e)})[0]||""},u=function(t){t.abi.filter(function(t){return"function"===t.type}).map(function(e){return new a(t._eth,e,t.address)}).forEach(function(e){e.attachToContract(t)})},f=function(t){var e=t.abi.filter(function(t){return"event"===t.type}),n=new s(t._eth._requestManager,e,t.address);n.attachToContract(t),e.map(function(e){return new i(t._eth._requestManager,e,t.address)}).forEach(function(e){e.attachToContract(t)})},l=function(t,e){var n=0,r=!1,o=t._eth.filter("latest",function(i){if(!i&&!r)if(n++,n>50){if(o.stopWatching(function(){}),r=!0,!e)throw new Error("Contract transaction couldn't be found after 50 blocks");e(new Error("Contract transaction couldn't be found after 50 blocks"))}else t._eth.getTransactionReceipt(t.transactionHash,function(n,i){i&&!r&&t._eth.getCode(i.contractAddress,function(n,a){if(!r&&a)if(o.stopWatching(function(){}),r=!0,a.length>3)t.address=i.contractAddress,u(t),f(t),e&&e(null,t);else{if(!e)throw new Error("The contract code couldn't be stored, please check your gas amount.");e(new Error("The contract code couldn't be stored, please check your gas amount."))}})})})},p=function(t,e){this.eth=t,this.abi=e,this.new=function(){var t,n=new h(this.eth,this.abi),o={},i=Array.prototype.slice.call(arguments);r.isFunction(i[i.length-1])&&(t=i.pop());var a=i[i.length-1];if(r.isObject(a)&&!r.isArray(a)&&(o=i.pop()),o.value>0){var s=e.filter(function(t){return"constructor"===t.type&&t.inputs.length===i.length})[0]||{};if(!s.payable)throw new Error("Cannot send value to non-payable constructor")}var u=c(this.abi,i);if(o.data+=u,t)this.eth.sendTransaction(o,function(e,r){e?t(e):(n.transactionHash=r,t(null,n),l(n,t))});else{var f=this.eth.sendTransaction(o);n.transactionHash=f,l(n)}return n},this.new.getData=this.getData.bind(this)};p.prototype.at=function(t,e){var n=new h(this.eth,this.abi,t);return u(n),f(n),e&&e(null,n),n},p.prototype.getData=function(){var t={},e=Array.prototype.slice.call(arguments),n=e[e.length-1];r.isObject(n)&&!r.isArray(n)&&(t=e.pop());var o=c(this.abi,e);return t.data+=o,t.data};var h=function(t,e,n){this._eth=t,this.transactionHash=null,this.address=n,this.abi=e};e.exports=p},{"../solidity/coder":7,"../utils/utils":20,"./allevents":23,"./event":27,"./function":31}],26:[function(t,e,n){e.exports={InvalidNumberOfSolidityArgs:function(){return new Error("Invalid number of arguments to Solidity function")},InvalidNumberOfRPCParams:function(){return new Error("Invalid number of input parameters to RPC method")},InvalidConnection:function(t){return new Error("CONNECTION ERROR: Couldn't connect to node "+t+".")},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(t){var e=t&&t.error&&t.error.message?t.error.message:"Invalid JSON RPC response: "+JSON.stringify(t);return new Error(e)},ConnectionTimeout:function(t){return new Error("CONNECTION TIMEOUT: timeout of "+t+" ms achived")}}},{}],27:[function(t,e,n){var r=t("../utils/utils"),o=t("../solidity/coder"),i=t("./formatters"),a=t("../utils/sha3"),s=t("./filter"),c=t("./methods/watches"),u=function(t,e,n){this._requestManager=t,this._params=e.inputs,this._name=r.transformToFullName(e),this._address=n,this._anonymous=e.anonymous};u.prototype.types=function(t){return this._params.filter(function(e){return e.indexed===t}).map(function(t){return t.type})},u.prototype.displayName=function(){return r.extractDisplayName(this._name)},u.prototype.typeName=function(){return r.extractTypeName(this._name)},u.prototype.signature=function(){return a(this._name)},u.prototype.encode=function(t,e){t=t||{},e=e||{};var n={};["fromBlock","toBlock"].filter(function(t){return void 0!==e[t]}).forEach(function(t){n[t]=i.inputBlockNumberFormatter(e[t])}),n.topics=[],n.address=this._address,this._anonymous||n.topics.push("0x"+this.signature());var a=this._params.filter(function(t){return t.indexed===!0}).map(function(e){var n=t[e.name];return void 0===n||null===n?null:r.isArray(n)?n.map(function(t){return"0x"+o.encodeParam(e.type,t)}):"0x"+o.encodeParam(e.type,n)});return n.topics=n.topics.concat(a),n},u.prototype.decode=function(t){t.data=t.data||"",t.topics=t.topics||[];var e=this._anonymous?t.topics:t.topics.slice(1),n=e.map(function(t){return t.slice(2)}).join(""),r=o.decodeParams(this.types(!0),n),a=t.data.slice(2),s=o.decodeParams(this.types(!1),a),c=i.outputLogFormatter(t);return c.event=this.displayName(),c.address=t.address,c.args=this._params.reduce(function(t,e){return t[e.name]=e.indexed?r.shift():s.shift(),t},{}),delete c.data,delete c.topics,c},u.prototype.execute=function(t,e,n){r.isFunction(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],2===arguments.length&&(e=null),1===arguments.length&&(e=null,t={}));var o=this.encode(t,e),i=this.decode.bind(this);return new s(this._requestManager,o,c.eth(),i,n)},u.prototype.attachToContract=function(t){var e=this.execute.bind(this),n=this.displayName();t[n]||(t[n]=e),t[n][this.typeName()]=this.execute.bind(this,t)},e.exports=u},{"../solidity/coder":7,"../utils/sha3":19,"../utils/utils":20,"./filter":29,"./formatters":30,"./methods/watches":43}],28:[function(t,e,n){var r=t("./formatters"),o=t("./../utils/utils"),i=t("./method"),a=t("./property"),s=function(t){var e=function(e){var n;e.property?(t[e.property]||(t[e.property]={}),n=t[e.property]):n=t,e.methods&&e.methods.forEach(function(e){e.attachToObject(n),e.setRequestManager(t._requestManager)}),e.properties&&e.properties.forEach(function(e){e.attachToObject(n),e.setRequestManager(t._requestManager)})};return e.formatters=r,e.utils=o,e.Method=i,e.Property=a,e};e.exports=s},{"./../utils/utils":20,"./formatters":30,"./method":36,"./property":45}],29:[function(t,e,n){var r=t("./formatters"),o=t("../utils/utils"),i=function(t){return null===t||"undefined"==typeof t?null:(t=String(t),0===t.indexOf("0x")?t:o.fromUtf8(t))},a=function(t){return o.isString(t)?t:(t=t||{},t.topics=t.topics||[],t.topics=t.topics.map(function(t){return o.isArray(t)?t.map(i):i(t)}),{topics:t.topics,from:t.from,to:t.to,address:t.address,fromBlock:r.inputBlockNumberFormatter(t.fromBlock),toBlock:r.inputBlockNumberFormatter(t.toBlock)})},s=function(t,e){o.isString(t.options)||t.get(function(t,n){t&&e(t),o.isArray(n)&&n.forEach(function(t){e(null,t)})})},c=function(t){var e=function(e,n){return e?t.callbacks.forEach(function(t){t(e)}):void(o.isArray(n)&&n.forEach(function(e){e=t.formatter?t.formatter(e):e, +t.callbacks.forEach(function(t){t(null,e)})}))};t.requestManager.startPolling({method:t.implementation.poll.call,params:[t.filterId]},t.filterId,e,t.stopWatching.bind(t))},u=function(t,e,n,r,o,i){var u=this,f={};return n.forEach(function(e){e.setRequestManager(t),e.attachToObject(f)}),this.requestManager=t,this.options=a(e),this.implementation=f,this.filterId=null,this.callbacks=[],this.getLogsCallbacks=[],this.pollFilters=[],this.formatter=r,this.implementation.newFilter(this.options,function(t,e){if(t)u.callbacks.forEach(function(e){e(t)}),"function"==typeof i&&i(t);else if(u.filterId=e,u.getLogsCallbacks.forEach(function(t){u.get(t)}),u.getLogsCallbacks=[],u.callbacks.forEach(function(t){s(u,t)}),u.callbacks.length>0&&c(u),"function"==typeof o)return u.watch(o)}),this};u.prototype.watch=function(t){return this.callbacks.push(t),this.filterId&&(s(this,t),c(this)),this},u.prototype.stopWatching=function(t){return this.requestManager.stopPolling(this.filterId),this.callbacks=[],t?void this.implementation.uninstallFilter(this.filterId,t):this.implementation.uninstallFilter(this.filterId)},u.prototype.get=function(t){var e=this;if(!o.isFunction(t)){if(null===this.filterId)throw new Error("Filter ID Error: filter().get() can't be chained synchronous, please provide a callback for the get() method.");var n=this.implementation.getLogs(this.filterId);return n.map(function(t){return e.formatter?e.formatter(t):t})}return null===this.filterId?this.getLogsCallbacks.push(t):this.implementation.getLogs(this.filterId,function(n,r){n?t(n):t(null,r.map(function(t){return e.formatter?e.formatter(t):t}))}),this},e.exports=u},{"../utils/utils":20,"./formatters":30}],30:[function(t,e,n){var r=t("../utils/utils"),o=t("../utils/config"),i=t("./iban"),a=function(t){return r.toBigNumber(t)},s=function(t){return"latest"===t||"pending"===t||"earliest"===t},c=function(t){return void 0===t?o.defaultBlock:u(t)},u=function(t){if(void 0!==t)return s(t)?t:r.toHex(t)},f=function(t){return t.from=t.from||o.defaultAccount,t.from&&(t.from=v(t.from)),t.to&&(t.to=v(t.to)),["gasPrice","gas","value","nonce"].filter(function(e){return void 0!==t[e]}).forEach(function(e){t[e]=r.fromDecimal(t[e])}),t},l=function(t){return t.from=t.from||o.defaultAccount,t.from=v(t.from),t.to&&(t.to=v(t.to)),["gasPrice","gas","value","nonce"].filter(function(e){return void 0!==t[e]}).forEach(function(e){t[e]=r.fromDecimal(t[e])}),t},p=function(t){return null!==t.blockNumber&&(t.blockNumber=r.toDecimal(t.blockNumber)),null!==t.transactionIndex&&(t.transactionIndex=r.toDecimal(t.transactionIndex)),t.nonce=r.toDecimal(t.nonce),t.gas=r.toDecimal(t.gas),t.gasPrice=r.toBigNumber(t.gasPrice),t.value=r.toBigNumber(t.value),t},h=function(t){return null!==t.blockNumber&&(t.blockNumber=r.toDecimal(t.blockNumber)),null!==t.transactionIndex&&(t.transactionIndex=r.toDecimal(t.transactionIndex)),t.cumulativeGasUsed=r.toDecimal(t.cumulativeGasUsed),t.gasUsed=r.toDecimal(t.gasUsed),r.isArray(t.logs)&&(t.logs=t.logs.map(function(t){return m(t)})),t},d=function(t){return t.gasLimit=r.toDecimal(t.gasLimit),t.gasUsed=r.toDecimal(t.gasUsed),t.size=r.toDecimal(t.size),t.timestamp=r.toDecimal(t.timestamp),null!==t.number&&(t.number=r.toDecimal(t.number)),t.difficulty=r.toBigNumber(t.difficulty),t.totalDifficulty=r.toBigNumber(t.totalDifficulty),r.isArray(t.transactions)&&t.transactions.forEach(function(t){if(!r.isString(t))return p(t)}),t},m=function(t){return null!==t.blockNumber&&(t.blockNumber=r.toDecimal(t.blockNumber)),null!==t.transactionIndex&&(t.transactionIndex=r.toDecimal(t.transactionIndex)),null!==t.logIndex&&(t.logIndex=r.toDecimal(t.logIndex)),t},y=function(t){return t.ttl=r.fromDecimal(t.ttl),t.workToProve=r.fromDecimal(t.workToProve),t.priority=r.fromDecimal(t.priority),r.isArray(t.topics)||(t.topics=t.topics?[t.topics]:[]),t.topics=t.topics.map(function(t){return 0===t.indexOf("0x")?t:r.fromUtf8(t)}),t},g=function(t){return t.expiry=r.toDecimal(t.expiry),t.sent=r.toDecimal(t.sent),t.ttl=r.toDecimal(t.ttl),t.workProved=r.toDecimal(t.workProved),t.topics||(t.topics=[]),t.topics=t.topics.map(function(t){return r.toAscii(t)}),t},v=function(t){var e=new i(t);if(e.isValid()&&e.isDirect())return"0x"+e.address();if(r.isStrictAddress(t))return t;if(r.isAddress(t))return"0x"+t;throw new Error("invalid address")},b=function(t){return t.startingBlock=r.toDecimal(t.startingBlock),t.currentBlock=r.toDecimal(t.currentBlock),t.highestBlock=r.toDecimal(t.highestBlock),t.knownStates&&(t.knownStates=r.toDecimal(t.knownStates),t.pulledStates=r.toDecimal(t.pulledStates)),t};e.exports={inputDefaultBlockNumberFormatter:c,inputBlockNumberFormatter:u,inputCallFormatter:f,inputTransactionFormatter:l,inputAddressFormatter:v,inputPostFormatter:y,outputBigNumberFormatter:a,outputTransactionFormatter:p,outputTransactionReceiptFormatter:h,outputBlockFormatter:d,outputLogFormatter:m,outputPostFormatter:g,outputSyncingFormatter:b}},{"../utils/config":18,"../utils/utils":20,"./iban":33}],31:[function(t,e,n){var r=t("../solidity/coder"),o=t("../utils/utils"),i=t("./errors"),a=t("./formatters"),s=t("../utils/sha3"),c=function(t,e,n){this._eth=t,this._inputTypes=e.inputs.map(function(t){return t.type}),this._outputTypes=e.outputs.map(function(t){return t.type}),this._constant=e.constant,this._payable=e.payable,this._name=o.transformToFullName(e),this._address=n};c.prototype.extractCallback=function(t){if(o.isFunction(t[t.length-1]))return t.pop()},c.prototype.extractDefaultBlock=function(t){if(t.length>this._inputTypes.length&&!o.isObject(t[t.length-1]))return a.inputDefaultBlockNumberFormatter(t.pop())},c.prototype.validateArgs=function(t){var e=t.filter(function(t){return!(o.isObject(t)===!0&&o.isArray(t)===!1)});if(e.length!==this._inputTypes.length)throw i.InvalidNumberOfSolidityArgs()},c.prototype.toPayload=function(t){var e={};return t.length>this._inputTypes.length&&o.isObject(t[t.length-1])&&(e=t[t.length-1]),this.validateArgs(t),e.to=this._address,e.data="0x"+this.signature()+r.encodeParams(this._inputTypes,t),e},c.prototype.signature=function(){return s(this._name).slice(0,8)},c.prototype.unpackOutput=function(t){if(t){t=t.length>=2?t.slice(2):t;var e=r.decodeParams(this._outputTypes,t);return 1===e.length?e[0]:e}},c.prototype.call=function(){var t=Array.prototype.slice.call(arguments).filter(function(t){return void 0!==t}),e=this.extractCallback(t),n=this.extractDefaultBlock(t),r=this.toPayload(t);if(!e){var o=this._eth.call(r,n);return this.unpackOutput(o)}var i=this;this._eth.call(r,n,function(t,n){if(t)return e(t,null);var r=null;try{r=i.unpackOutput(n)}catch(e){t=e}e(t,r)})},c.prototype.sendTransaction=function(){var t=Array.prototype.slice.call(arguments).filter(function(t){return void 0!==t}),e=this.extractCallback(t),n=this.toPayload(t);if(n.value>0&&!this._payable)throw new Error("Cannot send value to non-payable function");return e?void this._eth.sendTransaction(n,e):this._eth.sendTransaction(n)},c.prototype.estimateGas=function(){var t=Array.prototype.slice.call(arguments),e=this.extractCallback(t),n=this.toPayload(t);return e?void this._eth.estimateGas(n,e):this._eth.estimateGas(n)},c.prototype.getData=function(){var t=Array.prototype.slice.call(arguments),e=this.toPayload(t);return e.data},c.prototype.displayName=function(){return o.extractDisplayName(this._name)},c.prototype.typeName=function(){return o.extractTypeName(this._name)},c.prototype.request=function(){var t=Array.prototype.slice.call(arguments),e=this.extractCallback(t),n=this.toPayload(t),r=this.unpackOutput.bind(this);return{method:this._constant?"eth_call":"eth_sendTransaction",callback:e,params:[n],format:r}},c.prototype.execute=function(){var t=!this._constant;return t?this.sendTransaction.apply(this,Array.prototype.slice.call(arguments)):this.call.apply(this,Array.prototype.slice.call(arguments))},c.prototype.attachToContract=function(t){var e=this.execute.bind(this);e.request=this.request.bind(this),e.call=this.call.bind(this),e.sendTransaction=this.sendTransaction.bind(this),e.estimateGas=this.estimateGas.bind(this),e.getData=this.getData.bind(this);var n=this.displayName();t[n]||(t[n]=e),t[n][this.typeName()]=e},e.exports=c},{"../solidity/coder":7,"../utils/sha3":19,"../utils/utils":20,"./errors":26,"./formatters":30}],32:[function(t,e,n){var r=t("./errors");"undefined"!=typeof window&&window.XMLHttpRequest?XMLHttpRequest=window.XMLHttpRequest:XMLHttpRequest=t("xmlhttprequest").XMLHttpRequest;var o=t("xhr2"),i=function(t,e){this.host=t||"http://localhost:8545",this.timeout=e||0};i.prototype.prepareRequest=function(t){var e;return t?(e=new o,e.timeout=this.timeout):e=new XMLHttpRequest,e.open("POST",this.host,t),e.setRequestHeader("Content-Type","application/json"),e},i.prototype.send=function(t){var e=this.prepareRequest(!1);try{e.send(JSON.stringify(t))}catch(t){throw r.InvalidConnection(this.host)}var n=e.responseText;try{n=JSON.parse(n)}catch(t){throw r.InvalidResponse(e.responseText)}return n},i.prototype.sendAsync=function(t,e){var n=this.prepareRequest(!0);n.onreadystatechange=function(){if(4===n.readyState&&1!==n.timeout){var t=n.responseText,o=null;try{t=JSON.parse(t)}catch(t){o=r.InvalidResponse(n.responseText)}e(o,t)}},n.ontimeout=function(){e(r.ConnectionTimeout(this.timeout))};try{n.send(JSON.stringify(t))}catch(t){e(r.InvalidConnection(this.host))}},i.prototype.isConnected=function(){try{return this.send({id:9999999999,jsonrpc:"2.0",method:"net_listening",params:[]}),!0}catch(t){return!1}},e.exports=i},{"./errors":26,xhr2:85,xmlhttprequest:17}],33:[function(t,e,n){var r=t("bignumber.js"),o=function(t,e){for(var n=t;n.length<2*e;)n="0"+n;return n},i=function(t){var e="A".charCodeAt(0),n="Z".charCodeAt(0);return t=t.toUpperCase(),t=t.substr(4)+t.substr(0,4),t.split("").map(function(t){var r=t.charCodeAt(0);return r>=e&&r<=n?r-e+10:t}).join("")},a=function(t){for(var e,n=t;n.length>2;)e=n.slice(0,9),n=parseInt(e,10)%97+n.slice(e.length);return parseInt(n,10)%97},s=function(t){this._iban=t};s.fromAddress=function(t){var e=new r(t,16),n=e.toString(36),i=o(n,15);return s.fromBban(i.toUpperCase())},s.fromBban=function(t){var e="XE",n=a(i(e+"00"+t)),r=("0"+(98-n)).slice(-2);return new s(e+r+t)},s.createIndirect=function(t){return s.fromBban("ETH"+t.institution+t.identifier)},s.isValid=function(t){var e=new s(t);return e.isValid()},s.prototype.isValid=function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===a(i(this._iban))},s.prototype.isDirect=function(){return 34===this._iban.length||35===this._iban.length},s.prototype.isIndirect=function(){return 20===this._iban.length},s.prototype.checksum=function(){return this._iban.substr(2,2)},s.prototype.institution=function(){return this.isIndirect()?this._iban.substr(7,4):""},s.prototype.client=function(){return this.isIndirect()?this._iban.substr(11):""},s.prototype.address=function(){if(this.isDirect()){var t=this._iban.substr(4),e=new r(t,36);return o(e.toString(16),20)}return""},s.prototype.toString=function(){return this._iban},e.exports=s},{"bignumber.js":"bignumber.js"}],34:[function(t,e,n){"use strict";var r=t("../utils/utils"),o=t("./errors"),i=function(t,e){var n=this;this.responseCallbacks={},this.path=t,this.connection=e.connect({path:this.path}),this.connection.on("error",function(t){console.error("IPC Connection Error",t),n._timeout()}),this.connection.on("end",function(){n._timeout()}),this.connection.on("data",function(t){n._parseResponse(t.toString()).forEach(function(t){var e=null;r.isArray(t)?t.forEach(function(t){n.responseCallbacks[t.id]&&(e=t.id)}):e=t.id,n.responseCallbacks[e]&&(n.responseCallbacks[e](null,t),delete n.responseCallbacks[e])})})};i.prototype._parseResponse=function(t){var e=this,n=[],r=t.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|");return r.forEach(function(t){e.lastChunk&&(t=e.lastChunk+t);var r=null;try{r=JSON.parse(t)}catch(n){return e.lastChunk=t,clearTimeout(e.lastChunkTimeout),void(e.lastChunkTimeout=setTimeout(function(){throw e._timeout(),o.InvalidResponse(t)},15e3))}clearTimeout(e.lastChunkTimeout),e.lastChunk=null,r&&n.push(r)}),n},i.prototype._addResponseCallback=function(t,e){var n=t.id||t[0].id,r=t.method||t[0].method;this.responseCallbacks[n]=e,this.responseCallbacks[n].method=r},i.prototype._timeout=function(){for(var t in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(t)&&(this.responseCallbacks[t](o.InvalidConnection("on IPC")),delete this.responseCallbacks[t])},i.prototype.isConnected=function(){var t=this;return t.connection.writable||t.connection.connect({path:t.path}),!!this.connection.writable},i.prototype.send=function(t){if(this.connection.writeSync){var e;this.connection.writable||this.connection.connect({path:this.path});var n=this.connection.writeSync(JSON.stringify(t));try{e=JSON.parse(n)}catch(t){throw o.InvalidResponse(n)}return e}throw new Error('You tried to send "'+t.method+'" synchronously. Synchronous requests are not supported by the IPC provider.')},i.prototype.sendAsync=function(t,e){this.connection.writable||this.connection.connect({path:this.path}),this.connection.write(JSON.stringify(t)),this._addResponseCallback(t,e)},e.exports=i},{"../utils/utils":20,"./errors":26}],35:[function(t,e,n){var r={messageId:0};r.toPayload=function(t,e){return t||console.error("jsonrpc method should be specified!"),r.messageId++,{jsonrpc:"2.0",id:r.messageId,method:t,params:e||[]}},r.isValidResponse=function(t){function e(t){return!!t&&!t.error&&"2.0"===t.jsonrpc&&"number"==typeof t.id&&void 0!==t.result}return Array.isArray(t)?t.every(e):e(t)},r.toBatchPayload=function(t){return t.map(function(t){return r.toPayload(t.method,t.params)})},e.exports=r},{}],36:[function(t,e,n){var r=t("../utils/utils"),o=t("./errors"),i=function(t){this.name=t.name,this.call=t.call,this.params=t.params||0,this.inputFormatter=t.inputFormatter,this.outputFormatter=t.outputFormatter,this.requestManager=null};i.prototype.setRequestManager=function(t){this.requestManager=t},i.prototype.getCall=function(t){return r.isFunction(this.call)?this.call(t):this.call},i.prototype.extractCallback=function(t){if(r.isFunction(t[t.length-1]))return t.pop()},i.prototype.validateArgs=function(t){if(t.length!==this.params)throw o.InvalidNumberOfRPCParams()},i.prototype.formatInput=function(t){return this.inputFormatter?this.inputFormatter.map(function(e,n){return e?e(t[n]):t[n]}):t},i.prototype.formatOutput=function(t){return this.outputFormatter&&t?this.outputFormatter(t):t},i.prototype.toPayload=function(t){var e=this.getCall(t),n=this.extractCallback(t),r=this.formatInput(t);return this.validateArgs(r),{method:e,params:r,callback:n}},i.prototype.attachToObject=function(t){var e=this.buildCall();e.call=this.call;var n=this.name.split(".");n.length>1?(t[n[0]]=t[n[0]]||{},t[n[0]][n[1]]=e):t[n[0]]=e},i.prototype.buildCall=function(){var t=this,e=function(){var e=t.toPayload(Array.prototype.slice.call(arguments));return e.callback?t.requestManager.sendAsync(e,function(n,r){e.callback(n,t.formatOutput(r))}):t.formatOutput(t.requestManager.send(e))};return e.request=this.request.bind(this),e},i.prototype.request=function(){var t=this.toPayload(Array.prototype.slice.call(arguments));return t.format=this.formatOutput.bind(this),t},e.exports=i},{"../utils/utils":20,"./errors":26}],37:[function(t,e,n){var r=t("../method"),o=function(t){this._requestManager=t._requestManager;var e=this;i().forEach(function(n){n.attachToObject(e),n.setRequestManager(t._requestManager)})},i=function(){var t=new r({name:"putString",call:"db_putString",params:3}),e=new r({name:"getString",call:"db_getString",params:2}),n=new r({name:"putHex",call:"db_putHex",params:3}),o=new r({name:"getHex",call:"db_getHex",params:2});return[t,e,n,o]};e.exports=o},{"../method":36}],38:[function(t,e,n){"use strict";function r(t){this._requestManager=t._requestManager;var e=this;w().forEach(function(t){t.attachToObject(e),t.setRequestManager(e._requestManager)}),x().forEach(function(t){t.attachToObject(e),t.setRequestManager(e._requestManager)}),this.iban=d,this.sendIBANTransaction=m.bind(null,this)}var o=t("../formatters"),i=t("../../utils/utils"),a=t("../method"),s=t("../property"),c=t("../../utils/config"),u=t("../contract"),f=t("./watches"),l=t("../filter"),p=t("../syncing"),h=t("../namereg"),d=t("../iban"),m=t("../transfer"),y=function(t){return i.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getBlockByHash":"eth_getBlockByNumber"},g=function(t){return i.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getTransactionByBlockHashAndIndex":"eth_getTransactionByBlockNumberAndIndex"},v=function(t){return i.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getUncleByBlockHashAndIndex":"eth_getUncleByBlockNumberAndIndex"},b=function(t){return i.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getBlockTransactionCountByHash":"eth_getBlockTransactionCountByNumber"},_=function(t){return i.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getUncleCountByBlockHash":"eth_getUncleCountByBlockNumber"};Object.defineProperty(r.prototype,"defaultBlock",{get:function(){return c.defaultBlock},set:function(t){return c.defaultBlock=t,t}}),Object.defineProperty(r.prototype,"defaultAccount",{get:function(){return c.defaultAccount},set:function(t){return c.defaultAccount=t,t}});var w=function(){var t=new a({name:"getBalance",call:"eth_getBalance",params:2,inputFormatter:[o.inputAddressFormatter,o.inputDefaultBlockNumberFormatter],outputFormatter:o.outputBigNumberFormatter}),e=new a({name:"getStorageAt",call:"eth_getStorageAt",params:3,inputFormatter:[null,i.toHex,o.inputDefaultBlockNumberFormatter]}),n=new a({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[o.inputAddressFormatter,o.inputDefaultBlockNumberFormatter]}),r=new a({name:"getBlock",call:y,params:2,inputFormatter:[o.inputBlockNumberFormatter,function(t){return!!t}],outputFormatter:o.outputBlockFormatter}),s=new a({name:"getUncle",call:v,params:2,inputFormatter:[o.inputBlockNumberFormatter,i.toHex],outputFormatter:o.outputBlockFormatter}),c=new a({name:"getCompilers",call:"eth_getCompilers",params:0}),u=new a({name:"getBlockTransactionCount",call:b,params:1,inputFormatter:[o.inputBlockNumberFormatter],outputFormatter:i.toDecimal}),f=new a({name:"getBlockUncleCount",call:_,params:1,inputFormatter:[o.inputBlockNumberFormatter],outputFormatter:i.toDecimal}),l=new a({name:"getTransaction",call:"eth_getTransactionByHash",params:1,outputFormatter:o.outputTransactionFormatter}),p=new a({name:"getTransactionFromBlock",call:g,params:2,inputFormatter:[o.inputBlockNumberFormatter,i.toHex],outputFormatter:o.outputTransactionFormatter}),h=new a({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,outputFormatter:o.outputTransactionReceiptFormatter}),d=new a({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[null,o.inputDefaultBlockNumberFormatter],outputFormatter:i.toDecimal}),m=new a({name:"sendRawTransaction",call:"eth_sendRawTransaction",params:1,inputFormatter:[null]}),w=new a({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[o.inputTransactionFormatter]}),x=new a({name:"signTransaction",call:"eth_signTransaction",params:1,inputFormatter:[o.inputTransactionFormatter]}),k=new a({name:"sign",call:"eth_sign",params:2,inputFormatter:[o.inputAddressFormatter,null]}),B=new a({name:"call",call:"eth_call",params:2,inputFormatter:[o.inputCallFormatter,o.inputDefaultBlockNumberFormatter]}),S=new a({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[o.inputCallFormatter],outputFormatter:i.toDecimal}),C=new a({name:"compile.solidity",call:"eth_compileSolidity",params:1}),A=new a({name:"compile.lll",call:"eth_compileLLL",params:1}),F=new a({name:"compile.serpent",call:"eth_compileSerpent",params:1}),I=new a({name:"submitWork",call:"eth_submitWork",params:3}),O=new a({name:"getWork",call:"eth_getWork",params:0});return[t,e,n,r,s,c,u,f,l,p,h,d,B,S,m,x,w,k,C,A,F,I,O]},x=function(){return[new s({name:"coinbase",getter:"eth_coinbase"}),new s({name:"mining",getter:"eth_mining"}),new s({name:"hashrate",getter:"eth_hashrate",outputFormatter:i.toDecimal}),new s({name:"syncing",getter:"eth_syncing",outputFormatter:o.outputSyncingFormatter}),new s({name:"gasPrice",getter:"eth_gasPrice",outputFormatter:o.outputBigNumberFormatter}),new s({name:"accounts",getter:"eth_accounts"}),new s({name:"blockNumber",getter:"eth_blockNumber",outputFormatter:i.toDecimal}),new s({name:"protocolVersion",getter:"eth_protocolVersion"})]};r.prototype.contract=function(t){var e=new u(this,t);return e},r.prototype.filter=function(t,e,n){return new l(this._requestManager,t,f.eth(),o.outputLogFormatter,e,n)},r.prototype.namereg=function(){return this.contract(h.global.abi).at(h.global.address)},r.prototype.icapNamereg=function(){return this.contract(h.icap.abi).at(h.icap.address)},r.prototype.isSyncing=function(t){return new p(this._requestManager,t)},e.exports=r},{"../../utils/config":18,"../../utils/utils":20,"../contract":25,"../filter":29,"../formatters":30,"../iban":33,"../method":36,"../namereg":44,"../property":45,"../syncing":48,"../transfer":49,"./watches":43}],39:[function(t,e,n){var r=t("../../utils/utils"),o=t("../property"),i=function(t){this._requestManager=t._requestManager;var e=this;a().forEach(function(n){n.attachToObject(e),n.setRequestManager(t._requestManager)})},a=function(){return[new o({name:"listening",getter:"net_listening"}),new o({name:"peerCount",getter:"net_peerCount",outputFormatter:r.toDecimal})]};e.exports=i},{"../../utils/utils":20,"../property":45}],40:[function(t,e,n){"use strict";function r(t){this._requestManager=t._requestManager;var e=this;s().forEach(function(t){t.attachToObject(e),t.setRequestManager(e._requestManager)}),c().forEach(function(t){t.attachToObject(e),t.setRequestManager(e._requestManager)})}var o=t("../method"),i=t("../property"),a=t("../formatters"),s=function(){var t=new o({name:"newAccount",call:"personal_newAccount",params:1,inputFormatter:[null]}),e=new o({name:"importRawKey",call:"personal_importRawKey",params:2}),n=new o({name:"sign",call:"personal_sign",params:3,inputFormatter:[null,a.inputAddressFormatter,null]}),r=new o({name:"ecRecover",call:"personal_ecRecover",params:2}),i=new o({name:"unlockAccount",call:"personal_unlockAccount",params:3,inputFormatter:[a.inputAddressFormatter,null,null]}),s=new o({name:"sendTransaction",call:"personal_sendTransaction",params:2,inputFormatter:[a.inputTransactionFormatter,null]}),c=new o({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[a.inputAddressFormatter]});return[t,e,i,r,n,s,c]},c=function(){return[new i({name:"listAccounts",getter:"personal_listAccounts"})]};e.exports=r},{"../formatters":30,"../method":36,"../property":45}],41:[function(t,e,n){var r=t("../method"),o=t("../formatters"),i=t("../filter"),a=t("./watches"),s=function(t){this._requestManager=t._requestManager;var e=this;c().forEach(function(t){t.attachToObject(e),t.setRequestManager(e._requestManager)})};s.prototype.filter=function(t,e){return new i(this._requestManager,t,a.shh(),o.outputPostFormatter,e)};var c=function(){var t=new r({name:"post",call:"shh_post",params:1,inputFormatter:[o.inputPostFormatter]}),e=new r({name:"newIdentity",call:"shh_newIdentity",params:0}),n=new r({name:"hasIdentity",call:"shh_hasIdentity",params:1}),i=new r({name:"newGroup",call:"shh_newGroup",params:0}),a=new r({name:"addToGroup",call:"shh_addToGroup",params:0});return[t,e,n,i,a]};e.exports=s},{"../filter":29,"../formatters":30,"../method":36,"./watches":43}],42:[function(t,e,n){"use strict";function r(t){this._requestManager=t._requestManager;var e=this;a().forEach(function(t){t.attachToObject(e),t.setRequestManager(e._requestManager)}),s().forEach(function(t){t.attachToObject(e),t.setRequestManager(e._requestManager)})}var o=t("../method"),i=t("../property"),a=function(){var t=new o({name:"blockNetworkRead",call:"bzz_blockNetworkRead",params:1,inputFormatter:[null]}),e=new o({name:"syncEnabled",call:"bzz_syncEnabled",params:1,inputFormatter:[null]}),n=new o({name:"swapEnabled",call:"bzz_swapEnabled",params:1,inputFormatter:[null]}),r=new o({name:"download",call:"bzz_download",params:2,inputFormatter:[null,null]}),i=new o({name:"upload",call:"bzz_upload",params:2,inputFormatter:[null,null]}),a=new o({name:"retrieve",call:"bzz_retrieve",params:1,inputFormatter:[null]}),s=new o({name:"store",call:"bzz_store",params:2,inputFormatter:[null,null]}),c=new o({name:"get",call:"bzz_get",params:1,inputFormatter:[null]}),u=new o({name:"put",call:"bzz_put",params:2,inputFormatter:[null,null]}),f=new o({name:"modify",call:"bzz_modify",params:4,inputFormatter:[null,null,null,null]});return[t,e,n,r,i,a,s,c,u,f]},s=function(){return[new i({name:"hive",getter:"bzz_hive"}),new i({name:"info",getter:"bzz_info"})]};e.exports=r},{"../method":36,"../property":45}],43:[function(t,e,n){var r=t("../method"),o=function(){var t=function(t){var e=t[0];switch(e){case"latest":return t.shift(),this.params=0,"eth_newBlockFilter";case"pending":return t.shift(),this.params=0,"eth_newPendingTransactionFilter";default:return"eth_newFilter"}},e=new r({name:"newFilter",call:t,params:1}),n=new r({name:"uninstallFilter",call:"eth_uninstallFilter",params:1}),o=new r({name:"getLogs",call:"eth_getFilterLogs",params:1}),i=new r({name:"poll",call:"eth_getFilterChanges",params:1});return[e,n,o,i]},i=function(){var t=new r({name:"newFilter",call:"shh_newFilter",params:1}),e=new r({name:"uninstallFilter",call:"shh_uninstallFilter",params:1}),n=new r({name:"getLogs",call:"shh_getMessages",params:1}),o=new r({name:"poll",call:"shh_getFilterChanges",params:1});return[t,e,n,o]};e.exports={eth:o,shh:i}},{"../method":36}],44:[function(t,e,n){var r=t("../contracts/GlobalRegistrar.json"),o=t("../contracts/ICAPRegistrar.json"),i="0xc6d9d2cd449a754c494264e1809c50e34d64562b",a="0xa1a111bc074c9cfa781f0c38e63bd51c91b8af00";e.exports={global:{abi:r,address:i},icap:{abi:o,address:a}}},{"../contracts/GlobalRegistrar.json":1,"../contracts/ICAPRegistrar.json":2}],45:[function(t,e,n){var r=t("../utils/utils"),o=function(t){this.name=t.name,this.getter=t.getter,this.setter=t.setter,this.outputFormatter=t.outputFormatter,this.inputFormatter=t.inputFormatter,this.requestManager=null};o.prototype.setRequestManager=function(t){this.requestManager=t},o.prototype.formatInput=function(t){return this.inputFormatter?this.inputFormatter(t):t},o.prototype.formatOutput=function(t){return this.outputFormatter&&null!==t&&void 0!==t?this.outputFormatter(t):t},o.prototype.extractCallback=function(t){if(r.isFunction(t[t.length-1]))return t.pop()},o.prototype.attachToObject=function(t){var e={get:this.buildGet(),enumerable:!0},n=this.name.split("."),r=n[0];n.length>1&&(t[n[0]]=t[n[0]]||{},t=t[n[0]],r=n[1]),Object.defineProperty(t,r,e),t[i(r)]=this.buildAsyncGet()};var i=function(t){return"get"+t.charAt(0).toUpperCase()+t.slice(1)};o.prototype.buildGet=function(){var t=this;return function(){return t.formatOutput(t.requestManager.send({method:t.getter}))}},o.prototype.buildAsyncGet=function(){var t=this,e=function(e){t.requestManager.sendAsync({method:t.getter},function(n,r){e(n,t.formatOutput(r))})};return e.request=this.request.bind(this),e},o.prototype.request=function(){var t={method:this.getter,params:[],callback:this.extractCallback(Array.prototype.slice.call(arguments))};return t.format=this.formatOutput.bind(this),t},e.exports=o},{"../utils/utils":20}],46:[function(t,e,n){var r=t("./jsonrpc"),o=t("../utils/utils"),i=t("../utils/config"),a=t("./errors"),s=function(t){this.provider=t,this.polls={},this.timeout=null};s.prototype.send=function(t){if(!this.provider)return console.error(a.InvalidProvider()),null;var e=r.toPayload(t.method,t.params),n=this.provider.send(e);if(!r.isValidResponse(n))throw a.InvalidResponse(n);return n.result},s.prototype.sendAsync=function(t,e){if(!this.provider)return e(a.InvalidProvider());var n=r.toPayload(t.method,t.params);this.provider.sendAsync(n,function(t,n){return t?e(t):r.isValidResponse(n)?void e(null,n.result):e(a.InvalidResponse(n))})},s.prototype.sendBatch=function(t,e){if(!this.provider)return e(a.InvalidProvider());var n=r.toBatchPayload(t);this.provider.sendAsync(n,function(t,n){return t?e(t):o.isArray(n)?void e(t,n):e(a.InvalidResponse(n))})},s.prototype.setProvider=function(t){this.provider=t},s.prototype.startPolling=function(t,e,n,r){this.polls[e]={data:t,id:e,callback:n,uninstall:r},this.timeout||this.poll()},s.prototype.stopPolling=function(t){delete this.polls[t],0===Object.keys(this.polls).length&&this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},s.prototype.reset=function(t){for(var e in this.polls)t&&e.indexOf("syncPoll_")!==-1||(this.polls[e].uninstall(),delete this.polls[e]);0===Object.keys(this.polls).length&&this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},s.prototype.poll=function(){if(this.timeout=setTimeout(this.poll.bind(this),i.ETH_POLLING_TIMEOUT),0!==Object.keys(this.polls).length){if(!this.provider)return void console.error(a.InvalidProvider());var t=[],e=[];for(var n in this.polls)t.push(this.polls[n].data),e.push(n);if(0!==t.length){var s=r.toBatchPayload(t),c={};s.forEach(function(t,n){c[t.id]=e[n]});var u=this;this.provider.sendAsync(s,function(t,e){if(!t){if(!o.isArray(e))throw a.InvalidResponse(e);e.map(function(t){var e=c[t.id];return!!u.polls[e]&&(t.callback=u.polls[e].callback,t)}).filter(function(t){return!!t}).filter(function(t){var e=r.isValidResponse(t);return e||t.callback(a.InvalidResponse(t)),e}).forEach(function(t){t.callback(null,t.result)})}})}}},e.exports=s},{"../utils/config":18,"../utils/utils":20,"./errors":26,"./jsonrpc":35}],47:[function(t,e,n){var r=function(){this.defaultBlock="latest",this.defaultAccount=void 0};e.exports=r},{}],48:[function(t,e,n){var r=t("./formatters"),o=t("../utils/utils"),i=1,a=function(t){var e=function(e,n){return e?t.callbacks.forEach(function(t){t(e)}):(o.isObject(n)&&n.startingBlock&&(n=r.outputSyncingFormatter(n)),void t.callbacks.forEach(function(e){t.lastSyncState!==n&&(!t.lastSyncState&&o.isObject(n)&&e(null,!0),setTimeout(function(){e(null,n)},0),t.lastSyncState=n)}))};t.requestManager.startPolling({method:"eth_syncing",params:[]},t.pollId,e,t.stopWatching.bind(t))},s=function(t,e){return this.requestManager=t,this.pollId="syncPoll_"+i++,this.callbacks=[],this.addCallback(e),this.lastSyncState=!1,a(this),this};s.prototype.addCallback=function(t){return t&&this.callbacks.push(t),this},s.prototype.stopWatching=function(){this.requestManager.stopPolling(this.pollId),this.callbacks=[]},e.exports=s},{"../utils/utils":20,"./formatters":30}],49:[function(t,e,n){var r=t("./iban"),o=t("../contracts/SmartExchange.json"),i=function(t,e,n,o,i){var c=new r(n);if(!c.isValid())throw new Error("invalid iban address");if(c.isDirect())return a(t,e,c.address(),o,i);if(!i){var u=t.icapNamereg().addr(c.institution());return s(t,e,u,o,c.client())}t.icapNamereg().addr(c.institution(),function(n,r){return s(t,e,r,o,c.client(),i)})},a=function(t,e,n,r,o){return t.sendTransaction({address:n,from:e,value:r},o)},s=function(t,e,n,r,i,a){var s=o;return t.contract(s).at(n).deposit(i,{from:e,value:r},a)};e.exports=i},{"../contracts/SmartExchange.json":3,"./iban":33}],50:[function(t,e,n){!function(r,o,i){"object"==typeof n?e.exports=n=o(t("./core"),t("./enc-base64"),t("./md5"),t("./evpkdf"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],o):o(r.CryptoJS)}(this,function(t){return function(){var e=t,n=e.lib,r=n.BlockCipher,o=e.algo,i=[],a=[],s=[],c=[],u=[],f=[],l=[],p=[],h=[],d=[];!function(){for(var t=[],e=0;e<256;e++)e<128?t[e]=e<<1:t[e]=e<<1^283;for(var n=0,r=0,e=0;e<256;e++){var o=r^r<<1^r<<2^r<<3^r<<4;o=o>>>8^255&o^99,i[n]=o,a[o]=n;var m=t[n],y=t[m],g=t[y],v=257*t[o]^16843008*o;s[n]=v<<24|v>>>8,c[n]=v<<16|v>>>16,u[n]=v<<8|v>>>24,f[n]=v;var v=16843009*g^65537*y^257*m^16843008*n; +l[o]=v<<24|v>>>8,p[o]=v<<16|v>>>16,h[o]=v<<8|v>>>24,d[o]=v,n?(n=m^t[t[t[g^m]]],r^=t[t[r]]):n=r=1}}();var m=[0,1,2,4,8,16,32,64,128,27,54],y=o.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,r=this._nRounds=n+6,o=4*(r+1),a=this._keySchedule=[],s=0;s6&&s%n==4&&(c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c]):(c=c<<8|c>>>24,c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c],c^=m[s/n|0]<<24),a[s]=a[s-n]^c}for(var u=this._invKeySchedule=[],f=0;f>>24]]^p[i[c>>>16&255]]^h[i[c>>>8&255]]^d[i[255&c]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,c,u,f,i)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,l,p,h,d,a);var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,o,i,a,s){for(var c=this._nRounds,u=t[e]^n[0],f=t[e+1]^n[1],l=t[e+2]^n[2],p=t[e+3]^n[3],h=4,d=1;d>>24]^o[f>>>16&255]^i[l>>>8&255]^a[255&p]^n[h++],y=r[f>>>24]^o[l>>>16&255]^i[p>>>8&255]^a[255&u]^n[h++],g=r[l>>>24]^o[p>>>16&255]^i[u>>>8&255]^a[255&f]^n[h++],v=r[p>>>24]^o[u>>>16&255]^i[f>>>8&255]^a[255&l]^n[h++];u=m,f=y,l=g,p=v}var m=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&p])^n[h++],y=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[p>>>8&255]<<8|s[255&u])^n[h++],g=(s[l>>>24]<<24|s[p>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^n[h++],v=(s[p>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^n[h++];t[e]=m,t[e+1]=y,t[e+2]=g,t[e+3]=v},keySize:8});e.AES=r._createHelper(y)}(),t.AES})},{"./cipher-core":51,"./core":52,"./enc-base64":53,"./evpkdf":55,"./md5":60}],51:[function(t,e,n){!function(r,o){"object"==typeof n?e.exports=n=o(t("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(r.CryptoJS)}(this,function(t){t.lib.Cipher||function(e){var n=t,r=n.lib,o=r.Base,i=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc,c=(s.Utf8,s.Base64),u=n.algo,f=u.EvpKDF,l=r.Cipher=a.extend({cfg:o.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?k:_}return function(e){return{encrypt:function(n,r,o){return t(r).encrypt(e,n,r,o)},decrypt:function(n,r,o){return t(r).decrypt(e,n,r,o)}}}}()}),p=(r.StreamCipher=l.extend({_doFinalize:function(){var t=this._process(!0);return t},blockSize:1}),n.mode={}),h=r.BlockCipherMode=o.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),d=p.CBC=function(){function t(t,n,r){var o=this._iv;if(o){var i=o;this._iv=e}else var i=this._prevBlock;for(var a=0;a>>2];t.sigBytes-=e}},g=(r.BlockCipher=l.extend({cfg:l.cfg.extend({mode:d,padding:y}),reset:function(){l.reset.call(this);var t=this.cfg,e=t.iv,n=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var r=n.createEncryptor;else{var r=n.createDecryptor;this._minBufferSize=1}this._mode=r.call(n,this,e&&e.words)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else{var e=this._process(!0);t.unpad(e)}return e},blockSize:4}),r.CipherParams=o.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),v=n.format={},b=v.OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;if(n)var r=i.create([1398893684,1701076831]).concat(n).concat(e);else var r=e;return r.toString(c)},parse:function(t){var e=c.parse(t),n=e.words;if(1398893684==n[0]&&1701076831==n[1]){var r=i.create(n.slice(2,4));n.splice(0,4),e.sigBytes-=16}return g.create({ciphertext:e,salt:r})}},_=r.SerializableCipher=o.extend({cfg:o.extend({format:b}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var o=t.createEncryptor(n,r),i=o.finalize(e),a=o.cfg;return g.create({ciphertext:i,key:n,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var o=t.createDecryptor(n,r).finalize(e.ciphertext);return o},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),w=n.kdf={},x=w.OpenSSL={execute:function(t,e,n,r){r||(r=i.random(8));var o=f.create({keySize:e+n}).compute(t,r),a=i.create(o.words.slice(e),4*n);return o.sigBytes=4*e,g.create({key:o,iv:a,salt:r})}},k=r.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:x}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var o=r.kdf.execute(n,t.keySize,t.ivSize);r.iv=o.iv;var i=_.encrypt.call(this,t,e,o.key,r);return i.mixIn(o),i},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var o=r.kdf.execute(n,t.keySize,t.ivSize,e.salt);r.iv=o.iv;var i=_.decrypt.call(this,t,e,o.key,r);return i}})}()})},{"./core":52}],52:[function(t,e,n){!function(t,r){"object"==typeof n?e.exports=n=r():"function"==typeof define&&define.amd?define([],r):t.CryptoJS=r()}(this,function(){var t=t||function(t,e){var n=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),r={},o=r.lib={},i=o.Base=function(){return{extend:function(t){var e=n(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=o.WordArray=i.extend({init:function(t,n){t=this.words=t||[],n!=e?this.sigBytes=n:this.sigBytes=4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,o=t.sigBytes;if(this.clamp(),r%4)for(var i=0;i>>2]>>>24-i%4*8&255;e[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var i=0;i>>2]=n[i>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=i.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n,r=[],o=function(e){var e=e,n=987654321,r=4294967295;return function(){n=36969*(65535&n)+(n>>16)&r,e=18e3*(65535&e)+(e>>16)&r;var o=(n<<16)+e&r;return o/=4294967296,o+=.5,o*(t.random()>.5?1:-1)}},i=0;i>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new a.init(n,e/2)}},u=s.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new a.init(n,e)}},f=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},l=o.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,o=n.sigBytes,i=this.blockSize,s=4*i,c=o/s;c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0);var u=c*i,f=t.min(4*u,o);if(u){for(var l=0;l>>6-a%4*2;r[i>>>2]|=(s|c)<<24-i%4*8,i++}return o.create(r,i)}var n=t,r=n.lib,o=r.WordArray,i=n.enc;i.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var o=[],i=0;i>>2]>>>24-i%4*8&255,s=e[i+1>>>2]>>>24-(i+1)%4*8&255,c=e[i+2>>>2]>>>24-(i+2)%4*8&255,u=a<<16|s<<8|c,f=0;f<4&&i+.75*f>>6*(3-f)&63));var l=r.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(t){var n=t.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i>>8&16711935}var n=t,r=n.lib,o=r.WordArray,i=n.enc;i.Utf16=i.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>1]|=t.charCodeAt(r)<<16-r%2*16;return o.create(n,2*e)}};i.Utf16LE={stringify:function(t){for(var n=t.words,r=t.sigBytes,o=[],i=0;i>>2]>>>16-i%4*8&65535);o.push(String.fromCharCode(a))}return o.join("")},parse:function(t){for(var n=t.length,r=[],i=0;i>>1]|=e(t.charCodeAt(i)<<16-i%2*16);return o.create(r,2*n)}}}(),t.enc.Utf16})},{"./core":52}],55:[function(t,e,n){!function(r,o,i){"object"==typeof n?e.exports=n=o(t("./core"),t("./sha1"),t("./hmac")):"function"==typeof define&&define.amd?define(["./core","./sha1","./hmac"],o):o(r.CryptoJS)}(this,function(t){return function(){var e=t,n=e.lib,r=n.Base,o=n.WordArray,i=e.algo,a=i.MD5,s=i.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,r=n.hasher.create(),i=o.create(),a=i.words,s=n.keySize,c=n.iterations;a.lengthr&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),a=this._iKey=e.clone(),s=o.words,c=a.words,u=0;u>>2]|=t[r]<<24-r%4*8;o.call(this,n,e)}else o.apply(this,arguments)};i.prototype=r}}(),t.lib.WordArray})},{"./core":52}],60:[function(t,e,n){!function(r,o){"object"==typeof n?e.exports=n=o(t("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(r.CryptoJS)}(this,function(t){return function(e){function n(t,e,n,r,o,i,a){var s=t+(e&n|~e&r)+o+a;return(s<>>32-i)+e}function r(t,e,n,r,o,i,a){var s=t+(e&r|n&~r)+o+a;return(s<>>32-i)+e}function o(t,e,n,r,o,i,a){var s=t+(e^n^r)+o+a;return(s<>>32-i)+e}function i(t,e,n,r,o,i,a){var s=t+(n^(e|~r))+o+a;return(s<>>32-i)+e}var a=t,s=a.lib,c=s.WordArray,u=s.Hasher,f=a.algo,l=[];!function(){for(var t=0;t<64;t++)l[t]=4294967296*e.abs(e.sin(t+1))|0}();var p=f.MD5=u.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var a=0;a<16;a++){var s=e+a,c=t[s];t[s]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}var u=this._hash.words,f=t[e+0],p=t[e+1],h=t[e+2],d=t[e+3],m=t[e+4],y=t[e+5],g=t[e+6],v=t[e+7],b=t[e+8],_=t[e+9],w=t[e+10],x=t[e+11],k=t[e+12],B=t[e+13],S=t[e+14],C=t[e+15],A=u[0],F=u[1],I=u[2],O=u[3];A=n(A,F,I,O,f,7,l[0]),O=n(O,A,F,I,p,12,l[1]),I=n(I,O,A,F,h,17,l[2]),F=n(F,I,O,A,d,22,l[3]),A=n(A,F,I,O,m,7,l[4]),O=n(O,A,F,I,y,12,l[5]),I=n(I,O,A,F,g,17,l[6]),F=n(F,I,O,A,v,22,l[7]),A=n(A,F,I,O,b,7,l[8]),O=n(O,A,F,I,_,12,l[9]),I=n(I,O,A,F,w,17,l[10]),F=n(F,I,O,A,x,22,l[11]),A=n(A,F,I,O,k,7,l[12]),O=n(O,A,F,I,B,12,l[13]),I=n(I,O,A,F,S,17,l[14]),F=n(F,I,O,A,C,22,l[15]),A=r(A,F,I,O,p,5,l[16]),O=r(O,A,F,I,g,9,l[17]),I=r(I,O,A,F,x,14,l[18]),F=r(F,I,O,A,f,20,l[19]),A=r(A,F,I,O,y,5,l[20]),O=r(O,A,F,I,w,9,l[21]),I=r(I,O,A,F,C,14,l[22]),F=r(F,I,O,A,m,20,l[23]),A=r(A,F,I,O,_,5,l[24]),O=r(O,A,F,I,S,9,l[25]),I=r(I,O,A,F,d,14,l[26]),F=r(F,I,O,A,b,20,l[27]),A=r(A,F,I,O,B,5,l[28]),O=r(O,A,F,I,h,9,l[29]),I=r(I,O,A,F,v,14,l[30]),F=r(F,I,O,A,k,20,l[31]),A=o(A,F,I,O,y,4,l[32]),O=o(O,A,F,I,b,11,l[33]),I=o(I,O,A,F,x,16,l[34]),F=o(F,I,O,A,S,23,l[35]),A=o(A,F,I,O,p,4,l[36]),O=o(O,A,F,I,m,11,l[37]),I=o(I,O,A,F,v,16,l[38]),F=o(F,I,O,A,w,23,l[39]),A=o(A,F,I,O,B,4,l[40]),O=o(O,A,F,I,f,11,l[41]),I=o(I,O,A,F,d,16,l[42]),F=o(F,I,O,A,g,23,l[43]),A=o(A,F,I,O,_,4,l[44]),O=o(O,A,F,I,k,11,l[45]),I=o(I,O,A,F,C,16,l[46]),F=o(F,I,O,A,h,23,l[47]),A=i(A,F,I,O,f,6,l[48]),O=i(O,A,F,I,v,10,l[49]),I=i(I,O,A,F,S,15,l[50]),F=i(F,I,O,A,y,21,l[51]),A=i(A,F,I,O,k,6,l[52]),O=i(O,A,F,I,d,10,l[53]),I=i(I,O,A,F,w,15,l[54]),F=i(F,I,O,A,p,21,l[55]),A=i(A,F,I,O,b,6,l[56]),O=i(O,A,F,I,C,10,l[57]),I=i(I,O,A,F,g,15,l[58]),F=i(F,I,O,A,B,21,l[59]),A=i(A,F,I,O,m,6,l[60]),O=i(O,A,F,I,x,10,l[61]),I=i(I,O,A,F,h,15,l[62]),F=i(F,I,O,A,_,21,l[63]),u[0]=u[0]+A|0,u[1]=u[1]+F|0,u[2]=u[2]+I|0,u[3]=u[3]+O|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var i=e.floor(r/4294967296),a=r;n[(o+64>>>9<<4)+15]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[(o+64>>>9<<4)+14]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var f=c[u];c[u]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}return s},clone:function(){var t=u.clone.call(this);return t._hash=this._hash.clone(),t}});a.MD5=u._createHelper(p),a.HmacMD5=u._createHmacHelper(p)}(Math),t.MD5})},{"./core":52}],61:[function(t,e,n){!function(r,o,i){"object"==typeof n?e.exports=n=o(t("./core"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],o):o(r.CryptoJS)}(this,function(t){return t.mode.CFB=function(){function e(t,e,n,r){var o=this._iv;if(o){var i=o.slice(0);this._iv=void 0}else var i=this._prevBlock;r.encryptBlock(i,0);for(var a=0;a>24&255)){var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}function n(t){return 0===(t[0]=e(t[0]))&&(t[1]=e(t[1])),t}var r=t.lib.BlockCipherMode.extend(),o=r.Encryptor=r.extend({processBlock:function(t,e){var r=this._cipher,o=r.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0),n(a);var s=a.slice(0);r.encryptBlock(s,0);for(var c=0;c>>2]|=o<<24-i%4*8,t.sigBytes+=o},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923})},{"./cipher-core":51,"./core":52}],67:[function(t,e,n){!function(r,o,i){"object"==typeof n?e.exports=n=o(t("./core"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],o):o(r.CryptoJS)}(this,function(t){return t.pad.Iso10126={pad:function(e,n){var r=4*n,o=r-e.sigBytes%r;e.concat(t.lib.WordArray.random(o-1)).concat(t.lib.WordArray.create([o<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126})},{"./cipher-core":51,"./core":52}],68:[function(t,e,n){!function(r,o,i){"object"==typeof n?e.exports=n=o(t("./core"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],o):o(r.CryptoJS)}(this,function(t){return t.pad.Iso97971={pad:function(e,n){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,n)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971})},{"./cipher-core":51,"./core":52}],69:[function(t,e,n){!function(r,o,i){"object"==typeof n?e.exports=n=o(t("./core"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],o):o(r.CryptoJS)}(this,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})},{"./cipher-core":51,"./core":52}],70:[function(t,e,n){!function(r,o,i){"object"==typeof n?e.exports=n=o(t("./core"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],o):o(r.CryptoJS)}(this,function(t){return t.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){for(var e=t.words,n=t.sigBytes-1;!(e[n>>>2]>>>24-n%4*8&255);)n--;t.sigBytes=n+1}},t.pad.ZeroPadding})},{"./cipher-core":51,"./core":52}],71:[function(t,e,n){!function(r,o,i){"object"==typeof n?e.exports=n=o(t("./core"),t("./sha1"),t("./hmac")):"function"==typeof define&&define.amd?define(["./core","./sha1","./hmac"],o):o(r.CryptoJS)}(this,function(t){return function(){var e=t,n=e.lib,r=n.Base,o=n.WordArray,i=e.algo,a=i.SHA1,s=i.HMAC,c=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,r=s.create(n.hasher,t),i=o.create(),a=o.create([1]),c=i.words,u=a.words,f=n.keySize,l=n.iterations;c.length>>0>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0,this._b=e[7]>>>0>>0?1:0;for(var n=0;n<8;n++){var r=t[n]+e[n],o=65535&r,i=r>>>16,a=((o*o>>>17)+o*i>>>15)+i*i,u=((4294901760&r)*r|0)+((65535&r)*r|0);c[n]=a^u}t[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,t[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,t[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,t[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,t[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,t[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,t[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,t[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}var n=t,r=n.lib,o=r.StreamCipher,i=n.algo,a=[],s=[],c=[],u=i.RabbitLegacy=o.extend({_doReset:function(){var t=this._key.words,n=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],o=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)e.call(this);for(var i=0;i<8;i++)o[i]^=r[i+4&7];if(n){var a=n.words,s=a[0],c=a[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),l=u>>>16|4294901760&f,p=f<<16|65535&u;o[0]^=u,o[1]^=l,o[2]^=f,o[3]^=p,o[4]^=u,o[5]^=l,o[6]^=f,o[7]^=p;for(var i=0;i<4;i++)e.call(this)}},_doProcessBlock:function(t,n){var r=this._X;e.call(this),a[0]=r[0]^r[5]>>>16^r[3]<<16,a[1]=r[2]^r[7]>>>16^r[5]<<16,a[2]=r[4]^r[1]>>>16^r[7]<<16,a[3]=r[6]^r[3]>>>16^r[1]<<16;for(var o=0;o<4;o++)a[o]=16711935&(a[o]<<8|a[o]>>>24)|4278255360&(a[o]<<24|a[o]>>>8),t[n+o]^=a[o]},blockSize:4,ivSize:2});n.RabbitLegacy=o._createHelper(u)}(),t.RabbitLegacy})},{"./cipher-core":51,"./core":52,"./enc-base64":53,"./evpkdf":55,"./md5":60}],73:[function(t,e,n){!function(r,o,i){"object"==typeof n?e.exports=n=o(t("./core"),t("./enc-base64"),t("./md5"),t("./evpkdf"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],o):o(r.CryptoJS)}(this,function(t){return function(){function e(){for(var t=this._X,e=this._C,n=0;n<8;n++)s[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0,this._b=e[7]>>>0>>0?1:0;for(var n=0;n<8;n++){var r=t[n]+e[n],o=65535&r,i=r>>>16,a=((o*o>>>17)+o*i>>>15)+i*i,u=((4294901760&r)*r|0)+((65535&r)*r|0);c[n]=a^u}t[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,t[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,t[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,t[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,t[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,t[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,t[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,t[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}var n=t,r=n.lib,o=r.StreamCipher,i=n.algo,a=[],s=[],c=[],u=i.Rabbit=o.extend({_doReset:function(){for(var t=this._key.words,n=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var o=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var r=0;r<4;r++)e.call(this);for(var r=0;r<8;r++)i[r]^=o[r+4&7];if(n){var a=n.words,s=a[0],c=a[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),l=u>>>16|4294901760&f,p=f<<16|65535&u;i[0]^=u,i[1]^=l,i[2]^=f,i[3]^=p,i[4]^=u,i[5]^=l,i[6]^=f,i[7]^=p;for(var r=0;r<4;r++)e.call(this)}},_doProcessBlock:function(t,n){var r=this._X;e.call(this),a[0]=r[0]^r[5]>>>16^r[3]<<16,a[1]=r[2]^r[7]>>>16^r[5]<<16,a[2]=r[4]^r[1]>>>16^r[7]<<16,a[3]=r[6]^r[3]>>>16^r[1]<<16;for(var o=0;o<4;o++)a[o]=16711935&(a[o]<<8|a[o]>>>24)|4278255360&(a[o]<<24|a[o]>>>8),t[n+o]^=a[o]},blockSize:4,ivSize:2});n.Rabbit=o._createHelper(u)}(),t.Rabbit})},{"./cipher-core":51,"./core":52,"./enc-base64":53,"./evpkdf":55,"./md5":60}],74:[function(t,e,n){!function(r,o,i){"object"==typeof n?e.exports=n=o(t("./core"),t("./enc-base64"),t("./md5"),t("./evpkdf"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],o):o(r.CryptoJS)}(this,function(t){return function(){function e(){for(var t=this._S,e=this._i,n=this._j,r=0,o=0;o<4;o++){e=(e+1)%256,n=(n+t[e])%256;var i=t[e];t[e]=t[n],t[n]=i,r|=t[(t[e]+t[n])%256]<<24-8*o}return this._i=e,this._j=n,r}var n=t,r=n.lib,o=r.StreamCipher,i=n.algo,a=i.RC4=o.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;for(var o=0,i=0;o<256;o++){var a=o%n,s=e[a>>>2]>>>24-a%4*8&255;i=(i+r[o]+s)%256;var c=r[o];r[o]=r[i],r[i]=c}this._i=this._j=0},_doProcessBlock:function(t,n){t[n]^=e.call(this)},keySize:8,ivSize:0});n.RC4=o._createHelper(a);var s=i.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)e.call(this)}});n.RC4Drop=o._createHelper(s)}(),t.RC4})},{"./cipher-core":51,"./core":52,"./enc-base64":53,"./evpkdf":55,"./md5":60}],75:[function(t,e,n){!function(r,o){"object"==typeof n?e.exports=n=o(t("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(r.CryptoJS); +}(this,function(t){return function(e){function n(t,e,n){return t^e^n}function r(t,e,n){return t&e|~t&n}function o(t,e,n){return(t|~e)^n}function i(t,e,n){return t&n|e&~n}function a(t,e,n){return t^(e|~n)}function s(t,e){return t<>>32-e}var c=t,u=c.lib,f=u.WordArray,l=u.Hasher,p=c.algo,h=f.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),d=f.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),m=f.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),y=f.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),g=f.create([0,1518500249,1859775393,2400959708,2840853838]),v=f.create([1352829926,1548603684,1836072691,2053994217,0]),b=p.RIPEMD160=l.extend({_doReset:function(){this._hash=f.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var c=0;c<16;c++){var u=e+c,f=t[u];t[u]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}var l,p,b,_,w,x,k,B,S,C,A=this._hash.words,F=g.words,I=v.words,O=h.words,N=d.words,T=m.words,D=y.words;x=l=A[0],k=p=A[1],B=b=A[2],S=_=A[3],C=w=A[4];for(var R,c=0;c<80;c+=1)R=l+t[e+O[c]]|0,R+=c<16?n(p,b,_)+F[0]:c<32?r(p,b,_)+F[1]:c<48?o(p,b,_)+F[2]:c<64?i(p,b,_)+F[3]:a(p,b,_)+F[4],R|=0,R=s(R,T[c]),R=R+w|0,l=w,w=_,_=s(b,10),b=p,p=R,R=x+t[e+N[c]]|0,R+=c<16?a(k,B,S)+I[0]:c<32?i(k,B,S)+I[1]:c<48?o(k,B,S)+I[2]:c<64?r(k,B,S)+I[3]:n(k,B,S)+I[4],R|=0,R=s(R,D[c]),R=R+C|0,x=C,C=S,S=s(B,10),B=k,k=R;R=A[1]+b+S|0,A[1]=A[2]+_+C|0,A[2]=A[3]+w+x|0,A[3]=A[4]+l+k|0,A[4]=A[0]+p+B|0,A[0]=R},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[(r+64>>>9<<4)+14]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var t=l.clone.call(this);return t._hash=this._hash.clone(),t}});c.RIPEMD160=l._createHelper(b),c.HmacRIPEMD160=l._createHmacHelper(b)}(Math),t.RIPEMD160})},{"./core":52}],76:[function(t,e,n){!function(r,o){"object"==typeof n?e.exports=n=o(t("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(r.CryptoJS)}(this,function(t){return function(){var e=t,n=e.lib,r=n.WordArray,o=n.Hasher,i=e.algo,a=[],s=i.SHA1=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],c=n[4],u=0;u<80;u++){if(u<16)a[u]=0|t[e+u];else{var f=a[u-3]^a[u-8]^a[u-14]^a[u-16];a[u]=f<<1|f>>>31}var l=(r<<5|r>>>27)+c+a[u];l+=u<20?(o&i|~o&s)+1518500249:u<40?(o^i^s)+1859775393:u<60?(o&i|o&s|i&s)-1894007588:(o^i^s)-899497514,c=s,s=i,i=o<<30|o>>>2,o=r,r=l}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),e[(r+64>>>9<<4)+15]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=o._createHelper(s),e.HmacSHA1=o._createHmacHelper(s)}(),t.SHA1})},{"./core":52}],77:[function(t,e,n){!function(r,o,i){"object"==typeof n?e.exports=n=o(t("./core"),t("./sha256")):"function"==typeof define&&define.amd?define(["./core","./sha256"],o):o(r.CryptoJS)}(this,function(t){return function(){var e=t,n=e.lib,r=n.WordArray,o=e.algo,i=o.SHA256,a=o.SHA224=i.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=i._doFinalize.call(this);return t.sigBytes-=4,t}});e.SHA224=i._createHelper(a),e.HmacSHA224=i._createHmacHelper(a)}(),t.SHA224})},{"./core":52,"./sha256":78}],78:[function(t,e,n){!function(r,o){"object"==typeof n?e.exports=n=o(t("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(r.CryptoJS)}(this,function(t){return function(e){var n=t,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(s[o]=n(e.pow(r,.5))),c[o]=n(e.pow(r,1/3)),o++),r++}();var u=[],f=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],f=n[5],l=n[6],p=n[7],h=0;h<64;h++){if(h<16)u[h]=0|t[e+h];else{var d=u[h-15],m=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,y=u[h-2],g=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;u[h]=m+u[h-7]+g+u[h-16]}var v=s&f^~s&l,b=r&o^r&i^o&i,_=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),x=p+w+v+c[h]+u[h],k=_+b;p=l,l=f,f=s,s=a+x|0,a=i,i=o,o=r,r=x+k|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+f|0,n[6]=n[6]+l|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[(o+64>>>9<<4)+14]=e.floor(r/4294967296),n[(o+64>>>9<<4)+15]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});n.SHA256=i._createHelper(f),n.HmacSHA256=i._createHmacHelper(f)}(Math),t.SHA256})},{"./core":52}],79:[function(t,e,n){!function(r,o,i){"object"==typeof n?e.exports=n=o(t("./core"),t("./x64-core")):"function"==typeof define&&define.amd?define(["./core","./x64-core"],o):o(r.CryptoJS)}(this,function(t){return function(e){var n=t,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.x64,s=a.Word,c=n.algo,u=[],f=[],l=[];!function(){for(var t=1,e=0,n=0;n<24;n++){u[t+5*e]=(n+1)*(n+2)/2%64;var r=e%5,o=(2*t+3*e)%5;t=r,e=o}for(var t=0;t<5;t++)for(var e=0;e<5;e++)f[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,a=0;a<24;a++){for(var c=0,p=0,h=0;h<7;h++){if(1&i){var d=(1<>>24)|4278255360&(i<<24|i>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var s=n[o];s.high^=a,s.low^=i}for(var c=0;c<24;c++){for(var h=0;h<5;h++){for(var d=0,m=0,y=0;y<5;y++){var s=n[h+5*y];d^=s.high,m^=s.low}var g=p[h];g.high=d,g.low=m}for(var h=0;h<5;h++)for(var v=p[(h+4)%5],b=p[(h+1)%5],_=b.high,w=b.low,d=v.high^(_<<1|w>>>31),m=v.low^(w<<1|_>>>31),y=0;y<5;y++){var s=n[h+5*y];s.high^=d,s.low^=m}for(var x=1;x<25;x++){var s=n[x],k=s.high,B=s.low,S=u[x];if(S<32)var d=k<>>32-S,m=B<>>32-S;else var d=B<>>64-S,m=k<>>64-S;var C=p[f[x]];C.high=d,C.low=m}var A=p[0],F=n[0];A.high=F.high,A.low=F.low;for(var h=0;h<5;h++)for(var y=0;y<5;y++){var x=h+5*y,s=n[x],I=p[x],O=p[(h+1)%5+5*y],N=p[(h+2)%5+5*y];s.high=I.high^~O.high&N.high,s.low=I.low^~O.low&N.low}var s=n[0],T=l[c];s.high^=T.high,s.low^=T.low}},_doFinalize:function(){var t=this._data,n=t.words,r=(8*this._nDataBytes,8*t.sigBytes),i=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(e.ceil((r+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,c=s/8,u=[],f=0;f>>24)|4278255360&(p<<24|p>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),u.push(h),u.push(p)}return new o.init(u,s)},clone:function(){for(var t=i.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});n.SHA3=i._createHelper(h),n.HmacSHA3=i._createHmacHelper(h)}(Math),t.SHA3})},{"./core":52,"./x64-core":83}],80:[function(t,e,n){!function(r,o,i){"object"==typeof n?e.exports=n=o(t("./core"),t("./x64-core"),t("./sha512")):"function"==typeof define&&define.amd?define(["./core","./x64-core","./sha512"],o):o(r.CryptoJS)}(this,function(t){return function(){var e=t,n=e.x64,r=n.Word,o=n.WordArray,i=e.algo,a=i.SHA512,s=i.SHA384=a.extend({_doReset:function(){this._hash=new o.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=16,t}});e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s)}(),t.SHA384})},{"./core":52,"./sha512":81,"./x64-core":83}],81:[function(t,e,n){!function(r,o,i){"object"==typeof n?e.exports=n=o(t("./core"),t("./x64-core")):"function"==typeof define&&define.amd?define(["./core","./x64-core"],o):o(r.CryptoJS)}(this,function(t){return function(){function e(){return a.create.apply(a,arguments)}var n=t,r=n.lib,o=r.Hasher,i=n.x64,a=i.Word,s=i.WordArray,c=n.algo,u=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],f=[];!function(){for(var t=0;t<80;t++)f[t]=e()}();var l=c.SHA512=o.extend({_doReset:function(){this._hash=new s.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],c=n[5],l=n[6],p=n[7],h=r.high,d=r.low,m=o.high,y=o.low,g=i.high,v=i.low,b=a.high,_=a.low,w=s.high,x=s.low,k=c.high,B=c.low,S=l.high,C=l.low,A=p.high,F=p.low,I=h,O=d,N=m,T=y,D=g,R=v,E=b,P=_,M=w,H=x,j=k,q=B,z=S,L=C,U=A,W=F,J=0;J<80;J++){var G=f[J];if(J<16)var $=G.high=0|t[e+2*J],X=G.low=0|t[e+2*J+1];else{var V=f[J-15],K=V.high,Z=V.low,Y=(K>>>1|Z<<31)^(K>>>8|Z<<24)^K>>>7,Q=(Z>>>1|K<<31)^(Z>>>8|K<<24)^(Z>>>7|K<<25),tt=f[J-2],et=tt.high,nt=tt.low,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,ot=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),it=f[J-7],at=it.high,st=it.low,ct=f[J-16],ut=ct.high,ft=ct.low,X=Q+st,$=Y+at+(X>>>0>>0?1:0),X=X+ot,$=$+rt+(X>>>0>>0?1:0),X=X+ft,$=$+ut+(X>>>0>>0?1:0);G.high=$,G.low=X}var lt=M&j^~M&z,pt=H&q^~H&L,ht=I&N^I&D^N&D,dt=O&T^O&R^T&R,mt=(I>>>28|O<<4)^(I<<30|O>>>2)^(I<<25|O>>>7),yt=(O>>>28|I<<4)^(O<<30|I>>>2)^(O<<25|I>>>7),gt=(M>>>14|H<<18)^(M>>>18|H<<14)^(M<<23|H>>>9),vt=(H>>>14|M<<18)^(H>>>18|M<<14)^(H<<23|M>>>9),bt=u[J],_t=bt.high,wt=bt.low,xt=W+vt,kt=U+gt+(xt>>>0>>0?1:0),xt=xt+pt,kt=kt+lt+(xt>>>0>>0?1:0),xt=xt+wt,kt=kt+_t+(xt>>>0>>0?1:0),xt=xt+X,kt=kt+$+(xt>>>0>>0?1:0),Bt=yt+dt,St=mt+ht+(Bt>>>0>>0?1:0);U=z,W=L,z=j,L=q,j=M,q=H,H=P+xt|0,M=E+kt+(H>>>0

>>0?1:0)|0,E=D,P=R,D=N,R=T,N=I,T=O,O=xt+Bt|0,I=kt+St+(O>>>0>>0?1:0)|0}d=r.low=d+O,r.high=h+I+(d>>>0>>0?1:0),y=o.low=y+T,o.high=m+N+(y>>>0>>0?1:0),v=i.low=v+R,i.high=g+D+(v>>>0>>0?1:0),_=a.low=_+P,a.high=b+E+(_>>>0

>>0?1:0),x=s.low=x+H,s.high=w+M+(x>>>0>>0?1:0),B=c.low=B+q,c.high=k+j+(B>>>0>>0?1:0),C=l.low=C+L,l.high=S+z+(C>>>0>>0?1:0),F=p.low=F+W,p.high=A+U+(F>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[(r+128>>>10<<5)+30]=Math.floor(n/4294967296),e[(r+128>>>10<<5)+31]=n,t.sigBytes=4*e.length,this._process();var o=this._hash.toX32();return o},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});n.SHA512=o._createHelper(l),n.HmacSHA512=o._createHmacHelper(l)}(),t.SHA512})},{"./core":52,"./x64-core":83}],82:[function(t,e,n){!function(r,o,i){"object"==typeof n?e.exports=n=o(t("./core"),t("./enc-base64"),t("./md5"),t("./evpkdf"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],o):o(r.CryptoJS)}(this,function(t){return function(){function e(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<>>5]>>>31-o%32&1}for(var i=this._subKeys=[],a=0;a<16;a++){for(var s=i[a]=[],l=f[a],r=0;r<24;r++)s[r/6|0]|=n[(u[r]-1+l)%28]<<31-r%6,s[4+(r/6|0)]|=n[28+(u[r+24]-1+l)%28]<<31-r%6;s[0]=s[0]<<1|s[0]>>>31;for(var r=1;r<7;r++)s[r]=s[r]>>>4*(r-1)+3;s[7]=s[7]<<5|s[7]>>>27}for(var p=this._invSubKeys=[],r=0;r<16;r++)p[r]=i[15-r]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,r,o){this._lBlock=t[r],this._rBlock=t[r+1],e.call(this,4,252645135),e.call(this,16,65535),n.call(this,2,858993459),n.call(this,8,16711935),e.call(this,1,1431655765);for(var i=0;i<16;i++){for(var a=o[i],s=this._lBlock,c=this._rBlock,u=0,f=0;f<8;f++)u|=l[f][((c^a[f])&p[f])>>>0];this._lBlock=c,this._rBlock=s^u}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,e.call(this,1,1431655765),n.call(this,8,16711935),n.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),t[r]=this._lBlock,t[r+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});r.DES=a._createHelper(h);var d=s.TripleDES=a.extend({_doReset:function(){var t=this._key,e=t.words;this._des1=h.createEncryptor(i.create(e.slice(0,2))),this._des2=h.createEncryptor(i.create(e.slice(2,4))),this._des3=h.createEncryptor(i.create(e.slice(4,6)))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});r.TripleDES=a._createHelper(d)}(),t.TripleDES})},{"./cipher-core":51,"./core":52,"./enc-base64":53,"./evpkdf":55,"./md5":60}],83:[function(t,e,n){!function(r,o){"object"==typeof n?e.exports=n=o(t("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(r.CryptoJS)}(this,function(t){return function(e){var n=t,r=n.lib,o=r.Base,i=r.WordArray,a=n.x64={};a.Word=o.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=o.extend({init:function(t,n){t=this.words=t||[],n!=e?this.sigBytes=n:this.sigBytes=8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],r=0;r=55296&&e<=56319&&o65535&&(e-=65536,o+=v(e>>>10&1023|55296),e=56320|1023&e),o+=v(e);return o}function i(t){if(t>=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function a(t,e){return v(t>>e&63|128)}function s(t){if(0==(4294967168&t))return v(t);var e="";return 0==(4294965248&t)?e=v(t>>6&31|192):0==(4294901760&t)?(i(t),e=v(t>>12&15|224),e+=a(t,6)):0==(4292870144&t)&&(e=v(t>>18&7|240),e+=a(t,12),e+=a(t,6)),e+=v(63&t|128)}function c(t){for(var e,n=r(t),o=n.length,i=-1,a="";++i=y)throw Error("Invalid byte index");var t=255&m[g];if(g++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function f(){var t,e,n,r,o;if(g>y)throw Error("Invalid byte index");if(g==y)return!1;if(t=255&m[g],g++,0==(128&t))return t;if(192==(224&t)){if(e=u(),o=(31&t)<<6|e,o>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&t)){if(e=u(),n=u(),o=(15&t)<<12|e<<6|n,o>=2048)return i(o),o;throw Error("Invalid continuation byte")}if(240==(248&t)&&(e=u(),n=u(),r=u(),o=(7&t)<<18|e<<12|n<<6|r,o>=65536&&o<=1114111))return o;throw Error("Invalid UTF-8 detected")}function l(t){m=r(t),y=m.length,g=0;for(var e,n=[];(e=f())!==!1;)n.push(e);return o(n)}var p="object"==typeof n&&n,h="object"==typeof e&&e&&e.exports==p&&e,d="object"==typeof global&&global;d.global!==d&&d.window!==d||(t=d);var m,y,g,v=String.fromCharCode,b={version:"2.1.2",encode:c,decode:l};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return b});else if(p&&!p.nodeType)if(h)h.exports=b;else{var _={},w=_.hasOwnProperty;for(var x in b)w.call(b,x)&&(p[x]=b[x])}else t.utf8=b}(this)},{}],85:[function(t,e,n){e.exports=XMLHttpRequest},{}],"bignumber.js":[function(t,e,n){!function(t){"use strict";function n(t){function e(t,n){var r,o,i,a,s,c,u=this;if(!(u instanceof e))return U&&O(26,"constructor call without new",t),new e(t,n);if(null!=n&&W(n,2,64,R,"base")){if(n|=0,c=t+"",10==n)return u=new e(t instanceof e?t:c),N(u,M+u.e+1,H);if((a="number"==typeof t)&&0*t!=0||!new RegExp("^-?"+(r="["+b.slice(0,n)+"]+")+"(?:\\."+r+")?$",n<37?"i":"").test(c))return D(u,c,a,n);a?(u.s=1/t<0?(c=c.slice(1),-1):1,U&&c.replace(/^0\.0*|\./,"").length>15&&O(R,v,t),a=!1):u.s=45===c.charCodeAt(0)?(c=c.slice(1),-1):1,c=p(c,10,n,u.s)}else{if(t instanceof e)return u.s=t.s,u.e=t.e,u.c=(t=t.c)?t.slice():t,void(R=0);if((a="number"==typeof t)&&0*t==0){if(u.s=1/t<0?(t=-t,-1):1,t===~~t){for(o=0,i=t;i>=10;i/=10,o++);return u.e=o,u.c=[t],void(R=0)}c=t+""}else{if(!h.test(c=t+""))return D(u,c,a);u.s=45===c.charCodeAt(0)?(c=c.slice(1),-1):1}}for((o=c.indexOf("."))>-1&&(c=c.replace(".","")),(i=c.search(/e/i))>0?(o<0&&(o=i),o+=+c.slice(i+1),c=c.substring(0,i)):o<0&&(o=c.length),i=0;48===c.charCodeAt(i);i++);for(s=c.length;48===c.charCodeAt(--s););if(c=c.slice(i,s+1))if(s=c.length,a&&U&&s>15&&(t>x||t!==m(t))&&O(R,v,u.s*t),o=o-i-1,o>L)u.c=u.e=null;else if(o=0&&(u=$,$=0,t=t.replace(".",""),d=new e(r),p=d.pow(t.length-m),$=u,d.c=c(f(o(p.c),p.e),10,n),d.e=d.c.length),h=c(t,r,n),s=u=h.length;0==h[--u];h.pop());if(!h[0])return"0";if(m<0?--s:(p.c=h,p.e=s,p.s=i,p=T(p,d,y,g,n),h=p.c,l=p.r,s=p.e),a=s+y+1,m=h[a],u=n/2,l=l||a<0||null!=h[a+1],l=g<4?(null!=m||l)&&(0==g||g==(p.s<0?3:2)):m>u||m==u&&(4==g||l||6==g&&1&h[a-1]||g==(p.s<0?8:7)),a<1||!h[0])t=l?f("1",-y):"0";else{if(h.length=a,l)for(--n;++h[--a]>n;)h[a]=0,a||(++s,h=[1].concat(h));for(u=h.length;!h[--u];);for(m=0,t="";m<=u;t+=b.charAt(h[m++]));t=f(t,s)}return t}function C(t,n,r,i){var a,s,c,l,p;if(r=null!=r&&W(r,0,8,i,g)?0|r:H,!t.c)return t.toString();if(a=t.c[0],c=t.e,null==n)p=o(t.c),p=19==i||24==i&&c<=j?u(p,c):f(p,c);else if(t=N(new e(t),n,r),s=t.e,p=o(t.c),l=p.length,19==i||24==i&&(n<=s||s<=j)){for(;ll){if(--n>0)for(p+=".";n--;p+="0");}else if(n+=s-l,n>0)for(s+1==l&&(p+=".");n--;p+="0");return t.s<0&&a?"-"+p:p}function A(t,n){var r,o,i=0;for(s(t[0])&&(t=t[0]),r=new e(t[0]);++in||t!=l(t))&&O(r,(o||"decimal places")+(tn?" out of range":" not an integer"),t),!0}function I(t,e,n){for(var r=1,o=e.length;!e[--o];e.pop());for(o=e[0];o>=10;o/=10,r++);return(n=r+n*w-1)>L?t.c=t.e=null:n=10;s/=10,o++);if(i=e-o,i<0)i+=w,a=e,c=l[u=0],f=c/p[o-a-1]%10|0;else if(u=d((i+1)/w),u>=l.length){if(!r)break t;for(;l.length<=u;l.push(0));c=f=0,o=1,i%=w,a=i-w+1}else{for(c=s=l[u],o=1;s>=10;s/=10,o++);i%=w,a=i-w+o,f=a<0?0:c/p[o-a-1]%10|0}if(r=r||e<0||null!=l[u+1]||(a<0?c:c%p[o-a-1]),r=n<4?(f||r)&&(0==n||n==(t.s<0?3:2)):f>5||5==f&&(4==n||r||6==n&&(i>0?a>0?c/p[o-a]:0:l[u-1])%10&1||n==(t.s<0?8:7)),e<1||!l[0])return l.length=0,r?(e-=t.e+1,l[0]=p[(w-e%w)%w],t.e=-e||0):l[0]=t.e=0,t;if(0==i?(l.length=u,s=1,u--):(l.length=u+1,s=p[w-i],l[u]=a>0?m(c/p[o-a]%p[a])*s:0),r)for(;;){if(0==u){for(i=1,a=l[0];a>=10;a/=10,i++);for(a=l[0]+=s,s=1;a>=10;a/=10,s++);i!=s&&(t.e++,l[0]==_&&(l[0]=1));break}if(l[u]+=s,l[u]!=_)break;l[u--]=0,s=1}for(i=l.length;0===l[--i];l.pop());}t.e>L?t.c=t.e=null:t.en)return null!=(t=o[n++])};return c(e="DECIMAL_PLACES")&&W(t,0,S,2,e)&&(M=0|t), +r[e]=M,c(e="ROUNDING_MODE")&&W(t,0,8,2,e)&&(H=0|t),r[e]=H,c(e="EXPONENTIAL_AT")&&(s(t)?W(t[0],-S,0,2,e)&&W(t[1],0,S,2,e)&&(j=0|t[0],q=0|t[1]):W(t,-S,S,2,e)&&(j=-(q=0|(t<0?-t:t)))),r[e]=[j,q],c(e="RANGE")&&(s(t)?W(t[0],-S,-1,2,e)&&W(t[1],1,S,2,e)&&(z=0|t[0],L=0|t[1]):W(t,-S,S,2,e)&&(0|t?z=-(L=0|(t<0?-t:t)):U&&O(2,e+" cannot be zero",t))),r[e]=[z,L],c(e="ERRORS")&&(t===!!t||1===t||0===t?(R=0,W=(U=!!t)?F:a):U&&O(2,e+y,t)),r[e]=U,c(e="CRYPTO")&&(t===!0||t===!1||1===t||0===t?t?(t="undefined"==typeof crypto,!t&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?J=!0:U?O(2,"crypto unavailable",t?void 0:crypto):J=!1):J=!1:U&&O(2,e+y,t)),r[e]=J,c(e="MODULO_MODE")&&W(t,0,9,2,e)&&(G=0|t),r[e]=G,c(e="POW_PRECISION")&&W(t,0,S,2,e)&&($=0|t),r[e]=$,c(e="FORMAT")&&("object"==typeof t?X=t:U&&O(2,e+" not an object",t)),r[e]=X,r},e.max=function(){return A(arguments,E.lt)},e.min=function(){return A(arguments,E.gt)},e.random=function(){var t=9007199254740992,n=Math.random()*t&2097151?function(){return m(Math.random()*t)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(t){var r,o,i,a,s,c=0,u=[],f=new e(P);if(t=null!=t&&W(t,0,S,14)?0|t:M,a=d(t/w),J)if(crypto.getRandomValues){for(r=crypto.getRandomValues(new Uint32Array(a*=2));c>>11),s>=9e15?(o=crypto.getRandomValues(new Uint32Array(2)),r[c]=o[0],r[c+1]=o[1]):(u.push(s%1e14),c+=2);c=a/2}else if(crypto.randomBytes){for(r=crypto.randomBytes(a*=7);c=9e15?crypto.randomBytes(7).copy(r,c):(u.push(s%1e14),c+=7);c=a/7}else J=!1,U&&O(14,"crypto unavailable",crypto);if(!J)for(;c=10;s/=10,c++);cr?1:-1;else for(o=i=0;oe[o]?1:-1;break}return i}function o(t,e,n,r){for(var o=0;n--;)t[n]-=o,o=t[n]1;t.splice(0,1));}return function(i,a,s,c,u){var f,l,p,h,d,y,g,v,b,x,k,B,S,C,A,F,I,O=i.s==a.s?1:-1,T=i.c,D=a.c;if(!(T&&T[0]&&D&&D[0]))return new e(i.s&&a.s&&(T?!D||T[0]!=D[0]:D)?T&&0==T[0]||!D?0*O:O/0:NaN);for(v=new e(O),b=v.c=[],l=i.e-a.e,O=s+l+1,u||(u=_,l=r(i.e/w)-r(a.e/w),O=O/w|0),p=0;D[p]==(T[p]||0);p++);if(D[p]>(T[p]||0)&&l--,O<0)b.push(1),h=!0;else{for(C=T.length,F=D.length,p=0,O+=2,d=m(u/(D[0]+1)),d>1&&(D=t(D,d,u),T=t(T,d,u),F=D.length,C=T.length),S=F,x=T.slice(0,F),k=x.length;k=u/2&&A++;do{if(d=0,f=n(D,x,F,k),f<0){if(B=x[0],F!=k&&(B=B*u+(x[1]||0)),d=m(B/A),d>1)for(d>=u&&(d=u-1),y=t(D,d,u),g=y.length,k=x.length;1==n(y,x,g,k);)d--,o(y,F=10;O/=10,p++);N(v,s+(v.e=p+l*w-1)+1,c,h)}else v.e=l,v.r=+h;return v}}(),D=function(){var t=/^(-?)0([xbo])(?=\w[\w.]*$)/i,n=/^([^.]+)\.$/,r=/^\.([^.]+)$/,o=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(a,s,c,u){var f,l=c?s:s.replace(i,"");if(o.test(l))a.s=isNaN(l)?null:l<0?-1:1;else{if(!c&&(l=l.replace(t,function(t,e,n){return f="x"==(n=n.toLowerCase())?16:"b"==n?2:8,u&&u!=f?t:e}),u&&(f=u,l=l.replace(n,"$1").replace(r,"0.$1")),s!=l))return new e(l,f);U&&O(R,"not a"+(u?" base "+u:"")+" number",s),a.s=null}a.c=a.e=null,R=0}}(),E.absoluteValue=E.abs=function(){var t=new e(this);return t.s<0&&(t.s=1),t},E.ceil=function(){return N(new e(this),this.e+1,2)},E.comparedTo=E.cmp=function(t,n){return R=1,i(this,new e(t,n))},E.decimalPlaces=E.dp=function(){var t,e,n=this.c;if(!n)return null;if(t=((e=n.length-1)-r(this.e/w))*w,e=n[e])for(;e%10==0;e/=10,t--);return t<0&&(t=0),t},E.dividedBy=E.div=function(t,n){return R=3,T(this,new e(t,n),M,H)},E.dividedToIntegerBy=E.divToInt=function(t,n){return R=4,T(this,new e(t,n),0,1)},E.equals=E.eq=function(t,n){return R=5,0===i(this,new e(t,n))},E.floor=function(){return N(new e(this),this.e+1,3)},E.greaterThan=E.gt=function(t,n){return R=6,i(this,new e(t,n))>0},E.greaterThanOrEqualTo=E.gte=function(t,n){return R=7,1===(n=i(this,new e(t,n)))||0===n},E.isFinite=function(){return!!this.c},E.isInteger=E.isInt=function(){return!!this.c&&r(this.e/w)>this.c.length-2},E.isNaN=function(){return!this.s},E.isNegative=E.isNeg=function(){return this.s<0},E.isZero=function(){return!!this.c&&0==this.c[0]},E.lessThan=E.lt=function(t,n){return R=8,i(this,new e(t,n))<0},E.lessThanOrEqualTo=E.lte=function(t,n){return R=9,(n=i(this,new e(t,n)))===-1||0===n},E.minus=E.sub=function(t,n){var o,i,a,s,c=this,u=c.s;if(R=10,t=new e(t,n),n=t.s,!u||!n)return new e(NaN);if(u!=n)return t.s=-n,c.plus(t);var f=c.e/w,l=t.e/w,p=c.c,h=t.c;if(!f||!l){if(!p||!h)return p?(t.s=-n,t):new e(h?c:NaN);if(!p[0]||!h[0])return h[0]?(t.s=-n,t):new e(p[0]?c:3==H?-0:0)}if(f=r(f),l=r(l),p=p.slice(),u=f-l){for((s=u<0)?(u=-u,a=p):(l=f,a=h),a.reverse(),n=u;n--;a.push(0));a.reverse()}else for(i=(s=(u=p.length)<(n=h.length))?u:n,u=n=0;n0)for(;n--;p[o++]=0);for(n=_-1;i>u;){if(p[--i]0?(c=s,o=f):(a=-a,o=u),o.reverse();a--;o.push(0));o.reverse()}for(a=u.length,n=f.length,a-n<0&&(o=f,f=u,u=o,n=a),a=0;n;)a=(u[--n]=u[n]+f[n]+a)/_|0,u[n]=_===u[n]?0:u[n]%_;return a&&(u=[a].concat(u),++c),I(t,u,c)},E.precision=E.sd=function(t){var e,n,r=this,o=r.c;if(null!=t&&t!==!!t&&1!==t&&0!==t&&(U&&O(13,"argument"+y,t),t!=!!t&&(t=null)),!o)return null;if(n=o.length-1,e=n*w+1,n=o[n]){for(;n%10==0;n/=10,e--);for(n=o[0];n>=10;n/=10,e++);}return t&&r.e+1>e&&(e=r.e+1),e},E.round=function(t,n){var r=new e(this);return(null==t||W(t,0,S,15))&&N(r,~~t+this.e+1,null!=n&&W(n,0,8,15,g)?0|n:H),r},E.shift=function(t){var n=this;return W(t,-x,x,16,"argument")?n.times("1e"+l(t)):new e(n.c&&n.c[0]&&(t<-x||t>x)?n.s*(t<0?0:1/0):n)},E.squareRoot=E.sqrt=function(){var t,n,i,a,s,c=this,u=c.c,f=c.s,l=c.e,p=M+4,h=new e("0.5");if(1!==f||!u||!u[0])return new e(!f||f<0&&(!u||u[0])?NaN:u?c:1/0);if(f=Math.sqrt(+c),0==f||f==1/0?(n=o(u),(n.length+l)%2==0&&(n+="0"),f=Math.sqrt(n),l=r((l+1)/2)-(l<0||l%2),f==1/0?n="1e"+l:(n=f.toExponential(),n=n.slice(0,n.indexOf("e")+1)+l),i=new e(n)):i=new e(f+""),i.c[0])for(l=i.e,f=l+p,f<3&&(f=0);;)if(s=i,i=h.times(s.plus(T(c,s,p,1))),o(s.c).slice(0,f)===(n=o(i.c)).slice(0,f)){if(i.e=0;){for(o=0,d=k[a]%v,m=k[a]/v|0,c=f,s=a+c;s>a;)l=x[--c]%v,p=x[c]/v|0,u=m*l+p*d,l=d*l+u%v*v+y[s]+o,o=(l/g|0)+(u/v|0)+m*p,y[s--]=l%g;y[s]=o}return o?++i:y.splice(0,1),I(t,y,i)},E.toDigits=function(t,n){var r=new e(this);return t=null!=t&&W(t,1,S,18,"precision")?0|t:null,n=null!=n&&W(n,0,8,18,g)?0|n:H,t?N(r,t,n):r},E.toExponential=function(t,e){return C(this,null!=t&&W(t,0,S,19)?~~t+1:null,e,19)},E.toFixed=function(t,e){return C(this,null!=t&&W(t,0,S,20)?~~t+this.e+1:null,e,20)},E.toFormat=function(t,e){var n=C(this,null!=t&&W(t,0,S,21)?~~t+this.e+1:null,e,21);if(this.c){var r,o=n.split("."),i=+X.groupSize,a=+X.secondaryGroupSize,s=X.groupSeparator,c=o[0],u=o[1],f=this.s<0,l=f?c.slice(1):c,p=l.length;if(a&&(r=i,i=a,a=r,p-=r),i>0&&p>0){for(r=p%i||i,c=l.substr(0,r);r0&&(c+=s+l.slice(r)),f&&(c="-"+c)}n=u?c+X.decimalSeparator+((a=+X.fractionGroupSize)?u.replace(new RegExp("\\d{"+a+"}\\B","g"),"$&"+X.fractionGroupSeparator):u):c}return n},E.toFraction=function(t){var n,r,i,a,s,c,u,f,l,p=U,h=this,d=h.c,m=new e(P),y=r=new e(P),g=u=new e(P);if(null!=t&&(U=!1,c=new e(t),U=p,(p=c.isInt())&&!c.lt(P)||(U&&O(22,"max denominator "+(p?"out of range":"not an integer"),t),t=!p&&c.c&&N(c,c.e+1,1).gte(P)?c:null)),!d)return h.toString();for(l=o(d),a=m.e=l.length-h.e-1,m.c[0]=k[(s=a%w)<0?w+s:s],t=!t||c.cmp(m)>0?a>0?m:y:c,s=L,L=1/0,c=new e(l),u.c[0]=0;f=T(c,m,0,1),i=r.plus(f.times(g)),1!=i.cmp(t);)r=g,g=i,y=u.plus(f.times(i=y)),u=i,m=c.minus(f.times(i=m)),c=i;return i=T(t.minus(r),g,0,1),u=u.plus(i.times(y)),r=r.plus(i.times(g)),u.s=y.s=h.s,a*=2,n=T(y,g,a,H).minus(h).abs().cmp(T(u,r,a,H).minus(h).abs())<1?[y.toString(),g.toString()]:[u.toString(),r.toString()],L=s,n},E.toNumber=function(){return+this},E.toPower=E.pow=function(t,n){var r,o,i,a=m(t<0?-t:+t),s=this;if(null!=n&&(R=23,n=new e(n)),!W(t,-x,x,23,"exponent")&&(!isFinite(t)||a>x&&(t/=0)||parseFloat(t)!=t&&!(t=NaN))||0==t)return r=Math.pow(+s,t),new e(n?r%n:r);for(n?t>1&&s.gt(P)&&s.isInt()&&n.gt(P)&&n.isInt()?s=s.mod(n):(i=n,n=null):$&&(r=d($/w+2)),o=new e(P);;){if(a%2){if(o=o.times(s),!o.c)break;r?o.c.length>r&&(o.c.length=r):n&&(o=o.mod(n))}if(a=m(a/2),!a)break;s=s.times(s),r?s.c&&s.c.length>r&&(s.c.length=r):n&&(s=s.mod(n))}return n?o:(t<0&&(o=P.div(o)),i?o.mod(i):r?N(o,$,H):o)},E.toPrecision=function(t,e){return C(this,null!=t&&W(t,1,S,24,"precision")?0|t:null,e,24)},E.toString=function(t){var e,n=this,r=n.s,i=n.e;return null===i?r?(e="Infinity",r<0&&(e="-"+e)):e="NaN":(e=o(n.c),e=null!=t&&W(t,2,64,25,"base")?p(f(e,i),0|t,10,r):i<=j||i>=q?u(e,i):f(e,i),r<0&&n.c[0]&&(e="-"+e)),e},E.truncated=E.trunc=function(){return N(new e(this),this.e+1,1)},E.valueOf=E.toJSON=function(){var t,e=this,n=e.e;return null===n?e.toString():(t=o(e.c),t=n<=j||n>=q?u(t,n):f(t,n),e.s<0?"-"+t:t)},E.isBigNumber=!0,null!=t&&e.config(t),e}function r(t){var e=0|t;return t>0||t===e?e:e-1}function o(t){for(var e,n,r=1,o=t.length,i=t[0]+"";ru^n?1:-1;for(s=(c=o.length)<(u=i.length)?c:u,a=0;ai[a]^n?1:-1;return c==u?0:c>u^n?1:-1}function a(t,e,n){return(t=l(t))>=e&&t<=n}function s(t){return"[object Array]"==Object.prototype.toString.call(t)}function c(t,e,n){for(var r,o,i=[0],a=0,s=t.length;an-1&&(null==i[r+1]&&(i[r+1]=0),i[r+1]+=i[r]/n|0,i[r]%=n)}return i.reverse()}function u(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function f(t,e){var n,r;if(e<0){for(r="0.";++e;r+="0");t=r+t}else if(n=t.length,++e>n){for(r="0",e-=n;--e;r+="0");t+=r}else e2017 Oracles Network. All rights reserved.

- + diff --git a/package.json b/package.json index 83a811c..3385984 100755 --- a/package.json +++ b/package.json @@ -16,8 +16,7 @@ "gulp-uglify": "^2.0.0", "gulp-uglifycss": "^1.0.6", "gulp-util": "^3.0.8", - "http-server": "^0.9.0", - "web3": "^0.18.4" + "http-server": "^0.9.0" }, "scripts": { "sass": "gulp sass",