PageSourceSearch

https://2omb.finance/static/js/1.362471be.chunk.js

js 2omb.finance collected 2026-10-07 11:25:49 UTC 52,854 bytes, 2 lines download raw bytes

1(this["webpackJsonptomb.finance"]=this["webpackJsonptomb.finance"]||[]).push([[1],{1010:function(e,r,t){var n=t(291),o=t(1043)();function i(e){this.currentProvider=e}function a(e){return function(){var r=this,t=[].slice.call(arguments),n=t.pop();r.sendAsync({method:e,params:t},n)}}function u(e,r){return function(){var t=this,n=[].slice.call(arguments),o=n.pop();n.length<e&&n.push("latest"),t.sendAsync({method:r,params:n},o)}}e.exports=i,i.prototype.getBalance=u(2,"eth_getBalance"),i.prototype.getCode=u(2,"eth_getCode"),i.prototype.getTransactionCount=u(2,"eth_getTransactionCount"),i.prototype.getStorageAt=u(3,"eth_getStorageAt"),i.prototype.call=u(2,"eth_call"),i.prototype.protocolVersion=a("eth_protocolVersion"),i.prototype.syncing=a("eth_syncing"),i.prototype.coinbase=a("eth_coinbase"),i.prototype.mining=a("eth_mining"),i.prototype.hashrate=a("eth_hashrate"),i.prototype.gasPrice=a("eth_gasPrice"),i.prototype.accounts=a("eth_accounts"),i.prototype.blockNumber=a("eth_blockNumber"),i.prototype.getBlockTransactionCountByHash=a("eth_getBlockTransactionCountByHash"),i.prototype.getBlockTransactionCountByNumber=a("eth_getBlockTransactionCountByNumber"),i.prototype.getUncleCountByBlockHash=a("eth_getUncleCountByBlockHash"),i.prototype.getUncleCountByBlockNumber=a("eth_getUncleCountByBlockNumber"),i.prototype.sign=a("eth_sign"),i.prototype.sendTransaction=a("eth_sendTransaction"),i.prototype.sendRawTransaction=a("eth_sendRawTransaction"),i.prototype.estimateGas=a("eth_estimateGas"),i.prototype.getBlockByHash=a("eth_getBlockByHash"),i.prototype.getBlockByNumber=a("eth_getBlockByNumber"),i.prototype.getTransactionByHash=a("eth_getTransactionByHash"),i.prototype.getTransactionByBlockHashAndIndex=a("eth_getTransactionByBlockHashAndIndex"),i.prototype.getTransactionByBlockNumberAndIndex=a("eth_getTransactionByBlockNumberAndIndex"),i.prototype.getTransactionReceipt=a("eth_getTransactionReceipt"),i.prototype.getUncleByBlockHashAndIndex=a("eth_getUncleByBlockHashAndIndex"),i.prototype.getUncleByBlockNumberAndIndex=a("eth_getUncleByBlockNumberAndIndex"),i.prototype.getCompilers=a("eth_getCompilers"),i.prototype.compileLLL=a("eth_compileLLL"),i.prototype.compileSolidity=a("eth_compileSolidity"),i.prototype.compileSerpent=a("eth_compileSerpent"),i.prototype.newFilter=a("eth_newFilter"),i.prototype.newBlockFilter=a("eth_newBlockFilter"),i.prototype.newPendingTransactionFilter=a("eth_newPendingTransactionFilter"),i.prototype.uninstallFilter=a("eth_uninstallFilter"),i.prototype.getFilterChanges=a("eth_getFilterChanges"),i.prototype.getFilterLogs=a("eth_getFilterLogs"),i.prototype.getLogs=a("eth_getLogs"),i.prototype.getWork=a("eth_getWork"),i.prototype.submitWork=a("eth_submitWork"),i.prototype.submitHashrate=a("eth_submitHashrate"),i.prototype.sendAsync=function(e,r){var t;this.currentProvider.sendAsync((t=e,n({id:o(),jsonrpc:"2.0",params:[]},t)),(function(e,t){if(!e&&t.error&&(e=new Error("EthQuery - RPC Error - "+t.error.message)),e)return r(e);r(null,t.result)}))}},1021:function(e,r,t){"use strict";var n=t(75),o=t(76),i=t(195),a=t(196);function u(e,r,t){try{Reflect.apply(e,r,t)}catch(n){setTimeout((function(){throw n}))}}function s(e){for(var r=e.length,t=new Array(r),n=0;n<r;n+=1)t[n]=e[n];return t}Object.defineProperty(r,"__esModule",{value:!0});var c=function(e){i(t,e);var r=a(t);function t(){return n(this,t),r.apply(this,arguments)}return o(t,[{key:"emit",value:function(e){var r="error"===e,t=this._events;if(void 0!==t)r=r&&void 0===t.error;else if(!r)return!1;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];if(r){var a;if(o.length>0&&(a=o[0]),a instanceof Error)throw a;var c=new Error("Unhandled error.".concat(a?" (".concat(a.message,")"):""));throw c.context=a,c}var l=t[e];if(void 0===l)return!1;if("function"===typeof l)u(l,this,o);else for(var p=l.length,f=s(l),d=0;d<p;d+=1)u(f[d],this,o);return!0}}]),t}(t(128).EventEmitter);r.default=c},1043:function(e,r){e.exports=function(e){var r=(e=e||{}).max||Number.MAX_SAFE_INTEGER,t="undefined"!==typeof e.start?e.start:Math.floor(Math.random()*r);return function(){return t%=r,t++}}},1080:function(e,r,t){"use strict";var n=t(75),o=t(76),i=t(195),a=t(196),u=t(471);
1Object.defineProperty(r,"__esModule",{value:!0}),r.EthereumProviderError=r.EthereumRpcError=void 0;var s=t(1206),c=function(e){i(t,e);var r=a(t);function t(e,o,i){var a;if(n(this,t),!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!o||"string"!==typeof o)throw new Error('"message" must be a nonempty string.');return(a=r.call(this,o)).code=e,void 0!==i&&(a.data=i),a}return o(t,[{key:"serialize",value:function(){var e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}},{key:"toString",value:function(){return s.default(this.serialize(),p,2)}}]),t}(u(Error));r.EthereumRpcError=c;var l=function(e){i(t,e);var r=a(t);function t(e,o,i){if(n(this,t),!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');return r.call(this,e,o,i)}return t}(c);function p(e,r){if("[Circular]"!==r)return r}r.EthereumProviderError=l},1081:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.errorValues=r.errorCodes=void 0,r.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},r.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}},1082:function(e,r,t){var n=t(1),o=t(129),i=t(75),a=t(76),u=t(195),s=t(196),c=function(e){"use strict";u(t,e);var r=s(t);function t(){var e;return i(this,t),(e=r.call(this)).updates=[],e}return a(t,[{key:"initialize",value:function(){var e=o(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"update",value:function(){var e=o(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("BaseFilter - no update method specified");case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"addResults",value:function(e){var r=this;this.updates=this.updates.concat(e),e.forEach((function(e){return r.emit("update",e)}))}},{key:"addInitialResults",value:function(e){}},{key:"getChangesAndClear",value:function(){var e=this.updates;return this.updates=[],e}}]),t}(t(1021).default);e.exports=c},1083:function(e,r,t){var n=t(1),o=t(129);function i(){return(i=o(n.mark((function e(r){var t,o,i,c,l,p,f;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.provider,o=r.fromBlock,i=r.toBlock,o||(o=i),c=a(o),l=a(i),p=Array(l-c+1).fill().map((function(e,r){return c+r})).map(u),e.next=8,Promise.all(p.map((function(e){return s(t,"eth_getBlockByNumber",[e,!1])})));case 8:return f=e.sent,e.abrupt("return",f);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function a(e){return void 0===e||null===e?e:Number.parseInt(e,16)}function u(e){return void 0===e||null===e?e:"0x"+e.toString(16)}function s(e,r,t){return new Promise((function(n,o){e.sendAsync({id:1,jsonrpc:"2.0",method:r,params:t},(function(e,r){if(e)return o(e);n(r.result)}))}))}
1e.exports=function(e){return i.apply(this,arguments)}},1199:function(e,r,t){var n=t(1),o=t(129),i=t(75),a=t(76),u=t(195),s=t(196),c=t(1200),l=t(1556),p=function(e){"use strict";u(t,e);var r=s(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(i(this,t),!n.provider)throw new Error("PollingBlockTracker - no provider specified.");var o=n.pollingInterval||2e4,a=n.retryTimeout||o/10,u=void 0===n.keepEventLoopActive||n.keepEventLoopActive,s=n.setSkipCacheFlag||!1;return(e=r.call(this,Object.assign({blockResetDuration:o},n)))._provider=n.provider,e._pollingInterval=o,e._retryTimeout=a,e._keepEventLoopActive=u,e._setSkipCacheFlag=s,e}return a(t,[{key:"checkForLatestBlock",value:function(){var e=o(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._updateLatestBlock();case 2:return e.next=4,this.getLatestBlock();case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_start",value:function(){var e=this;this._performSync().catch((function(r){return e.emit("error",r)}))}},{key:"_performSync",value:function(){var e=o(n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isRunning){e.next=16;break}return e.prev=1,e.next=4,this._updateLatestBlock();case 4:return e.next=6,f(this._pollingInterval,!this._keepEventLoopActive);case 6:e.next=14;break;case 8:e.prev=8,e.t0=e.catch(1),r=new Error("PollingBlockTracker - encountered an error while attempting to update latest block:\n".concat(e.t0.stack));try{this.emit("error",r)}catch(t){console.error(r)}return e.next=14,f(this._retryTimeout,!this._keepEventLoopActive);case 14:e.next=0;break;case 16:case"end":return e.stop()}}),e,this,[[1,8]])})));return function(){return e.apply(this,arguments)}}()},{key:"_updateLatestBlock",value:function(){var e=o(n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._fetchLatestBlock();case 2:r=e.sent,this._newPotentialLatest(r);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_fetchLatestBlock",value:function(){var e=o(n.mark((function e(){var r,t,o=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={jsonrpc:"2.0",id:1,method:"eth_blockNumber",params:[]},this._setSkipCacheFlag&&(r.skipCache=!0),e.next=4,c((function(e){return o._provider.sendAsync(r,e)}))();case 4:if(!(t=e.sent).error){e.next=7;break}throw new Error("PollingBlockTracker - encountered error fetching block:\n".concat(t.error));case 7:return e.abrupt("return",t.result);case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),t}(l);function f(e,r){return new Promise((function(t){var n=setTimeout(t,e);n.unref&&r&&n.unref()}))}e.exports=p},1200:function(e,r,t){"use strict";var n=function(e,r){return function(){for(var t=this,n=r.promiseModule,o=new Array(arguments.length),i=0;i<arguments.length;i++)o[i]=arguments[i];return new n((function(n,i){r.errorFirst?o.push((function(e,t){if(r.multiArgs){for(var o=new Array(arguments.length-1),a=1;a<arguments.length;a++)o[a-1]=arguments[a];
1e?(o.unshift(e),i(o)):n(o)}else e?i(e):n(t)})):o.push((function(e){if(r.multiArgs){for(var t=new Array(arguments.length-1),o=0;o<arguments.length;o++)t[o]=arguments[o];n(t)}else n(e)})),e.apply(t,o)}))}};e.exports=function(e,r){r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},r);var t,o=function(e){var t=function(r){return"string"===typeof r?e===r:r.test(e)};return r.include?r.include.some(t):!r.exclude.some(t)};for(var i in t="function"===typeof e?function(){return r.excludeMain?e.apply(this,arguments):n(e,r).apply(this,arguments)}:Object.create(Object.getPrototypeOf(e)),e){var a=e[i];t[i]="function"===typeof a&&o(i)?n(a,r):a}return t}},1202:function(e,r,t){var n=t(1),o=t(129),i=t(1640).Mutex,a=t(1203).createAsyncMiddleware,u=t(1208),s=t(1573),c=t(1576),l=t(1577),p=t(995),f=p.intToHex,d=p.hexToInt;function h(e){return v(o(n.mark((function r(){var t,o,i=arguments;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.apply(void 0,i);case 2:return t=r.sent,o=f(t.id),r.abrupt("return",o);case 5:case"end":return r.stop()}}),r)}))))}function v(e){return a(function(){var r=o(n.mark((function r(t,o){var i;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.apply(null,t.params);case 2:i=r.sent,o.result=i;case 4:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}())}function y(e,r){var t=[];for(var n in e)t.push(e[n]);return t}e.exports=function(e){var r=e.blockTracker,t=e.provider,a=0,p={},m=new i,g=function(e){var r=e.mutex;return function(e){return function(){var t=o(n.mark((function t(o,i,a,u){return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.acquire();case 2:(0,t.sent)(),e(o,i,a,u);case 5:case"end":return t.stop()}}),t)})));return function(e,r,n,o){return t.apply(this,arguments)}}()}}({mutex:m}),k=u({eth_newFilter:g(h(b)),eth_newBlockFilter:g(h(x)),eth_newPendingTransactionFilter:g(h(E)),eth_uninstallFilter:g(v(O)),eth_getFilterChanges:g(v(C)),eth_getFilterLogs:g(v(A))}),w=function(){var e=o(n.mark((function e(r){var t,i,a;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.oldBlock,i=r.newBlock,0!==p.length){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,m.acquire();case 5:return a=e.sent,e.prev=6,e.next=9,Promise.all(y(p).map(function(){var e=o(n.mark((function e(r){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.update({oldBlock:t,newBlock:i});case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error(e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(r){return e.apply(this,arguments)}}()));case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(6),console.error(e.t0);case 14:a();case 15:case"end":return e.stop()}}),e,null,[[6,11]])})));return function(r){return e.apply(this,arguments)}}();return k.newLogFilter=b,k.newBlockFilter=x,k.newPendingTransactionFilter=E,k.uninstallFilter=O,k.getFilterChanges=C,k.getFilterLogs=A,k.destroy=function(){!function(){F.apply(this,arguments)}()},k;function b(e){return _.apply(this,arguments)}function _(){return(_=o(n.mark((function e(r){var o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=new s({provider:t,params:r}),e.next=3,M(o);case 3:return e.sent,e.abrupt("return",o);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(){return R.apply(this,arguments)}function R(){return(R=o(n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new c({provider:t}),e.next=3,M(r);case 3:return e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(){return B.apply(this,arguments)}function B(){return(B=o(n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new l({provider:t}),e.next=3,M(r);case 3:return e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return P.apply(this,arguments)}function P(){return(P=o(n.mark((function e(r){var t,o,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=d(r),o=p[t]){e.next=4;break}throw new Error('No filter for index "'.concat(t,'"'));case 4:return i=o.getChangesAndClear(),e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(e){return j.apply(this,arguments)}function j(){return(j=o(n.mark((function e(r){var t,o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=d(r),o=p[t]){e.next=4;break}throw new Error('No filter for index "'.concat(t,'"'));case 4:return"log"===o.type?results=o.getAllResults():results=[],e.abrupt("return",results);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return L.apply(this,arguments)}function L(){return(L=o(n.mark((function e(r){var t,o,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=d(r),o=p[t],!(i=Boolean(o))){e.next=6;break}return e.next=6,S(t);case 6:return e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(e){return T.apply(this,arguments)}function T(){return(T=o(n.mark((function e(t){var o,i,u;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=y(p).length,e.next=3,r.getLatestBlock();case 3:return i=e.sent,e.next=6,t.initialize({currentBlock:i});case 6:return a++,p[a]=t,t.id=a,t.idHex=f(a),u=y(p).length,N({prevFilterCount:o,newFilterCount:u}),e.abrupt("return",a);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(e){return I.apply(this,arguments)}function I(){return(I=o(n.mark((function e(r){var t,o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=y(p).length,delete p[r],o=y(p).length,N({prevFilterCount:t,newFilterCount:o});case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(){return(F=o(n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=y(p).length,p={},N({prevFilterCount:r,newFilterCount:0});case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(e){var t=e.prevFilterCount,n=e.newFilterCount;0===t&&n>0?r.on("sync",w):t>0&&0===n&&r.removeListener("sync",w)}}},1203:function(e,r,t){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,t,n){void 0===n&&(n=t),Object.defineProperty(e,n,{enumerable:!0,get:function(){return r[t]}})}:function(e,r,t,n){void 0===n&&(n=t),e[n]=r[t]}),o=this&&this.__exportStar||function(e,r){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(r,t)||n(r,e,t)};
1Object.defineProperty(r,"__esModule",{value:!0}),o(t(1566),r),o(t(1567),r),o(t(1568),r),o(t(1204),r),o(t(1205),r),o(t(1571),r)},1204:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getUniqueId=void 0;var n=Math.floor(4294967295*Math.random());r.getUniqueId=function(){return n=(n+1)%4294967295}},1205:function(e,r,t){"use strict";var n=t(110),o=t(1),i=t(168),a=t(129),u=t(75),s=t(76),c=t(195),l=t(196),p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.JsonRpcEngine=void 0;var f=p(t(1021)),d=t(1569),h=function(e){c(t,e);var r=l(t);function t(){var e;return u(this,t),(e=r.call(this))._middleware=[],e}return s(t,[{key:"push",value:function(e){this._middleware.push(e)}},{key:"handle",value:function(e,r){if(r&&"function"!==typeof r)throw new Error('"callback" must be a function if provided.');return Array.isArray(e)?r?this._handleBatch(e,r):this._handleBatch(e):r?this._handle(e,r):this._promiseHandle(e)}},{key:"asMiddleware",value:function(){var e=this;return function(){var r=a(o.mark((function r(n,u,s,c){var l,p,f,d,h;return o.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,t._runAllMiddleware(n,u,e._middleware);case 3:if(l=r.sent,p=i(l,3),f=p[0],d=p[1],h=p[2],!d){r.next=12;break}return r.next=11,t._runReturnHandlers(h);case 11:return r.abrupt("return",c(f));case 12:return r.abrupt("return",s(function(){var e=a(o.mark((function e(r){return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t._runReturnHandlers(h);case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return",r(e.t0));case 8:return e.abrupt("return",r());case 9:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(r){return e.apply(this,arguments)}}()));case 15:return r.prev=15,r.t0=r.catch(0),r.abrupt("return",c(r.t0));case 18:case"end":return r.stop()}}),r,null,[[0,15]])})));return function(e,t,n,o){return r.apply(this,arguments)}}()}},{key:"_handleBatch",value:function(){var e=a(o.mark((function e(r,t){var n;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Promise.all(r.map(this._promiseHandle.bind(this)));case 3:if(n=e.sent,!t){e.next=6;break}return e.abrupt("return",t(null,n));case 6:return e.abrupt("return",n);case 9:if(e.prev=9,e.t0=e.catch(0),!t){e.next=13;break}return e.abrupt("return",t(e.t0));case 13:throw e.t0;case 14:case"end":return e.stop()}}),e,this,[[0,9]])})));return function(r,t){return e.apply(this,arguments)}}()},{key:"_promiseHandle",value:function(e){var r=this;return new Promise((function(t){r._handle(e,(function(e,r){t(r)}))}))}},{key:"_handle",value:function(){var e=a(o.mark((function e(r,t){var n,i,a,u,s;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r&&!Array.isArray(r)&&"object"===typeof r){e.next=3;break}return n=new d.EthereumRpcError(d.errorCodes.rpc.invalidRequest,"Requests must be plain objects. Received: ".concat(typeof r),{request:r}),e.abrupt("return",t(n,{id:void 0,jsonrpc:"2.0",error:n}));case 3:if("string"===typeof r.method){e.next=6;break}return i=new d.EthereumRpcError(d.errorCodes.rpc.invalidRequest,"Must specify a string method. Received: ".concat(typeof r.method),{request:r}),e.abrupt("return",t(i,{id:r.id,jsonrpc:"2.0",error:i}));case 6:return a=Object.assign({},r),u={id:a.id,jsonrpc:a.jsonrpc},s=null,e.prev=9,e.next=12,this._processRequest(a,u);case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(9),s=e.t0;case 17:return s&&(delete u.result,u.error||(u.error=d.serializeError(s))),e.abrupt("return",t(s,u));case 19:case"end":return e.stop()}}),e,this,[[9,14]])})));return function(r,t){return e.apply(this,arguments)}}()},{key:"_processRequest",value:function(){var e=a(o.mark((function e(r,n){var a,u,s,c,l;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._runAllMiddleware(r,n,this._middleware);case 2:return a=e.sent,u=i(a,3),s=u[0],c=u[1],l=u[2],t._checkForCompletion(r,n,c),e.next=10,t._runReturnHandlers(l);case 10:if(!s){e.next=12;break}throw s;case 12:case"end":return e.stop()}}),e,this)})));return function(r,t){return e.apply(this,arguments)}}()}],[{key:"_runAllMiddleware",value:function(){var e=a(o.mark((function e(r,a,u){var s,c,l,p,f,d,h,v;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=[],c=null,l=!1,p=n(u),e.prev=4,p.s();case 6:if((f=p.n()).done){e.next=18;break}return d=f.value,e.next=10,t._runMiddleware(r,a,d,s);
1case 10:if(h=e.sent,v=i(h,2),c=v[0],!(l=v[1])){e.next=16;break}return e.abrupt("break",18);case 16:e.next=6;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(4),p.e(e.t0);case 23:return e.prev=23,p.f(),e.finish(23);case 26:return e.abrupt("return",[c,l,s.reverse()]);case 27:case"end":return e.stop()}}),e,null,[[4,20,23,26]])})));return function(r,t,n){return e.apply(this,arguments)}}()},{key:"_runMiddleware",value:function(e,r,t,n){return new Promise((function(o){var i=function(e){var t=e||r.error;t&&(r.error=d.serializeError(t)),o([t,!0])};try{t(e,r,(function(t){r.error?i(r.error):(t&&("function"!==typeof t&&i(new d.EthereumRpcError(d.errorCodes.rpc.internal,'JsonRpcEngine: "next" return handlers must be functions. '+'Received "'.concat(typeof t,'" for request:\n').concat(v(e)),{request:e})),n.push(t)),o([null,!1]))}),i)}catch(a){i(a)}}))}},{key:"_runReturnHandlers",value:function(){var e=a(o.mark((function e(r){var t,i,a;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=n(r),e.prev=1,a=o.mark((function e(){var r;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.value,e.next=3,new Promise((function(e,t){r((function(r){return r?t(r):e()}))}));case 3:case"end":return e.stop()}}),e)})),t.s();case 4:if((i=t.n()).done){e.next=8;break}return e.delegateYield(a(),"t0",6);case 6:e.next=4;break;case 8:e.next=13;break;case 10:e.prev=10,e.t1=e.catch(1),t.e(e.t1);case 13:return e.prev=13,t.f(),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[1,10,13,16]])})));return function(r){return e.apply(this,arguments)}}()},{key:"_checkForCompletion",value:function(e,r,t){if(!("result"in r)&&!("error"in r))throw new d.EthereumRpcError(d.errorCodes.rpc.internal,"JsonRpcEngine: Response has no error or result for request:\n".concat(v(e)),{request:e});if(!t)throw new d.EthereumRpcError(d.errorCodes.rpc.internal,"JsonRpcEngine: Nothing ended request:\n".concat(v(e)),{request:e})}}]),t}(f.default);function v(e){return JSON.stringify(e,null,2)}r.JsonRpcEngine=h},1206:function(e,r){e.exports=o,o.default=o,o.stable=a,o.stableStringify=a;var t=[],n=[];function o(e,r,o){var i;for(!function e(r,o,i,a){var u;if("object"===typeof r&&null!==r){for(u=0;u<i.length;u++)if(i[u]===r){var s=Object.getOwnPropertyDescriptor(a,o);return void(void 0!==s.get?s.configurable?(Object.defineProperty(a,o,{value:"[Circular]"}),t.push([a,o,r,s])):n.push([r,o]):(a[o]="[Circular]",t.push([a,o,r])))}if(i.push(r),Array.isArray(r))for(u=0;u<r.length;u++)e(r[u],u,i,r);else{var c=Object.keys(r);for(u=0;u<c.length;u++){var l=c[u];e(r[l],l,i,r)}}i.pop()}}(e,"",[],void 0),i=0===n.length?JSON.stringify(e,r,o):JSON.stringify(e,u(r),o);0!==t.length;){var a=t.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}return i}function i(e,r){return e<r?-1:e>r?1:0}function a(e,r,o){var a,s=function e(r,o,a,u){var s;if("object"===typeof r&&null!==r){for(s=0;s<a.length;s++)if(a[s]===r){var c=Object.getOwnPropertyDescriptor(u,o);return void(void 0!==c.get?c.configurable?(Object.defineProperty(u,o,{value:"[Circular]"}),t.push([u,o,r,c])):n.push([r,o]):(u[o]="[Circular]",t.push([u,o,r])))}if("function"===typeof r.toJSON)return;if(a.push(r),Array.isArray(r))for(s=0;s<r.length;s++)e(r[s],s,a,r);else{var l={},p=Object.keys(r).sort(i);for(s=0;s<p.length;s++){var f=p[s];e(r[f],f,a,r),l[f]=r[f]}if(void 0===u)return l;t.push([u,o,r]),u[o]=l}a.pop()}}(e,"",[],void 0)||e;for(a=0===n.length?JSON.stringify(s,r,o):JSON.stringify(s,u(r),o);0!==t.length;){var c=t.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}return a}function u(e){return e=void 0!==e?e:function(e,r){return r},function(r,t){if(n.length>0)for(var o=0;o<n.length;o++){var i=n[o];if(i[1]===r&&i[0]===t){t="[Circular]",n.splice(o,1);break}}return e.call(this,r,t)}}},1207:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.serializeError=r.isValidCode=r.getMessageFromCode=r.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var n=t(1081),o=t(1080),i=n.errorCodes.rpc.internal,a="Unspecified error message. This is a bug, please report it.",u={code:i,message:s(i)};function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if(Number.isInteger(e)){var o=e.toString();
1if(f(n.errorValues,o))return n.errorValues[o].message;if(l(e))return r.JSON_RPC_SERVER_ERROR_MESSAGE}return t}function c(e){if(!Number.isInteger(e))return!1;var r=e.toString();return!!n.errorValues[r]||!!l(e)}function l(e){return e>=-32099&&e<=-32e3}function p(e){return e&&"object"===typeof e&&!Array.isArray(e)?Object.assign({},e):e}function f(e,r){return Object.prototype.hasOwnProperty.call(e,r)}r.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",r.getMessageFromCode=s,r.isValidCode=c,r.serializeError=function(e){var r,t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.fallbackError,a=void 0===i?u:i,l=n.shouldIncludeStack,d=void 0!==l&&l;if(!a||!Number.isInteger(a.code)||"string"!==typeof a.message)throw new Error("Must provide fallback error with integer number code and string message.");if(e instanceof o.EthereumRpcError)return e.serialize();var h={};if(e&&"object"===typeof e&&!Array.isArray(e)&&f(e,"code")&&c(e.code)){var v=e;h.code=v.code,v.message&&"string"===typeof v.message?(h.message=v.message,f(v,"data")&&(h.data=v.data)):(h.message=s(h.code),h.data={originalError:p(e)})}else{h.code=a.code;var y=null===(r=e)||void 0===r?void 0:r.message;h.message=y&&"string"===typeof y?y:a.message,h.data={originalError:p(e)}}var m=null===(t=e)||void 0===t?void 0:t.stack;return d&&e&&m&&"string"===typeof m&&(h.stack=m),h}},1208:function(e,r,t){e.exports=t(1572)},1209:function(e,r,t){var n=t(1),o=t(129),i=t(1021).default,a=t(1208),u=t(1203).createAsyncMiddleware,s=t(1202),c=t(995),l=c.unsafeRandomBytes,p=c.incrementHexInt,f=t(1083);function d(e){return{hash:e.hash,parentHash:e.parentHash,sha3Uncles:e.sha3Uncles,miner:e.miner,stateRoot:e.stateRoot,transactionsRoot:e.transactionsRoot,receiptsRoot:e.receiptsRoot,logsBloom:e.logsBloom,difficulty:e.difficulty,number:e.number,gasLimit:e.gasLimit,gasUsed:e.gasUsed,nonce:e.nonce,mixHash:e.mixHash,timestamp:e.timestamp,extraData:e.extraData}}e.exports=function(e){var r=e.blockTracker,t=e.provider,c={},h=s({blockTracker:r,provider:t}),v=!1,y=new i,m=a({eth_subscribe:u((function(e,r){return g.apply(this,arguments)})),eth_unsubscribe:u((function(e,r){return k.apply(this,arguments)}))});return m.destroy=function(){for(var e in y.removeAllListeners(),c)c[e].destroy(),delete c[e];v=!0},{events:y,middleware:m};function g(){return(g=o(n.mark((function e(i,a){var u,s,y,m,g,k,b;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(b=function(e){var r=e.subId,t=e.filter;return t.on("update",(function(e){return w(r,e)})),{type:u,destroy:function(){var e=o(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.uninstallFilter(t.idHex);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}},k=function(e){var i=e.subId,a={type:u,destroy:function(){var e=o(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r.removeListener("sync",a.update);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),update:function(){var e=o(n.mark((function e(r){var o,a,u,s,c;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=r.oldBlock,a=r.newBlock,u=a,s=p(o),e.next=5,f({provider:t,fromBlock:s,toBlock:u});case 5:c=e.sent,c.map(d).forEach((function(e){w(i,e)}));case 8:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}()};return r.on("sync",a.update),a},!v){e.next=4;break}throw new Error("SubscriptionManager - attempting to use after destroying");case 4:u=i.params[0],s=l(16),e.t0=u,e.next="newHeads"===e.t0?9:"logs"===e.t0?11:17;break;case 9:return y=k({subId:s}),e.abrupt("break",18);case 11:return m=i.params[1],e.next=14,h.newLogFilter(m);case 14:return g=e.sent,y=b({subId:s,filter:g}),e.abrupt("break",18);case 17:throw new Error('SubscriptionManager - unsupported subscription type "'.concat(u,'"'));case 18:return c[s]=y,a.result=s,e.abrupt("return");case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(){return(k=o(n.mark((function e(r,t){var o,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!v){e.next=2;break}throw new Error("SubscriptionManager - attempting to use after destroying");case 2:if(o=r.params[0],i=c[o]){e.next=7;break}return t.result=!1,e.abrupt("return");case 7:return delete c[o],e.next=10,i.destroy();case 10:t.result=!0;case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e,r){y.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:e,result:r}})}}},1556:function(e,r,t){var n=t(1),o=t(129),i=t(75),a=t(76),u=t(294),s=t(979),c=t(286),l=t(195),p=t(196),f=(t(1010),t(1200),t(1557)),d=function(e,r){return e+r},h=["sync","latest"],v=function(e){"use strict";l(t,e);var r=p(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i(this,t),(e=r.call(this))._blockResetDuration=n.blockResetDuration||2e4,e._blockResetTimeout,e._currentBlock=null,e._isRunning=!1,e._onNewListener=e._onNewListener.bind(u(e)),e._onRemoveListener=e._onRemoveListener.bind(u(e)),e._resetCurrentBlock=e._resetCurrentBlock.bind(u(e)),e._setupInternalEvents(),e}return a(t,[{key:"isRunning",value:function(){return this._isRunning}},{key:"getCurrentBlock",value:function(){return this._currentBlock}},{key:"getLatestBlock",value:function(){var e=o(n.mark((function e(){var r,t=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._currentBlock){e.next=2;break}return e.abrupt("return",this._currentBlock);case 2:return e.next=4,new Promise((function(e){return t.once("latest",e)}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"removeAllListeners",value:function(e){e?s(c(t.prototype),"removeAllListeners",this).call(this,e):s(c(t.prototype),"removeAllListeners",this).call(this),this._setupInternalEvents(),this._onRemoveListener()}},{key:"_start",value:function(){}},{key:"_end",value:function(){}},{key:"_setupInternalEvents",value:function(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}},{key:"_onNewListener",value:function(e,r){h.includes(e)&&this._maybeStart()}},{key:"_onRemoveListener",value:function(e,r){this._getBlockTrackerEventC
1ount()>0||this._maybeEnd()}},{key:"_maybeStart",value:function(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),this._start())}},{key:"_maybeEnd",value:function(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),this._end())}},{key:"_getBlockTrackerEventCount",value:function(){var e=this;return h.map((function(r){return e.listenerCount(r)})).reduce(d)}},{key:"_newPotentialLatest",value:function(e){var r=this._currentBlock;r&&y(e)<=y(r)||this._setCurrentBlock(e)}},{key:"_setCurrentBlock",value:function(e){var r=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:r,newBlock:e})}},{key:"_setupBlockResetTimeout",value:function(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}},{key:"_cancelBlockResetTimeout",value:function(){clearTimeout(this._blockResetTimeout)}},{key:"_resetCurrentBlock",value:function(){this._currentBlock=null}}]),t}(f);function y(e){return Number.parseInt(e,16)}e.exports=v},1557:function(e,r,t){var n=t(144),o=t(128),i="object"===typeof Reflect?Reflect:null,a=i&&"function"===typeof i.apply?i.apply:function(e,r,t){return Function.prototype.apply.call(e,r,t)};function u(){o.call(this)}function s(e,r,t){try{a(e,r,t)}catch(n){setTimeout((function(){throw n}))}}function c(e,r){for(var t=new Array(r),n=0;n<r;++n)t[n]=e[n];return t}e.exports=u,n.inherits(u,o),u.prototype.emit=function(e){for(var r=[],t=1;t<arguments.length;t++)r.push(arguments[t]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var i;if(r.length>0&&(i=r[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var u=o[e];if(void 0===u)return!1;if("function"===typeof u)s(u,this,r);else{var l=u.length,p=c(u,l);for(t=0;t<l;++t)s(p[t],this,r)}return!0}},1566:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createIdRemapMiddleware=void 0;var n=t(1204);r.createIdRemapMiddleware=function(){return function(e,r,t,o){var i=e.id,a=n.getUniqueId();e.id=a,r.id=a,t((function(t){e.id=i,r.id=i,t()}))}}},1567:function(e,r,t){"use strict";var n=t(1),o=t(129);Object.defineProperty(r,"__esModule",{value:!0}),r.createAsyncMiddleware=void 0,r.createAsyncMiddleware=function(e){return function(){var r=o(n.mark((function r(t,i,a,u){var s,c,l,p,f;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return c=new Promise((function(e){s=e})),l=null,p=!1,f=function(){var e=o(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p=!0,a((function(e){l=e,s()})),e.next=4,c;case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),r.prev=4,r.next=7,e(t,i,f);case 7:if(!p){r.next=13;break}return r.next=10,c;case 10:l(null),r.next=14;break;case 13:u(null);case 14:r.next=19;break;case 16:r.prev=16,r.t0=r.catch(4),l?l(r.t0):u(r.t0);case 19:case"end":return r.stop()}}),r,null,[[4,16]])})));return function(e,t,n,o){return r.apply(this,arguments)}}()}},1568:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createScaffoldMiddleware=void 0,r.createScaffoldMiddleware=function(e){return function(r,t,n,o){var i=e[r.method];return void 0===i?n():"function"===typeof i?i(r,t,n,o):(t.result=i,o())}}},1569:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getMessageFromCode=r.serializeError=r.EthereumProviderError=r.EthereumRpcError=r.ethErrors=r.errorCodes=void 0;var n=t(1080);Object.defineProperty(r,"EthereumRpcError",{enumerable:!0,get:function(){return n.EthereumRpcError}}),Object.defineProperty(r,"EthereumProviderError",{enumerable:!0,get:function(){return n.EthereumProviderError}});var o=t(1207);Object.defineProperty(r,"serializeError",{enumerable:!0,get:function(){return o.serializeError}}),Object.defineProperty(r,"getMessageFromCode",{enumerable:!0,get:function(){return o.getMessageFromCode}});var i=t(1570);Object.defineProperty(r,"ethErrors",{enumerable:!0,get:function(){return i.ethErrors}});var a=t(1081);Object.defineProperty(r,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})},1570:function(e,r,t){"use strict";var n=t(168);
1Object.defineProperty(r,"__esModule",{value:!0}),r.ethErrors=void 0;var o=t(1080),i=t(1207),a=t(1081);function u(e,r){var t=c(r),a=n(t,2),u=a[0],s=a[1];return new o.EthereumRpcError(e,u||i.getMessageFromCode(e),s)}function s(e,r){var t=c(r),a=n(t,2),u=a[0],s=a[1];return new o.EthereumProviderError(e,u||i.getMessageFromCode(e),s)}function c(e){if(e){if("string"===typeof e)return[e];if("object"===typeof e&&!Array.isArray(e)){var r=e.message,t=e.data;if(r&&"string"!==typeof r)throw new Error("Must specify string message.");return[r||void 0,t]}}return[]}r.ethErrors={rpc:{parse:function(e){return u(a.errorCodes.rpc.parse,e)},invalidRequest:function(e){return u(a.errorCodes.rpc.invalidRequest,e)},invalidParams:function(e){return u(a.errorCodes.rpc.invalidParams,e)},methodNotFound:function(e){return u(a.errorCodes.rpc.methodNotFound,e)},internal:function(e){return u(a.errorCodes.rpc.internal,e)},server:function(e){if(!e||"object"!==typeof e||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");var r=e.code;if(!Number.isInteger(r)||r>-32005||r<-32099)throw new Error('"code" must be an integer such that: -32099 <= code 
1<= -32005');return u(r,e)},invalidInput:function(e){return u(a.errorCodes.rpc.invalidInput,e)},resourceNotFound:function(e){return u(a.errorCodes.rpc.resourceNotFound,e)},resourceUnavailable:function(e){return u(a.errorCodes.rpc.resourceUnavailable,e)},transactionRejected:function(e){return u(a.errorCodes.rpc.transactionRejected,e)},methodNotSupported:function(e){return u(a.errorCodes.rpc.methodNotSupported,e)},limitExceeded:function(e){return u(a.errorCodes.rpc.limitExceeded,e)}},provider:{userRejectedRequest:function(e){return s(a.errorCodes.provider.userRejectedRequest,e)},unauthorized:function(e){return s(a.errorCodes.provider.unauthorized,e)},unsupportedMethod:function(e){return s(a.errorCodes.provider.unsupportedMethod,e)},disconnected:function(e){return s(a.errorCodes.provider.disconnected,e)},chainDisconnected:function(e){return s(a.errorCodes.provider.chainDisconnected,e)},custom:function(e){if(!e||"object"!==typeof e||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");var r=e.code,t=e.message,n=e.data;if(!t||"string"!==typeof t)throw new Error('"message" must be a nonempty string');return new o.EthereumProviderError(r,t,n)}}}},1571:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.mergeMiddleware=void 0;var n=t(1205);r.mergeMiddleware=function(e){var r=new n.JsonRpcEngine;return e.forEach((function(e){return r.push(e)})),r.asMiddleware()}},1572:function(e,r){e.exports=function(e){return function(r,t,n,o){var i=e[r.method];return void 0===i?n():"function"===typeof i?i(r,t,n,o):(t.result=i,o())}}},1573:function(e,r,t){var n=t(1),o=t(129),i=t(75),a=t(76),u=t(195),s=t(196),c=t(1010),l=t(1574),p=t(1575),f=t(995),d=(f.bnToHex,f.hexToInt),h=f.incrementHexInt,v=f.minBlockRef,y=f.blockRefIsNumber,m=function(e){"use strict";u(t,e);var r=s(t);function t(e){var n,o=e.provider,a=e.params;return i(this,t),(n=r.call(this)).type="log",n.ethQuery=new c(o),n.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},a),n.params.address&&(Array.isArray(n.params.address)||(n.params.address=[n.params.address]),n.params.address=n.params.address.map((function(e){return e.toLowerCase()}))),n}return a(t,[{key:"initialize",value:function(){var e=o(n.mark((function e(r){var t,o,i,a,u;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.currentBlock,o=this.params.fromBlock,["latest","pending"].includes(o)&&(o=t),"earliest"===o&&(o="0x0"),this.params.fromBlock=o,i=v(this.params.toBlock,t),a=Object.assign({},this.params,{toBlock:i}),e.next=9,this._fetchLogs(a);case 9:u=e.sent,this.addInitialResults(u);case 11:case"end":return e.stop()}}),e,this)})));return function(r){return e.apply(this,arguments)}}()},{key:"update",value:function(){var e=o(n.mark((function e(r){var t,o,i,a,u,s,c,l=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.oldBlock,o=r.newBlock,i=o,a=t?h(t):o,u=Object.assign({},this.params,{fromBlock:a,toBlock:i}),e.next=6,this._fetchLogs(u);case 6:s=e.sent,c=s.filter((function(e){return l.matchLog(e)})),this.addResults(c);case 9:case"end":return e.stop()}}),e,this)})));return function(r){return e.apply(this,arguments)}}()},{key:"_fetchLogs",value:function(){var e=o(n.mark((function e(r){var t,o=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l((function(e){return o.ethQuery.getLogs(r,e)}))();case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}()},{key:"matchLog",value:function(e){if(d(this.params.fromBlock)>=d(e.blockNumber))return!1;if(y(this.params.toBlock)&&d(this.params.toBlock)<=d(e.blockNumber))return!1;var r=e.address&&e.address.toLowerCase();return!(this.params.address&&r&&!this.params.address.includes(r))&&this.params.topics.every((function(r,t){var n=e.topics[t];if(!n)return!1;n=n.toLowerCase();var o=Array.isArray(r)?r:[r];return!!o.includes(null)||(o=o.map((function(e){return e.toLowerCase()}))).includes(n)}))}}]),t}(p);e.exports=m},1574:function(e,r,t){"use strict";var n=t(148),o=function(e,r,t,n){return function(){for(var o=this,i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];var s=r.promiseModule;return new s((function(i,u){r.multiArgs?a.push((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.errorFirst?t[0]?u(t):(t.shift(),i(t)):i(t)})):r.errorFirst?a.push((function(e,r){e?u(e):i(r)})):a.push(i);var s=o===t?n:o;Reflect.apply(e,s,a)}))}},i=new WeakMap;e.exports=function(e,r){r=n({exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},r);var t=typeof e;if(null===e||"object"!==t&&"function"!==t)throw new TypeError("Expected `input` to be a `Function` or `Object`, got `".concat(null===e?"null":t,"`"));var a=new WeakMap,u=new Proxy(e,{apply:function(e,t,n){var i=a.get(e);if(i)return Reflect.apply(i,t,n);var s=r.excludeMain?e:o(e,r,u,e);return a.set(e,s),Reflect.apply(s,t,n)},get:function(e,t){var n=e[t];if(!function(e,t){var n=i.get(e);if(n||(n={},i.set(e,n)),t in n)return n[t];var o=function(e){return"string"===typeof e||"symbol"===typeof t?t===e:e.test(t)},a=Reflect.getOwnPropertyDescriptor(e,t),u=void 0===a||a.writable||a.configurable,s=(r.include?r.include.some(o):!r.exclude.some(o))&&u;return n[t]=s,s}(e,t)||n===Function.prototype[t])return n;var s=a.get(n);if(s)return s;if("function"===typeof n){var c=o(n,r,u,e);return a.set(n,c),c}return n}});return u}},1575:function(e,r,t){var n=t(1),o=t(129),i=t(75),a=t(76),u=t(979),s=t(286),c=t(195),l=t(196),p=function(e){"use strict";c(t,e);var r=l(t);function t(){var e;return i(this,t),(e=r.call(this)).allResults=[],e}return a(t,[{key:"update",value:function(){var e=o(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("BaseFilterWithHistory - no update method specified");case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"addResults",value:function(e){this.allResults=this.allResults.concat(e),u(s(t.prototype),"addResults",this).call(this,e)}},{key:"addInitialResults",value:function(e){this.allResults=this.allResults.concat(e),u(s(t.prototype),"addInitialResults",this).call(this,e)}},{key:"getAllResults",value:function(){return this.allResults}}]),t}(t(1082));e.exports=p},1576:function(e,r,t){var n=t(1),o=t(129),i=t(75),a=t(76),u=t(195),s=t(196),c=t(1082),l=t(1083),p=t(995).incrementHexInt,f=function(e){"use strict";u(t,e);var r=s(t);function t(e){var n,o=e.provider;e.params;return i(this,t),(n=r.call(this)).type="block",n.provider=o,n}return a(t,[{key:"update",value:function(){var e=o(n.mark((function e(r){var t,o,i,a,u,s;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.oldBlock,o=r.newBlock,i=o,a=p(t),e.next=5,l({provider:this.provider,fromBlock:a,toBlock:i});case 5:u=e.sent,s=u.map((function(e){return e.hash})),this.addResults(s);case 8:case"end":return e.stop()}}),e,this)})));return function(r){return e.apply(this,arguments)}}()}]),t}(c);e.exports=f},1577:function(e,r,t){var n=t(1),o=t(469),i=t(110),a=t(129),u=t(75),s=t(76),c=t(195),l=t(196),p=t(1082),f=t(1083),d=t(995).incrementHexInt,h=function(e){"use strict";c(t,e);var r=l(t);function t(e){var n,o=e.provider;return u(this,t),(n=r.call(this)).type="tx",n.provider=o,n}return s(t,[{key:"update",value:function(){var e=a(n.mark((function e(r){var t,a,u,s,c,l,p,h;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.oldBlock,a=t,u=d(t),e.next=5,f({provider:this.provider,fromBlock:u,toBlock:a});case 5:s=e.sent,c=[],l=i(s);try{for(l.s();!(p=l.n()).done;)h=p.value,c.push.apply(c,o(h.transactions))}catch(n){l.e(n)}finally{l.f()}this.addResults(c);case 10:case"end":return e.stop()}}),e,this)})));return function(r){return e.apply(this,arguments)}}()}]),t}(p);e.exports=h},1640:function(e,r,t){"use strict";t.r(r),t.d(r,"Mutex",(function(){return a})),t.d(r,"Semaphore",(function(){return i})),t.d(r,"withTimeout",(function(){return u}));function n(e,r,t,n){return new(t||(t=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(r){i(r)}}function u(e){try{s(n.throw(e))}catch(r){i(r)}}function s(e){var r;e.done?o(e.value):(r=e.value,r instanceof t?r:new t((function(e){e(r)}))).then(a,u)}s((n=n.apply(e,r||[])).next())}))}function o(e,r){var t,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=r.call(e,a)}catch(u){i=[6,u],n=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}Object.create;Object.create;var i=function(){function e(e){if(this._maxConcurrency=e,this._queue=[],e<=0)throw new Error("semaphore must be initialized to a positive value");this._value=e}return e.prototype.acquire=function(){var e=this,r=this.isLocked(),t=new Promise((function(r){return e._queue.push(r)}));return r||this._dispatch(),t},e.prototype.runExclusive=function(e){return n(this,void 0,void 0,(function(){var r,t,n;return o(this,(function(o){switch(o.label){case 0:return[4,this.acquire()];case 1:r=o.sent(),t=r[0],n=r[1],o.label=2;case 2:return o.trys.push([2,,4,5]),[4,e(t)];case 3:return[2,o.sent()];case 4:return n(),[7];case 5:return[2]}}
vendor: 1,804 bytes, line 1
1))}))},e.prototype.isLocked=function(){return this._value<=0},e.prototype.release=function(){if(this._maxConcurrency>1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var e=this._currentReleaser;this._currentReleaser=void 0,e()}},e.prototype._dispatch=function(){var e=this,r=this._queue.shift();if(r){var t=!1;this._currentReleaser=function(){t||(t=!0,e._value++,e._dispatch())},r([this._value--,this._currentReleaser])}},e}(),a=function(){function e(){this._semaphore=new i(1)}return e.prototype.acquire=function(){return n(this,void 0,void 0,(function(){var e;return o(this,(function(r){switch(r.label){case 0:return[4,this._semaphore.acquire()];case 1:return e=r.sent(),[2,e[1]]}}))}))},e.prototype.runExclusive=function(e){return this._semaphore.runExclusive((function(){return e()}))},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.release=function(){this._semaphore.release()},e}();function u(e,r,t){var i=this;return void 0===t&&(t=new Error("timeout")),{acquire:function(){return new Promise((function(a,u){return n(i,void 0,void 0,(function(){var n,i;return o(this,(function(o){switch(o.label){case 0:return n=!1,setTimeout((function(){n=!0,u(t)}),r),[4,e.acquire()];case 1:return i=o.sent(),n?(Array.isArray(i)?i[1]:i)():a(i),[2]}}))}))}))},runExclusive:function(e){return n(this,void 0,void 0,(function(){var r,t;return o(this,(function(n){switch(n.label){case 0:r=function(){},n.label=1;case 1:return n.trys.push([1,,7,8]),[4,this.acquire()];case 2:return t=n.sent(),Array.isArray(t)?(r=t[1],[4,e(t[0])]):[3,4];case 3:return[2,n.sent()];case 4:return r=t,[4,e()];case 5:return[2,n.sent()];case 6:return[3,8];case 7:return r(),[7];case 8:return[2]}}
1))}))},release:function(){e.release()},isLocked:function(){return e.isLocked()}}}},979:function(e,r,t){var n=t(993);function o(r,t,i){return"undefined"!==typeof Reflect&&Reflect.get?e.exports=o=Reflect.get:e.exports=o=function(e,r,t){var o=n(e,r);if(o){var i=Object.getOwnPropertyDescriptor(o,r);return i.get?i.get.call(t):i.value}},o(r,t,i||r)}e.exports=o},993:function(e,r,t){var n=t(286);e.exports=function(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&null!==(e=n(e)););return e}},995:function(e,r){function t(e){return e.sort((function(e,r){return"latest"===e||"earliest"===r?1:"latest"===r||"earliest"===e?-1:n(e)-n(r)}))}function n(e){return void 0===e||null===e?e:Number.parseInt(e,16)}function o(e){if(void 0===e||null===e)return e;var r=e.toString(16);return r.length%2&&(r="0"+r),"0x"+r}function i(){return Math.floor(16*Math.random()).toString(16)}e.exports={minBlockRef:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=t(r);return o[0]},maxBlockRef:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=t(r);return o[o.length-1]},sortBlockRefs:t,bnToHex:function(e){return"0x"+e.toString(16)},blockRefIsNumber:function(e){return e&&!["earliest","latest","pending"].includes(e)},hexToInt:n,incrementHexInt:function(e){return void 0===e||null===e?e:o(n(e)+1)},intToHex:o,unsafeRandomBytes:function(e){for(var r="0x",t=0;t<e;t++)r+=i(),r+=i();return r}}}}]);
2//# sourceMappingURL=1.362471be.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.