@dodoex/wallet-web3 0.0.3-2 → 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.
Files changed (45) hide show
  1. package/dist/cjs/controllers/ConnectController.d.ts +6 -5
  2. package/dist/cjs/core/index.d.ts +1 -1
  3. package/dist/cjs/{index-a32c3cfa.cjs → index-0eeb697b.cjs} +2 -2
  4. package/dist/cjs/{index-e0e60b3b.cjs → index-3a14a931.cjs} +2 -2
  5. package/dist/cjs/index-a26b6945.cjs +1 -0
  6. package/dist/cjs/index-a9081fe4.cjs +1 -0
  7. package/dist/cjs/index.cjs +1 -1
  8. package/dist/cjs/index.d.ts +1 -1
  9. package/dist/cjs/portis-8c790653.cjs +1 -0
  10. package/dist/cjs/provider-95f3425c.cjs +1 -0
  11. package/dist/cjs/state.d.ts +12 -3
  12. package/dist/cjs/uAuth-692ecdf6.cjs +1 -0
  13. package/dist/cjs/walletConnect-14d9d490.cjs +1 -0
  14. package/dist/cjs/walletLink-b99948b8.cjs +1 -0
  15. package/dist/controllers/ConnectController.d.ts +6 -5
  16. package/dist/core/index.d.ts +1 -1
  17. package/dist/{index-6cdefd52.js → index-3a9d1d45.js} +2 -2
  18. package/dist/{index-83293e8e.js → index-9af08480.js} +1 -1
  19. package/dist/index-a2c8f38f.js +1 -0
  20. package/dist/index-afc4ce88.js +1 -0
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/portis-f89a1cba.js +1 -0
  24. package/dist/provider-1ecbc0fa.js +1 -0
  25. package/dist/state.d.ts +12 -3
  26. package/dist/uAuth-1f7b3a0a.js +1 -0
  27. package/dist/walletConnect-ac756ff6.js +1 -0
  28. package/dist/walletLink-c286f908.js +1 -0
  29. package/package.json +2 -2
  30. package/dist/cjs/controllers/StateController.d.ts +0 -27
  31. package/dist/cjs/index-23606273.cjs +0 -1
  32. package/dist/cjs/index-e948d9e4.cjs +0 -19
  33. package/dist/cjs/portis-cf05b1f4.cjs +0 -1
  34. package/dist/cjs/provider-de4ee5b7.cjs +0 -1
  35. package/dist/cjs/uAuth-075fec28.cjs +0 -1
  36. package/dist/cjs/walletConnect-58449a61.cjs +0 -1
  37. package/dist/cjs/walletLink-e3b39e1b.cjs +0 -1
  38. package/dist/controllers/StateController.d.ts +0 -27
  39. package/dist/index-822c6d78.js +0 -1
  40. package/dist/index-ecbe3d8d.js +0 -19
  41. package/dist/portis-b3fee0d6.js +0 -1
  42. package/dist/provider-30d55a46.js +0 -1
  43. package/dist/uAuth-343d653d.js +0 -1
  44. package/dist/walletConnect-ea07b187.js +0 -1
  45. package/dist/walletLink-39bc8bdc.js +0 -1
@@ -1,19 +0,0 @@
1
- "use strict";var e=require("@ethersproject/providers"),t=require("@ethersproject/constants"),n=require("@ethersproject/contracts"),r=require("@ethersproject/address"),o=require("valtio");function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=function(e,t){return a=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])},a(e,t)};function s(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}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function l(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function c(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}exports.__assign=function(){return exports.__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},exports.__assign.apply(this,arguments)};var u=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function d(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function h(e){return this instanceof h?(this.v=e,this):new h(e)}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};var v,y,m=Object.freeze({__proto__:null,__extends:s,get __assign(){return exports.__assign},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},__decorate:function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__param:function(e,t){return function(n,r){t(n,r,e)}},__esDecorate:function(e,t,n,r,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?r.static?e:e.prototype:null,p=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),f=!1,d=n.length-1;d>=0;d--){var h={};for(var C in r)h[C]="access"===C?{}:r[C];for(var C in r.access)h.access[C]=r.access[C];h.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var v=(0,n[d])("accessor"===l?{get:p.get,set:p.set}:p[c],h);if("accessor"===l){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(s=a(v.get))&&(p.get=s),(s=a(v.set))&&(p.set=s),(s=a(v.init))&&o.push(s)}else(s=a(v))&&("field"===l?o.push(s):p[c]=s)}u&&Object.defineProperty(u,r.name,p),f=!0},__runInitializers:function(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?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:l,__generator:c,__createBinding:u,__exportStar:function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||u(t,e,n)},__values:p,__read:f,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e},__spreadArrays:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},__spreadArray:d,__await:h,__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof h?Promise.resolve(n.value.v).then(l,c):u(i[0][2],n)}catch(e){u(i[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:h(e[r](t)),done:!1}:o?o(t):t}:o}},__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=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(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)&&u(t,e,n);return C(t,e),t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},__classPrivateFieldSet:function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.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"}(v||(v={})),exports.WalletType=void 0,(y=exports.WalletType||(exports.WalletType={})).injected="injected",y.BinanceChain="custom-bsc-injected",y.WalletConnect="walletconnect",y.Portis="portis",y.Gnosis="custom-gnosis",y.WalletLink="custom-walletlink",y.LedgerUSB="custom-ledger-usb",y.Ledger="custom-ledger",y.openBlock="custom-open-block",y.openBlockIframe="custom-open-block-iframe",y.Nabox="custom-nabox",y.Bitkeep="custom-bitkeep",y.OneKey="custom-onekey",y.OKX="custom-okx",y.uAuth="custom-uauth",y.kuCoinWallet="custom-kucoin-wallet",y.frontier="custom-frontier";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 w(e){return l(this,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,Promise.resolve().then((function(){return i(require("@ethersproject/providers"))}))];case 1:return[2,new(0,t.sent().Web3Provider)(e)]}}))}))}function D(e,t){return void 0===e&&(e=null),l(this,void 0,void 0,(function(){var n;return c(this,(function(r){switch(r.label){case 0:return(n=e||window.ethereum)?[4,n.request({method:"eth_requestAccounts"})]:[3,2];case 1:return r.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}r.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,w(n)]}}))}))}function b(e){var t=e.addChainParameters,n=e.provider,r=void 0===n?window.ethereum:n;return l(this,void 0,void 0,(function(){var e,n,o,i;return c(this,(function(a){switch(a.label){case 0:if(!r)return[2,{result:!1}];e=t.chainId,a.label=1;case 1:return a.trys.push([1,3,,8]),[4,r.request({method:"wallet_switchEthereumChain",params:[{chainId:e}]})];case 2:return a.sent(),[2,{result:!0}];case 3:if(n=a.sent(),4902!==(o=n.code)&&-32603!==o)return[3,7];a.label=4;case 4:return a.trys.push([4,6,,7]),[4,r.request({method:"wallet_addEthereumChain",params:[t]})];case 5:return a.sent(),[2,{result:!0}];case 6:return i=a.sent(),console.error("[failed to add ".concat(e,"]: "),t,i),[3,7];case 7:return console.error("[failed to switch ".concat(e,"]: "),t,n),[3,8];case 8:return[2,{result:!1}]}}))}))}var E,_,F=function(){var e;return!!(null===(e=window.navigator)||void 0===e?void 0:e.hid)},x=function(){var e;return(null===(e=window.navigator)||void 0===e?void 0:e.userAgent)&&/(Android)/i.test(navigator.userAgent)},O=function(){var e;return/(iPhone|iPad|iPod|iOS)/i.test(null===(e=window.navigator)||void 0===e?void 0:e.userAgent)},k=function(){return x()||O()},A=function(){if("undefined"!=typeof window)return window},S=!1,L=1,T={},P=!1;null===(E=A())||void 0===E||E.addEventListener("message",(function(e){"openblock-content-integration"===e.data.from&&(S=!0,Object.values(T).map((function(e){return e()})))})),null===(_=A())||void 0===_||_.addEventListener("load",(function(){setTimeout((function(){P=!0,Object.values(T).map((function(e){return e()}))}),1e3)}),{once:!0});var B=function(){return l(void 0,void 0,void 0,(function(){return c(this,(function(e){return[2,new Promise((function(e){S?e(!0):window.parent===window||P?e(!1):(L++,T[L]=function(){e(S),delete T[L]})}))]}))}))},M=function(e,t){return l(void 0,void 0,void 0,(function(){var e;return c(this,(function(n){switch(n.label){case 0:return[4,Promise.resolve().then((function(){return require("./provider-de4ee5b7.cjs")}))];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,w(e)]}}))}))};function R(){return Promise.resolve().then((function(){return require("./index-a32c3cfa.cjs")}))}function j(){return Promise.resolve().then((function(){return require("./index-23606273.cjs")}))}function I(){return Promise.resolve().then((function(){return require("./uAuth-075fec28.cjs")}))}function V(e,t){return l(this,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,Promise.resolve().then((function(){return require("./portis-cf05b1f4.cjs")}))];case 1:return[2,n.sent().default(e,t)]}}))}))}function N(e,t){return l(this,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,Promise.resolve().then((function(){return require("./walletLink-e3b39e1b.cjs")}))];case 1:return[2,n.sent().default(e,t)]}}))}))}function H(e,t){return l(this,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,Promise.resolve().then((function(){return require("./walletConnect-58449a61.cjs")}))];case 1:return[2,n.sent().default(e,t)]}}))}))}var W={type:exports.WalletType.injected,showName:"Coinbase Wallet",logo:g,supportMobile:!1,supportExtension:!1,switchChain:b,disabled:function(){return!(k()&&window.ethereum&&(window.ethereum.isWalletLink||window.ethereum.isToshi))},mobileAndroidDeepLink:"https://go.cb-w.com/dapp?cburl=$formattedAPPUrl",mobileIOSDeepLink:"cbwallet://dapp?url=$formattedAPPUrl"},z={type:exports.WalletType.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:b,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 }'))},Z={type:exports.WalletType.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:b,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"},U={type:exports.WalletType.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:b,disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isImToken)},mobileDeepLink:"imtokenv2://navigate/DappView?url=$formattedAPPUrl"},$={type:exports.WalletType.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:b,disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isMathWallet)}},G={type:exports.WalletType.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:b,link:"https://wallet.gamestop.com/"},q={type:exports.WalletType.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:b,link:"https://wallet-docs.brave.com/"},K={type:exports.WalletType.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:b,disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isHbWallet)}},Y={type:exports.WalletType.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:b,disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isCoin98)}},J=Object.freeze({__proto__:null,Coinbase:W,TokenPocket:z,Trust:Z,ImToken:U,Math:$,GameStop:G,Brave:q,Huobi:K,Coin98:Y}),X={type:exports.WalletType.WalletLink,showName:"Coinbase Wallet",logo:g,supportMobile:!0,disabled:function(){return!(!window.ethereum||!window.ethereum.isWalletLink&&!window.ethereum.isToshi&&document&&k())},connector:N},Q={type:exports.WalletType.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:[v.MAINNET,v.BSC],link:"https://www.bnbchain.world/en/binance-wallet",supportMobile:!1,disabled:function(){return!window.BinanceChain},connector:function(e,t){return D(window.BinanceChain,t)}},ee={type:exports.WalletType.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 D(window.kucoin,t)},switchChain:b,link:"https://kuwallet.com/"},te={type:exports.WalletType.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 D(null===(n=window.frontier)||void 0===n?void 0:n.ethereum,t)}},ne={type:exports.WalletType.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:[v.MAINNET,v.BSC,v.POLYGON],disabled:function(){return!F()},connector:function(e){return l(void 0,void 0,void 0,(function(){var t;return c(this,(function(n){switch(n.label){case 0:return F()&&e?[4,R()]:[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]}}))}))}},re={type:exports.WalletType.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:[v.MAINNET,v.GOERLI,v.BSC,v.POLYGON,v.HECO,v.ARBITRUM_ONE,v.OKCHAIN,v.OPTIMISM,v.AVALANCHE],disabled:function(){return!window.openblock},connector:function(e,t){return D(window.openblock,t)},switchChain:b},oe={type:exports.WalletType.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 D((null===(n=window.$onekey)||void 0===n?void 0:n.ethereum)||window.onekey,t)},switchChain:b},ie={type:exports.WalletType.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 D(null===(n=window.bitkeep)||void 0===n?void 0:n.ethereum,t)},switchChain:b},ae={type:exports.WalletType.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 D(window.NaboxWallet,t)},switchChain:b},se={type:exports.WalletType.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 D(window.okxwallet,t)},switchChain:b},le={type:exports.WalletType.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 H(e,t)}},ce={type:exports.WalletType.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:[v.MAINNET,v.GOERLI],checked:function(e){return!!e.PORTIS_ID},connector:function(e,t){return V(e,t)}},ue={type:exports.WalletType.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:[v.MAINNET,v.GOERLI,v.BSC,v.POLYGON,v.ARBITRUM_ONE,v.AURORA,v.AVALANCHE,v.OPTIMISM],link:"https://app.safe.global/welcome",disabled:function(){return l(void 0,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,j()];case 1:return[4,e.sent().getIsSafe()];case 2:return[2,!e.sent()]}}))}))},connector:function(e,t){return l(void 0,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,j()];case 1:return[2,e.sent().default(t)]}}))}))}},pe={type:exports.WalletType.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 l(void 0,void 0,void 0,(function(){var n;return c(this,(function(r){switch(r.label){case 0:return[4,I()];case 1:return[2,r.sent().default(exports.__assign(exports.__assign({},e),{uAuthParams:exports.__assign(exports.__assign({walletConnect:function(){return le.connector?le.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 l(void 0,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,I()];case 1:return[4,(0,e.sent().disconnectWallet)()];case 2:return e.sent(),[2]}}))}))}},fe=Object.freeze({__proto__:null,WalletLink:X,BSC:Q,KuCoin:ee,Frontier:te,Ledger:ne,OpenBlock:re,OneKey:oe,Bitkeep:ie,Nabox:ae,OKXWallet:se,WalletConnect:le,Portis:ce,Gnosis:ue,UAuth:pe}),de={type:exports.WalletType.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:b,disabled:function(){return!window.ethereum}},he=Object.values(J),Ce=Object.values(fe),ve=d(d([de],f(he),!1),f(Ce),!1),ye=exports.__assign(exports.__assign({},J),fe),me=exports.__assign(exports.__assign({},re),{disabled:function(){return!1},type:exports.WalletType.openBlockIframe,connector:M}),ge=[le.showName,de.showName,X.showName];function we(e){var t,n,r=void 0===e?{}:e,o=r.PORTIS_ID,i=r.chainId,a=r.includes,s=r.excludes,l=r.keysSort,c=r.mobileKeysSort,u=r.showSupportExtensionInjected,p=r.afterHooks,h=k(),C=(!a||a.includes(exports.WalletType.injected))&&(!s||!s.includes(exports.WalletType.injected)),v={PORTIS_ID:o},y=[],m=!1;C&&((n=he.find((function(e){if(!e.disabled)throw new Error("injected wallet need checked");return!e.disabled()})))||(n=de),n.connector=function(e,t){return D(void 0,t)},y.push(n),m=!!n.disabled&&!n.disabled());var g=function(e){return!(null==s?void 0:s.includes(e.type))&&(!(e.checked&&e.type!==exports.WalletType.injected&&!e.checked(v))&&(!(i&&e.supportChains&&!e.supportChains.includes(i))&&!(a&&!a.includes(e.type))))};if(h)if(m)g(le)&&y.push(le);else{ve.forEach((function(e){return!(!g(e)||!e.supportMobile||e.showName===(null==n?void 0:n.showName))&&(y.push(e),!0)}));var w=(null!==(t=null!=c?c:l)&&void 0!==t?t:[]).map((function(e){var t=ye[e];if(!t)throw new Error("unknown key ".concat(e));return t.showName})).filter((function(e){return!ge.includes(e)})),b=d(d([],f(ge),!1),f(w),!1);y=y.sort((function(e,t){var n=b.indexOf(e.showName),r=b.indexOf(t.showName);return-1===n&&(n=999),-1===r&&(r=999),n-r}))}else{var E=[];if(u&&he.forEach((function(e){return!(!e.supportExtension||!g(e)||e.showName===(null==n?void 0:n.showName))&&(E.push(e),!0)})),Ce.forEach((function(e){return!!g(e)&&(E.push(e),!0)})),l){var _=l.map((function(e){var t=ye[e];if(!t)throw new Error("unknown key ".concat(e));return t.showName}));E=E.sort((function(e,t){var n=_.indexOf(e.showName),r=_.indexOf(t.showName);return-1===n&&(n=999),-1===r&&(r=999),n-r}))}y=d(d([],f(y),!1),f(E),!1)}return p?p({isMobile:h,PORTIS_ID:o,chainId:i,includes:a,excludes:s,showSupportExtensionInjected:u,hasInjectedWallet:m,walletList:y}):y}function De(){return l(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return"undefined"==typeof window||window.top===window?[3,4]:[4,j()];case 1:return[4,e.sent().getIsSafe()];case 2:return e.sent()?[2,ue]:[4,B()];case 3:if(e.sent())return[2,me];e.label=4;case 4:return[2,void 0]}}))}))}function be(e){try{return r.getAddress(e)}catch(e){return!1}}const Ee=new WeakMap;function _e(e,t,n){const r=Ee.get(e);let o;r||console.warn("Please use proxy object");const i=[],a=r[3];let s=!1;const l=a((e=>{i.push(e),n?t(i.splice(0)):o||(o=Promise.resolve().then((()=>{o=void 0,s&&t(i.splice(0))})))}));return s=!0,()=>{s=!1,l()}}function Fe(e,t){const n=Ee.get(e);n||console.warn("Please use proxy object");const[r,o,i]=n;return i(r,o(),t)}let xe;const Oe=Symbol();var ke,Ae={exports:{}},Se={};function Le(){if(ke)return Se;ke=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),p=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},d=Object.assign,h={};function C(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}C.prototype.isReactComponent={},C.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},C.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=C.prototype;var m=y.prototype=new v;m.constructor=y,d(m,C.prototype),m.isPureReactComponent=!0;var g=Array.isArray,w=Object.prototype.hasOwnProperty,D={current:null},b={key:!0,ref:!0,__self:!0,__source:!0};function E(t,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)w.call(n,o)&&!b.hasOwnProperty(o)&&(i[o]=n[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(t&&t.defaultProps)for(o in l=t.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:e,type:t,key:a,ref:s,props:i,_owner:D.current}}function _(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var F=/\/+/g;function x(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return a=a(l=n),n=""===i?"."+x(l,0):i,g(a)?(o="",null!=n&&(o=n.replace(F,"$&/")+"/"),O(a,r,o,"",(function(e){return e}))):null!=a&&(_(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(F,"$&/")+"/")+n)),r.push(a)),1;if(l=0,i=""===i?".":i+":",g(n))for(var c=0;c<n.length;c++){var u=i+x(s=n[c],c);l+=O(s,r,o,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(n),"function"==typeof u)for(n=u.call(n),c=0;!(s=n.next()).done;)l+=O(s=s.value,r,o,u=i+x(s,c++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function k(e,t,n){if(null==e)return e;var r=[],o=0;return O(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function A(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var S={current:null},L={transition:null},T={ReactCurrentDispatcher:S,ReactCurrentBatchConfig:L,ReactCurrentOwner:D};return Se.Children={map:k,forEach:function(e,t,n){k(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return k(e,(function(){t++})),t},toArray:function(e){return k(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Se.Component=C,Se.Fragment=n,Se.Profiler=o,Se.PureComponent=y,Se.StrictMode=r,Se.Suspense=l,Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,Se.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=d({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=D.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in n)w.call(n,c)&&!b.hasOwnProperty(c)&&(o[c]=void 0===n[c]&&void 0!==l?l[c]:n[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:s}},Se.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},Se.createElement=E,Se.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},Se.createRef=function(){return{current:null}},Se.forwardRef=function(e){return{$$typeof:s,render:e}},Se.isValidElement=_,Se.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:A}},Se.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},Se.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},Se.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Se.useCallback=function(e,t){return S.current.useCallback(e,t)},Se.useContext=function(e){return S.current.useContext(e)},Se.useDebugValue=function(){},Se.useDeferredValue=function(e){return S.current.useDeferredValue(e)},Se.useEffect=function(e,t){return S.current.useEffect(e,t)},Se.useId=function(){return S.current.useId()},Se.useImperativeHandle=function(e,t,n){return S.current.useImperativeHandle(e,t,n)},Se.useInsertionEffect=function(e,t){return S.current.useInsertionEffect(e,t)},Se.useLayoutEffect=function(e,t){return S.current.useLayoutEffect(e,t)},Se.useMemo=function(e,t){return S.current.useMemo(e,t)},Se.useReducer=function(e,t,n){return S.current.useReducer(e,t,n)},Se.useRef=function(e){return S.current.useRef(e)},Se.useState=function(e){return S.current.useState(e)},Se.useSyncExternalStore=function(e,t,n){return S.current.useSyncExternalStore(e,t,n)},Se.useTransition=function(){return S.current.useTransition()},Se.version="18.2.0",Se}var Te,Pe,Be={exports:{}};
2
- /**
3
- * @license React
4
- * react.development.js
5
- *
6
- * Copyright (c) Facebook, Inc. and its affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */function Me(){return Te||(Te=1,function(e,t){"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),C=Symbol.iterator,v="@@iterator";function y(e){if(null===e||"object"!=typeof e)return null;var t=C&&e[C]||e[v];return"function"==typeof t?t:null}var m={current:null},g={transition:null},w={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},D={current:null},b={},E=null;function _(e){E=e}b.setExtraStackFrame=function(e){E=e},b.getCurrentStack=null,b.getStackAddendum=function(){var e="";E&&(e+=E);var t=b.getCurrentStack;return t&&(e+=t()||""),e};var F=!1,x=!1,O=!1,k=!1,A=!1,S={ReactCurrentDispatcher:m,ReactCurrentBatchConfig:g,ReactCurrentOwner:D};function L(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];P("warn",e,n)}function T(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];P("error",e,n)}function P(e,t,n){var r=S.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}S.ReactDebugCurrentFrame=b,S.ReactCurrentActQueue=w;var B={};function M(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+t;B[o]||(T("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),B[o]=!0)}var R={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){M(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){M(e,"replaceState")},enqueueSetState:function(e,t,n,r){M(e,"setState")}},j=Object.assign,I={};function V(e,t,n){this.props=e,this.context=t,this.refs=I,this.updater=n||R}Object.freeze(I),V.prototype.isReactComponent={},V.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},V.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var N={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},H=function(e,t){Object.defineProperty(V.prototype,e,{get:function(){L("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var W in N)N.hasOwnProperty(W)&&H(W,N[W]);function z(){}function Z(e,t,n){this.props=e,this.context=t,this.refs=I,this.updater=n||R}z.prototype=V.prototype;var U=Z.prototype=new z;U.constructor=Z,j(U,V.prototype),U.isPureReactComponent=!0;var $=Array.isArray;function G(e){return $(e)}function q(e){return""+e}function K(e){if(function(e){try{return q(e),!1}catch(e){return!0}}(e))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),q(e)}function Y(e){return e.displayName||"Context"}function J(e){if(null==e)return null;if("number"==typeof e.tag&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case p:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return Y(e)+".Consumer";case s:return Y(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case f:var t=e.displayName||null;return null!==t?t:J(e.type)||"Memo";case d:var n=e,h=n._payload,C=n._init;try{return J(C(h))}catch(e){return null}}return null}var X,Q,ee,te=Object.prototype.hasOwnProperty,ne={key:!0,ref:!0,__self:!0,__source:!0};function re(e){if(te.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function oe(e){if(te.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}ee={};var ie=function(e,t,r,o,i,a,s){var l={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ae(e,t,n){var r,o={},i=null,a=null,s=null,l=null;if(null!=t)for(r in re(t)&&(a=t.ref,function(e){if("string"==typeof e.ref&&D.current&&e.__self&&D.current.stateNode!==e.__self){var t=J(D.current.type);ee[t]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),ee[t]=!0)}}(t)),oe(t)&&(K(t.key),i=""+t.key),s=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)te.call(t,r)&&!ne.hasOwnProperty(r)&&(o[r]=t[r]);var c=arguments.length-2;if(1===c)o.children=n;else if(c>1){for(var u=Array(c),p=0;p<c;p++)u[p]=arguments[p+2];Object.freeze&&Object.freeze(u),o.children=u}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)void 0===o[r]&&(o[r]=f[r])}if(i||a){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&function(e,t){var n=function(){X||(X=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(o,d),a&&function(e,t){var n=function(){Q||(Q=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(o,d)}return ie(e,i,a,s,l,D.current,o)}function se(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,o,i=j({},e.props),a=e.key,s=e.ref,l=e._self,c=e._source,u=e._owner;if(null!=t)for(r in re(t)&&(s=t.ref,u=D.current),oe(t)&&(K(t.key),a=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)te.call(t,r)&&!ne.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==o?i[r]=o[r]:i[r]=t[r]);var p=arguments.length-2;if(1===p)i.children=n;else if(p>1){for(var f=Array(p),d=0;d<p;d++)f[d]=arguments[d+2];i.children=f}return ie(e.type,a,s,l,c,u,i)}function le(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var ce=".",ue=":";var pe=!1,fe=/\/+/g;function de(e){return e.replace(fe,"$&/")}function he(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(K(e.key),n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function Ce(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,c,u,p=!1;if(null===e)p=!0;else switch(s){case"string":case"number":p=!0;break;case"object":switch(e.$$typeof){case n:case r:p=!0}}if(p){var f=e,d=a(f),h=""===i?ce+he(f,0):i;if(G(d)){var C="";null!=h&&(C=de(h)+"/"),Ce(d,t,C,"",(function(e){return e}))}else null!=d&&(le(d)&&(!d.key||f&&f.key===d.key||K(d.key),l=d,c=o+(!d.key||f&&f.key===d.key?"":de(""+d.key)+"/")+h,d=ie(l.type,c,l.ref,l._self,l._source,l._owner,l.props)),t.push(d));return 1}var v=0,m=""===i?ce:i+ue;if(G(e))for(var g=0;g<e.length;g++)v+=Ce(u=e[g],t,o,m+he(u,g),a);else{var w=y(e);if("function"==typeof w){var D=e;w===D.entries&&(pe||L("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),pe=!0);for(var b,E=w.call(D),_=0;!(b=E.next()).done;)v+=Ce(u=b.value,t,o,m+he(u,_++),a)}else if("object"===s){var F=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===F?"object with keys {"+Object.keys(e).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}}return v}function ve(e,t,n){if(null==e)return e;var r=[],o=0;return Ce(e,r,"","",(function(e){return t.call(n,e,o++)})),r}var ye,me=-1,ge=0,we=1,De=2;function be(e){if(e._status===me){var t=(0,e._result)();if(t.then((function(t){if(e._status===ge||e._status===me){var n=e;n._status=we,n._result=t}}),(function(t){if(e._status===ge||e._status===me){var n=e;n._status=De,n._result=t}})),e._status===me){var n=e;n._status=ge,n._result=t}}if(e._status===we){var r=e._result;return void 0===r&&T("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||T("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function Ee(e){return"string"==typeof e||"function"==typeof e||(!!(e===o||e===a||A||e===i||e===u||e===p||k||e===h||F||x||O)||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===ye||void 0!==e.getModuleId))}function _e(){var e=m.current;return null===e&&T("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}ye=Symbol.for("react.module.reference");var Fe,xe,Oe,ke,Ae,Se,Le,Te=0;function Pe(){}Pe.__reactDisabledLog=!0;var Be,Me=S.ReactCurrentDispatcher;function Re(e,t,n){if(void 0===Be)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Be=r&&r[1]||""}return"\n"+Be+e}var je,Ie=!1,Ve="function"==typeof WeakMap?WeakMap:Map;function Ne(e,t){if(!e||Ie)return"";var n,r=je.get(e);if(void 0!==r)return r;Ie=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=Me.current,Me.current=null,function(){if(0===Te){Fe=console.log,xe=console.info,Oe=console.warn,ke=console.error,Ae=console.group,Se=console.groupCollapsed,Le=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Te++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var p="\n"+s[c].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),"function"==typeof e&&je.set(e,p),p}}while(c>=1&&u>=0);break}}}finally{Ie=!1,Me.current=o,function(){if(0==--Te){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:Fe}),info:j({},e,{value:xe}),warn:j({},e,{value:Oe}),error:j({},e,{value:ke}),group:j({},e,{value:Ae}),groupCollapsed:j({},e,{value:Se}),groupEnd:j({},e,{value:Le})})}Te<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",d=f?Re(f):"";return"function"==typeof e&&je.set(e,d),d}function He(e,t,n){if(null==e)return"";if("function"==typeof e)return Ne(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Re(e);switch(e){case u:return Re("Suspense");case p:return Re("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return Ne(e.render,!1);case f:return He(e.type,t,n);case d:var r=e,o=r._payload,i=r._init;try{return He(i(o),t,n)}catch(e){}}return""}je=new Ve;var We,ze={},Ze=S.ReactDebugCurrentFrame;function Ue(e){if(e){var t=e._owner,n=He(e.type,e._source,t?t.type:null);Ze.setExtraStackFrame(n)}else Ze.setExtraStackFrame(null)}function $e(e){if(e){var t=e._owner;_(He(e.type,e._source,t?t.type:null))}else _(null)}function Ge(){if(D.current){var e=J(D.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}We=!1;var qe={};function Ke(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=Ge();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!qe[n]){qe[n]=!0;var r="";e&&e._owner&&e._owner!==D.current&&(r=" It was passed a child from "+J(e._owner.type)+"."),$e(e),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),$e(null)}}}function Ye(e,t){if("object"==typeof e)if(G(e))for(var n=0;n<e.length;n++){var r=e[n];le(r)&&Ke(r,t)}else if(le(e))e._store&&(e._store.validated=!0);else if(e){var o=y(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)le(i.value)&&Ke(i.value,t)}}function Je(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==f)return;t=n.propTypes}if(t){var r=J(n);!function(e,t,n,r,o){var i=Function.call.bind(te);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(Ue(o),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),Ue(null)),s instanceof Error&&!(s.message in ze)&&(ze[s.message]=!0,Ue(o),T("Failed %s type: %s",n,s.message),Ue(null))}}(t,e.props,"prop",r,e)}else if(void 0!==n.PropTypes&&!We){We=!0,T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",J(n)||"Unknown")}"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xe(e,t,r){var i,a,s=Ee(e);if(!s){var l="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var c,u=null!=(i=t)&&void 0!==(a=i.__source)?"\n\nCheck your code at "+a.fileName.replace(/^.*[\\\/]/,"")+":"+a.lineNumber+".":"";l+=u||Ge(),null===e?c="null":G(e)?c="array":void 0!==e&&e.$$typeof===n?(c="<"+(J(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):c=typeof e,T("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",c,l)}var p=ae.apply(this,arguments);if(null==p)return p;if(s)for(var f=2;f<arguments.length;f++)Ye(arguments[f],e);return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){$e(e),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),$e(null);break}}null!==e.ref&&($e(e),T("Invalid attribute `ref` supplied to `React.Fragment`."),$e(null))}(p):Je(p),p}var Qe=!1;var et=!1,tt=null;var nt=0,rt=!1;function ot(e){e!==nt-1&&T("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),nt=e}function it(t,n,r){var o=w.current;if(null!==o)try{st(o),function(t){if(null===tt)try{var n=("require"+Math.random()).slice(0,7);tt=(e&&e[n]).call(e,"timers").setImmediate}catch(e){tt=function(e){!1===et&&(et=!0,"undefined"==typeof MessageChannel&&T("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}tt(t)}((function(){0===o.length?(w.current=null,n(t)):it(t,n,r)}))}catch(e){r(e)}else n(t)}var at=!1;function st(e){if(!at){at=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}e.length=0}catch(n){throw e=e.slice(t+1),n}finally{at=!1}}}var lt=Xe,ct=function(e,t,n){for(var r=se.apply(this,arguments),o=2;o<arguments.length;o++)Ye(arguments[o],r.type);return Je(r),r},ut=function(e){var t=Xe.bind(null,e);return t.type=e,Qe||(Qe=!0,L("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return L("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},pt={map:ve,forEach:function(e,t,n){ve(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return ve(e,(function(){t++})),t},toArray:function(e){return ve(e,(function(e){return e}))||[]},only:function(e){if(!le(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=pt,t.Component=V,t.Fragment=o,t.Profiler=a,t.PureComponent=Z,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S,t.cloneElement=ct,t.createContext=function(e){var t={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:s,_context:t};var n=!1,r=!1,o=!1,i={$$typeof:l,_context:t};return Object.defineProperties(i,{Provider:{get:function(){return r||(r=!0,T("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,T("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){o||(L("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),o=!0)}}}),t.Consumer=i,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=lt,t.createFactory=ut,t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===f?T("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?T("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&T("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||T("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:c,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(e.displayName=n)}}),n},t.isValidElement=le,t.lazy=function(e){var t,n,r={$$typeof:d,_payload:{_status:me,_result:e},_init:be};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){T("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){T("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},t.memo=function(e,t){Ee(e)||T("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:f,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},t.startTransition=function(e,t){var n=g.transition;g.transition={};var r=g.transition;g.transition._updatedFibers=new Set;try{e()}finally{if(g.transition=n,null===n&&r._updatedFibers)r._updatedFibers.size>10&&L("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear()}},t.unstable_act=function(e){var t=nt;nt++,null===w.current&&(w.current=[]);var n,r=w.isBatchingLegacy;try{if(w.isBatchingLegacy=!0,n=e(),!r&&w.didScheduleLegacyUpdate){var o=w.current;null!==o&&(w.didScheduleLegacyUpdate=!1,st(o))}}catch(e){throw ot(t),e}finally{w.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var i=n,a=!1,s={then:function(e,n){a=!0,i.then((function(r){ot(t),0===nt?it(r,e,n):e(r)}),(function(e){ot(t),n(e)}))}};return rt||"undefined"==typeof Promise||Promise.resolve().then((function(){})).then((function(){a||(rt=!0,T("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))})),s}var l=n;if(ot(t),0===nt){var c=w.current;return null!==c&&(st(c),w.current=null),{then:function(e,t){null===w.current?(w.current=[],it(l,e,t)):e(l)}}}return{then:function(e,t){e(l)}}},t.useCallback=function(e,t){return _e().useCallback(e,t)},t.useContext=function(e){var t=_e();if(void 0!==e._context){var n=e._context;n.Consumer===e?T("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&T("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return _e().useDebugValue(e,t)},t.useDeferredValue=function(e){return _e().useDeferredValue(e)},t.useEffect=function(e,t){return _e().useEffect(e,t)},t.useId=function(){return _e().useId()},t.useImperativeHandle=function(e,t,n){return _e().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return _e().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return _e().useLayoutEffect(e,t)},t.useMemo=function(e,t){return _e().useMemo(e,t)},t.useReducer=function(e,t,n){return _e().useReducer(e,t,n)},t.useRef=function(e){return _e().useRef(e)},t.useState=function(e){return _e().useState(e)},t.useSyncExternalStore=function(e,t,n){return _e().useSyncExternalStore(e,t,n)},t.useTransition=function(){return _e().useTransition()},t.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Be,Be.exports)),Be.exports}Pe=Ae,"production"===process.env.NODE_ENV?Pe.exports=Le():Pe.exports=Me();var Re,je={};var Ie,Ve={};
11
- /**
12
- * @license React
13
- * use-sync-external-store-shim.development.js
14
- *
15
- * Copyright (c) Facebook, Inc. and its affiliates.
16
- *
17
- * This source code is licensed under the MIT license found in the
18
- * LICENSE file in the root directory of this source tree.
19
- */function Ne(){return Ie||(Ie=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=Ae.exports,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];!function(e,n,r){var o=t.ReactDebugCurrentFrame.getStackAddendum();""!==o&&(n+="%s",r=r.concat([o]));var i=r.map((function(e){return String(e)}));i.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,i)}("error",e,r)}var r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=e.useState,i=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue,l=!1,c=!1;function u(e){var t=e.getSnapshot,n=e.value;try{var o=t();return!r(n,o)}catch(e){return!0}}var p=!!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?function(e,t,n){return t()}:function(t,p,f){l||void 0!==e.startTransition&&(l=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=p();if(!c){var h=p();r(d,h)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var C=o({inst:{value:d,getSnapshot:p}}),v=C[0].inst,y=C[1];return a((function(){v.value=d,v.getSnapshot=p,u(v)&&y({inst:v})}),[t,d,p]),i((function(){u(v)&&y({inst:v});return t((function(){u(v)&&y({inst:v})}))}),[t]),s(d),d},f=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:p;Ve.useSyncExternalStore=f,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ve}!function(e){"production"===process.env.NODE_ENV?e.exports=function(){if(Re)return je;Re=1;var e=Ae.exports,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,r=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function a(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),l=n({inst:{value:s,getSnapshot:t}}),c=l[0].inst,u=l[1];return o((function(){c.value=s,c.getSnapshot=t,a(c)&&u({inst:c})}),[e,s,t]),r((function(){return a(c)&&u({inst:c}),e((function(){a(c)&&u({inst:c})}))}),[e]),i(s),s};return je.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,je}():e.exports=Ne()}({exports:{}});var He=o.proxy({chainId:1,account:void 0,accounts:void 0,provider:void 0,walletType:void 0,connectLoading:!1,connected:void 0});!function(e,t){"string"==typeof t&&(console.warn("string name option is deprecated, use { name }. https://github.com/pmndrs/valtio/pull/400"),t={name:t});const{enabled:n,name:r=""}=t||{};let o;try{o=(null==n||n)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!o)return void(n&&console.warn("[Warning] Please install/enable Redux devtools extension"));let i=!1;const a=o.connect({name:r}),s=_e(e,(t=>{const n=t.filter((([e,t])=>t[0]!==Oe)).map((([e,t])=>`${e}:${t.map(String).join(".")}`)).join(", ");if(n)if(i)i=!1;else{const t=Object.assign({},Fe(e));delete t[Oe],a.send({type:n,updatedAt:(new Date).toLocaleString()},t)}})),l=a.subscribe((t=>{var n,r,o,s,l,c;if("ACTION"===t.type&&t.payload)try{Object.assign(e,JSON.parse(t.payload))}catch(e){console.error("please dispatch a serializable value that JSON.parse() and proxy() support\n",e)}if("DISPATCH"===t.type&&t.state){if("JUMP_TO_ACTION"===(null==(n=t.payload)?void 0:n.type)||"JUMP_TO_STATE"===(null==(r=t.payload)?void 0:r.type)){i=!0;const n=JSON.parse(t.state);Object.assign(e,n)}e[Oe]=t}else if("DISPATCH"===t.type&&"COMMIT"===(null==(o=t.payload)?void 0:o.type))a.init(Fe(e));else if("DISPATCH"===t.type&&"IMPORT_STATE"===(null==(s=t.payload)?void 0:s.type)){const n=null==(l=t.payload.nextLiftedState)?void 0:l.actionsById,r=(null==(c=t.payload.nextLiftedState)?void 0:c.computedStates)||[];i=!0,r.forEach((({state:t},r)=>{const o=n[r]||"No action found";Object.assign(e,t),0===r?a.init(Fe(e)):a.send(o,Fe(e))}))}}));a.init(Fe(e))}(He,{name:"dodo-wallet",enabled:!0});var We,ze=[{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"}];function Ze(){var e=He.provider;if(!e)throw new Error("provider is undefined");return e}exports.WatchResult=void 0,(We=exports.WatchResult||(exports.WatchResult={}))[We.Failed=0]="Failed",We[We.Success=1]="Success",We[We.Warning=2]="Warning";var Ue=function(e){return l(void 0,void 0,void 0,(function(){var t,n,r,o,i,a;return c(this,(function(s){switch(s.label){case 0:t=e.value,n=e.from,r=e.to,o=e.data,i={from:n,to:r,value:t,data:o},t&&!/^0x0*$/.test(t)||delete i.value,a=Ze(),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,a.estimateGas(i)];case 2:return[2,s.sent().add(5e4)];case 3:return s.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]}}))}))},$e=function(e){return l(void 0,void 0,void 0,(function(){var t,n,r,o,i;return c(this,(function(a){switch(a.label){case 0:t=Ze(),a.label=1;case 1:return a.trys.push([1,6,,7]),[4,t.getSigner().sendTransaction(e)];case 2:return n=a.sent(),(null===(i=He.connected)||void 0===i?void 0:i.isSafe)&&He.account?[4,j()]:[3,5];case 3:return[4,a.sent().getSafeTxHash(He.chainId,He.account,n.hash)];case 4:return r=a.sent(),[2,exports.__assign(exports.__assign({},n),{hash:r})];case 5:return[2,n];case 6:throw 4001===(null==(o=a.sent())?void 0:o.code)?new Error("Transaction rejected."):o;case 7:return[2]}}))}))};function Ge(e,r,o){if(!be(e)||e===t.AddressZero)throw Error("Invalid 'address' parameter '".concat(e,"'."));var i=null!=o?o:Ze(),a=He.account;return new n.Contract(e,r,function(e,t){return t?function(e,t){return e.getSigner(t).connectUnchecked()}(e,t):e}(i,a))}var qe=new Map;var Ke=function(){function e(e){var t=e.cacheKey,n=e.stateController;this.cacheKey=t,this.stateController=n}return e.prototype.setCacheType=function(e){localStorage.setItem(this.cacheKey,e)},e.prototype.removeCache=function(){localStorage.removeItem(this.cacheKey)},e.prototype.getCacheType=function(){return localStorage.getItem(this.cacheKey)},e.prototype.getConnectedWallet=function(){return l(this,void 0,void 0,(function(){var e,t;return c(this,(function(n){switch(n.label){case 0:return He.connectLoading?[4,Promise.race([new Promise((function(e){t=function(e,t){let n=!0;const r=new Set,o=new Map,i=()=>{n&&(n=!1,r.forEach((e=>e())),r.clear(),o.forEach((e=>e())),o.clear())},a=()=>{if(!n)return;r.forEach((e=>e())),r.clear();const i=new Set,s=xe;xe=r;try{const t=e((e=>(i.add(e),e)));t&&r.add(t)}finally{xe=s}o.forEach(((e,t)=>{i.has(t)?i.delete(t):(o.delete(t),e())})),i.forEach((e=>{const n=_e(e,a,null==t?void 0:t.sync);o.set(e,n)}))};return xe&&xe.add(i),a(),i}((function(t){!1===t(He).connectLoading&&e(!0)}))})),new Promise((function(t){e=setTimeout((function(){t(!1)}),4e3)}))])]:[3,2];case 1:n.sent(),clearTimeout(e),t&&t(),n.label=2;case 2:return[2,this._wallet]}}))}))},e.prototype.connectWallet=function(e,t,n){var r=(void 0===n?{}:n).isAutoConnect;return l(this,void 0,void 0,(function(){var n,o,i,a=this;return c(this,(function(s){switch(s.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 this.stateController.setConnectLoading(!0),n=e.type,[4,(0,e.connector)(t,{connect:function(e){var t=e.chainId,n=parseInt(t,16);n&&a.stateController.setChainId(n)},accountsChanged:function(e){a.stateController.setAccounts(e)},chainChanged:function(e){var t=parseInt(e,16);t&&a.stateController.setChainId(t)},message:function(){},disconnect:function(e){a.stateController.setConnected(void 0)}})];case 1:return(o=s.sent())?(this.setCacheType(n),this._wallet=e,[4,this.stateController.setProvider(o,n)]):[3,3];case 2:s.sent(),i=n===exports.WalletType.Gnosis,this.stateController.setConnected({isAutoConnect:!!r,wallet:e,isSafe:i}),!i&&n===exports.WalletType.WalletConnect&&He.account&&j().then((function(t){t.getAccountIsSafe(He.chainId,He.account).then((function(t){t&&a.stateController.setConnected({isAutoConnect:!!r,wallet:e,isSafe:!0})}))})),s.label=3;case 3:return this.stateController.setConnectLoading(!1),[2,o]}}))}))},e.prototype.disconnectWallet=function(){var e;return l(this,void 0,void 0,(function(){return c(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(),this.stateController.initialize(),[2]}}))}))},e}(),Ye=function(){function t(e){var t=e.rpcUrl;this.rpcUrl=t,this.state=He}return t.prototype.setConnectLoading=function(e){He.connectLoading=e},t.prototype.setProvider=function(e,t){return l(this,void 0,void 0,(function(){var n,r;return c(this,(function(i){switch(i.label){case 0:return He.provider=o.ref(e),[4,e.getNetwork()];case 1:return n=i.sent().chainId,r=[],t?[4,e.listAccounts()]:[3,3];case 2:r=i.sent(),i.label=3;case 3:return He.chainId=n,t?(He.walletType=t,He.accounts=r,He.account=He.accounts[0]):(He.account=void 0,He.accounts=void 0,He.walletType=void 0),[2]}}))}))},t.prototype.getProvider=function(){return He.provider},t.prototype.getState=function(){return He},t.prototype.setRpcUrl=function(t){if(this.rpcUrl=t,!He.provider){var n=new e.JsonRpcProvider(this.rpcUrl);this.setProvider(n)}},t.prototype.setChainId=function(e){He.chainId=null!=e?e:1},t.prototype.setAccounts=function(e){He.accounts=e,He.account=e.length?e[0]:void 0},t.prototype.setConnected=function(e){He.connected=e},t.prototype.initialize=function(){if(this.rpcUrl){var t=new e.JsonRpcProvider(this.rpcUrl);this.setProvider(t)}else He.chainId=1,He.account=void 0,He.accounts=void 0,He.walletType=void 0,He.provider=void 0},t}(),Je={cacheKey:"DODO-WALLET-CACHED-PROVIDER"},Xe=function(){function e(e){var t;this.isOpenBlockIframe=!1,this.isSafeIframe=!1;var n=exports.__assign(exports.__assign({},Je),e),r=n.providerConfig,o=n.walletListConfig,i=n.cacheKey;this.providerConfig=r;var a=we(exports.__assign({PORTIS_ID:null===(t=r.portisParams)||void 0===t?void 0:t.id},o));this.walletListConfig=o;var s=new Ye({rpcUrl:r.rpcUrl});this.stateController=s,this.connectController=new Ke({cacheKey:i,stateController:s}),this.autoConnect(a)}return e.prototype.autoConnect=function(e){return l(this,void 0,void 0,(function(){var t,n,r,o,i,a=this;return c(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),t=function(e){return a.connectToWallet(e,void 0,{isAutoConnect:!0})},[4,De()];case 1:return(n=s.sent())?[2,t(n)]:(r=this.connectController.getCacheType())&&(o=e.find((function(e){return e.type===r})))?[2,t(o)]:[3,3];case 2:return i=s.sent(),console.error(i),[3,3];case 3:return this.stateController.initialize(),[2]}}))}))},e.prototype.setRpcUrl=function(e){this.stateController.setRpcUrl(e)},e.prototype.getWalletList=function(e,t){var n;return we(exports.__assign(exports.__assign({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={}),l(this,void 0,void 0,(function(){return c(this,(function(r){return t&&(this.providerConfig=exports.__assign(exports.__assign({},this.providerConfig),t)),[2,this.connectController.connectWallet(e,this.providerConfig,n)]}))}))},e.prototype.disconnectWallet=function(){return this.connectController.disconnectWallet()},e.prototype.connectWalletBefore=function(e,t){if(He.walletType===e.type&&He.account)return!1;if(t){var n=e.link;return x()?n=e.mobileAndroidDeepLink||e.mobileDeepLink||e.link:O()&&(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}();exports.Core=Xe,exports.HD_PATH_LIST=[{path:"m/44'/60'/x'/0/0",name:"Ledger Live"},{path:"m/44'/60'/0'/x",name:"Legacy"}],exports.OpenBlockIframeWallet=me,exports.__awaiter=l,exports.__extends=s,exports.__generator=c,exports.__read=f,exports.__spreadArray=d,exports._tslib=m,exports.allWalletList=ve,exports.approve=function(e,t,n){return l(void 0,void 0,void 0,(function(){var r,o,i,a;return c(this,(function(s){switch(s.label){case 0:return r=Ge(e,ze),o=r.interface.encodeFunctionData("approve",[t,n]),i={from:He.account,to:e,data:o,value:"0x0",gasLimit:void 0},[4,Ue(i)];case 1:return(a=s.sent())&&(i.gasLimit=a),[4,$e(i)];case 2:return[2,s.sent()]}}))}))},exports.connectOpenBlockIframe=M,exports.convertWeb3Provider=w,exports.getContract=Ge,exports.getEstimateGas=Ue,exports.getGasPrice=function(){return l(void 0,void 0,void 0,(function(){var e;return c(this,(function(t){switch(t.label){case 0:e=Ze(),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]}}))}))},exports.getGnosisPackage=j,exports.getIsOpenBlockIframe=B,exports.getIsolatedEnvironmentWallet=De,exports.getLedgerUSBPackage=R,exports.getPortisConnector=V,exports.getProviderByChain=function(t,n){return l(this,void 0,void 0,(function(){var r;return c(this,(function(o){return!t||t===He.chainId&&He.provider?[2,He.provider]:qe.has(t)?[2,qe.get(t)]:(r=new e.JsonRpcProvider(n),qe.set(t,r),[2,r])}))}))},exports.getUAuthPackage=I,exports.getWalletConnectConnector=H,exports.getWalletDisabledStateFunction=function(){return l(this,void 0,void 0,(function(){var e,t,n,r=this;return c(this,(function(o){switch(o.label){case 0:return e=[],t=[],n=new Set,ve.forEach((function(o){if(o.disabled){var i=o.disabled(),a=o.type===exports.WalletType.injected;"boolean"==typeof i?a&&i?e.push(o.showName):i&&n.add(o.type):t.push((function(){return l(r,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,i];case 1:return e.sent()&&n.add(o.type),[2]}}))}))}))}})),[4,Promise.all(t.map((function(e){return e()})))];case 1:return o.sent(),[2,function(t){return t.type===exports.WalletType.injected?e.includes(t.showName):n.has(t.type)}]}}))}))},exports.getWalletLinkConnector=N,exports.getWalletList=we,exports.injectedConnect=D,exports.injectedList=he,exports.injectedListObject=J,exports.registerNetworkWithMetamask=b,exports.sendTransaction=$e,exports.standaloneList=Ce,exports.standaloneListObject=fe,exports.walletState=He,exports.watchTx=function(e,t,n,r,o){var i;return l(this,void 0,void 0,(function(){var a,s,l,u,p,d,h,C;return c(this,(function(c){switch(c.label){case 0:a=Ze(),c.label=1;case 1:if(t.killSwitch)return[3,11];c.label=2;case 2:return c.trys.push([2,8,,9]),(null===(i=He.connected)||void 0===i?void 0:i.isSafe)?[4,j()]:[3,5];case 3:return[4,c.sent().getSafeTxStatus(He.chainId,e,He.account)];case 4:return"rejected"===(s=c.sent())?[2,{status:exports.WatchResult.Warning,transactionReceipt:null}]:(l=void 0,s&&(l=s.status?exports.WatchResult.Success:exports.WatchResult.Failed),void 0!==l?[2,{status:l,transactionReceipt:s?exports.__assign(exports.__assign({},s),{blockNumber:s.blockNumber||void 0,status:s.status?1:0}):null}]:[3,7]);case 5:return[4,Promise.all([o?o(e):a.getTransactionReceipt(e),a.getTransactionCount(null!=r?r:"")])];case 6:if(u=f.apply(void 0,[c.sent(),2]),p=u[0],d=u[1],console.log("[TX Watch] Web3",p,"/Current Nonce ",d,"/TX Nonce",n),h=void 0,p&&(h=p.status?exports.WatchResult.Success:exports.WatchResult.Failed),void 0===h&&n&&d>n&&(h=exports.WatchResult.Warning),void 0!==h)return[2,{status:h,transactionReceipt:p}];c.label=7;case 7:return[3,9];case 8:return C=c.sent(),console.error("[TX Watch] Error",C.message),[3,9];case 9:return[4,new Promise((function(e){return setTimeout(e,t.interval)}))];case 10:return c.sent(),[3,1];case 11:return[2,null]}}))}))};
@@ -1 +0,0 @@
1
- "use strict";var e=require("./index-e948d9e4.cjs");function t(e,t){var i="string"==typeof e?Object.assign({},n[e]):e;if("object"!=typeof i)throw new Error("[Portis] illegal 'network' parameter. Read more about it here: https://docs.portis.io/#/configuration?id=network");if(!i.nodeUrl)throw new Error("[Portis] 'nodeUrl' is required. Read more about it here: https://docs.portis.io/#/configuration?id=network");if(t&&!i.gasRelayHubAddress)throw new Error("[Portis] can't find default gas relay hub for "+e);return"string"!=typeof e||t||delete i.gasRelayHubAddress,i}require("@ethersproject/providers"),require("@ethersproject/constants"),require("@ethersproject/contracts"),require("@ethersproject/address"),require("valtio");var n={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"}},i=function(){return!("undefined"==typeof window||!window.document)},r=!1;function o(){return new Promise((function(e,t){i()?r?e():["loaded","interactive","complete"].indexOf(document.readyState)>-1?(r=!0,e()):window.addEventListener("load",(function(){r=!0,e()}),!1):t()}))}function a(){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 s={};Object.defineProperty(s,"__esModule",{value:!0});var c=s.default=s.ERR_NOT_IN_IFRAME=s.ERR_CONNECTION_TIMEOUT=s.ERR_CONNECTION_DESTROYED=void 0,u="handshake",d="handshake-reply",l="call",h="reply",f="fulfilled",g="rejected",p="message",v="ConnectionDestroyed";s.ERR_CONNECTION_DESTROYED=v;var m="ConnectionTimeout";s.ERR_CONNECTION_TIMEOUT=m;var w="NotInIframe";s.ERR_NOT_IN_IFRAME=w;var b,y={"http:":"80","https:":"443"},_=/^(https?:)?\/\/([^/:]+)(:(\d+))?/,E={ERR_CONNECTION_DESTROYED:v,ERR_CONNECTION_TIMEOUT:m,ERR_NOT_IN_IFRAME:w,Promise:function(){try{return window?window.Promise:null}catch(e){return null}}(),debug:!1},C=(b=0,function(){return++b}),P=function(){if(E.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))}},k=function(e){var t=[];return e((function(){t.forEach((function(e){e()}))})),{then:function(e){t.push(e)}}},I=function(e){return{name:e.name,message:e.message,stack:e.stack}},W=function(e,t,n,i){var r=t.localName,o=t.local,a=t.remote,s=t.remoteOrigin,c=!1;P("".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(P("".concat(r,": Sending ").concat(e,"() call")),c){var u=new Error("Unable to send ".concat(e,"() call due ")+"to destroyed connection");throw u.code=v,u}return new E.Promise((function(t,i){var c=C();o.addEventListener(p,(function n(u){if(u.source===a&&u.origin===s&&u.data.penpal===h&&u.data.id===c){P("".concat(r,": Received ").concat(e,"() reply")),o.removeEventListener(p,n);var d=u.data.returnValue;u.data.returnValueIsError&&(l=d,g=new Error,Object.keys(l).forEach((function(e){return g[e]=l[e]})),d=g),(u.data.resolution===f?t:i)(d)}var l,g})),a.postMessage({penpal:l,id:c,methodName:e,args:n},s)}))}};i.then((function(){c=!0})),n.reduce((function(e,t){return e[t]=u(t),e}),e)},x=function(e,t,n){var i=e.localName,r=e.local,o=e.remote,a=e.remoteOrigin,s=!1;P("".concat(i,": Connecting call receiver"));var c=function(e){if(e.source===o&&e.origin===a&&e.data.penpal===l){var n=e.data,r=n.methodName,c=n.args,u=n.id;if(P("".concat(i,": Received ").concat(r,"() call")),r in t){var d=function(e){return function(t){if(P("".concat(i,": Sending ").concat(r,"() reply")),s)P("".concat(i,": Unable to send ").concat(r,"() reply due to destroyed connection"));else{var n={penpal:h,id:u,resolution:e,returnValue:t};e===g&&t instanceof Error&&(n.returnValue=I(t),n.returnValueIsError=!0);try{o.postMessage(n,a)}catch(e){throw"DataCloneError"===e.name&&o.postMessage({penpal:h,id:u,resolution:g,returnValue:I(e),returnValueIsError:!0},a),e}}}};new E.Promise((function(e){return e(t[r].apply(t,c))})).then(d(f),d(g))}}};r.addEventListener(p,c),n.then((function(){s=!0,r.removeEventListener(p,c)}))};E.connectToChild=function(e){var t,n=e.url,i=e.appendTo,r=e.methods,o=void 0===r?{}:r,a=e.timeout,s=new k((function(e){t=e})),c=window,l=document.createElement("iframe");(i||document.body).appendChild(l),s.then((function(){l.parentNode&&l.parentNode.removeChild(l)}));var h=l.contentWindow||l.contentDocument.parentWindow,f=function(e){var t,n,i,r=document.location,o=_.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!==y[t]?":".concat(i):"";return"".concat(t,"//").concat(n).concat(a)}(n);return{promise:new E.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=m,i(e),t()}),a));var g,w,b={},y=function(t){if(t.source===h&&t.origin===f&&t.data.penpal===u){P("Parent: Received handshake, sending reply"),t.source.postMessage({penpal:d,methodNames:Object.keys(o)},t.origin);var n={localName:"Parent",local:c,remote:h,remoteOrigin:t.origin};w&&w();var i=new k((function(e){s.then(e),w=e}));x(n,o,i),g&&g.forEach((function(e){delete b[e]})),g=t.data.methodNames,W(b,n,g,s),clearTimeout(r),e(b)}};c.addEventListener(p,y),s.then((function(){c.removeEventListener(p,y);var e=new Error("Connection destroyed");e.code=v,i(e)})),P("Parent: Loading iframe"),l.src=n})),iframe:l,destroy:t}},E.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=w,s}var c=new k((function(t){e=t})),l=window,h=l.parent,f=new E.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=m,n(t),e()}),a));var s=function e(n){if(("*"===i||i===n.origin)&&n.source===h&&n.data.penpal===d){P("Child: Received handshake reply"),l.removeEventListener(p,e);var a={localName:"Child",local:l,remote:h,remoteOrigin:n.origin},s={};x(a,o,c),W(s,a,n.data.methodNames,c),clearTimeout(r),t(s)}};l.addEventListener(p,s),c.then((function(){l.removeEventListener(p,s);var e=new Error("Connection destroyed");e.code=v,n(e)})),P("Child: Sending handshake"),h.postMessage({penpal:u,methodNames:Object.keys(o)},i)}));return{promise:f,destroy:e}};var T=E;c=s.default=T;var A=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())}))},O=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])}}},M=process.env.PORTIS_WIDGET_URL||"https://widget.portis.io",N="por_portis-widget-frame",L="por_portis-container";var R=function(){function e(t,n){this._widgetConfig=t,this._clearProviderSession=n,this._widgetUrl=M,this._onLoginCallback=function(){},this._onLogoutCallback=function(){},this._onErrorCallback=function(){},a(),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 A(this,void 0,void 0,(function(){var e;return O(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 A(this,void 0,void 0,(function(){return O(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 A(this,void 0,void 0,(function(){return O(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 A(this,void 0,void 0,(function(){return O(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 A(this,void 0,void 0,(function(){return O(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"),A(this,void 0,void 0,(function(){return O(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 A(this,void 0,void 0,(function(){return O(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 A(this,void 0,void 0,(function(){return O(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 A(this,void 0,void 0,(function(){return O(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"),A(this,void 0,void 0,(function(){return O(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 A(this,void 0,void 0,(function(){return O(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(L).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 A(this,void 0,void 0,(function(){var t,n,i,r,a;return O(this,(function(s){switch(s.label){case 0:return[4,o()];case 1:return s.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=L,(i=document.createElement("div")).id="portis-container-"+Date.now(),i.className=N,n.appendChild(i),document.body.appendChild(n),document.head.appendChild(t),[4,(r=c.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(a=s.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:a,widgetFrame:i}]}}))}))},e.prototype._setHeight=function(e){return A(this,void 0,void 0,(function(){return O(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}(),S=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())}))},D=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])}}},U=require("ethereumjs-util"),j=U.addHexPrefix,B=U.stripHexPrefix,q=U.BN,F="0x5208";function G(e,t){return S(this,void 0,void 0,(function(){var n,i,r,o,a;return D(this,(function(s){switch(s.label){case 0:return[4,e.getBlockByNumber("latest",!1)];case 1:return n=s.sent(),[4,V(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,H(e,t,n.gasLimit,r)];case 4:return[2,s.sent()];case 5:return s.sent(),[2,r];case 6:return[2]}}))}))}function V(e,t,n){return S(this,void 0,void 0,(function(){var i,r,o;return D(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:F,simpleSend:!0,gasLimitSpecified:!1}]}a.label=2;case 2:return o=K(n),s=o,c=20,u=new q(19),d=new q(c),[2,{safeGas:Y(s.mul(u).div(d)),simpleSend:!1,gasLimitSpecified:!1}]}var s,c,u,d}))}))}function H(e,t,n,i){return S(this,void 0,void 0,(function(){var r;return D(this,(function(o){switch(o.label){case 0:return t.gas=i,r=j,[4,e.estimateGas(t)];case 1:return[2,z(r.apply(void 0,[o.sent()]),n)]}}))}))}function z(e,t){var n=K(e),i=K(t).muln(.9),r=n.muln(1.5);return n.gt(i)?Y(n):r.lt(i)?Y(r):Y(i)}function K(e){return new q(B(e),16)}function Y(e){return j(e.toString(16))}var J=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}(),Q=function(){return Q=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},Q.apply(this,arguments)},X=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())}))},Z=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])}}},$=require("web3-provider-engine"),ee=require("web3-provider-engine/dist/es5/subproviders/cache.js"),te=require("web3-provider-engine/dist/es5/subproviders/fixture.js"),ne=require("web3-provider-engine/dist/es5/subproviders/filters.js"),ie=require("web3-provider-engine/dist/es5/subproviders/hooked-wallet.js"),re=require("web3-provider-engine/dist/es5/subproviders/nonce-tracker.js"),oe=require("web3-provider-engine/dist/es5/subproviders/subscriptions.js"),ae=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,n){var i=t(e,n);this.clearSubprovider(re),this.clearSubprovider(ee),this.config.network=i},e.prototype._initProvider=function(){var e=this;if(this.engine)return this.engine;this.engine=new $;var t=new J(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 te({web3_clientVersion:"Portis/v"+this.config.version+"/javascript",net_listening:!0,eth_hashrate:"0x00",eth_mining:!1,eth_syncing:!0})),this.engine.addProvider(new ee),this.engine.addProvider(new oe),this.engine.addProvider(new ne),this.engine.addProvider(new re),this.engine.addProvider({setEngine:function(e){return e},handleRequest:function(t,n){return X(e,void 0,void 0,(function(){return Z(this,(function(e){return t.id||(t.id=42),n(),[2]}))}))}}),this.engine.addProvider(new ie({getAccounts:function(t){return X(e,void 0,void 0,(function(){var e,n,i;return Z(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 X(e,void 0,void 0,(function(){var e,i,r;return Z(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 X(e,void 0,void 0,(function(){var e,i,r,o,a;return Z(this,(function(s){switch(s.label){case 0:return[4,this._getWidgetCommunication()];case 1:return e=s.sent(),i=Q({},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 X(e,void 0,void 0,(function(){var e,i,r,o,a;return Z(this,(function(s){switch(s.label){case 0:return[4,this._getWidgetCommunication()];case 1:return e=s.sent(),i=Q({},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 X(e,void 0,void 0,(function(){var e,i,r,o,a;return Z(this,(function(s){switch(s.label){case 0:return[4,this._getWidgetCommunication()];case 1:return e=s.sent(),i=Q({},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 X(e,void 0,void 0,(function(){var e,i,r,o,a;return Z(this,(function(s){switch(s.label){case 0:return[4,this._getWidgetCommunication()];case 1:return e=s.sent(),i=Q({},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 X(e,void 0,void 0,(function(){var e;return Z(this,(function(r){switch(r.label){case 0:return[4,G(t,n)];case 1:return e=r.sent(),i(null,e),[2]}}))}))},getGasPrice:function(t){return X(e,void 0,void 0,(function(){return Z(this,(function(e){return t(null,""),[2]}))}))}})),this.engine.addProvider({setEngine:function(e){return e},handleRequest:function(t,n,i){return X(e,void 0,void 0,(function(){var e,n,r;return Z(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}(),se=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())}))},ce=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])}}},ue=["email","reputation"];o().then((function(){document.getElementsByClassName(N).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 de=function(){function e(e,n,r){if(void 0===r&&(r={}),!i())return new Proxy(this,{get:function(e,t){return e[t]instanceof Function?function(){}:void 0}});a(),this._validateParams(e,n,r),this._config={dappId:e,network:t(n,r.gasRelay),version:"4.0.7",scope:r.scope,registerPageByDefault:r.registerPageByDefault,staging:r.staging,feature:r.feature},this._getWidgetCommunication=this._getWidgetCommunication.bind(this),this._widgetManagerInstance=new R(this.config,this._clearProviderSession),this._web3ManagerInstance=new ae(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 se(this,void 0,void 0,(function(){return ce(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 se(this,void 0,void 0,(function(){return ce(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 se(this,void 0,void 0,(function(){return ce(this,(function(e){return[2,this._widgetManager.showPortis()]}))}))},e.prototype.getCampaignInfo=function(e){return se(this,void 0,void 0,(function(){return ce(this,(function(t){return[2,this._widgetManager.getCampaignInfo(e)]}))}))},e.prototype.claimVoucher=function(e){return se(this,void 0,void 0,(function(){return ce(this,(function(t){return[2,this._widgetManager.claimVoucher(e)]}))}))},e.prototype.logout=function(){return se(this,void 0,void 0,(function(){return ce(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"),se(this,void 0,void 0,(function(){return ce(this,(function(n){return[2,this._widgetManager.getExtendedPublicKey(e,t)]}))}))},e.prototype.importWallet=function(e){return se(this,void 0,void 0,(function(){return ce(this,(function(t){return[2,this._widgetManager.importWallet(e)]}))}))},e.prototype.isLoggedIn=function(){return se(this,void 0,void 0,(function(){return ce(this,(function(e){return[2,this._widgetManager.isLoggedIn()]}))}))},e.prototype.signBitcoinTransaction=function(e){return se(this,void 0,void 0,(function(){return ce(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"),se(this,void 0,void 0,(function(){return ce(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 ue.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}(),le=de;exports.default=function(t,n){var i=t.chainId,r=t.portisParams;return e.__awaiter(this,void 0,void 0,(function(){var t,o;return e.__generator(this,(function(a){switch(a.label){case 0:if(!(null==r?void 0:r.id))throw new Error("uAuthParams is not valid.");switch(t="",i){case 1:default:t="mainnet";break;case 5:t="goerli"}return[4,(o=new le(r.id,t,r.config)).provider.enable()];case 1:return a.sent(),o.provider._portis=o,o.provider.on("connect",n.connect),o.provider.on("disconnect",n.disconnect),o.provider.on("accountsChanged",n.accountsChanged),o.provider.on("chainChanged",n.chainChanged),o.provider.on("message",n.message),[2,e.convertWeb3Provider(o.provider)]}}))}))};
@@ -1 +0,0 @@
1
- "use strict";var e=require("./index-e948d9e4.cjs");require("@ethersproject/providers"),require("@ethersproject/constants"),require("@ethersproject/contracts"),require("@ethersproject/address"),require("valtio");var t="dapp-inpage-integration",n="openblock-content-integration",i=["https://cocoswap.com","https://app.openocean.finance"],r=["https://oec.cocoswap.com"],o=function(){function o(){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 o.prototype.getProviderData=function(){var t;return e.__awaiter(this,void 0,void 0,(function(){var n;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,this.request("metamask_getProviderState")];case 1:return n=e.sent(),this.chainId=null==n?void 0:n.chainId,this.networkVersion=null==n?void 0:n.networkVersion,this.selectedAddress=null===(t=null==n?void 0:n.accounts)||void 0===t?void 0:t[0],[2]}}))}))},o.prototype.request=function(t){return e.__awaiter(this,void 0,void 0,(function(){var n;return e.__generator(this,(function(e){switch(e.label){case 0:return"eth_requestAccounts"!==t.method?[3,2]:[4,this._hookRequest("eth_accounts")];case 1:if((n=e.sent()).length)return[2,new Promise((function(e){return e(n)}))];e.label=2;case 2:return[2,this._hookRequest(t)]}}))}))},o.prototype.send=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(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]}))}))},o.prototype.sendAsync=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.__awaiter(this,void 0,void 0,(function(){var n,i;return e.__generator(this,(function(e){return n={method:t[0].method,params:t[0].params},i=t[0].id,this.request(n).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]}))}))},o.prototype.isConnected=function(){return!0},o.prototype.enable=function(){return e.__awaiter(this,void 0,void 0,(function(){var t;return e.__generator(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"})]}}))}))},o.prototype.on=function(t,n){var i;"string"==typeof t&&"function"==typeof n&&(this.eventListener[t]&&this.eventListener[t].length>5||(this.eventListener[t]?(this.eventListener[t].push(n),this.eventListener[t]=Array.from(new Set(this.eventListener[t]))):this.eventListener[t]||(this.eventListener=e.__assign(e.__assign({},this.eventListener),((i={})[t]=[n],i))),this._registerEvent(t)))},o.prototype.removeListener=function(){},o.prototype._initInpageListener=function(){var e=this;window.addEventListener("message",(function(n){var i,r,o;if(n.data.target===t){var s=null===(o=null===(r=null===(i=n.data)||void 0===i?void 0:i.value)||void 0===r?void 0:r.data)||void 0===o?void 0:o.mark;s&&("call_method"===s.type?e._handleNormalMethod(s,n):"register_event"===s.type&&e._handleEventMethod(s,n))}}),!1)},o.prototype._handleNormalMethod=function(e,t){var n,i,r,o,s;(null===(n=t.data.value.data)||void 0===n?void 0:n.error)?null===(i=this.callBackList[e.id])||void 0===i||i.reject(null===(r=t.data.value.data)||void 0===r?void 0:r.error):null===(o=this.callBackList[e.id])||void 0===o||o.resolve(null===(s=t.data.value.data)||void 0===s?void 0:s.result),delete this.callBackList[e.id]},o.prototype._handleEventMethod=function(e,t){var n,o,s,a,d,u,c,h=this,l=null===(a=null===(s=null===(o=null===(n=t.data)||void 0===n?void 0:n.value)||void 0===o?void 0:o.data)||void 0===s?void 0:s.mark)||void 0===a?void 0:a.eventName,v=null===(c=null===(u=null===(d=t.data)||void 0===d?void 0:d.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(e){"chainChanged"===l&&(h.chainId=v,h.networkVersion=Number(v)),r.includes(window.location.origin)&&"chainChanged"===l||(i.includes(window.location.origin)?window.location.reload():e(v))}))}},o.prototype._hookRequest=function(i){var r=this;return new Promise((function(o,s){var a=function(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+e()+e()+e()+e()+e()+e()}();"string"==typeof i&&(i={method:i}),i=e.__assign(e.__assign({},i),{mark:{id:a,method:i.method,type:"call_method"}}),window.parent.postMessage({from:t,target:n,data:i},"*"),r.callBackList[a]={resolve:o,reject:s}}))},o.prototype._registerEvent=function(e){var i={mark:{eventName:e,type:"register_event"},eventName:e};window.parent.postMessage({from:t,target:n,data:i},"*")},o.prototype._getExperimentalApi=function(){return new Proxy({isUnlocked:function(){return new Promise((function(e){return e(!0)}))}},{get:function(t,n){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];return Reflect.get.apply(Reflect,e.__spreadArray([t,n],e.__read(i),!1))}})},o}();exports.default=function(){var t;if(null===(t=window.obethereum)||void 0===t?void 0:t.isOpenBlock)return window.obethereum;var n=new o;n=new Proxy(n,{deleteProperty:function(){return!0}});try{Object.defineProperty(window,"obethereum",{set:function(e){console.log("set ethereum",e)},get:function(){return n}})}catch(e){console.log("initializeProvider error",e),window.obethereum=n}return window.web3=e.__assign({},window.web3),window.web3.currentProvider=n,window.dispatchEvent(new Event("ethereum#initialized")),n};