t.setRequestHeader("Content-Type","application/json");try{returnt.send(JSON.stringify({id:9999999999,jsonrpc:"2.0",method:"net_listening",params:[]})),!0}catch(e){return!1}},i.prototype.send=function(t){vare=newr;e.open("POST",this.host,!1),e.setRequestHeader("Content-Type","application/json");try{e.send(JSON.stringify(t))}catch(n){throwo.InvalidConnection(this.host)}vari=e.responseText;try{i=JSON.parse(i)}catch(a){throwo.InvalidResponse(e.responseText)}returni},i.prototype.sendAsync=function(t,e){varn=newr;n.onreadystatechange=function(){if(4===n.readyState){vart=n.responseText,r=null;try{t=JSON.parse(t)}catch(i){r=o.InvalidResponse(n.responseText)}e(r,t)}},n.open("POST",this.host,!0),n.setRequestHeader("Content-Type","application/json");try{n.send(JSON.stringify(t))}catch(i){e(o.InvalidConnection(this.host))}},e.exports=i},{"./errors":14,xmlhttprequest:4}],21:[function(t,e,n){varr=t("../utils/utils"),o=function(t){this._iban=t};o.prototype.isValid=function(){returnr.isIBAN(this._iban)},o.prototype.isDirect=function(){return34===this._iban.length},o.prototype.isIndirect=function(){return20===this._iban.length},o.prototype.checksum=function(){returnthis._iban.substr(2,2)},o.prototype.institution=function(){returnthis.isIndirect()?this._iban.substr(7,4):""},o.prototype.client=function(){returnthis.isIndirect()?this._iban.substr(11):""},o.prototype.address=function(){returnthis.isDirect()?this._iban.substr(4):""},e.exports=o},{"../utils/utils":7}],22:[function(t,e,n){"use strict";varr=t("../utils/utils"),o=t("./errors"),i='{"jsonrpc": "2.0", "error": {"code": -32603, "message": "IPC Request timed out for method \'__method__\'"}, "id": "__id__"}',a=function(e,n){varo=this;this.responseCallbacks={},this.path=e,n=n||t("net"),this.connection=n.connect({path:this.path}),this.connection.on("error",function(t){console.error("IPC Connection Error",t),o._timeout()}),this.connection.on("end",function(){o._timeout()}),this.connection.on("data",function(t){o._parseResponse(t.toString()).forEach(function(t){vare=null;r.isArray(t)?t.forEach(function(t){o.responseCallbacks[t.id]&&(e=t.id)}):e=t.id,o.responseCallbacks[e]&&(o.responseCallbacks[e](null,t),deleteo.responseCallbacks[e])})})};a.prototype._parseResponse=function(t){vare=this,n=[],r=t.replace(/\}\{/g,"}|--|{").replace(/\}\]\[\{/g,"}]|--|[{").replace(/\}\[\{/g,"}|--|[{").replace(/\}\]\{/g,"}]|--|{").split("|--|");returnr.forEach(function(t){e.lastChunk&&(t=e.lastChunk+t);varr=null;try{r=JSON.parse(t)}catch(i){returne.lastChunk=t,clearTimeout(e.lastChunkTimeout),void(e.lastChunkTimeout=setTimeout(function(){throwe.timeout(),o.InvalidResponse(t)},15e3))}clearTimeout(e.lastChunkTimeout),e.lastChunk=null,r&&n.push(r)}),n},a.prototype._addResponseCallback=function(t,e){varn=t.id||t[0].id,r=t.method||t[0].method;this.responseCallbacks[n]=e,this.responseCallbacks[n].method=r},a.prototype._timeout=function(){for(vartinthis.responseCallbacks)this.responseCallbacks.hasOwnProperty(t)&&(this.responseCallbacks[t](i.replace("__id__",t).replace("__method__",this.responseCallbacks[t].method)),deletethis.responseCallbacks[t])},a.prototype.isConnected=function(){vart=this;returnt.connection.writable||t.connection.connect({path:t.path}),!!this.connection.writable},a.prototype.send=function(t){if(this.connection.writeSync){vare;this.connection.writable||this.connection.connect({path:this.path});varn=this.connection.writeSync(JSON.stringify(t));try{e=JSON.parse(n)}catch(r){throwo.InvalidResponse(n)}returne}thrownewError('You tried to send "'+t.method+'" synchronously. Synchronous requests are not supported by the IPC provider.')},a.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=a},{"../utils/utils":7,"./errors":14,net:32}],23:[function(t,e,n){varr=function(){returnarguments.callee._singletonInstance?arguments.callee._singletonInstance:(arguments.callee._singletonInstance=this,void(this.messageId=1))};r.getInstance=functio