@dodoex/wallet-web3 0.0.3-3 → 0.0.3-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/controllers/ConnectController.d.ts +6 -5
- package/dist/cjs/core/index.d.ts +0 -1
- package/dist/cjs/{index-1613ac94.cjs → index-0eeb697b.cjs} +2 -2
- package/dist/cjs/{index-613571b4.cjs → index-3a14a931.cjs} +1 -1
- package/dist/cjs/index-a26b6945.cjs +1 -0
- package/dist/cjs/index-a9081fe4.cjs +1 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/portis-8c790653.cjs +1 -0
- package/dist/cjs/provider-95f3425c.cjs +1 -0
- package/dist/cjs/state.d.ts +12 -3
- package/dist/cjs/uAuth-692ecdf6.cjs +1 -0
- package/dist/cjs/walletConnect-14d9d490.cjs +1 -0
- package/dist/cjs/walletLink-b99948b8.cjs +1 -0
- package/dist/controllers/ConnectController.d.ts +6 -5
- package/dist/core/index.d.ts +0 -1
- package/dist/{index-201c01d8.js → index-3a9d1d45.js} +2 -2
- package/dist/{index-cecc22f4.js → index-9af08480.js} +1 -1
- package/dist/index-a2c8f38f.js +1 -0
- package/dist/index-afc4ce88.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/portis-f89a1cba.js +1 -0
- package/dist/provider-1ecbc0fa.js +1 -0
- package/dist/state.d.ts +12 -3
- package/dist/uAuth-1f7b3a0a.js +1 -0
- package/dist/walletConnect-ac756ff6.js +1 -0
- package/dist/walletLink-c286f908.js +1 -0
- package/package.json +2 -2
- package/dist/cjs/controllers/StateController.d.ts +0 -27
- package/dist/cjs/index-0494ffbc.cjs +0 -1
- package/dist/cjs/index-b63f2913.cjs +0 -19
- package/dist/cjs/portis-09fea9b2.cjs +0 -1
- package/dist/cjs/provider-653a6c4b.cjs +0 -1
- package/dist/cjs/uAuth-e46c0332.cjs +0 -1
- package/dist/cjs/walletConnect-a74c7523.cjs +0 -1
- package/dist/cjs/walletLink-5a993e87.cjs +0 -1
- package/dist/controllers/StateController.d.ts +0 -27
- package/dist/index-b6a46a6d.js +0 -1
- package/dist/index-b869aac9.js +0 -19
- package/dist/portis-3b5726bc.js +0 -1
- package/dist/provider-847fb9d1.js +0 -1
- package/dist/uAuth-458fbce7.js +0 -1
- package/dist/walletConnect-643e147f.js +0 -1
- package/dist/walletLink-fd84e70b.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{JsonRpcProvider as e}from"@ethersproject/providers";import{AddressZero as t}from"@ethersproject/constants";import{Contract as n}from"@ethersproject/contracts";import{getAddress as o}from"@ethersproject/address";import{create as i}from"zustand";var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var l=function(){return l=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},l.apply(this,arguments)};function c(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{c(o.next(e))}catch(e){r(e)}}function l(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}c((o=o.apply(e,t||[])).next())}))}function s(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(c){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(a=0)),a;)try{if(n=1,o&&(i=2&l[0]?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,o=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){a.label=l[1];break}if(6===l[0]&&a.label<i[1]){a.label=i[1],i=l;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(l);break}i[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],o=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}var d=Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]};function u(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function C(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function p(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}function f(e){return this instanceof f?(this.v=e,this):new f(e)}var h=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};var D,w,v=Object.freeze({__proto__:null,__extends:a,get __assign(){return l},__rest:function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n},__decorate:function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a},__param:function(e,t){return function(n,o){t(n,o,e)}},__esDecorate:function(e,t,n,o,i,r){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var l,c=o.kind,s="getter"===c?"get":"setter"===c?"set":"value",d=!t&&e?o.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,o.name):{}),C=!1,p=n.length-1;p>=0;p--){var f={};for(var h in o)f[h]="access"===h?{}:o[h];for(var h in o.access)f.access[h]=o.access[h];f.addInitializer=function(e){if(C)throw new TypeError("Cannot add initializers after decoration has completed");r.push(a(e||null))};var D=(0,n[p])("accessor"===c?{get:u.get,set:u.set}:u[s],f);if("accessor"===c){if(void 0===D)continue;if(null===D||"object"!=typeof D)throw new TypeError("Object expected");(l=a(D.get))&&(u.get=l),(l=a(D.set))&&(u.set=l),(l=a(D.init))&&i.push(l)}else(l=a(D))&&("field"===c?i.push(l):u[s]=l)}d&&Object.defineProperty(d,o.name,u),C=!0},__runInitializers:function(e,t,n){for(var o=arguments.length>2,i=0;i<t.length;i++)n=o?t[i].call(e,n):t[i].call(e);return o?n:void 0},__propKey:function(e){return"symbol"==typeof e?e:"".concat(e)},__setFunctionName:function(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:c,__generator:s,__createBinding:d,__exportStar:function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||d(t,e,n)},__values:u,__read:C,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(C(arguments[t]));return e},__spreadArrays:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,l=r.length;a<l;a++,i++)o[i]=r[a];return o},__spreadArray:p,__await:f,__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=n.apply(e,t||[]),r=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(e){i[e]&&(o[e]=function(t){return new Promise((function(n,o){r.push([e,t,n,o])>1||l(e,t)}))})}function l(e,t){try{(n=i[e](t)).value instanceof f?Promise.resolve(n.value.v).then(c,s):d(r[0][2],n)}catch(e){d(r[0][3],e)}var n}function c(e){l("next",e)}function s(e){l("throw",e)}function d(e,t){e(t),r.shift(),r.length&&l(r[0][0],r[0][1])}},__asyncDelegator:function(e){var t,n;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,i){t[o]=e[o]?function(t){return(n=!n)?{value:f(e[o](t)),done:!1}:i?i(t):t}:i}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=u(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise((function(o,i){(function(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)})(o,i,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&d(t,e,n);return h(t,e),t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,t,n,o){if("a"===n&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?o:"a"===n?o.call(e):o?o.value:t.get(e)},__classPrivateFieldSet:function(e,t,n,o,i){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?i.call(e,n):i?i.value=n:t.set(e,n),n},__classPrivateFieldIn:function(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}});!function(e){e[e.MAINNET=1]="MAINNET",e[e.GOERLI=5]="GOERLI",e[e.BSC=56]="BSC",e[e.HECO=128]="HECO",e[e.POLYGON=137]="POLYGON",e[e.ARBITRUM_ONE=42161]="ARBITRUM_ONE",e[e.ARBITRUM_RINKEBY=421611]="ARBITRUM_RINKEBY",e[e.AURORA=1313161554]="AURORA",e[e.MOONRIVER=1285]="MOONRIVER",e[e.OKCHAIN=66]="OKCHAIN",e[e.OPTIMISM=10]="OPTIMISM",e[e.BOBA=288]="BOBA",e[e.AVALANCHE=43114]="AVALANCHE",e[e.CRONOS=25]="CRONOS"}(D||(D={})),function(e){e.injected="injected",e.BinanceChain="custom-bsc-injected",e.WalletConnect="walletconnect",e.Portis="portis",e.Gnosis="custom-gnosis",e.WalletLink="custom-walletlink",e.LedgerUSB="custom-ledger-usb",e.Ledger="custom-ledger",e.openBlock="custom-open-block",e.openBlockIframe="custom-open-block-iframe",e.Nabox="custom-nabox",e.Bitkeep="custom-bitkeep",e.OneKey="custom-onekey",e.OKX="custom-okx",e.uAuth="custom-uauth",e.kuCoinWallet="custom-kucoin-wallet",e.frontier="custom-frontier"}(w||(w={}));var g="data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%2216%22%20fill%3D%22url%28%23paint0_linear_3075_80236%29%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M16%2025C20.9706%2025%2025%2020.9706%2025%2016C25%2011.0294%2020.9706%207%2016%207C11.0294%207%207%2011.0294%207%2016C7%2020.9706%2011.0294%2025%2016%2025ZM14%2013C13.4477%2013%2013%2013.4477%2013%2014V18C13%2018.5523%2013.4477%2019%2014%2019H18C18.5523%2019%2019%2018.5523%2019%2018V14C19%2013.4477%2018.5523%2013%2018%2013H14Z%22%20fill%3D%22white%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_3075_80236%22%20x1%3D%2216%22%20y1%3D%220%22%20x2%3D%2216%22%20y2%3D%2232%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23345FF8%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%231D43DC%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E";function m(e){return c(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,import("@ethersproject/providers")];case 1:return[2,new(0,t.sent().Web3Provider)(e)]}}))}))}function E(e,t){return void 0===e&&(e=null),c(this,void 0,void 0,(function(){var n;return s(this,(function(o){switch(o.label){case 0:return(n=e||window.ethereum)?[4,n.request({method:"eth_requestAccounts"})]:[3,2];case 1:return o.sent(),[3,3];case 2:if(window.web3)n=window.web3.currentProvider;else{if(!window.celo)throw new Error("No Web3 Provider found");n=window.celo}o.label=3;case 3:return n.on("connect",t.connect),n.on("disconnect",t.disconnect),n.on("accountsChanged",t.accountsChanged),n.on("chainChanged",t.chainChanged),n.on("message",t.message),[2,m(n)]}}))}))}function F(e){var t=e.addChainParameters,n=e.provider,o=void 0===n?window.ethereum:n;return c(this,void 0,void 0,(function(){var e,n,i,r;return s(this,(function(a){switch(a.label){case 0:if(!o)return[2,{result:!1}];e=t.chainId,a.label=1;case 1:return a.trys.push([1,3,,8]),[4,o.request({method:"wallet_switchEthereumChain",params:[{chainId:e}]})];case 2:return a.sent(),[2,{result:!0}];case 3:if(n=a.sent(),4902!==(i=n.code)&&-32603!==i)return[3,7];a.label=4;case 4:return a.trys.push([4,6,,7]),[4,o.request({method:"wallet_addEthereumChain",params:[t]})];case 5:return a.sent(),[2,{result:!0}];case 6:return r=a.sent(),console.error("[failed to add ".concat(e,"]: "),t,r),[3,7];case 7:return console.error("[failed to switch ".concat(e,"]: "),t,n),[3,8];case 8:return[2,{result:!1}]}}))}))}var y,b,x=[{path:"m/44'/60'/x'/0/0",name:"Ledger Live"},{path:"m/44'/60'/0'/x",name:"Legacy"}],A=function(){var e;return!!(null===(e=window.navigator)||void 0===e?void 0:e.hid)},_=function(){var e;return(null===(e=window.navigator)||void 0===e?void 0:e.userAgent)&&/(Android)/i.test(navigator.userAgent)},B=function(){var e;return/(iPhone|iPad|iPod|iOS)/i.test(null===(e=window.navigator)||void 0===e?void 0:e.userAgent)},L=function(){return _()||B()},k=function(){if("undefined"!=typeof window)return window},M=!1,O=1,V={},H=!1;null===(y=k())||void 0===y||y.addEventListener("message",(function(e){"openblock-content-integration"===e.data.from&&(M=!0,Object.values(V).map((function(e){return e()})))})),null===(b=k())||void 0===b||b.addEventListener("load",(function(){setTimeout((function(){H=!0,Object.values(V).map((function(e){return e()}))}),1e3)}),{once:!0});var S=function(){return c(void 0,void 0,void 0,(function(){return s(this,(function(e){return[2,new Promise((function(e){M?e(!0):window.parent===window||H?e(!1):(O++,V[O]=function(){e(M),delete V[O]})}))]}))}))},P=function(e,t){return c(void 0,void 0,void 0,(function(){var e;return s(this,(function(n){switch(n.label){case 0:return[4,import("./provider-1ecbc0fa.js")];case 1:return(e=n.sent().default()).on("connect",t.connect),e.on("disconnect",t.disconnect),e.on("accountsChanged",t.accountsChanged),e.on("chainChanged",t.chainChanged),e.on("message",t.message),[4,e.request({method:"eth_requestAccounts"})];case 2:return n.sent(),[2,m(e)]}}))}))};function I(){return import("./index-3a9d1d45.js")}function N(){return import("./index-a2c8f38f.js")}function Z(){return import("./uAuth-1f7b3a0a.js")}function z(e,t){return c(this,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return[4,import("./portis-f89a1cba.js")];case 1:return[2,n.sent().default(e,t)]}}))}))}function T(e,t){return c(this,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return[4,import("./walletLink-c286f908.js")];case 1:return[2,n.sent().default(e,t)]}}))}))}function j(e,t){return c(this,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return[4,import("./walletConnect-ac756ff6.js")];case 1:return[2,n.sent().default(e,t)]}}))}))}var W={type:w.injected,showName:"Coinbase Wallet",logo:g,supportMobile:!1,supportExtension:!1,switchChain:F,disabled:function(){return!(L()&&window.ethereum&&(window.ethereum.isWalletLink||window.ethereum.isToshi))},mobileAndroidDeepLink:"https://go.cb-w.com/dapp?cburl=$formattedAPPUrl",mobileIOSDeepLink:"cbwallet://dapp?url=$formattedAPPUrl"},R={type:w.injected,showName:"TokenPocket",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0_4319_127796%29%22%3E%3Cmask%20id%3D%22mask0_4319_127796%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2232%22%20height%3D%2232%22%3E%3Cpath%20d%3D%22M21%200H11C4.92487%200%200%204.92487%200%2011V21C0%2027.0751%204.92487%2032%2011%2032H21C27.0751%2032%2032%2027.0751%2032%2021V11C32%204.92487%2027.0751%200%2021%200Z%22%20fill%3D%22%23C4C4C4%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_4319_127796%29%22%3E%3Cpath%20d%3D%22M32.5475%200H-0.84375V32H32.5475V0Z%22%20fill%3D%22%232980FE%22%2F%3E%3Cpath%20d%3D%22M12.7124%2013.7077H12.7165C12.7124%2013.6831%2012.7124%2013.6544%2012.7124%2013.6299V13.7077Z%22%20fill%3D%22%2329AEFF%22%2F%3E%3Cpath%20d%3D%22M20.8626%2014.4854H16.3515V22.6273C16.3515%2023.0121%2016.6626%2023.3232%2017.0474%2023.3232H20.1667C20.5515%2023.3232%2020.8626%2023.0121%2020.8626%2022.6273V14.4854Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M14.1738%208.65625H14.0224H5.94591C5.56109%208.65625%205.25%208.96734%205.25%209.35216V12.1767C5.25%2012.5615%205.56109%2012.8726%205.94591%2012.8726H7.84119H8.59441V13.7076V22.6478C8.59441%2023.0327%208.9055%2023.3438%209.29028%2023.3438H12.254C12.6388%2023.3438%2012.9499%2023.0327%2012.9499%2022.6478V13.7076V13.6299V12.8726H13.7031H14.0101H14.1616C15.3241%2012.8726%2016.2697%2011.927%2016.2697%2010.7644C16.282%209.60184%2015.3364%208.65625%2014.1738%208.65625Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M20.8667%2014.4854V20.1671C21.0223%2020.204%2021.1819%2020.2326%2021.3457%2020.2572C21.5749%2020.2899%2021.8123%2020.3104%2022.0497%2020.3145C22.062%2020.3145%2022.0743%2020.3145%2022.0907%2020.3145V15.7953C21.4071%2015.7502%2020.8667%2015.1812%2020.8667%2014.4854Z%22%20fill%3D%22url%28%23paint0_linear_4319_127796%29%22%2F%3E%3Cpath%20d%3D%22M22.1807%208.65625C18.9632%208.65625%2016.3515%2011.2679%2016.3515%2014.4854C16.3515%2017.2526%2018.2796%2019.5695%2020.8667%2020.1672V14.4854C20.8667%2013.7608%2021.4561%2013.1714%2022.1807%2013.1714C22.9052%2013.1714%2023.4947%2013.7608%2023.4947%2014.4854C23.4947%2015.0953%2023.0813%2015.607%2022.5163%2015.7544C22.4099%2015.783%2022.2953%2015.7994%2022.1807%2015.7994V20.3146C22.2953%2020.3146%2022.4058%2020.3105%2022.5163%2020.3064C25.5783%2020.1303%2028.0098%2017.5924%2028.0098%2014.4854C28.0139%2011.2679%2025.4023%208.65625%2022.1807%208.65625Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M22.1806%2020.3147V15.7995C22.1479%2015.7995%2022.1193%2015.7995%2022.0865%2015.7954V20.3147C22.1193%2020.3147%2022.152%2020.3147%2022.1806%2020.3147Z%22%20fill%3D%22white%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_4319_127796%22%20x1%3D%2222.1826%22%20y1%3D%2217.4008%22%20x2%3D%2220.8673%22%20y2%3D%2217.4008%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22white%22%2F%3E%3Cstop%20offset%3D%220.9667%22%20stop-color%3D%22white%22%20stop-opacity%3D%220.3233%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22white%22%20stop-opacity%3D%220.3%22%2F%3E%3C%2FlinearGradient%3E%3CclipPath%20id%3D%22clip0_4319_127796%22%3E%3Crect%20width%3D%2232%22%20height%3D%2232%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",link:"https://www.tokenpocket.pro/",supportMobile:!0,supportExtension:!1,switchChain:F,disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isTokenPocket)},mobileDeepLink:"tpdapp://open?params=".concat(encodeURI('{\n "url": "$APP_URL"\n }'))},U={type:w.injected,showName:"TrustWallet",logo:"data:image/svg+xml,%3Csvg%20enable-background%3D%22new%200%200%20158.8%20184%22%20viewBox%3D%220%200%20158.8%20184%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20transform%3D%22translate%28354%20351%29%22%3E%3Cpath%20d%3D%22m-274.6-343.7c29.3%2022.7%2062.9%2021.3%2072.5%2021.3-2.1%20129.1-18.1%20111.9-72.5%20148.1-54.4-36.2-70.3-19-72.4-148.1%209.5%200%2043%201.4%2072.4-21.3z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22m-274.6-343.7%204.2-5.5c-2.5-1.9-6-1.9-8.5%200zm72.5%2021.3%206.9.1c0-1.9-.7-3.6-2-5-1.3-1.3-3.1-2.1-4.9-2.1zm-72.5%20148.1-3.8%205.8c2.3%201.5%205.3%201.5%207.7%200zm-72.4-148.1v-6.9c-1.9%200-3.6.7-4.9%202.1-1.3%201.3-2%203.1-2%205zm68.1-15.8c31.4%2024.3%2067.3%2022.7%2076.7%2022.7v-13.8c-9.8%200-41.1%201.2-68.3-19.9zm69.8%2015.7c-.5%2032.1-1.9%2054.8-4.5%2071.6-2.6%2016.6-6.2%2026.6-11%2033.6-4.8%207.3-10.8%2011.6-19.7%2016.9-9%205.4-20.3%2011.2-34.3%2020.4l7.7%2011.5c13.3-8.8%2024.3-14.5%2033.7-20.1%209.5-5.7%2017.8-11.9%2024.1-21%206.3-9.4%2010.5-21.6%2013.2-39.2%202.7-17.4%204.1-41%204.6-73.5zm-61.7%20142.4c-13.9-9.3-25.3-15.1-34.2-20.4s-14.9-9.6-19.7-16.9c-4.7-7-8.4-16.9-10.9-33.6-2.6-16.8-3.9-39.4-4.5-71.6l-13.9.3c.5%2032.4%202%2056%204.6%2073.5%202.7%2017.6%206.8%2029.8%2013.1%2039.2%206.3%209.1%2014.6%2015.3%2024%2021%209.4%205.6%2020.4%2011.2%2033.7%2020.1zm-76.2-135.4c9.3%200%2045.3%201.6%2076.6-22.7l-8.4-11c-27.2%2021.1-58.5%2019.9-68.2%2019.9z%22%20fill%3D%22%233375bb%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",link:"https://trustwallet.com/",supportMobile:!0,supportExtension:!1,switchChain:F,disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isTrust)},mobileDeepLink:"https://link.trustwallet.com/open_url?url=$APP_URL"},G={type:w.injected,showName:"ImToken",logo:"data:image/svg+xml,%3Csvg%20enable-background%3D%22new%200%200%2064%2064%22%20viewBox%3D%220%200%2064%2064%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3ClinearGradient%20id%3D%22a%22%20gradientTransform%3D%22matrix%2823.9866%200%200%20-16.946%206597.1353%205695.4907%29%22%20gradientUnits%3D%22userSpaceOnUse%22%20x1%3D%22-272.5272%22%20x2%3D%22-275.1207%22%20y1%3D%22335.5532%22%20y2%3D%22332.9597%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%2311c4d1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%230062ad%22%2F%3E%3C%2FlinearGradient%3E%3Cpath%20d%3D%22m63.8%2010.9c2.1%2028.6-16.2%2042.1-32.7%2043.6-15.3%201.3-29.7-8.1-31-22.5-1-11.9%206.3-17%2012.1-17.5%206-.5%2011%203.6%2011.4%208.6.4%204.8-2.6%207-4.6%207.2-1.6.1-3.7-.9-3.9-3-.2-1.8.5-2.1.4-4-.3-3.5-3.3-3.9-5-3.7-2%20.2-5.7%202.5-5.1%208.4.5%205.9%206.2%2010.6%2013.6%209.9%208-.7%2013.6-6.9%2014-15.7%200-.5.1-.9.3-1.3.1-.2.2-.4.3-.5.2-.3.4-.5.7-.8.2-.2.5-.5.7-.8%203.5-3.3%2016.1-11.1%2028-8.6.4-.2.8.2.8.7%22%20fill%3D%22url%28%23a%29%22%2F%3E%3C%2Fsvg%3E",link:"https://token.im/",supportMobile:!0,supportExtension:!1,switchChain:F,disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isImToken)},mobileDeepLink:"imtokenv2://navigate/DappView?url=$formattedAPPUrl"},K={type:w.injected,showName:"Math Wallet",logo:"data:image/svg+xml,%3Csvg%20width%3D%2272%22%20height%3D%2272%22%20viewBox%3D%220%200%2072%2072%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ccircle%20cx%3D%2236%22%20cy%3D%2236%22%20r%3D%2236%22%20fill%3D%22black%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M14.25%2046.4721C15.1398%2046.4721%2015.8611%2047.1934%2015.8611%2048.0832C15.8611%2048.973%2015.1398%2049.6943%2014.25%2049.6943C13.3602%2049.6943%2012.6389%2048.973%2012.6389%2048.0832C12.6389%2047.1934%2013.3602%2046.4721%2014.25%2046.4721ZM36%2046.4721C36.8898%2046.4721%2037.6111%2047.1934%2037.6111%2048.0832C37.6111%2048.973%2036.8898%2049.6943%2036%2049.6943C35.1102%2049.6943%2034.3889%2048.973%2034.3889%2048.0832C34.3889%2047.1934%2035.1102%2046.4721%2036%2046.4721ZM57.75%2046.4721C58.6398%2046.4721%2059.3611%2047.1934%2059.3611%2048.0832C59.3611%2048.973%2058.6398%2049.6943%2057.75%2049.6943C56.8602%2049.6943%2056.1389%2048.973%2056.1389%2048.0832C56.1389%2047.1934%2056.8602%2046.4721%2057.75%2046.4721ZM19.0833%2040.0276C20.418%2040.0276%2021.5%2041.1096%2021.5%2042.4443C21.5%2043.779%2020.418%2044.861%2019.0833%2044.861C17.7486%2044.861%2016.6667%2043.779%2016.6667%2042.4443C16.6667%2041.1096%2017.7486%2040.0276%2019.0833%2040.0276ZM30.3611%2040.0276C31.6958%2040.0276%2032.7778%2041.1096%2032.7778%2042.4443C32.7778%2043.779%2031.6958%2044.861%2030.3611%2044.861C29.0264%2044.861%2027.9444%2043.779%2027.9444%2042.4443C27.9444%2041.1096%2029.0264%2040.0276%2030.3611%2040.0276ZM41.6389%2040.0276C42.9736%2040.0276%2044.0556%2041.1096%2044.0556%2042.4443C44.0556%2043.779%2042.9736%2044.861%2041.6389%2044.861C40.3042%2044.861%2039.2222%2043.779%2039.2222%2042.4443C39.2222%2041.1096%2040.3042%2040.0276%2041.6389%2040.0276ZM52.9167%2040.0276C54.2514%2040.0276%2055.3333%2041.1096%2055.3333%2042.4443C55.3333%2043.779%2054.2514%2044.861%2052.9167%2044.861C51.582%2044.861%2050.5%2043.779%2050.5%2042.4443C50.5%2041.1096%2051.582%2040.0276%2052.9167%2040.0276ZM8.61111%2040.8332C9.5009%2040.8332%2010.2222%2041.5545%2010.2222%2042.4443C10.2222%2043.3341%209.5009%2044.0554%208.61111%2044.0554C7.72132%2044.0554%207%2043.3341%207%2042.4443C7%2041.5545%207.72132%2040.8332%208.61111%2040.8332ZM63.3889%2040.8332C64.2787%2040.8332%2065%2041.5545%2065%2042.4443C65%2043.3341%2064.2787%2044.0554%2063.3889%2044.0554C62.4991%2044.0554%2061.7778%2043.3341%2061.7778%2042.4443C61.7778%2041.5545%2062.4991%2040.8332%2063.3889%2040.8332ZM24.7222%2033.5832C26.5018%2033.5832%2027.9444%2035.0258%2027.9444%2036.8054C27.9444%2038.585%2026.5018%2040.0276%2024.7222%2040.0276C22.9426%2040.0276%2021.5%2038.585%2021.5%2036.8054C21.5%2035.0258%2022.9426%2033.5832%2024.7222%2033.5832ZM47.2778%2033.5832C49.0574%2033.5832%2050.5%2035.0258%2050.5%2036.8054C50.5%2038.585%2049.0574%2040.0276%2047.2778%2040.0276C45.4982%2040.0276%2044.0556%2038.585%2044.0556%2036.8054C44.0556%2035.0258%2045.4982%2033.5832%2047.2778%2033.5832ZM14.25%2034.3888C15.5847%2034.3888%2016.6667%2035.4707%2016.6667%2036.8054C16.6667%2038.1401%2015.5847%2039.2221%2014.25%2039.2221C12.9153%2039.2221%2011.8333%2038.1401%2011.8333%2036.8054C11.8333%2035.4707%2012.9153%2034.3888%2014.25%2034.3888ZM36%2034.3888C37.3347%2034.3888%2038.4167%2035.4707%2038.4167%2036.8054C38.4167%2038.1401%2037.3347%2039.2221%2036%2039.2221C34.6653%2039.2221%2033.5833%2038.1401%2033.5833%2036.8054C33.5833%2035.4707%2034.6653%2034.3888%2036%2034.3888ZM57.75%2034.3888C59.0847%2034.3888%2060.1667%2035.4707%2060.1667%2036.8054C60.1667%2038.1401%2059.0847%2039.2221%2057.75%2039.2221C56.4153%2039.2221%2055.3333%2038.1401%2055.3333%2036.8054C55.3333%2035.4707%2056.4153%2034.3888%2057.75%2034.3888ZM19.0833%2027.9443C20.8629%2027.9443%2022.3056%2029.3869%2022.3056%2031.1665C22.3056%2032.9461%2020.8629%2034.3888%2019.0833%2034.3888C17.3037%2034.3888%2015.8611%2032.9461%2015.8611%2031.1665C15.8611%2029.3869%2017.3037%2027.9443%2019.0833%2027.9443ZM30.3611%2027.9443C32.1407%2027.9443%2033.5833%2029.3869%2033.5833%2031.1665C33.5833%2032.9461%2032.1407%2034.3888%2030.3611%2034.3888C28.5815%2034.3888%2027.1389%2032.9461%2027.1389%2031.1665C27.1389%2029.3869%2028.5815%2027.9443%2030.3611%2027.9443ZM41.6389%2027.9443C43.4185%2027.9443%2044.8611%2029.3869%2044.8611%2031.1665C44.8611%2032.9461%2043.4185%2034.3888%2041.6389%2034.3888C39.8593%2034.3888%2038.4167%2032.9461%2038.4167%2031.1665C38.4167%2029.3869%2039.8593%2027.9443%2041.6389%2027.9443ZM52.9167%2027.9443C54.6963%2027.9443%2056.1389%2029.3869%2056.1389%2031.1665C56.1389%2032.9461%2054.6963%2034.3888%2052.9167%2034.3888C51.1371%2034.3888%2049.6944%2032.9461%2049.6944%2031.1665C49.6944%2029.3869%2051.1371%2027.9443%2052.9167%2027.9443ZM24.7222%2022.3054C26.5018%2022.3054%2027.9444%2023.7481%2027.9444%2025.5276C27.9444%2027.3072%2026.5018%2028.7499%2024.7222%2028.7499C22.9426%2028.7499%2021.5%2027.3072%2021.5%2025.5276C21.5%2023.7481%2022.9426%2022.3054%2024.7222%2022.3054ZM47.2778%2022.3054C49.0574%2022.3054%2050.5%2023.7481%2050.5%2025.5276C50.5%2027.3072%2049.0574%2028.7499%2047.2778%2028.7499C45.4982%2028.7499%2044.0556%2027.3072%2044.0556%2025.5276C44.0556%2023.7481%2045.4982%2022.3054%2047.2778%2022.3054Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E",link:"https://mathwallet.org",supportMobile:!0,supportExtension:!0,switchChain:F,disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isMathWallet)}},q={type:w.injected,showName:"GameStop Wallet",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0_3104_80271%29%22%3E%3Cpath%20d%3D%22M21%200H11C4.92487%200%200%204.92487%200%2011V21C0%2027.0751%204.92487%2032%2011%2032H21C27.0751%2032%2032%2027.0751%2032%2021V11C32%204.92487%2027.0751%200%2021%200Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M9.86889%2012.6868V21.3057C9.86889%2021.9352%2010.347%2022.4111%2010.968%2022.4111H21.036C21.657%2022.4111%2022.1351%2021.9352%2022.1351%2021.3057V14.077H23.724V21.3057C23.724%2022.8077%2022.5395%2024%2021.036%2024H10.968C9.46452%2024%208.28003%2022.8077%208.28003%2021.3057V12.6868H9.86889Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M8.28003%2010.6943C8.28003%209.19227%209.46452%208%2010.968%208H21.3686V11.151H21.544C22.7704%2011.151%2023.724%2012.1116%2023.724%2013.3356V14.4013C23.724%2015.6253%2022.7704%2016.5859%2021.544%2016.5859H10.968C9.46452%2016.5859%208.28003%2015.3936%208.28003%2013.8916V10.6943ZM19.7797%2011.151V9.58886H10.968C10.347%209.58886%209.86889%2010.0648%209.86889%2010.6943V13.8916C9.86889%2014.5212%2010.347%2014.9971%2010.968%2014.9971H15.2076V11.151H19.7797ZM16.7964%2014.9971H21.544C21.8879%2014.9971%2022.1351%2014.7528%2022.1351%2014.4013V13.3356C22.1351%2012.9841%2021.8879%2012.7399%2021.544%2012.7399H16.7964V14.9971Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M14.964%2012.8807H17.0825V14.9992H14.964V12.8807Z%22%20fill%3D%22url%28%23paint0_linear_3104_80271%29%22%2F%3E%3Cpath%20d%3D%22M19.2349%209.30048H21.5441V11.154H19.2349V9.30048Z%22%20fill%3D%22url%28%23paint1_linear_3104_80271%29%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_3104_80271%22%20x1%3D%2216.0232%22%20y1%3D%2216.4115%22%20x2%3D%2216.0232%22%20y2%3D%2213.5869%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%2F%3E%3Cstop%20offset%3D%221%22%20stop-opacity%3D%220%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint1_linear_3104_80271%22%20x1%3D%2220.3894%22%20y1%3D%2212.3897%22%20x2%3D%2220.3894%22%20y2%3D%229.91831%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%2F%3E%3Cstop%20offset%3D%221%22%20stop-opacity%3D%220%22%2F%3E%3C%2FlinearGradient%3E%3CclipPath%20id%3D%22clip0_3104_80271%22%3E%3Crect%20width%3D%2232%22%20height%3D%2232%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isGamestop)},supportMobile:!1,supportExtension:!0,switchChain:F,link:"https://wallet.gamestop.com/"},$={type:w.injected,showName:"Brave",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0_3137_121266%29%22%3E%3Cpath%20d%3D%22M29.6863%2011.3521L28.6996%208.67214L29.3858%207.13367C29.429%207.03662%2029.4417%206.92881%2029.4225%206.82436C29.4033%206.71991%2029.353%206.6237%2029.2782%206.54834L27.4123%204.66226C27.0117%204.25582%2026.504%203.97153%2025.9481%203.84249C25.3923%203.71346%2024.8112%203.74498%2024.2726%203.9334L23.75%204.11505L20.8996%201.02691L16.0644%201H16.033L11.1665%201.03812L8.31828%204.15094L7.81144%203.97152C7.26932%203.78088%206.68406%203.74882%206.12435%203.87911C5.56465%204.00941%205.05372%204.29664%204.65153%204.70712L2.752%206.62907C2.69238%206.68915%202.65234%206.76586%202.63713%206.84911C2.62192%206.93237%202.63226%207.01828%202.66678%207.09555L3.38219%208.69232L2.3999%2011.3701L3.03458%2013.7854L5.92985%2024.7924C6.2634%2026.0603%207.03075%2027.1713%208.0985%2027.9321C8.0985%2027.9321%2011.6127%2030.4102%2015.0799%2032.6619C15.3541%2032.8808%2015.6945%2033%2016.0454%2033C16.3962%2033%2016.7366%2032.8808%2017.0108%2032.6619C20.9063%2030.1097%2023.9877%2027.9231%2023.9877%2027.9231C25.0547%2027.1619%2025.8212%2026.051%2026.1542%2024.7834L29.0337%2013.7719L29.6863%2011.3521Z%22%20fill%3D%22url%28%23paint0_linear_3137_121266%29%22%2F%3E%3Cpath%20d%3D%22M16.8402%2020.8365C16.6556%2020.7538%2016.4652%2020.6849%2016.2706%2020.6301H15.9274C15.7328%2020.6849%2015.5424%2020.7538%2015.3578%2020.8365L14.4944%2021.1953C14.2208%2021.3097%2013.7812%2021.5137%2013.5188%2021.6438L11.931%2022.4713C11.8735%2022.49%2011.8229%2022.5254%2011.7857%2022.5731C11.7485%2022.6208%2011.7265%2022.6785%2011.7224%2022.7388C11.7183%2022.7991%2011.7323%2022.8593%2011.7627%2022.9115C11.7931%2022.9638%2011.8384%2023.0057%2011.8929%2023.032L13.2721%2024.0053C13.5143%2024.1758%2013.8956%2024.4763%2014.1198%2024.6781L14.5078%2025.0123C14.7321%2025.2052%2015.0976%2025.5259%2015.3197%2025.7232L15.6875%2026.0484C15.8011%2026.1431%2015.9443%2026.1949%2016.0923%2026.1949C16.2402%2026.1949%2016.3834%2026.1431%2016.4971%2026.0484L16.8828%2025.712L17.6946%2025.0033L18.0849%2024.6624C18.3091%2024.4673%2018.6881%2024.1668%2018.9303%2023.9896L20.3096%2023.0029C20.3641%2022.9767%2020.4095%2022.9346%2020.4398%2022.8822C20.47%2022.8298%2020.4838%2022.7694%2020.4792%2022.7091C20.4746%2022.6487%2020.4518%2022.5912%2020.414%2022.544C20.3761%2022.4967%2020.3249%2022.4621%2020.267%2022.4444L18.6814%2021.6393C18.4168%2021.5048%2017.9772%2021.3029%2017.7014%2021.1908L16.8402%2020.8365Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M26.6182%2011.9512L26.663%2011.8077C26.6657%2011.6157%2026.6537%2011.4238%2026.6271%2011.2336C26.4936%2010.8939%2026.3221%2010.5704%2026.1158%2010.2692L25.2188%208.95278C25.0528%208.70609%2024.7702%208.31587%2024.5796%208.08488L23.3775%206.58005C23.2679%206.43338%2023.1488%206.29405%2023.0209%206.16292H22.9963C22.9963%206.16292%2022.7541%206.20553%2022.4625%206.26159L20.6258%206.61593L19.8207%206.77068C19.5534%206.78324%2019.2862%206.74441%2019.0335%206.6563L17.5825%206.18758C17.2999%206.09563%2016.8334%205.96332%2016.5441%205.90052C16.2393%205.86812%2015.9318%205.86812%2015.6269%205.90052C15.3376%205.9678%2014.8711%206.09788%2014.5885%206.18983L13.1375%206.66079C12.8849%206.74889%2012.6177%206.78772%2012.3504%206.77516L11.5453%206.62266L9.70627%206.27056C9.41473%206.2145%209.17476%206.16964%209.17252%206.17189H9.14785C9.02003%206.30301%208.90091%206.44236%208.79127%206.58902L7.59144%208.09384C7.40754%208.31811%207.11824%208.71731%206.95229%208.96176L6.05522%2010.2782C5.90029%2010.5052%205.75876%2010.7411%205.63136%2010.9846C5.55451%2011.2562%205.51379%2011.5367%205.51025%2011.8189L5.55511%2011.9624C5.5767%2012.0546%205.60442%2012.1453%205.63809%2012.2338C5.82423%2012.4581%206.14268%2012.8303%206.34677%2013.0479L9.48649%2016.385C9.59072%2016.5066%209.66047%2016.654%209.68847%2016.8118C9.71647%2016.9695%209.70171%2017.1319%209.64572%2017.282L9.13215%2018.4998C9.01537%2018.8224%209.00671%2019.1743%209.10748%2019.5023L9.21064%2019.7848C9.3792%2020.2438%209.66814%2020.6489%2010.0472%2020.9577L10.5405%2021.3592C10.6687%2021.4516%2010.8183%2021.51%2010.9752%2021.5288C11.1321%2021.5477%2011.2912%2021.5263%2011.4376%2021.4668L13.1914%2020.6303C13.5133%2020.4692%2013.8145%2020.2696%2014.0884%2020.036L15.4923%2018.7689C15.5483%2018.7184%2015.5935%2018.6572%2015.6253%2018.5889C15.6571%2018.5207%2015.6749%2018.4467%2015.6777%2018.3714C15.6804%2018.2961%2015.668%2018.221%2015.6411%2018.1506C15.6143%2018.0802%2015.5736%2018.0159%2015.5215%2017.9615L12.3526%2015.8265C12.2326%2015.7414%2012.1472%2015.616%2012.1118%2015.4732C12.0764%2015.3304%2012.0934%2015.1797%2012.1597%2015.0483L13.3887%2012.7384C13.4586%2012.597%2013.4999%2012.4432%2013.5103%2012.2858C13.5207%2012.1284%2013.5%2011.9705%2013.4493%2011.8211C13.2967%2011.5362%2013.0503%2011.3128%2012.7518%2011.1887L8.89891%209.73323C8.62082%209.62783%208.63652%209.50897%208.93031%209.49102L11.1932%209.26676C11.548%209.24419%2011.9042%209.27596%2012.2494%209.36095L14.2185%209.9104C14.3583%209.95254%2014.4781%2010.0439%2014.5556%2010.1677C14.6331%2010.2914%2014.6632%2010.439%2014.6401%2010.5832L13.8664%2014.8084C13.8147%2015.0424%2013.8018%2015.2833%2013.8283%2015.5215C13.8597%2015.6225%2014.1243%2015.7458%2014.4136%2015.8176L15.6134%2016.0732C15.9619%2016.1373%2016.3191%2016.1373%2016.6675%2016.0732L17.7462%2015.8288C18.0355%2015.7637%2018.2979%2015.6269%2018.3315%2015.526C18.3574%2015.2877%2018.3437%2015.0467%2018.2912%2014.8129L17.513%2010.5877C17.4899%2010.4435%2017.52%2010.2959%2017.5975%2010.1721C17.675%2010.0484%2017.7948%209.95702%2017.9346%209.91489L19.9036%209.36319C20.2489%209.27816%2020.6051%209.2464%2020.9599%209.269L23.2228%209.47981C23.5188%209.50672%2023.5323%209.61661%2023.2564%209.72202L19.4058%2011.182C19.1073%2011.3061%2018.8609%2011.5295%2018.7083%2011.8144C18.6062%2012.1161%2018.628%2012.446%2018.7689%2012.7317L20.0001%2015.0416C20.0664%2015.1729%2020.0834%2015.3237%2020.048%2015.4665C20.0127%2015.6093%2019.9272%2015.7347%2019.8072%2015.8198L16.6406%2017.9593C16.5884%2018.0137%2016.5478%2018.078%2016.5209%2018.1484C16.4941%2018.2188%2016.4817%2018.2939%2016.4844%2018.3692C16.4871%2018.4444%2016.5049%2018.5184%2016.5368%2018.5867C16.5686%2018.655%2016.6138%2018.7162%2016.6697%2018.7667L18.0759%2020.0338C18.3499%2020.2666%2018.6511%2020.4654%2018.9729%2020.6258L20.7267%2021.4601C20.8733%2021.5193%2021.0325%2021.5403%2021.1894%2021.521C21.3463%2021.5018%2021.4958%2021.443%2021.6238%2021.3502L22.1172%2020.9465C22.4966%2020.6371%2022.7856%2020.2312%2022.9537%2019.7714L23.0568%2019.4888C23.1576%2019.1608%2023.1489%2018.809%2023.0322%2018.4863L22.5163%2017.2686C22.4604%2017.1184%2022.4456%2016.9561%2022.4736%2016.7983C22.5016%2016.6406%2022.5713%2016.4932%2022.6756%2016.3715L25.8153%2013.0299C26.0194%2012.8057%2026.3356%2012.4468%2026.5217%2012.2159C26.5597%2012.1299%2026.5919%2012.0415%2026.6182%2011.9512Z%22%20fill%3D%22white%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_3137_121266%22%20x1%3D%222.40887%22%20y1%3D%2217.0014%22%20x2%3D%2229.6774%22%20y2%3D%2217.0014%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23F1562B%22%2F%3E%3Cstop%20offset%3D%220.3%22%20stop-color%3D%22%23F1542B%22%2F%3E%3Cstop%20offset%3D%220.41%22%20stop-color%3D%22%23F04D2A%22%2F%3E%3Cstop%20offset%3D%220.49%22%20stop-color%3D%22%23EF4229%22%2F%3E%3Cstop%20offset%3D%220.5%22%20stop-color%3D%22%23EF4029%22%2F%3E%3Cstop%20offset%3D%220.56%22%20stop-color%3D%22%23E83E28%22%2F%3E%3Cstop%20offset%3D%220.67%22%20stop-color%3D%22%23E13C26%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23DF3C26%22%2F%3E%3C%2FlinearGradient%3E%3CclipPath%20id%3D%22clip0_3137_121266%22%3E%3Crect%20width%3D%2232%22%20height%3D%2232%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isBraveWallet)},supportMobile:!1,supportExtension:!0,switchChain:F,link:"https://wallet-docs.brave.com/"},Y={type:w.injected,showName:"Huobi Wallet",logo:"data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2232px%22%20height%3D%2232px%22%20viewBox%3D%220%200%2032%2032%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3EWalletConnect%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3CradialGradient%20cx%3D%2214.2459714%25%22%20cy%3D%2282.9640779%25%22%20fx%3D%2214.2459714%25%22%20fy%3D%2282.9640779%25%22%20r%3D%2297.6569253%25%22%20id%3D%22radialGradient-1%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cstop%20stop-color%3D%22%231253FC%22%20offset%3D%220%25%22%3E%3C%2Fstop%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cstop%20stop-color%3D%22%234C7CF8%22%20offset%3D%22100%25%22%3E%3C%2Fstop%3E%20%20%20%20%20%20%20%20%3C%2FradialGradient%3E%20%20%20%20%20%20%20%20%3Cfilter%20color-interpolation-filters%3D%22auto%22%20id%3D%22filter-2%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeColorMatrix%20in%3D%22SourceGraphic%22%20type%3D%22matrix%22%20values%3D%220%200%200%200%201.000000%200%200%200%200%201.000000%200%200%200%200%201.000000%200%200%200%201.000000%200%22%3E%3C%2FfeColorMatrix%3E%20%20%20%20%20%20%20%20%3C%2Ffilter%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E6%8E%A7%E4%BB%B6%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E9%92%B1%E5%8C%85-Huobi%22%20transform%3D%22translate%28-16.000000%2C%20-16.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22WalletConnect%22%20transform%3D%22translate%2816.000000%2C%2016.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%9C%AA%E5%91%BD%E5%90%8D%22%20fill%3D%22url%28%23radialGradient-1%29%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M16%2C0%20C24.836556%2C0%2032%2C7.163444%2032%2C16%20C32%2C24.836556%2024.836556%2C32%2016%2C32%20C7.163444%2C32%200%2C24.836556%200%2C16%20C0%2C7.163444%207.163444%2C0%2016%2C0%20Z%22%20id%3D%22%E8%B7%AF%E5%BE%84%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20filter%3D%22url%28%23filter-2%29%22%20id%3D%22heco%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%288.888889%2C%205.333333%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M9.77777778%2C6.56528272%20C9.77777778%2C3.50266975%208.1802334%2C0.868073441%206.96574747%2C0.0102563438%20C6.95996869%2C0.00845797311%206.87336379%2C-0.0382994199%206.88105745%2C0.0839888876%20C6.88105745%2C0.0857875045%206.87913403%2C0.0857875045%206.87913403%2C0.0875861214%20C6.77904815%2C6.00239441%203.54554242%2C7.60473067%201.7671117%2C9.76457253%20C-2.33636671%2C14.7478573%201.4803265%2C20.2112381%205.36631388%2C21.2200883%20C7.54123275%2C21.7847818%204.86396105%2C20.2202641%204.51943926%2C16.9148132%20C4.10177646%2C12.9206857%209.77777778%2C9.87247313%209.77777778%2C6.56528272%20Z%22%20id%3D%22%E8%B7%AF%E5%BE%84%22%20fill%3D%22%232D3338%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M11.2932296%2C8.01552828%20C11.2668533%2C7.99856497%2011.2303947%2C7.98734177%2011.2040185%2C8.02675148%20C11.1330817%2C8.80415072%2010.275719%2C10.4677543%209.18934224%2C11.9942806%20C5.50455525%2C17.1729727%207.60436459%2C19.6703485%208.78604691%2C21.0109638%20C9.47110885%2C21.7902479%208.78604691%2C21.0109638%2010.4987017%2C20.2148878%20C10.6324734%2C20.1528604%2013.8429923%2C18.4854872%2014.1895742%2C14.6869058%20C14.5280542%2C11.0085239%2012.1424903%2C8.68960556%2011.2932296%2C8.01552828%20Z%22%20id%3D%22%E8%B7%AF%E5%BE%84%22%20fill%3D%22%2301943F%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E",supportMobile:!1,supportExtension:!1,switchChain:F,disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isHbWallet)}},X={type:w.injected,showName:"Coin98",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M26.1569%200H5.84389C2.60226%200%200%202.6016%200%205.8432V26.1568C0%2029.3984%202.60226%2032%205.84389%2032H26.1561C29.3522%2032%2032%2029.3984%2032%2026.1568V5.8432C32%202.6016%2029.3985%200%2026.1569%200ZM21.2273%207.9888C23.601%207.9888%2025.5183%209.9056%2025.5183%2012.28C25.5183%2013.0096%2025.3353%2013.6944%2025.0156%2014.3336C24.4681%2013.9232%2023.8751%2013.5576%2023.2357%2013.3296C23.418%2013.0096%2023.5099%2012.6448%2023.5099%2012.28C23.5099%2011.0472%2022.5053%2010.0432%2021.2729%2010.0432C20.0397%2010.0432%2019.0358%2011.0472%2019.0358%2012.28C19.0358%2012.6448%2019.127%2013.0096%2019.31%2013.3296C18.6706%2013.5576%2018.0312%2013.8776%2017.5293%2014.3336C17.1641%2013.6944%2017.0266%2013.0096%2017.0266%2012.2792C16.9363%209.9056%2018.8536%207.9888%2021.2273%207.9888ZM10.7727%2024.0112C8.3998%2024.0112%206.48247%2022.0944%206.48247%2019.7208H8.53648C8.53648%2020.9528%209.54109%2021.9576%2010.7735%2021.9576C12.0059%2021.9576%2013.0105%2020.9528%2013.0105%2019.7208H15.0645C15.0645%2022.0944%2013.1464%2024.0112%2010.7727%2024.0112ZM10.7727%2017.9856C8.03456%2017.9856%205.79755%2015.7488%205.79755%2013.0096C5.79755%2010.2712%208.03456%207.9888%2010.7735%207.9888C13.5124%207.9888%2015.795%2010.2256%2015.795%2013.0096C15.7494%2015.7488%2013.5116%2017.9856%2010.7727%2017.9856ZM21.2273%2024.0112C18.4884%2024.0112%2016.2058%2021.7744%2016.2058%2019.0352C16.2058%2016.2512%2018.4428%2014.0144%2021.2273%2014.0144C23.9662%2014.0144%2026.2032%2016.2512%2026.2032%2019.036C26.2032%2021.7744%2023.9662%2024.0112%2021.2273%2024.0112ZM24.194%2018.9904C24.194%2020.6336%2022.8705%2021.9112%2021.2273%2021.9112C19.5841%2021.9112%2018.2598%2020.588%2018.2598%2018.9904C18.2598%2017.3464%2019.5841%2016.0224%2021.2273%2016.0224C22.8705%2016.0688%2024.194%2017.392%2024.194%2018.9904ZM13.6946%2013.0096C13.6946%2014.6536%2012.3711%2015.9776%2010.7279%2015.9776C9.08395%2015.9776%207.76043%2014.6536%207.76043%2013.0096C7.76043%2011.3664%209.08395%2010.0424%2010.7279%2010.0424C12.4167%2010.0424%2013.6946%2011.3664%2013.6946%2013.0104V13.0096Z%22%20fill%3D%22%23D9B432%22%2F%3E%3C%2Fsvg%3E",supportMobile:!1,supportExtension:!1,switchChain:F,disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isCoin98)}},J=Object.freeze({__proto__:null,Coinbase:W,TokenPocket:R,Trust:U,ImToken:G,Math:K,GameStop:q,Brave:$,Huobi:Y,Coin98:X}),Q={type:w.WalletLink,showName:"Coinbase Wallet",logo:g,supportMobile:!0,disabled:function(){return!(!window.ethereum||!window.ethereum.isWalletLink&&!window.ethereum.isToshi&&document&&L())},connector:T},ee={type:w.BinanceChain,showName:"Binance Chain Wallet",logo:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%227.5in%22%20height%3D%227.5in%22%20version%3D%221.1%22%20style%3D%22shape-rendering%3AgeometricPrecision%3B%20text-rendering%3AgeometricPrecision%3B%20image-rendering%3AoptimizeQuality%3B%20fill-rule%3Aevenodd%3B%20clip-rule%3Aevenodd%22%20viewBox%3D%220%200%207500%207500%22%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%20%20%20%20%20%20%20%20%20%20%20%20.fil0%20%7Bfill%3Anone%7D%20%20%20%20%20%20%20%20%20%20%20%20.fil1%20%7Bfill%3A%234D4D4D%7D%20%20%20%20%20%20%20%20%20%20%20%20.fil2%20%7Bfill%3A%23F3BA2F%7D%20%20%20%20%20%20%20%20%3C%2Fstyle%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22Layer_x0020_1%22%3E%20%20%20%20%20%20%20%20%3Cmetadata%20id%3D%22CorelCorpID_0Corel-Layer%22%2F%3E%20%20%20%20%20%20%20%20%3Crect%20class%3D%22fil0%22%20width%3D%227500%22%20height%3D%227500%22%2F%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22_2419820813232%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Ccircle%20class%3D%22fil1%22%20cx%3D%223750%22%20cy%3D%223750%22%20r%3D%223500%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20class%3D%22fil2%22%20d%3D%22M2779%203351l971%20-971%20971%20972%20565%20-565%20-1536%20-1537%20-1536%201536%20565%20565%200%200zm-1529%20399l565%20-565%20565%20565%20-565%20565%20-565%20-565zm1529%20399l971%20971%20971%20-972%20566%20565%200%200%20-1537%201537%20-1536%20-1536%20-1%20-1%20566%20-564%200%200zm2341%20-399l565%20-565%20565%20565%20-565%20565%20-565%20-565z%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20class%3D%22fil2%22%20d%3D%22M4380%203750l0%200%20-630%20-632%20-466%20467%200%200%20-54%2054%20-111%20111%20-1%201%201%201%20630%20630%20631%20-631%200%200%200%200%200%20-1zm0%200l0%200%200%200z%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3Cstyle%20xmlns%3D%22%22%3E%23yddContainer%7Bdisplay%3Ablock%3Bfont-family%3AMicrosoft%20YaHei%3Bposition%3Arelative%3Bwidth%3A100%25%3Bheight%3A100%25%3Btop%3A-4px%3Bleft%3A-4px%3Bfont-size%3A12px%3Bborder%3A1px%20solid%7D%23yddTop%7Bdisplay%3Ablock%3Bheight%3A22px%7D%23yddTopBorderlr%7Bdisplay%3Ablock%3Bposition%3Astatic%3Bheight%3A17px%3Bpadding%3A2px%2028px%3Bline-height%3A17px%3Bfont-size%3A12px%3Bcolor%3A%235079bb%3Bfont-weight%3Abold%3Bborder-style%3Anone%20solid%3Bborder-width%3A1px%7D%23yddTopBorderlr%20.ydd-sp%7Bposition%3Aabsolute%3Btop%3A2px%3Bheight%3A0%3Boverflow%3Ahidden%7D.ydd-icon%7Bleft%3A5px%3Bwidth%3A17px%3Bpadding%3A0px%200px%200px%200px%3Bpadding-top%3A17px%3Bbackground-position%3A-16px%20-44px%7D.ydd-close%7Bright%3A5px%3Bwidth%3A16px%3Bpadding-top%3A16px%3Bbackground-position%3Aleft%20-44px%7D%23yddKeyTitle%7Bfloat%3Aleft%3Btext-decoration%3Anone%7D%23yddMiddle%7Bdisplay%3Ablock%3Bmargin-bottom%3A10px%7D.ydd-tabs%7Bdisplay%3Ablock%3Bmargin%3A5px%200%3Bpadding%3A0%205px%3Bheight%3A18px%3Bborder-bottom%3A1px%20solid%7D.ydd-tab%7Bdisplay%3Ablock%3Bfloat%3Aleft%3Bheight%3A18px%3Bmargin%3A0%205px%20-1px%200%3Bpadding%3A0%204px%3Bline-height%3A18px%3Bborder%3A1px%20solid%3Bborder-bottom%3Anone%7D.ydd-trans-container%7Bdisplay%3Ablock%3Bline-height%3A160%25%7D.ydd-trans-container%20a%7Btext-decoration%3Anone%3B%7D%23yddBottom%7Bposition%3Aabsolute%3Bbottom%3A0%3Bleft%3A0%3Bwidth%3A100%25%3Bheight%3A22px%3Bline-height%3A22px%3Boverflow%3Ahidden%3Bbackground-position%3Aleft%20-22px%7D.ydd-padding010%7Bpadding%3A0%2010px%7D%23yddWrapper%7Bcolor%3A%23252525%3Bz-index%3A10001%3Bbackground%3Aurl%28chrome-extension%3A%2F%2Feopjamdnofihpioajgfdikhhbobonhbb%2Fab20.png%29%3B%7D%23yddContainer%7Bbackground%3A%23fff%3Bborder-color%3A%234b7598%7D%23yddTopBorderlr%7Bborder-color%3A%23f0f8fc%7D%23yddWrapper%20.ydd-sp%7Bbackground-image%3Aurl%28chrome-extension%3A%2F%2Feopjamdnofihpioajgfdikhhbobonhbb%2Fydd-sprite.png%29%7D%23yddWrapper%20a%2C%23yddWrapper%20a%3Ahover%2C%23yddWrapper%20a%3Avisited%7Bcolor%3A%2350799b%7D%23yddWrapper%20.ydd-tabs%7Bcolor%3A%23959595%7D.ydd-tabs%2C.ydd-tab%7Bbackground%3A%23fff%3Bborder-color%3A%23d5e7f3%7D%23yddBottom%7Bcolor%3A%23363636%7D%23yddWrapper%7Bmin-width%3A250px%3Bmax-width%3A400px%3B%7D%3C%2Fstyle%3E%3C%2Fsvg%3E",supportChains:[D.MAINNET,D.BSC],link:"https://www.bnbchain.world/en/binance-wallet",supportMobile:!1,disabled:function(){return!window.BinanceChain},connector:function(e,t){return E(window.BinanceChain,t)}},te={type:w.kuCoinWallet,showName:"KuCoin Wallet",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0_5313_179352%29%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M16.0028%2026.7602L5.24537%2016.0028L16.0028%205.24537L26.7602%2016.0028L16.0028%2026.7602ZM16.0028%2013.0046C14.3521%2013.0046%2013.0046%2014.3465%2013.0046%2016.0028C13.0046%2017.6591%2014.3465%2019.001%2016.0028%2019.001C17.6591%2019.001%2019.001%2017.6591%2019.001%2016.0028C19.001%2014.3465%2017.6591%2013.0046%2016.0028%2013.0046ZM0.635845%2014.4644C-0.211948%2015.3122%20-0.211948%2016.6934%200.635845%2017.5356L14.4644%2031.3642C15.3122%2032.2119%2016.6934%2032.2119%2017.5356%2031.3642L31.3642%2017.5356C32.2119%2016.6878%2032.2119%2015.3066%2031.3642%2014.4644L17.5356%200.635845C16.6878%20-0.211948%2015.3066%20-0.211948%2014.4644%200.635845L0.635845%2014.4644Z%22%20fill%3D%22%2328CD96%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_5313_179352%22%3E%3Crect%20width%3D%2232%22%20height%3D%2232%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",supportMobile:!0,disabled:function(){return!window.kucoin},connector:function(e,t){return E(window.kucoin,t)},switchChain:F,link:"https://kuwallet.com/"},ne={type:w.frontier,showName:"Frontier",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M32%2016C32%207.16344%2024.8366%200%2016%200C7.16344%200%200%207.16344%200%2016C0%2024.8366%207.16344%2032%2016%2032C24.8366%2032%2032%2024.8366%2032%2016Z%22%20fill%3D%22%23CC703C%22%2F%3E%3Cpath%20d%3D%22M23.3502%208L23.2615%208.23476L22.971%208.9853L22.778%209.46909C21.3121%2013.0968%2020.1721%2014.8183%2018.9598%2014.8183C18.6535%2014.8264%2018.3488%2014.7706%2018.0652%2014.6546C17.7816%2014.5385%2017.5253%2014.3646%2017.3127%2014.1441L17.158%2014.0038C16.773%2013.6485%2016.611%2013.5609%2016.2402%2013.5609C16.0472%2013.5609%2015.7015%2013.807%2015.2647%2014.3853C14.6796%2015.214%2014.182%2016.1012%2013.7801%2017.0326L13.7308%2017.1418H18.9308L18.2832%2018.4879H13.428V24H12V8H23.3502ZM21.3268%209.34359H13.428V14.6751C14.3744%2013.0338%2015.2741%2012.2099%2016.2417%2012.2099C16.5671%2012.1995%2016.8911%2012.2568%2017.1932%2012.3781C17.4953%2012.4994%2017.7689%2012.6821%2017.9966%2012.9147L18.1562%2013.0594C18.5156%2013.3911%2018.654%2013.4674%2018.9612%2013.4674C19.2991%2013.4679%2020.1977%2012.0406%2021.3268%209.34359Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E",link:"https://www.frontier.xyz/download",disabled:function(){var e;return!(null===(e=window.frontier)||void 0===e?void 0:e.ethereum)},connector:function(e,t){var n;return E(null===(n=window.frontier)||void 0===n?void 0:n.ethereum,t)}},oe={type:w.LedgerUSB,showName:"Ledger",logo:"data:image/svg+xml,%3Csvg%20width%3D%22146%22%20height%3D%22128%22%20viewBox%3D%220%200%20146%20128%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M90.262%20119.94V127.998H145.57V91.6548H137.511V119.94H90.262ZM90.262%200V8.05844H137.511V36.3452H145.57V0H90.262ZM63.4464%2036.3452H55.3879V91.6529H91.7332V84.3842H63.4464V36.3452ZM0%2091.6548V128H55.3076V119.94H8.05844V91.6548H0ZM0%200V36.3452H8.05844V8.05844H55.3076V0H0Z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E",supportChains:[D.MAINNET,D.BSC,D.POLYGON],disabled:function(){return!A()},connector:function(e){return c(void 0,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return A()&&e?[4,I()]:[3,2];case 1:return t=n.sent().default(e),[3,3];case 2:t=void 0,n.label=3;case 3:return[2,t]}}))}))}},ie={type:w.openBlock,showName:"OpenBlock",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M22.4526%204.41003C27.117%204.41003%2030.8983%208.19129%2030.8983%2012.8557V13.0548L27.9485%2016.0021L30.8983%2018.9466V19.1486C30.8983%2023.813%2027.117%2027.5943%2022.4526%2027.5943H1.08997L7.91802%2022.6262H19.3062C22.9645%2022.6262%2025.9302%2019.6605%2025.9302%2016.0021C25.9302%2012.3438%2022.9645%209.37809%2019.3062%209.37809H7.91802L1.08997%204.41003H22.4526ZM9.50802%2013.1867C7.95322%2013.1867%206.69279%2014.4472%206.69279%2016.002C6.69279%2017.5568%207.95319%2018.8172%209.50802%2018.8172H19.316C20.8708%2018.8172%2022.1312%2017.5568%2022.1312%2016.002C22.1312%2014.4472%2020.8708%2013.1867%2019.316%2013.1867H9.50802Z%22%20fill%3D%22%234A3DE6%22%2F%3E%3C%2Fsvg%3E",supportChains:[D.MAINNET,D.GOERLI,D.BSC,D.POLYGON,D.HECO,D.ARBITRUM_ONE,D.OKCHAIN,D.OPTIMISM,D.AVALANCHE],disabled:function(){return!window.openblock},connector:function(e,t){return E(window.openblock,t)},switchChain:F},re={type:w.OneKey,showName:"OneKey",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0_3105_80246%29%22%3E%3Cpath%20d%3D%22M32%2016C32%2027.0458%2027.0458%2032%2016%2032C4.95431%2032%200%2027.0458%200%2016C0%204.95431%204.95431%200%2016%200C27.0458%200%2032%204.95431%2032%2016Z%22%20fill%3D%22%2344D62C%22%2F%3E%3Cpath%20d%3D%22M17.4456%206.78467H12.9945L12.2136%209.14578H14.6858V14.1196H17.4456V6.78467Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.0764%2020.1391C21.0764%2022.9426%2018.8035%2025.2153%2016%2025.2153C13.1964%2025.2153%2010.9238%2022.9426%2010.9238%2020.1391C10.9238%2017.3355%2013.1964%2015.0629%2016%2015.0629C18.8035%2015.0629%2021.0764%2017.3355%2021.0764%2020.1391ZM18.7718%2020.1391C18.7718%2021.67%2017.5309%2022.9109%2016%2022.9109C14.4693%2022.9109%2013.2284%2021.67%2013.2284%2020.1391C13.2284%2018.6084%2014.4693%2017.3673%2016%2017.3673C17.5309%2017.3673%2018.7718%2018.6084%2018.7718%2020.1391Z%22%20fill%3D%22black%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_3105_80246%22%3E%3Crect%20width%3D%2232%22%20height%3D%2232%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",link:"https://onekey.so",supportMobile:!0,disabled:function(){var e;return!(null===(e=window.$onekey)||void 0===e?void 0:e.ethereum)&&!window.onekey},connector:function(e,t){var n;return E((null===(n=window.$onekey)||void 0===n?void 0:n.ethereum)||window.onekey,t)},switchChain:F},ae={type:w.Bitkeep,showName:"Bitkeep",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M32%2016C32%207.16344%2024.8366%200%2016%200C7.16344%200%200%207.16344%200%2016C0%2024.8366%207.16344%2032%2016%2032C24.8366%2032%2032%2024.8366%2032%2016Z%22%20fill%3D%22%237524F9%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M25.5%2011.4007V12.4551C25.5003%2012.5571%2025.4733%2012.6573%2025.4218%2012.7457C25.3703%2012.834%2025.2963%2012.9074%2025.207%2012.9584L21.7727%2014.92L24.8408%2016.6677C25.0413%2016.7824%2025.2078%2016.9473%2025.3235%2017.1459C25.4393%2017.3445%2025.5003%2017.5698%2025.5%2017.799V20.6106C25.5003%2020.84%2025.4395%2021.0654%2025.3238%2021.2642C25.208%2021.4629%2025.0415%2021.6279%2024.8408%2021.7426L16.7717%2026.325C16.5713%2026.4398%2016.344%2026.5%2016.1126%2026.5C15.8811%2026.5%2015.6538%2026.4398%2015.4534%2026.325L12.813%2024.8153C12.7684%2024.7898%2012.7314%2024.7532%2012.7057%2024.7091C12.68%2024.665%2012.6664%2024.6149%2012.6664%2024.564C12.6664%2024.513%2012.68%2024.463%2012.7057%2024.4189C12.7314%2024.3748%2012.7684%2024.3382%2012.813%2024.3127L21.5288%2019.3459C21.551%2019.3331%2021.5694%2019.3148%2021.5823%2019.2928C21.5951%2019.2708%2021.6018%2019.2458%2021.6018%2019.2204C21.6018%2019.195%2021.5951%2019.1701%2021.5823%2019.148C21.5694%2019.126%2021.551%2019.1077%2021.5288%2019.0949L18.293%2017.2443C18.2039%2017.1933%2018.1029%2017.1665%2018%2017.1665C17.8972%2017.1665%2017.7961%2017.1933%2017.707%2017.2443L8.85425%2022.2931C8.78745%2022.3313%208.71168%2022.3514%208.63453%2022.3514C8.55738%2022.3514%208.4816%2022.3313%208.4148%2022.2931L7.4121%2021.7252C7.2106%2021.6107%207.04323%2021.4455%206.92695%2021.2463C6.81068%2021.0471%206.74963%2020.8211%206.75%2020.591V19.4416C6.74995%2019.3652%206.77023%2019.2901%206.8088%2019.2239C6.84738%2019.1577%206.90288%2019.1027%206.96973%2019.0645L19.6626%2011.8423C19.6848%2011.8296%2019.7032%2011.8113%2019.716%2011.7893C19.7289%2011.7672%2019.7356%2011.7423%2019.7356%2011.7169C19.7356%2011.6915%2019.7289%2011.6665%2019.716%2011.6445C19.7032%2011.6224%2019.6848%2011.6042%2019.6626%2011.5914L16.4216%209.73417C16.3326%209.68327%2016.2315%209.65645%2016.1287%209.65645C16.0258%209.65645%2015.9248%209.68327%2015.8357%209.73417L7.18945%2014.6575C7.14495%2014.683%207.09445%2014.6963%207.04305%2014.6964C6.99165%2014.6964%206.94115%2014.683%206.89663%2014.6576C6.8521%2014.6321%206.8151%2014.5956%206.78938%2014.5515C6.76363%2014.5075%206.75005%2014.4575%206.75%2014.4066V11.3869C6.74973%2011.1575%206.8105%2010.9321%206.92623%2010.7333C7.04195%2010.5346%207.20853%2010.3696%207.40918%2010.2549L15.4768%205.67385C15.6768%205.55995%2015.9035%205.5%2016.1342%205.5C16.3649%205.5%2016.5915%205.55995%2016.7915%205.67385L24.8408%2010.2708C25.0413%2010.3854%2025.2075%2010.55%2025.3233%2010.7484C25.439%2010.9467%2025.5%2011.1716%2025.5%2011.4007Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E",link:"https://bitkeep.com/download?type=2",mobileDeepLink:"https://bkcode.vip?action=dapp&url=$APP_URL",supportMobile:!0,disabled:function(){var e;return!(null===(e=window.bitkeep)||void 0===e?void 0:e.ethereum)},connector:function(e,t){var n;return E(null===(n=window.bitkeep)||void 0===n?void 0:n.ethereum,t)},switchChain:F},le={type:w.Nabox,showName:"Nabox",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M2%208.98682V23.8908L6.31535%2026.3785V15.717L10.6153%2018.2006V28.8551L14.932%2031.3428V16.4374L2%208.98682Z%22%20fill%3D%22%232AC98B%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.8024%207.62299L16.1261%205.089L21.4983%208.23266L17.1773%2010.7554L11.8024%207.62299ZM16.1317%200L3.09741%207.62579L17.1535%2015.8669V32L21.417%2029.5165V13.1955L25.7253%2010.6727V26.9797L30.0519%2024.4331V8.14436L16.1317%200Z%22%20fill%3D%22%232AC98B%22%2F%3E%3C%2Fsvg%3E",link:"https://nabox.io/",supportMobile:!0,disabled:function(){return!window.NaboxWallet},connector:function(e,t){return E(window.NaboxWallet,t)},switchChain:F},ce={type:w.OKX,showName:"OKX Wallet",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0_1443_44689%29%22%3E%3Cpath%20d%3D%22M21%200H11C4.92487%200%200%204.92487%200%2011V21C0%2027.0751%204.92487%2032%2011%2032H21C27.0751%2032%2032%2027.0751%2032%2021V11C32%204.92487%2027.0751%200%2021%200Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M12.6063%206.99255H7.39351C7.17207%206.99255%206.99255%207.17207%206.99255%207.39351V12.6063C6.99255%2012.8278%207.17207%2013.0073%207.39351%2013.0073H12.6063C12.8278%2013.0073%2013.0073%2012.8278%2013.0073%2012.6063V7.39351C13.0073%207.17207%2012.8278%206.99255%2012.6063%206.99255ZM18.6237%2013.0073H13.4109C13.1895%2013.0073%2013.0099%2013.1869%2013.0099%2013.4083V18.6211C13.0099%2018.8426%2013.1895%2019.0221%2013.4109%2019.0221H18.6237C18.8452%2019.0221%2019.0247%2018.8426%2019.0247%2018.6211V13.4083C19.0247%2013.1869%2018.8452%2013.0073%2018.6237%2013.0073ZM19.4231%206.99255H24.6359C24.8574%206.99255%2025.0369%207.17207%2025.0369%207.39351V12.6063C25.0369%2012.8278%2024.8574%2013.0073%2024.6359%2013.0073H19.4231C19.2016%2013.0073%2019.0221%2012.8278%2019.0221%2012.6063V7.39351C19.0221%207.17207%2019.2016%206.99255%2019.4231%206.99255ZM12.6063%2019.0221H7.39351C7.17207%2019.0221%206.99255%2019.2016%206.99255%2019.4231V24.6359C6.99255%2024.8574%207.17207%2025.0369%207.39351%2025.0369H12.6063C12.8278%2025.0369%2013.0073%2024.8574%2013.0073%2024.6359V19.4231C13.0073%2019.2016%2012.8278%2019.0221%2012.6063%2019.0221ZM19.4231%2019.0221H24.6359C24.8574%2019.0221%2025.0369%2019.2016%2025.0369%2019.4231V24.6359C25.0369%2024.8574%2024.8574%2025.0369%2024.6359%2025.0369H19.4231C19.2016%2025.0369%2019.0221%2024.8574%2019.0221%2024.6359V19.4231C19.0221%2019.2016%2019.2016%2019.0221%2019.4231%2019.0221Z%22%20fill%3D%22white%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_1443_44689%22%3E%3Crect%20width%3D%2232%22%20height%3D%2232%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",supportMobile:!1,link:"https://www.okx.com/",disabled:function(){return!window.okxwallet},connector:function(e,t){return E(window.okxwallet,t)},switchChain:F},se={type:w.WalletConnect,showName:"WalletConnect",logo:"data:image/svg+xml,%3Csvg%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3CradialGradient%20id%3D%22a%22%20cx%3D%220%25%22%20cy%3D%2250%25%22%20r%3D%22100%25%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%235d9df6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23006fff%22%2F%3E%3C%2FradialGradient%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Cpath%20d%3D%22m256%200c141.384896%200%20256%20114.615104%20256%20256s-114.615104%20256-256%20256-256-114.615104-256-256%20114.615104-256%20256-256z%22%20fill%3D%22url%28%23a%29%22%2F%3E%3Cpath%20d%3D%22m64.6917558%2037.7088298c51.5328072-50.2784397%20135.0839942-50.2784397%20186.6167992%200l6.202057%206.0510906c2.57664%202.5139218%202.57664%206.5897948%200%209.1037177l-21.215998%2020.6995759c-1.288321%201.2569619-3.3771%201.2569619-4.665421%200l-8.534766-8.3270205c-35.950573-35.0754962-94.237969-35.0754962-130.188544%200l-9.1400282%208.9175519c-1.2883217%201.2569609-3.3771016%201.2569609-4.6654208%200l-21.2159973-20.6995759c-2.5766403-2.5139229-2.5766403-6.5897958%200-9.1037177zm230.4934852%2042.8089117%2018.882279%2018.4227262c2.576627%202.5139103%202.576642%206.5897593.000032%209.1036863l-85.141498%2083.070358c-2.576623%202.513941-6.754182%202.513969-9.33084.000066-.00001-.00001-.000023-.000023-.000033-.000034l-60.428256-58.957451c-.64416-.628481-1.68855-.628481-2.33271%200-.000004.000004-.000008.000007-.000012.000011l-60.4269683%2058.957408c-2.5766141%202.513947-6.7541746%202.51399-9.3308408.000092-.0000151-.000014-.0000309-.000029-.0000467-.000046l-85.14386774-83.071463c-2.57663928-2.513921-2.57663928-6.589795%200-9.1037163l18.88231264-18.4226955c2.5766393-2.5139222%206.7541993-2.5139222%209.3308397%200l60.4291347%2058.9582758c.6441608.62848%201.6885495.62848%202.3327103%200%20.0000095-.000009.0000182-.000018.0000277-.000025l60.4261065-58.9582508c2.576581-2.51398%206.754142-2.5140743%209.33084-.0002103.000037.0000354.000072.0000709.000107.0001063l60.429056%2058.9583548c.644159.628479%201.688549.628479%202.332709%200l60.428079-58.9571925c2.57664-2.5139231%206.754199-2.5139231%209.330839%200z%22%20fill%3D%22%23fff%22%20fill-rule%3D%22nonzero%22%20transform%3D%22translate%2898%20160%29%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",supportMobile:!0,connector:function(e,t){return j(e,t)}},de={type:w.Portis,showName:"Portis",logo:"data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%20301.38%20455.87%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m4.45%20262.11%2010.93-4.75%20135.31-58.82%20146.24%2063.57-54.95%20113.43-134.33%2019-101-109z%22%20fill%3D%22%23133444%22%2F%3E%3Cpath%20d%3D%22m266.51%20192.16a150.43%20150.43%200%200%200%20-95.82-53q-1.2-.17-2.4-.3a152.36%20152.36%200%200%200%20-35.2%200q-1.2.14-2.4.3a150.43%20150.43%200%200%200%20-95.82%2053l-6.08%2010.08-10.13%2016.76-7.41%2012.31c-.14.33-.28.67-.41%201l-.09.23%2016.35%209.67%20103.6%2061.28%2020%2011.83v-146.47l-20%209.08v-21.93l20-9.09%2020%209.09%20101.9%2046.28z%22%20fill%3D%22%23c42370%22%2F%3E%3Cpath%20d%3D%22m301.38%20298.56c0%2048.78-23.18%2094.42-59.12%20123.84a149.45%20149.45%200%200%201%20-47.64%2026.37%20139.51%20139.51%200%200%201%20-43.93%207.1c-83.22%200-150.69-74.09-150.69-157.31a150.49%20150.49%200%200%201%204.45-36.45l146.24%2086.51%20146.24-86.51a150.49%20150.49%200%200%201%204.45%2036.45z%22%20fill%3D%22%231c4d6b%22%2F%3E%3Cpath%20d%3D%22m133.09%20138.89%2017.6%207.99-20%209.09v-18.17z%22%2F%3E%3Cpath%20d%3D%22m130.69%20177.93%2020-9.08v146.53l-20-11.83z%22%2F%3E%3Cpath%20d%3D%22m150.69%20168.85v146.53l140.13-82.89z%22%20fill%3D%22%231d4259%22%2F%3E%3Cpath%20d%3D%22m150.69%200v168.85l140.13%2063.64z%22%20fill%3D%22%234b6b9a%22%2F%3E%3Cpath%20d%3D%22m150.69%20168.85v146.53l-20-11.83-119.95-71-.18-.11.27-.12c.13-.33.27-.67.41-1l17.53-29.09%20101.92-46.23v22z%22%20fill%3D%22%23343535%22%2F%3E%3Cpath%20d%3D%22m150.69%20168.85v146.53l-20-11.83-119.95-70.95-.18-.11.27-.12%20119.86-54.44z%22%20fill%3D%22%233e5578%22%2F%3E%3Cpath%20d%3D%22m150.69%200v168.85l-140.13%2063.64z%22%20fill%3D%22%236db2d8%22%2F%3E%3Cg%20fill%3D%22%23335f8a%22%3E%3Cpath%20d%3D%22m94%20443.85c2.09.92%204.21%201.79%206.34%202.61q-3.26-1.23-6.34-2.61z%22%2F%3E%3Cpath%20d%3D%22m100.29%20446.46c2.14.82%204.29%201.59%206.47%202.31q-3.27-1.07-6.47-2.31z%22%2F%3E%3Cpath%20d%3D%22m112.33%20450.49c1.66.47%203.33.92%205%201.33q-2.51-.62-5-1.33z%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22m4.45%20262.11%20146.24%2086.51a167.48%20167.48%200%200%201%20-10.47%2038.38c-11.7%2028.28-35.34%2058.19-81.08%2035.44-35.96-29.44-59.14-75.1-59.14-123.88a150.49%20150.49%200%200%201%204.45-36.45z%22%20fill%3D%22%236db2d8%22%2F%3E%3Cpath%20d%3D%22m242.24%20422.41-.36.29c-.76.62-1.52%201.23-2.29%201.83l-.2.16q-1.25%201-2.52%201.92c-.91.68-1.83%201.36-2.76%202s-1.86%201.31-2.8%201.95-1.66%201.12-2.49%201.66l-.46.3c-.88.57-1.76%201.13-2.64%201.67a2.63%202.63%200%200%201%20-.33.2c-.91.57-1.82%201.12-2.74%201.65s-2%201.15-3%201.7-2%201.08-3%201.6l-.11.06c-1%20.52-2%201-3%201.52s-2%201-3.08%201.49-2.08%201-3.12%201.42c-2.09.92-4.21%201.79-6.34%202.61s-4.29%201.59-6.47%202.31c-.87.29-1.74.57-2.62.84s-2%20.6-2.95.88c-1.66.47-3.33.92-5%201.33-.63.16-1.27.31-1.91.45l-1.07.25c-.89.2-1.78.39-2.68.57s-1.64.33-2.47.48-1.51.28-2.27.4-1.68.27-2.52.39c-.41.07-.82.13-1.24.18l-1.89.25-1.05.13c-.69.09-1.39.16-2.09.23-.86.09-1.71.17-2.57.24-.67.05-1.34.11-2%20.15s-1.16.08-1.75.1h-.08c-.68%200-1.36.08-2%20.1-.94%200-1.89.07-2.84.09s-1.9%200-2.86%200-1.91%200-2.86%200-1.9%200-2.84-.09c-.69%200-1.37-.06-2.05-.1h-.08c-.59%200-1.17-.06-1.75-.1s-1.34-.1-2-.15c-.86-.07-1.71-.15-2.57-.24-.7-.07-1.4-.14-2.09-.23l-1-.13c-.63-.07-1.26-.16-1.89-.25-.42%200-.83-.11-1.24-.18q-1.27-.18-2.52-.39c-.76-.12-1.52-.26-2.27-.4s-1.65-.31-2.47-.48-1.79-.37-2.68-.57l-1.07-.25c-.64-.14-1.28-.29-1.91-.45-1.68-.41-3.35-.86-5-1.33l-3-.88c-.88-.27-1.75-.55-2.62-.84-2.18-.72-4.33-1.49-6.47-2.31s-4.29-1.67-6.29-2.59c-1-.46-2.08-.94-3.12-1.42s-2.06-1-3.08-1.49-2-1-3-1.52l-.11-.06c-1-.52-2-1.06-3-1.6s-2-1.12-3-1.7-1.79-1.06-2.69-1.65l-.33-.2c-.88-.54-1.76-1.1-2.64-1.67l-.46-.3c-.83-.54-1.67-1.1-2.49-1.66s-1.88-1.29-2.8-1.95-1.85-1.34-2.76-2-1.69-1.27-2.52-1.92l-.2-.16c-.77-.6-1.53-1.21-2.29-1.83l-.36-.29c45.74%2022.75%2069.38-7.16%2081.08-35.44a167.48%20167.48%200%200%200%2010.47-38.35%20167.47%20167.47%200%200%200%2010.46%2038.36c11.7%2028.25%2035.34%2058.16%2081.08%2035.41z%22%20fill%3D%22%23529bba%22%2F%3E%3Cpath%20d%3D%22m184%20451.82c1.68-.41%203.35-.86%205-1.33q-2.44.72-5%201.33z%22%20fill%3D%22%23335f8a%22%2F%3E%3Cpath%20d%3D%22m194.62%20448.77c2.18-.72%204.33-1.49%206.47-2.31q-3.19%201.24-6.47%202.31z%22%20fill%3D%22%23335f8a%22%2F%3E%3Cpath%20d%3D%22m201.09%20446.46c2.13-.82%204.25-1.69%206.34-2.61q-3.13%201.38-6.34%202.61z%22%20fill%3D%22%23335f8a%22%2F%3E%3Cpath%20d%3D%22m301.38%20298.56c0%2048.78-23.19%2094.43-59.14%20123.85-45.74%2022.75-69.38-7.16-81.08-35.44a167.47%20167.47%200%200%201%20-10.47-38.35l146.24-86.51a150.49%20150.49%200%200%201%204.45%2036.45z%22%20fill%3D%22%234b6b9a%22%2F%3E%3C%2Fsvg%3E",supportChains:[D.MAINNET,D.GOERLI],checked:function(e){return!!e.PORTIS_ID},connector:function(e,t){return z(e,t)}},ue={type:w.Gnosis,showName:"Gnosis",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0_2721_64477%29%22%3E%3Cmask%20id%3D%22mask0_2721_64477%22%20style%3D%22mask-type%3Aluminance%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2232%22%20height%3D%2232%22%3E%3Cpath%20d%3D%22M16%2032C24.8366%2032%2032%2024.8366%2032%2016C32%207.16344%2024.8366%200%2016%200C7.16344%200%200%207.16344%200%2016C0%2024.8366%207.16344%2032%2016%2032Z%22%20fill%3D%22white%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_2721_64477%29%22%3E%3Cpath%20d%3D%22M32.064%20-2.60797H-1.53601V34.288H32.064V-2.60797Z%22%20fill%3D%22url%28%23paint0_linear_2721_64477%29%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M24.9623%2015.994H22.7763C22.1235%2015.994%2021.5946%2016.5233%2021.5946%2017.1757V20.3482C21.5946%2021.001%2021.0653%2021.53%2020.4128%2021.53H11.7162C11.0634%2021.53%2010.5344%2022.0593%2010.5344%2022.7117V24.8977C10.5344%2025.5505%2011.0637%2026.0794%2011.7162%2026.0794H20.9162C21.569%2026.0794%2022.0909%2025.5501%2022.0909%2024.8977V23.1441C22.0909%2022.4913%2022.6202%2022.0279%2023.2727%2022.0279H24.9623C25.6151%2022.0279%2026.144%2021.4986%2026.144%2020.8461V17.1617C26.144%2016.5089%2025.6147%2015.9937%2024.9623%2015.9937V15.994Z%22%20fill%3D%22%23121312%22%2F%3E%3Cpath%20d%3D%22M10.5338%2011.6515C10.5338%2010.9987%2011.0631%2010.4698%2011.7156%2010.4698H20.4068C21.0596%2010.4698%2021.5885%209.94051%2021.5885%209.28803V7.10211C21.5885%206.44931%2021.0593%205.92035%2020.4068%205.92035H11.2119C10.5591%205.92035%2010.0301%206.44963%2010.0301%207.10211V8.78627C10.0301%209.43907%209.50086%209.96803%208.84838%209.96803H7.16614C6.51334%209.96803%205.98438%2010.4973%205.98438%2011.1498V14.8381C5.98438%2015.4909%206.51558%2015.9933%207.16838%2015.9933H9.3543C10.0071%2015.9933%2010.5361%2015.464%2010.5361%2014.8115L10.5341%2011.6519L10.5338%2011.6515Z%22%20fill%3D%22%23121312%22%2F%3E%3Cpath%20d%3D%22M15.0352%2013.6964H17.1351C17.8192%2013.6964%2018.3747%2014.2519%2018.3747%2014.936V17.0359C18.3747%2017.72%2017.8192%2018.2755%2017.1351%2018.2755H15.0352C14.3511%2018.2755%2013.7955%2017.72%2013.7955%2017.0359V14.936C13.7955%2014.2519%2014.3511%2013.6964%2015.0352%2013.6964Z%22%20fill%3D%22%23121312%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_2721_64477%22%20x1%3D%22-0.47809%22%20y1%3D%2229.2685%22%20x2%3D%2237.0896%22%20y2%3D%22-2.77789%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%2312FF80%22%2F%3E%3Cstop%20offset%3D%220.13%22%20stop-color%3D%22%2315FD85%22%2F%3E%3Cstop%20offset%3D%220.29%22%20stop-color%3D%22%231FF896%22%2F%3E%3Cstop%20offset%3D%220.49%22%20stop-color%3D%22%2330F1B2%22%2F%3E%3Cstop%20offset%3D%220.69%22%20stop-color%3D%22%2348E7D9%22%2F%3E%3Cstop%20offset%3D%220.87%22%20stop-color%3D%22%235FDDFF%22%2F%3E%3C%2FlinearGradient%3E%3CclipPath%20id%3D%22clip0_2721_64477%22%3E%3Crect%20width%3D%2232%22%20height%3D%2232%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",supportChains:[D.MAINNET,D.GOERLI,D.BSC,D.POLYGON,D.ARBITRUM_ONE,D.AURORA,D.AVALANCHE,D.OPTIMISM],link:"https://app.safe.global/welcome",disabled:function(){return c(void 0,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,N()];case 1:return[4,e.sent().getIsSafe()];case 2:return[2,!e.sent()]}}))}))},connector:function(e,t){return c(void 0,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,N()];case 1:return[2,e.sent().default(t)]}}))}))}},Ce={type:w.uAuth,showName:"Unstoppable",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M32%202.47278V13.3668L0%2026.2392L32%202.47278Z%22%20fill%3D%22%2300C9FF%22%2F%3E%3Cpath%20d%3D%22M26.001%202V20.7929C26.001%2023.4191%2024.9474%2025.9378%2023.0719%2027.7948C21.1964%2029.6519%2018.6527%2030.6951%2016.0004%2030.6951C13.3481%2030.6951%2010.8044%2029.6519%208.92887%2027.7948C7.05339%2025.9378%205.99976%2023.4191%205.99976%2020.7929V12.8741L11.9991%209.60487V20.7929C11.943%2021.2811%2011.9916%2021.7757%2012.1418%2022.244C12.2922%2022.7124%2012.5406%2023.144%2012.8711%2023.5107C13.2016%2023.8773%2013.6066%2024.1707%2014.0596%2024.3715C14.5126%2024.5724%2015.0033%2024.6763%2015.4996%2024.6763C15.9959%2024.6763%2016.4866%2024.5724%2016.9396%2024.3715C17.3925%2024.1707%2017.7976%2023.8773%2018.128%2023.5107C18.4585%2023.144%2018.7071%2022.7124%2018.8573%2022.244C19.0076%2021.7757%2019.0563%2021.2811%2019%2020.7929V5.79246L26.001%202Z%22%20fill%3D%22%230D67FE%22%2F%3E%3C%2Fsvg%3E",connector:function(e,t){return c(void 0,void 0,void 0,(function(){var n;return s(this,(function(o){switch(o.label){case 0:return[4,Z()];case 1:return[2,o.sent().default(l(l({},e),{uAuthParams:l(l({walletConnect:function(){return se.connector?se.connector(e,t):Promise.resolve(void 0)}},e.uAuthParams),{clientID:null===(n=e.uAuthParams)||void 0===n?void 0:n.clientID})}),t)]}}))}))},disconnect:function(){return c(void 0,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,Z()];case 1:return[4,(0,e.sent().disconnectWallet)()];case 2:return e.sent(),[2]}}))}))}},pe=Object.freeze({__proto__:null,WalletLink:Q,BSC:ee,KuCoin:te,Frontier:ne,Ledger:oe,OpenBlock:ie,OneKey:re,Bitkeep:ae,Nabox:le,OKXWallet:ce,WalletConnect:se,Portis:de,Gnosis:ue,UAuth:Ce}),fe={type:w.injected,showName:"MetaMask",link:"https://metamask.io",logo:"data:image/svg+xml,%3Csvg%20height%3D%22355%22%20viewBox%3D%220%200%20397%20355%22%20width%3D%22397%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%20transform%3D%22translate%28-1%20-1%29%22%3E%3Cpath%20d%3D%22m114.622644%20327.195472%2052.004717%2013.810198v-18.05949l4.245283-4.249292h29.716982v21.246459%2014.872523h-31.839624l-39.268868-16.997169z%22%20fill%3D%22%23cdbdb2%22%2F%3E%3Cpath%20d%3D%22m199.528305%20327.195472%2050.943397%2013.810198v-18.05949l4.245283-4.249292h29.716981v21.246459%2014.872523h-31.839623l-39.268868-16.997169z%22%20fill%3D%22%23cdbdb2%22%20transform%3D%22matrix%28-1%200%200%201%20483.96227%200%29%22%2F%3E%3Cpath%20d%3D%22m170.872644%20287.889523-4.245283%2035.056657%205.306604-4.249292h55.18868l6.367925%204.249292-4.245284-35.056657-8.490565-5.311615-42.452832%201.062323z%22%20fill%3D%22%23393939%22%2F%3E%3Cpath%20d%3D%22m142.216984%2050.9915022%2025.471698%2059.4900858%2011.674528%20173.158643h41.391511l12.735849-173.158643%2023.349056-59.4900858z%22%20fill%3D%22%23f89c35%22%2F%3E%3Cpath%20d%3D%22m30.7783023%20181.657226-29.71698153%2086.048161%2074.29245393-4.249293h47.7594343v-37.181303l-2.122641-76.487253-10.613208%208.498583z%22%20fill%3D%22%23f89d35%22%2F%3E%3Cpath%20d%3D%22m87.0283032%20191.218134%2087.0283028%202.124646-9.551886%2044.617563-41.391511-10.623229z%22%20fill%3D%22%23d87c30%22%2F%3E%3Cpath%20d%3D%22m87.0283032%20192.280457%2036.0849058%2033.994334v33.994334z%22%20fill%3D%22%23ea8d3a%22%2F%3E%3Cpath%20d%3D%22m123.113209%20227.337114%2042.452831%2010.623229%2013.79717%2045.679888-9.551886%205.311615-46.698115-27.620398z%22%20fill%3D%22%23f89d35%22%2F%3E%3Cpath%20d%3D%22m123.113209%20261.331448-8.490565%2065.864024%2056.25-39.305949z%22%20fill%3D%22%23eb8f35%22%2F%3E%3Cpath%20d%3D%22m174.056606%20193.34278%205.306604%2090.297451-15.919812-46.211049z%22%20fill%3D%22%23ea8e3a%22%2F%3E%3Cpath%20d%3D%22m74.2924539%20262.393771%2048.8207551-1.062323-8.490565%2065.864024z%22%20fill%3D%22%23d87c30%22%2F%3E%3Cpath%20d%3D%22m24.4103777%20355.878193%2090.2122663-28.682721-40.3301901-64.801701-73.23113313%205.311616z%22%20fill%3D%22%23eb8f35%22%2F%3E%3Cpath%20d%3D%22m167.688682%20110.481588-45.636793%2038.243627-35.0235858%2042.492919%2087.0283028%203.186969z%22%20fill%3D%22%23e8821e%22%2F%3E%3Cpath%20d%3D%22m114.622644%20327.195472%2056.25-39.305949-4.245283%2033.994334v19.121813l-38.207548-7.43626z%22%20fill%3D%22%23dfcec3%22%2F%3E%3Cpath%20d%3D%22m229.245286%20327.195472%2055.18868-39.305949-4.245283%2033.994334v19.121813l-38.207548-7.43626z%22%20fill%3D%22%23dfcec3%22%20transform%3D%22matrix%28-1%200%200%201%20513.679252%200%29%22%2F%3E%3Cpath%20d%3D%22m132.665096%20212.464593-11.674528%2024.433427%2041.39151-10.623229z%22%20fill%3D%22%23393939%22%20transform%3D%22matrix%28-1%200%200%201%20283.372646%200%29%22%2F%3E%3Cpath%20d%3D%22m23.349057%201.06232296%20144.339625%20109.41926504-24.410378-59.4900858z%22%20fill%3D%22%23e88f35%22%2F%3E%3Cpath%20d%3D%22m23.349057%201.06232296-19.10377392%2058.42776294%2010.61320772%2063.7393781-7.42924541%204.249292%2010.61320771%209.560906-8.49056617%207.436261%2011.67452847%2010.623229-7.4292454%206.373938%2016.9811323%2021.246459%2079.5990577-24.433428c38.915096-31.161473%2058.018869-47.096318%2057.311322-47.804533-.707548-.708215-48.820756-37.1813036-144.339625-109.41926504z%22%20fill%3D%22%238e5a30%22%2F%3E%3Cg%20transform%3D%22matrix%28-1%200%200%201%20399.056611%200%29%22%3E%3Cpath%20d%3D%22m30.7783023%20181.657226-29.71698153%2086.048161%2074.29245393-4.249293h47.7594343v-37.181303l-2.122641-76.487253-10.613208%208.498583z%22%20fill%3D%22%23f89d35%22%2F%3E%3Cpath%20d%3D%22m87.0283032%20191.218134%2087.0283028%202.124646-9.551886%2044.617563-41.391511-10.623229z%22%20fill%3D%22%23d87c30%22%2F%3E%3Cpath%20d%3D%22m87.0283032%20192.280457%2036.0849058%2033.994334v33.994334z%22%20fill%3D%22%23ea8d3a%22%2F%3E%3Cpath%20d%3D%22m123.113209%20227.337114%2042.452831%2010.623229%2013.79717%2045.679888-9.551886%205.311615-46.698115-27.620398z%22%20fill%3D%22%23f89d35%22%2F%3E%3Cpath%20d%3D%22m123.113209%20261.331448-8.490565%2065.864024%2055.18868-38.243626z%22%20fill%3D%22%23eb8f35%22%2F%3E%3Cpath%20d%3D%22m174.056606%20193.34278%205.306604%2090.297451-15.919812-46.211049z%22%20fill%3D%22%23ea8e3a%22%2F%3E%3Cpath%20d%3D%22m74.2924539%20262.393771%2048.8207551-1.062323-8.490565%2065.864024z%22%20fill%3D%22%23d87c30%22%2F%3E%3Cpath%20d%3D%22m24.4103777%20355.878193%2090.2122663-28.682721-40.3301901-64.801701-73.23113313%205.311616z%22%20fill%3D%22%23eb8f35%22%2F%3E%3Cpath%20d%3D%22m167.688682%20110.481588-45.636793%2038.243627-35.0235858%2042.492919%2087.0283028%203.186969z%22%20fill%3D%22%23e8821e%22%2F%3E%3Cpath%20d%3D%22m132.665096%20212.464593-11.674528%2024.433427%2041.39151-10.623229z%22%20fill%3D%22%23393939%22%20transform%3D%22matrix%28-1%200%200%201%20283.372646%200%29%22%2F%3E%3Cpath%20d%3D%22m23.349057%201.06232296%20144.339625%20109.41926504-24.410378-59.4900858z%22%20fill%3D%22%23e88f35%22%2F%3E%3Cpath%20d%3D%22m23.349057%201.06232296-19.10377392%2058.42776294%2010.61320772%2063.7393781-7.42924541%204.249292%2010.61320771%209.560906-8.49056617%207.436261%2011.67452847%2010.623229-7.4292454%206.373938%2016.9811323%2021.246459%2079.5990577-24.433428c38.915096-31.161473%2058.018869-47.096318%2057.311322-47.804533-.707548-.708215-48.820756-37.1813036-144.339625-109.41926504z%22%20fill%3D%22%238e5a30%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E",supportMobile:!0,mobileDeepLink:"https://metamask.app.link/dapp/$host",switchChain:F,disabled:function(){return!window.ethereum}},he=Object.values(J),De=Object.values(pe),we=p(p([fe],C(he),!1),C(De),!1),ve=l(l({},J),pe),ge=l(l({},ie),{disabled:function(){return!1},type:w.openBlockIframe,connector:P}),me=[se.showName,fe.showName,Q.showName];function Ee(e){var t,n,o=void 0===e?{}:e,i=o.PORTIS_ID,r=o.chainId,a=o.includes,l=o.excludes,c=o.keysSort,s=o.mobileKeysSort,d=o.showSupportExtensionInjected,u=o.afterHooks,f=L(),h=(!a||a.includes(w.injected))&&(!l||!l.includes(w.injected)),D={PORTIS_ID:i},v=[],g=!1;h&&((n=he.find((function(e){if(!e.disabled)throw new Error("injected wallet need checked");return!e.disabled()})))||(n=fe),n.connector=function(e,t){return E(void 0,t)},v.push(n),g=!!n.disabled&&!n.disabled());var m=function(e){return!(null==l?void 0:l.includes(e.type))&&(!(e.checked&&e.type!==w.injected&&!e.checked(D))&&(!(r&&e.supportChains&&!e.supportChains.includes(r))&&!(a&&!a.includes(e.type))))};if(f)if(g)m(se)&&v.push(se);else{we.forEach((function(e){return!(!m(e)||!e.supportMobile||e.showName===(null==n?void 0:n.showName))&&(v.push(e),!0)}));var F=(null!==(t=null!=s?s:c)&&void 0!==t?t:[]).map((function(e){var t=ve[e];if(!t)throw new Error("unknown key ".concat(e));return t.showName})).filter((function(e){return!me.includes(e)})),y=p(p([],C(me),!1),C(F),!1);v=v.sort((function(e,t){var n=y.indexOf(e.showName),o=y.indexOf(t.showName);return-1===n&&(n=999),-1===o&&(o=999),n-o}))}else{var b=[];if(d&&he.forEach((function(e){return!(!e.supportExtension||!m(e)||e.showName===(null==n?void 0:n.showName))&&(b.push(e),!0)})),De.forEach((function(e){return!!m(e)&&(b.push(e),!0)})),c){var x=c.map((function(e){var t=ve[e];if(!t)throw new Error("unknown key ".concat(e));return t.showName}));b=b.sort((function(e,t){var n=x.indexOf(e.showName),o=x.indexOf(t.showName);return-1===n&&(n=999),-1===o&&(o=999),n-o}))}v=p(p([],C(v),!1),C(b),!1)}return u?u({isMobile:f,PORTIS_ID:i,chainId:r,includes:a,excludes:l,showSupportExtensionInjected:d,hasInjectedWallet:g,walletList:v}):v}function Fe(){return c(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return"undefined"==typeof window||window.top===window?[3,4]:[4,N()];case 1:return[4,e.sent().getIsSafe()];case 2:return e.sent()?[2,ue]:[4,S()];case 3:if(e.sent())return[2,ge];e.label=4;case 4:return[2,void 0]}}))}))}function ye(){return c(this,void 0,void 0,(function(){var e,t,n,o=this;return s(this,(function(i){switch(i.label){case 0:return e=[],t=[],n=new Set,we.forEach((function(i){if(i.disabled){var r=i.disabled(),a=i.type===w.injected;"boolean"==typeof r?a&&r?e.push(i.showName):r&&n.add(i.type):t.push((function(){return c(o,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,r];case 1:return e.sent()&&n.add(i.type),[2]}}))}))}))}})),[4,Promise.all(t.map((function(e){return e()})))];case 1:return i.sent(),[2,function(t){return t.type===w.injected?e.includes(t.showName):n.has(t.type)}]}}))}))}var be,xe=[{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"guy",type:"address"},{name:"wad",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_spender",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"}],Ae=i((function(t){return{chainId:1,account:void 0,accounts:void 0,provider:void 0,walletType:void 0,connectLoading:!1,connected:void 0,startConnecting:function(){t((function(){return{connectLoading:!0}}))},connectSuccess:function(e,n,o){return c(void 0,void 0,void 0,(function(){var i,r,a,l,c,d;return s(this,(function(s){switch(s.label){case 0:return t((function(){return{provider:e}})),[4,e.getNetwork()];case 1:return i=s.sent().chainId,[4,e.listAccounts()];case 2:return r=s.sent(),a=C(r,1),l=a[0],c=n.type,(d=c===w.Gnosis)||c!==w.WalletConnect||!l?[3,5]:[4,N()];case 3:return[4,s.sent().getAccountIsSafe(i,l)];case 4:d=s.sent(),s.label=5;case 5:return t((function(){return{accounts:r,account:l,chainId:i,walletType:c,connected:{isAutoConnect:o,wallet:n,isSafe:d},connectLoading:!1}})),[2]}}))}))},connectFailed:function(){t((function(){return{connectLoading:!1}}))},connectionBreak:function(){t((function(){return{connected:void 0}}))},accountsChanged:function(e){var n=C(e,1)[0];t((function(){return{accounts:e,account:n}}))},chainIdChanged:function(e){t((function(){return{chainId:e}}))},setRpcUrlProvider:function(n){return c(void 0,void 0,void 0,(function(){var o,i;return s(this,(function(r){switch(r.label){case 0:return[4,(o=new e(n)).getNetwork()];case 1:return i=r.sent().chainId,t((function(){return{provider:o,chainId:i,accounts:void 0,account:void 0,walletType:void 0,connected:void 0}})),[2]}}))}))},disconnect:function(n){return c(void 0,void 0,void 0,(function(){var o,i;return s(this,(function(r){switch(r.label){case 0:return n?[4,(o=new e(n)).getNetwork()]:[3,2];case 1:return i=r.sent().chainId,t((function(){return{provider:o,chainId:i,accounts:void 0,account:void 0,walletType:void 0,connected:void 0}})),[3,3];case 2:t((function(){return{provider:void 0,accounts:void 0,account:void 0,walletType:void 0,connected:void 0}})),r.label=3;case 3:return[2]}}))}))}}}));function _e(){var e=Ae.getState().provider;if(!e)throw new Error("provider is undefined");return e}!function(e){e[e.Failed=0]="Failed",e[e.Success=1]="Success",e[e.Warning=2]="Warning"}(be||(be={}));var Be=function(e){return c(void 0,void 0,void 0,(function(){var t,n,o,i,r,a;return s(this,(function(l){switch(l.label){case 0:t=e.value,n=e.from,o=e.to,i=e.data,r={from:n,to:o,value:t,data:i},t&&!/^0x0*$/.test(t)||delete r.value,a=_e(),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,a.estimateGas(r)];case 2:return[2,l.sent().add(5e4)];case 3:return l.sent(),a.call(e).then((function(e){if("test"!==process.env.NODE_ENV)throw new Error("Unexpected issue with estimating the gas. Please try again.")})).catch((function(e){if("test"!==process.env.NODE_ENV)throw e})),[3,4];case 4:return[2,null]}}))}))},Le=function(){return c(void 0,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:e=_e(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,e.getGasPrice()];case 2:return[2,t.sent()];case 3:return t.sent(),e.call({}).then((function(e){throw new Error("Unexpected issue with getting the gas price. Please try again.")})).catch((function(e){throw e})),[3,4];case 4:return[2,null]}}))}))},ke=function(e){return c(void 0,void 0,void 0,(function(){var t,n,o,i,r;return s(this,(function(a){switch(a.label){case 0:t=_e(),a.label=1;case 1:return a.trys.push([1,6,,7]),[4,t.getSigner().sendTransaction(e)];case 2:return n=a.sent(),(null===(r=Ae.getState().connected)||void 0===r?void 0:r.isSafe)&&Ae.getState().account?[4,N()]:[3,5];case 3:return[4,a.sent().getSafeTxHash(Ae.getState().chainId,Ae.getState().account,n.hash)];case 4:return o=a.sent(),[2,l(l({},n),{hash:o})];case 5:return[2,n];case 6:throw 4001===(null==(i=a.sent())?void 0:i.code)?new Error("Transaction rejected."):i;case 7:return[2]}}))}))};function Me(e,i,r){if(!function(e){try{return o(e)}catch(e){return!1}}(e)||e===t)throw Error("Invalid 'address' parameter '".concat(e,"'."));var a=null!=r?r:_e(),l=Ae.getState().account;return new n(e,i,function(e,t){return t?function(e,t){return e.getSigner(t).connectUnchecked()}(e,t):e}(a,l))}var Oe=new Map;function Ve(t,n){return c(this,void 0,void 0,(function(){var o;return s(this,(function(i){return!t||t===Ae.getState().chainId&&Ae.getState().provider?[2,Ae.getState().provider]:Oe.has(t)?[2,Oe.get(t)]:(o=new e(n),Oe.set(t,o),[2,o])}))}))}var He=function(e,t,n){return c(void 0,void 0,void 0,(function(){var o,i,r,a;return s(this,(function(l){switch(l.label){case 0:return o=Me(e,xe),i=o.interface.encodeFunctionData("approve",[t,n]),r={from:Ae.getState().account,to:e,data:i,value:"0x0",gasLimit:void 0},[4,Be(r)];case 1:return(a=l.sent())&&(r.gasLimit=a),[4,ke(r)];case 2:return[2,l.sent()]}}))}))};function Se(e,t,n,o,i){var r;return c(this,void 0,void 0,(function(){var a,c,d,u,p,f,h,D;return s(this,(function(s){switch(s.label){case 0:a=_e(),s.label=1;case 1:if(t.killSwitch)return[3,11];s.label=2;case 2:return s.trys.push([2,8,,9]),(null===(r=Ae.getState().connected)||void 0===r?void 0:r.isSafe)?[4,N()]:[3,5];case 3:return[4,s.sent().getSafeTxStatus(Ae.getState().chainId,e,Ae.getState().account)];case 4:return"rejected"===(c=s.sent())?[2,{status:be.Warning,transactionReceipt:null}]:(d=void 0,c&&(d=c.status?be.Success:be.Failed),void 0!==d?[2,{status:d,transactionReceipt:c?l(l({},c),{blockNumber:c.blockNumber||void 0,status:c.status?1:0}):null}]:[3,7]);case 5:return[4,Promise.all([i?i(e):a.getTransactionReceipt(e),a.getTransactionCount(null!=o?o:"")])];case 6:if(u=C.apply(void 0,[s.sent(),2]),p=u[0],f=u[1],console.log("[TX Watch] Web3",p,"/Current Nonce ",f,"/TX Nonce",n),h=void 0,p&&(h=p.status?be.Success:be.Failed),void 0===h&&n&&f>n&&(h=be.Warning),void 0!==h)return[2,{status:h,transactionReceipt:p}];s.label=7;case 7:return[3,9];case 8:return D=s.sent(),console.error("[TX Watch] Error",D.message),[3,9];case 9:return[4,new Promise((function(e){return setTimeout(e,t.interval)}))];case 10:return s.sent(),[3,1];case 11:return[2,null]}}))}))}var Pe=function(){function e(e){var t=e.cacheKey,n=e.rpcUrl;this._rpcUrl="",this.cacheKey=t,this._rpcUrl=null!=n?n:""}return e.prototype.setCacheType=function(e){localStorage.setItem(this.cacheKey,e)},e.prototype.removeCache=function(){localStorage.removeItem(this.cacheKey)},e.prototype.setRpcUrl=function(e){this._rpcUrl=e},e.prototype.getCacheType=function(){return localStorage.getItem(this.cacheKey)},e.prototype.getConnectedWallet=function(){var e;return c(this,void 0,void 0,(function(){var t,n;return s(this,(function(o){switch(o.label){case 0:return Ae.getState().connectLoading?[4,Promise.race([new Promise((function(e){n=Ae.subscribe((function(t){!1===t.connectLoading&&e(!0)}))})),new Promise((function(e){t=setTimeout((function(){e(!1)}),4e3)}))])]:[3,2];case 1:o.sent(),clearTimeout(t),n&&n(),o.label=2;case 2:return[2,null===(e=Ae.getState().connected)||void 0===e?void 0:e.wallet]}}))}))},e.prototype.connectWallet=function(e,t,n){var o=(void 0===n?{}:n).isAutoConnect;return c(this,void 0,void 0,(function(){var n,i;return s(this,(function(r){switch(r.label){case 0:if(!e)throw new Error("wallet is not valid.");if(!e.connector)throw new Error("".concat(e.showName," is not valid."));return Ae.getState().startConnecting(),n=e.type,[4,(0,e.connector)(t,{connect:function(e){var t=e.chainId,n=parseInt(t,16);n&&Ae.getState().chainIdChanged(n)},accountsChanged:function(e){Ae.getState().accountsChanged(e)},chainChanged:function(e){var t=parseInt(e,16);t&&Ae.getState().chainIdChanged(t)},message:function(){},disconnect:function(e){Ae.getState().connectionBreak()}})];case 1:return(i=r.sent())?(this.setCacheType(n),this._wallet=e,[4,Ae.getState().connectSuccess(i,e,!!o)]):[3,3];case 2:return r.sent(),[3,4];case 3:Ae.getState().connectFailed(),r.label=4;case 4:return[2,i]}}))}))},e.prototype.disconnectWallet=function(){var e;return c(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return this.getCacheType()?(null===(e=this._wallet)||void 0===e?void 0:e.disconnect)?[4,this._wallet.disconnect()]:[3,2]:[2];case 1:t.sent(),t.label=2;case 2:return this._wallet=void 0,this.removeCache(),Ae.getState().disconnect(this._rpcUrl),[2]}}))}))},e}(),Ie={cacheKey:"DODO-WALLET-CACHED-PROVIDER"},Ne=function(){function e(e){var t;this.isOpenBlockIframe=!1,this.isSafeIframe=!1;var n=l(l({},Ie),e),o=n.providerConfig,i=n.walletListConfig,r=n.cacheKey;this.providerConfig=o;var a=Ee(l({PORTIS_ID:null===(t=o.portisParams)||void 0===t?void 0:t.id},i));this.walletListConfig=i,this.connectController=new Pe({cacheKey:r,rpcUrl:o.rpcUrl}),this.autoConnect(a)}return e.prototype.autoConnect=function(e){return c(this,void 0,void 0,(function(){var t,n,o,i,r,a=this;return s(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),t=function(e){return a.connectToWallet(e,void 0,{isAutoConnect:!0})},[4,Fe()];case 1:return(n=l.sent())?[2,t(n)]:(o=this.connectController.getCacheType())&&(i=e.find((function(e){return e.type===o})))?[2,t(i)]:[3,3];case 2:return r=l.sent(),console.error(r),[3,3];case 3:return this.providerConfig.rpcUrl&&Ae.getState().setRpcUrlProvider(this.providerConfig.rpcUrl),[2]}}))}))},e.prototype.setRpcUrl=function(e){this.connectController.setRpcUrl(e)},e.prototype.getWalletList=function(e,t){var n;return Ee(l(l({PORTIS_ID:null===(n=this.providerConfig.portisParams)||void 0===n?void 0:n.id,chainId:e},this.walletListConfig),t))},e.prototype.connectToWallet=function(e,t,n){return void 0===n&&(n={}),c(this,void 0,void 0,(function(){return s(this,(function(o){return t&&(this.providerConfig=l(l({},this.providerConfig),t)),[2,this.connectController.connectWallet(e,this.providerConfig,n)]}))}))},e.prototype.getConnectedWallet=function(){return this.connectController.getConnectedWallet()},e.prototype.disconnectWallet=function(){return this.connectController.disconnectWallet()},e.prototype.connectWalletBefore=function(e,t){if(Ae.getState().walletType===e.type&&Ae.getState().account)return!1;if(t){var n=e.link;return _()?n=e.mobileAndroidDeepLink||e.mobileDeepLink||e.link:B()&&(n=e.mobileIOSDeepLink||e.mobileDeepLink||e.link),n&&window.open(n),!1}return!0},e.prototype.clickWallet=function(e,t,n){this.connectWalletBefore(e,t)&&this.connectToWallet(e,n)},e}();export{be as A,Be as B,Ne as C,Le as D,ke as E,Me as F,Ve as G,x as H,He as I,Se as J,ge as O,w as W,c as _,s as a,p as b,C as c,m as d,l as e,a as f,v as g,he as h,E as i,we as j,Ee as k,Fe as l,ye as m,J as n,pe as o,I as p,N as q,Z as r,De as s,z as t,Ae as u,T as v,j as w,F as x,P as y,S as z};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{H as HD_PATH_LIST,O as OpenBlockIframeWallet,W as WalletType,A as WatchResult,j as allWalletList,I as approve,C as default,F as getContract,B as getEstimateGas,D as getGasPrice,q as getGnosisPackage,z as getIsOpenBlockIframe,l as getIsolatedEnvironmentWallet,p as getLedgerUSBPackage,y as getOpenBlockIframeConnector,t as getPortisConnector,G as getProviderByChain,r as getUAuthPackage,
|
|
1
|
+
export{H as HD_PATH_LIST,O as OpenBlockIframeWallet,W as WalletType,A as WatchResult,j as allWalletList,I as approve,C as default,F as getContract,B as getEstimateGas,D as getGasPrice,q as getGnosisPackage,z as getIsOpenBlockIframe,l as getIsolatedEnvironmentWallet,p as getLedgerUSBPackage,y as getOpenBlockIframeConnector,t as getPortisConnector,G as getProviderByChain,r as getUAuthPackage,w as getWalletConnectConnector,m as getWalletDisabledStateFunction,v as getWalletLinkConnector,k as getWalletList,i as injectedConnect,h as injectedList,n as injectedListObject,x as registerNetworkWithMetamask,E as sendTransaction,s as standaloneList,o as standaloneListObject,u as useWalletStore,J as watchTx}from"./index-afc4ce88.js";import"@ethersproject/providers";import"@ethersproject/constants";import"@ethersproject/contracts";import"@ethersproject/address";import"zustand";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e,a as t,d as n}from"./index-afc4ce88.js";import"@ethersproject/providers";import"@ethersproject/constants";import"@ethersproject/contracts";import"@ethersproject/address";import"zustand";function i(e,t){var n="string"==typeof e?Object.assign({},r[e]):e;if("object"!=typeof n)throw new Error("[Portis] illegal 'network' parameter. Read more about it here: https://docs.portis.io/#/configuration?id=network");if(!n.nodeUrl)throw new Error("[Portis] 'nodeUrl' is required. Read more about it here: https://docs.portis.io/#/configuration?id=network");if(t&&!n.gasRelayHubAddress)throw new Error("[Portis] can't find default gas relay hub for "+e);return"string"!=typeof e||t||delete n.gasRelayHubAddress,n}var r={mainnet:{nodeUrl:"https://mainnet.infura.io/v3/faa4639b090f46499f29d894da0551a0",chainId:"1",gasRelayHubAddress:"0xD216153c06E857cD7f72665E0aF1d7D82172F494"},ropsten:{nodeUrl:"https://ropsten.infura.io/v3/faa4639b090f46499f29d894da0551a0",chainId:"3",gasRelayHubAddress:"0xD216153c06E857cD7f72665E0aF1d7D82172F494"},rinkeby:{nodeUrl:"https://rinkeby.infura.io/v3/faa4639b090f46499f29d894da0551a0",chainId:"4",gasRelayHubAddress:"0xD216153c06E857cD7f72665E0aF1d7D82172F494"},goerli:{nodeUrl:"https://goerli.infura.io/v3/faa4639b090f46499f29d894da0551a0",chainId:"5"},ubiq:{nodeUrl:"https://rpc1.ubiqscan.io",chainId:"8"},thundercoreTestnet:{nodeUrl:"https://testnet-rpc.thundercore.com:8544",chainId:"18"},orchid:{nodeUrl:"https://public-node.rsk.co",chainId:"30"},orchidTestnet:{nodeUrl:"https://public-node.testnet.rsk.co",chainId:"31"},kovan:{nodeUrl:"https://kovan.infura.io/v3/faa4639b090f46499f29d894da0551a0",chainId:"42",gasRelayHubAddress:"0xD216153c06E857cD7f72665E0aF1d7D82172F494"},classic:{nodeUrl:"https://ethereumclassic.network",chainId:"61"},sokol:{nodeUrl:"https://sokol.poa.network",chainId:"77"},core:{nodeUrl:"https://core.poa.network",chainId:"99"},xdai:{nodeUrl:"https://dai.poa.network",chainId:"100",gasRelayHubAddress:"0xD216153c06E857cD7f72665E0aF1d7D82172F494"},thundercore:{nodeUrl:"https://mainnet-rpc.thundercore.com",chainId:"108"},fuse:{nodeUrl:"https://rpc.fusenet.io",chainId:"122"},lightstreams:{nodeUrl:"https://node.mainnet.lightstreams.io",chainId:"163"},matic:{nodeUrl:"https://polygon-rpc.com",chainId:"137"},maticMumbai:{nodeUrl:"https://rpc-mumbai.matic.today",chainId:"80001"},maticAlpha:{nodeUrl:"https://alpha.ethereum.matic.network",chainId:"4626"},maticTestnet:{nodeUrl:"https://testnet2.matic.network",chainId:"8995"}},o=function(){return!("undefined"==typeof window||!window.document)},a=!1;function s(){return new Promise((function(e,t){o()?a?e():["loaded","interactive","complete"].indexOf(document.readyState)>-1?(a=!0,e()):window.addEventListener("load",(function(){a=!0,e()}),!1):t()}))}function c(){var e="localhost"===location.hostname||"127.0.0.1"===location.hostname,t="https:"===location.protocol;if(!(e||t))throw"[Portis] Access to the WebCrypto API is restricted to secure origins.\nIf this is a development environment please use http://localhost:"+location.port+" instead.\nOtherwise, please use an SSL certificate."}var u={};Object.defineProperty(u,"__esModule",{value:!0});var d=u.default=u.ERR_NOT_IN_IFRAME=u.ERR_CONNECTION_TIMEOUT=u.ERR_CONNECTION_DESTROYED=void 0,l="handshake",h="handshake-reply",f="call",g="reply",p="fulfilled",m="rejected",v="message",w="ConnectionDestroyed";u.ERR_CONNECTION_DESTROYED=w;var b="ConnectionTimeout";u.ERR_CONNECTION_TIMEOUT=b;var y="NotInIframe";u.ERR_NOT_IN_IFRAME=y;var _,E={"http:":"80","https:":"443"},C=/^(https?:)?\/\/([^/:]+)(:(\d+))?/,k={ERR_CONNECTION_DESTROYED:w,ERR_CONNECTION_TIMEOUT:b,ERR_NOT_IN_IFRAME:y,Promise:function(){try{return window?window.Promise:null}catch(e){return null}}(),debug:!1},P=(_=0,function(){return++_}),I=function(){if(k.debug){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=console).log.apply(e,["[Penpal]"].concat(n))}},W=function(e){var t=[];return e((function(){t.forEach((function(e){e()}))})),{then:function(e){t.push(e)}}},x=function(e){return{name:e.name,message:e.message,stack:e.stack}},T=function(e,t,n,i){var r=t.localName,o=t.local,a=t.remote,s=t.remoteOrigin,c=!1;I("".concat(r,": Connecting call sender"));var u=function(e){return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];if(I("".concat(r,": Sending ").concat(e,"() call")),c){var u=new Error("Unable to send ".concat(e,"() call due ")+"to destroyed connection");throw u.code=w,u}return new k.Promise((function(t,i){var c=P();o.addEventListener(v,(function n(u){if(u.source===a&&u.origin===s&&u.data.penpal===g&&u.data.id===c){I("".concat(r,": Received ").concat(e,"() reply")),o.removeEventListener(v,n);var d=u.data.returnValue;u.data.returnValueIsError&&(l=d,h=new Error,Object.keys(l).forEach((function(e){return h[e]=l[e]})),d=h),(u.data.resolution===p?t:i)(d)}var l,h})),a.postMessage({penpal:f,id:c,methodName:e,args:n},s)}))}};i.then((function(){c=!0})),n.reduce((function(e,t){return e[t]=u(t),e}),e)},A=function(e,t,n){var i=e.localName,r=e.local,o=e.remote,a=e.remoteOrigin,s=!1;I("".concat(i,": Connecting call receiver"));var c=function(e){if(e.source===o&&e.origin===a&&e.data.penpal===f){var n=e.data,r=n.methodName,c=n.args,u=n.id;if(I("".concat(i,": Received ").concat(r,"() call")),r in t){var d=function(e){return function(t){if(I("".concat(i,": Sending ").concat(r,"() reply")),s)I("".concat(i,": Unable to send ").concat(r,"() reply due to destroyed connection"));else{var n={penpal:g,id:u,resolution:e,returnValue:t};e===m&&t instanceof Error&&(n.returnValue=x(t),n.returnValueIsError=!0);try{o.postMessage(n,a)}catch(e){throw"DataCloneError"===e.name&&o.postMessage({penpal:g,id:u,resolution:m,returnValue:x(e),returnValueIsError:!0},a),e}}}};new k.Promise((function(e){return e(t[r].apply(t,c))})).then(d(p),d(m))}}};r.addEventListener(v,c),n.then((function(){s=!0,r.removeEventListener(v,c)}))};k.connectToChild=function(e){var t,n=e.url,i=e.appendTo,r=e.methods,o=void 0===r?{}:r,a=e.timeout,s=new W((function(e){t=e})),c=window,u=document.createElement("iframe");(i||document.body).appendChild(u),s.then((function(){u.parentNode&&u.parentNode.removeChild(u)}));var d=u.contentWindow||u.contentDocument.parentWindow,f=function(e){var t,n,i,r=document.location,o=C.exec(e);o?(t=o[1]?o[1]:r.protocol,n=o[2],i=o[4]):(t=r.protocol,n=r.hostname,i=r.port);var a=i&&i!==E[t]?":".concat(i):"";return"".concat(t,"//").concat(n).concat(a)}(n);return{promise:new k.Promise((function(e,i){var r;void 0!==a&&(r=setTimeout((function(){var e=new Error("Connection to child timed out after ".concat(a,"ms"));e.code=b,i(e),t()}),a));var g,p,m={},y=function(t){if(t.source===d&&t.origin===f&&t.data.penpal===l){I("Parent: Received handshake, sending reply"),t.source.postMessage({penpal:h,methodNames:Object.keys(o)},t.origin);var n={localName:"Parent",local:c,remote:d,remoteOrigin:t.origin};p&&p();var i=new W((function(e){s.then(e),p=e}));A(n,o,i),g&&g.forEach((function(e){delete m[e]})),g=t.data.methodNames,T(m,n,g,s),clearTimeout(r),e(m)}};c.addEventListener(v,y),s.then((function(){c.removeEventListener(v,y);var e=new Error("Connection destroyed");e.code=w,i(e)})),I("Parent: Loading iframe"),u.src=n})),iframe:u,destroy:t}},k.connectToParent=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.parentOrigin,i=void 0===n?"*":n,r=t.methods,o=void 0===r?{}:r,a=t.timeout;if(window===window.top){var s=new Error("connectToParent() must be called within an iframe");throw s.code=y,s}var c=new W((function(t){e=t})),u=window,d=u.parent,f=new k.Promise((function(t,n){var r;void 0!==a&&(r=setTimeout((function(){var t=new Error("Connection to parent timed out after ".concat(a,"ms"));t.code=b,n(t),e()}),a));var s=function e(n){if(("*"===i||i===n.origin)&&n.source===d&&n.data.penpal===h){I("Child: Received handshake reply"),u.removeEventListener(v,e);var a={localName:"Child",local:u,remote:d,remoteOrigin:n.origin},s={};A(a,o,c),T(s,a,n.data.methodNames,c),clearTimeout(r),t(s)}};u.addEventListener(v,s),c.then((function(){u.removeEventListener(v,s);var e=new Error("Connection destroyed");e.code=w,n(e)})),I("Child: Sending handshake"),d.postMessage({penpal:l,methodNames:Object.keys(o)},i)}));return{promise:f,destroy:e}};var O=k;d=u.default=O;var M=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){e.done?r(e.value):new n((function(t){t(e.value)})).then(a,s)}c((i=i.apply(e,t||[])).next())}))},N=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},L=process.env.PORTIS_WIDGET_URL||"https://widget.portis.io",R="por_portis-widget-frame",S="por_portis-container";var D=function(){function e(t,n){this._widgetConfig=t,this._clearProviderSession=n,this._widgetUrl=L,this._onLoginCallback=function(){},this._onLogoutCallback=function(){},this._onErrorCallback=function(){},c(),t.staging?(console.warn("Please note: you are using the Portis STAGING environment."),this._widgetUrl="https://widget-staging.portis.io"):t.feature&&(console.warn("Please note: you are using the Portis FEATURE environment."),this._widgetUrl="https://widget-feature.portis.io"),e._checkIfWidgetAlreadyInitialized()}return e.prototype.getWidget=function(){return M(this,void 0,void 0,(function(){var e;return N(this,(function(t){switch(t.label){case 0:return this.widgetInstance?[3,2]:(this.widgetPromise||(this.widgetPromise=this._initWidget()),e=this,[4,this.widgetPromise]);case 1:e.widgetInstance=t.sent(),t.label=2;case 2:return[2,this.widgetInstance]}}))}))},e.prototype.setDefaultEmail=function(e){this._widgetConfig.defaultEmail=e},e.prototype.setOnLoginCallback=function(e){this._onLoginCallback=e},e.prototype.setOnLogoutCallback=function(e){this._onLogoutCallback=e},e.prototype.setOnActiveWalletChangedCallback=function(e){this._onActiveWalletChangedCallback=e},e.prototype.setOnErrorCallback=function(e){this._onErrorCallback=e},e.prototype.showPortis=function(){return M(this,void 0,void 0,(function(){return N(this,(function(e){switch(e.label){case 0:return[4,this.getWidget()];case 1:return[2,e.sent().communication.showPortis(this._widgetConfig)]}}))}))},e.prototype.getCampaignInfo=function(e){return M(this,void 0,void 0,(function(){return N(this,(function(t){switch(t.label){case 0:return[4,this.getWidget()];case 1:return[2,t.sent().communication.getCampaignInfo(e)]}}))}))},e.prototype.claimVoucher=function(e){return M(this,void 0,void 0,(function(){return N(this,(function(t){switch(t.label){case 0:return[4,this.getWidget()];case 1:return[2,t.sent().communication.claimVoucher(e,this._widgetConfig)]}}))}))},e.prototype.logout=function(){return M(this,void 0,void 0,(function(){return N(this,(function(e){switch(e.label){case 0:return[4,this.getWidget()];case 1:return[2,e.sent().communication.logout()]}}))}))},e.prototype.getExtendedPublicKey=function(e,t){return void 0===e&&(e="m/44'/60'/0'/0/0"),void 0===t&&(t="Ethereum"),M(this,void 0,void 0,(function(){return N(this,(function(n){switch(n.label){case 0:return[4,this.getWidget()];case 1:return[2,n.sent().communication.getExtendedPublicKey(e,t,this._widgetConfig)]}}))}))},e.prototype.importWallet=function(e){return M(this,void 0,void 0,(function(){return N(this,(function(t){switch(t.label){case 0:return[4,this.getWidget()];case 1:return[2,t.sent().communication.importWallet(e,this._widgetConfig)]}}))}))},e.prototype.isLoggedIn=function(){return M(this,void 0,void 0,(function(){return N(this,(function(e){switch(e.label){case 0:return[4,this.getWidget()];case 1:return[2,e.sent().communication.isLoggedIn()]}}))}))},e.prototype.signBitcoinTransaction=function(e){return M(this,void 0,void 0,(function(){return N(this,(function(t){switch(t.label){case 0:return[4,this.getWidget()];case 1:return[2,t.sent().communication.signBitcoinTransaction(e,this._widgetConfig)]}}))}))},e.prototype.showBitcoinWallet=function(e){return void 0===e&&(e="m/49'/0'/0'/0/0"),M(this,void 0,void 0,(function(){return N(this,(function(t){switch(t.label){case 0:return[4,this.getWidget()];case 1:return[2,t.sent().communication.showBitcoinWallet(e,this._widgetConfig)]}}))}))},e.prototype.purchaseERC20=function(e){return M(this,void 0,void 0,(function(){return N(this,(function(t){switch(t.label){case 0:return[4,this.getWidget()];case 1:return[2,t.sent().communication.purchaseERC20(e,this._widgetConfig)]}}))}))},e._checkIfWidgetAlreadyInitialized=function(){document.getElementsByClassName(S).length&&console.warn("An instance of Portis was already initialized. This is probably a mistake. Make sure that you use the same Portis instance throughout your app.")},e.prototype._initWidget=function(){return M(this,void 0,void 0,(function(){var t,n,i,r,o;return N(this,(function(a){switch(a.label){case 0:return[4,s()];case 1:return a.sent(),(t=document.createElement("style")).innerHTML="\n.por_portis-container {\n position: fixed;\n width: 0px;\n height: 0px;\n top: 0px;\n right: 0px;\n z-index: 2147483647;\n}\n\n@media (max-width: 576px) {\n .por_portis-container {\n bottom: 0;\n top: auto;\n }\n}\n\n.por_portis-widget-frame {\n position: fixed;\n width: 375px;\n height: 0;\n top: 20px;\n right: 20px;\n box-shadow: 0 5px 40px rgba(0,0,0,.16);\n border-radius: 8px;\n overflow: hidden;\n z-index: 2147483000;\n}\n\n@media (max-width: 576px) {\n .por_portis-widget-frame {\n bottom: 0;\n top: auto;\n width: 100%;\n right: 0;\n left: 0;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n}\n",(n=document.createElement("div")).className=S,(i=document.createElement("div")).id="portis-container-"+Date.now(),i.className=R,n.appendChild(i),document.body.appendChild(n),document.head.appendChild(t),[4,(r=d.connectToChild({url:this._widgetUrl,appendTo:document.getElementById(i.id),methods:{setHeight:this._setHeight.bind(this),getWindowSize:e._getWindowSize.bind(this),onLogin:this._onLogin.bind(this),onLogout:this._onLogout.bind(this),onActiveWalletChanged:this._onActiveWalletChanged.bind(this),hasOnActiveWalletChanged:this.hasOnActiveWalletChanged.bind(this),onError:this._onError.bind(this)}})).promise];case 2:return(o=a.sent()).setSdkConfig(this._widgetConfig),r.iframe.style.position="absolute",r.iframe.style.height="100%",r.iframe.style.width="100%",r.iframe.style.border="0 transparent",[2,{communication:o,widgetFrame:i}]}}))}))},e.prototype._setHeight=function(e){return M(this,void 0,void 0,(function(){return N(this,(function(t){switch(t.label){case 0:return[4,this.getWidget()];case 1:return t.sent().widgetFrame.style.height=e+"px",[2]}}))}))},e._getWindowSize=function(){var e=document.getElementsByTagName("body")[0];return{width:window.innerWidth||document.documentElement.clientWidth||e.clientWidth,height:window.innerHeight||document.documentElement.clientHeight||e.clientHeight}},e.prototype._onLogin=function(e,t,n){this._onLoginCallback&&this._onLoginCallback(e,t,n)},e.prototype._onLogout=function(){this._clearProviderSession(),this._onLogoutCallback&&this._onLogoutCallback()},e.prototype._onActiveWalletChanged=function(e){this._onActiveWalletChangedCallback&&this._onActiveWalletChangedCallback(e)},e.prototype.hasOnActiveWalletChanged=function(){return!!this._onActiveWalletChangedCallback},e.prototype._onError=function(e){this._onErrorCallback&&this._onErrorCallback(e)},e}(),U=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){e.done?r(e.value):new n((function(t){t(e.value)})).then(a,s)}c((i=i.apply(e,t||[])).next())}))},j=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},B=require("ethereumjs-util"),F=B.addHexPrefix,G=B.stripHexPrefix,V=B.BN,H="0x5208";function q(e,t){return U(this,void 0,void 0,(function(){var n,i,r,o,a;return j(this,(function(s){switch(s.label){case 0:return[4,e.getBlockByNumber("latest",!1)];case 1:return n=s.sent(),[4,z(e,t,n.gasLimit)];case 2:if(i=s.sent(),r=i.safeGas,o=i.simpleSend,a=i.gasLimitSpecified,o||a)return[2,r];s.label=3;case 3:return s.trys.push([3,5,,6]),[4,K(e,t,n.gasLimit,r)];case 4:return[2,s.sent()];case 5:return s.sent(),[2,r];case 6:return[2]}}))}))}function z(e,t,n){return U(this,void 0,void 0,(function(){var i,r,o;return j(this,(function(a){switch(a.label){case 0:return Boolean(t.gas)?[2,{safeGas:t.gas,simpleSend:!1,gasLimitSpecified:!0}]:(i=t.to,Boolean(i)?[4,e.getCode(i)]:[3,2]);case 1:if(r=a.sent(),!r||"0x"===r||"0x0"===r){if(t.data)throw new Error("Trying to call a function on a non-contract address");return[2,{safeGas:H,simpleSend:!0,gasLimitSpecified:!1}]}a.label=2;case 2:return o=J(n),s=o,c=20,u=new V(19),d=new V(c),[2,{safeGas:Q(s.mul(u).div(d)),simpleSend:!1,gasLimitSpecified:!1}]}var s,c,u,d}))}))}function K(e,t,n,i){return U(this,void 0,void 0,(function(){var r;return j(this,(function(o){switch(o.label){case 0:return t.gas=i,r=F,[4,e.estimateGas(t)];case 1:return[2,Y(r.apply(void 0,[o.sent()]),n)]}}))}))}function Y(e,t){var n=J(e),i=J(t).muln(.9),r=n.muln(1.5);return n.gt(i)?Q(n):r.lt(i)?Q(r):Q(i)}function J(e){return new V(G(e),16)}function Q(e){return F(e.toString(16))}var X=function(){function e(e){this.provider=e}return e.prototype.getBlockByNumber=function(e,t){return this.sendAsync("eth_getBlockByNumber",e,t)},e.prototype.getCode=function(e,t){return void 0===t&&(t="latest"),this.sendAsync("eth_getCode",e,t)},e.prototype.estimateGas=function(e){return this.sendAsync("eth_estimateGas",e)},e.prototype.sendAsync=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return new Promise((function(i,r){t.provider.sendAsync({id:42,jsonrpc:"2.0",method:e,params:n},(function(e,t){e?r(e):i(t.result)}))}))},e}(),Z=function(){return Z=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Z.apply(this,arguments)},$=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){e.done?r(e.value):new n((function(t){t(e.value)})).then(a,s)}c((i=i.apply(e,t||[])).next())}))},ee=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},te=require("web3-provider-engine"),ne=require("web3-provider-engine/dist/es5/subproviders/cache.js"),ie=require("web3-provider-engine/dist/es5/subproviders/fixture.js"),re=require("web3-provider-engine/dist/es5/subproviders/filters.js"),oe=require("web3-provider-engine/dist/es5/subproviders/hooked-wallet.js"),ae=require("web3-provider-engine/dist/es5/subproviders/nonce-tracker.js"),se=require("web3-provider-engine/dist/es5/subproviders/subscriptions.js"),ce=function(){function e(e,t){this.config=e,this._getWidgetCommunication=t,this.provider=this._initProvider()}return e.prototype.setSelectedAddress=function(e){this._selectedAddress=e},e.prototype.changeNetwork=function(e,t){var n=i(e,t);this.clearSubprovider(ae),this.clearSubprovider(ne),this.config.network=n},e.prototype._initProvider=function(){var e=this;if(this.engine)return this.engine;this.engine=new te;var t=new X(this.engine);return this.engine.send=function(t,n){if("string"==typeof t)return new Promise((function(i,r){e.engine.sendAsync({jsonrpc:"2.0",id:42,method:t,params:n||[]},(function(e,t){e?r(e):i(t.result)}))}));if(!n){var i=null;switch(t.method){case"eth_accounts":case"eth_coinbase":i=e._selectedAddress?[e._selectedAddress]:[];break;case"net_version":i=e._network;break;case"eth_uninstallFilter":e.engine.sendAsync(t,(function(e){return e})),i=!0;break;default:var r="The Portis Web3 object does not support synchronous methods like "+t.method+" without a callback parameter.";throw new Error(r)}return{id:t.id,jsonrpc:t.jsonrpc,result:i}}e.engine.sendAsync(t,n)},this.engine.addProvider(new ie({web3_clientVersion:"Portis/v"+this.config.version+"/javascript",net_listening:!0,eth_hashrate:"0x00",eth_mining:!1,eth_syncing:!0})),this.engine.addProvider(new ne),this.engine.addProvider(new se),this.engine.addProvider(new re),this.engine.addProvider(new ae),this.engine.addProvider({setEngine:function(e){return e},handleRequest:function(t,n){return $(e,void 0,void 0,(function(){return ee(this,(function(e){return t.id||(t.id=42),n(),[2]}))}))}}),this.engine.addProvider(new oe({getAccounts:function(t){return $(e,void 0,void 0,(function(){var e,n,i;return ee(this,(function(r){switch(r.label){case 0:return[4,this._getWidgetCommunication()];case 1:return[4,r.sent().getAccounts(this.config)];case 2:return e=r.sent(),n=e.error,i=e.result,!n&&i&&(this._selectedAddress=i[0]),t(n,i),[2]}}))}))},signTransaction:function(t,n){return $(e,void 0,void 0,(function(){var e,i,r;return ee(this,(function(o){switch(o.label){case 0:return[4,this._getWidgetCommunication()];case 1:return[4,o.sent().signTransaction(t,this.config)];case 2:return e=o.sent(),i=e.error,r=e.result,n(i,r),[2]}}))}))},signMessage:function(t,n){return $(e,void 0,void 0,(function(){var e,i,r,o,a;return ee(this,(function(s){switch(s.label){case 0:return[4,this._getWidgetCommunication()];case 1:return e=s.sent(),i=Z({},t,{messageStandard:"signMessage"}),[4,e.signMessage(i,this.config)];case 2:return r=s.sent(),o=r.error,a=r.result,n(o,a),[2]}}))}))},signPersonalMessage:function(t,n){return $(e,void 0,void 0,(function(){var e,i,r,o,a;return ee(this,(function(s){switch(s.label){case 0:return[4,this._getWidgetCommunication()];case 1:return e=s.sent(),i=Z({},t,{messageStandard:"signPersonalMessage"}),[4,e.signMessage(i,this.config)];case 2:return r=s.sent(),o=r.error,a=r.result,n(o,a),[2]}}))}))},signTypedMessage:function(t,n){return $(e,void 0,void 0,(function(){var e,i,r,o,a;return ee(this,(function(s){switch(s.label){case 0:return[4,this._getWidgetCommunication()];case 1:return e=s.sent(),i=Z({},t,{messageStandard:"signTypedMessage"}),[4,e.signMessage(i,this.config)];case 2:return r=s.sent(),o=r.error,a=r.result,n(o,a),[2]}}))}))},signTypedMessageV3:function(t,n){return $(e,void 0,void 0,(function(){var e,i,r,o,a;return ee(this,(function(s){switch(s.label){case 0:return[4,this._getWidgetCommunication()];case 1:return e=s.sent(),i=Z({},t,{messageStandard:"signTypedMessageV3"}),[4,e.signMessage(i,this.config)];case 2:return r=s.sent(),o=r.error,a=r.result,n(o,a),[2]}}))}))},estimateGas:function(n,i){return $(e,void 0,void 0,(function(){var e;return ee(this,(function(r){switch(r.label){case 0:return[4,q(t,n)];case 1:return e=r.sent(),i(null,e),[2]}}))}))},getGasPrice:function(t){return $(e,void 0,void 0,(function(){return ee(this,(function(e){return t(null,""),[2]}))}))}})),this.engine.addProvider({setEngine:function(e){return e},handleRequest:function(t,n,i){return $(e,void 0,void 0,(function(){var e,n,r;return ee(this,(function(o){switch(o.label){case 0:return[4,this._getWidgetCommunication()];case 1:return[4,o.sent().relay(t,this.config)];case 2:return e=o.sent(),n=e.error,r=e.result,"net_version"===t.method&&(this._network=r,this.engine.networkVersion=this._network),i(n,r),[2]}}))}))}}),this.engine.enable=function(){return new Promise((function(t,n){e.engine.sendAsync({method:"eth_accounts"},(function(e,i){e?n(e):t(i.result)}))}))},this.engine.isConnected=function(){return!0},this.engine.isPortis=!0,this.engine.on("error",(function(e){e&&e.message&&e.message.includes("PollingBlockTracker")?console.warn("If you see this warning constantly, there might be an error with your RPC node."):console.error(e)})),this.engine.start(),this.engine},e.prototype.clearSubprovider=function(e){var t=this.provider._providers.find((function(t){return t instanceof e}));this.provider.removeProvider(t),this.provider.addProvider(new e)},e}(),ue=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){e.done?r(e.value):new n((function(t){t(e.value)})).then(a,s)}c((i=i.apply(e,t||[])).next())}))},de=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},le=["email","reputation"];s().then((function(){document.getElementsByClassName(R).length&&console.warn("Portis script was already loaded. This might cause unexpected behavior. If loading with a <script> tag, please make sure that you only load it once.")})).catch((function(){}));var he=function(){function e(e,t,n){if(void 0===n&&(n={}),!o())return new Proxy(this,{get:function(e,t){return e[t]instanceof Function?function(){}:void 0}});c(),this._validateParams(e,t,n),this._config={dappId:e,network:i(t,n.gasRelay),version:"4.0.7",scope:n.scope,registerPageByDefault:n.registerPageByDefault,staging:n.staging,feature:n.feature},this._getWidgetCommunication=this._getWidgetCommunication.bind(this),this._widgetManagerInstance=new D(this.config,this._clearProviderSession),this._web3ManagerInstance=new ce(this.config,this._getWidgetCommunication),this.setDefaultEmail=this.setDefaultEmail.bind(this),this.changeNetwork=this.changeNetwork.bind(this),this.getWidget=this.getWidget.bind(this),this.onLogin=this.onLogin.bind(this),this.onLogout=this.onLogout.bind(this),this.onActiveWalletChanged=this.onActiveWalletChanged.bind(this),this.onError=this.onError.bind(this),this.showPortis=this.showPortis.bind(this),this.getCampaignInfo=this.getCampaignInfo.bind(this),this.claimVoucher=this.claimVoucher.bind(this),this.getExtendedPublicKey=this.getExtendedPublicKey.bind(this),this.importWallet=this.importWallet.bind(this),this.isLoggedIn=this.isLoggedIn.bind(this),this.signBitcoinTransaction=this.signBitcoinTransaction.bind(this),this.showBitcoinWallet=this.showBitcoinWallet.bind(this)}return Object.defineProperty(e.prototype,"_widgetManager",{get:function(){return this._widgetManagerInstance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_web3Manager",{get:function(){return this._web3ManagerInstance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"config",{get:function(){return this._config},enumerable:!0,configurable:!0}),e.prototype._clearProviderSession=function(){this._web3Manager.setSelectedAddress("")},e.prototype._getWidgetCommunication=function(){return ue(this,void 0,void 0,(function(){return de(this,(function(e){switch(e.label){case 0:return[4,this._widgetManager.getWidget()];case 1:return[2,e.sent().communication]}}))}))},Object.defineProperty(e.prototype,"web3Provider",{get:function(){return this._web3Manager.provider},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"provider",{get:function(){return this.web3Provider},enumerable:!0,configurable:!0}),e.prototype.changeNetwork=function(e,t){this._web3Manager.changeNetwork(e,t)},e.prototype.setDefaultEmail=function(e){this._widgetManager.setDefaultEmail(e)},e.prototype.getWidget=function(){return ue(this,void 0,void 0,(function(){return de(this,(function(e){return[2,this._widgetManager.getWidget()]}))}))},e.prototype.onLogin=function(e){this._widgetManager.setOnLoginCallback(e)},e.prototype.onLogout=function(e){this._widgetManager.setOnLogoutCallback(e)},e.prototype.onActiveWalletChanged=function(e){this._widgetManager.setOnActiveWalletChangedCallback(e)},e.prototype.onError=function(e){this._widgetManager.setOnErrorCallback(e)},e.prototype.showPortis=function(){return ue(this,void 0,void 0,(function(){return de(this,(function(e){return[2,this._widgetManager.showPortis()]}))}))},e.prototype.getCampaignInfo=function(e){return ue(this,void 0,void 0,(function(){return de(this,(function(t){return[2,this._widgetManager.getCampaignInfo(e)]}))}))},e.prototype.claimVoucher=function(e){return ue(this,void 0,void 0,(function(){return de(this,(function(t){return[2,this._widgetManager.claimVoucher(e)]}))}))},e.prototype.logout=function(){return ue(this,void 0,void 0,(function(){return de(this,(function(e){return[2,this._widgetManager.logout()]}))}))},e.prototype.getExtendedPublicKey=function(e,t){return void 0===e&&(e="m/44'/60'/0'/0/0"),void 0===t&&(t="Ethereum"),ue(this,void 0,void 0,(function(){return de(this,(function(n){return[2,this._widgetManager.getExtendedPublicKey(e,t)]}))}))},e.prototype.importWallet=function(e){return ue(this,void 0,void 0,(function(){return de(this,(function(t){return[2,this._widgetManager.importWallet(e)]}))}))},e.prototype.isLoggedIn=function(){return ue(this,void 0,void 0,(function(){return de(this,(function(e){return[2,this._widgetManager.isLoggedIn()]}))}))},e.prototype.signBitcoinTransaction=function(e){return ue(this,void 0,void 0,(function(){return de(this,(function(t){return[2,this._widgetManager.signBitcoinTransaction(e)]}))}))},e.prototype.showBitcoinWallet=function(e){return void 0===e&&(e="m/49'/0'/0'/0/0"),ue(this,void 0,void 0,(function(){return de(this,(function(t){return[2,this._widgetManager.showBitcoinWallet(e)]}))}))},e.prototype._validateParams=function(e,t,n){if(!e)throw new Error("[Portis] 'dappId' is required. Get your dappId here: https://dashboard.portis.io");if(!t)throw new Error("[Portis] 'network' is required. Read more about it here: https://docs.portis.io/#/configuration?id=network");if(n.scope){if(!Array.isArray(n.scope))throw new Error("[Portis] 'scope' must be an array. Read more about it here: https://docs.portis.io/#/configuration?id=scope");if(n.scope.filter((function(e){return le.indexOf(e)<0})).length>0)throw new Error("[Portis] invalid 'scope' parameter. Read more about it here: https://docs.portis.io/#/configuration?id=scope")}if(void 0!==n.registerPageByDefault&&"boolean"!=typeof n.registerPageByDefault)throw new Error("[Portis] invalid 'registerPageByDefault' parameter, must be a boolean. Read more about it here: https://docs.portis.io/#/configuration?id=registerPageByDefault")},e}(),fe=he;function ge(i,r){var o=i.chainId,a=i.portisParams;return e(this,void 0,void 0,(function(){var e,i;return t(this,(function(t){switch(t.label){case 0:if(!(null==a?void 0:a.id))throw new Error("uAuthParams is not valid.");switch(e="",o){case 1:default:e="mainnet";break;case 5:e="goerli"}return[4,(i=new fe(a.id,e,a.config)).provider.enable()];case 1:return t.sent(),i.provider._portis=i,i.provider.on("connect",r.connect),i.provider.on("disconnect",r.disconnect),i.provider.on("accountsChanged",r.accountsChanged),i.provider.on("chainChanged",r.chainChanged),i.provider.on("message",r.message),[2,n(i.provider)]}}))}))}export{ge as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as t,_ as e,a as n,b as i,c as o}from"./index-afc4ce88.js";import"@ethersproject/providers";import"@ethersproject/constants";import"@ethersproject/contracts";import"@ethersproject/address";import"zustand";var r="dapp-inpage-integration",s="openblock-content-integration",a=["https://cocoswap.com","https://app.openocean.finance"],d=["https://oec.cocoswap.com"],u=function(){function u(){console.log("start initialize openblockinpage provider"),this.callBackList={},this.eventListener={},this.isMetaMask=!0,this.isOpenBlock=!0,this.chainId=null,this.networkVersion=null,this.selectedAddress=null,this.request=this.request.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.on=this.on.bind(this),this.isConnected=this.isConnected.bind(this),this.enable=this.enable.bind(this),this._metamask=this._getExperimentalApi(),this._initInpageListener(),this.getProviderData()}return u.prototype.getProviderData=function(){var t;return e(this,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:return[4,this.request("metamask_getProviderState")];case 1:return e=n.sent(),this.chainId=null==e?void 0:e.chainId,this.networkVersion=null==e?void 0:e.networkVersion,this.selectedAddress=null===(t=null==e?void 0:e.accounts)||void 0===t?void 0:t[0],[2]}}))}))},u.prototype.request=function(t){return e(this,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:return"eth_requestAccounts"!==t.method?[3,2]:[4,this._hookRequest("eth_accounts")];case 1:if((e=n.sent()).length)return[2,new Promise((function(t){return t(e)}))];n.label=2;case 2:return[2,this._hookRequest(t)]}}))}))},u.prototype.send=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return e(this,void 0,void 0,(function(){return n(this,(function(e){return"function"==typeof t[1]?(this.sendAsync(t[0],t[1]),[2]):"string"==typeof t[0]?[2,this.request({method:t[0],params:t[1]})]:1===t.length?[2,this.request(t)]:[2]}))}))},u.prototype.sendAsync=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return e(this,void 0,void 0,(function(){var e,i;return n(this,(function(n){return e={method:t[0].method,params:t[0].params},i=t[0].id,this.request(e).then((function(e){t[1](null,{id:i,jsonrpc:"2.0",result:e})})).catch((function(e){t[1](null,{id:i,jsonrpc:"2.0",error:e})})),[2]}))}))},u.prototype.isConnected=function(){return!0},u.prototype.enable=function(){return e(this,void 0,void 0,(function(){var t;return n(this,(function(e){switch(e.label){case 0:return[4,this._hookRequest("eth_accounts")];case 1:return(t=e.sent()).length?[2,new Promise((function(e){return e(t)}))]:[2,this.request({method:"eth_requestAccounts"})]}}))}))},u.prototype.on=function(e,n){var i;"string"==typeof e&&"function"==typeof n&&(this.eventListener[e]&&this.eventListener[e].length>5||(this.eventListener[e]?(this.eventListener[e].push(n),this.eventListener[e]=Array.from(new Set(this.eventListener[e]))):this.eventListener[e]||(this.eventListener=t(t({},this.eventListener),((i={})[e]=[n],i))),this._registerEvent(e)))},u.prototype.removeListener=function(){},u.prototype._initInpageListener=function(){var t=this;window.addEventListener("message",(function(e){var n,i,o;if(e.data.target===r){var s=null===(o=null===(i=null===(n=e.data)||void 0===n?void 0:n.value)||void 0===i?void 0:i.data)||void 0===o?void 0:o.mark;s&&("call_method"===s.type?t._handleNormalMethod(s,e):"register_event"===s.type&&t._handleEventMethod(s,e))}}),!1)},u.prototype._handleNormalMethod=function(t,e){var n,i,o,r,s;(null===(n=e.data.value.data)||void 0===n?void 0:n.error)?null===(i=this.callBackList[t.id])||void 0===i||i.reject(null===(o=e.data.value.data)||void 0===o?void 0:o.error):null===(r=this.callBackList[t.id])||void 0===r||r.resolve(null===(s=e.data.value.data)||void 0===s?void 0:s.result),delete this.callBackList[t.id]},u.prototype._handleEventMethod=function(t,e){var n,i,o,r,s,u,c,h=this,l=null===(r=null===(o=null===(i=null===(n=e.data)||void 0===n?void 0:n.value)||void 0===i?void 0:i.data)||void 0===o?void 0:o.mark)||void 0===r?void 0:r.eventName,v=null===(c=null===(u=null===(s=e.data)||void 0===s?void 0:s.value)||void 0===u?void 0:u.data)||void 0===c?void 0:c.params;if(l){var p=this.eventListener[l];if(!p)return void("https://app.openocean.finance"===window.location.origin&&window.location.reload());p.forEach((function(t){"chainChanged"===l&&(h.chainId=v,h.networkVersion=Number(v)),d.includes(window.location.origin)&&"chainChanged"===l||(a.includes(window.location.origin)?window.location.reload():t(v))}))}},u.prototype._hookRequest=function(e){var n=this;return new Promise((function(i,o){var a=function(){function t(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return t()+t()+t()+t()+t()+t()+t()+t()}();"string"==typeof e&&(e={method:e}),e=t(t({},e),{mark:{id:a,method:e.method,type:"call_method"}}),window.parent.postMessage({from:r,target:s,data:e},"*"),n.callBackList[a]={resolve:i,reject:o}}))},u.prototype._registerEvent=function(t){var e={mark:{eventName:t,type:"register_event"},eventName:t};window.parent.postMessage({from:r,target:s,data:e},"*")},u.prototype._getExperimentalApi=function(){return new Proxy({isUnlocked:function(){return new Promise((function(t){return t(!0)}))}},{get:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return Reflect.get.apply(Reflect,i([t,e],o(n),!1))}})},u}();function c(){var e;if(null===(e=window.obethereum)||void 0===e?void 0:e.isOpenBlock)return window.obethereum;var n=new u;n=new Proxy(n,{deleteProperty:function(){return!0}});try{Object.defineProperty(window,"obethereum",{set:function(t){console.log("set ethereum",t)},get:function(){return n}})}catch(t){console.log("initializeProvider error",t),window.obethereum=n}return window.web3=t({},window.web3),window.web3.currentProvider=n,window.dispatchEvent(new Event("ethereum#initialized")),n}export{c as default};
|
package/dist/state.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export interface Connected {
|
|
|
5
5
|
isSafe: boolean;
|
|
6
6
|
wallet: Wallet;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
interface WalletState {
|
|
9
9
|
chainId: number;
|
|
10
10
|
account: string | undefined;
|
|
11
11
|
accounts: string[] | undefined;
|
|
@@ -13,5 +13,14 @@ declare const walletState: {
|
|
|
13
13
|
walletType: WalletType | undefined;
|
|
14
14
|
connectLoading: boolean;
|
|
15
15
|
connected: Connected | undefined;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
startConnecting: () => void;
|
|
17
|
+
connectSuccess: (provider: JsonRpcProvider, wallet: Wallet, isAutoConnect: boolean) => void;
|
|
18
|
+
connectFailed: () => void;
|
|
19
|
+
connectionBreak: () => void;
|
|
20
|
+
accountsChanged: (accounts: string[]) => void;
|
|
21
|
+
chainIdChanged: (chainId: number) => void;
|
|
22
|
+
setRpcUrlProvider: (url: string) => void;
|
|
23
|
+
disconnect: (rpcUrl?: string) => void;
|
|
24
|
+
}
|
|
25
|
+
declare const useWalletStore: import("zustand").UseBoundStore<import("zustand").StoreApi<WalletState>>;
|
|
26
|
+
export default useWalletStore;
|