require=functione(t,n,r){functiono(s,a){if(!n[s]){if(!t[s]){varu="function"==typeofrequire&&require;if(!a&&u)returnu(s,!0);if(i)returni(s,!0);varf=newError("Cannot find module '"+s+"'");throwf.code="MODULE_NOT_FOUND",f}varc=n[s]={exports:{}};t[s][0].call(c.exports,function(e){varn=t[s][1][e];returno(n?n:e)},c,c.exports,e,t,n,r)}returnn[s].exports}for(vari="function"==typeofrequire&&require,s=0;s<r.length;s++)o(r[s]);returno}({1:[function(e,t){varn=e("./web3");BigNumber.config({ROUNDING_MODE:BigNumber.ROUND_DOWN});varr=32,o=function(e,t){for(varn=!1,r=0;r<e.length&&!n;r++)n=t(e[r]);returnn?r-1:-1},i=function(e,t){returno(e,function(e){returne.name===t})},s=function(e,t,n){returnnewArray(t-e.length+1).join(n?n:"0")+e},a=function(e){returnfunction(t){return0===t.indexOf(e)}},u=function(e){returnfunction(t){returne===t}},f=function(e){return"[]"===e.slice(-2)},c=function(e){vart=2*r;returneinstanceofBigNumber||"number"==typeofe?("number"==typeofe&&(e=newBigNumber(e)),e=e.round(),e.lessThan(0)&&(e=newBigNumber("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16).plus(e).plus(1)),e=e.toString(16)):e=0===e.indexOf("0x")?e.substr(2):"string"==typeofe?c(newBigNumber(e)):(+e).toString(16),s(e,t)},l=function(e){returnn.fromAscii(e,r).substr(2)},p=function(e){return"000000000000000000000000000000000000000000000000000000000000000"+(e?"1":"0")},h=function(e,t){returnf(e)||a("string")(e)?c(t.length):""},d=function(){return[{type:a("uint"),format:c},{type:a("int"),format:c},{type:a("hash"),format:c},{type:a("string"),format:l},{type:a("real"),format:c},{type:a("ureal"),format:c},{type:u("address"),format:c},{type:u("bool"),format:p}]},v=d(),g=function(e,t,n){varr="",o=i(e,t);if(-1!==o){vars=e[o];returns.inputs.forEach(function(e,t){r+=h(e.type,n[t])}),s.inputs.forEach(function(e,t){for(varo=!1,i=0;i<v.length&&!o;i++)o=v[i].type(s.inputs[t].type,n[t]);o||console.error("input parser does not support type: "+s.inputs[t].type);vara=v[i-1].format,u="";u=f(s.inputs[t].type)?n[t].reduce(function(e,t){returne+a(t)},""):a(n[t]),r+=u}),r}},m=function(e){vart=newBigNumber(e.substr(0,1),16).toString(2).substr(0,1);return"1"===t?newBigNumber(e,16).minus(newBigNumber("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16)).minus(1):newBigNumber(e,16)},b=function(e){returnnewBigNumber(e,16)},y=function(e){return"0x"+e},_=function(e){return"0000000000000000000000000000000000000000000000000000000000000001"===e?!0:!1},w=function(e){returnn.toAscii(e)},P=function(e){return"0x"+e.slice(e.length-40,e.length)},x=function(e){returnf(e)||a("string")(e)?2*r:0},S=function(){return[{type:a("uint"),format:b},{type:a("int"),format:m},{type:a("hash"),format:y},{type:a("string"),format:w},{type:a("real"),format:m},{type:a("ureal"),format:m},{type:u("address"),format:P},{type:u("bool"),format:_}]},N=S(),k=function(e,t,n){varo=i(e,t);if(-1!==o){n=n.slice(2);vars=[],u=e[o],c=2*r,l=u.outputs.reduce(function(e,t){returne+x(t.type)},0),p=n.slice(0,l);returnn=n.slice(l),u.outputs.forEach(function(e,t){for(varr=!1,o=0;o<N.length&&!r;o++)r=N[o].type(u.outputs[t].type);r||console.error("output parser does not support type: "+u.outputs[t].type);vari=N[o-1].format;if(f(u.outputs[t].type)){varl=b(p.slice(0,c));p=p.slice(c);for(varh=[],d=0;l>d;d++)h.push(i(n.slice(0,c))),n=n.slice(c);s.push(h)}elsea("string")(u.outputs[t].type)?(p=p.slice(c),s.push(i(n.slice(0,c))),n=n.slice(c)):(s.push(i(n.slice(0,c))),n=n.slice(c))}),s}},O=function(e){vart={};returne.forEach(function(n){t[n.name]=function(){vart=Array.prototype.slice.call(arguments);returng(e,n.name,t)}}),t},A=function(e){vart={};returne.forEach(function(n){t[n.name]=function(t){returnk(e,n.name,t)}}),t},q=function(e,t){varr=e[i(e,t)],o=t+"(",s=r.inputs.map(function(e){returne.type});returno+=s.join(","),o+=")",n.sha3(n.fromAscii(o))};t.exports={inputParser:O,outputParser:A,methodSignature:q}},{"./web3":8}],2:[function(e,t){varn=e("./web3"),r=function(e){if(!n.haveProvider()){if(this.sendQueue=[],this.onmessageQueue=[],na