@matchain/matchid-sdk-react 0.1.53-alpha.17 → 0.1.53-alpha.18

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 (103) hide show
  1. package/dist/{chunk-CNO5SYSQ.mjs → chunk-ZMW4L3PS.mjs} +1 -1
  2. package/dist/chunk-ZMW4L3PS.mjs.map +1 -0
  3. package/dist/components/index.js.map +1 -1
  4. package/dist/components/index.mjs +1 -1
  5. package/dist/hooks/api/index.js.map +1 -1
  6. package/dist/hooks/api/index.mjs +1 -1
  7. package/dist/hooks/index.js.map +1 -1
  8. package/dist/hooks/index.mjs +1 -1
  9. package/dist/index.css +1 -1
  10. package/dist/index.js.map +1 -1
  11. package/dist/index.mjs +1 -1
  12. package/example/dist/assets/Arc-R3PUWRPJ-CUdEQO8X.js +1 -0
  13. package/example/dist/assets/Brave-24BM36UM-C6C5mkTK.js +1 -0
  14. package/example/dist/assets/Browser-4R4QKTV2-D3ON1q-S.js +1 -0
  15. package/example/dist/assets/Chrome-TLI42HDP-BgiVz-ma.js +1 -0
  16. package/example/dist/assets/Edge-AZ34LAFM-EBh9cG_z.js +1 -0
  17. package/example/dist/assets/Firefox-ZDK7RHKK-5nyhB0sj.js +1 -0
  18. package/example/dist/assets/Linux-VYP66PDO--MOvpQUa.js +1 -0
  19. package/example/dist/assets/Macos-5QL4JBJE-DLNYPiln.js +1 -0
  20. package/example/dist/assets/Opera-BKMCKUXC-CCypmVaM.js +1 -0
  21. package/example/dist/assets/Safari-PXQIVS6N-B-Lfxb9r.js +1 -0
  22. package/example/dist/assets/Windows-GTAT3OTE-K9Pt3pUF.js +1 -0
  23. package/example/dist/assets/apechain-COEQ5RUI-0TDoXOYf.js +1 -0
  24. package/example/dist/assets/ar_AR-ZRPPM56D-d2WEfzQ_.js +1349 -0
  25. package/example/dist/assets/arbitrum-HW44W6XR-hPA5bMPt.js +1 -0
  26. package/example/dist/assets/assets-NU2OP443-COMs-Mo6.js +1 -0
  27. package/example/dist/assets/avalanche-MXEFEDSW-DcC5FNt3.js +1 -0
  28. package/example/dist/assets/base-Z4LFBE5D-DHfqMzJC.js +1 -0
  29. package/example/dist/assets/berachain-ZN3U5LDZ-CAvW_8ws.js +1 -0
  30. package/example/dist/assets/bitgetWallet-CLYTW54T-Wwn2QYd0.js +1 -0
  31. package/example/dist/assets/blast-46UQLYYY-BV_Xlsq4.js +1 -0
  32. package/example/dist/assets/bsc-RVE67I5L-DVYEF0vl.js +1 -0
  33. package/example/dist/assets/ccip-BDKXo6px.js +1 -0
  34. package/example/dist/assets/celo-E6XU57FO-C5IguUgF.js +1 -0
  35. package/example/dist/assets/coinbaseWallet-WWX6LF36-BMRj6mTC.js +1 -0
  36. package/example/dist/assets/connect-MR6XDLIE-BET5HMNk.js +1 -0
  37. package/example/dist/assets/create-X4WFHLCW-De9pC3ym.js +1 -0
  38. package/example/dist/assets/cronos-ROYR77VZ-Prn3LRPZ.js +1 -0
  39. package/example/dist/assets/de_DE-GYZFZXWH-CYZf24IR.js +1349 -0
  40. package/example/dist/assets/degen-7ROC3GCY-9HqAkHtZ.js +1 -0
  41. package/example/dist/assets/es_419-OGVOQEFZ-D6BJPTeQ.js +1349 -0
  42. package/example/dist/assets/ethereum-RFBAMUVK-WsW8NXqo.js +1 -0
  43. package/example/dist/assets/events-BkMSjA73.js +1 -0
  44. package/example/dist/assets/flow-NBCRNYVF-D2XasjKk.js +1 -0
  45. package/example/dist/assets/fr_FR-Q5QBQBX2-lQoTmpTH.js +1349 -0
  46. package/example/dist/assets/gnosis-Y56LN66M-D4_J-ZQH.js +1 -0
  47. package/example/dist/assets/gravity-LMEBVSFN-DLxWpxhy.js +1 -0
  48. package/example/dist/assets/hardhat-NEEC6JX7-DzuWQYyS.js +1 -0
  49. package/example/dist/assets/hi_IN-7I7LRHGW-CTQjmeYe.js +1349 -0
  50. package/example/dist/assets/hooks.module-C5ONEBEq.js +1 -0
  51. package/example/dist/assets/hyperevm-J6CONVCX-C6oeYIAP.js +1 -0
  52. package/example/dist/assets/id_ID-ZMGZ2JFV-CgKQKAmU.js +1349 -0
  53. package/example/dist/assets/index-B2Qlu4MF.js +7 -0
  54. package/example/dist/assets/index-BoheypMD.js +1 -0
  55. package/example/dist/assets/index-CYnPIZzU.js +3 -0
  56. package/example/dist/assets/index-CbmgleoF.js +2 -0
  57. package/example/dist/assets/index-CuOEfj40.js +1 -0
  58. package/example/dist/assets/index-YsGNa18R.css +1 -0
  59. package/example/dist/assets/index-cne7xGMC.js +54 -0
  60. package/example/dist/assets/index-gNKTdR8a.js +3942 -0
  61. package/example/dist/assets/index.es-C16A-vcZ.js +71 -0
  62. package/example/dist/assets/injectedWallet-H7LYKTQS-CAHJNGc-.js +1 -0
  63. package/example/dist/assets/ink-4U4ZVNAB-AlM1MLfQ.js +1 -0
  64. package/example/dist/assets/ja_JP-NYBCHQTZ-CMaBl8Za.js +1349 -0
  65. package/example/dist/assets/kaia-A33DVQBT-Fgclbhio.js +1 -0
  66. package/example/dist/assets/ko_KR-67WE736M-DHWhIjcm.js +1349 -0
  67. package/example/dist/assets/linea-IALBSJQC-Cmyd7vgA.js +1 -0
  68. package/example/dist/assets/login-CWDTIDNK-DhDUYE4b.js +1 -0
  69. package/example/dist/assets/manta-5V6W5D7G-BnjsGzeJ.js +1 -0
  70. package/example/dist/assets/mantle-KBL3OIYT-DIpe0poV.js +1 -0
  71. package/example/dist/assets/metaMaskWallet-YFHEHW7V-BggUDXad.js +1 -0
  72. package/example/dist/assets/metaMaskWallet-YFHEHW7V-DBxkXEyI.js +1 -0
  73. package/example/dist/assets/ms_MY-65AJIBUS-BLlUrxe6.js +1349 -0
  74. package/example/dist/assets/okxWallet-GJMKZIND-Ctk5JsJ6.js +1 -0
  75. package/example/dist/assets/optimism-YWJ3IQHA-DYER-OR5.js +1 -0
  76. package/example/dist/assets/polygon-WWEUOMKW-CNBYSB1T.js +1 -0
  77. package/example/dist/assets/pt_BR-DMJANC65-DMs4DrlC.js +1349 -0
  78. package/example/dist/assets/rainbowWallet-2SR6TVBF-kimcGeuf.js +1 -0
  79. package/example/dist/assets/refresh-HJGJRASX-D0rkc63_.js +1 -0
  80. package/example/dist/assets/ronin-PNHX5V6H-BS-WPXjQ.js +1 -0
  81. package/example/dist/assets/ru_RU-WER7RQ6A-DsJK55uv.js +1349 -0
  82. package/example/dist/assets/safeWallet-VUYZPLY4-CXnodgMs.js +1 -0
  83. package/example/dist/assets/sanko-RHQYXGM5-OX010CbN.js +1 -0
  84. package/example/dist/assets/scan-DEOT2M37-1-mJ5OyF.js +1 -0
  85. package/example/dist/assets/scroll-MCKFTBRS-C2gqZSab.js +1 -0
  86. package/example/dist/assets/sign-A7IJEUT5-CGsRnPrd.js +1 -0
  87. package/example/dist/assets/th_TH-JOSHEZ6D-Cp87mIRZ.js +1349 -0
  88. package/example/dist/assets/tr_TR-EAMG2YPO-C52_xfsf.js +1349 -0
  89. package/example/dist/assets/uk_UA-GO2TRVWA-C1C1400t.js +1349 -0
  90. package/example/dist/assets/unichain-OQ3BZUDH-CyMLDmFg.js +1 -0
  91. package/example/dist/assets/vi_VN-5HLLSOJA-Dj7ferOp.js +1349 -0
  92. package/example/dist/assets/walletConnectWallet-FNSU4KNU-B0ci71fU.js +1 -0
  93. package/example/dist/assets/walletConnectWallet-FNSU4KNU-CBpCuHbd.js +1 -0
  94. package/example/dist/assets/xdc-X7V4QFNF-CSGs0o6M.js +1 -0
  95. package/example/dist/assets/zetachain-BMJKVYBN-IK2CZBr3.js +1 -0
  96. package/example/dist/assets/zh_CN-THPIFVWJ-Cbp71xMR.js +1349 -0
  97. package/example/dist/assets/zh_HK-R7XP4TGF-CyJtfKGw.js +1349 -0
  98. package/example/dist/assets/zh_TW-F5LD752V-AHFgsYw-.js +1349 -0
  99. package/example/dist/assets/zksync-UWUXFL74-Bt0brpXu.js +1 -0
  100. package/example/dist/assets/zora-YZH32HP3-CY3tp3EJ.js +1 -0
  101. package/example/dist/index.html +14 -0
  102. package/package.json +1 -1
  103. package/dist/chunk-CNO5SYSQ.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ import{h as v,g as C}from"./index-gNKTdR8a.js";import{e as H}from"./index-CuOEfj40.js";import{e as y}from"./events-BkMSjA73.js";function I(r,n){for(var c=0;c<n.length;c++){const e=n[c];if(typeof e!="string"&&!Array.isArray(e)){for(const h in e)if(h!=="default"&&!(h in r)){const u=Object.getOwnPropertyDescriptor(e,h);u&&Object.defineProperty(r,h,u.get?u:{enumerable:!0,get:()=>e[h]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var x={},p={};const N=v(H);var f={};Object.defineProperty(f,"__esModule",{value:!0});f.numberToHex=f.getLowerCase=void 0;function A(r){return r&&r.toLowerCase()}f.getLowerCase=A;function E(r){return`0x${r.toString(16)}`}f.numberToHex=E;Object.defineProperty(p,"__esModule",{value:!0});p.SafeAppProvider=void 0;const l=N,P=y,o=f;class L extends P.EventEmitter{constructor(n,c){super(),this.submittedTxs=new Map,this.safe=n,this.sdk=c}async connect(){this.emit("connect",{chainId:this.chainId})}async disconnect(){}get chainId(){return this.safe.chainId}async request(n){var h,u,w,T;const{method:c,params:e=[]}=n;switch(c){case"eth_accounts":return[this.safe.safeAddress];case"net_version":case"eth_chainId":return(0,o.numberToHex)(this.chainId);case"personal_sign":{const[s,t]=e;if(this.safe.safeAddress.toLowerCase()!==t.toLowerCase())throw new Error("The address or message hash is invalid");const a=await this.sdk.txs.signMessage(s);return("signature"in a?a.signature:void 0)||"0x"}case"eth_sign":{const[s,t]=e;if(this.safe.safeAddress.toLowerCase()!==s.toLowerCase()||!t.startsWith("0x"))throw new Error("The address or message hash is invalid");const a=await this.sdk.txs.signMessage(t);return("signature"in a?a.signature:void 0)||"0x"}case"eth_signTypedData":case"eth_signTypedData_v4":{const[s,t]=e,a=typeof t=="string"?JSON.parse(t):t;if(this.safe.safeAddress.toLowerCase()!==s.toLowerCase())throw new Error("The address is invalid");const i=await this.sdk.txs.signTypedMessage(a);return("signature"in i?i.signature:void 0)||"0x"}case"eth_sendTransaction":const d={...e[0],value:e[0].value||"0",data:e[0].data||"0x"};typeof d.gas=="string"&&d.gas.startsWith("0x")&&(d.gas=parseInt(d.gas,16));const m=await this.sdk.txs.send({txs:[d],params:{safeTxGas:d.gas}});return this.submittedTxs.set(m.safeTxHash,{from:this.safe.safeAddress,hash:m.safeTxHash,gas:0,gasPrice:"0x00",nonce:0,input:d.data,value:d.value,to:d.to,blockHash:null,blockNumber:null,transactionIndex:null}),m.safeTxHash;case"eth_blockNumber":return(await this.sdk.eth.getBlockByNumber(["latest"])).number;case"eth_getBalance":return this.sdk.eth.getBalance([(0,o.getLowerCase)(e[0]),e[1]]);case"eth_getCode":return this.sdk.eth.getCode([(0,o.getLowerCase)(e[0]),e[1]]);case"eth_getTransactionCount":return this.sdk.eth.getTransactionCount([(0,o.getLowerCase)(e[0]),e[1]]);case"eth_getStorageAt":return this.sdk.eth.getStorageAt([(0,o.getLowerCase)(e[0]),e[1],e[2]]);case"eth_getBlockByNumber":return this.sdk.eth.getBlockByNumber([e[0],e[1]]);case"eth_getBlockByHash":return this.sdk.eth.getBlockByHash([e[0],e[1]]);case"eth_getTransactionByHash":let g=e[0];try{g=(await this.sdk.txs.getBySafeTxHash(g)).txHash||g}catch{}return this.submittedTxs.has(g)?this.submittedTxs.get(g):this.sdk.eth.getTransactionByHash([g]).then(s=>(s&&(s.hash=e[0]),s));case"eth_getTransactionReceipt":{let s=e[0];try{s=(await this.sdk.txs.getBySafeTxHash(s)).txHash||s}catch{}return this.sdk.eth.getTransactionReceipt([s]).then(t=>(t&&(t.transactionHash=e[0]),t))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(e[0]);case"eth_call":return this.sdk.eth.call([e[0],e[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([e[0]]);case"eth_gasPrice":return this.sdk.eth.getGasPrice();case"wallet_getPermissions":return this.sdk.wallet.getPermissions();case"wallet_requestPermissions":return this.sdk.wallet.requestPermissions(e[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([e[0]]);case"wallet_sendCalls":{if(e[0].from!==this.safe.safeAddress)throw Error("Invalid from address");const s=e[0].calls.map((a,i)=>{if(a.chainId!==(0,o.numberToHex)(this.chainId))throw new Error(`Invalid call #${i}: Safe is not on chain ${a.chainId}`);if(!a.to)throw new Error(`Invalid call #${i}: missing "to" field`);return{to:a.to,data:a.data??"0x",value:a.value??(0,o.numberToHex)(0)}}),{safeTxHash:t}=await this.sdk.txs.send({txs:s});return t}case"wallet_getCallsStatus":{const s={[l.TransactionStatus.AWAITING_CONFIRMATIONS]:"PENDING",[l.TransactionStatus.AWAITING_EXECUTION]:"PENDING",[l.TransactionStatus.CANCELLED]:"CONFIRMED",[l.TransactionStatus.FAILED]:"CONFIRMED",[l.TransactionStatus.SUCCESS]:"CONFIRMED"},t=await this.sdk.txs.getBySafeTxHash(e[0]),a=s[t.txStatus];if(!t.txHash)return{status:a};const i=await this.sdk.eth.getTransactionReceipt([t.txHash]);if(!i)return{status:a};const _=((u=(h=t.txData)==null?void 0:h.dataDecoded)==null?void 0:u.method)!=="multiSend"?1:((T=(w=t.txData.dataDecoded.parameters)==null?void 0:w[0].valueDecoded)==null?void 0:T.length)??1,b=Number(i.blockNumber),k=Number(i.gasUsed),S=Array(_).fill({logs:i.logs,status:(0,o.numberToHex)(t.txStatus===l.TransactionStatus.SUCCESS?1:0),chainId:(0,o.numberToHex)(this.chainId),blockHash:i.blockHash,blockNumber:(0,o.numberToHex)(b),gasUsed:(0,o.numberToHex)(k),transactionHash:t.txHash});return{status:a,receipts:S}}case"wallet_showCallsStatus":throw new Error(`"${n.method}" not supported`);case"wallet_getCapabilities":return{[(0,o.numberToHex)(this.chainId)]:{atomicBatch:{supported:!0}}};default:throw Error(`"${n.method}" not implemented`)}}send(n,c){n||c("Undefined request"),this.request(n).then(e=>c(null,{jsonrpc:"2.0",id:n.id,result:e})).catch(e=>c(e,null))}}p.SafeAppProvider=L;(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.SafeAppProvider=void 0;var n=p;Object.defineProperty(r,"SafeAppProvider",{enumerable:!0,get:function(){return n.SafeAppProvider}})})(x);const B=C(x),$=I({__proto__:null,default:B},[x]);export{$ as i};
@@ -0,0 +1,3 @@
1
+ import{j as et,g as tt,u as nt,k as st,E as it}from"./index-gNKTdR8a.js";import{D as V,g as u,c as D,h as ae,y as rt}from"./hooks.module-C5ONEBEq.js";class E{constructor(e,n){this.scope=e,this.module=n}storeObject(e,n){this.setItem(e,JSON.stringify(n))}loadObject(e){const n=this.getItem(e);return n?JSON.parse(n):void 0}setItem(e,n){localStorage.setItem(this.scopedKey(e),n)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){const e=this.scopedKey(""),n=[];for(let s=0;s<localStorage.length;s++){const i=localStorage.key(s);typeof i=="string"&&i.startsWith(e)&&n.push(i)}n.forEach(s=>localStorage.removeItem(s))}scopedKey(e){return`-${this.scope}${this.module?`:${this.module}`:""}:${e}`}static clearAll(){new E("CBWSDK").clear(),new E("walletlink").clear()}}const h={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}},Q={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}},Se="Unspecified error message.",at="Unspecified server error.";function te(t,e=Se){if(t&&Number.isInteger(t)){const n=t.toString();if(Z(Q,n))return Q[n].message;if(Ce(t))return at}return e}function ot(t){if(!Number.isInteger(t))return!1;const e=t.toString();return!!(Q[e]||Ce(t))}function ct(t,{shouldIncludeStack:e=!1}={}){const n={};if(t&&typeof t=="object"&&!Array.isArray(t)&&Z(t,"code")&&ot(t.code)){const s=t;n.code=s.code,s.message&&typeof s.message=="string"?(n.message=s.message,Z(s,"data")&&(n.data=s.data)):(n.message=te(n.code),n.data={originalError:oe(t)})}else n.code=h.rpc.internal,n.message=ce(t,"message")?t.message:Se,n.data={originalError:oe(t)};return e&&(n.stack=ce(t,"stack")?t.stack:void 0),n}function Ce(t){return t>=-32099&&t<=-32e3}function oe(t){return t&&typeof t=="object"&&!Array.isArray(t)?Object.assign({},t):t}function Z(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ce(t,e){return typeof t=="object"&&t!==null&&e in t&&typeof t[e]=="string"}const l={rpc:{parse:t=>w(h.rpc.parse,t),invalidRequest:t=>w(h.rpc.invalidRequest,t),invalidParams:t=>w(h.rpc.invalidParams,t),methodNotFound:t=>w(h.rpc.methodNotFound,t),internal:t=>w(h.rpc.internal,t),server:t=>{if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return w(e,t)},invalidInput:t=>w(h.rpc.invalidInput,t),resourceNotFound:t=>w(h.rpc.resourceNotFound,t),resourceUnavailable:t=>w(h.rpc.resourceUnavailable,t),transactionRejected:t=>w(h.rpc.transactionRejected,t),methodNotSupported:t=>w(h.rpc.methodNotSupported,t),limitExceeded:t=>w(h.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>R(h.provider.userRejectedRequest,t),unauthorized:t=>R(h.provider.unauthorized,t),unsupportedMethod:t=>R(h.provider.unsupportedMethod,t),disconnected:t=>R(h.provider.disconnected,t),chainDisconnected:t=>R(h.provider.chainDisconnected,t),unsupportedChain:t=>R(h.provider.unsupportedChain,t),custom:t=>{if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:e,message:n,data:s}=t;if(!n||typeof n!="string")throw new Error('"message" must be a nonempty string');return new Ae(e,n,s)}}};function w(t,e){const[n,s]=Me(e);return new _e(t,n||te(t),s)}function R(t,e){const[n,s]=Me(e);return new Ae(t,n||te(t),s)}function Me(t){if(t){if(typeof t=="string")return[t];if(typeof t=="object"&&!Array.isArray(t)){const{message:e,data:n}=t;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,n]}}return[]}class _e extends Error{constructor(e,n,s){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!n||typeof n!="string")throw new Error('"message" must be a nonempty string.');super(n),this.code=e,s!==void 0&&(this.data=s)}}class Ae extends _e{constructor(e,n,s){if(!dt(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,n,s)}}function dt(t){return Number.isInteger(t)&&t>=1e3&&t<=4999}function ne(){return t=>t}const W=ne(),lt=ne(),ut=ne();function S(t){return Math.floor(t)}const xe=/^[0-9]*$/,Pe=/^[a-f0-9]*$/;function x(t){return se(crypto.getRandomValues(new Uint8Array(t)))}function se(t){return[...t].map(e=>e.toString(16).padStart(2,"0")).join("")}function B(t){return new Uint8Array(t.match(/.{1,2}/g).map(e=>Number.parseInt(e,16)))}function O(t,e=!1){const n=t.toString("hex");return W(e?`0x${n}`:n)}function H(t){return O(X(t),!0)}function v(t){return ut(t.toString(10))}function A(t){return W(`0x${BigInt(t).toString(16)}`)}function Re(t){return t.startsWith("0x")||t.startsWith("0X")}function ie(t){return Re(t)?t.slice(2):t}function Le(t){return Re(t)?`0x${t.slice(2)}`:`0x${t}`}function z(t){if(typeof t!="string")return!1;const e=ie(t).toLowerCase();return Pe.test(e)}function ht(t,e=!1){if(typeof t=="string"){const n=ie(t).toLowerCase();if(Pe.test(n))return W(e?`0x${n}`:n)}throw l.rpc.invalidParams(`"${String(t)}" is not a hexadecimal string`)}function re(t,e=!1){let n=ht(t,!1);return n.length%2===1&&(n=W(`0${n}`)),e?W(`0x${n}`):n}function _(t){if(typeof t=="string"){const e=ie(t).toLowerCase();if(z(e)&&e.length===40)return lt(Le(e))}throw l.rpc.invalidParams(`Invalid Ethereum address: ${String(t)}`)}function X(t){if(Buffer.isBuffer(t))return t;if(typeof t=="string"){if(z(t)){const e=re(t,!1);return Buffer.from(e,"hex")}return Buffer.from(t,"utf8")}throw l.rpc.invalidParams(`Not binary data: ${String(t)}`)}function j(t){if(typeof t=="number"&&Number.isInteger(t))return S(t);if(typeof t=="string"){if(xe.test(t))return S(Number(t));if(z(t))return S(Number(BigInt(re(t,!0))))}throw l.rpc.invalidParams(`Not an integer: ${String(t)}`)}function N(t){if(t!==null&&(typeof t=="bigint"||ft(t)))return BigInt(t.toString(10));if(typeof t=="number")return BigInt(j(t));if(typeof t=="string"){if(xe.test(t))return BigInt(t);if(z(t))return BigInt(re(t,!0))}throw l.rpc.invalidParams(`Not an integer: ${String(t)}`)}function pt(t){if(typeof t=="string")return JSON.parse(t);if(typeof t=="object")return t;throw l.rpc.invalidParams(`Not a JSON string or an object: ${String(t)}`)}function ft(t){if(t==null||typeof t.constructor!="function")return!1;const{constructor:e}=t;return typeof e.config=="function"&&typeof e.EUCLID=="number"}async function gt(){return crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!0,["deriveKey"])}async function mt(t,e){return crypto.subtle.deriveKey({name:"ECDH",public:e},t,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])}async function bt(t,e){const n=crypto.getRandomValues(new Uint8Array(12)),s=await crypto.subtle.encrypt({name:"AES-GCM",iv:n},t,new TextEncoder().encode(e));return{iv:n,cipherText:s}}async function wt(t,{iv:e,cipherText:n}){const s=await crypto.subtle.decrypt({name:"AES-GCM",iv:e},t,n);return new TextDecoder().decode(s)}function Te(t){switch(t){case"public":return"spki";case"private":return"pkcs8"}}async function Ne(t,e){const n=Te(t),s=await crypto.subtle.exportKey(n,e);return se(new Uint8Array(s))}async function De(t,e){const n=Te(t),s=B(e).buffer;return await crypto.subtle.importKey(n,new Uint8Array(s),{name:"ECDH",namedCurve:"P-256"},!0,t==="private"?["deriveKey"]:[])}async function yt(t,e){const n=JSON.stringify(t,(s,i)=>{if(!(i instanceof Error))return i;const r=i;return Object.assign(Object.assign({},r.code?{code:r.code}:{}),{message:r.message})});return bt(e,n)}async function vt(t,e){return JSON.parse(await wt(e,t))}const G={storageKey:"ownPrivateKey",keyType:"private"},Y={storageKey:"ownPublicKey",keyType:"public"},$={storageKey:"peerPublicKey",keyType:"public"};class kt{constructor(){this.storage=new E("CBWSDK","SCWKeyManager"),this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null}async getOwnPublicKey(){return await this.loadKeysIfNeeded(),this.ownPublicKey}async getSharedSecret(){return await this.loadKeysIfNeeded(),this.sharedSecret}async setPeerPublicKey(e){this.sharedSecret=null,this.peerPublicKey=e,await this.storeKey($,e),await this.loadKeysIfNeeded()}async clear(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null,this.storage.removeItem(Y.storageKey),this.storage.removeItem(G.storageKey),this.storage.removeItem($.storageKey)}async generateKeyPair(){const e=await gt();this.ownPrivateKey=e.privateKey,this.ownPublicKey=e.publicKey,await this.storeKey(G,e.privateKey),await this.storeKey(Y,e.publicKey)}async loadKeysIfNeeded(){if(this.ownPrivateKey===null&&(this.ownPrivateKey=await this.loadKey(G)),this.ownPublicKey===null&&(this.ownPublicKey=await this.loadKey(Y)),(this.ownPrivateKey===null||this.ownPublicKey===null)&&await this.generateKeyPair(),this.peerPublicKey===null&&(this.peerPublicKey=await this.loadKey($)),this.sharedSecret===null){if(this.ownPrivateKey===null||this.peerPublicKey===null)return;this.sharedSecret=await mt(this.ownPrivateKey,this.peerPublicKey)}}async loadKey(e){const n=this.storage.getItem(e.storageKey);return n?De(e.keyType,n):null}async storeKey(e,n){const s=await Ne(e.keyType,n);this.storage.setItem(e.storageKey,s)}}const K="4.2.3",Oe="@coinbase/wallet-sdk";async function je(t,e){const n=Object.assign(Object.assign({},t),{jsonrpc:"2.0",id:crypto.randomUUID()}),s=await window.fetch(e,{method:"POST",body:JSON.stringify(n),mode:"cors",headers:{"Content-Type":"application/json","X-Cbw-Sdk-Version":K,"X-Cbw-Sdk-Platform":Oe}}),{result:i,error:r}=await s.json();if(r)throw r;return i}function Et(){return globalThis.coinbaseWalletExtension}function It(){var t,e;try{const n=globalThis;return(t=n.ethereum)!==null&&t!==void 0?t:(e=n.top)===null||e===void 0?void 0:e.ethereum}catch{return}}function St({metadata:t,preference:e}){var n,s;const{appName:i,appLogoUrl:r,appChainIds:a}=t;if(e.options!=="smartWalletOnly"){const c=Et();if(c)return(n=c.setAppInfo)===null||n===void 0||n.call(c,i,r,a,e),c}const o=It();if(o!=null&&o.isCoinbaseBrowser)return(s=o.setAppInfo)===null||s===void 0||s.call(o,i,r,a,e),o}function Ct(t){if(!t||typeof t!="object"||Array.isArray(t))throw l.rpc.invalidParams({message:"Expected a single, non-array, object argument.",data:t});const{method:e,params:n}=t;if(typeof e!="string"||e.length===0)throw l.rpc.invalidParams({message:"'args.method' must be a non-empty string.",data:t});if(n!==void 0&&!Array.isArray(n)&&(typeof n!="object"||n===null))throw l.rpc.invalidParams({message:"'args.params' must be an object or array if provided.",data:t});switch(e){case"eth_sign":case"eth_signTypedData_v2":case"eth_subscribe":case"eth_unsubscribe":throw l.provider.unsupportedMethod()}}const de="accounts",le="activeChain",ue="availableChains",he="walletCapabilities";class Mt{constructor(e){var n,s,i;this.metadata=e.metadata,this.communicator=e.communicator,this.callback=e.callback,this.keyManager=new kt,this.storage=new E("CBWSDK","SCWStateManager"),this.accounts=(n=this.storage.loadObject(de))!==null&&n!==void 0?n:[],this.chain=this.storage.loadObject(le)||{id:(i=(s=e.metadata.appChainIds)===null||s===void 0?void 0:s[0])!==null&&i!==void 0?i:1},this.handshake=this.handshake.bind(this),this.request=this.request.bind(this),this.createRequestMessage=this.createRequestMessage.bind(this),this.decryptResponseMessage=this.decryptResponseMessage.bind(this)}async handshake(e){var n,s;const i=await this.createRequestMessage({handshake:{method:e.method,params:Object.assign({},this.metadata,(n=e.params)!==null&&n!==void 0?n:{})}}),r=await this.communicator.postRequestAndWaitForResponse(i);if("failure"in r.content)throw r.content.failure;const a=await De("public",r.sender);await this.keyManager.setPeerPublicKey(a);const c=(await this.decryptResponseMessage(r)).result;if("error"in c)throw c.error;const d=c.value;this.accounts=d,this.storage.storeObject(de,d),(s=this.callback)===null||s===void 0||s.call(this,"accountsChanged",d)}async request(e){var n;if(this.accounts.length===0)throw l.provider.unauthorized();switch(e.method){case"eth_requestAccounts":return(n=this.callback)===null||n===void 0||n.call(this,"connect",{chainId:A(this.chain.id)}),this.accounts;case"eth_accounts":return this.accounts;case"eth_coinbase":return this.accounts[0];case"net_version":return this.chain.id;case"eth_chainId":return A(this.chain.id);case"wallet_getCapabilities":return this.storage.loadObject(he);case"wallet_switchEthereumChain":return this.handleSwitchChainRequest(e);case"eth_ecRecover":case"personal_sign":case"personal_ecRecover":case"eth_signTransaction":case"eth_sendTransaction":case"eth_signTypedData_v1":case"eth_signTypedData_v3":case"eth_signTypedData_v4":case"eth_signTypedData":case"wallet_addEthereumChain":case"wallet_watchAsset":case"wallet_sendCalls":case"wallet_showCallsStatus":case"wallet_grantPermissions":return this.sendRequestToPopup(e);default:if(!this.chain.rpcUrl)throw l.rpc.internal("No RPC URL set for chain");return je(e,this.chain.rpcUrl)}}async sendRequestToPopup(e){var n,s;await((s=(n=this.communicator).waitForPopupLoaded)===null||s===void 0?void 0:s.call(n));const i=await this.sendEncryptedRequest(e),a=(await this.decryptResponseMessage(i)).result;if("error"in a)throw a.error;return a.value}async cleanup(){var e,n;this.storage.clear(),await this.keyManager.clear(),this.accounts=[],this.chain={id:(n=(e=this.metadata.appChainIds)===null||e===void 0?void 0:e[0])!==null&&n!==void 0?n:1}}async handleSwitchChainRequest(e){var n;const s=e.params;if(!s||!(!((n=s[0])===null||n===void 0)&&n.chainId))throw l.rpc.invalidParams();const i=j(s[0].chainId);if(this.updateChain(i))return null;const a=await this.sendRequestToPopup(e);return a===null&&this.updateChain(i),a}async sendEncryptedRequest(e){const n=await this.keyManager.getSharedSecret();if(!n)throw l.provider.unauthorized("No valid session found, try requestAccounts before other methods");const s=await yt({action:e,chainId:this.chain.id},n),i=await this.createRequestMessage({encrypted:s});return this.communicator.postRequestAndWaitForResponse(i)}async createRequestMessage(e){const n=await Ne("public",await this.keyManager.getOwnPublicKey());return{id:crypto.randomUUID(),sender:n,content:e,timestamp:new Date}}async decryptResponseMessage(e){var n,s;const i=e.content;if("failure"in i)throw i.failure;const r=await this.keyManager.getSharedSecret();if(!r)throw l.provider.unauthorized("Invalid session");const a=await vt(i.encrypted,r),o=(n=a.data)===null||n===void 0?void 0:n.chains;if(o){const d=Object.entries(o).map(([g,p])=>({id:Number(g),rpcUrl:p}));this.storage.storeObject(ue,d),this.updateChain(this.chain.id,d)}const c=(s=a.data)===null||s===void 0?void 0:s.capabilities;return c&&this.storage.storeObject(he,c),a}updateChain(e,n){var s;const i=n??this.storage.loadObject(ue),r=i==null?void 0:i.find(a=>a.id===e);return r?(r!==this.chain&&(this.chain=r,this.storage.storeObject(le,r),(s=this.callback)===null||s===void 0||s.call(this,"chainChanged",A(r.id))),!0):!1}}const{keccak_256:_t}=et;function Ue(t){return Buffer.allocUnsafe(t).fill(0)}function At(t){return t.toString(2).length}function We(t,e){let n=t.toString(16);n.length%2!==0&&(n="0"+n);const s=n.match(/.{1,2}/g).map(i=>parseInt(i,16));for(;s.length<e;)s.unshift(0);return Buffer.from(s)}function xt(t,e){const n=t<0n;let s;if(n){const i=(1n<<BigInt(e))-1n;s=(~t&i)+1n}else s=t;return s&=(1n<<BigInt(e))-1n,s}function Ke(t,e,n){const s=Ue(e);return t=F(t),n?t.length<e?(t.copy(s),s):t.slice(0,e):t.length<e?(t.copy(s,e-t.length),s):t.slice(-e)}function Pt(t,e){return Ke(t,e,!0)}function F(t){if(!Buffer.isBuffer(t))if(Array.isArray(t))t=Buffer.from(t);else if(typeof t=="string")qe(t)?t=Buffer.from(Tt(Be(t)),"hex"):t=Buffer.from(t);else if(typeof t=="number")t=intToBuffer(t);else if(t==null)t=Buffer.allocUnsafe(0);else if(typeof t=="bigint")t=We(t);else if(t.toArray)t=Buffer.from(t.toArray());else throw new Error("invalid type");return t}function Rt(t){return t=F(t),"0x"+t.toString("hex")}function Lt(t,e){if(t=F(t),e||(e=256),e!==256)throw new Error("unsupported");return Buffer.from(_t(new Uint8Array(t)))}function Tt(t){return t.length%2?"0"+t:t}function qe(t){return typeof t=="string"&&t.match(/^0x[0-9A-Fa-f]*$/)}function Be(t){return typeof t=="string"&&t.startsWith("0x")?t.slice(2):t}var ze={zeros:Ue,setLength:Ke,setLengthRight:Pt,isHexString:qe,stripHexPrefix:Be,toBuffer:F,bufferToHex:Rt,keccak:Lt,bitLengthFromBigInt:At,bufferBEFromBigInt:We,twosFromBigInt:xt};const b=ze;function Fe(t){return t.startsWith("int[")?"int256"+t.slice(3):t==="int"?"int256":t.startsWith("uint[")?"uint256"+t.slice(4):t==="uint"?"uint256":t.startsWith("fixed[")?"fixed128x128"+t.slice(5):t==="fixed"?"fixed128x128":t.startsWith("ufixed[")?"ufixed128x128"+t.slice(6):t==="ufixed"?"ufixed128x128":t}function L(t){return Number.parseInt(/^\D+(\d+)$/.exec(t)[1],10)}function pe(t){var e=/^\D+(\d+)x(\d+)$/.exec(t);return[Number.parseInt(e[1],10),Number.parseInt(e[2],10)]}function He(t){var e=t.match(/(.*)\[(.*?)\]$/);return e?e[2]===""?"dynamic":Number.parseInt(e[2],10):null}function P(t){var e=typeof t;if(e==="string"||e==="number")return BigInt(t);if(e==="bigint")return t;throw new Error("Argument is not a number")}function k(t,e){var n,s,i,r;if(t==="address")return k("uint160",P(e));if(t==="bool")return k("uint8",e?1:0);if(t==="string")return k("bytes",new Buffer(e,"utf8"));if(Dt(t)){if(typeof e.length>"u")throw new Error("Not an array?");if(n=He(t),n!=="dynamic"&&n!==0&&e.length>n)throw new Error("Elements exceed array size: "+n);i=[],t=t.slice(0,t.lastIndexOf("[")),typeof e=="string"&&(e=JSON.parse(e));for(r in e)i.push(k(t,e[r]));if(n==="dynamic"){var a=k("uint256",e.length);i.unshift(a)}return Buffer.concat(i)}else{if(t==="bytes")return e=new Buffer(e),i=Buffer.concat([k("uint256",e.length),e]),e.length%32!==0&&(i=Buffer.concat([i,b.zeros(32-e.length%32)])),i;if(t.startsWith("bytes")){if(n=L(t),n<1||n>32)throw new Error("Invalid bytes<N> width: "+n);return b.setLengthRight(e,32)}else if(t.startsWith("uint")){if(n=L(t),n%8||n<8||n>256)throw new Error("Invalid uint<N> width: "+n);s=P(e);const o=b.bitLengthFromBigInt(s);if(o>n)throw new Error("Supplied uint exceeds width: "+n+" vs "+o);if(s<0)throw new Error("Supplied uint is negative");return b.bufferBEFromBigInt(s,32)}else if(t.startsWith("int")){if(n=L(t),n%8||n<8||n>256)throw new Error("Invalid int<N> width: "+n);s=P(e);const o=b.bitLengthFromBigInt(s);if(o>n)throw new Error("Supplied int exceeds width: "+n+" vs "+o);const c=b.twosFromBigInt(s,256);return b.bufferBEFromBigInt(c,32)}else if(t.startsWith("ufixed")){if(n=pe(t),s=P(e),s<0)throw new Error("Supplied ufixed is negative");return k("uint256",s*BigInt(2)**BigInt(n[1]))}else if(t.startsWith("fixed"))return n=pe(t),k("int256",P(e)*BigInt(2)**BigInt(n[1]))}throw new Error("Unsupported or invalid type: "+t)}function Nt(t){return t==="string"||t==="bytes"||He(t)==="dynamic"}function Dt(t){return t.lastIndexOf("]")===t.length-1}function Ot(t,e){var n=[],s=[],i=32*t.length;for(var r in t){var a=Fe(t[r]),o=e[r],c=k(a,o);Nt(a)?(n.push(k("uint256",i)),s.push(c),i+=c.length):n.push(c)}return Buffer.concat(n.concat(s))}function Ge(t,e){if(t.length!==e.length)throw new Error("Number of types are not matching the values");for(var n,s,i=[],r=0;r<t.length;r++){var a=Fe(t[r]),o=e[r];if(a==="bytes")i.push(o);else if(a==="string")i.push(new Buffer(o,"utf8"));else if(a==="bool")i.push(new Buffer(o?"01":"00","hex"));else if(a==="address")i.push(b.setLength(o,20));else if(a.startsWith("bytes")){if(n=L(a),n<1||n>32)throw new Error("Invalid bytes<N> width: "+n);i.push(b.setLengthRight(o,n))}else if(a.startsWith("uint")){if(n=L(a),n%8||n<8||n>256)throw new Error("Invalid uint<N> width: "+n);s=P(o);const c=b.bitLengthFromBigInt(s);if(c>n)throw new Error("Supplied uint exceeds width: "+n+" vs "+c);i.push(b.bufferBEFromBigInt(s,n/8))}else if(a.startsWith("int")){if(n=L(a),n%8||n<8||n>256)throw new Error("Invalid int<N> width: "+n);s=P(o);const c=b.bitLengthFromBigInt(s);if(c>n)throw new Error("Supplied int exceeds width: "+n+" vs "+c);const d=b.twosFromBigInt(s,n);i.push(b.bufferBEFromBigInt(d,n/8))}else throw new Error("Unsupported or invalid type: "+a)}return Buffer.concat(i)}function jt(t,e){return b.keccak(Ge(t,e))}var Ut={rawEncode:Ot,solidityPack:Ge,soliditySHA3:jt};const y=ze,U=Ut,Ye={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},J={encodeData(t,e,n,s=!0){const i=["bytes32"],r=[this.hashType(t,n)];if(s){const a=(o,c,d)=>{if(n[c]!==void 0)return["bytes32",d==null?"0x0000000000000000000000000000000000000000000000000000000000000000":y.keccak(this.encodeData(c,d,n,s))];if(d===void 0)throw new Error(`missing value for field ${o} of type ${c}`);if(c==="bytes")return["bytes32",y.keccak(d)];if(c==="string")return typeof d=="string"&&(d=Buffer.from(d,"utf8")),["bytes32",y.keccak(d)];if(c.lastIndexOf("]")===c.length-1){const g=c.slice(0,c.lastIndexOf("[")),p=d.map(f=>a(o,g,f));return["bytes32",y.keccak(U.rawEncode(p.map(([f])=>f),p.map(([,f])=>f)))]}return[c,d]};for(const o of n[t]){const[c,d]=a(o.name,o.type,e[o.name]);i.push(c),r.push(d)}}else for(const a of n[t]){let o=e[a.name];if(o!==void 0)if(a.type==="bytes")i.push("bytes32"),o=y.keccak(o),r.push(o);else if(a.type==="string")i.push("bytes32"),typeof o=="string"&&(o=Buffer.from(o,"utf8")),o=y.keccak(o),r.push(o);else if(n[a.type]!==void 0)i.push("bytes32"),o=y.keccak(this.encodeData(a.type,o,n,s)),r.push(o);else{if(a.type.lastIndexOf("]")===a.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");i.push(a.type),r.push(o)}}return U.rawEncode(i,r)},encodeType(t,e){let n="",s=this.findTypeDependencies(t,e).filter(i=>i!==t);s=[t].concat(s.sort());for(const i of s){if(!e[i])throw new Error("No type definition specified: "+i);n+=i+"("+e[i].map(({name:a,type:o})=>o+" "+a).join(",")+")"}return n},findTypeDependencies(t,e,n=[]){if(t=t.match(/^\w*/)[0],n.includes(t)||e[t]===void 0)return n;n.push(t);for(const s of e[t])for(const i of this.findTypeDependencies(s.type,e,n))!n.includes(i)&&n.push(i);return n},hashStruct(t,e,n,s=!0){return y.keccak(this.encodeData(t,e,n,s))},hashType(t,e){return y.keccak(this.encodeType(t,e))},sanitizeData(t){const e={};for(const n in Ye.properties)t[n]&&(e[n]=t[n]);return e.types&&(e.types=Object.assign({EIP712Domain:[]},e.types)),e},hash(t,e=!0){const n=this.sanitizeData(t),s=[Buffer.from("1901","hex")];return s.push(this.hashStruct("EIP712Domain",n.domain,n.types,e)),n.primaryType!=="EIP712Domain"&&s.push(this.hashStruct(n.primaryType,n.message,n.types,e)),y.keccak(Buffer.concat(s))}};var Wt={TYPED_MESSAGE_SCHEMA:Ye,TypedDataUtils:J,hashForSignTypedDataLegacy:function(t){return Kt(t.data)},hashForSignTypedData_v3:function(t){return J.hash(t.data,!1)},hashForSignTypedData_v4:function(t){return J.hash(t.data)}};function Kt(t){const e=new Error("Expect argument to be non-empty array");if(typeof t!="object"||!t.length)throw e;const n=t.map(function(r){return r.type==="bytes"?y.toBuffer(r.value):r.value}),s=t.map(function(r){return r.type}),i=t.map(function(r){if(!r.name)throw e;return r.type+" "+r.name});return U.soliditySHA3(["bytes32","bytes32"],[U.soliditySHA3(new Array(t.length).fill("string"),i),U.soliditySHA3(s,n)])}const q=tt(Wt),qt="walletUsername",ee="Addresses",Bt="AppVersion";function m(t){return t.errorMessage!==void 0}class zt{constructor(e){this.secret=e}async encrypt(e){const n=this.secret;if(n.length!==64)throw Error("secret must be 256 bits");const s=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.importKey("raw",B(n),{name:"aes-gcm"},!1,["encrypt","decrypt"]),r=new TextEncoder,a=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:s},i,r.encode(e)),o=16,c=a.slice(a.byteLength-o),d=a.slice(0,a.byteLength-o),g=new Uint8Array(c),p=new Uint8Array(d),f=new Uint8Array([...s,...g,...p]);return se(f)}async decrypt(e){const n=this.secret;if(n.length!==64)throw Error("secret must be 256 bits");return new Promise((s,i)=>{(async function(){const r=await crypto.subtle.importKey("raw",B(n),{name:"aes-gcm"},!1,["encrypt","decrypt"]),a=B(e),o=a.slice(0,12),c=a.slice(12,28),d=a.slice(28),g=new Uint8Array([...d,...c]),p={name:"AES-GCM",iv:new Uint8Array(o)};try{const f=await window.crypto.subtle.decrypt(p,r,g),I=new TextDecoder;s(I.decode(f))}catch(f){i(f)}})()})}}class Ft{constructor(e,n,s){this.linkAPIUrl=e,this.sessionId=n;const i=`${n}:${s}`;this.auth=`Basic ${btoa(i)}`}async markUnseenEventsAsSeen(e){return Promise.all(e.map(n=>fetch(`${this.linkAPIUrl}/events/${n.eventId}/seen`,{method:"POST",headers:{Authorization:this.auth}}))).catch(n=>console.error("Unabled to mark event as failed:",n))}async fetchUnseenEvents(){var e;const n=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(n.ok){const{events:s,error:i}=await n.json();if(i)throw new Error(`Check unseen events failed: ${i}`);const r=(e=s==null?void 0:s.filter(a=>a.event==="Web3Response").map(a=>({type:"Event",sessionId:this.sessionId,eventId:a.id,event:a.event,data:a.data})))!==null&&e!==void 0?e:[];return this.markUnseenEventsAsSeen(r),r}throw new Error(`Check unseen events failed: ${n.status}`)}}var M;(function(t){t[t.DISCONNECTED=0]="DISCONNECTED",t[t.CONNECTING=1]="CONNECTING",t[t.CONNECTED=2]="CONNECTED"})(M||(M={}));class Ht{setConnectionStateListener(e){this.connectionStateListener=e}setIncomingDataListener(e){this.incomingDataListener=e}constructor(e,n=WebSocket){this.WebSocketClass=n,this.webSocket=null,this.pendingData=[],this.url=e.replace(/^http/,"ws")}async connect(){if(this.webSocket)throw new Error("webSocket object is not null");return new Promise((e,n)=>{var s;let i;try{this.webSocket=i=new this.WebSocketClass(this.url)}catch(r){n(r);return}(s=this.connectionStateListener)===null||s===void 0||s.call(this,M.CONNECTING),i.onclose=r=>{var a;this.clearWebSocket(),n(new Error(`websocket error ${r.code}: ${r.reason}`)),(a=this.connectionStateListener)===null||a===void 0||a.call(this,M.DISCONNECTED)},i.onopen=r=>{var a;e(),(a=this.connectionStateListener)===null||a===void 0||a.call(this,M.CONNECTED),this.pendingData.length>0&&([...this.pendingData].forEach(c=>this.sendData(c)),this.pendingData=[])},i.onmessage=r=>{var a,o;if(r.data==="h")(a=this.incomingDataListener)===null||a===void 0||a.call(this,{type:"Heartbeat"});else try{const c=JSON.parse(r.data);(o=this.incomingDataListener)===null||o===void 0||o.call(this,c)}catch{}}})}disconnect(){var e;const{webSocket:n}=this;if(n){this.clearWebSocket(),(e=this.connectionStateListener)===null||e===void 0||e.call(this,M.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{n.close()}catch{}}}sendData(e){const{webSocket:n}=this;if(!n){this.pendingData.push(e),this.connect();return}n.send(e)}clearWebSocket(){const{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}}const fe=1e4,Gt=6e4;class Yt{constructor({session:e,linkAPIUrl:n,listener:s}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=S(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=r=>{if(!r)return;new Map([["__destroyed",this.handleDestroyed],["EthereumAddress",this.handleAccountUpdated],["WalletUsername",this.handleWalletUsernameUpdated],["AppVersion",this.handleAppVersionUpdated],["ChainId",o=>r.JsonRpcUrl&&this.handleChainUpdated(o,r.JsonRpcUrl)]]).forEach((o,c)=>{const d=r[c];d!==void 0&&o(d)})},this.handleDestroyed=r=>{var a;r==="1"&&((a=this.listener)===null||a===void 0||a.resetAndReload())},this.handleAccountUpdated=async r=>{var a;const o=await this.cipher.decrypt(r);(a=this.listener)===null||a===void 0||a.accountUpdated(o)},this.handleMetadataUpdated=async(r,a)=>{var o;const c=await this.cipher.decrypt(a);(o=this.listener)===null||o===void 0||o.metadataUpdated(r,c)},this.handleWalletUsernameUpdated=async r=>{this.handleMetadataUpdated(qt,r)},this.handleAppVersionUpdated=async r=>{this.handleMetadataUpdated(Bt,r)},this.handleChainUpdated=async(r,a)=>{var o;const c=await this.cipher.decrypt(r),d=await this.cipher.decrypt(a);(o=this.listener)===null||o===void 0||o.chainUpdated(c,d)},this.session=e,this.cipher=new zt(e.secret),this.listener=s;const i=new Ht(`${n}/rpc`,WebSocket);i.setConnectionStateListener(async r=>{let a=!1;switch(r){case M.DISCONNECTED:if(!this.destroyed){const o=async()=>{await new Promise(c=>setTimeout(c,5e3)),this.destroyed||i.connect().catch(()=>{o()})};o()}break;case M.CONNECTED:a=await this.handleConnected(),this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},fe),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();break;case M.CONNECTING:break}this.connected!==a&&(this.connected=a)}),i.setIncomingDataListener(r=>{var a;switch(r.type){case"Heartbeat":this.updateLastHeartbeat();return;case"IsLinkedOK":case"Linked":{const o=r.type==="IsLinkedOK"?r.linked:void 0;this.linked=o||r.onlineGuests>0;break}case"GetSessionConfigOK":case"SessionConfigUpdated":{this.handleSessionMetadataUpdated(r.metadata);break}case"Event":{this.handleIncomingEvent(r);break}}r.id!==void 0&&((a=this.requestResolutions.get(r.id))===null||a===void 0||a(r))}),this.ws=i,this.http=new Ft(n,e.id,e.key)}connect(){if(this.destroyed)throw new Error("instance is destroyed");this.ws.connect()}async destroy(){this.destroyed||(await this.makeRequest({type:"SetSessionConfig",id:S(this.nextReqId++),sessionId:this.session.id,metadata:{__destroyed:"1"}},{timeout:1e3}),this.destroyed=!0,this.ws.disconnect(),this.listener=void 0)}get connected(){return this._connected}set connected(e){this._connected=e}get linked(){return this._linked}set linked(e){var n,s;this._linked=e,e&&((n=this.onceLinked)===null||n===void 0||n.call(this)),(s=this.listener)===null||s===void 0||s.linkedUpdated(e)}setOnceLinked(e){return new Promise(n=>{this.linked?e().then(n):this.onceLinked=()=>{e().then(n),this.onceLinked=void 0}})}async handleIncomingEvent(e){var n;if(e.type!=="Event"||e.event!=="Web3Response")return;const s=await this.cipher.decrypt(e.data),i=JSON.parse(s);if(i.type!=="WEB3_RESPONSE")return;const{id:r,response:a}=i;(n=this.listener)===null||n===void 0||n.handleWeb3ResponseMessage(r,a)}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(e=>setTimeout(e,250));try{await this.fetchUnseenEventsAPI()}catch(e){console.error("Unable to check for unseen events",e)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEach(n=>this.handleIncomingEvent(n))}async publishEvent(e,n,s=!1){const i=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},n),{origin:location.origin,relaySource:"coinbaseWalletExtension"in window&&window.coinbaseWalletExtension?"injected_sdk":"sdk"}))),r={type:"PublishEvent",id:S(this.nextReqId++),sessionId:this.session.id,event:e,data:i,callWebhook:s};return this.setOnceLinked(async()=>{const a=await this.makeRequest(r);if(a.type==="Fail")throw new Error(a.error||"failed to publish event");return a.eventId})}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>fe*2){this.ws.disconnect();return}try{this.ws.sendData("h")}catch{}}async makeRequest(e,n={timeout:Gt}){const s=e.id;this.sendData(e);let i;return Promise.race([new Promise((r,a)=>{i=window.setTimeout(()=>{a(new Error(`request ${s} timed out`))},n.timeout)}),new Promise(r=>{this.requestResolutions.set(s,a=>{clearTimeout(i),r(a),this.requestResolutions.delete(s)})})])}async handleConnected(){return(await this.makeRequest({type:"HostSession",id:S(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key})).type==="Fail"?!1:(this.sendData({type:"IsLinked",id:S(this.nextReqId++),sessionId:this.session.id}),this.sendData({type:"GetSessionConfig",id:S(this.nextReqId++),sessionId:this.session.id}),!0)}}class $t{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;const e=this._nextRequestId,n=Le(e.toString(16));return this.callbacks.get(n)&&this.callbacks.delete(n),e}}const ge="session:id",me="session:secret",be="session:linked";class T{constructor(e,n,s,i=!1){this.storage=e,this.id=n,this.secret=s,this.key=nt.bytesToHex(st(`${n}, ${s} WalletLink`)),this._linked=!!i}static create(e){const n=x(16),s=x(32);return new T(e,n,s).save()}static load(e){const n=e.getItem(ge),s=e.getItem(be),i=e.getItem(me);return n&&i?new T(e,n,i,s==="1"):null}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this.storage.setItem(ge,this.id),this.storage.setItem(me,this.secret),this.persistLinked(),this}persistLinked(){this.storage.setItem(be,this._linked?"1":"0")}}function Jt(){try{return window.frameElement!==null}catch{return!1}}function Vt(){try{return Jt()&&window.top?window.top.location:window.location}catch{return window.location}}function Qt(){var t;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((t=window==null?void 0:window.navigator)===null||t===void 0?void 0:t.userAgent)}function $e(){var t,e;return(e=(t=window==null?void 0:window.matchMedia)===null||t===void 0?void 0:t.call(window,"(prefers-color-scheme: dark)").matches)!==null&&e!==void 0?e:!1}const Zt='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}';function Je(){const t=document.createElement("style");t.type="text/css",t.appendChild(document.createTextNode(Zt)),document.documentElement.appendChild(t)}const Xt=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}",en="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",tn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";class nn{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=$e()}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){const n=this.nextItemKey++;return this.items.set(n,e),this.render(),()=>{this.items.delete(n),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&V(u("div",null,u(Ve,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,n])=>u(sn,Object.assign({},n,{key:e}))))),this.root)}}const Ve=t=>u("div",{class:D("-cbwsdk-snackbar-container")},u("style",null,Xt),u("div",{class:"-cbwsdk-snackbar"},t.children)),sn=({autoExpand:t,message:e,menuItems:n})=>{const[s,i]=ae(!0),[r,a]=ae(t??!1);rt(()=>{const c=[window.setTimeout(()=>{i(!1)},1),window.setTimeout(()=>{a(!0)},1e4)];return()=>{c.forEach(window.clearTimeout)}});const o=()=>{a(!r)};return u("div",{class:D("-cbwsdk-snackbar-instance",s&&"-cbwsdk-snackbar-instance-hidden",r&&"-cbwsdk-snackbar-instance-expanded")},u("div",{class:"-cbwsdk-snackbar-instance-header",onClick:o},u("img",{src:en,class:"-cbwsdk-snackbar-instance-header-cblogo"})," ",u("div",{class:"-cbwsdk-snackbar-instance-header-message"},e),u("div",{class:"-gear-container"},!r&&u("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),u("img",{src:tn,class:"-gear-icon",title:"Expand"}))),n&&n.length>0&&u("div",{class:"-cbwsdk-snackbar-instance-menu"},n.map((c,d)=>u("div",{class:D("-cbwsdk-snackbar-instance-menu-item",c.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:c.onClick,key:d},u("svg",{width:c.svgWidth,height:c.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{"fill-rule":c.defaultFillRule,"clip-rule":c.defaultClipRule,d:c.path,fill:"#AAAAAA"})),u("span",{class:D("-cbwsdk-snackbar-instance-menu-item-info",c.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},c.info)))))};class rn{constructor(){this.attached=!1,this.snackbar=new nn}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");const e=document.documentElement,n=document.createElement("div");n.className="-cbwsdk-css-reset",e.appendChild(n),this.snackbar.attach(n),this.attached=!0,Je()}showConnecting(e){let n;return e.isUnlinkedErrorState?n={autoExpand:!0,message:"Connection lost",menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]}:n={message:"Confirm on phone",menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:e.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]},this.snackbar.presentItem(n)}}const an=".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}";class on{constructor(){this.root=null,this.darkMode=$e()}attach(){const e=document.documentElement;this.root=document.createElement("div"),this.root.className="-cbwsdk-css-reset",e.appendChild(this.root),Je()}present(e){this.render(e)}clear(){this.render(null)}render(e){this.root&&(V(null,this.root),e&&V(u(cn,Object.assign({},e,{onDismiss:()=>{this.clear()},darkMode:this.darkMode})),this.root))}}const cn=({title:t,buttonText:e,darkMode:n,onButtonClick:s,onDismiss:i})=>{const r=n?"dark":"light";return u(Ve,{darkMode:n},u("div",{class:"-cbwsdk-redirect-dialog"},u("style",null,an),u("div",{class:"-cbwsdk-redirect-dialog-backdrop",onClick:i}),u("div",{class:D("-cbwsdk-redirect-dialog-box",r)},u("p",null,t),u("button",{onClick:s},e))))},dn="https://keys.coinbase.com/connect",we="https://www.walletlink.org",ln="https://go.cb-w.com/walletlink";class ye{constructor(){this.attached=!1,this.redirectDialog=new on}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");this.redirectDialog.attach(),this.attached=!0}redirectToCoinbaseWallet(e){const n=new URL(ln);n.searchParams.append("redirect_url",Vt().href),e&&n.searchParams.append("wl_url",e);const s=document.createElement("a");s.target="cbw-opener",s.href=n.href,s.rel="noreferrer noopener",s.click()}openCoinbaseWalletDeeplink(e){this.redirectDialog.present({title:"Redirecting to Coinbase Wallet...",buttonText:"Open",onButtonClick:()=>{this.redirectToCoinbaseWallet(e)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(e)},99)}showConnecting(e){return()=>{this.redirectDialog.clear()}}}class C{constructor(e){this.chainCallbackParams={chainId:"",jsonRpcUrl:""},this.isMobileWeb=Qt(),this.linkedUpdated=r=>{this.isLinked=r;const a=this.storage.getItem(ee);if(r&&(this._session.linked=r),this.isUnlinkedErrorState=!1,a){const o=a.split(" "),c=this.storage.getItem("IsStandaloneSigning")==="true";o[0]!==""&&!r&&this._session.linked&&!c&&(this.isUnlinkedErrorState=!0)}},this.metadataUpdated=(r,a)=>{this.storage.setItem(r,a)},this.chainUpdated=(r,a)=>{this.chainCallbackParams.chainId===r&&this.chainCallbackParams.jsonRpcUrl===a||(this.chainCallbackParams={chainId:r,jsonRpcUrl:a},this.chainCallback&&this.chainCallback(a,Number.parseInt(r,10)))},this.accountUpdated=r=>{this.accountsCallback&&this.accountsCallback([r]),C.accountRequestCallbackIds.size>0&&(Array.from(C.accountRequestCallbackIds.values()).forEach(a=>{this.invokeCallback(a,{method:"requestEthereumAccounts",result:[r]})}),C.accountRequestCallbackIds.clear())},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.metadata=e.metadata,this.accountsCallback=e.accountsCallback,this.chainCallback=e.chainCallback;const{session:n,ui:s,connection:i}=this.subscribe();this._session=n,this.connection=i,this.relayEventManager=new $t,this.ui=s,this.ui.attach()}subscribe(){const e=T.load(this.storage)||T.create(this.storage),{linkAPIUrl:n}=this,s=new Yt({session:e,linkAPIUrl:n,listener:this}),i=this.isMobileWeb?new ye:new rn;return s.connect(),{session:e,ui:i,connection:s}}resetAndReload(){this.connection.destroy().then(()=>{const e=T.load(this.storage);(e==null?void 0:e.id)===this._session.id&&E.clearAll(),document.location.reload()}).catch(e=>{})}signEthereumTransaction(e){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:v(e.weiValue),data:O(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?v(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?v(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?v(e.gasPriceInWei):null,gasLimit:e.gasLimit?v(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:v(e.weiValue),data:O(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?v(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?v(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?v(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?v(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,n){return this.sendRequest({method:"submitEthereumTransaction",params:{signedTransaction:O(e,!0),chainId:n}})}getWalletLinkSession(){return this._session}sendRequest(e){let n=null;const s=x(8),i=r=>{this.publishWeb3RequestCanceledEvent(s),this.handleErrorResponse(s,e.method,r),n==null||n()};return new Promise((r,a)=>{n=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:i,onResetConnection:this.resetAndReload}),this.relayEventManager.callbacks.set(s,o=>{if(n==null||n(),m(o))return a(new Error(o.errorMessage));r(o)}),this.publishWeb3RequestEvent(s,e)})}publishWeb3RequestEvent(e,n){const s={type:"WEB3_REQUEST",id:e,request:n};this.publishEvent("Web3Request",s,!0).then(i=>{}).catch(i=>{this.handleWeb3ResponseMessage(s.id,{method:n.method,errorMessage:i.message})}),this.isMobileWeb&&this.openCoinbaseWalletDeeplink(n.method)}openCoinbaseWalletDeeplink(e){if(this.ui instanceof ye)switch(e){case"requestEthereumAccounts":case"switchEthereumChain":return;default:window.addEventListener("blur",()=>{window.addEventListener("focus",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0}),this.ui.openCoinbaseWalletDeeplink();break}}publishWeb3RequestCanceledEvent(e){const n={type:"WEB3_REQUEST_CANCELED",id:e};this.publishEvent("Web3RequestCanceled",n,!1).then()}publishEvent(e,n,s){return this.connection.publishEvent(e,n,s)}handleWeb3ResponseMessage(e,n){if(n.method==="requestEthereumAccounts"){C.accountRequestCallbackIds.forEach(s=>this.invokeCallback(s,n)),C.accountRequestCallbackIds.clear();return}this.invokeCallback(e,n)}handleErrorResponse(e,n,s){var i;const r=(i=s==null?void 0:s.message)!==null&&i!==void 0?i:"Unspecified error message.";this.handleWeb3ResponseMessage(e,{method:n,errorMessage:r})}invokeCallback(e,n){const s=this.relayEventManager.callbacks.get(e);s&&(s(n),this.relayEventManager.callbacks.delete(e))}requestEthereumAccounts(){const{appName:e,appLogoUrl:n}=this.metadata,s={method:"requestEthereumAccounts",params:{appName:e,appLogoUrl:n}},i=x(8);return new Promise((r,a)=>{this.relayEventManager.callbacks.set(i,o=>{if(m(o))return a(new Error(o.errorMessage));r(o)}),C.accountRequestCallbackIds.add(i),this.publishWeb3RequestEvent(i,s)})}watchAsset(e,n,s,i,r,a){const o={method:"watchAsset",params:{type:e,options:{address:n,symbol:s,decimals:i,image:r},chainId:a}};let c=null;const d=x(8),g=p=>{this.publishWeb3RequestCanceledEvent(d),this.handleErrorResponse(d,o.method,p),c==null||c()};return c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:g,onResetConnection:this.resetAndReload}),new Promise((p,f)=>{this.relayEventManager.callbacks.set(d,I=>{if(c==null||c(),m(I))return f(new Error(I.errorMessage));p(I)}),this.publishWeb3RequestEvent(d,o)})}addEthereumChain(e,n,s,i,r,a){const o={method:"addEthereumChain",params:{chainId:e,rpcUrls:n,blockExplorerUrls:i,chainName:r,iconUrls:s,nativeCurrency:a}};let c=null;const d=x(8),g=p=>{this.publishWeb3RequestCanceledEvent(d),this.handleErrorResponse(d,o.method,p),c==null||c()};return c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:g,onResetConnection:this.resetAndReload}),new Promise((p,f)=>{this.relayEventManager.callbacks.set(d,I=>{if(c==null||c(),m(I))return f(new Error(I.errorMessage));p(I)}),this.publishWeb3RequestEvent(d,o)})}switchEthereumChain(e,n){const s={method:"switchEthereumChain",params:Object.assign({chainId:e},{address:n})};let i=null;const r=x(8),a=o=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,s.method,o),i==null||i()};return i=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:a,onResetConnection:this.resetAndReload}),new Promise((o,c)=>{this.relayEventManager.callbacks.set(r,d=>{if(i==null||i(),m(d)&&d.errorCode)return c(l.provider.custom({code:d.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."}));if(m(d))return c(new Error(d.errorMessage));o(d)}),this.publishWeb3RequestEvent(r,s)})}}C.accountRequestCallbackIds=new Set;const ve="DefaultChainId",ke="DefaultJsonRpcUrl";class Qe{constructor(e){this._relay=null,this._addresses=[],this.metadata=e.metadata,this._storage=new E("walletlink",we),this.callback=e.callback||null;const n=this._storage.getItem(ee);if(n){const s=n.split(" ");s[0]!==""&&(this._addresses=s.map(i=>_(i)))}this.initializeRelay()}getSession(){const e=this.initializeRelay(),{id:n,secret:s}=e.getWalletLinkSession();return{id:n,secret:s}}async handshake(){await this._eth_requestAccounts()}get selectedAddress(){return this._addresses[0]||void 0}get jsonRpcUrl(){var e;return(e=this._storage.getItem(ke))!==null&&e!==void 0?e:void 0}set jsonRpcUrl(e){this._storage.setItem(ke,e)}updateProviderInfo(e,n){var s;this.jsonRpcUrl=e;const i=this.getChainId();this._storage.setItem(ve,n.toString(10)),j(n)!==i&&((s=this.callback)===null||s===void 0||s.call(this,"chainChanged",A(n)))}async watchAsset(e){const n=Array.isArray(e)?e[0]:e;if(!n.type)throw l.rpc.invalidParams("Type is required");if((n==null?void 0:n.type)!=="ERC20")throw l.rpc.invalidParams(`Asset of type '${n.type}' is not supported`);if(!(n!=null&&n.options))throw l.rpc.invalidParams("Options are required");if(!(n!=null&&n.options.address))throw l.rpc.invalidParams("Address is required");const s=this.getChainId(),{address:i,symbol:r,image:a,decimals:o}=n.options,d=await this.initializeRelay().watchAsset(n.type,i,r,o,a,s==null?void 0:s.toString());return m(d)?!1:!!d.result}async addEthereumChain(e){var n,s;const i=e[0];if(((n=i.rpcUrls)===null||n===void 0?void 0:n.length)===0)throw l.rpc.invalidParams("please pass in at least 1 rpcUrl");if(!i.chainName||i.chainName.trim()==="")throw l.rpc.invalidParams("chainName is a required field");if(!i.nativeCurrency)throw l.rpc.invalidParams("nativeCurrency is a required field");const r=Number.parseInt(i.chainId,16);if(r===this.getChainId())return!1;const a=this.initializeRelay(),{rpcUrls:o=[],blockExplorerUrls:c=[],chainName:d,iconUrls:g=[],nativeCurrency:p}=i,f=await a.addEthereumChain(r.toString(),o,g,c,d,p);if(m(f))return!1;if(((s=f.result)===null||s===void 0?void 0:s.isApproved)===!0)return this.updateProviderInfo(o[0],r),null;throw l.rpc.internal("unable to add ethereum chain")}async switchEthereumChain(e){const n=e[0],s=Number.parseInt(n.chainId,16),r=await this.initializeRelay().switchEthereumChain(s.toString(10),this.selectedAddress||void 0);if(m(r))throw r;const a=r.result;return a.isApproved&&a.rpcUrl.length>0&&this.updateProviderInfo(a.rpcUrl,s),null}async cleanup(){this.callback=null,this._relay&&this._relay.resetAndReload(),this._storage.clear()}_setAddresses(e,n){var s;if(!Array.isArray(e))throw new Error("addresses is not an array");const i=e.map(r=>_(r));JSON.stringify(i)!==JSON.stringify(this._addresses)&&(this._addresses=i,(s=this.callback)===null||s===void 0||s.call(this,"accountsChanged",i),this._storage.setItem(ee,i.join(" ")))}async request(e){const n=e.params||[];switch(e.method){case"eth_accounts":return[...this._addresses];case"eth_coinbase":return this.selectedAddress||null;case"net_version":return this.getChainId().toString(10);case"eth_chainId":return A(this.getChainId());case"eth_requestAccounts":return this._eth_requestAccounts();case"eth_ecRecover":case"personal_ecRecover":return this.ecRecover(e);case"personal_sign":return this.personalSign(e);case"eth_signTransaction":return this._eth_signTransaction(n);case"eth_sendRawTransaction":return this._eth_sendRawTransaction(n);case"eth_sendTransaction":return this._eth_sendTransaction(n);case"eth_signTypedData_v1":case"eth_signTypedData_v3":case"eth_signTypedData_v4":case"eth_signTypedData":return this.signTypedData(e);case"wallet_addEthereumChain":return this.addEthereumChain(n);case"wallet_switchEthereumChain":return this.switchEthereumChain(n);case"wallet_watchAsset":return this.watchAsset(n);default:if(!this.jsonRpcUrl)throw l.rpc.internal("No RPC URL set for chain");return je(e,this.jsonRpcUrl)}}_ensureKnownAddress(e){const n=_(e);if(!this._addresses.map(i=>_(i)).includes(n))throw new Error("Unknown Ethereum address")}_prepareTransactionParams(e){const n=e.from?_(e.from):this.selectedAddress;if(!n)throw new Error("Ethereum address is unavailable");this._ensureKnownAddress(n);const s=e.to?_(e.to):null,i=e.value!=null?N(e.value):BigInt(0),r=e.data?X(e.data):Buffer.alloc(0),a=e.nonce!=null?j(e.nonce):null,o=e.gasPrice!=null?N(e.gasPrice):null,c=e.maxFeePerGas!=null?N(e.maxFeePerGas):null,d=e.maxPriorityFeePerGas!=null?N(e.maxPriorityFeePerGas):null,g=e.gas!=null?N(e.gas):null,p=e.chainId?j(e.chainId):this.getChainId();return{fromAddress:n,toAddress:s,weiValue:i,data:r,nonce:a,gasPriceInWei:o,maxFeePerGas:c,maxPriorityFeePerGas:d,gasLimit:g,chainId:p}}async ecRecover(e){const{method:n,params:s}=e;if(!Array.isArray(s))throw l.rpc.invalidParams();const r=await this.initializeRelay().sendRequest({method:"ethereumAddressFromSignedMessage",params:{message:H(s[0]),signature:H(s[1]),addPrefix:n==="personal_ecRecover"}});if(m(r))throw r;return r.result}getChainId(){var e;return Number.parseInt((e=this._storage.getItem(ve))!==null&&e!==void 0?e:"1",10)}async _eth_requestAccounts(){var e,n;if(this._addresses.length>0)return(e=this.callback)===null||e===void 0||e.call(this,"connect",{chainId:A(this.getChainId())}),this._addresses;const i=await this.initializeRelay().requestEthereumAccounts();if(m(i))throw i;if(!i.result)throw new Error("accounts received is empty");return this._setAddresses(i.result),(n=this.callback)===null||n===void 0||n.call(this,"connect",{chainId:A(this.getChainId())}),this._addresses}async personalSign({params:e}){if(!Array.isArray(e))throw l.rpc.invalidParams();const n=e[1],s=e[0];this._ensureKnownAddress(n);const r=await this.initializeRelay().sendRequest({method:"signEthereumMessage",params:{address:_(n),message:H(s),addPrefix:!0,typedDataJson:null}});if(m(r))throw r;return r.result}async _eth_signTransaction(e){const n=this._prepareTransactionParams(e[0]||{}),i=await this.initializeRelay().signEthereumTransaction(n);if(m(i))throw i;return i.result}async _eth_sendRawTransaction(e){const n=X(e[0]),i=await this.initializeRelay().submitEthereumTransaction(n,this.getChainId());if(m(i))throw i;return i.result}async _eth_sendTransaction(e){const n=this._prepareTransactionParams(e[0]||{}),i=await this.initializeRelay().signAndSubmitEthereumTransaction(n);if(m(i))throw i;return i.result}async signTypedData(e){const{method:n,params:s}=e;if(!Array.isArray(s))throw l.rpc.invalidParams();const i=d=>{const g={eth_signTypedData_v1:q.hashForSignTypedDataLegacy,eth_signTypedData_v3:q.hashForSignTypedData_v3,eth_signTypedData_v4:q.hashForSignTypedData_v4,eth_signTypedData:q.hashForSignTypedData_v4};return O(g[n]({data:pt(d)}),!0)},r=s[n==="eth_signTypedData_v1"?1:0],a=s[n==="eth_signTypedData_v1"?0:1];this._ensureKnownAddress(r);const c=await this.initializeRelay().sendRequest({method:"signEthereumMessage",params:{address:_(r),message:i(a),typedDataJson:JSON.stringify(a,null,2),addPrefix:!1}});if(m(c))throw c;return c.result}initializeRelay(){return this._relay||(this._relay=new C({linkAPIUrl:we,storage:this._storage,metadata:this.metadata,accountsCallback:this._setAddresses.bind(this),chainCallback:this.updateProviderInfo.bind(this)})),this._relay}}const Ze="SignerType",Xe=new E("CBWSDK","SignerConfigurator");function un(){return Xe.getItem(Ze)}function hn(t){Xe.setItem(Ze,t)}async function pn(t){const{communicator:e,metadata:n,handshakeRequest:s,callback:i}=t;gn(e,n,i).catch(()=>{});const r={id:crypto.randomUUID(),event:"selectSignerType",data:Object.assign(Object.assign({},t.preference),{handshakeRequest:s})},{data:a}=await e.postRequestAndWaitForResponse(r);return a}function fn(t){const{signerType:e,metadata:n,communicator:s,callback:i}=t;switch(e){case"scw":return new Mt({metadata:n,callback:i,communicator:s});case"walletlink":return new Qe({metadata:n,callback:i})}}async function gn(t,e,n){await t.onMessage(({event:i})=>i==="WalletLinkSessionRequest");const s=new Qe({metadata:e,callback:n});t.postMessage({event:"WalletLinkUpdate",data:{session:s.getSession()}}),await s.handshake(),t.postMessage({event:"WalletLinkUpdate",data:{connected:!0}})}const mn=`Coinbase Wallet SDK requires the Cross-Origin-Opener-Policy header to not be set to 'same-origin'. This is to ensure that the SDK can communicate with the Coinbase Smart Wallet app.
2
+
3
+ Please see https://www.smartwallet.dev/guides/tips/popup-tips#cross-origin-opener-policy for more information.`,bn=()=>{let t;return{getCrossOriginOpenerPolicy:()=>t===void 0?"undefined":t,checkCrossOriginOpenerPolicy:async()=>{if(typeof window>"u"){t="non-browser-env";return}try{const e=`${window.location.origin}${window.location.pathname}`,n=await fetch(e,{method:"HEAD"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const s=n.headers.get("Cross-Origin-Opener-Policy");t=s??"null",t==="same-origin"&&console.error(mn)}catch(e){console.error("Error checking Cross-Origin-Opener-Policy:",e.message),t="error"}}}},{checkCrossOriginOpenerPolicy:wn,getCrossOriginOpenerPolicy:yn}=bn(),Ee=420,Ie=540;function vn(t){const e=(window.innerWidth-Ee)/2+window.screenX,n=(window.innerHeight-Ie)/2+window.screenY;En(t);const s=window.open(t,"Smart Wallet",`width=${Ee}, height=${Ie}, left=${e}, top=${n}`);if(s==null||s.focus(),!s)throw l.rpc.internal("Pop up window failed to open");return s}function kn(t){t&&!t.closed&&t.close()}function En(t){const e={sdkName:Oe,sdkVersion:K,origin:window.location.origin,coop:yn()};for(const[n,s]of Object.entries(e))t.searchParams.append(n,s.toString())}class In{constructor({url:e=dn,metadata:n,preference:s}){this.popup=null,this.listeners=new Map,this.postMessage=async i=>{(await this.waitForPopupLoaded()).postMessage(i,this.url.origin)},this.postRequestAndWaitForResponse=async i=>{const r=this.onMessage(({requestId:a})=>a===i.id);return this.postMessage(i),await r},this.onMessage=async i=>new Promise((r,a)=>{const o=c=>{if(c.origin!==this.url.origin)return;const d=c.data;i(d)&&(r(d),window.removeEventListener("message",o),this.listeners.delete(o))};window.addEventListener("message",o),this.listeners.set(o,{reject:a})}),this.disconnect=()=>{kn(this.popup),this.popup=null,this.listeners.forEach(({reject:i},r)=>{i(l.provider.userRejectedRequest("Request rejected")),window.removeEventListener("message",r)}),this.listeners.clear()},this.waitForPopupLoaded=async()=>this.popup&&!this.popup.closed?(this.popup.focus(),this.popup):(this.popup=vn(this.url),this.onMessage(({event:i})=>i==="PopupUnload").then(this.disconnect).catch(()=>{}),this.onMessage(({event:i})=>i==="PopupLoaded").then(i=>{this.postMessage({requestId:i.id,data:{version:K,metadata:this.metadata,preference:this.preference,location:window.location.toString()}})}).then(()=>{if(!this.popup)throw l.rpc.internal();return this.popup})),this.url=new URL(e),this.metadata=n,this.preference=s}}function Sn(t){const e=ct(Cn(t),{shouldIncludeStack:!0}),n=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");return n.searchParams.set("version",K),n.searchParams.set("code",e.code.toString()),n.searchParams.set("message",e.message),Object.assign(Object.assign({},e),{docUrl:n.href})}function Cn(t){var e;if(typeof t=="string")return{message:t,code:h.rpc.internal};if(m(t)){const n=t.errorMessage,s=(e=t.errorCode)!==null&&e!==void 0?e:n.match(/(denied|rejected)/i)?h.provider.userRejectedRequest:void 0;return Object.assign(Object.assign({},t),{message:n,code:s,data:{method:t.method}})}return t}class Mn extends it{}var _n=function(t,e){var n={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(t);i<s.length;i++)e.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(t,s[i])&&(n[s[i]]=t[s[i]]);return n};class An extends Mn{constructor(e){var{metadata:n}=e,s=e.preference,{keysUrl:i}=s,r=_n(s,["keysUrl"]);super(),this.signer=null,this.isCoinbaseWallet=!0,this.metadata=n,this.preference=r,this.communicator=new In({url:i,metadata:n,preference:r});const a=un();a&&(this.signer=this.initSigner(a))}async request(e){try{if(Ct(e),!this.signer)switch(e.method){case"eth_requestAccounts":{const n=await this.requestSignerSelection(e),s=this.initSigner(n);await s.handshake(e),this.signer=s,hn(n);break}case"net_version":return 1;case"eth_chainId":return A(1);default:throw l.provider.unauthorized("Must call 'eth_requestAccounts' before other methods")}return this.signer.request(e)}catch(n){const{code:s}=n;return s===h.provider.unauthorized&&this.disconnect(),Promise.reject(Sn(n))}}async enable(){return console.warn('.enable() has been deprecated. Please use .request({ method: "eth_requestAccounts" }) instead.'),await this.request({method:"eth_requestAccounts"})}async disconnect(){var e;await((e=this.signer)===null||e===void 0?void 0:e.cleanup()),this.signer=null,E.clearAll(),this.emit("disconnect",l.provider.disconnected("User initiated disconnection"))}requestSignerSelection(e){return pn({communicator:this.communicator,preference:this.preference,metadata:this.metadata,handshakeRequest:e,callback:this.emit.bind(this)})}initSigner(e){return fn({signerType:e,metadata:this.metadata,communicator:this.communicator,callback:this.emit.bind(this)})}}function xn(t){if(t){if(!["all","smartWalletOnly","eoaOnly"].includes(t.options))throw new Error(`Invalid options: ${t.options}`);if(t.attribution&&t.attribution.auto!==void 0&&t.attribution.dataSuffix!==void 0)throw new Error("Attribution cannot contain both auto and dataSuffix properties")}}function Pn(t){var e;const n={metadata:t.metadata,preference:t.preference};return(e=St(n))!==null&&e!==void 0?e:new An(n)}const Rn={options:"all"};function Nn(t){var e;new E("CBWSDK").setItem("VERSION",K),wn();const s={metadata:{appName:t.appName||"Dapp",appLogoUrl:t.appLogoUrl||"",appChainIds:t.appChainIds||[]},preference:Object.assign(Rn,(e=t.preference)!==null&&e!==void 0?e:{})};xn(s.preference);let i=null;return{getProvider:()=>(i||(i=Pn(s)),i)}}export{Nn as createCoinbaseWalletSDK};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-cne7xGMC.js","assets/index-gNKTdR8a.js","assets/index-YsGNa18R.css"])))=>i.map(i=>d[i]);
2
+ import{_ as pe}from"./index-gNKTdR8a.js";const me=Symbol(),ee=Object.getPrototypeOf,Y=new WeakMap,he=e=>e&&(Y.has(e)?Y.get(e):ee(e)===Object.prototype||ee(e)===Array.prototype),ge=e=>he(e)&&e[me]||null,te=(e,t=!0)=>{Y.set(e,t)},z={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},F=e=>typeof e=="object"&&e!==null,C=new WeakMap,x=new WeakSet,ye=(e=Object.is,t=(o,g)=>new Proxy(o,g),s=o=>F(o)&&!x.has(o)&&(Array.isArray(o)||!(Symbol.iterator in o))&&!(o instanceof WeakMap)&&!(o instanceof WeakSet)&&!(o instanceof Error)&&!(o instanceof Number)&&!(o instanceof Date)&&!(o instanceof String)&&!(o instanceof RegExp)&&!(o instanceof ArrayBuffer),n=o=>{switch(o.status){case"fulfilled":return o.value;case"rejected":throw o.reason;default:throw o}},l=new WeakMap,c=(o,g,I=n)=>{const v=l.get(o);if((v==null?void 0:v[0])===g)return v[1];const w=Array.isArray(o)?[]:Object.create(Object.getPrototypeOf(o));return te(w,!0),l.set(o,[g,w]),Reflect.ownKeys(o).forEach(j=>{if(Object.getOwnPropertyDescriptor(w,j))return;const O=Reflect.get(o,j),A={value:O,enumerable:!0,configurable:!0};if(x.has(O))te(O,!1);else if(O instanceof Promise)delete A.value,A.get=()=>I(O);else if(C.has(O)){const[y,H]=C.get(O);A.value=c(y,H(),I)}Object.defineProperty(w,j,A)}),Object.preventExtensions(w)},d=new WeakMap,f=[1,1],W=o=>{if(!F(o))throw new Error("object required");const g=d.get(o);if(g)return g;let I=f[0];const v=new Set,w=(i,a=++f[0])=>{I!==a&&(I=a,v.forEach(r=>r(i,a)))};let j=f[1];const O=(i=++f[1])=>(j!==i&&!v.size&&(j=i,y.forEach(([a])=>{const r=a[1](i);r>I&&(I=r)})),I),A=i=>(a,r)=>{const h=[...a];h[1]=[i,...h[1]],w(h,r)},y=new Map,H=(i,a)=>{if((z?"production":void 0)!=="production"&&y.has(i))throw new Error("prop listener already exists");if(v.size){const r=a[3](A(i));y.set(i,[a,r])}else y.set(i,[a])},Z=i=>{var a;const r=y.get(i);r&&(y.delete(i),(a=r[1])==null||a.call(r))},ue=i=>(v.add(i),v.size===1&&y.forEach(([r,h],U)=>{if((z?"production":void 0)!=="production"&&h)throw new Error("remove already exists");const k=r[3](A(U));y.set(U,[r,k])}),()=>{v.delete(i),v.size===0&&y.forEach(([r,h],U)=>{h&&(h(),y.set(U,[r]))})}),q=Array.isArray(o)?[]:Object.create(Object.getPrototypeOf(o)),R=t(q,{deleteProperty(i,a){const r=Reflect.get(i,a);Z(a);const h=Reflect.deleteProperty(i,a);return h&&w(["delete",[a],r]),h},set(i,a,r,h){const U=Reflect.has(i,a),k=Reflect.get(i,a,h);if(U&&(e(k,r)||d.has(r)&&e(k,d.get(r))))return!0;Z(a),F(r)&&(r=ge(r)||r);let V=r;if(r instanceof Promise)r.then(L=>{r.status="fulfilled",r.value=L,w(["resolve",[a],L])}).catch(L=>{r.status="rejected",r.reason=L,w(["reject",[a],L])});else{!C.has(r)&&s(r)&&(V=W(r));const L=!x.has(V)&&C.get(V);L&&H(a,L)}return Reflect.set(i,a,V,h),w(["set",[a],r,k]),!0}});d.set(o,R);const fe=[q,O,c,ue];return C.set(R,fe),Reflect.ownKeys(o).forEach(i=>{const a=Object.getOwnPropertyDescriptor(o,i);"value"in a&&(R[i]=o[i],delete a.value,delete a.writable),Object.defineProperty(q,i,a)}),R})=>[W,C,x,e,t,s,n,l,c,d,f],[ve]=ye();function P(e={}){return ve(e)}function D(e,t,s){const n=C.get(e);(z?"production":void 0)!=="production"&&!n&&console.warn("Please use proxy object");let l;const c=[],d=n[3];let f=!1;const o=d(g=>{c.push(g),l||(l=Promise.resolve().then(()=>{l=void 0,f&&t(c.splice(0))}))});return f=!0,()=>{f=!1,o()}}function we(e,t){const s=C.get(e);(z?"production":void 0)!=="production"&&!s&&console.warn("Please use proxy object");const[n,l,c]=s;return c(n,l(),t)}const u=P({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),de={state:u,subscribe(e){return D(u,()=>e(u))},push(e,t){e!==u.view&&(u.view=e,t&&(u.data=t),u.history.push(e))},reset(e){u.view=e,u.history=[e]},replace(e){u.history.length>1&&(u.history[u.history.length-1]=e,u.view=e)},goBack(){if(u.history.length>1){u.history.pop();const[e]=u.history.slice(-1);u.view=e}},setData(e){u.data=e}},m={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return m.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return m.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},isTelegram(){return typeof window<"u"&&(!!window.TelegramWebviewProxy||!!window.Telegram||!!window.TelegramWebviewProxyProto)},formatNativeUrl(e,t,s){if(m.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let n=e;n.includes("://")||(n=e.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const l=encodeURIComponent(t);return`${n}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!m.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let n=e;if(n.startsWith("https://t.me")){const c=Buffer.from(t).toString("base64").replace(/[=]/g,"");n.endsWith("/")&&(n=n.slice(0,-1)),this.setWalletConnectDeepLink(n,s);const d=new URL(n);return d.searchParams.set("startapp",c),d.toString()}n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const l=encodeURIComponent(t);return`${n}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){const s=this.isTelegram()?"_blank":t;window.open(e,s,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(m.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(m.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(m.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(m.WCM_VERSION,"2.7.0")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=de.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},be=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),p=P({enabled:be,userSessionId:"",events:[],connectedWalletId:void 0}),Ie={state:p,subscribe(e){return D(p.events,()=>e(we(p.events[p.events.length-1])))},initialize(){p.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(p.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){p.connectedWalletId=e},click(e){if(p.enabled){const t={type:"CLICK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},track(e){if(p.enabled){const t={type:"TRACK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},view(e){if(p.enabled){const t={type:"VIEW",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}}},_=P({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),b={state:_,subscribe(e){return D(_,()=>e(_))},setChains(e){_.chains=e},setWalletConnectUri(e){_.walletConnectUri=e},setIsCustomDesktop(e){_.isCustomDesktop=e},setIsCustomMobile(e){_.isCustomMobile=e},setIsDataLoaded(e){_.isDataLoaded=e},setIsUiLoaded(e){_.isUiLoaded=e},setIsAuth(e){_.isAuth=e}},B=P({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),$={state:B,subscribe(e){return D(B,()=>e(B))},setConfig(e){var t,s;Ie.initialize(),b.setChains(e.chains),b.setIsAuth(!!e.enableAuthMode),b.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),b.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),m.setModalVersionInStorage(),Object.assign(B,e)}};var _e=Object.defineProperty,se=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,ne=(e,t,s)=>t in e?_e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,We=(e,t)=>{for(var s in t||(t={}))Ee.call(t,s)&&ne(e,s,t[s]);if(se)for(var s of se(t))Oe.call(t,s)&&ne(e,s,t[s]);return e};const G="https://explorer-api.walletconnect.com",Q="wcm",X="js-2.7.0";async function K(e,t){const s=We({sdkType:Q,sdkVersion:X},t),n=new URL(e,G);return n.searchParams.append("projectId",$.state.projectId),Object.entries(s).forEach(([c,d])=>{d&&n.searchParams.append(c,String(d))}),(await fetch(n)).json()}const M={async getDesktopListings(e){return K("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return K("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return K("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return K("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${G}/w3m/v1/getWalletImage/${e}?projectId=${$.state.projectId}&sdkType=${Q}&sdkVersion=${X}`},getAssetImageUrl(e){return`${G}/w3m/v1/getAssetImage/${e}?projectId=${$.state.projectId}&sdkType=${Q}&sdkVersion=${X}`}};var Le=Object.defineProperty,oe=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?Le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Ae=(e,t)=>{for(var s in t||(t={}))Ce.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))Pe.call(t,s)&&re(e,s,t[s]);return e};const ae=m.isMobile(),E=P({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Ne={state:E,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=$.state;if(e==="NONE"||t==="ALL"&&!e)return E.recomendedWallets;if(m.isArray(e)){const n={recommendedIds:e.join(",")},{listings:l}=await M.getAllListings(n),c=Object.values(l);c.sort((d,f)=>{const W=e.indexOf(d.id),o=e.indexOf(f.id);return W-o}),E.recomendedWallets=c}else{const{chains:s,isAuth:n}=b.state,l=s==null?void 0:s.join(","),c=m.isArray(t),d={page:1,sdks:n?"auth_v1":void 0,entries:m.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:f}=ae?await M.getMobileListings(d):await M.getDesktopListings(d);E.recomendedWallets=Object.values(f)}return E.recomendedWallets},async getWallets(e){const t=Ae({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:n}=$.state,{recomendedWallets:l}=E;if(n==="ALL")return E.wallets;l.length?t.excludedIds=l.map(I=>I.id).join(","):m.isArray(s)&&(t.excludedIds=s.join(",")),m.isArray(n)&&(t.excludedIds=[t.excludedIds,n].filter(Boolean).join(",")),b.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:d}=e,{listings:f,total:W}=ae?await M.getMobileListings(t):await M.getDesktopListings(t),o=Object.values(f),g=d?"search":"wallets";return E[g]={listings:[...E[g].listings,...o],total:W,page:c??1},{listings:o,total:W}},getWalletImageUrl(e){return M.getWalletImageUrl(e)},getAssetImageUrl(e){return M.getAssetImageUrl(e)},resetSearch(){E.search={listings:[],total:0,page:1}}},T=P({open:!1}),J={state:T,subscribe(e){return D(T,()=>e(T))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:n}=b.state;if(m.removeWalletConnectDeepLink(),b.setWalletConnectUri(e==null?void 0:e.uri),b.setChains(e==null?void 0:e.chains),de.reset("ConnectWallet"),s&&n)T.open=!0,t();else{const l=setInterval(()=>{const c=b.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),T.open=!0,t())},200)}})},close(){T.open=!1}};var Me=Object.defineProperty,ie=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,le=(e,t,s)=>t in e?Me(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,je=(e,t)=>{for(var s in t||(t={}))Se.call(t,s)&&le(e,s,t[s]);if(ie)for(var s of ie(t))De.call(t,s)&&le(e,s,t[s]);return e};function Ue(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const N=P({themeMode:Ue()?"dark":"light"}),ce={state:N,subscribe(e){return D(N,()=>e(N))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(N.themeMode=t),s&&(N.themeVariables=je({},s))}},S=P({open:!1,message:"",variant:"success"}),Re={state:S,subscribe(e){return D(S,()=>e(S))},openToast(e,t){S.open=!0,S.message=e,S.variant=t},closeToast(){S.open=!1}};class Te{constructor(t){this.openModal=J.open,this.closeModal=J.close,this.subscribeModal=J.subscribe,this.setTheme=ce.setThemeConfig,ce.setThemeConfig(t),$.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await pe(()=>import("./index-cne7xGMC.js"),__vite__mapDeps([0,1,2]));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),b.setIsUiLoaded(!0)}}}const Ve=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:Te},Symbol.toStringTag,{value:"Module"}));export{m as C,Ne as E,J as M,b as O,de as R,ce as T,Re as a,Ie as b,$ as c,Ve as i};
@@ -0,0 +1 @@
1
+ import{l as N,m as L,n as Ke,o as Fe}from"./index-gNKTdR8a.js";const B=()=>"9.1.0",Xe=e=>e.toString(16).padStart(2,"0"),Qe=e=>{const n=new Uint8Array(e/2);return window.crypto.getRandomValues(n),Array.from(n,Xe).join("")},$e=()=>typeof window<"u"?Qe(10):new Date().getTime().toString(36);class C{}C.makeRequest=(e,n)=>({id:$e(),method:e,params:n,env:{sdkVersion:B()}});C.makeResponse=(e,n,t)=>({id:e,success:!0,version:t,data:n});C.makeErrorResponse=(e,n,t)=>({id:e,success:!1,error:n,version:t});var f;(function(e){e.sendTransactions="sendTransactions",e.rpcCall="rpcCall",e.getChainInfo="getChainInfo",e.getSafeInfo="getSafeInfo",e.getTxBySafeTxHash="getTxBySafeTxHash",e.getSafeBalances="getSafeBalances",e.signMessage="signMessage",e.signTypedMessage="signTypedMessage",e.getEnvironmentInfo="getEnvironmentInfo",e.getOffChainSignature="getOffChainSignature",e.requestAddressBook="requestAddressBook",e.wallet_getPermissions="wallet_getPermissions",e.wallet_requestPermissions="wallet_requestPermissions"})(f||(f={}));var D;(function(e){e.requestAddressBook="requestAddressBook"})(D||(D={}));class Ye{constructor(n=null,t=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:i,data:r,source:s})=>{const d=!r,l=!this.isServer&&s===window.parent,h=typeof r.version<"u"&&parseInt(r.version.split(".")[0]),S=typeof h=="number"&&h>=1;let E=!0;return Array.isArray(this.allowedOrigins)&&(E=this.allowedOrigins.find(v=>v.test(i))!==void 0),!d&&l&&S&&E},this.logIncomingMessage=i=>{console.info(`Safe Apps SDK v1: A message was received from origin ${i.origin}. `,i.data)},this.onParentMessage=i=>{this.isValidMessage(i)&&(this.debugMode&&this.logIncomingMessage(i),this.handleIncomingMessage(i.data))},this.handleIncomingMessage=i=>{const{id:r}=i,s=this.callbacks.get(r);s&&(s(i),this.callbacks.delete(r))},this.send=(i,r)=>{const s=C.makeRequest(i,r);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(s,"*"),new Promise((d,l)=>{this.callbacks.set(s.id,h=>{if(!h.success){l(new Error(h.error));return}d(h)})})},this.allowedOrigins=n,this.debugMode=t,this.isServer||window.addEventListener("message",this.onParentMessage)}}const w=e=>typeof e=="object"&&e!=null&&"domain"in e&&"types"in e&&"message"in e;var y={},T={},I={},M=N&&N.__awaiter||function(e,n,t,i){function r(s){return s instanceof t?s:new t(function(d){d(s)})}return new(t||(t=Promise))(function(s,d){function l(E){try{S(i.next(E))}catch(v){d(v)}}function h(E){try{S(i.throw(E))}catch(v){d(v)}}function S(E){E.done?s(E.value):r(E.value).then(l,h)}S((i=i.apply(e,n||[])).next())})};Object.defineProperty(I,"__esModule",{value:!0});I.getData=I.fetchData=I.stringifyQuery=I.insertParams=void 0;const Je=e=>typeof e=="object"&&e!==null&&"code"in e&&"message"in e;function ze(e,n,t){return e.replace(new RegExp(`\\{${n}\\}`,"g"),t)}function Ze(e,n){return n?Object.keys(n).reduce((t,i)=>ze(t,i,String(n[i])),e):e}I.insertParams=Ze;function xe(e){if(!e)return"";const n=new URLSearchParams;Object.keys(e).forEach(i=>{e[i]!=null&&n.append(i,String(e[i]))});const t=n.toString();return t?`?${t}`:""}I.stringifyQuery=xe;function G(e){return M(this,void 0,void 0,function*(){let n;try{n=yield e.json()}catch{n={}}if(!e.ok){const t=Je(n)?`CGW error - ${n.code}: ${n.message}`:`CGW error - status ${e.statusText}`;throw new Error(t)}return n})}function en(e,n,t,i,r){return M(this,void 0,void 0,function*(){const s=Object.assign({"Content-Type":"application/json"},i),d={method:n??"POST",headers:s};r&&(d.credentials=r),t!=null&&(d.body=typeof t=="string"?t:JSON.stringify(t));const l=yield fetch(e,d);return G(l)})}I.fetchData=en;function nn(e,n,t){return M(this,void 0,void 0,function*(){const i={method:"GET"};n&&(i.headers=Object.assign(Object.assign({},n),{"Content-Type":"application/json"})),t&&(i.credentials=t);const r=yield fetch(e,i);return G(r)})}I.getData=nn;Object.defineProperty(T,"__esModule",{value:!0});T.getEndpoint=T.deleteEndpoint=T.putEndpoint=T.postEndpoint=void 0;const O=I;function b(e,n,t,i){const r=(0,O.insertParams)(n,t),s=(0,O.stringifyQuery)(i);return`${e}${r}${s}`}function tn(e,n,t){const i=b(e,n,t==null?void 0:t.path,t==null?void 0:t.query);return(0,O.fetchData)(i,"POST",t==null?void 0:t.body,t==null?void 0:t.headers,t==null?void 0:t.credentials)}T.postEndpoint=tn;function an(e,n,t){const i=b(e,n,t==null?void 0:t.path,t==null?void 0:t.query);return(0,O.fetchData)(i,"PUT",t==null?void 0:t.body,t==null?void 0:t.headers,t==null?void 0:t.credentials)}T.putEndpoint=an;function sn(e,n,t){const i=b(e,n,t==null?void 0:t.path,t==null?void 0:t.query);return(0,O.fetchData)(i,"DELETE",t==null?void 0:t.body,t==null?void 0:t.headers,t==null?void 0:t.credentials)}T.deleteEndpoint=sn;function cn(e,n,t,i){if(i)return(0,O.getData)(i,void 0,t==null?void 0:t.credentials);const r=b(e,n,t==null?void 0:t.path,t==null?void 0:t.query);return(0,O.getData)(r,t==null?void 0:t.headers,t==null?void 0:t.credentials)}T.getEndpoint=cn;var R={};Object.defineProperty(R,"__esModule",{value:!0});R.DEFAULT_BASE_URL=void 0;R.DEFAULT_BASE_URL="https://safe-client.safe.global";var H={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationVersionState=void 0,function(n){n.UP_TO_DATE="UP_TO_DATE",n.OUTDATED="OUTDATED",n.UNKNOWN="UNKNOWN"}(e.ImplementationVersionState||(e.ImplementationVersionState={}))})(H);var U={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeAppSocialPlatforms=e.SafeAppFeatures=e.SafeAppAccessPolicyTypes=void 0,function(n){n.NoRestrictions="NO_RESTRICTIONS",n.DomainAllowlist="DOMAIN_ALLOWLIST"}(e.SafeAppAccessPolicyTypes||(e.SafeAppAccessPolicyTypes={})),function(n){n.BATCHED_TRANSACTIONS="BATCHED_TRANSACTIONS"}(e.SafeAppFeatures||(e.SafeAppFeatures={})),function(n){n.TWITTER="TWITTER",n.GITHUB="GITHUB",n.DISCORD="DISCORD"}(e.SafeAppSocialPlatforms||(e.SafeAppSocialPlatforms={}))})(U);var V={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LabelValue=e.StartTimeValue=e.DurationType=e.DetailedExecutionInfoType=e.TransactionListItemType=e.ConflictType=e.TransactionInfoType=e.SettingsInfoType=e.TransactionTokenType=e.TransferDirection=e.TransactionStatus=e.Operation=void 0,function(n){n[n.CALL=0]="CALL",n[n.DELEGATE=1]="DELEGATE"}(e.Operation||(e.Operation={})),function(n){n.AWAITING_CONFIRMATIONS="AWAITING_CONFIRMATIONS",n.AWAITING_EXECUTION="AWAITING_EXECUTION",n.CANCELLED="CANCELLED",n.FAILED="FAILED",n.SUCCESS="SUCCESS"}(e.TransactionStatus||(e.TransactionStatus={})),function(n){n.INCOMING="INCOMING",n.OUTGOING="OUTGOING",n.UNKNOWN="UNKNOWN"}(e.TransferDirection||(e.TransferDirection={})),function(n){n.ERC20="ERC20",n.ERC721="ERC721",n.NATIVE_COIN="NATIVE_COIN"}(e.TransactionTokenType||(e.TransactionTokenType={})),function(n){n.SET_FALLBACK_HANDLER="SET_FALLBACK_HANDLER",n.ADD_OWNER="ADD_OWNER",n.REMOVE_OWNER="REMOVE_OWNER",n.SWAP_OWNER="SWAP_OWNER",n.CHANGE_THRESHOLD="CHANGE_THRESHOLD",n.CHANGE_IMPLEMENTATION="CHANGE_IMPLEMENTATION",n.ENABLE_MODULE="ENABLE_MODULE",n.DISABLE_MODULE="DISABLE_MODULE",n.SET_GUARD="SET_GUARD",n.DELETE_GUARD="DELETE_GUARD"}(e.SettingsInfoType||(e.SettingsInfoType={})),function(n){n.TRANSFER="Transfer",n.SETTINGS_CHANGE="SettingsChange",n.CUSTOM="Custom",n.CREATION="Creation",n.SWAP_ORDER="SwapOrder",n.TWAP_ORDER="TwapOrder",n.SWAP_TRANSFER="SwapTransfer",n.NATIVE_STAKING_DEPOSIT="NativeStakingDeposit",n.NATIVE_STAKING_VALIDATORS_EXIT="NativeStakingValidatorsExit",n.NATIVE_STAKING_WITHDRAW="NativeStakingWithdraw"}(e.TransactionInfoType||(e.TransactionInfoType={})),function(n){n.NONE="None",n.HAS_NEXT="HasNext",n.END="End"}(e.ConflictType||(e.ConflictType={})),function(n){n.TRANSACTION="TRANSACTION",n.LABEL="LABEL",n.CONFLICT_HEADER="CONFLICT_HEADER",n.DATE_LABEL="DATE_LABEL"}(e.TransactionListItemType||(e.TransactionListItemType={})),function(n){n.MULTISIG="MULTISIG",n.MODULE="MODULE"}(e.DetailedExecutionInfoType||(e.DetailedExecutionInfoType={})),function(n){n.AUTO="AUTO",n.LIMIT_DURATION="LIMIT_DURATION"}(e.DurationType||(e.DurationType={})),function(n){n.AT_MINING_TIME="AT_MINING_TIME",n.AT_EPOCH="AT_EPOCH"}(e.StartTimeValue||(e.StartTimeValue={})),function(n){n.Queued="Queued",n.Next="Next"}(e.LabelValue||(e.LabelValue={}))})(V);var j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FEATURES=e.GAS_PRICE_TYPE=e.RPC_AUTHENTICATION=void 0,function(n){n.API_KEY_PATH="API_KEY_PATH",n.NO_AUTHENTICATION="NO_AUTHENTICATION",n.UNKNOWN="UNKNOWN"}(e.RPC_AUTHENTICATION||(e.RPC_AUTHENTICATION={})),function(n){n.ORACLE="ORACLE",n.FIXED="FIXED",n.FIXED_1559="FIXED1559",n.UNKNOWN="UNKNOWN"}(e.GAS_PRICE_TYPE||(e.GAS_PRICE_TYPE={})),function(n){n.ERC721="ERC721",n.SAFE_APPS="SAFE_APPS",n.CONTRACT_INTERACTION="CONTRACT_INTERACTION",n.DOMAIN_LOOKUP="DOMAIN_LOOKUP",n.SPENDING_LIMIT="SPENDING_LIMIT",n.EIP1559="EIP1559",n.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL",n.TX_SIMULATION="TX_SIMULATION",n.EIP1271="EIP1271"}(e.FEATURES||(e.FEATURES={}))})(j);var W={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TokenType=void 0,function(n){n.ERC20="ERC20",n.ERC721="ERC721",n.NATIVE_TOKEN="NATIVE_TOKEN"}(e.TokenType||(e.TokenType={}))})(W);var q={};Object.defineProperty(q,"__esModule",{value:!0});var k={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NativeStakingStatus=e.ConfirmationViewTypes=void 0,function(n){n.GENERIC="GENERIC",n.COW_SWAP_ORDER="COW_SWAP_ORDER",n.COW_SWAP_TWAP_ORDER="COW_SWAP_TWAP_ORDER",n.KILN_NATIVE_STAKING_DEPOSIT="KILN_NATIVE_STAKING_DEPOSIT",n.KILN_NATIVE_STAKING_VALIDATORS_EXIT="KILN_NATIVE_STAKING_VALIDATORS_EXIT",n.KILN_NATIVE_STAKING_WITHDRAW="KILN_NATIVE_STAKING_WITHDRAW"}(e.ConfirmationViewTypes||(e.ConfirmationViewTypes={})),function(n){n.NOT_STAKED="NOT_STAKED",n.ACTIVATING="ACTIVATING",n.DEPOSIT_IN_PROGRESS="DEPOSIT_IN_PROGRESS",n.ACTIVE="ACTIVE",n.EXIT_REQUESTED="EXIT_REQUESTED",n.EXITING="EXITING",n.EXITED="EXITED",n.SLASHED="SLASHED"}(e.NativeStakingStatus||(e.NativeStakingStatus={}))})(k);var K={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeMessageStatus=e.SafeMessageListItemType=void 0,function(n){n.DATE_LABEL="DATE_LABEL",n.MESSAGE="MESSAGE"}(e.SafeMessageListItemType||(e.SafeMessageListItemType={})),function(n){n.NEEDS_CONFIRMATION="NEEDS_CONFIRMATION",n.CONFIRMED="CONFIRMED"}(e.SafeMessageStatus||(e.SafeMessageStatus={}))})(K);var F={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeviceType=void 0,function(n){n.ANDROID="ANDROID",n.IOS="IOS",n.WEB="WEB"}(e.DeviceType||(e.DeviceType={}))})(F);var X={};Object.defineProperty(X,"__esModule",{value:!0});(function(e){var n=N&&N.__createBinding||(Object.create?function(a,c,o,u){u===void 0&&(u=o);var _=Object.getOwnPropertyDescriptor(c,o);(!_||("get"in _?!c.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return c[o]}}),Object.defineProperty(a,u,_)}:function(a,c,o,u){u===void 0&&(u=o),a[u]=c[o]}),t=N&&N.__exportStar||function(a,c){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(c,o)&&n(c,a,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.getAccount=e.createAccount=e.verifyAuth=e.getAuthNonce=e.getContract=e.getSafeOverviews=e.unsubscribeAll=e.unsubscribeSingle=e.registerRecoveryModule=e.deleteRegisteredEmail=e.getRegisteredEmail=e.verifyEmail=e.resendEmailVerificationCode=e.changeEmail=e.registerEmail=e.unregisterDevice=e.unregisterSafe=e.registerDevice=e.getDelegates=e.confirmSafeMessage=e.proposeSafeMessage=e.getSafeMessage=e.getSafeMessages=e.getDecodedData=e.getMasterCopies=e.getSafeApps=e.getChainConfig=e.getChainsConfig=e.getTxPreview=e.getConfirmationView=e.proposeTransaction=e.getNonces=e.postSafeGasEstimation=e.deleteTransaction=e.getTransactionDetails=e.getTransactionQueue=e.getTransactionHistory=e.getCollectiblesPage=e.getCollectibles=e.getAllOwnedSafes=e.getOwnedSafes=e.getFiatCurrencies=e.getBalances=e.getMultisigTransactions=e.getModuleTransactions=e.getIncomingTransfers=e.getSafeInfo=e.getRelayCount=e.relayTransaction=e.setBaseUrl=void 0,e.getIndexingStatus=e.putAccountDataSettings=e.getAccountDataSettings=e.getAccountDataTypes=e.deleteAccount=void 0;const i=T,r=R;t(H,e),t(U,e),t(V,e),t(j,e),t(W,e),t(q,e),t(k,e),t(K,e),t(F,e),t(X,e);let s=r.DEFAULT_BASE_URL;const d=a=>{s=a};e.setBaseUrl=d;function l(a,c){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/relay",{path:{chainId:a},body:c})}e.relayTransaction=l;function h(a,c){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/relay/{address}",{path:{chainId:a,address:c}})}e.getRelayCount=h;function S(a,c){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}",{path:{chainId:a,address:c}})}e.getSafeInfo=S;function E(a,c,o,u){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/incoming-transfers/",{path:{chainId:a,address:c},query:o},u)}e.getIncomingTransfers=E;function v(a,c,o,u){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/module-transactions/",{path:{chainId:a,address:c},query:o},u)}e.getModuleTransactions=v;function Y(a,c,o,u){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/multisig-transactions/",{path:{chainId:a,address:c},query:o},u)}e.getMultisigTransactions=Y;function J(a,c,o="usd",u={}){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/balances/{currency}",{path:{chainId:a,address:c,currency:o},query:u})}e.getBalances=J;function z(){return(0,i.getEndpoint)(s,"/v1/balances/supported-fiat-codes")}e.getFiatCurrencies=z;function Z(a,c){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/owners/{address}/safes",{path:{chainId:a,address:c}})}e.getOwnedSafes=Z;function x(a){return(0,i.getEndpoint)(s,"/v1/owners/{address}/safes",{path:{address:a}})}e.getAllOwnedSafes=x;function ee(a,c,o={}){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:a,address:c},query:o})}e.getCollectibles=ee;function ne(a,c,o={},u){return(0,i.getEndpoint)(s,"/v2/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:a,address:c},query:o},u)}e.getCollectiblesPage=ne;function te(a,c,o={},u){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:a,safe_address:c},query:o},u)}e.getTransactionHistory=te;function ie(a,c,o={},u){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:a,safe_address:c},query:o},u)}e.getTransactionQueue=ie;function ae(a,c){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/transactions/{transactionId}",{path:{chainId:a,transactionId:c}})}e.getTransactionDetails=ae;function se(a,c,o){return(0,i.deleteEndpoint)(s,"/v1/chains/{chainId}/transactions/{safeTxHash}",{path:{chainId:a,safeTxHash:c},body:{signature:o}})}e.deleteTransaction=se;function ce(a,c,o){return(0,i.postEndpoint)(s,"/v2/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:a,safe_address:c},body:o})}e.postSafeGasEstimation=ce;function oe(a,c){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/nonces",{path:{chainId:a,safe_address:c}})}e.getNonces=oe;function re(a,c,o){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:a,safe_address:c},body:o})}e.proposeTransaction=re;function ue(a,c,o,u,_){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/views/transaction-confirmation",{path:{chainId:a,safe_address:c},body:{data:o,to:u,value:_}})}e.getConfirmationView=ue;function de(a,c,o,u,_){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/transactions/{safe_address}/preview",{path:{chainId:a,safe_address:c},body:{data:o,to:u,value:_}})}e.getTxPreview=de;function le(a){return(0,i.getEndpoint)(s,"/v1/chains",{query:a})}e.getChainsConfig=le;function fe(a){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}",{path:{chainId:a}})}e.getChainConfig=fe;function ge(a,c={}){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safe-apps",{path:{chainId:a},query:c})}e.getSafeApps=ge;function he(a){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/about/master-copies",{path:{chainId:a}})}e.getMasterCopies=he;function Ee(a,c,o){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/data-decoder",{path:{chainId:a},body:{data:c,to:o}})}e.getDecodedData=Ee;function _e(a,c,o){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:a,safe_address:c},query:{}},o)}e.getSafeMessages=_e;function Te(a,c){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/messages/{message_hash}",{path:{chainId:a,message_hash:c}})}e.getSafeMessage=Te;function Ie(a,c,o){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:a,safe_address:c},body:o})}e.proposeSafeMessage=Ie;function Ae(a,c,o){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/messages/{message_hash}/signatures",{path:{chainId:a,message_hash:c},body:o})}e.confirmSafeMessage=Ae;function Se(a,c={}){return(0,i.getEndpoint)(s,"/v2/chains/{chainId}/delegates",{path:{chainId:a},query:c})}e.getDelegates=Se;function ve(a){return(0,i.postEndpoint)(s,"/v1/register/notifications",{body:a})}e.registerDevice=ve;function Oe(a,c,o){return(0,i.deleteEndpoint)(s,"/v1/chains/{chainId}/notifications/devices/{uuid}/safes/{safe_address}",{path:{chainId:a,safe_address:c,uuid:o}})}e.unregisterSafe=Oe;function Ne(a,c){return(0,i.deleteEndpoint)(s,"/v1/chains/{chainId}/notifications/devices/{uuid}",{path:{chainId:a,uuid:c}})}e.unregisterDevice=Ne;function ye(a,c,o,u){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/emails",{path:{chainId:a,safe_address:c},body:o,headers:u})}e.registerEmail=ye;function me(a,c,o,u,_){return(0,i.putEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:a,safe_address:c,signer:o},body:u,headers:_})}e.changeEmail=me;function Ce(a,c,o){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}/verify-resend",{path:{chainId:a,safe_address:c,signer:o},body:""})}e.resendEmailVerificationCode=Ce;function De(a,c,o,u){return(0,i.putEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}/verify",{path:{chainId:a,safe_address:c,signer:o},body:u})}e.verifyEmail=De;function be(a,c,o,u){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:a,safe_address:c,signer:o},headers:u})}e.getRegisteredEmail=be;function Re(a,c,o,u){return(0,i.deleteEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:a,safe_address:c,signer:o},headers:u})}e.deleteRegisteredEmail=Re;function Pe(a,c,o){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/recovery",{path:{chainId:a,safe_address:c},body:o})}e.registerRecoveryModule=Pe;function we(a){return(0,i.deleteEndpoint)(s,"/v1/subscriptions",{query:a})}e.unsubscribeSingle=we;function Me(a){return(0,i.deleteEndpoint)(s,"/v1/subscriptions/all",{query:a})}e.unsubscribeAll=Me;function Le(a,c){return(0,i.getEndpoint)(s,"/v1/safes",{query:Object.assign(Object.assign({},c),{safes:a.join(",")})})}e.getSafeOverviews=Le;function pe(a,c){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/contracts/{contractAddress}",{path:{chainId:a,contractAddress:c}})}e.getContract=pe;function Be(){return(0,i.getEndpoint)(s,"/v1/auth/nonce",{credentials:"include"})}e.getAuthNonce=Be;function Ge(a){return(0,i.postEndpoint)(s,"/v1/auth/verify",{body:a,credentials:"include"})}e.verifyAuth=Ge;function He(a){return(0,i.postEndpoint)(s,"/v1/accounts",{body:a,credentials:"include"})}e.createAccount=He;function Ue(a){return(0,i.getEndpoint)(s,"/v1/accounts/{address}",{path:{address:a},credentials:"include"})}e.getAccount=Ue;function Ve(a){return(0,i.deleteEndpoint)(s,"/v1/accounts/{address}",{path:{address:a},credentials:"include"})}e.deleteAccount=Ve;function je(){return(0,i.getEndpoint)(s,"/v1/accounts/data-types")}e.getAccountDataTypes=je;function We(a){return(0,i.getEndpoint)(s,"/v1/accounts/{address}/data-settings",{path:{address:a},credentials:"include"})}e.getAccountDataSettings=We;function qe(a,c){return(0,i.putEndpoint)(s,"/v1/accounts/{address}/data-settings",{path:{address:a},body:c,credentials:"include"})}e.putAccountDataSettings=qe;function ke(a){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/about/indexing",{path:{chainId:a}})}e.getIndexingStatus=ke})(y);class on{constructor(n){this.communicator=n}async getBySafeTxHash(n){if(!n)throw new Error("Invalid safeTxHash");return(await this.communicator.send(f.getTxBySafeTxHash,{safeTxHash:n})).data}async signMessage(n){const t={message:n};return(await this.communicator.send(f.signMessage,t)).data}async signTypedMessage(n){if(!w(n))throw new Error("Invalid typed data");return(await this.communicator.send(f.signTypedMessage,{typedData:n})).data}async send({txs:n,params:t}){if(!n||!n.length)throw new Error("No transactions were passed");const i={txs:n,params:t};return(await this.communicator.send(f.sendTransactions,i)).data}}const g={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"},A={defaultBlockParam:(e="latest")=>e,returnFullTxObjectParam:(e=!1)=>e,blockNumberToHex:e=>Number.isInteger(e)?`0x${e.toString(16)}`:e};class rn{constructor(n){this.communicator=n,this.call=this.buildRequest({call:g.eth_call,formatters:[null,A.defaultBlockParam]}),this.getBalance=this.buildRequest({call:g.eth_getBalance,formatters:[null,A.defaultBlockParam]}),this.getCode=this.buildRequest({call:g.eth_getCode,formatters:[null,A.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:g.eth_getStorageAt,formatters:[null,A.blockNumberToHex,A.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:g.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:g.eth_getBlockByHash,formatters:[null,A.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:g.eth_getBlockByNumber,formatters:[A.blockNumberToHex,A.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:g.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:g.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:g.eth_getTransactionCount,formatters:[null,A.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:g.eth_gasPrice}),this.getEstimateGas=t=>this.buildRequest({call:g.eth_estimateGas})([t]),this.setSafeSettings=this.buildRequest({call:g.safe_setSettings})}buildRequest(n){const{call:t,formatters:i}=n;return async r=>{i&&Array.isArray(r)&&i.forEach((l,h)=>{l&&(r[h]=l(r[h]))});const s={call:t,params:r||[]};return(await this.communicator.send(f.rpcCall,s)).data}}}const un="0x1626ba7e",dn="0x20c13b0b",P=4001;class m extends Error{constructor(n,t,i){super(n),this.code=t,this.data=i,Object.setPrototypeOf(this,m.prototype)}}class Q{constructor(n){this.communicator=n}async getPermissions(){return(await this.communicator.send(f.wallet_getPermissions,void 0)).data}async requestPermissions(n){if(!this.isPermissionRequestValid(n))throw new m("Permissions request is invalid",P);try{return(await this.communicator.send(f.wallet_requestPermissions,n)).data}catch{throw new m("Permissions rejected",P)}}isPermissionRequestValid(n){return n.every(t=>typeof t=="object"?Object.keys(t).every(i=>!!Object.values(D).includes(i)):!1)}}const p=(e,n)=>n.some(t=>t.parentCapability===e),ln=()=>(e,n,t)=>{const i=t.value;return t.value=async function(){const r=new Q(this.communicator);let s=await r.getPermissions();if(p(n,s)||(s=await r.requestPermissions([{[n]:{}}])),!p(n,s))throw new m("Permissions rejected",P);return i.apply(this)},t};var fn=function(e,n,t,i){var r=arguments.length,s=r<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,t):i,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,t,i);else for(var l=e.length-1;l>=0;l--)(d=e[l])&&(s=(r<3?d(s):r>3?d(n,t,s):d(n,t))||s);return r>3&&s&&Object.defineProperty(n,t,s),s};class ${constructor(n){this.communicator=n}async getChainInfo(){return(await this.communicator.send(f.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(f.getSafeInfo,void 0)).data}async experimental_getBalances({currency:n="usd"}={}){return(await this.communicator.send(f.getSafeBalances,{currency:n})).data}async check1271Signature(n,t="0x"){const i=await this.getInfo(),r=L({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[n,t]}),s={call:g.eth_call,params:[{to:i.safeAddress,data:r},"latest"]};try{return(await this.communicator.send(f.rpcCall,s)).data.slice(0,10).toLowerCase()===un}catch{return!1}}async check1271SignatureBytes(n,t="0x"){const i=await this.getInfo(),r=L({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[n,t]}),s={call:g.eth_call,params:[{to:i.safeAddress,data:r},"latest"]};try{return(await this.communicator.send(f.rpcCall,s)).data.slice(0,10).toLowerCase()===dn}catch{return!1}}calculateMessageHash(n){return Ke(n)}calculateTypedMessageHash(n){const t=typeof n.domain.chainId=="object"?n.domain.chainId.toNumber():Number(n.domain.chainId);let i=n.primaryType;if(!i){const r=Object.values(n.types),s=Object.keys(n.types).filter(d=>r.every(l=>l.every(({type:h})=>h.replace("[","").replace("]","")!==d)));if(s.length===0||s.length>1)throw new Error("Please specify primaryType");i=s[0]}return Fe({message:n.message,domain:{...n.domain,chainId:t,verifyingContract:n.domain.verifyingContract,salt:n.domain.salt},types:n.types,primaryType:i})}async getOffChainSignature(n){return(await this.communicator.send(f.getOffChainSignature,n)).data}async isMessageSigned(n,t="0x"){let i;if(typeof n=="string"&&(i=async()=>{const r=this.calculateMessageHash(n);return await this.isMessageHashSigned(r,t)}),w(n)&&(i=async()=>{const r=this.calculateTypedMessageHash(n);return await this.isMessageHashSigned(r,t)}),i)return await i();throw new Error("Invalid message type")}async isMessageHashSigned(n,t="0x"){const i=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const r of i)if(await r(n,t))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(f.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(f.requestAddressBook,void 0)).data}}fn([ln()],$.prototype,"requestAddressBook",null);class gn{constructor(n={}){const{allowedDomains:t=null,debug:i=!1}=n;this.communicator=new Ye(t,i),this.eth=new rn(this.communicator),this.txs=new on(this.communicator),this.safe=new $(this.communicator),this.wallet=new Q(this.communicator)}}const En=Object.freeze(Object.defineProperty({__proto__:null,MessageFormatter:C,get Methods(){return f},Operation:y.Operation,RPC_CALLS:g,get RestrictedMethods(){return D},TokenType:y.TokenType,TransactionStatus:y.TransactionStatus,TransferDirection:y.TransferDirection,default:gn,getSDKVersion:B,isObjectEIP712TypedData:w},Symbol.toStringTag,{value:"Module"}));export{En as e};
@@ -0,0 +1 @@
1
+ [data-rk] .iekbcc0{border:0;box-sizing:border-box;font-size:100%;line-height:normal;margin:0;padding:0;text-align:left;vertical-align:baseline;-webkit-tap-highlight-color:transparent}[data-rk] .iekbcc1{list-style:none}[data-rk] .iekbcc2{quotes:none}[data-rk] .iekbcc2:before,[data-rk] .iekbcc2:after{content:""}[data-rk] .iekbcc3{border-collapse:collapse;border-spacing:0}[data-rk] .iekbcc4{-webkit-appearance:none;-moz-appearance:none;appearance:none}[data-rk] .iekbcc5{outline:none}[data-rk] .iekbcc5::-moz-placeholder{opacity:1}[data-rk] .iekbcc5::placeholder{opacity:1}[data-rk] .iekbcc6{background-color:transparent;color:inherit}[data-rk] .iekbcc7:disabled{opacity:1}[data-rk] .iekbcc7::-ms-expand{display:none}[data-rk] .iekbcc8::-ms-clear{display:none}[data-rk] .iekbcc8::-webkit-search-cancel-button{-webkit-appearance:none}[data-rk] .iekbcc9{background:none;cursor:pointer;text-align:left}[data-rk] .iekbcca{color:inherit;text-decoration:none}[data-rk] .ju367v0{align-items:flex-start}[data-rk] .ju367v2{align-items:flex-end}[data-rk] .ju367v4{align-items:center}[data-rk] .ju367v6{display:none}[data-rk] .ju367v8{display:block}[data-rk] .ju367va{display:flex}[data-rk] .ju367vc{display:inline}[data-rk] .ju367ve{align-self:flex-start}[data-rk] .ju367vf{align-self:flex-end}[data-rk] .ju367vg{align-self:center}[data-rk] .ju367vh{background-size:cover}[data-rk] .ju367vi{border-radius:1px}[data-rk] .ju367vj{border-radius:6px}[data-rk] .ju367vk{border-radius:10px}[data-rk] .ju367vl{border-radius:13px}[data-rk] .ju367vm{border-radius:var(--rk-radii-actionButton)}[data-rk] .ju367vn{border-radius:var(--rk-radii-connectButton)}[data-rk] .ju367vo{border-radius:var(--rk-radii-menuButton)}[data-rk] .ju367vp{border-radius:var(--rk-radii-modal)}[data-rk] .ju367vq{border-radius:var(--rk-radii-modalMobile)}[data-rk] .ju367vr{border-radius:25%}[data-rk] .ju367vs{border-radius:9999px}[data-rk] .ju367vt{border-style:solid}[data-rk] .ju367vu{border-width:0px}[data-rk] .ju367vv{border-width:1px}[data-rk] .ju367vw{border-width:2px}[data-rk] .ju367vx{border-width:4px}[data-rk] .ju367vy{cursor:pointer}[data-rk] .ju367vz{cursor:none}[data-rk] .ju367v10{pointer-events:none}[data-rk] .ju367v11{pointer-events:all}[data-rk] .ju367v12{min-height:8px}[data-rk] .ju367v13{min-height:44px}[data-rk] .ju367v14{flex-direction:row}[data-rk] .ju367v15{flex-direction:column}[data-rk] .ju367v16{font-family:var(--rk-fonts-body)}[data-rk] .ju367v17{font-size:12px;line-height:18px}[data-rk] .ju367v18{font-size:13px;line-height:18px}[data-rk] .ju367v19{font-size:14px;line-height:18px}[data-rk] .ju367v1a{font-size:16px;line-height:20px}[data-rk] .ju367v1b{font-size:18px;line-height:24px}[data-rk] .ju367v1c{font-size:20px;line-height:24px}[data-rk] .ju367v1d{font-size:23px;line-height:29px}[data-rk] .ju367v1e{font-weight:400}[data-rk] .ju367v1f{font-weight:500}[data-rk] .ju367v1g{font-weight:600}[data-rk] .ju367v1h{font-weight:700}[data-rk] .ju367v1i{font-weight:800}[data-rk] .ju367v1j{gap:0}[data-rk] .ju367v1k{gap:1px}[data-rk] .ju367v1l{gap:2px}[data-rk] .ju367v1m{gap:3px}[data-rk] .ju367v1n{gap:4px}[data-rk] .ju367v1o{gap:5px}[data-rk] .ju367v1p{gap:6px}[data-rk] .ju367v1q{gap:8px}[data-rk] .ju367v1r{gap:10px}[data-rk] .ju367v1s{gap:12px}[data-rk] .ju367v1t{gap:14px}[data-rk] .ju367v1u{gap:16px}[data-rk] .ju367v1v{gap:18px}[data-rk] .ju367v1w{gap:20px}[data-rk] .ju367v1x{gap:24px}[data-rk] .ju367v1y{gap:28px}[data-rk] .ju367v1z{gap:32px}[data-rk] .ju367v20{gap:36px}[data-rk] .ju367v21{gap:44px}[data-rk] .ju367v22{gap:64px}[data-rk] .ju367v23{gap:-1px}[data-rk] .ju367v24{height:1px}[data-rk] .ju367v25{height:2px}[data-rk] .ju367v26{height:4px}[data-rk] .ju367v27{height:8px}[data-rk] .ju367v28{height:12px}[data-rk] .ju367v29{height:20px}[data-rk] .ju367v2a{height:24px}[data-rk] .ju367v2b{height:28px}[data-rk] .ju367v2c{height:30px}[data-rk] .ju367v2d{height:32px}[data-rk] .ju367v2e{height:34px}[data-rk] .ju367v2f{height:36px}[data-rk] .ju367v2g{height:40px}[data-rk] .ju367v2h{height:44px}[data-rk] .ju367v2i{height:48px}[data-rk] .ju367v2j{height:54px}[data-rk] .ju367v2k{height:60px}[data-rk] .ju367v2l{height:200px}[data-rk] .ju367v2m{height:100%}[data-rk] .ju367v2n{height:-moz-max-content;height:max-content}[data-rk] .ju367v2o{justify-content:flex-start}[data-rk] .ju367v2p{justify-content:flex-end}[data-rk] .ju367v2q{justify-content:center}[data-rk] .ju367v2r{justify-content:space-between}[data-rk] .ju367v2s{justify-content:space-around}[data-rk] .ju367v2t{text-align:left}[data-rk] .ju367v2u{text-align:center}[data-rk] .ju367v2v{text-align:inherit}[data-rk] .ju367v2w{margin-bottom:0}[data-rk] .ju367v2x{margin-bottom:1px}[data-rk] .ju367v2y{margin-bottom:2px}[data-rk] .ju367v2z{margin-bottom:3px}[data-rk] .ju367v30{margin-bottom:4px}[data-rk] .ju367v31{margin-bottom:5px}[data-rk] .ju367v32{margin-bottom:6px}[data-rk] .ju367v33{margin-bottom:8px}[data-rk] .ju367v34{margin-bottom:10px}[data-rk] .ju367v35{margin-bottom:12px}[data-rk] .ju367v36{margin-bottom:14px}[data-rk] .ju367v37{margin-bottom:16px}[data-rk] .ju367v38{margin-bottom:18px}[data-rk] .ju367v39{margin-bottom:20px}[data-rk] .ju367v3a{margin-bottom:24px}[data-rk] .ju367v3b{margin-bottom:28px}[data-rk] .ju367v3c{margin-bottom:32px}[data-rk] .ju367v3d{margin-bottom:36px}[data-rk] .ju367v3e{margin-bottom:44px}[data-rk] .ju367v3f{margin-bottom:64px}[data-rk] .ju367v3g{margin-bottom:-1px}[data-rk] .ju367v3h{margin-left:0}[data-rk] .ju367v3i{margin-left:1px}[data-rk] .ju367v3j{margin-left:2px}[data-rk] .ju367v3k{margin-left:3px}[data-rk] .ju367v3l{margin-left:4px}[data-rk] .ju367v3m{margin-left:5px}[data-rk] .ju367v3n{margin-left:6px}[data-rk] .ju367v3o{margin-left:8px}[data-rk] .ju367v3p{margin-left:10px}[data-rk] .ju367v3q{margin-left:12px}[data-rk] .ju367v3r{margin-left:14px}[data-rk] .ju367v3s{margin-left:16px}[data-rk] .ju367v3t{margin-left:18px}[data-rk] .ju367v3u{margin-left:20px}[data-rk] .ju367v3v{margin-left:24px}[data-rk] .ju367v3w{margin-left:28px}[data-rk] .ju367v3x{margin-left:32px}[data-rk] .ju367v3y{margin-left:36px}[data-rk] .ju367v3z{margin-left:44px}[data-rk] .ju367v40{margin-left:64px}[data-rk] .ju367v41{margin-left:-1px}[data-rk] .ju367v42{margin-right:0}[data-rk] .ju367v43{margin-right:1px}[data-rk] .ju367v44{margin-right:2px}[data-rk] .ju367v45{margin-right:3px}[data-rk] .ju367v46{margin-right:4px}[data-rk] .ju367v47{margin-right:5px}[data-rk] .ju367v48{margin-right:6px}[data-rk] .ju367v49{margin-right:8px}[data-rk] .ju367v4a{margin-right:10px}[data-rk] .ju367v4b{margin-right:12px}[data-rk] .ju367v4c{margin-right:14px}[data-rk] .ju367v4d{margin-right:16px}[data-rk] .ju367v4e{margin-right:18px}[data-rk] .ju367v4f{margin-right:20px}[data-rk] .ju367v4g{margin-right:24px}[data-rk] .ju367v4h{margin-right:28px}[data-rk] .ju367v4i{margin-right:32px}[data-rk] .ju367v4j{margin-right:36px}[data-rk] .ju367v4k{margin-right:44px}[data-rk] .ju367v4l{margin-right:64px}[data-rk] .ju367v4m{margin-right:-1px}[data-rk] .ju367v4n{margin-top:0}[data-rk] .ju367v4o{margin-top:1px}[data-rk] .ju367v4p{margin-top:2px}[data-rk] .ju367v4q{margin-top:3px}[data-rk] .ju367v4r{margin-top:4px}[data-rk] .ju367v4s{margin-top:5px}[data-rk] .ju367v4t{margin-top:6px}[data-rk] .ju367v4u{margin-top:8px}[data-rk] .ju367v4v{margin-top:10px}[data-rk] .ju367v4w{margin-top:12px}[data-rk] .ju367v4x{margin-top:14px}[data-rk] .ju367v4y{margin-top:16px}[data-rk] .ju367v4z{margin-top:18px}[data-rk] .ju367v50{margin-top:20px}[data-rk] .ju367v51{margin-top:24px}[data-rk] .ju367v52{margin-top:28px}[data-rk] .ju367v53{margin-top:32px}[data-rk] .ju367v54{margin-top:36px}[data-rk] .ju367v55{margin-top:44px}[data-rk] .ju367v56{margin-top:64px}[data-rk] .ju367v57{margin-top:-1px}[data-rk] .ju367v58{max-width:1px}[data-rk] .ju367v59{max-width:2px}[data-rk] .ju367v5a{max-width:4px}[data-rk] .ju367v5b{max-width:8px}[data-rk] .ju367v5c{max-width:12px}[data-rk] .ju367v5d{max-width:20px}[data-rk] .ju367v5e{max-width:24px}[data-rk] .ju367v5f{max-width:28px}[data-rk] .ju367v5g{max-width:30px}[data-rk] .ju367v5h{max-width:32px}[data-rk] .ju367v5i{max-width:34px}[data-rk] .ju367v5j{max-width:36px}[data-rk] .ju367v5k{max-width:40px}[data-rk] .ju367v5l{max-width:44px}[data-rk] .ju367v5m{max-width:48px}[data-rk] .ju367v5n{max-width:54px}[data-rk] .ju367v5o{max-width:60px}[data-rk] .ju367v5p{max-width:200px}[data-rk] .ju367v5q{max-width:100%}[data-rk] .ju367v5r{max-width:-moz-max-content;max-width:max-content}[data-rk] .ju367v5s{min-width:1px}[data-rk] .ju367v5t{min-width:2px}[data-rk] .ju367v5u{min-width:4px}[data-rk] .ju367v5v{min-width:8px}[data-rk] .ju367v5w{min-width:12px}[data-rk] .ju367v5x{min-width:20px}[data-rk] .ju367v5y{min-width:24px}[data-rk] .ju367v5z{min-width:28px}[data-rk] .ju367v60{min-width:30px}[data-rk] .ju367v61{min-width:32px}[data-rk] .ju367v62{min-width:34px}[data-rk] .ju367v63{min-width:36px}[data-rk] .ju367v64{min-width:40px}[data-rk] .ju367v65{min-width:44px}[data-rk] .ju367v66{min-width:48px}[data-rk] .ju367v67{min-width:54px}[data-rk] .ju367v68{min-width:60px}[data-rk] .ju367v69{min-width:200px}[data-rk] .ju367v6a{min-width:100%}[data-rk] .ju367v6b{min-width:-moz-max-content;min-width:max-content}[data-rk] .ju367v6c{overflow:hidden}[data-rk] .ju367v6d{padding-bottom:0}[data-rk] .ju367v6e{padding-bottom:1px}[data-rk] .ju367v6f{padding-bottom:2px}[data-rk] .ju367v6g{padding-bottom:3px}[data-rk] .ju367v6h{padding-bottom:4px}[data-rk] .ju367v6i{padding-bottom:5px}[data-rk] .ju367v6j{padding-bottom:6px}[data-rk] .ju367v6k{padding-bottom:8px}[data-rk] .ju367v6l{padding-bottom:10px}[data-rk] .ju367v6m{padding-bottom:12px}[data-rk] .ju367v6n{padding-bottom:14px}[data-rk] .ju367v6o{padding-bottom:16px}[data-rk] .ju367v6p{padding-bottom:18px}[data-rk] .ju367v6q{padding-bottom:20px}[data-rk] .ju367v6r{padding-bottom:24px}[data-rk] .ju367v6s{padding-bottom:28px}[data-rk] .ju367v6t{padding-bottom:32px}[data-rk] .ju367v6u{padding-bottom:36px}[data-rk] .ju367v6v{padding-bottom:44px}[data-rk] .ju367v6w{padding-bottom:64px}[data-rk] .ju367v6x{padding-bottom:-1px}[data-rk] .ju367v6y{padding-left:0}[data-rk] .ju367v6z{padding-left:1px}[data-rk] .ju367v70{padding-left:2px}[data-rk] .ju367v71{padding-left:3px}[data-rk] .ju367v72{padding-left:4px}[data-rk] .ju367v73{padding-left:5px}[data-rk] .ju367v74{padding-left:6px}[data-rk] .ju367v75{padding-left:8px}[data-rk] .ju367v76{padding-left:10px}[data-rk] .ju367v77{padding-left:12px}[data-rk] .ju367v78{padding-left:14px}[data-rk] .ju367v79{padding-left:16px}[data-rk] .ju367v7a{padding-left:18px}[data-rk] .ju367v7b{padding-left:20px}[data-rk] .ju367v7c{padding-left:24px}[data-rk] .ju367v7d{padding-left:28px}[data-rk] .ju367v7e{padding-left:32px}[data-rk] .ju367v7f{padding-left:36px}[data-rk] .ju367v7g{padding-left:44px}[data-rk] .ju367v7h{padding-left:64px}[data-rk] .ju367v7i{padding-left:-1px}[data-rk] .ju367v7j{padding-right:0}[data-rk] .ju367v7k{padding-right:1px}[data-rk] .ju367v7l{padding-right:2px}[data-rk] .ju367v7m{padding-right:3px}[data-rk] .ju367v7n{padding-right:4px}[data-rk] .ju367v7o{padding-right:5px}[data-rk] .ju367v7p{padding-right:6px}[data-rk] .ju367v7q{padding-right:8px}[data-rk] .ju367v7r{padding-right:10px}[data-rk] .ju367v7s{padding-right:12px}[data-rk] .ju367v7t{padding-right:14px}[data-rk] .ju367v7u{padding-right:16px}[data-rk] .ju367v7v{padding-right:18px}[data-rk] .ju367v7w{padding-right:20px}[data-rk] .ju367v7x{padding-right:24px}[data-rk] .ju367v7y{padding-right:28px}[data-rk] .ju367v7z{padding-right:32px}[data-rk] .ju367v80{padding-right:36px}[data-rk] .ju367v81{padding-right:44px}[data-rk] .ju367v82{padding-right:64px}[data-rk] .ju367v83{padding-right:-1px}[data-rk] .ju367v84{padding-top:0}[data-rk] .ju367v85{padding-top:1px}[data-rk] .ju367v86{padding-top:2px}[data-rk] .ju367v87{padding-top:3px}[data-rk] .ju367v88{padding-top:4px}[data-rk] .ju367v89{padding-top:5px}[data-rk] .ju367v8a{padding-top:6px}[data-rk] .ju367v8b{padding-top:8px}[data-rk] .ju367v8c{padding-top:10px}[data-rk] .ju367v8d{padding-top:12px}[data-rk] .ju367v8e{padding-top:14px}[data-rk] .ju367v8f{padding-top:16px}[data-rk] .ju367v8g{padding-top:18px}[data-rk] .ju367v8h{padding-top:20px}[data-rk] .ju367v8i{padding-top:24px}[data-rk] .ju367v8j{padding-top:28px}[data-rk] .ju367v8k{padding-top:32px}[data-rk] .ju367v8l{padding-top:36px}[data-rk] .ju367v8m{padding-top:44px}[data-rk] .ju367v8n{padding-top:64px}[data-rk] .ju367v8o{padding-top:-1px}[data-rk] .ju367v8p{position:absolute}[data-rk] .ju367v8q{position:fixed}[data-rk] .ju367v8r{position:relative}[data-rk] .ju367v8s{-webkit-user-select:none}[data-rk] .ju367v8t{right:0}[data-rk] .ju367v8u{transition:.125s ease}[data-rk] .ju367v8v{transition:transform .125s ease}[data-rk] .ju367v8w{-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-rk] .ju367v8x{width:1px}[data-rk] .ju367v8y{width:2px}[data-rk] .ju367v8z{width:4px}[data-rk] .ju367v90{width:8px}[data-rk] .ju367v91{width:12px}[data-rk] .ju367v92{width:20px}[data-rk] .ju367v93{width:24px}[data-rk] .ju367v94{width:28px}[data-rk] .ju367v95{width:30px}[data-rk] .ju367v96{width:32px}[data-rk] .ju367v97{width:34px}[data-rk] .ju367v98{width:36px}[data-rk] .ju367v99{width:40px}[data-rk] .ju367v9a{width:44px}[data-rk] .ju367v9b{width:48px}[data-rk] .ju367v9c{width:54px}[data-rk] .ju367v9d{width:60px}[data-rk] .ju367v9e{width:200px}[data-rk] .ju367v9f{width:100%}[data-rk] .ju367v9g{width:-moz-max-content;width:max-content}[data-rk] .ju367v9h{-webkit-backdrop-filter:var(--rk-blurs-modalOverlay);backdrop-filter:var(--rk-blurs-modalOverlay)}[data-rk] .ju367v9i,[data-rk] .ju367v9j:hover,[data-rk] .ju367v9k:active{background:var(--rk-colors-accentColor)}[data-rk] .ju367v9l,[data-rk] .ju367v9m:hover,[data-rk] .ju367v9n:active{background:var(--rk-colors-accentColorForeground)}[data-rk] .ju367v9o,[data-rk] .ju367v9p:hover,[data-rk] .ju367v9q:active{background:var(--rk-colors-actionButtonBorder)}[data-rk] .ju367v9r,[data-rk] .ju367v9s:hover,[data-rk] .ju367v9t:active{background:var(--rk-colors-actionButtonBorderMobile)}[data-rk] .ju367v9u,[data-rk] .ju367v9v:hover,[data-rk] .ju367v9w:active{background:var(--rk-colors-actionButtonSecondaryBackground)}[data-rk] .ju367v9x,[data-rk] .ju367v9y:hover,[data-rk] .ju367v9z:active{background:var(--rk-colors-closeButton)}[data-rk] .ju367va0,[data-rk] .ju367va1:hover,[data-rk] .ju367va2:active{background:var(--rk-colors-closeButtonBackground)}[data-rk] .ju367va3,[data-rk] .ju367va4:hover,[data-rk] .ju367va5:active{background:var(--rk-colors-connectButtonBackground)}[data-rk] .ju367va6,[data-rk] .ju367va7:hover,[data-rk] .ju367va8:active{background:var(--rk-colors-connectButtonBackgroundError)}[data-rk] .ju367va9,[data-rk] .ju367vaa:hover,[data-rk] .ju367vab:active{background:var(--rk-colors-connectButtonInnerBackground)}[data-rk] .ju367vac,[data-rk] .ju367vad:hover,[data-rk] .ju367vae:active{background:var(--rk-colors-connectButtonText)}[data-rk] .ju367vaf,[data-rk] .ju367vag:hover,[data-rk] .ju367vah:active{background:var(--rk-colors-connectButtonTextError)}[data-rk] .ju367vai,[data-rk] .ju367vaj:hover,[data-rk] .ju367vak:active{background:var(--rk-colors-connectionIndicator)}[data-rk] .ju367val,[data-rk] .ju367vam:hover,[data-rk] .ju367van:active{background:var(--rk-colors-downloadBottomCardBackground)}[data-rk] .ju367vao,[data-rk] .ju367vap:hover,[data-rk] .ju367vaq:active{background:var(--rk-colors-downloadTopCardBackground)}[data-rk] .ju367var,[data-rk] .ju367vas:hover,[data-rk] .ju367vat:active{background:var(--rk-colors-error)}[data-rk] .ju367vau,[data-rk] .ju367vav:hover,[data-rk] .ju367vaw:active{background:var(--rk-colors-generalBorder)}[data-rk] .ju367vax,[data-rk] .ju367vay:hover,[data-rk] .ju367vaz:active{background:var(--rk-colors-generalBorderDim)}[data-rk] .ju367vb0,[data-rk] .ju367vb1:hover,[data-rk] .ju367vb2:active{background:var(--rk-colors-menuItemBackground)}[data-rk] .ju367vb3,[data-rk] .ju367vb4:hover,[data-rk] .ju367vb5:active{background:var(--rk-colors-modalBackdrop)}[data-rk] .ju367vb6,[data-rk] .ju367vb7:hover,[data-rk] .ju367vb8:active{background:var(--rk-colors-modalBackground)}[data-rk] .ju367vb9,[data-rk] .ju367vba:hover,[data-rk] .ju367vbb:active{background:var(--rk-colors-modalBorder)}[data-rk] .ju367vbc,[data-rk] .ju367vbd:hover,[data-rk] .ju367vbe:active{background:var(--rk-colors-modalText)}[data-rk] .ju367vbf,[data-rk] .ju367vbg:hover,[data-rk] .ju367vbh:active{background:var(--rk-colors-modalTextDim)}[data-rk] .ju367vbi,[data-rk] .ju367vbj:hover,[data-rk] .ju367vbk:active{background:var(--rk-colors-modalTextSecondary)}[data-rk] .ju367vbl,[data-rk] .ju367vbm:hover,[data-rk] .ju367vbn:active{background:var(--rk-colors-profileAction)}[data-rk] .ju367vbo,[data-rk] .ju367vbp:hover,[data-rk] .ju367vbq:active{background:var(--rk-colors-profileActionHover)}[data-rk] .ju367vbr,[data-rk] .ju367vbs:hover,[data-rk] .ju367vbt:active{background:var(--rk-colors-profileForeground)}[data-rk] .ju367vbu,[data-rk] .ju367vbv:hover,[data-rk] .ju367vbw:active{background:var(--rk-colors-selectedOptionBorder)}[data-rk] .ju367vbx,[data-rk] .ju367vby:hover,[data-rk] .ju367vbz:active{background:var(--rk-colors-standby)}[data-rk] .ju367vc0,[data-rk] .ju367vc1:hover,[data-rk] .ju367vc2:active{border-color:var(--rk-colors-accentColor)}[data-rk] .ju367vc3,[data-rk] .ju367vc4:hover,[data-rk] .ju367vc5:active{border-color:var(--rk-colors-accentColorForeground)}[data-rk] .ju367vc6,[data-rk] .ju367vc7:hover,[data-rk] .ju367vc8:active{border-color:var(--rk-colors-actionButtonBorder)}[data-rk] .ju367vc9,[data-rk] .ju367vca:hover,[data-rk] .ju367vcb:active{border-color:var(--rk-colors-actionButtonBorderMobile)}[data-rk] .ju367vcc,[data-rk] .ju367vcd:hover,[data-rk] .ju367vce:active{border-color:var(--rk-colors-actionButtonSecondaryBackground)}[data-rk] .ju367vcf,[data-rk] .ju367vcg:hover,[data-rk] .ju367vch:active{border-color:var(--rk-colors-closeButton)}[data-rk] .ju367vci,[data-rk] .ju367vcj:hover,[data-rk] .ju367vck:active{border-color:var(--rk-colors-closeButtonBackground)}[data-rk] .ju367vcl,[data-rk] .ju367vcm:hover,[data-rk] .ju367vcn:active{border-color:var(--rk-colors-connectButtonBackground)}[data-rk] .ju367vco,[data-rk] .ju367vcp:hover,[data-rk] .ju367vcq:active{border-color:var(--rk-colors-connectButtonBackgroundError)}[data-rk] .ju367vcr,[data-rk] .ju367vcs:hover,[data-rk] .ju367vct:active{border-color:var(--rk-colors-connectButtonInnerBackground)}[data-rk] .ju367vcu,[data-rk] .ju367vcv:hover,[data-rk] .ju367vcw:active{border-color:var(--rk-colors-connectButtonText)}[data-rk] .ju367vcx,[data-rk] .ju367vcy:hover,[data-rk] .ju367vcz:active{border-color:var(--rk-colors-connectButtonTextError)}[data-rk] .ju367vd0,[data-rk] .ju367vd1:hover,[data-rk] .ju367vd2:active{border-color:var(--rk-colors-connectionIndicator)}[data-rk] .ju367vd3,[data-rk] .ju367vd4:hover,[data-rk] .ju367vd5:active{border-color:var(--rk-colors-downloadBottomCardBackground)}[data-rk] .ju367vd6,[data-rk] .ju367vd7:hover,[data-rk] .ju367vd8:active{border-color:var(--rk-colors-downloadTopCardBackground)}[data-rk] .ju367vd9,[data-rk] .ju367vda:hover,[data-rk] .ju367vdb:active{border-color:var(--rk-colors-error)}[data-rk] .ju367vdc,[data-rk] .ju367vdd:hover,[data-rk] .ju367vde:active{border-color:var(--rk-colors-generalBorder)}[data-rk] .ju367vdf,[data-rk] .ju367vdg:hover,[data-rk] .ju367vdh:active{border-color:var(--rk-colors-generalBorderDim)}[data-rk] .ju367vdi,[data-rk] .ju367vdj:hover,[data-rk] .ju367vdk:active{border-color:var(--rk-colors-menuItemBackground)}[data-rk] .ju367vdl,[data-rk] .ju367vdm:hover,[data-rk] .ju367vdn:active{border-color:var(--rk-colors-modalBackdrop)}[data-rk] .ju367vdo,[data-rk] .ju367vdp:hover,[data-rk] .ju367vdq:active{border-color:var(--rk-colors-modalBackground)}[data-rk] .ju367vdr,[data-rk] .ju367vds:hover,[data-rk] .ju367vdt:active{border-color:var(--rk-colors-modalBorder)}[data-rk] .ju367vdu,[data-rk] .ju367vdv:hover,[data-rk] .ju367vdw:active{border-color:var(--rk-colors-modalText)}[data-rk] .ju367vdx,[data-rk] .ju367vdy:hover,[data-rk] .ju367vdz:active{border-color:var(--rk-colors-modalTextDim)}[data-rk] .ju367ve0,[data-rk] .ju367ve1:hover,[data-rk] .ju367ve2:active{border-color:var(--rk-colors-modalTextSecondary)}[data-rk] .ju367ve3,[data-rk] .ju367ve4:hover,[data-rk] .ju367ve5:active{border-color:var(--rk-colors-profileAction)}[data-rk] .ju367ve6,[data-rk] .ju367ve7:hover,[data-rk] .ju367ve8:active{border-color:var(--rk-colors-profileActionHover)}[data-rk] .ju367ve9,[data-rk] .ju367vea:hover,[data-rk] .ju367veb:active{border-color:var(--rk-colors-profileForeground)}[data-rk] .ju367vec,[data-rk] .ju367ved:hover,[data-rk] .ju367vee:active{border-color:var(--rk-colors-selectedOptionBorder)}[data-rk] .ju367vef,[data-rk] .ju367veg:hover,[data-rk] .ju367veh:active{border-color:var(--rk-colors-standby)}[data-rk] .ju367vei,[data-rk] .ju367vej:hover,[data-rk] .ju367vek:active{box-shadow:var(--rk-shadows-connectButton)}[data-rk] .ju367vel,[data-rk] .ju367vem:hover,[data-rk] .ju367ven:active{box-shadow:var(--rk-shadows-dialog)}[data-rk] .ju367veo,[data-rk] .ju367vep:hover,[data-rk] .ju367veq:active{box-shadow:var(--rk-shadows-profileDetailsAction)}[data-rk] .ju367ver,[data-rk] .ju367ves:hover,[data-rk] .ju367vet:active{box-shadow:var(--rk-shadows-selectedOption)}[data-rk] .ju367veu,[data-rk] .ju367vev:hover,[data-rk] .ju367vew:active{box-shadow:var(--rk-shadows-selectedWallet)}[data-rk] .ju367vex,[data-rk] .ju367vey:hover,[data-rk] .ju367vez:active{box-shadow:var(--rk-shadows-walletLogo)}[data-rk] .ju367vf0,[data-rk] .ju367vf1:hover,[data-rk] .ju367vf2:active{color:var(--rk-colors-accentColor)}[data-rk] .ju367vf3,[data-rk] .ju367vf4:hover,[data-rk] .ju367vf5:active{color:var(--rk-colors-accentColorForeground)}[data-rk] .ju367vf6,[data-rk] .ju367vf7:hover,[data-rk] .ju367vf8:active{color:var(--rk-colors-actionButtonBorder)}[data-rk] .ju367vf9,[data-rk] .ju367vfa:hover,[data-rk] .ju367vfb:active{color:var(--rk-colors-actionButtonBorderMobile)}[data-rk] .ju367vfc,[data-rk] .ju367vfd:hover,[data-rk] .ju367vfe:active{color:var(--rk-colors-actionButtonSecondaryBackground)}[data-rk] .ju367vff,[data-rk] .ju367vfg:hover,[data-rk] .ju367vfh:active{color:var(--rk-colors-closeButton)}[data-rk] .ju367vfi,[data-rk] .ju367vfj:hover,[data-rk] .ju367vfk:active{color:var(--rk-colors-closeButtonBackground)}[data-rk] .ju367vfl,[data-rk] .ju367vfm:hover,[data-rk] .ju367vfn:active{color:var(--rk-colors-connectButtonBackground)}[data-rk] .ju367vfo,[data-rk] .ju367vfp:hover,[data-rk] .ju367vfq:active{color:var(--rk-colors-connectButtonBackgroundError)}[data-rk] .ju367vfr,[data-rk] .ju367vfs:hover,[data-rk] .ju367vft:active{color:var(--rk-colors-connectButtonInnerBackground)}[data-rk] .ju367vfu,[data-rk] .ju367vfv:hover,[data-rk] .ju367vfw:active{color:var(--rk-colors-connectButtonText)}[data-rk] .ju367vfx,[data-rk] .ju367vfy:hover,[data-rk] .ju367vfz:active{color:var(--rk-colors-connectButtonTextError)}[data-rk] .ju367vg0,[data-rk] .ju367vg1:hover,[data-rk] .ju367vg2:active{color:var(--rk-colors-connectionIndicator)}[data-rk] .ju367vg3,[data-rk] .ju367vg4:hover,[data-rk] .ju367vg5:active{color:var(--rk-colors-downloadBottomCardBackground)}[data-rk] .ju367vg6,[data-rk] .ju367vg7:hover,[data-rk] .ju367vg8:active{color:var(--rk-colors-downloadTopCardBackground)}[data-rk] .ju367vg9,[data-rk] .ju367vga:hover,[data-rk] .ju367vgb:active{color:var(--rk-colors-error)}[data-rk] .ju367vgc,[data-rk] .ju367vgd:hover,[data-rk] .ju367vge:active{color:var(--rk-colors-generalBorder)}[data-rk] .ju367vgf,[data-rk] .ju367vgg:hover,[data-rk] .ju367vgh:active{color:var(--rk-colors-generalBorderDim)}[data-rk] .ju367vgi,[data-rk] .ju367vgj:hover,[data-rk] .ju367vgk:active{color:var(--rk-colors-menuItemBackground)}[data-rk] .ju367vgl,[data-rk] .ju367vgm:hover,[data-rk] .ju367vgn:active{color:var(--rk-colors-modalBackdrop)}[data-rk] .ju367vgo,[data-rk] .ju367vgp:hover,[data-rk] .ju367vgq:active{color:var(--rk-colors-modalBackground)}[data-rk] .ju367vgr,[data-rk] .ju367vgs:hover,[data-rk] .ju367vgt:active{color:var(--rk-colors-modalBorder)}[data-rk] .ju367vgu,[data-rk] .ju367vgv:hover,[data-rk] .ju367vgw:active{color:var(--rk-colors-modalText)}[data-rk] .ju367vgx,[data-rk] .ju367vgy:hover,[data-rk] .ju367vgz:active{color:var(--rk-colors-modalTextDim)}[data-rk] .ju367vh0,[data-rk] .ju367vh1:hover,[data-rk] .ju367vh2:active{color:var(--rk-colors-modalTextSecondary)}[data-rk] .ju367vh3,[data-rk] .ju367vh4:hover,[data-rk] .ju367vh5:active{color:var(--rk-colors-profileAction)}[data-rk] .ju367vh6,[data-rk] .ju367vh7:hover,[data-rk] .ju367vh8:active{color:var(--rk-colors-profileActionHover)}[data-rk] .ju367vh9,[data-rk] .ju367vha:hover,[data-rk] .ju367vhb:active{color:var(--rk-colors-profileForeground)}[data-rk] .ju367vhc,[data-rk] .ju367vhd:hover,[data-rk] .ju367vhe:active{color:var(--rk-colors-selectedOptionBorder)}[data-rk] .ju367vhf,[data-rk] .ju367vhg:hover,[data-rk] .ju367vhh:active{color:var(--rk-colors-standby)}@media screen and (min-width: 768px){[data-rk] .ju367v1{align-items:flex-start}[data-rk] .ju367v3{align-items:flex-end}[data-rk] .ju367v5{align-items:center}[data-rk] .ju367v7{display:none}[data-rk] .ju367v9{display:block}[data-rk] .ju367vb{display:flex}[data-rk] .ju367vd{display:inline}}[data-rk] ._12cbo8i3,[data-rk] ._12cbo8i3:after{--_12cbo8i0: 1;--_12cbo8i1: 1}[data-rk] ._12cbo8i3:hover{transform:scale(var(--_12cbo8i0))}[data-rk] ._12cbo8i3:active{transform:scale(var(--_12cbo8i1))}[data-rk] ._12cbo8i3:active:after{content:"";bottom:-1px;display:block;left:-1px;position:absolute;right:-1px;top:-1px;transform:scale(calc((1 / var(--_12cbo8i1)) * var(--_12cbo8i0)))}[data-rk] ._12cbo8i4,[data-rk] ._12cbo8i4:after{--_12cbo8i0: 1.025}[data-rk] ._12cbo8i5,[data-rk] ._12cbo8i5:after{--_12cbo8i0: 1.1}[data-rk] ._12cbo8i6,[data-rk] ._12cbo8i6:after{--_12cbo8i1: .95}[data-rk] ._12cbo8i7,[data-rk] ._12cbo8i7:after{--_12cbo8i1: .9}@keyframes _1luule41{0%{transform:rotate(0)}to{transform:rotate(360deg)}}[data-rk] ._1luule42{animation:_1luule41 3s infinite linear}[data-rk] ._1luule43{background:conic-gradient(from 180deg at 50% 50%,rgba(72,146,254,0) 0deg,currentColor 282.04deg,rgba(72,146,254,0) 319.86deg,rgba(72,146,254,0) 360deg);height:21px;width:21px}@keyframes _9pm4ki0{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _9pm4ki1{0%{opacity:0}to{opacity:1}}[data-rk] ._9pm4ki3{animation:_9pm4ki1 .15s ease;bottom:-200px;left:-200px;padding:200px;right:-200px;top:-200px;transform:translateZ(0);z-index:2147483646}[data-rk] ._9pm4ki5{animation:_9pm4ki0 .35s cubic-bezier(.15,1.15,.6,1),_9pm4ki1 .15s ease;max-width:100vw}[data-rk] ._1ckjpok1{box-sizing:content-box;max-width:100vw;width:360px}[data-rk] ._1ckjpok2{width:100vw}[data-rk] ._1ckjpok3{min-width:720px;width:720px}[data-rk] ._1ckjpok4{min-width:368px;width:368px}[data-rk] ._1ckjpok6{border-width:0px;box-sizing:border-box;width:100vw}@media screen and (min-width: 768px){[data-rk] ._1ckjpok1{width:360px}[data-rk] ._1ckjpok2{width:480px}[data-rk] ._1ckjpok4{min-width:368px;width:368px}}@media screen and (max-width: 767px){[data-rk] ._1ckjpok7{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-top:-200px;padding-bottom:200px;top:200px}}[data-rk] .v9horb0:hover{background:unset}[data-rk] ._18dqw9x0{max-height:456px;overflow-y:auto;overflow-x:hidden}[data-rk] ._18dqw9x1{max-height:456px;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}[data-rk] ._18dqw9x1::-webkit-scrollbar{display:none}[data-rk] .g5kl0l0{border-color:transparent}[data-rk] ._1vwt0cg0{background:#fff}[data-rk] ._1vwt0cg2{max-height:454px;overflow-y:auto}[data-rk] ._1vwt0cg3{min-width:287px}[data-rk] ._1vwt0cg4{min-width:100%}@keyframes _1am14411{0%{stroke-dashoffset:0}to{stroke-dashoffset:-283}}[data-rk] ._1am14410{overflow:auto;scrollbar-width:none;transform:translateZ(0)}[data-rk] ._1am14410::-webkit-scrollbar{display:none}[data-rk] ._1am14412{animation:_1am14411 1s linear infinite;stroke-dasharray:98 196;fill:none;stroke-linecap:round;stroke-width:4}[data-rk] ._1am14413{position:absolute}[data-rk] ._1y2lnfi0{border:1px solid rgba(16,21,31,.06)}[data-rk] ._1y2lnfi1{max-width:-moz-fit-content;max-width:fit-content}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.col-span-4{grid-column:span 4 / span 4}.col-span-8{grid-column:span 8 / span 8}.mb-2{margin-bottom:.5rem}.mb-5{margin-bottom:1.25rem}.mt-\[100px\]{margin-top:100px}.mt-\[20px\]{margin-top:20px}.mt-\[50px\]{margin-top:50px}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.max-h-\[60vw\]{max-height:60vw}.w-\[110px\]{width:110px}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-\[10px\]{gap:10px}.gap-\[12px\]{gap:12px}.gap-\[16px\]{gap:16px}.gap-\[20px\]{gap:20px}.overflow-scroll{overflow:scroll}.text-ellipsis{text-overflow:ellipsis}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.border{border-width:1px}.border-solid{border-style:solid}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-\[8px\]{padding-left:8px;padding-right:8px}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.capitalize{text-transform:capitalize}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}@media (min-width: 768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}body{--matchid-light-orange: #FFF3EB;--matchid-highlight-orange: #FC802D;--matchid-highlight-orange-light: rgba(252, 128, 45, .5);--matchid-black: #000000;--matchid-white: #FFFFFF;--matchid-black-800: #1E1E1E;--matchid-gray-600: #6E6E6E;--matchid-gray-400: #B6B6B6;--matchid-gray-350: #D3D3D3;--matchid-gray-350-light: rgba(211, 211, 211, .5);--matchid-gray-300: #E3E3E3;--matchid-gray-200: #F3F3F3;--matchid-gray-100: #F8F8F8;--matchid-red-600: #F7585E;--matchid-green-600: #2CBF68;--matchid-secondary-grey: var(--matchid-gray-600);--matchid-light-grey: var(--matchid-gray-100);--matchid-disabled: var(--matchid-gray-350);--matchid-success: #2FCC00;--matchid-error: #F14141;--matchid-link: #006FFF;--matchid-shadow-full: 0px 15px 40px 0px rgba(22, 17, 46, .12);--matchid-shadow-middle: 0px 10px 30px 0px rgba(22, 17, 46, .12);--matchid-shadow-small: 0px 10px 20px 0px rgba(219, 219, 219, .5);--matchid-placeholder-color: var(--matchid-gray-400);--matchid-line: var(--matchid-gray-300);--matchid-arrow-color: var(--matchid-black);--matchid-text-color: var(--matchid-black);--matchid-round: 12px;--matchid-round-lg: 24px;--matchid-padding-lg: 32px;--matchid-login-method-border-color: var(--matchid-line);--matchid-login-method-hover-border-color: var(--matchid-highlight-orange);--matchid-login-method-arrow-color: var(--matchid-arrow-color);--matchid-login-method-round: var(--matchid-round);--matchid-login-method-color: var(--matchid-text-color);--matchid-login-other-color: var(--matchid-gray-600);--matchid-login-recommend-wallet-color: var(--matchid-black);--matchid-login-recommend-wallet-hover-color: var(--matchid-white);--matchid-login-recommend-wallet-hover-bg: var(--matchid-highlight-orange);--matchid-login-panel-divide-color: var(--matchid-line);--matchid-login-panel-title-color: var(--matchid-text-color);--matchid-login-panel-subtitle-color: var(--matchid-gray-600);--matchid-overlay-index: 9999;--matchid-overlay-color: var(--matchid-black);--matchid-modal-bg: var(--matchid-white);--matchid-modal-shadow: var(--matchid-shadow-full);--matchid-modal-border-color: var(--matchid-white);--matchid-modal-round: var(--matchid-round-lg);--matchid-modal-padding: var(--matchid-padding-lg);--matchid-mobile-modal-padding: 20px;--matchid-modal-header-border-color: var(--matchid-line);--matchid-modal-header-color: var(--matchid-text-color);--matchid-input-border-color: var(--matchid-line);--matchid-input-focus-border-color: var(--matchid-highlight-orange);--matchid-input-color: var(--matchid-text-color);--matchid-input-placeholder-color: var(--matchid-placeholder-color);--matchid-input-bg: var(--matchid-gray-100);--matchid-input-focus-bg: var(--matchid-light-orange);--matchid-input-delete-icon-color: var(--matchid-highlight-orange);--matchid-field-color: var(--matchid-text-color);--matchid-field-error-color: var(--matchid-red-600);--matchid-field-required-color: #E60808;--matchid-popover-bg: var(--matchid-white);--matchid-btn-border-color: var(--matchid-black);--matchid-btn-color: var(--matchid-black);--matchid-btn-bg: var(--matchid-white);--matchid-btn-disabled-bg: var(--matchid-gray-350);--matchid-btn-disabled-color: var(--matchid-white);--matchid-btn-hover-bg: var(--matchid-black-800);--matchid-btn-hover-color: var(--matchid-white);--matchid-btn-active-bg: linear-gradient(0deg, rgba(0, 0, 0, .06) 0%, rgba(0, 0, 0, .06) 100%), #1E1E1E;--matchid-btn-active-color: var(--matchid-white);--matchid-btn-highlight-bg: var(--matchid-black);--matchid-btn-highlight-color: var(--matchid-white);--matchid-btn-loading-bg: var(--matchid-black-800);--matchid-btn-loading-color: var(--matchid-white);--matchid-login-btn-text-color: var(--matchid-black);--matchid-login-btn-icon-color: var(--matchid-black);--matchid-login-btn-border-color: var(--matchid-black);--matchid-login-btn-bg-color: none;--matchid-login-btn-hover-text-color: var(--matchid-black);--matchid-login-btn-hover-icon-color: var(--matchid-highlight-orange);--matchid-login-btn-hover-border-color: var(--matchid-highlight-orange);--matchid-login-btn-hover-bg-color: none;--matchid-login-btn-active-text-color: var(--matchid-black);--matchid-login-btn-active-icon-color: var(--matchid-highlight-orange);--matchid-login-btn-active-border-color: var(--matchid-highlight-orange);--matchid-login-btn-active-bg-color: var(--matchid-white);--matchid-email-verify-header-value-color: var(--matchid-highlight-orange);--matchid-email-verify-header-value-tips: var(--matchid-gray-600);--matchid-valid-error-color: var(--matchid-gray-600);--matchid-valid-success-color: var(--matchid-black);--matchid-password-header-color: var(--matchid-black);--matchid-user-popover-color: var(--matchid-black);--matchid-user-popover-hover-color: var(--matchid-highlight-orange);--matchid-switch-bg: var(--matchid-gray-350);--matchid-switch-ball: var(--matchid-white);--matchid-switch-checked-bg: var(--matchid-highlight-orange);--matchid-switch-disabled-bg: var(--matchid-gray-350-light);--matchid-switch-disabled-checked-bg: var(--matchid-highlight-orange-light);--matchid-swicth-loading-color: var(--matchid-white);--matchid-avatar-bg: var(--matchid-gray-350);--matchid-avatar-color: var(--matchid-gray-600);--matchid-radio-line: var(--matchid-gray-300);--matchid-radio-checked: var(--matchid-highlight-orange);--matchid-wallet-asset-bg: var(--matchid-white);--matchid-wallet-asset-color: var(--matchid-black);--matchid-wallet-transaction-bg: var(--matchid-white);--matchid-wallet-transaction-color: var(--matchid-black);--matchid-tab-color:var(--matchid-secondary-grey);--matchid-tab-active-color: var(--matchid-highlight-orange)}.matchid-login-box{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:64px}@media screen and (max-width: 768px){.matchid-login-box{gap:48px}}.matchid-login-box .matchid-login-recommend-list{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:16px}@media screen and (max-width: 768px){.matchid-login-box .matchid-login-recommend-list{gap:12px}}.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method{width:100%;position:relative;display:flex;justify-content:center;align-items:center;flex-direction:column;border-radius:var(--matchid-login-method-round, 12px);border:1px solid var(--matchid-login-method-border-color, #E3E3E3)}.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method:hover{border-color:var(--matchid-login-method-hover-border-color, #FC802D)}.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method .matchid-login-recommend-method-item{display:flex;justify-content:space-between;align-items:center;gap:16px;height:72px;width:100%;padding:16px;cursor:pointer;color:var(--matchid-login-method-color, #000000)}@media screen and (max-width: 768px){.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method .matchid-login-recommend-method-item{height:56px;padding:10px 16px}}.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method .matchid-login-recommend-method-item .matchid-login-recommend-method-content{display:flex;justify-content:flex-start;align-items:center;gap:8px;font-size:16px;font-weight:600}@media screen and (max-width: 768px){.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method .matchid-login-recommend-method-item .matchid-login-recommend-method-content{gap:12px}}.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method .matchid-login-recommend-method-item .matchid-login-recommend-method-arrow{transition:all .3s}.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method .matchid-login-recommend-method-item .matchid-login-recommend-method-arrow.matchid-login-recommend-method-arrow-active{transform:rotate(180deg)}.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method .matchid-login-recommend-method-popover{display:none;width:100%;padding:0 16px 16px;flex-direction:column}.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method .matchid-login-recommend-method-popover.matchid-login-recommend-method-popover-active{display:flex}.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method .matchid-login-recommend-method-popover .matchid-login-recommend-wallet-divider{height:1px;width:100%;background:var(--matchid-line)}.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method .matchid-login-recommend-method-popover .matchid-login-recommend-wallet-list{margin-top:16px;display:flex;flex-direction:column;gap:8px;width:100%}@media screen and (max-width: 768px){.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method .matchid-login-recommend-method-popover .matchid-login-recommend-wallet-list{margin-top:10px}}.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method .matchid-login-recommend-method-popover .matchid-login-recommend-wallet-list .matchid-login-recommend-wallet-item{display:flex;justify-content:space-between;align-items:center;gap:16px;height:56px;border-radius:8px;font-size:16px;font-weight:600;color:var(--matchid-login-recommend-wallet-color, #000000);cursor:pointer;padding:0 16px}@media screen and (max-width: 768px){.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method .matchid-login-recommend-method-popover .matchid-login-recommend-wallet-list .matchid-login-recommend-wallet-item{height:48px}}.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method .matchid-login-recommend-method-popover .matchid-login-recommend-wallet-list .matchid-login-recommend-wallet-item .matchid-login-recommend-wallet-item-content{display:flex;justify-content:space-between;align-items:center;gap:8px}.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method .matchid-login-recommend-method-popover .matchid-login-recommend-wallet-list .matchid-login-recommend-wallet-item .matchid-login-recommend-wallet-item-content .matchid-login-recommend-wallet-item-hover-icon{display:none}.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method .matchid-login-recommend-method-popover .matchid-login-recommend-wallet-list .matchid-login-recommend-wallet-item:hover{background:var(--matchid-login-recommend-wallet-hover-bg, #FC802D);color:var(--matchid-login-recommend-wallet-hover-color, #FFF);--matchid-arrow-color: var(--matchid-login-recommend-wallet-hover-color, #FFF)}.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method .matchid-login-recommend-method-popover .matchid-login-recommend-wallet-list .matchid-login-recommend-wallet-item:hover .matchid-login-recommend-wallet-item-hover-icon{display:block}.matchid-login-box .matchid-login-recommend-list .matchid-login-recommend-method .matchid-login-recommend-method-popover .matchid-login-recommend-wallet-list .matchid-login-recommend-wallet-item:hover .matchid-login-recommend-wallet-item-icon{display:none}.matchid-login-box .matchid-login-other{width:100%;gap:16px;display:flex;flex-direction:column}.matchid-login-box .matchid-login-other .matchid-login-other-text{text-align:center;font-size:14px;color:var(--matchid-login-other-color, #6E6E6E);font-weight:400}@media screen and (max-width: 768px){.matchid-login-box .matchid-login-other .matchid-login-other-text{font-size:12px}}.matchid-login-box .matchid-login-other .matchid-login-method-box{display:grid;padding:16px;gap:16px 16px;grid-template-columns:repeat(5,1fr)}.matchid-login-box .matchid-login-other .matchid-login-method-box .matchid-login-method-item{cursor:pointer;display:flex;justify-content:center;align-items:center}.matchid-login-panel{display:flex;flex-direction:column;gap:24px}@media screen and (max-width: 768px){.matchid-login-panel{gap:16px}}.matchid-login-panel .matchid-login-panel-box{max-height:500px;overflow-y:auto}.matchid-login-panel .matchid-login-panel-box::-webkit-scrollbar{width:8px;background-color:#d3d3d3;border-radius:4px}.matchid-login-panel .matchid-login-panel-divide{height:1px;width:100%;background-color:var(--matchid-login-panel-divide-color, #E3E3E3)}.matchid-login-panel .matchid-login-panel-header{display:flex;width:100%;justify-content:space-between;align-items:center}.matchid-login-panel .matchid-login-panel-header .matchid-login-panel-header-content{display:flex;gap:4px;flex-direction:column}.matchid-login-panel .matchid-login-panel-header .matchid-login-panel-header-title{color:var(--matchid-login-panel-title-color, #000000);font-size:18px;font-weight:600}@media screen and (max-width: 768px){.matchid-login-panel .matchid-login-panel-header .matchid-login-panel-header-title{font-size:16px}}.matchid-login-panel .matchid-login-panel-header .matchid-login-panel-header-subtilte{color:var(--matchid-login-panel-subtitle-color, #6E6E6E);font-size:14px;font-weight:400;line-height:120%}@media screen and (max-width: 768px){.matchid-login-panel .matchid-login-panel-header .matchid-login-panel-header-subtilte{font-size:12px}}.matchid-login-panel .matchid-login-panel-header .matchid-login-panel-header-close{cursor:pointer}.matchid-overlay{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:var(--matchid-overlay-index);overflow:hidden;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0000004d;color:var(--matchid-overlay-color)}@media screen and (max-width: 768px){.matchid-overlay{align-items:center}}.matchid-modal{border-radius:var(--matchid-modal-round, 24px);border:1px solid var(--matchid-modal-border-color, #FFF);background:var(--matchid-modal-bg, #FFF);box-shadow:var(--matchid-modal-shadow, 0px 15px 40px 0px rgba(22, 17, 46, .12));width:480px;max-width:90vw;padding:var(--matchid-modal-padding, 32px)}@media screen and (max-width: 768px){.matchid-modal{width:calc(100vw - 20px);max-width:calc(100vw - 20px);padding:var(--matchid-mobile-modal-padding, 20px);padding-top:0}.matchid-modal .matchid-modal-mobile-header{width:44px;height:5px;border-radius:3px;background:var(--matchid-line);margin:8px auto 21px}}.matchid-modal .matchid-modal-header{padding-bottom:24px;height:54px;display:flex;align-items:center;justify-content:space-between}@media screen and (max-width: 768px){.matchid-modal .matchid-modal-header{height:38px;padding-bottom:16px;margin-bottom:16px}}.matchid-modal .matchid-modal-header.matchid-modal-header-border{border-bottom:1px solid var(--matchid-modal-header-border-color, #E3E3E3);margin-bottom:24px}.matchid-modal .matchid-modal-header .matchid-modal-header-back,.matchid-modal .matchid-modal-header .matchid-modal-header-close{cursor:pointer}.matchid-modal .matchid-modal-header .matchid-modal-header-content{display:flex;align-items:center;gap:12px}.matchid-modal .matchid-modal-header .matchid-modal-header-content .matchid-modal-header-title{color:var(--matchid-modal-header-color, #000);font-size:20px;font-weight:500}@media screen and (max-width: 768px){.matchid-modal .matchid-modal-header .matchid-modal-header-content .matchid-modal-header-title{font-size:16px;font-weight:500}}.matchid-input-box{width:100%;height:72px;padding-left:24px;padding-right:24px;border-radius:12px;border:1px solid var(--matchid-input-border-color);display:flex;align-items:center;justify-content:space-between;background:var(--matchid-input-bg);gap:24px}@media screen and (max-width: 768px){.matchid-input-box{height:48px;padding-left:16px;padding-right:16px}}.matchid-input-box:active,.matchid-input-box:focus,.matchid-input-box:focus-within{border-color:var(--matchid-input-focus-border-color);background:var(--matchid-input-focus-bg)}.matchid-input-box.matchid-input-has-content{background:var(--matchid-input-focus-bg)}.matchid-input-box .matchid-input-field{flex:1;height:100%;outline:0;color:var(--matchid-input-color);font-size:18px;font-weight:500;background:none;min-width:0}@media screen and (max-width: 768px){.matchid-input-box .matchid-input-field{font-size:16px;font-weight:500}}.matchid-input-box .matchid-input-field::-moz-placeholder{color:var(--matchid-input-placeholder-color);font-weight:300}.matchid-input-box .matchid-input-field::placeholder{color:var(--matchid-input-placeholder-color);font-weight:300}.matchid-input-box .matchid-input-field:active,.matchid-input-box .matchid-input-field:focus{outline:0}.matchid-input-box .matchid-input-eye-icon{cursor:pointer;display:flex;align-items:center;width:20px;flex-shrink:1}@media screen and (max-width: 768px){.matchid-input-box .matchid-input-eye-icon{width:16px}}.matchid-input-box .matchid-input-delete-icon{opacity:0;cursor:pointer;width:20px;flex-shrink:1}@media screen and (max-width: 768px){.matchid-input-box .matchid-input-delete-icon{width:16px}}.matchid-input-box:focus-within .matchid-input-delete-icon{opacity:1}.matchid-field-box{display:flex;flex-direction:column;gap:16px}@media screen and (max-width: 768px){.matchid-field-box{gap:8px}}.matchid-field-box .matchid-field-label{color:var(--matchid-field-color);font-size:18px;font-weight:500}@media screen and (max-width: 768px){.matchid-field-box .matchid-field-label{font-size:14px;font-weight:500}}.matchid-field-box .matchid-field-label .matchid-field-required{color:var(--matchid-field-required-color)}.matchid-field-box .matchid-field-error{font-size:14px;font-weight:400;color:var(--matchid-field-error-color)}.matchid-btn{display:flex;justify-content:center;align-items:center;gap:10px;border-radius:12px;outline:0;cursor:pointer;border:1px solid var(--matchid-btn-border-color);color:var(--matchid-btn-color);background:var(--matchid-btn-bg)}.matchid-btn:not(:disabled):hover{background:var(--matchid-btn-hover-bg);color:var(--matchid-btn-hover-color);box-shadow:var(--matchid-shadow-middle);border-color:var(--matchid-btn-hover-bg)}.matchid-btn:focus{background:var(--matchid-btn-active-bg);color:var(--matchid-btn-active-color);box-shadow:var(--matchid-shadow-middle);border-color:var(--matchid-btn-active-bg)}.matchid-btn-highlight,.matchid-btn-highlight:hover,.matchid-btn-highlight:focus,.matchid-btn-highlight:not(:disabled):hover{background:var(--matchid-btn-highlight-bg);color:var(--matchid-btn-highlight-color);border:0}.matchid-btn:disabled{cursor:not-allowed;background:var(--matchid-btn-disabled-bg);color:var(--matchid-btn-disabled-color);border-width:0px}.matchid-btn-loading{background:var(--matchid-btn-loading-bg)!important;color:var(--matchid-btn-loading-color)!important;cursor:not-allowed}.matchid-btn-loading-icon{animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.matchid-btn-sm{height:28px;font-size:14px;padding:0 16px}.matchid-btn-df{height:40px;font-size:18px;padding:0 16px}.matchid-btn-lg{height:52px;font-size:20px;padding:0 48px}.matchid-btn-block{width:100%}.matchid-btn-rounded{border-radius:100px}@media screen and (max-width: 768px){.matchid-btn-sm{height:28px;font-size:12px;padding:0 16px}.matchid-btn-df{height:40px;font-size:16px;padding:0 16px;gap:8px}.matchid-btn-lg{height:48px;font-size:16px;padding:0 32px}}.matchid-email-verify-box,.matchid-password-box{display:flex;flex-direction:column;gap:64px}@media screen and (max-width: 768px){.matchid-email-verify-box,.matchid-password-box{gap:36px}}.matchid-email-verify-box .matchid-email-verify-header,.matchid-email-verify-box .matchid-password-header,.matchid-password-box .matchid-email-verify-header,.matchid-password-box .matchid-password-header{display:flex;align-items:center;gap:16px;height:40px}@media screen and (max-width: 768px){.matchid-email-verify-box .matchid-email-verify-header,.matchid-email-verify-box .matchid-password-header,.matchid-password-box .matchid-email-verify-header,.matchid-password-box .matchid-password-header{gap:12px;height:32px}}.matchid-email-verify-box .matchid-email-verify-header .matchid-email-verify-header-icon,.matchid-email-verify-box .matchid-email-verify-header .matchid-password-header-icon,.matchid-email-verify-box .matchid-password-header .matchid-email-verify-header-icon,.matchid-email-verify-box .matchid-password-header .matchid-password-header-icon,.matchid-password-box .matchid-email-verify-header .matchid-email-verify-header-icon,.matchid-password-box .matchid-email-verify-header .matchid-password-header-icon,.matchid-password-box .matchid-password-header .matchid-email-verify-header-icon,.matchid-password-box .matchid-password-header .matchid-password-header-icon{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border-radius:8px;border:1px solid var(--matchid-black)}@media screen and (max-width: 768px){.matchid-email-verify-box .matchid-email-verify-header .matchid-email-verify-header-icon,.matchid-email-verify-box .matchid-email-verify-header .matchid-password-header-icon,.matchid-email-verify-box .matchid-password-header .matchid-email-verify-header-icon,.matchid-email-verify-box .matchid-password-header .matchid-password-header-icon,.matchid-password-box .matchid-email-verify-header .matchid-email-verify-header-icon,.matchid-password-box .matchid-email-verify-header .matchid-password-header-icon,.matchid-password-box .matchid-password-header .matchid-email-verify-header-icon,.matchid-password-box .matchid-password-header .matchid-password-header-icon{width:32px;height:32px}}.matchid-email-verify-box .matchid-email-verify-header .matchid-email-verify-header-content,.matchid-email-verify-box .matchid-password-header .matchid-email-verify-header-content,.matchid-password-box .matchid-email-verify-header .matchid-email-verify-header-content,.matchid-password-box .matchid-password-header .matchid-email-verify-header-content{flex:1;display:flex;height:100%;flex-direction:column;justify-content:space-between}.matchid-email-verify-box .matchid-email-verify-header .matchid-email-verify-header-content .matchid-email-verify-header-value,.matchid-email-verify-box .matchid-password-header .matchid-email-verify-header-content .matchid-email-verify-header-value,.matchid-password-box .matchid-email-verify-header .matchid-email-verify-header-content .matchid-email-verify-header-value,.matchid-password-box .matchid-password-header .matchid-email-verify-header-content .matchid-email-verify-header-value{color:var(--matchid-email-verify-header-value-color);font-size:24px;font-weight:600;line-height:100%}@media screen and (max-width: 768px){.matchid-email-verify-box .matchid-email-verify-header .matchid-email-verify-header-content .matchid-email-verify-header-value,.matchid-email-verify-box .matchid-password-header .matchid-email-verify-header-content .matchid-email-verify-header-value,.matchid-password-box .matchid-email-verify-header .matchid-email-verify-header-content .matchid-email-verify-header-value,.matchid-password-box .matchid-password-header .matchid-email-verify-header-content .matchid-email-verify-header-value{font-size:16px;font-weight:500}}.matchid-email-verify-box .matchid-email-verify-header .matchid-email-verify-header-content .matchid-email-verify-header-tips,.matchid-email-verify-box .matchid-password-header .matchid-email-verify-header-content .matchid-email-verify-header-tips,.matchid-password-box .matchid-email-verify-header .matchid-email-verify-header-content .matchid-email-verify-header-tips,.matchid-password-box .matchid-password-header .matchid-email-verify-header-content .matchid-email-verify-header-tips{color:var(--matchid-email-verify-header-value-tips);font-size:14px;line-height:120%}@media screen and (max-width: 768px){.matchid-email-verify-box .matchid-email-verify-header .matchid-email-verify-header-content .matchid-email-verify-header-tips,.matchid-email-verify-box .matchid-password-header .matchid-email-verify-header-content .matchid-email-verify-header-tips,.matchid-password-box .matchid-email-verify-header .matchid-email-verify-header-content .matchid-email-verify-header-tips,.matchid-password-box .matchid-password-header .matchid-email-verify-header-content .matchid-email-verify-header-tips{font-size:12px}}.matchid-email-verify-box .matchid-email-verify-header .matchid-password-header-content,.matchid-email-verify-box .matchid-password-header .matchid-password-header-content,.matchid-password-box .matchid-email-verify-header .matchid-password-header-content,.matchid-password-box .matchid-password-header .matchid-password-header-content{font-size:16px;font-weight:500;color:var(--matchid-password-header-color)}@media screen and (max-width: 768px){.matchid-email-verify-box .matchid-email-verify-header .matchid-password-header-content,.matchid-email-verify-box .matchid-password-header .matchid-password-header-content,.matchid-password-box .matchid-email-verify-header .matchid-password-header-content,.matchid-password-box .matchid-password-header .matchid-password-header-content{font-size:14px}}.matchid-unlogin-btn,.matchid-login-btn{gap:8px}.matchid-login-btn{padding:0 12px 0 4px;background:var(--matchid-login-btn-bg-color);color:var(--matchid-login-btn-text-color);fill:var(--matchid-login-btn-icon-color);border-color:var(--matchid-login-btn-border-color)}.matchid-login-btn:hover,.matchid-login-btn:not(:disabled):hover{background:var(--matchid-login-btn-hover-bg-color);color:var(--matchid-login-btn-hover-text-color);fill:var(--matchid-login-btn-hover-icon-color);border-color:var(--matchid-login-btn-hover-border-color)}.matchid-login-btn:focus,.matchid-login-btn:not(:disabled):focus{box-shadow:var(--matchid-shadow-small);background:var(--matchid-login-btn-active-bg-color);color:var(--matchid-login-btn-active-text-color);fill:var(--matchid-login-btn-active-icon-color);border-color:var(--matchid-login-btn-active-border-color)}.matchid-login-btn-box{position:relative}.matchid-valid{margin-top:24px;display:flex;flex-direction:column;gap:16px}@media screen and (max-width: 768px){.matchid-valid{gap:4px}}.matchid-valid .matchid-valid-status-item{display:flex;font-size:14px;gap:8px;align-items:flex-start;color:var()}@media screen and (max-width: 768px){.matchid-valid .matchid-valid-status-item{font-size:12px;line-height:normal}}.matchid-valid .matchid-valid-status-item span{flex:1}.matchid-valid .matchid-valid-status-item.matchid-valid-status-success{color:var(--matchid-valid-success-color)}.matchid-valid .matchid-valid-status-item.matchid-valid-status-error{color:var(--matchid-valid-error-color)}.matchid-password-content{display:flex;flex-direction:column;gap:24px}.matchid-popover-box{position:relative;display:inline-block}.matchid-popover-box .matchid-popover-area{display:none;position:absolute;z-index:100}.matchid-popover-box .matchid-popover-area .matchid-popover-content{background:var(--matchid-popover-bg);box-shadow:var(--matchid-shadow-middle);border-radius:12px;padding:16px 0;border:1px solid var(--matchid-popover-bg)}.matchid-popover-box .matchid-popover-area .matchid-popover-content:hover{border:1px solid var(--matchid-highlight-orange)}.matchid-popover-box.matchid-popover-click-active .matchid-popover-area,.matchid-popover-box.matchid-popover-hover:hover .matchid-popover-area{display:block}.matchid-popover-box.matchid-popover-left .matchid-popover-area{left:0;top:100%}.matchid-popover-box.matchid-popover-right .matchid-popover-area{right:0;top:100%}.matchid-popover-box.matchid-popover-center .matchid-popover-area{left:50%;top:100%;transform:translate(-50%)}.matchid-user-popover-content{padding:0 12px;display:flex;width:280px;flex-direction:column;gap:32px;font-size:16px}.matchid-user-popover-content .matchid-user-popover-list{display:flex;flex-direction:column;width:100%;gap:8px}.matchid-user-popover-content .matchid-user-popover-list .matchid-user-popover-item{display:flex;justify-content:space-between;align-items:center;cursor:pointer;gap:8px;height:48px;color:var(--matchid-user-popover-color);--icon-color: var(--matchid-user-popover-color)}.matchid-user-popover-content .matchid-user-popover-list .matchid-user-popover-item .matchid-user-popover-item-content{display:flex;gap:8px;align-items:center}.matchid-user-popover-content .matchid-user-popover-list .matchid-user-popover-item:hover{color:var(--matchid-user-popover-hover-color);--icon-color: var(--matchid-user-popover-hover-color)}.matchid-user-popover-divider{height:1px;width:100%;background:var(--matchid-line)}.matchid-wallet-container{background:#fff;display:flex;flex-direction:column;gap:24px;align-items:center;justify-content:center}.matchid-wallet-container .matchid-wallet-box{display:flex;flex-direction:column;gap:24px;align-items:center;justify-content:center;padding:24px}.matchid-wallet-container .matchid-wallet-box .matchid-wallet-content{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#6e6e6e;text-align:center;font-size:20px;font-weight:500;line-height:20px}.matchid-wallet-container .matchid-wallet-box .matchid-wallet-content img{width:128px;height:128px}.matchid-email-verify-field{padding-right:0}.matchid-cex-modal{font-size:14px;display:flex;flex-direction:column;gap:12px}.matchid-drawer{width:416px;height:100vh;padding:24px 24px 0;background:#fff;display:flex;gap:48px;position:absolute;top:0;right:0;transition:all .3s;flex-direction:column;border-left:1px solid #D3D3D3;box-shadow:-20px 0 20px #16112e1f}.matchid-drawer .matchid-drawer-header{font-size:18px;font-weight:500;padding-bottom:24px;border-bottom:1px solid var(--matchid-line);display:flex;justify-content:space-between}.matchid-drawer .matchid-drawer-header .matchid-drawer-header-content{display:flex;gap:12px;align-items:center}.matchid-drawer .matchid-drawer-header .matchid-drawer-header-close,.matchid-drawer .matchid-drawer-header .matchid-drawer-header-back{cursor:pointer}.matchid-hashpanel-header{font-size:16px;font-weight:500;display:block}@media screen and (min-width: 768px){.matchid-hashpanel-header{display:none}}.matchid-hashpanel-box{display:flex;flex-direction:column;gap:36px;align-items:center}@media screen and (min-width: 768px){.matchid-hashpanel-box{justify-content:space-between;flex:1;padding-bottom:120px}}.matchid-hashpanel-box .matchid-hashpanel-content{display:flex;flex-direction:column;gap:24px;align-items:center;width:100%}@media screen and (min-width: 768px){.matchid-hashpanel-box .matchid-hashpanel-content{gap:48px}}.matchid-hashpanel-box .matchid-hashpanel-content .matchid-hashpanel-status{font-size:24px;font-weight:500;display:none}@media screen and (min-width: 768px){.matchid-hashpanel-box .matchid-hashpanel-content .matchid-hashpanel-status{display:block}}.matchid-hashpanel-box .matchid-hashpanel-content .matchid-hashpanel-img{width:96px;height:96px}.matchid-hashpanel-box .matchid-hashpanel-content .matchid-hashpanel-hash{width:100%;font-size:14px;word-break:break-all}@media screen and (min-width: 768px){.matchid-hashpanel-box .matchid-hashpanel-content .matchid-hashpanel-hash{font-size:16px}}.matchid-hashpanel-box .matchid-hashpanel-content .matchid-hashpanel-hash a{color:var(--matchid-link);text-decoration:none}.matchid-switch{width:64px;height:32px;background-color:var(--matchid-switch-bg);border-radius:16px;cursor:pointer;position:relative;transition:background-color .3s ease}.matchid-switch .matchid-switch-ball,.matchid-switch .matchid-switch-loading-icon{width:24px;height:24px;transition:transform .3s ease,left .3s,background-color .3s ease;position:absolute;left:4px;top:4px}.matchid-switch .matchid-switch-ball{background-color:var(--matchid-switch-ball);border-radius:50%}.matchid-switch.matchid-switch-sm{width:48px;height:24px;border-radius:12px}.matchid-switch.matchid-switch-sm .matchid-switch-ball,.matchid-switch.matchid-switch-sm .matchid-switch-loading-icon{width:18px;height:18px;left:3px;top:3px}.matchid-switch.matchid-switch-checked{background-color:var(--matchid-switch-checked-bg)}.matchid-switch.matchid-switch-checked .matchid-switch-ball,.matchid-switch.matchid-switch-checked .matchid-switch-loading-icon{left:36px}.matchid-switch.matchid-switch-checked.matchid-switch-sm .matchid-switch-ball,.matchid-switch.matchid-switch-checked .matchid-switch-sm .matchid-switch-loading-icon{left:27px}.matchid-switch.matchid-switch-disabled,.matchid-switch.matchid-switch-loading{cursor:not-allowed;background-color:var(--matchid-switch-disabled-bg)}.matchid-switch.matchid-switch-disabled.matchid-switch-checked,.matchid-switch.matchid-switch-loading.matchid-switch-checked{background-color:var(--matchid-switch-disabled-checked-bg)}.matchid-switch.matchid-switch-loading .matchid-switch-loading-icon{animation:spin 2s linear infinite}.matchid-alpha-avatar{display:flex;justify-content:center;align-items:center;border-radius:50%;background:var(--matchid-avatar-bg);color:var(--matchid-avatar-color);font-weight:500}.matchid-radio{cursor:pointer;display:flex;justify-content:center;align-items:center;border-radius:100%;border:1px solid var(--matchid-radio-line)}.matchid-radio.matchid-radio-checked{border-color:var(--matchid-radio-checked)}.matchid-radio.matchid-radio-checked .matchid-radio-content{background:var(--matchid-radio-checked);border-radius:100%}.matchid-change-network-box{display:flex;flex-direction:column;gap:48px}@media screen and (max-width: 768px){.matchid-change-network-box{gap:36px}}.matchid-change-network-box .matchid-change-network-list{display:flex;flex-direction:column;gap:24px}@media screen and (max-width: 768px){.matchid-change-network-box .matchid-change-network-list{gap:16px}}.matchid-change-network-box .matchid-change-network-list .matchid-change-network-item{cursor:pointer;display:flex;align-items:center;gap:8px;justify-content:space-between;padding:16px;border:1px solid var(--matchid-line);border-radius:16px;transition:border-color .2s}@media screen and (max-width: 768px){.matchid-change-network-box .matchid-change-network-list .matchid-change-network-item{padding:10px 16px;border-radius:12px}}.matchid-change-network-box .matchid-change-network-list .matchid-change-network-item:hover,.matchid-change-network-box .matchid-change-network-list .matchid-change-network-item.matchid-change-network-selected{border-color:var(--matchid-highlight-orange)}.matchid-change-network-box .matchid-change-network-list .matchid-change-network-item .matchid-change-network-item-content{display:flex;align-items:center;gap:16px}@media screen and (max-width: 768px){.matchid-change-network-box .matchid-change-network-list .matchid-change-network-item .matchid-change-network-item-content{gap:8px}}.matchid-change-network-box .matchid-change-network-list .matchid-change-network-item .matchid-change-network-item-content .matchid-change-network-item-icon{width:28px;height:28px;border-radius:8px}@media (min-width: 768px){.matchid-change-network-box .matchid-change-network-list .matchid-change-network-item .matchid-change-network-item-content .matchid-change-network-item-icon{width:40px;height:40px}}.matchid-change-network-box .matchid-change-network-list .matchid-change-network-item .matchid-change-network-item-content .matchid-change-network-item-name{font-size:14px;font-weight:500}@media (min-width: 768px){.matchid-change-network-box .matchid-change-network-list .matchid-change-network-item .matchid-change-network-item-content .matchid-change-network-item-name{font-size:16px}}.matchid-toast-box{position:fixed;top:20px;right:20px;display:flex;flex-direction:column;gap:8px}.matchid-toast-box .matchid-toast{display:flex;align-items:center;box-shadow:var(--matchid-shadow-small);padding-left:12px;padding-right:12px;gap:4px;height:40px;color:#000;background-color:#fff;font-size:14px;border:1px solid var(--matchid-line);border-radius:100px;transform:scale(1);transition:all .3s ease}.matchid-receive-modal{display:flex;flex-direction:column;align-items:center;flex:1;gap:48px}@media screen and (max-width: 768px){.matchid-receive-modal{gap:36px}}.matchid-receive-modal .matchid-receive-container{display:flex;flex-direction:column;align-items:center;gap:48px}@media screen and (max-width: 768px){.matchid-receive-modal .matchid-receive-container{gap:24px}}.matchid-receive-modal .matchid-receive-container .matchid-receive-text{font-size:14px;font-weight:500}@media (min-width: 768px){.matchid-receive-modal .matchid-receive-container .matchid-receive-text{font-size:16px}}.matchid-receive-modal .matchid-receive-container .matchid-qr-container{border:2px solid var(--matchid-line);border-radius:12px;padding:16px}@media screen and (max-width: 768px){.matchid-receive-modal .matchid-receive-container .matchid-qr-container{padding:10px}}.matchid-receive-modal .matchid-receive-container .matchid-qr-container .matchid-qr-code{width:148px;height:148px}@media screen and (max-width: 768px){.matchid-receive-modal .matchid-receive-container .matchid-qr-container .matchid-qr-code{width:88px;height:88px}}.matchid-receive-modal .matchid-receive-container .matchid-receive-link{text-align:center;word-break:break-all;color:var(--matchid-link);font-size:14px;font-weight:500}.matchid-import-token{display:flex;flex-direction:column;gap:48px}@media screen and (max-width: 768px){.matchid-import-token{gap:36px}}.matchid-import-token .matchid-import-token-form{display:flex;flex-direction:column;gap:24px}@media screen and (max-width: 768px){.matchid-import-token .matchid-import-token-form{gap:16px}}.matchid-wallet-asset-list{display:flex;flex-direction:column;gap:16px}@media screen and (max-width: 768px){.matchid-wallet-asset-list{gap:8px}}.matchid-wallet-asset-list .matchid-wallet-asset-item{background:var(--matchid-wallet-asset-bg);color:var(--matchid-wallet-asset-color);display:flex;cursor:pointer;gap:8px;align-items:center;padding:16px;border:1px solid var(--matchid-line);border-radius:16px}@media screen and (max-width: 768px){.matchid-wallet-asset-list .matchid-wallet-asset-item{padding:10px 16px}}.matchid-wallet-asset-list .matchid-wallet-asset-item:hover{border-color:var(--matchid-highlight-orange)}.matchid-wallet-asset-list .matchid-wallet-asset-item .matchid-wallet-asset-logo{position:relative;height:46px;width:42px;display:flex;align-items:center}@media screen and (max-width: 768px){.matchid-wallet-asset-list .matchid-wallet-asset-item .matchid-wallet-asset-logo{width:36px;height:36px}}.matchid-wallet-asset-list .matchid-wallet-asset-item .matchid-wallet-asset-logo .matchid-wallet-asset-icon{width:40px;height:40px;border-radius:8px}@media screen and (max-width: 768px){.matchid-wallet-asset-list .matchid-wallet-asset-item .matchid-wallet-asset-logo .matchid-wallet-asset-icon{width:36px;height:36px}}.matchid-wallet-asset-list .matchid-wallet-asset-item .matchid-wallet-asset-logo .matchid-wallet-asset-chain{position:absolute;border-radius:100%;width:12px;height:12px;right:0;bottom:1px}@media screen and (max-width: 768px){.matchid-wallet-asset-list .matchid-wallet-asset-item .matchid-wallet-asset-logo .matchid-wallet-asset-chain{width:10px;height:10px}}.matchid-wallet-asset-list .matchid-wallet-asset-item .matchid-wallet-asset-info{height:46px;display:flex;flex:1;align-items:center;justify-content:space-between;gap:10px}@media screen and (max-width: 768px){.matchid-wallet-asset-list .matchid-wallet-asset-item .matchid-wallet-asset-info{height:44px}}.matchid-wallet-asset-list .matchid-wallet-asset-item .matchid-wallet-asset-info .matchid-wallet-asset-name{font-size:16px;font-weight:500;flex:1;color:var(--matchid-black);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}@media (max-width: 768px){.matchid-wallet-asset-list .matchid-wallet-asset-item .matchid-wallet-asset-info .matchid-wallet-asset-name{font-size:14px}}.matchid-wallet-asset-list .matchid-wallet-asset-item .matchid-wallet-asset-info .matchid-wallet-asset-content{display:flex;flex-direction:column;gap:4px;flex:1}.matchid-wallet-asset-list .matchid-wallet-asset-item .matchid-wallet-asset-info .matchid-wallet-asset-content .matchid-wallet-asset-price{font-size:16px;font-weight:500;color:var(--matchid-black)}@media (max-width: 768px){.matchid-wallet-asset-list .matchid-wallet-asset-item .matchid-wallet-asset-info .matchid-wallet-asset-content .matchid-wallet-asset-price{font-size:14px}}.matchid-wallet-asset-list .matchid-wallet-asset-item .matchid-wallet-asset-info .matchid-wallet-asset-content .matchid-wallet-asset-value{font-size:14px;font-weight:500;color:var(--matchid-gray-600)}.matchid-wallet-asset-list .matchid-wallet-asset-item .matchid-wallet-asset-info .matchid-wallet-asset-footer{flex:1;display:flex;flex-direction:column;gap:4px;align-items:end}.matchid-wallet-asset-list .matchid-wallet-asset-item .matchid-wallet-asset-info .matchid-wallet-asset-footer .matchid-wallet-asset-balance{font-size:16px;font-weight:500;color:var(--matchid-success)}@media (max-width: 768px){.matchid-wallet-asset-list .matchid-wallet-asset-item .matchid-wallet-asset-info .matchid-wallet-asset-footer .matchid-wallet-asset-balance{font-size:14px}}.matchid-wallet-asset-list .matchid-wallet-asset-item .matchid-wallet-asset-info .matchid-wallet-asset-footer .matchid-wallet-asset-change{font-size:14px;font-weight:400}.matchid-wallet-asset-list .matchid-wallet-asset-down{color:var(--matchid-error)}.matchid-wallet-asset-list .matchid-wallet-asset-up{color:var(--matchid-success)}.matchid-token-detail{flex:1;display:flex;justify-content:space-between;flex-direction:column;padding-bottom:200px;gap:48px}@media (max-width: 768px){.matchid-token-detail{padding-bottom:0;gap:36px}}.matchid-token-detail .matchid-token-main{display:flex;flex-direction:column;gap:24px;align-items:center}.matchid-token-detail .matchid-token-main .matchid-token-info{display:flex;flex-direction:column;gap:8px;align-items:center}.matchid-token-detail .matchid-token-main .matchid-token-info .matchid-token-logo{position:relative;width:48px;height:48px}.matchid-token-detail .matchid-token-main .matchid-token-info .matchid-token-logo .matchid-token-icon{width:100%;height:100%;border-radius:100%}.matchid-token-detail .matchid-token-main .matchid-token-info .matchid-token-logo .matchid-token-chain{position:absolute;border-radius:100%;width:12px;height:12px;right:0;bottom:0}.matchid-token-detail .matchid-token-main .matchid-token-info .matchid-token-name{font-size:20px;font-weight:500;color:var(--matchid-black)}@media (max-width: 768px){.matchid-token-detail .matchid-token-main .matchid-token-info .matchid-token-name{font-size:16px}}.matchid-token-detail .matchid-token-main .matchid-token-contract{gap:16px;display:flex;flex-direction:column;padding:16px;background:var(--matchid-gray-100);border-radius:12px}@media (max-width: 768px){.matchid-token-detail .matchid-token-main .matchid-token-contract{gap:8px}}.matchid-token-detail .matchid-token-main .matchid-token-contract .matchid-token-contract-title{color:var(--matchid-black);font-size:16px;font-weight:500}@media (max-width: 768px){.matchid-token-detail .matchid-token-main .matchid-token-contract .matchid-token-contract-title{font-size:14px}}.matchid-token-detail .matchid-token-main .matchid-token-contract .matchid-token-contract-address{width:100%;word-break:break-all;font-size:14px;color:var(--matchid-secondary-grey)}@media (max-width: 768px){.matchid-token-detail .matchid-token-main .matchid-token-contract .matchid-token-contract-address{font-size:12px}}.matchid-token-send-box{flex:1;display:flex;justify-content:space-between;flex-direction:column;padding-bottom:200px;gap:40px}@media (max-width: 768px){.matchid-token-send-box{padding-bottom:0;gap:68px}}.matchid-token-send-box .matchid-token-send-content{display:flex;flex-direction:column;gap:16px}.matchid-token-send-box .matchid-token-send-content .matchid-token-amount-content,.matchid-token-send-box .matchid-token-send-content .matchid-token-address-content{padding:16px;background:var(--matchid-light-grey);border-radius:16px;display:flex;gap:16px;flex-direction:column;position:relative}.matchid-token-send-box .matchid-token-send-content .matchid-token-amount-content .matchid-token-amount-transfer{position:absolute;left:50%;bottom:-20px;transform:translate(-50%)}.matchid-token-send-box .matchid-token-send-content .matchid-token-amount-content .matchid-token-amount-header{display:flex;justify-content:space-between;align-items:center}.matchid-token-send-box .matchid-token-send-content .matchid-token-amount-content .matchid-token-amount-header .matchid-token-amount-title{font-size:16px;font-weight:500;color:var(--matchid-black)}@media (max-width: 768px){.matchid-token-send-box .matchid-token-send-content .matchid-token-amount-content .matchid-token-amount-header .matchid-token-amount-title{font-size:14px}}.matchid-token-send-box .matchid-token-send-content .matchid-token-amount-content .matchid-token-amount-header .matchid-token-amount-chain{display:flex;align-items:center;gap:4px;border-radius:100px;padding:4px 8px;background:var(--matchid-white)}.matchid-token-send-box .matchid-token-send-content .matchid-token-amount-content .matchid-token-amount-header .matchid-token-amount-chain .matchid-token-amount-chain-icon{width:16px;height:16px;border-radius:50%}.matchid-token-send-box .matchid-token-send-content .matchid-token-amount-content .matchid-token-amount-header .matchid-token-amount-chain span{font-size:12px;font-weight:500;color:var(--matchid-black)}.matchid-token-send-box .matchid-token-send-content .matchid-token-amount-content .matchid-token-amount-footer{display:flex;align-items:center;gap:8px;font-size:14px}@media (max-width: 768px){.matchid-token-send-box .matchid-token-send-content .matchid-token-amount-content .matchid-token-amount-footer{font-size:12px}}.matchid-token-send-box .matchid-token-send-content .matchid-token-amount-content .matchid-token-amount-footer .matchid-token-amount-title{font-weight:300;color:var(--matchid-secondary-grey)}.matchid-token-send-box .matchid-token-send-content .matchid-token-amount-content .matchid-token-amount-footer .matchid-token-amount-value{color:var(--matchid-black);font-weight:500}.matchid-token-send-box .matchid-token-send-content .matchid-token-address-content .matchid-token-address-header .matchid-token-address-title{font-size:16px;font-weight:500;color:var(--matchid-black)}@media (max-width: 768px){.matchid-token-send-box .matchid-token-send-content .matchid-token-address-content .matchid-token-address-header .matchid-token-address-title{font-size:14px}}.matchid-token-input-box{display:flex;flex-direction:column;gap:8px}.matchid-token-input-box .matchid-token-input{width:100%;background:transparent;font-size:24px;color:var(--matchid-black);padding:10px 0;border:none;font-weight:600;border-bottom:1px solid var(--matchid-line);caret-color:var(--matchid-black)}@media (max-width: 768px){.matchid-token-input-box .matchid-token-input{font-size:20px}}.matchid-token-input-box .matchid-token-input::-moz-placeholder{color:var(--matchid-disabled);font-weight:300}.matchid-token-input-box .matchid-token-input::placeholder{color:var(--matchid-disabled);font-weight:300}.matchid-token-input-box .matchid-token-input.matchid-token-input-error{border-color:var(--matchid-highlight-orange)}.matchid-token-input-box .matchid-token-input:focus{outline:none}.matchid-token-input-box.matchid-token-input-sm .matchid-token-input{font-size:16px}@media (max-width: 768px){.matchid-token-input-box.matchid-token-input-sm .matchid-token-input{font-size:14px}}.matchid-token-input-box .matchid-token-input-error-text{font-size:12px;color:var(--matchid-error);font-weight:500}.matchid-token-send-list-box{flex:1;display:flex;flex-direction:column;justify-content:space-between;gap:48px;overflow-y:scroll;max-height:70vh}@media (max-width: 768px){.matchid-token-send-list-box{padding-bottom:0;gap:36px}}.matchid-token-send-list-box .matchid-token-send-list{display:flex;flex-direction:column;gap:24px;flex:1;overflow-y:scroll;max-height:calc(70vh - 98px)}@media (max-width: 768px){.matchid-token-send-list-box .matchid-token-send-list{max-height:calc(70vh - 86px)}}.matchid-token-send-list-box .matchid-token-send-list .matchid-token-send-item{cursor:pointer;display:flex;align-items:center;gap:8px;justify-content:space-between;padding:16px;border:1px solid var(--matchid-line);border-radius:16px;transition:border-color .2s}@media (max-width: 768px){.matchid-token-send-list-box .matchid-token-send-list .matchid-token-send-item{padding:10px 16px;border-radius:12px}}.matchid-token-send-list-box .matchid-token-send-list .matchid-token-send-item:hover,.matchid-token-send-list-box .matchid-token-send-list .matchid-token-send-item.matchid-token-send-checked{border-color:var(--matchid-highlight-orange)}.matchid-token-send-list-box .matchid-token-send-list .matchid-token-send-item .matchid-token-send-content{display:flex;align-items:center;flex:1;gap:16px}@media (max-width: 768px){.matchid-token-send-list-box .matchid-token-send-list .matchid-token-send-item .matchid-token-send-content{gap:8px}}.matchid-token-send-list-box .matchid-token-send-list .matchid-token-send-item .matchid-token-send-content .matchid-token-send-logo{width:28px;height:28px;position:relative}.matchid-token-send-list-box .matchid-token-send-list .matchid-token-send-item .matchid-token-send-content .matchid-token-send-logo .matchid-token-send-icon{width:100%;height:100%;border-radius:8px}.matchid-token-send-list-box .matchid-token-send-list .matchid-token-send-item .matchid-token-send-content .matchid-token-send-logo .matchid-token-send-chain{position:absolute;border-radius:100%;width:12px;height:12px;right:-1px;bottom:-1px}@media (min-width: 768px){.matchid-token-send-list-box .matchid-token-send-list .matchid-token-send-item .matchid-token-send-content .matchid-token-send-logo{width:40px;height:40px}}.matchid-token-send-list-box .matchid-token-send-list .matchid-token-send-item .matchid-token-send-content .matchid-token-send-info{font-size:14px;font-weight:500;display:flex;flex:1;align-items:center;justify-content:space-between;gap:10px}@media (min-width: 768px){.matchid-token-send-list-box .matchid-token-send-list .matchid-token-send-item .matchid-token-send-content .matchid-token-send-info{font-size:16px}}.matchid-rotate{animation:spin 2s linear infinite}.matchid-transaction-item{padding:16px;display:flex;justify-content:space-between;border:1px solid var(--matchid-line);border-radius:16px;height:78px;background:var(--matchid-wallet-transaction-bg);color:var(--matchid-wallet-transaction-color)}@media screen and (max-width: 768px){.matchid-transaction-item{height:64px}}.matchid-transaction-item:hover{border-color:var(--matchid-highlight-orange)}.matchid-transaction-item .matchid-transacton-item-container{display:flex;gap:8px;align-items:center}.matchid-transaction-item .matchid-transacton-item-container .matchid-transaction-item-icon{background-color:var(--matchid-light-grey);border-radius:8px;width:40px;height:40px;display:flex;align-items:center;justify-content:center}@media screen and (max-width: 768px){.matchid-transaction-item .matchid-transacton-item-container .matchid-transaction-item-icon{width:36px;height:36px}}.matchid-transaction-item .matchid-transacton-item-container .matchid-transaction-item-icon .rotate-180{transform:rotate(180deg)}.matchid-transaction-item .matchid-transacton-item-container .matchid-transaction-item-details{display:flex;flex-direction:column;justify-content:space-between}.matchid-transaction-item .matchid-transacton-item-container .matchid-transaction-item-details .matchid-transaction-item-address{font-size:16px;font-weight:500;color:#000}@media screen and (max-width: 768px){.matchid-transaction-item .matchid-transacton-item-container .matchid-transaction-item-details .matchid-transaction-item-address{font-size:14px}}.matchid-transaction-item .matchid-transacton-item-container .matchid-transaction-item-details .matchid-transaction-item-timestamp{font-size:14px;color:var(--matchid-secondary-grey)}@media screen and (max-width: 768px){.matchid-transaction-item .matchid-transacton-item-container .matchid-transaction-item-details .matchid-transaction-item-timestamp{font-size:12px}}.matchid-transaction-item .matchid-transaction-item-amount{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:500}.matchid-transaction-item .matchid-transaction-item-amount span{text-align:right}@media screen and (max-width: 768px){.matchid-transaction-item .matchid-transaction-item-amount{font-size:14px}}.matchid-transaction-item .matchid-transaction-item-loading{color:var(--matchid-black)}.matchid-transaction-item .matchid-transaction-item-success{color:var(--matchid-success)}.matchid-transaction-item .matchid-transaction-item-error{color:var(--matchid-error)}.matchid-transaction-list{display:flex;flex-direction:column;gap:16px}@media screen and (max-width: 768px){.matchid-transaction-list{gap:8px}}.matchid-list-nomore{gap:8px;text-align:center;font-size:16px;padding:16px 0;display:flex;align-items:center;justify-content:center;color:var(--matchid-secondary-grey)}@media screen and (max-width: 768px){.matchid-list-nomore{font-size:14px}}.matchid-flex{display:flex}.matchid-import-token-result{display:flex;flex:1;flex-direction:column;padding-bottom:100px;gap:24px;justify-content:space-between}@media screen and (max-width: 768px){.matchid-import-token-result{padding-bottom:0;gap:115px}}.matchid-import-token-result .matchid-import-token-result-box{display:flex;flex-direction:column;gap:48px;align-items:center}@media screen and (max-width: 768px){.matchid-import-token-result .matchid-import-token-result-box{gap:24px}}.matchid-import-token-result .matchid-import-token-result-box .matchid-import-token-result-img{width:96px;height:96px}.matchid-import-token-result .matchid-import-token-result-box .matchid-import-token-result-text{font-size:24px;font-weight:500;color:var(--matchid-success)}@media screen and (max-width: 768px){.matchid-import-token-result .matchid-import-token-result-box .matchid-import-token-result-text{font-size:18px}}.matchid-import-token-result .matchid-import-token-result-box .matchid-import-token-result-text-fail{color:var(--matchid-error)}.matchid-error{color:var(--matchid-red-600)}.matchid-skeleton{background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0,#f0f0f0 75%);background-size:200% 100%;animation:matchid-loading 1.5s infinite}@keyframes matchid-loading{0%{background-position:200% 0}to{background-position:-200% 0}}.matchid-contact-item{justify-content:space-between;align-items:center;padding:8px 16px}@media screen and (max-width: 768px){.matchid-contact-item{padding:6px 12px}}.matchid-contact-item .matchid-contact-item-content{height:48px;display:flex;gap:16px;align-items:center}@media screen and (max-width: 768px){.matchid-contact-item .matchid-contact-item-content{height:36px}}.matchid-contact-item .matchid-contact-item-content .matchid-contact-item-avatar{width:48px;height:48px;border-radius:50%}@media screen and (max-width: 768px){.matchid-contact-item .matchid-contact-item-content .matchid-contact-item-avatar{height:36px;width:36px}}.matchid-contact-item .matchid-contact-item-content .matchid-contact-item-info{display:flex;flex-direction:column;justify-content:space-between;height:100%}.matchid-contact-item .matchid-contact-item-content .matchid-contact-item-info .matchid-contact-item-name{font-size:18px;font-weight:500;color:var(--matchid-black)}@media screen and (max-width: 768px){.matchid-contact-item .matchid-contact-item-content .matchid-contact-item-info .matchid-contact-item-name{font-size:14px}}.matchid-contact-item .matchid-contact-item-content .matchid-contact-item-info .matchid-contact-item-address{font-size:14px;color:var(--matchid-secondary-grey)}@media screen and (max-width: 768px){.matchid-contact-item .matchid-contact-item-content .matchid-contact-item-info .matchid-contact-item-address{font-size:12px}}.matchid-nomore{display:flex;justify-content:center;align-items:center;font-weight:500;font-size:16px;color:var(--matchid-secondary-grey);padding:20px 0}@media screen and (max-width: 768px){.matchid-nomore{font-size:14px}}.matchid-tabs{gap:36px;align-items:start;display:flex}.matchid-tab{color:var(--matchid-tab-color);font-weight:500;font-size:20px;cursor:pointer}@media screen and (max-width: 768px){.matchid-tab{font-size:14px;padding:10px 0}}.matchid-tab.matchid-tab-active{color:var(--matchid-tab-active-color);border-bottom:2px solid var(--matchid-tab-active-color)}.matchid-cursor-pointer{cursor:pointer}.matchid-remove-box{padding:0 20px}