@dcl/auth-site 4.11.11 → 4.11.12-22855918982.commit-5dfc9bd

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 (106) hide show
  1. package/assets/{ConstantsUtil-D3QsRgap.js → ConstantsUtil-Cc85WUaz.js} +1 -1
  2. package/assets/{ContentfulRichText--iOdJkO8.js → ContentfulRichText-Poe31pj7.js} +1 -1
  3. package/assets/{ExchangeController-VUHkDitu.js → ExchangeController-Dku4Zma1.js} +1 -1
  4. package/assets/{HelpersUtil-CsV2w3Yp.js → HelpersUtil-B_KMMVjr.js} +1 -1
  5. package/assets/{NetworkUtil-D24oSe7J.js → NetworkUtil-BSRRSmxE.js} +1 -1
  6. package/assets/{SwapController-DobJ5D-c.js → SwapController-Kd0hJCxG.js} +1 -1
  7. package/assets/{biconomy-_fQ21HwB.js → biconomy-BLrDB4Jg.js} +1 -1
  8. package/assets/{browser-Bv-yrFF6.js → browser-DRacv6Si.js} +1 -1
  9. package/assets/{ccip-DTFSJCKB.js → ccip-W10JJnl_.js} +1 -1
  10. package/assets/{chains-XDVrQvBd.js → chains-BA1sNu8D.js} +1 -1
  11. package/assets/{common-BENVDc6J.js → common-DKQa0RlQ.js} +1 -1
  12. package/assets/{controller-y5NzKcm4.js → controller-DlBHZJHL.js} +2 -2
  13. package/assets/{data-capture-D2K1XjXj.js → data-capture-DtSr6W-1.js} +1 -1
  14. package/assets/{email-BnyukO1H.js → email-20b6wPvt.js} +1 -1
  15. package/assets/{embedded-wallet-nUnF2Hvg.js → embedded-wallet-BvMmn0r6.js} +1 -1
  16. package/assets/{engine-CtCBjBdZ.js → engine-iieruSbi.js} +1 -1
  17. package/assets/{estimate-l1-fee-DKWjsmCt.js → estimate-l1-fee-B6L0ZKEy.js} +1 -1
  18. package/assets/{ethereum-B9Mm48sJ.js → ethereum-C613DDL2.js} +1 -1
  19. package/assets/{extractIPFS-DUmtEOCb.js → extractIPFS-CuSjedIt.js} +1 -1
  20. package/assets/{features-Z0YpbZL6.js → features-B2wB_4ng.js} +1 -1
  21. package/assets/{fetchTokenMetadata-BvwVLOLB.js → fetchTokenMetadata-C4BSX1ph.js} +1 -1
  22. package/assets/{fortmatic-DlnBcbIV.js → fortmatic-Bcj1Xdvw.js} +1 -1
  23. package/assets/{get-ecosystem-wallet-info-DIxJP8p2.js → get-ecosystem-wallet-info-B5GL1L9m.js} +1 -1
  24. package/assets/{getBalance-BFqCN5Vs.js → getBalance-BUsWmDRi.js} +1 -1
  25. package/assets/{getInstalledModules-xsyd9etN.js → getInstalledModules-NvG6gCoQ.js} +1 -1
  26. package/assets/{getNFT-baCTJPyv.js → getNFT-CviKXrE5.js} +2 -2
  27. package/assets/{getNFT-CtlNb0Qf.js → getNFT-Jk8MMJAx.js} +1 -1
  28. package/assets/{if-defined-D284evvS.js → if-defined-E1X-0YiO.js} +1 -1
  29. package/assets/{in-app-wallet-calls-B3vGPeSC.js → in-app-wallet-calls-B_Fcxefa.js} +1 -1
  30. package/assets/{index-CSd5QcKs.js → index-BBS2Spe6.js} +1 -1
  31. package/assets/{index-CtsLP11i.js → index-BCcjB7nu.js} +1 -1
  32. package/assets/{index-C3ss5Kzc.js → index-BDILszxA.js} +1 -1
  33. package/assets/{index-ByqAXDvZ.js → index-BF9gSths.js} +16 -16
  34. package/assets/{index-Brhk2jgR.js → index-BNj0ZSDO.js} +1 -1
  35. package/assets/{index-B6GcRiHK.js → index-BTL42-0n.js} +1 -1
  36. package/assets/{index-BwTnyUMy.js → index-BbNoVDub.js} +1 -1
  37. package/assets/{index-BrIhxe0W.js → index-C2VWruzt.js} +1 -1
  38. package/assets/{index-CE05se_8.js → index-C3qlStKV.js} +1 -1
  39. package/assets/{index-CyiQN3qn.js → index-CFT-9eck.js} +1 -1
  40. package/assets/{index-CUeyaI5M.js → index-CNQ-cSGr.js} +1 -1
  41. package/assets/{index-B7X9Ubyo.js → index-Ccouvg5Y.js} +1 -1
  42. package/assets/{index-Bgo4X8fW.js → index-Ceqm4e1s.js} +1 -1
  43. package/assets/{index-CQ7nC1Je.js → index-Cojsrgmk.js} +1 -1
  44. package/assets/{index-DLbtIBOT.js → index-CsRmbcmW.js} +1 -1
  45. package/assets/{index-CXuZLA2Q.js → index-CwfYVmjI.js} +1 -1
  46. package/assets/{index-j_n4jgnR.js → index-D810dAsA.js} +1 -1
  47. package/assets/{index-DBoxhLTH.js → index-D9UKX3gZ.js} +1 -1
  48. package/assets/{index-DBIdKfru.js → index-DDzTXZS8.js} +1 -1
  49. package/assets/{index-D5RHT_U4.js → index-DGBWVTKD.js} +1 -1
  50. package/assets/index-DLcr1Z60.css +1 -0
  51. package/assets/{index-CeMH1gHC.js → index-DYzuu4om.js} +1 -1
  52. package/assets/{index-HqmzwZvc.js → index-DZAhPNNC.js} +1 -1
  53. package/assets/{index-C3Gs3Dax.js → index-D_I4aFPP.js} +1 -1
  54. package/assets/{index-feJuBGjf.js → index-De6snsrr.js} +1 -1
  55. package/assets/{index-JUNjsDHb.js → index-DeZbTjwo.js} +1 -1
  56. package/assets/{index-iJ6Z56i5.js → index-Deh1hlc3.js} +1 -1
  57. package/assets/{index-BqpWkJtG.js → index-DfgeOpAA.js} +1 -1
  58. package/assets/{index-AzjER4--.js → index-DgJqsREB.js} +1 -1
  59. package/assets/{index-D0CTr0kU.js → index-DlR22bER.js} +1 -1
  60. package/assets/{index-Biv3dzAQ.js → index-DpEqvEh4.js} +1 -1
  61. package/assets/{index-DaVFqb0O.js → index-DsmovXUY.js} +1 -1
  62. package/assets/{index-DFLIfXLs.js → index-Dt7dwvkF.js} +1 -1
  63. package/assets/{index-_YXPAdO8.js → index-Dv81SMWQ.js} +2 -2
  64. package/assets/{index-DUr2EdO0.js → index-Dyc_IBE7.js} +1 -1
  65. package/assets/{index-wcrdFAnd.js → index-DzwYpCce.js} +1 -1
  66. package/assets/{index-B2N7IkhF.js → index-OR7LMJul.js} +1 -1
  67. package/assets/{index-BOPhi1xA.js → index-RlJ1WIvd.js} +1 -1
  68. package/assets/{index-CWH0_rHs.js → index-S2gt9EEt.js} +1 -1
  69. package/assets/{index-qF_BdowC.js → index-gtwAtUcJ.js} +1 -1
  70. package/assets/{index-0D6ZH5aI.js → index-mWuwNha7.js} +1 -1
  71. package/assets/{index-BjfLHLwh.js → index-q9DdsvPi.js} +4 -4
  72. package/assets/{index-Dx930Xll.js → index-rr1a1xCA.js} +1 -1
  73. package/assets/{index-C4g2fpiS.js → index-zsS54Yyu.js} +1 -1
  74. package/assets/{index.es-BgqMoI9h.js → index.es-BUiWl20_.js} +1 -1
  75. package/assets/{index.es-D403wepN.js → index.es-BjuCuRLi.js} +1 -1
  76. package/assets/{index.es-BOP0CvJx.js → index.es-jL36pQb1.js} +1 -1
  77. package/assets/{native-DH6ZJuoT.js → native-h0YmCkJ2.js} +1 -1
  78. package/assets/{networks-DIIxkuvw.js → networks-CCnc2tVW.js} +1 -1
  79. package/assets/{onramp-CbafJ9Op.js → onramp-DDzYpL9a.js} +1 -1
  80. package/assets/{openzeppelin-CkrqBpyW.js → openzeppelin-BX9BLSCY.js} +1 -1
  81. package/assets/{ownerOf-By-YErHe.js → ownerOf-CTcuneME.js} +1 -1
  82. package/assets/{parseNft-B-fpo01f.js → parseNft-BFcpGzLm.js} +2 -2
  83. package/assets/{pay-with-exchange-DPwbnhxh.js → pay-with-exchange-Bx4XCdQT.js} +1 -1
  84. package/assets/{qr-overlay-DLzWlPsc.js → qr-overlay-Bjt1kWLA.js} +3 -3
  85. package/assets/{receive-BFmO-MfI.js → receive-0gKWohJu.js} +1 -1
  86. package/assets/{ref-CtuPZz3y.js → ref-Cy_riVe4.js} +1 -1
  87. package/assets/{resolveImplementation-CCKPfOZe.js → resolveImplementation-BlkTsCFl.js} +1 -1
  88. package/assets/{secp256k1-Dsd1bb8J.js → secp256k1-DXBXq1X9.js} +1 -1
  89. package/assets/{send-BWF7-ndg.js → send-BDA_cjrF.js} +1 -1
  90. package/assets/{send-eip712-transaction-DP2rLxcI.js → send-eip712-transaction-Bwvs_tda.js} +1 -1
  91. package/assets/{send-gasless-transaction-HrWxk7_o.js → send-gasless-transaction-BZtx0uLI.js} +2 -2
  92. package/assets/{session-proposal-DyJVdTz_.js → session-proposal-9uwHYhrj.js} +1 -1
  93. package/assets/{session-request-lL0noinw.js → session-request-BErHLxM8.js} +2 -2
  94. package/assets/{socials-CrpkoARx.js → socials-_7ITV4pr.js} +1 -1
  95. package/assets/{swaps-C2nzZYxA.js → swaps-0Wevyk1A.js} +1 -1
  96. package/assets/{thirdweb-lG7bW9r5.js → thirdweb-CWqqA_3h.js} +5 -5
  97. package/assets/{totalSupply-BEGohDUi.js → totalSupply-DZ-glv_-.js} +1 -1
  98. package/assets/{transactions-CzyPYYlU.js → transactions-CmjYGbuF.js} +1 -1
  99. package/assets/{ui-DLR4g_7n.js → ui-BMD2KUgH.js} +5 -5
  100. package/assets/{vendor-blQidjJ7.js → vendor-D8Nq9R50.js} +1 -1
  101. package/assets/{w3m-modal-HHsegtFR.js → w3m-modal-Bein49WL.js} +1 -1
  102. package/assets/{wallets-BiOigN6m.js → wallets-D5McVq9y.js} +5 -5
  103. package/assets/{web-connector-DbjTqaJW.js → web-connector-BU8ZXCZt.js} +3 -3
  104. package/index.html +5 -5
  105. package/package.json +3 -3
  106. package/assets/index-DSn7J16B.css +0 -1
@@ -1,4 +1,4 @@
1
- import{a as Nt,p as Js,cf as ml,g as _l}from"./thirdweb-lG7bW9r5.js";import{b as ir,B as q,e as bl,f as yl,h as vl,i as wl,l as El,m as Rl,n as Sl,o as Cl,p as pu,t as kl}from"./ui-DLR4g_7n.js";import{a as Il}from"./clsx.m-DHulAg21.js";function Al(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const c in n)if(c!=="default"&&!(c in e)){const o=Object.getOwnPropertyDescriptor(n,c);o&&Object.defineProperty(e,c,o.get?o:{enumerable:!0,get:()=>n[c]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var fn={},$e={},Je={},Qi;function Ll(){if(Qi)return Je;Qi=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.walletLogo=void 0;const e=(t,r)=>{let n;switch(t){case"standard":return n=r,`data:image/svg+xml,%3Csvg width='${r}' height='${n}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return n=r,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${r}' height='${n}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return n=(.1*r).toFixed(2),`data:image/svg+xml,%3Csvg width='${r}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return n=(.25*r).toFixed(2),`data:image/svg+xml,%3Csvg width='${r}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return n=(.1*r).toFixed(2),`data:image/svg+xml,%3Csvg width='${r}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return n=(.25*r).toFixed(2),`data:image/svg+xml,%3Csvg width='${r}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;default:return n=r,`data:image/svg+xml,%3Csvg width='${r}' height='${n}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `}};return Je.walletLogo=e,Je}var Ge={},Ki;function Ml(){return Ki||(Ki=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.LINK_API_URL=void 0,Ge.LINK_API_URL="https://www.walletlink.org"),Ge}var x={},gn={},me={},Xi;function or(){return Xi||(Xi=1,Object.defineProperty(me,"__esModule",{value:!0}),me.errorValues=me.standardErrorCodes=void 0,me.standardErrorCodes={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}},me.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}}),me}var Ze={},pn={},Yi;function ri(){return Yi||(Yi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serialize=e.getErrorCode=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=or(),r="Unspecified error message.";e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function n(l,i=r){if(l&&Number.isInteger(l)){const p=l.toString();if(h(t.errorValues,p))return t.errorValues[p].message;if(g(l))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return i}e.getMessageFromCode=n;function c(l){if(!Number.isInteger(l))return!1;const i=l.toString();return!!(t.errorValues[i]||g(l))}e.isValidCode=c;function o(l){var i;if(typeof l=="number")return l;if(a(l))return(i=l.code)!==null&&i!==void 0?i:l.errorCode}e.getErrorCode=o;function a(l){return typeof l=="object"&&l!==null&&(typeof l.code=="number"||typeof l.errorCode=="number")}function f(l,{shouldIncludeStack:i=!1}={}){const p={};if(l&&typeof l=="object"&&!Array.isArray(l)&&h(l,"code")&&c(l.code)){const m=l;p.code=m.code,m.message&&typeof m.message=="string"?(p.message=m.message,h(m,"data")&&(p.data=m.data)):(p.message=n(p.code),p.data={originalError:u(l)})}else p.code=t.standardErrorCodes.rpc.internal,p.message=s(l,"message")?l.message:r,p.data={originalError:u(l)};return i&&(p.stack=s(l,"stack")?l.stack:void 0),p}e.serialize=f;function g(l){return l>=-32099&&l<=-32e3}function u(l){return l&&typeof l=="object"&&!Array.isArray(l)?Object.assign({},l):l}function h(l,i){return Object.prototype.hasOwnProperty.call(l,i)}function s(l,i){return typeof l=="object"&&l!==null&&i in l&&typeof l[i]=="string"}}(pn)),pn}var eo;function Nl(){if(eo)return Ze;eo=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.standardErrors=void 0;const e=or(),t=ri();Ze.standardErrors={rpc:{parse:g=>r(e.standardErrorCodes.rpc.parse,g),invalidRequest:g=>r(e.standardErrorCodes.rpc.invalidRequest,g),invalidParams:g=>r(e.standardErrorCodes.rpc.invalidParams,g),methodNotFound:g=>r(e.standardErrorCodes.rpc.methodNotFound,g),internal:g=>r(e.standardErrorCodes.rpc.internal,g),server:g=>{if(!g||typeof g!="object"||Array.isArray(g))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:u}=g;if(!Number.isInteger(u)||u>-32005||u<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return r(u,g)},invalidInput:g=>r(e.standardErrorCodes.rpc.invalidInput,g),resourceNotFound:g=>r(e.standardErrorCodes.rpc.resourceNotFound,g),resourceUnavailable:g=>r(e.standardErrorCodes.rpc.resourceUnavailable,g),transactionRejected:g=>r(e.standardErrorCodes.rpc.transactionRejected,g),methodNotSupported:g=>r(e.standardErrorCodes.rpc.methodNotSupported,g),limitExceeded:g=>r(e.standardErrorCodes.rpc.limitExceeded,g)},provider:{userRejectedRequest:g=>n(e.standardErrorCodes.provider.userRejectedRequest,g),unauthorized:g=>n(e.standardErrorCodes.provider.unauthorized,g),unsupportedMethod:g=>n(e.standardErrorCodes.provider.unsupportedMethod,g),disconnected:g=>n(e.standardErrorCodes.provider.disconnected,g),chainDisconnected:g=>n(e.standardErrorCodes.provider.chainDisconnected,g),unsupportedChain:g=>n(e.standardErrorCodes.provider.unsupportedChain,g),custom:g=>{if(!g||typeof g!="object"||Array.isArray(g))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:u,message:h,data:s}=g;if(!h||typeof h!="string")throw new Error('"message" must be a nonempty string');return new a(u,h,s)}}};function r(g,u){const[h,s]=c(u);return new o(g,h||(0,t.getMessageFromCode)(g),s)}function n(g,u){const[h,s]=c(u);return new a(g,h||(0,t.getMessageFromCode)(g),s)}function c(g){if(g){if(typeof g=="string")return[g];if(typeof g=="object"&&!Array.isArray(g)){const{message:u,data:h}=g;if(u&&typeof u!="string")throw new Error("Must specify string message.");return[u||void 0,h]}}return[]}class o extends Error{constructor(u,h,s){if(!Number.isInteger(u))throw new Error('"code" must be an integer.');if(!h||typeof h!="string")throw new Error('"message" must be a nonempty string.');super(h),this.code=u,s!==void 0&&(this.data=s)}}class a extends o{constructor(u,h,s){if(!f(u))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(u,h,s)}}function f(g){return Number.isInteger(g)&&g>=1e3&&g<=4999}return Ze}var Qe={},Ke={},to;function ni(){if(to)return Ke;to=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.isErrorResponse=void 0;function e(t){return t.errorMessage!==void 0}return Ke.isErrorResponse=e,Ke}var Xe={},ro;function si(){return ro||(ro=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.LIB_VERSION=void 0,Xe.LIB_VERSION="3.9.3"),Xe}var no;function Tl(){if(no)return Qe;no=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.serializeError=void 0;const e=ni(),t=si(),r=or(),n=ri();function c(f,g){const u=(0,n.serialize)(o(f),{shouldIncludeStack:!0}),h=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");h.searchParams.set("version",t.LIB_VERSION),h.searchParams.set("code",u.code.toString());const s=a(u.data,g);return s&&h.searchParams.set("method",s),h.searchParams.set("message",u.message),Object.assign(Object.assign({},u),{docUrl:h.href})}Qe.serializeError=c;function o(f){return typeof f=="string"?{message:f,code:r.standardErrorCodes.rpc.internal}:(0,e.isErrorResponse)(f)?Object.assign(Object.assign({},f),{message:f.errorMessage,code:f.errorCode,data:{method:f.method}}):f}function a(f,g){const u=f==null?void 0:f.method;if(u)return u;if(g!==void 0){if(typeof g=="string")return g;if(Array.isArray(g)){if(g.length>0)return g[0].method}else return g.method}}return Qe}var so;function ar(){return so||(so=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.standardErrors=e.standardErrorCodes=e.serializeError=e.getMessageFromCode=e.getErrorCode=void 0;const t=or();Object.defineProperty(e,"standardErrorCodes",{enumerable:!0,get:function(){return t.standardErrorCodes}});const r=Nl();Object.defineProperty(e,"standardErrors",{enumerable:!0,get:function(){return r.standardErrors}});const n=Tl();Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return n.serializeError}});const c=ri();Object.defineProperty(e,"getErrorCode",{enumerable:!0,get:function(){return c.getErrorCode}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return c.getMessageFromCode}})}(gn)),gn}var Q={},io;function cr(){if(io)return Q;io=1,Object.defineProperty(Q,"__esModule",{value:!0}),Q.ProviderType=Q.RegExpString=Q.IntNumber=Q.BigIntString=Q.AddressString=Q.HexString=Q.OpaqueType=void 0;function e(){return n=>n}Q.OpaqueType=e,Q.HexString=e(),Q.AddressString=e(),Q.BigIntString=e();function t(n){return Math.floor(n)}Q.IntNumber=t,Q.RegExpString=e();var r;return function(n){n.CoinbaseWallet="CoinbaseWallet",n.MetaMask="MetaMask",n.Unselected=""}(r||(Q.ProviderType=r={})),Q}var oo;function fe(){if(oo)return x;oo=1;var e=x&&x.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(x,"__esModule",{value:!0}),x.isMobileWeb=x.getLocation=x.isInIFrame=x.createQrUrl=x.getFavicon=x.range=x.isBigNumber=x.ensureParsedJSONObject=x.ensureBN=x.ensureRegExpString=x.ensureIntNumber=x.ensureBuffer=x.ensureAddressString=x.ensureEvenLengthHexString=x.ensureHexString=x.isHexString=x.prepend0x=x.strip0x=x.has0xPrefix=x.hexStringFromIntNumber=x.intNumberFromHexString=x.bigIntStringFromBN=x.hexStringFromBuffer=x.hexStringToUint8Array=x.uint8ArrayToHex=x.randomBytesHex=void 0;const t=e(ir()),r=ar(),n=cr(),c=/^[0-9]*$/,o=/^[a-f0-9]*$/;function a(R){return f(crypto.getRandomValues(new Uint8Array(R)))}x.randomBytesHex=a;function f(R){return[...R].map(I=>I.toString(16).padStart(2,"0")).join("")}x.uint8ArrayToHex=f;function g(R){return new Uint8Array(R.match(/.{1,2}/g).map(I=>parseInt(I,16)))}x.hexStringToUint8Array=g;function u(R,I=!1){const M=R.toString("hex");return(0,n.HexString)(I?`0x${M}`:M)}x.hexStringFromBuffer=u;function h(R){return(0,n.BigIntString)(R.toString(10))}x.bigIntStringFromBN=h;function s(R){return(0,n.IntNumber)(new t.default(b(R,!1),16).toNumber())}x.intNumberFromHexString=s;function l(R){return(0,n.HexString)(`0x${new t.default(R).toString(16)}`)}x.hexStringFromIntNumber=l;function i(R){return R.startsWith("0x")||R.startsWith("0X")}x.has0xPrefix=i;function p(R){return i(R)?R.slice(2):R}x.strip0x=p;function m(R){return i(R)?`0x${R.slice(2)}`:`0x${R}`}x.prepend0x=m;function _(R){if(typeof R!="string")return!1;const I=p(R).toLowerCase();return o.test(I)}x.isHexString=_;function d(R,I=!1){if(typeof R=="string"){const M=p(R).toLowerCase();if(o.test(M))return(0,n.HexString)(I?`0x${M}`:M)}throw r.standardErrors.rpc.invalidParams(`"${String(R)}" is not a hexadecimal string`)}x.ensureHexString=d;function b(R,I=!1){let M=d(R,!1);return M.length%2===1&&(M=(0,n.HexString)(`0${M}`)),I?(0,n.HexString)(`0x${M}`):M}x.ensureEvenLengthHexString=b;function y(R){if(typeof R=="string"){const I=p(R).toLowerCase();if(_(I)&&I.length===40)return(0,n.AddressString)(m(I))}throw r.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(R)}`)}x.ensureAddressString=y;function v(R){if(q.isBuffer(R))return R;if(typeof R=="string"){if(_(R)){const I=b(R,!1);return q.from(I,"hex")}return q.from(R,"utf8")}throw r.standardErrors.rpc.invalidParams(`Not binary data: ${String(R)}`)}x.ensureBuffer=v;function w(R){if(typeof R=="number"&&Number.isInteger(R))return(0,n.IntNumber)(R);if(typeof R=="string"){if(c.test(R))return(0,n.IntNumber)(Number(R));if(_(R))return(0,n.IntNumber)(new t.default(b(R,!1),16).toNumber())}throw r.standardErrors.rpc.invalidParams(`Not an integer: ${String(R)}`)}x.ensureIntNumber=w;function S(R){if(R instanceof RegExp)return(0,n.RegExpString)(R.toString());throw r.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(R)}`)}x.ensureRegExpString=S;function E(R){if(R!==null&&(t.default.isBN(R)||T(R)))return new t.default(R.toString(10),10);if(typeof R=="number")return new t.default(w(R));if(typeof R=="string"){if(c.test(R))return new t.default(R,10);if(_(R))return new t.default(b(R,!1),16)}throw r.standardErrors.rpc.invalidParams(`Not an integer: ${String(R)}`)}x.ensureBN=E;function C(R){if(typeof R=="string")return JSON.parse(R);if(typeof R=="object")return R;throw r.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(R)}`)}x.ensureParsedJSONObject=C;function T(R){if(R==null||typeof R.constructor!="function")return!1;const{constructor:I}=R;return typeof I.config=="function"&&typeof I.EUCLID=="number"}x.isBigNumber=T;function N(R,I){return Array.from({length:I-R},(M,L)=>R+L)}x.range=N;function P(){const R=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:I,host:M}=document.location,L=R?R.getAttribute("href"):null;return!L||L.startsWith("javascript:")||L.startsWith("vbscript:")?null:L.startsWith("http://")||L.startsWith("https://")||L.startsWith("data:")?L:L.startsWith("//")?I+L:`${I}//${M}${L}`}x.getFavicon=P;function F(R,I,M,L,O,j){const B=L?"parent-id":"id",H=new URLSearchParams({[B]:R,secret:I,server:M,v:O,chainId:j.toString()}).toString();return`${M}/#/link?${H}`}x.createQrUrl=F;function z(){try{return window.frameElement!==null}catch{return!1}}x.isInIFrame=z;function A(){try{return z()&&window.top?window.top.location:window.location}catch{return window.location}}x.getLocation=A;function k(){var R;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((R=window==null?void 0:window.navigator)===null||R===void 0?void 0:R.userAgent)}return x.isMobileWeb=k,x}var Ye={},ao;function Pl(){if(ao)return Ye;ao=1,Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.ScopedLocalStorage=void 0;let e=class{constructor(r){this.scope=r}setItem(r,n){localStorage.setItem(this.scopedKey(r),n)}getItem(r){return localStorage.getItem(this.scopedKey(r))}removeItem(r){localStorage.removeItem(this.scopedKey(r))}clear(){const r=this.scopedKey(""),n=[];for(let c=0;c<localStorage.length;c++){const o=localStorage.key(c);typeof o=="string"&&o.startsWith(r)&&n.push(o)}n.forEach(c=>localStorage.removeItem(c))}scopedKey(r){return`${this.scope}:${r}`}};return Ye.ScopedLocalStorage=e,Ye}var _e={},et={},tt={},rt={},co;function ii(){return co||(co=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.EVENTS=void 0,rt.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",METHOD_NOT_IMPLEMENTED:"walletlink_sdk.method_not_implemented",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}),rt}var re={},uo;function oi(){if(uo)return re;uo=1,Object.defineProperty(re,"__esModule",{value:!0}),re.RelayAbstract=re.APP_VERSION_KEY=re.LOCAL_STORAGE_ADDRESSES_KEY=re.WALLET_USER_NAME_KEY=void 0;const e=ar();re.WALLET_USER_NAME_KEY="walletUsername",re.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",re.APP_VERSION_KEY="AppVersion";let t=class{async makeEthereumJSONRPCRequest(n,c){if(!c)throw new Error("Error: No jsonRpcUrl provided");return window.fetch(c,{method:"POST",body:JSON.stringify(n),mode:"cors",headers:{"Content-Type":"application/json"}}).then(o=>o.json()).then(o=>{if(!o)throw e.standardErrors.rpc.parse({});const a=o,{error:f}=a;if(f)throw(0,e.serializeError)(f,n.method);return a})}};return re.RelayAbstract=t,re}var nt={},lo;function ai(){if(lo)return nt;lo=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.Session=void 0;const e=bl(),t=fe(),r="session:id",n="session:secret",c="session:linked";let o=class mu{constructor(f,g,u,h){this._storage=f,this._id=g||(0,t.randomBytesHex)(16),this._secret=u||(0,t.randomBytesHex)(32),this._key=new e.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!h}static load(f){const g=f.getItem(r),u=f.getItem(c),h=f.getItem(n);return g&&h?new mu(f,g,h,u==="1"):null}static hash(f){return new e.sha256().update(f).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(f){this._linked=f,this.persistLinked()}save(){return this._storage.setItem(r,this._id),this._storage.setItem(n,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(c,this._linked?"1":"0")}};return nt.Session=o,nt}var st={},it={},ho;function Ol(){if(ho)return it;ho=1,Object.defineProperty(it,"__esModule",{value:!0}),it.Cipher=void 0;const e=fe();let t=class{constructor(n){this.secret=n}async encrypt(n){const c=this.secret;if(c.length!==64)throw Error("secret must be 256 bits");const o=crypto.getRandomValues(new Uint8Array(12)),a=await crypto.subtle.importKey("raw",(0,e.hexStringToUint8Array)(c),{name:"aes-gcm"},!1,["encrypt","decrypt"]),f=new TextEncoder,g=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:o},a,f.encode(n)),u=16,h=g.slice(g.byteLength-u),s=g.slice(0,g.byteLength-u),l=new Uint8Array(h),i=new Uint8Array(s),p=new Uint8Array([...o,...l,...i]);return(0,e.uint8ArrayToHex)(p)}async decrypt(n){const c=this.secret;if(c.length!==64)throw Error("secret must be 256 bits");return new Promise((o,a)=>{(async function(){const f=await crypto.subtle.importKey("raw",(0,e.hexStringToUint8Array)(c),{name:"aes-gcm"},!1,["encrypt","decrypt"]),g=(0,e.hexStringToUint8Array)(n),u=g.slice(0,12),h=g.slice(12,28),s=g.slice(28),l=new Uint8Array([...s,...h]),i={name:"AES-GCM",iv:new Uint8Array(u)};try{const p=await window.crypto.subtle.decrypt(i,f,l),m=new TextDecoder;o(m.decode(p))}catch(p){a(p)}})()})}};return it.Cipher=t,it}var ot={},fo;function xl(){if(fo)return ot;fo=1,Object.defineProperty(ot,"__esModule",{value:!0}),ot.WalletLinkHTTP=void 0;let e=class{constructor(r,n,c){this.linkAPIUrl=r,this.sessionId=n;const o=`${n}:${c}`;this.auth=`Basic ${btoa(o)}`}async markUnseenEventsAsSeen(r){return Promise.all(r.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 r;const n=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(n.ok){const{events:c,error:o}=await n.json();if(o)throw new Error(`Check unseen events failed: ${o}`);const a=(r=c==null?void 0:c.filter(f=>f.event==="Web3Response").map(f=>({type:"Event",sessionId:this.sessionId,eventId:f.id,event:f.event,data:f.data})))!==null&&r!==void 0?r:[];return this.markUnseenEventsAsSeen(a),a}throw new Error(`Check unseen events failed: ${n.status}`)}};return ot.WalletLinkHTTP=e,ot}var be={},go;function Fl(){if(go)return be;go=1,Object.defineProperty(be,"__esModule",{value:!0}),be.WalletLinkWebSocket=be.ConnectionState=void 0;var e;(function(r){r[r.DISCONNECTED=0]="DISCONNECTED",r[r.CONNECTING=1]="CONNECTING",r[r.CONNECTED=2]="CONNECTED"})(e||(be.ConnectionState=e={}));let t=class{setConnectionStateListener(n){this.connectionStateListener=n}setIncomingDataListener(n){this.incomingDataListener=n}constructor(n,c=WebSocket){this.WebSocketClass=c,this.webSocket=null,this.pendingData=[],this.url=n.replace(/^http/,"ws")}async connect(){if(this.webSocket)throw new Error("webSocket object is not null");return new Promise((n,c)=>{var o;let a;try{this.webSocket=a=new this.WebSocketClass(this.url)}catch(f){c(f);return}(o=this.connectionStateListener)===null||o===void 0||o.call(this,e.CONNECTING),a.onclose=f=>{var g;this.clearWebSocket(),c(new Error(`websocket error ${f.code}: ${f.reason}`)),(g=this.connectionStateListener)===null||g===void 0||g.call(this,e.DISCONNECTED)},a.onopen=f=>{var g;n(),(g=this.connectionStateListener)===null||g===void 0||g.call(this,e.CONNECTED),this.pendingData.length>0&&([...this.pendingData].forEach(h=>this.sendData(h)),this.pendingData=[])},a.onmessage=f=>{var g,u;if(f.data==="h")(g=this.incomingDataListener)===null||g===void 0||g.call(this,{type:"Heartbeat"});else try{const h=JSON.parse(f.data);(u=this.incomingDataListener)===null||u===void 0||u.call(this,h)}catch{}}})}disconnect(){var n;const{webSocket:c}=this;if(c){this.clearWebSocket(),(n=this.connectionStateListener)===null||n===void 0||n.call(this,e.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{c.close()}catch{}}}sendData(n){const{webSocket:c}=this;if(!c){this.pendingData.push(n),this.connect();return}c.send(n)}clearWebSocket(){const{webSocket:n}=this;n&&(this.webSocket=null,n.onclose=null,n.onerror=null,n.onmessage=null,n.onopen=null)}};return be.WalletLinkWebSocket=t,be}var po;function Bl(){if(po)return st;po=1,Object.defineProperty(st,"__esModule",{value:!0}),st.WalletLinkConnection=void 0;const e=cr(),t=Ol(),r=ii(),n=oi(),c=ai(),o=xl(),a=Fl(),f=1e4,g=6e4;let u=class{constructor({session:s,linkAPIUrl:l,listener:i,diagnostic:p,WebSocketClass:m=WebSocket}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,e.IntNumber)(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=d=>{if(!d)return;new Map([["__destroyed",this.handleDestroyed],["EthereumAddress",this.handleAccountUpdated],["WalletUsername",this.handleWalletUsernameUpdated],["AppVersion",this.handleAppVersionUpdated],["ChainId",y=>d.JsonRpcUrl&&this.handleChainUpdated(y,d.JsonRpcUrl)]]).forEach((y,v)=>{const w=d[v];w!==void 0&&y(w)})},this.handleDestroyed=d=>{var b,y;d==="1"&&((b=this.listener)===null||b===void 0||b.resetAndReload(),(y=this.diagnostic)===null||y===void 0||y.log(r.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:this.isDestroyed,sessionIdHash:c.Session.hash(this.session.id)}))},this.handleAccountUpdated=async d=>{var b,y;try{const v=await this.cipher.decrypt(d);(b=this.listener)===null||b===void 0||b.accountUpdated(v)}catch{(y=this.diagnostic)===null||y===void 0||y.log(r.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}},this.handleMetadataUpdated=async(d,b)=>{var y,v;try{const w=await this.cipher.decrypt(b);(y=this.listener)===null||y===void 0||y.metadataUpdated(d,w)}catch{(v=this.diagnostic)===null||v===void 0||v.log(r.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:d})}},this.handleWalletUsernameUpdated=async d=>{this.handleMetadataUpdated(n.WALLET_USER_NAME_KEY,d)},this.handleAppVersionUpdated=async d=>{this.handleMetadataUpdated(n.APP_VERSION_KEY,d)},this.handleChainUpdated=async(d,b)=>{var y,v;try{const w=await this.cipher.decrypt(d),S=await this.cipher.decrypt(b);(y=this.listener)===null||y===void 0||y.chainUpdated(w,S)}catch{(v=this.diagnostic)===null||v===void 0||v.log(r.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}},this.session=s,this.cipher=new t.Cipher(s.secret),this.diagnostic=p,this.listener=i;const _=new a.WalletLinkWebSocket(`${l}/rpc`,m);_.setConnectionStateListener(async d=>{var b;(b=this.diagnostic)===null||b===void 0||b.log(r.EVENTS.CONNECTED_STATE_CHANGE,{state:d,sessionIdHash:c.Session.hash(s.id)});let y=!1;switch(d){case a.ConnectionState.DISCONNECTED:if(!this.destroyed){const v=async()=>{await new Promise(w=>setTimeout(w,5e3)),this.destroyed||_.connect().catch(()=>{v()})};v()}break;case a.ConnectionState.CONNECTED:try{await this.authenticate(),this.sendIsLinked(),this.sendGetSessionConfig(),y=!0}catch{}this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},f),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();break;case a.ConnectionState.CONNECTING:break}this.connected!==y&&(this.connected=y)}),_.setIncomingDataListener(d=>{var b,y,v;switch(d.type){case"Heartbeat":this.updateLastHeartbeat();return;case"IsLinkedOK":case"Linked":{const w=d.type==="IsLinkedOK"?d.linked:void 0;(b=this.diagnostic)===null||b===void 0||b.log(r.EVENTS.LINKED,{sessionIdHash:c.Session.hash(s.id),linked:w,type:d.type,onlineGuests:d.onlineGuests}),this.linked=w||d.onlineGuests>0;break}case"GetSessionConfigOK":case"SessionConfigUpdated":{(y=this.diagnostic)===null||y===void 0||y.log(r.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:c.Session.hash(s.id),metadata_keys:d&&d.metadata?Object.keys(d.metadata):void 0}),this.handleSessionMetadataUpdated(d.metadata);break}case"Event":{this.handleIncomingEvent(d);break}}d.id!==void 0&&((v=this.requestResolutions.get(d.id))===null||v===void 0||v(d))}),this.ws=_,this.http=new o.WalletLinkHTTP(l,s.id,s.key)}connect(){var s;if(this.destroyed)throw new Error("instance is destroyed");(s=this.diagnostic)===null||s===void 0||s.log(r.EVENTS.STARTED_CONNECTING,{sessionIdHash:c.Session.hash(this.session.id)}),this.ws.connect()}destroy(){var s;this.destroyed=!0,this.ws.disconnect(),(s=this.diagnostic)===null||s===void 0||s.log(r.EVENTS.DISCONNECTED,{sessionIdHash:c.Session.hash(this.session.id)}),this.listener=void 0}get isDestroyed(){return this.destroyed}get connected(){return this._connected}set connected(s){var l,i;this._connected=s,s&&((l=this.onceConnected)===null||l===void 0||l.call(this)),(i=this.listener)===null||i===void 0||i.connectedUpdated(s)}setOnceConnected(s){return new Promise(l=>{this.connected?s().then(l):this.onceConnected=()=>{s().then(l),this.onceConnected=void 0}})}get linked(){return this._linked}set linked(s){var l,i;this._linked=s,s&&((l=this.onceLinked)===null||l===void 0||l.call(this)),(i=this.listener)===null||i===void 0||i.linkedUpdated(s)}setOnceLinked(s){return new Promise(l=>{this.linked?s().then(l):this.onceLinked=()=>{s().then(l),this.onceLinked=void 0}})}async handleIncomingEvent(s){var l,i;if(!(s.type!=="Event"||s.event!=="Web3Response"))try{const p=await this.cipher.decrypt(s.data),m=JSON.parse(p);if(m.type!=="WEB3_RESPONSE")return;(l=this.listener)===null||l===void 0||l.handleWeb3ResponseMessage(m)}catch{(i=this.diagnostic)===null||i===void 0||i.log(r.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(s=>setTimeout(s,250));try{await this.fetchUnseenEventsAPI()}catch(s){console.error("Unable to check for unseen events",s)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEach(l=>this.handleIncomingEvent(l))}async setSessionMetadata(s,l){const i={type:"SetSessionConfig",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id,metadata:{[s]:l}};return this.setOnceConnected(async()=>{const p=await this.makeRequest(i);if(p.type==="Fail")throw new Error(p.error||"failed to set session metadata")})}async publishEvent(s,l,i=!1){const p=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},l),{origin:location.origin,relaySource:window.coinbaseWalletExtension?"injected_sdk":"sdk"}))),m={type:"PublishEvent",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id,event:s,data:p,callWebhook:i};return this.setOnceLinked(async()=>{const _=await this.makeRequest(m);if(_.type==="Fail")throw new Error(_.error||"failed to publish event");return _.eventId})}sendData(s){this.ws.sendData(JSON.stringify(s))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>f*2){this.ws.disconnect();return}try{this.ws.sendData("h")}catch{}}async makeRequest(s,l=g){const i=s.id;this.sendData(s);let p;return Promise.race([new Promise((m,_)=>{p=window.setTimeout(()=>{_(new Error(`request ${i} timed out`))},l)}),new Promise(m=>{this.requestResolutions.set(i,_=>{clearTimeout(p),m(_),this.requestResolutions.delete(i)})})])}async authenticate(){const s={type:"HostSession",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key},l=await this.makeRequest(s);if(l.type==="Fail")throw new Error(l.error||"failed to authentcate")}sendIsLinked(){const s={type:"IsLinked",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(s)}sendGetSessionConfig(){const s={type:"GetSessionConfig",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(s)}};return st.WalletLinkConnection=u,st}var at={},ye={},Ut={},mo;function Dl(){return mo||(mo=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.default='@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}'),Ut}var _o;function _u(){if(_o)return ye;_o=1;var e=ye&&ye.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.injectCssReset=void 0;const t=e(Dl());function r(){const n=document.createElement("style");n.type="text/css",n.appendChild(document.createTextNode(t.default)),document.documentElement.appendChild(n)}return ye.injectCssReset=r,ye}var ct={},Tt,$,bu,yu,Be,bo,vu,wu,Eu,ci,Gs,Zs,Ru,Mt={},Su=[],ql=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Pt=Array.isArray;function ue(e,t){for(var r in t)e[r]=t[r];return e}function ui(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Qs(e,t,r){var n,c,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?c=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?Tt.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return At(e,a,n,c,null)}function At(e,t,r,n,c){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:c??++bu,__i:-1,__u:0};return c==null&&$.vnode!=null&&$.vnode(o),o}function jl(){return{current:null}}function Ot(e){return e.children}function Lt(e,t){this.props=e,this.context=t}function He(e,t){if(t==null)return e.__?He(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?He(e):null}function Cu(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Cu(e)}}function Ks(e){(!e.__d&&(e.__d=!0)&&Be.push(e)&&!sr.__r++||bo!=$.debounceRendering)&&((bo=$.debounceRendering)||vu)(sr)}function sr(){for(var e,t,r,n,c,o,a,f=1;Be.length;)Be.length>f&&Be.sort(wu),e=Be.shift(),f=Be.length,e.__d&&(r=void 0,n=void 0,c=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=ue({},n)).__v=n.__v+1,$.vnode&&$.vnode(r),li(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[c]:null,o,c??He(n),!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Lu(o,r,a),n.__e=n.__=null,r.__e!=c&&Cu(r)));sr.__r=0}function ku(e,t,r,n,c,o,a,f,g,u,h){var s,l,i,p,m,_,d,b=n&&n.__k||Su,y=t.length;for(g=Hl(r,t,b,g,y),s=0;s<y;s++)(i=r.__k[s])!=null&&(l=i.__i==-1?Mt:b[i.__i]||Mt,i.__i=s,_=li(e,i,l,c,o,a,f,g,u,h),p=i.__e,i.ref&&l.ref!=i.ref&&(l.ref&&di(l.ref,null,i),h.push(i.ref,i.__c||p,i)),m==null&&p!=null&&(m=p),(d=!!(4&i.__u))||l.__k===i.__k?g=Iu(i,g,e,d):typeof i.type=="function"&&_!==void 0?g=_:p&&(g=p.nextSibling),i.__u&=-7);return r.__e=m,g}function Hl(e,t,r,n,c){var o,a,f,g,u,h=r.length,s=h,l=0;for(e.__k=new Array(c),o=0;o<c;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?a=e.__k[o]=At(null,a,null,null,null):Pt(a)?a=e.__k[o]=At(Ot,{children:a},null,null,null):a.constructor==null&&a.__b>0?a=e.__k[o]=At(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[o]=a,g=o+l,a.__=e,a.__b=e.__b+1,(u=a.__i=Ul(a,r,g,s))!=-1&&(s--,(f=r[u])&&(f.__u|=2)),f==null||f.__v==null?(u==-1&&(c>h?l--:c<h&&l++),typeof a.type!="function"&&(a.__u|=4)):u!=g&&(u==g-1?l--:u==g+1?l++:(u>g?l--:l++,a.__u|=4))):e.__k[o]=null;if(s)for(o=0;o<h;o++)(f=r[o])!=null&&!(2&f.__u)&&(f.__e==n&&(n=He(f)),Nu(f,f));return n}function Iu(e,t,r,n){var c,o;if(typeof e.type=="function"){for(c=e.__k,o=0;c&&o<c.length;o++)c[o]&&(c[o].__=e,t=Iu(c[o],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=He(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Au(e,t){return t=t||[],e==null||typeof e=="boolean"||(Pt(e)?e.some(function(r){Au(r,t)}):t.push(e)),t}function Ul(e,t,r,n){var c,o,a,f=e.key,g=e.type,u=t[r],h=u!=null&&(2&u.__u)==0;if(u===null&&f==null||h&&f==u.key&&g==u.type)return r;if(n>(h?1:0)){for(c=r-1,o=r+1;c>=0||o<t.length;)if((u=t[a=c>=0?c--:o++])!=null&&!(2&u.__u)&&f==u.key&&g==u.type)return a}return-1}function yo(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||ql.test(t)?r:r+"px"}function Wt(e,t,r,n,c){var o,a;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||yo(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||yo(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Eu,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.u=n.u:(r.u=ci,e.addEventListener(t,o?Zs:Gs,o)):e.removeEventListener(t,o?Zs:Gs,o);else{if(c=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function vo(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=ci++;else if(t.t<r.u)return;return r($.event?$.event(t):t)}}}function li(e,t,r,n,c,o,a,f,g,u){var h,s,l,i,p,m,_,d,b,y,v,w,S,E,C,T,N,P=t.type;if(t.constructor!=null)return null;128&r.__u&&(g=!!(32&r.__u),o=[f=t.__e=r.__e]),(h=$.__b)&&h(t);e:if(typeof P=="function")try{if(d=t.props,b="prototype"in P&&P.prototype.render,y=(h=P.contextType)&&n[h.__c],v=h?y?y.props.value:h.__:n,r.__c?_=(s=t.__c=r.__c).__=s.__E:(b?t.__c=s=new P(d,v):(t.__c=s=new Lt(d,v),s.constructor=P,s.render=Vl),y&&y.sub(s),s.state||(s.state={}),s.__n=n,l=s.__d=!0,s.__h=[],s._sb=[]),b&&s.__s==null&&(s.__s=s.state),b&&P.getDerivedStateFromProps!=null&&(s.__s==s.state&&(s.__s=ue({},s.__s)),ue(s.__s,P.getDerivedStateFromProps(d,s.__s))),i=s.props,p=s.state,s.__v=t,l)b&&P.getDerivedStateFromProps==null&&s.componentWillMount!=null&&s.componentWillMount(),b&&s.componentDidMount!=null&&s.__h.push(s.componentDidMount);else{if(b&&P.getDerivedStateFromProps==null&&d!==i&&s.componentWillReceiveProps!=null&&s.componentWillReceiveProps(d,v),t.__v==r.__v||!s.__e&&s.shouldComponentUpdate!=null&&s.shouldComponentUpdate(d,s.__s,v)===!1){for(t.__v!=r.__v&&(s.props=d,s.state=s.__s,s.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(F){F&&(F.__=t)}),w=0;w<s._sb.length;w++)s.__h.push(s._sb[w]);s._sb=[],s.__h.length&&a.push(s);break e}s.componentWillUpdate!=null&&s.componentWillUpdate(d,s.__s,v),b&&s.componentDidUpdate!=null&&s.__h.push(function(){s.componentDidUpdate(i,p,m)})}if(s.context=v,s.props=d,s.__P=e,s.__e=!1,S=$.__r,E=0,b){for(s.state=s.__s,s.__d=!1,S&&S(t),h=s.render(s.props,s.state,s.context),C=0;C<s._sb.length;C++)s.__h.push(s._sb[C]);s._sb=[]}else do s.__d=!1,S&&S(t),h=s.render(s.props,s.state,s.context),s.state=s.__s;while(s.__d&&++E<25);s.state=s.__s,s.getChildContext!=null&&(n=ue(ue({},n),s.getChildContext())),b&&!l&&s.getSnapshotBeforeUpdate!=null&&(m=s.getSnapshotBeforeUpdate(i,p)),T=h,h!=null&&h.type===Ot&&h.key==null&&(T=Mu(h.props.children)),f=ku(e,Pt(T)?T:[T],t,r,n,c,o,a,f,g,u),s.base=t.__e,t.__u&=-161,s.__h.length&&a.push(s),_&&(s.__E=s.__=null)}catch(F){if(t.__v=null,g||o!=null)if(F.then){for(t.__u|=g?160:128;f&&f.nodeType==8&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,t.__e=f}else{for(N=o.length;N--;)ui(o[N]);Xs(t)}else t.__e=r.__e,t.__k=r.__k,F.then||Xs(t);$.__e(F,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):f=t.__e=Wl(r.__e,t,r,n,c,o,a,g,u);return(h=$.diffed)&&h(t),128&t.__u?void 0:f}function Xs(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(Xs)}function Lu(e,t,r){for(var n=0;n<r.length;n++)di(r[n],r[++n],r[++n]);$.__c&&$.__c(t,e),e.some(function(c){try{e=c.__h,c.__h=[],e.some(function(o){o.call(c)})}catch(o){$.__e(o,c.__v)}})}function Mu(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Pt(e)?e.map(Mu):ue({},e)}function Wl(e,t,r,n,c,o,a,f,g){var u,h,s,l,i,p,m,_=r.props||Mt,d=t.props,b=t.type;if(b=="svg"?c="http://www.w3.org/2000/svg":b=="math"?c="http://www.w3.org/1998/Math/MathML":c||(c="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((i=o[u])&&"setAttribute"in i==!!b&&(b?i.localName==b:i.nodeType==3)){e=i,o[u]=null;break}}if(e==null){if(b==null)return document.createTextNode(d);e=document.createElementNS(c,b,d.is&&d),f&&($.__m&&$.__m(t,o),f=!1),o=null}if(b==null)_===d||f&&e.data==d||(e.data=d);else{if(o=o&&Tt.call(e.childNodes),!f&&o!=null)for(_={},u=0;u<e.attributes.length;u++)_[(i=e.attributes[u]).name]=i.value;for(u in _)if(i=_[u],u!="children"){if(u=="dangerouslySetInnerHTML")s=i;else if(!(u in d)){if(u=="value"&&"defaultValue"in d||u=="checked"&&"defaultChecked"in d)continue;Wt(e,u,null,i,c)}}for(u in d)i=d[u],u=="children"?l=i:u=="dangerouslySetInnerHTML"?h=i:u=="value"?p=i:u=="checked"?m=i:f&&typeof i!="function"||_[u]===i||Wt(e,u,i,_[u],c);if(h)f||s&&(h.__html==s.__html||h.__html==e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(s&&(e.innerHTML=""),ku(t.type=="template"?e.content:e,Pt(l)?l:[l],t,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":c,o,a,o?o[0]:r.__k&&He(r,0),f,g),o!=null)for(u=o.length;u--;)ui(o[u]);f||(u="value",b=="progress"&&p==null?e.removeAttribute("value"):p!=null&&(p!==e[u]||b=="progress"&&!p||b=="option"&&p!=_[u])&&Wt(e,u,p,_[u],c),u="checked",m!=null&&m!=e[u]&&Wt(e,u,m,_[u],c))}return e}function di(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(c){$.__e(c,r)}}function Nu(e,t,r){var n,c;if($.unmount&&$.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||di(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){$.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(c=0;c<n.length;c++)n[c]&&Nu(n[c],t,r||typeof e.type!="function");r||ui(e.__e),e.__c=e.__=e.__e=void 0}function Vl(e,t,r){return this.constructor(e,r)}function Tu(e,t,r){var n,c,o,a;t==document&&(t=document.documentElement),$.__&&$.__(e,t),c=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],li(t,e=(!n&&r||t).__k=Qs(Ot,null,[e]),c||Mt,Mt,t.namespaceURI,!n&&r?[r]:c?null:t.firstChild?Tt.call(t.childNodes):null,o,!n&&r?r:c?c.__e:t.firstChild,n,a),Lu(o,e,a)}function Pu(e,t){Tu(e,t,Pu)}function zl(e,t,r){var n,c,o,a,f=ue({},e.props);for(o in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)o=="key"?n=t[o]:o=="ref"?c=t[o]:f[o]=t[o]===void 0&&a!=null?a[o]:t[o];return arguments.length>2&&(f.children=arguments.length>3?Tt.call(arguments,2):r),At(e.type,f,n||e.key,c||e.ref,null)}function $l(e){function t(r){var n,c;return this.getChildContext||(n=new Set,(c={})[t.__c]=this,this.getChildContext=function(){return c},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(o){this.props.value!=o.value&&n.forEach(function(a){a.__e=!0,Ks(a)})},this.sub=function(o){n.add(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){n&&n.delete(o),a&&a.call(o)}}),r.children}return t.__c="__cC"+Ru++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}Tt=Su.slice,$={__e:function(e,t,r,n){for(var c,o,a;t=t.__;)if((c=t.__c)&&!c.__)try{if((o=c.constructor)&&o.getDerivedStateFromError!=null&&(c.setState(o.getDerivedStateFromError(e)),a=c.__d),c.componentDidCatch!=null&&(c.componentDidCatch(e,n||{}),a=c.__d),a)return c.__E=c}catch(f){e=f}throw e}},bu=0,yu=function(e){return e!=null&&e.constructor==null},Lt.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=ue({},this.state),typeof e=="function"&&(e=e(ue({},r),this.props)),e&&ue(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ks(this))},Lt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ks(this))},Lt.prototype.render=Ot,Be=[],vu=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,wu=function(e,t){return e.__v.__b-t.__v.__b},sr.__r=0,Eu=/(PointerCapture)$|Capture$/i,ci=0,Gs=vo(!1),Zs=vo(!0),Ru=0;const Jl=Object.freeze(Object.defineProperty({__proto__:null,Component:Lt,Fragment:Ot,cloneElement:zl,createContext:$l,createElement:Qs,createRef:jl,h:Qs,hydrate:Pu,get isValidElement(){return yu},get options(){return $},render:Tu,toChildArray:Au},Symbol.toStringTag,{value:"Module"})),X=Nt(Jl);var ve={};const xt=Nt(Il);var he,V,mn,wo,Ue=0,Ou=[],J=$,Eo=J.__b,Ro=J.__r,So=J.diffed,Co=J.__c,ko=J.unmount,Io=J.__;function De(e,t){J.__h&&J.__h(V,e,Ue||t),Ue=0;var r=V.__H||(V.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function xu(e){return Ue=1,Fu(Du,e)}function Fu(e,t,r){var n=De(he++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Du(void 0,t),function(f){var g=n.__N?n.__N[0]:n.__[0],u=n.t(g,f);g!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=V,!V.__f)){var c=function(f,g,u){if(!n.__c.__H)return!0;var h=n.__c.__H.__.filter(function(l){return!!l.__c});if(h.every(function(l){return!l.__N}))return!o||o.call(this,f,g,u);var s=n.__c.props!==f;return h.forEach(function(l){if(l.__N){var i=l.__[0];l.__=l.__N,l.__N=void 0,i!==l.__[0]&&(s=!0)}}),o&&o.call(this,f,g,u)||s};V.__f=!0;var o=V.shouldComponentUpdate,a=V.componentWillUpdate;V.componentWillUpdate=function(f,g,u){if(this.__e){var h=o;o=void 0,c(f,g,u),o=h}a&&a.call(this,f,g,u)},V.shouldComponentUpdate=c}return n.__N||n.__}function Gl(e,t){var r=De(he++,3);!J.__s&&fi(r.__H,t)&&(r.__=e,r.u=t,V.__H.__h.push(r))}function Bu(e,t){var r=De(he++,4);!J.__s&&fi(r.__H,t)&&(r.__=e,r.u=t,V.__h.push(r))}function Zl(e){return Ue=5,hi(function(){return{current:e}},[])}function Ql(e,t,r){Ue=6,Bu(function(){if(typeof e=="function"){var n=e(t());return function(){e(null),n&&typeof n=="function"&&n()}}if(e)return e.current=t(),function(){return e.current=null}},r==null?r:r.concat(e))}function hi(e,t){var r=De(he++,7);return fi(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Kl(e,t){return Ue=8,hi(function(){return e},t)}function Xl(e){var t=V.context[e.__c],r=De(he++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(V)),t.props.value):e.__}function Yl(e,t){J.useDebugValue&&J.useDebugValue(t?t(e):e)}function ed(e){var t=De(he++,10),r=xu();return t.__=e,V.componentDidCatch||(V.componentDidCatch=function(n,c){t.__&&t.__(n,c),r[1](n)}),[r[0],function(){r[1](void 0)}]}function td(){var e=De(he++,11);if(!e.__){for(var t=V.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function rd(){for(var e;e=Ou.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(nr),e.__H.__h.forEach(Ys),e.__H.__h=[]}catch(t){e.__H.__h=[],J.__e(t,e.__v)}}J.__b=function(e){V=null,Eo&&Eo(e)},J.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Io&&Io(e,t)},J.__r=function(e){Ro&&Ro(e),he=0;var t=(V=e.__c).__H;t&&(mn===V?(t.__h=[],V.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(nr),t.__h.forEach(Ys),t.__h=[],he=0)),mn=V},J.diffed=function(e){So&&So(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ou.push(t)!==1&&wo===J.requestAnimationFrame||((wo=J.requestAnimationFrame)||nd)(rd)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),mn=V=null},J.__c=function(e,t){t.some(function(r){try{r.__h.forEach(nr),r.__h=r.__h.filter(function(n){return!n.__||Ys(n)})}catch(n){t.some(function(c){c.__h&&(c.__h=[])}),t=[],J.__e(n,r.__v)}}),Co&&Co(e,t)},J.unmount=function(e){ko&&ko(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{nr(n)}catch(c){t=c}}),r.__H=void 0,t&&J.__e(t,r.__v))};var Ao=typeof requestAnimationFrame=="function";function nd(e){var t,r=function(){clearTimeout(n),Ao&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);Ao&&(t=requestAnimationFrame(r))}function nr(e){var t=V,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),V=t}function Ys(e){var t=V;e.__c=e.__(),V=t}function fi(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Du(e,t){return typeof t=="function"?t(e):t}const sd=Object.freeze(Object.defineProperty({__proto__:null,useCallback:Kl,useContext:Xl,useDebugValue:Yl,useEffect:Gl,useErrorBoundary:ed,useId:td,useImperativeHandle:Ql,useLayoutEffect:Bu,useMemo:hi,useReducer:Fu,useRef:Zl,useState:xu},Symbol.toStringTag,{value:"Module"})),ur=Nt(sd);var le={},ut={},Lo;function id(){if(Lo)return ut;Lo=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.CloseIcon=void 0;const e=X;function t(r){return(0,e.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}return ut.CloseIcon=t,ut}var lt={},Mo;function od(){if(Mo)return lt;Mo=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.CoinbaseWalletRound=void 0;const e=X;function t(r){return(0,e.h)("svg",Object.assign({width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.h)("circle",{cx:"14",cy:"14",r:"14",fill:"#0052FF"}),(0,e.h)("path",{d:"M23.8521 14.0003C23.8521 19.455 19.455 23.8521 14.0003 23.8521C8.54559 23.8521 4.14844 19.455 4.14844 14.0003C4.14844 8.54559 8.54559 4.14844 14.0003 4.14844C19.455 4.14844 23.8521 8.54559 23.8521 14.0003Z",fill:"white"}),(0,e.h)("path",{d:"M11.1855 12.5042C11.1855 12.0477 11.1855 11.7942 11.2835 11.642C11.3814 11.4899 11.4793 11.3377 11.6261 11.287C11.8219 11.1855 12.0178 11.1855 12.5073 11.1855H15.4934C15.983 11.1855 16.1788 11.1855 16.3746 11.287C16.5215 11.3884 16.6683 11.4899 16.7173 11.642C16.8152 11.8449 16.8152 12.0477 16.8152 12.5042V15.4965C16.8152 15.953 16.8152 16.2066 16.7173 16.3587C16.6194 16.5109 16.5215 16.663 16.3746 16.7137C16.1788 16.8152 15.983 16.8152 15.4934 16.8152H12.5073C12.0178 16.8152 11.8219 16.8152 11.6261 16.7137C11.4793 16.6123 11.3324 16.5109 11.2835 16.3587C11.1855 16.1558 11.1855 15.953 11.1855 15.4965V12.5042Z",fill:"#0052FF"}))}return lt.CoinbaseWalletRound=t,lt}var dt={},No;function ad(){if(No)return dt;No=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.QRCodeIcon=void 0;const e=X;function t(r){return(0,e.h)("svg",Object.assign({width:"18",height:"18",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.h)("path",{d:"M3 3V8.99939L5 8.99996V5H9V3H3Z"}),(0,e.h)("path",{d:"M15 21L21 21V15.0006L19 15V19L15 19V21Z"}),(0,e.h)("path",{d:"M21 9H19V5H15.0006L15 3H21V9Z"}),(0,e.h)("path",{d:"M3 15V21H8.99939L8.99996 19H5L5 15H3Z"}))}return dt.QRCodeIcon=t,dt}var we={},_n,To;function cd(){if(To)return _n;To=1;function e(i){this.mode=r.MODE_8BIT_BYTE,this.data=i,this.parsedData=[];for(var p=0,m=this.data.length;p<m;p++){var _=[],d=this.data.charCodeAt(p);d>65536?(_[0]=240|(d&1835008)>>>18,_[1]=128|(d&258048)>>>12,_[2]=128|(d&4032)>>>6,_[3]=128|d&63):d>2048?(_[0]=224|(d&61440)>>>12,_[1]=128|(d&4032)>>>6,_[2]=128|d&63):d>128?(_[0]=192|(d&1984)>>>6,_[1]=128|d&63):_[0]=d,this.parsedData.push(_)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}e.prototype={getLength:function(i){return this.parsedData.length},write:function(i){for(var p=0,m=this.parsedData.length;p<m;p++)i.put(this.parsedData[p],8)}};function t(i,p){this.typeNumber=i,this.errorCorrectLevel=p,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}t.prototype={addData:function(i){var p=new e(i);this.dataList.push(p),this.dataCache=null},isDark:function(i,p){if(i<0||this.moduleCount<=i||p<0||this.moduleCount<=p)throw new Error(i+","+p);return this.modules[i][p]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(i,p){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var m=0;m<this.moduleCount;m++){this.modules[m]=new Array(this.moduleCount);for(var _=0;_<this.moduleCount;_++)this.modules[m][_]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(i,p),this.typeNumber>=7&&this.setupTypeNumber(i),this.dataCache==null&&(this.dataCache=t.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,p)},setupPositionProbePattern:function(i,p){for(var m=-1;m<=7;m++)if(!(i+m<=-1||this.moduleCount<=i+m))for(var _=-1;_<=7;_++)p+_<=-1||this.moduleCount<=p+_||(0<=m&&m<=6&&(_==0||_==6)||0<=_&&_<=6&&(m==0||m==6)||2<=m&&m<=4&&2<=_&&_<=4?this.modules[i+m][p+_]=!0:this.modules[i+m][p+_]=!1)},getBestMaskPattern:function(){for(var i=0,p=0,m=0;m<8;m++){this.makeImpl(!0,m);var _=o.getLostPoint(this);(m==0||i>_)&&(i=_,p=m)}return p},createMovieClip:function(i,p,m){var _=i.createEmptyMovieClip(p,m),d=1;this.make();for(var b=0;b<this.modules.length;b++)for(var y=b*d,v=0;v<this.modules[b].length;v++){var w=v*d,S=this.modules[b][v];S&&(_.beginFill(0,100),_.moveTo(w,y),_.lineTo(w+d,y),_.lineTo(w+d,y+d),_.lineTo(w,y+d),_.endFill())}return _},setupTimingPattern:function(){for(var i=8;i<this.moduleCount-8;i++)this.modules[i][6]==null&&(this.modules[i][6]=i%2==0);for(var p=8;p<this.moduleCount-8;p++)this.modules[6][p]==null&&(this.modules[6][p]=p%2==0)},setupPositionAdjustPattern:function(){for(var i=o.getPatternPosition(this.typeNumber),p=0;p<i.length;p++)for(var m=0;m<i.length;m++){var _=i[p],d=i[m];if(this.modules[_][d]==null)for(var b=-2;b<=2;b++)for(var y=-2;y<=2;y++)b==-2||b==2||y==-2||y==2||b==0&&y==0?this.modules[_+b][d+y]=!0:this.modules[_+b][d+y]=!1}},setupTypeNumber:function(i){for(var p=o.getBCHTypeNumber(this.typeNumber),m=0;m<18;m++){var _=!i&&(p>>m&1)==1;this.modules[Math.floor(m/3)][m%3+this.moduleCount-8-3]=_}for(var m=0;m<18;m++){var _=!i&&(p>>m&1)==1;this.modules[m%3+this.moduleCount-8-3][Math.floor(m/3)]=_}},setupTypeInfo:function(i,p){for(var m=this.errorCorrectLevel<<3|p,_=o.getBCHTypeInfo(m),d=0;d<15;d++){var b=!i&&(_>>d&1)==1;d<6?this.modules[d][8]=b:d<8?this.modules[d+1][8]=b:this.modules[this.moduleCount-15+d][8]=b}for(var d=0;d<15;d++){var b=!i&&(_>>d&1)==1;d<8?this.modules[8][this.moduleCount-d-1]=b:d<9?this.modules[8][15-d-1+1]=b:this.modules[8][15-d-1]=b}this.modules[this.moduleCount-8][8]=!i},mapData:function(i,p){for(var m=-1,_=this.moduleCount-1,d=7,b=0,y=this.moduleCount-1;y>0;y-=2)for(y==6&&y--;;){for(var v=0;v<2;v++)if(this.modules[_][y-v]==null){var w=!1;b<i.length&&(w=(i[b]>>>d&1)==1);var S=o.getMask(p,_,y-v);S&&(w=!w),this.modules[_][y-v]=w,d--,d==-1&&(b++,d=7)}if(_+=m,_<0||this.moduleCount<=_){_-=m,m=-m;break}}}},t.PAD0=236,t.PAD1=17,t.createData=function(i,p,m){for(var _=u.getRSBlocks(i,p),d=new h,b=0;b<m.length;b++){var y=m[b];d.put(y.mode,4),d.put(y.getLength(),o.getLengthInBits(y.mode,i)),y.write(d)}for(var v=0,b=0;b<_.length;b++)v+=_[b].dataCount;if(d.getLengthInBits()>v*8)throw new Error("code length overflow. ("+d.getLengthInBits()+">"+v*8+")");for(d.getLengthInBits()+4<=v*8&&d.put(0,4);d.getLengthInBits()%8!=0;)d.putBit(!1);for(;!(d.getLengthInBits()>=v*8||(d.put(t.PAD0,8),d.getLengthInBits()>=v*8));)d.put(t.PAD1,8);return t.createBytes(d,_)},t.createBytes=function(i,p){for(var m=0,_=0,d=0,b=new Array(p.length),y=new Array(p.length),v=0;v<p.length;v++){var w=p[v].dataCount,S=p[v].totalCount-w;_=Math.max(_,w),d=Math.max(d,S),b[v]=new Array(w);for(var E=0;E<b[v].length;E++)b[v][E]=255&i.buffer[E+m];m+=w;var C=o.getErrorCorrectPolynomial(S),T=new g(b[v],C.getLength()-1),N=T.mod(C);y[v]=new Array(C.getLength()-1);for(var E=0;E<y[v].length;E++){var P=E+N.getLength()-y[v].length;y[v][E]=P>=0?N.get(P):0}}for(var F=0,E=0;E<p.length;E++)F+=p[E].totalCount;for(var z=new Array(F),A=0,E=0;E<_;E++)for(var v=0;v<p.length;v++)E<b[v].length&&(z[A++]=b[v][E]);for(var E=0;E<d;E++)for(var v=0;v<p.length;v++)E<y[v].length&&(z[A++]=y[v][E]);return z};for(var r={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},n={L:1,M:0,Q:3,H:2},c={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},o={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(i){for(var p=i<<10;o.getBCHDigit(p)-o.getBCHDigit(o.G15)>=0;)p^=o.G15<<o.getBCHDigit(p)-o.getBCHDigit(o.G15);return(i<<10|p)^o.G15_MASK},getBCHTypeNumber:function(i){for(var p=i<<12;o.getBCHDigit(p)-o.getBCHDigit(o.G18)>=0;)p^=o.G18<<o.getBCHDigit(p)-o.getBCHDigit(o.G18);return i<<12|p},getBCHDigit:function(i){for(var p=0;i!=0;)p++,i>>>=1;return p},getPatternPosition:function(i){return o.PATTERN_POSITION_TABLE[i-1]},getMask:function(i,p,m){switch(i){case c.PATTERN000:return(p+m)%2==0;case c.PATTERN001:return p%2==0;case c.PATTERN010:return m%3==0;case c.PATTERN011:return(p+m)%3==0;case c.PATTERN100:return(Math.floor(p/2)+Math.floor(m/3))%2==0;case c.PATTERN101:return p*m%2+p*m%3==0;case c.PATTERN110:return(p*m%2+p*m%3)%2==0;case c.PATTERN111:return(p*m%3+(p+m)%2)%2==0;default:throw new Error("bad maskPattern:"+i)}},getErrorCorrectPolynomial:function(i){for(var p=new g([1],0),m=0;m<i;m++)p=p.multiply(new g([1,a.gexp(m)],0));return p},getLengthInBits:function(i,p){if(1<=p&&p<10)switch(i){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:return 8;case r.MODE_KANJI:return 8;default:throw new Error("mode:"+i)}else if(p<27)switch(i){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw new Error("mode:"+i)}else if(p<41)switch(i){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw new Error("mode:"+i)}else throw new Error("type:"+p)},getLostPoint:function(i){for(var p=i.getModuleCount(),m=0,_=0;_<p;_++)for(var d=0;d<p;d++){for(var b=0,y=i.isDark(_,d),v=-1;v<=1;v++)if(!(_+v<0||p<=_+v))for(var w=-1;w<=1;w++)d+w<0||p<=d+w||v==0&&w==0||y==i.isDark(_+v,d+w)&&b++;b>5&&(m+=3+b-5)}for(var _=0;_<p-1;_++)for(var d=0;d<p-1;d++){var S=0;i.isDark(_,d)&&S++,i.isDark(_+1,d)&&S++,i.isDark(_,d+1)&&S++,i.isDark(_+1,d+1)&&S++,(S==0||S==4)&&(m+=3)}for(var _=0;_<p;_++)for(var d=0;d<p-6;d++)i.isDark(_,d)&&!i.isDark(_,d+1)&&i.isDark(_,d+2)&&i.isDark(_,d+3)&&i.isDark(_,d+4)&&!i.isDark(_,d+5)&&i.isDark(_,d+6)&&(m+=40);for(var d=0;d<p;d++)for(var _=0;_<p-6;_++)i.isDark(_,d)&&!i.isDark(_+1,d)&&i.isDark(_+2,d)&&i.isDark(_+3,d)&&i.isDark(_+4,d)&&!i.isDark(_+5,d)&&i.isDark(_+6,d)&&(m+=40);for(var E=0,d=0;d<p;d++)for(var _=0;_<p;_++)i.isDark(_,d)&&E++;var C=Math.abs(100*E/p/p-50)/5;return m+=C*10,m}},a={glog:function(i){if(i<1)throw new Error("glog("+i+")");return a.LOG_TABLE[i]},gexp:function(i){for(;i<0;)i+=255;for(;i>=256;)i-=255;return a.EXP_TABLE[i]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},f=0;f<8;f++)a.EXP_TABLE[f]=1<<f;for(var f=8;f<256;f++)a.EXP_TABLE[f]=a.EXP_TABLE[f-4]^a.EXP_TABLE[f-5]^a.EXP_TABLE[f-6]^a.EXP_TABLE[f-8];for(var f=0;f<255;f++)a.LOG_TABLE[a.EXP_TABLE[f]]=f;function g(i,p){if(i.length==null)throw new Error(i.length+"/"+p);for(var m=0;m<i.length&&i[m]==0;)m++;this.num=new Array(i.length-m+p);for(var _=0;_<i.length-m;_++)this.num[_]=i[_+m]}g.prototype={get:function(i){return this.num[i]},getLength:function(){return this.num.length},multiply:function(i){for(var p=new Array(this.getLength()+i.getLength()-1),m=0;m<this.getLength();m++)for(var _=0;_<i.getLength();_++)p[m+_]^=a.gexp(a.glog(this.get(m))+a.glog(i.get(_)));return new g(p,0)},mod:function(i){if(this.getLength()-i.getLength()<0)return this;for(var p=a.glog(this.get(0))-a.glog(i.get(0)),m=new Array(this.getLength()),_=0;_<this.getLength();_++)m[_]=this.get(_);for(var _=0;_<i.getLength();_++)m[_]^=a.gexp(a.glog(i.get(_))+p);return new g(m,0).mod(i)}};function u(i,p){this.totalCount=i,this.dataCount=p}u.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],u.getRSBlocks=function(i,p){var m=u.getRsBlockTable(i,p);if(m==null)throw new Error("bad rs block @ typeNumber:"+i+"/errorCorrectLevel:"+p);for(var _=m.length/3,d=[],b=0;b<_;b++)for(var y=m[b*3+0],v=m[b*3+1],w=m[b*3+2],S=0;S<y;S++)d.push(new u(v,w));return d},u.getRsBlockTable=function(i,p){switch(p){case n.L:return u.RS_BLOCK_TABLE[(i-1)*4+0];case n.M:return u.RS_BLOCK_TABLE[(i-1)*4+1];case n.Q:return u.RS_BLOCK_TABLE[(i-1)*4+2];case n.H:return u.RS_BLOCK_TABLE[(i-1)*4+3];default:return}};function h(){this.buffer=[],this.length=0}h.prototype={get:function(i){var p=Math.floor(i/8);return(this.buffer[p]>>>7-i%8&1)==1},put:function(i,p){for(var m=0;m<p;m++)this.putBit((i>>>p-m-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(i){var p=Math.floor(this.length/8);this.buffer.length<=p&&this.buffer.push(0),i&&(this.buffer[p]|=128>>>this.length%8),this.length++}};var s=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function l(i){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},typeof i=="string"&&(i={content:i}),i)for(var p in i)this.options[p]=i[p];if(typeof this.options.content!="string")throw new Error("Expected 'content' as string!");if(this.options.content.length===0)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");function m(w){switch(w){case"L":return n.L;case"M":return n.M;case"Q":return n.Q;case"H":return n.H;default:throw new Error("Unknwon error correction level: "+w)}}function _(w,S){for(var E=d(w),C=1,T=0,N=0,P=s.length;N<=P;N++){var F=s[N];if(!F)throw new Error("Content too long: expected "+T+" but got "+E);switch(S){case"L":T=F[0];break;case"M":T=F[1];break;case"Q":T=F[2];break;case"H":T=F[3];break;default:throw new Error("Unknwon error correction level: "+S)}if(E<=T)break;C++}if(C>s.length)throw new Error("Content too long");return C}function d(w){var S=encodeURI(w).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return S.length+(S.length!=w?3:0)}var b=this.options.content,y=_(b,this.options.ecl),v=m(this.options.ecl);this.qrcode=new t(y,v),this.qrcode.addData(b),this.qrcode.make()}return l.prototype.svg=function(i){var p=this.options||{},m=this.qrcode.modules;typeof i>"u"&&(i={container:p.container||"svg"});for(var _=typeof p.pretty<"u"?!!p.pretty:!0,d=_?" ":"",b=_?`\r
1
+ import{a as Nt,p as Js,cf as ml,g as _l}from"./thirdweb-CWqqA_3h.js";import{b as ir,B as q,e as bl,f as yl,h as vl,i as wl,l as El,m as Rl,n as Sl,o as Cl,p as pu,t as kl}from"./ui-BMD2KUgH.js";import{a as Il}from"./clsx.m-DHulAg21.js";function Al(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const c in n)if(c!=="default"&&!(c in e)){const o=Object.getOwnPropertyDescriptor(n,c);o&&Object.defineProperty(e,c,o.get?o:{enumerable:!0,get:()=>n[c]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var fn={},$e={},Je={},Qi;function Ll(){if(Qi)return Je;Qi=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.walletLogo=void 0;const e=(t,r)=>{let n;switch(t){case"standard":return n=r,`data:image/svg+xml,%3Csvg width='${r}' height='${n}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return n=r,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${r}' height='${n}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return n=(.1*r).toFixed(2),`data:image/svg+xml,%3Csvg width='${r}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return n=(.25*r).toFixed(2),`data:image/svg+xml,%3Csvg width='${r}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return n=(.1*r).toFixed(2),`data:image/svg+xml,%3Csvg width='${r}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return n=(.25*r).toFixed(2),`data:image/svg+xml,%3Csvg width='${r}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;default:return n=r,`data:image/svg+xml,%3Csvg width='${r}' height='${n}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `}};return Je.walletLogo=e,Je}var Ge={},Ki;function Ml(){return Ki||(Ki=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.LINK_API_URL=void 0,Ge.LINK_API_URL="https://www.walletlink.org"),Ge}var x={},gn={},me={},Xi;function or(){return Xi||(Xi=1,Object.defineProperty(me,"__esModule",{value:!0}),me.errorValues=me.standardErrorCodes=void 0,me.standardErrorCodes={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}},me.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}}),me}var Ze={},pn={},Yi;function ri(){return Yi||(Yi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serialize=e.getErrorCode=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=or(),r="Unspecified error message.";e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function n(l,i=r){if(l&&Number.isInteger(l)){const p=l.toString();if(h(t.errorValues,p))return t.errorValues[p].message;if(g(l))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return i}e.getMessageFromCode=n;function c(l){if(!Number.isInteger(l))return!1;const i=l.toString();return!!(t.errorValues[i]||g(l))}e.isValidCode=c;function o(l){var i;if(typeof l=="number")return l;if(a(l))return(i=l.code)!==null&&i!==void 0?i:l.errorCode}e.getErrorCode=o;function a(l){return typeof l=="object"&&l!==null&&(typeof l.code=="number"||typeof l.errorCode=="number")}function f(l,{shouldIncludeStack:i=!1}={}){const p={};if(l&&typeof l=="object"&&!Array.isArray(l)&&h(l,"code")&&c(l.code)){const m=l;p.code=m.code,m.message&&typeof m.message=="string"?(p.message=m.message,h(m,"data")&&(p.data=m.data)):(p.message=n(p.code),p.data={originalError:u(l)})}else p.code=t.standardErrorCodes.rpc.internal,p.message=s(l,"message")?l.message:r,p.data={originalError:u(l)};return i&&(p.stack=s(l,"stack")?l.stack:void 0),p}e.serialize=f;function g(l){return l>=-32099&&l<=-32e3}function u(l){return l&&typeof l=="object"&&!Array.isArray(l)?Object.assign({},l):l}function h(l,i){return Object.prototype.hasOwnProperty.call(l,i)}function s(l,i){return typeof l=="object"&&l!==null&&i in l&&typeof l[i]=="string"}}(pn)),pn}var eo;function Nl(){if(eo)return Ze;eo=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.standardErrors=void 0;const e=or(),t=ri();Ze.standardErrors={rpc:{parse:g=>r(e.standardErrorCodes.rpc.parse,g),invalidRequest:g=>r(e.standardErrorCodes.rpc.invalidRequest,g),invalidParams:g=>r(e.standardErrorCodes.rpc.invalidParams,g),methodNotFound:g=>r(e.standardErrorCodes.rpc.methodNotFound,g),internal:g=>r(e.standardErrorCodes.rpc.internal,g),server:g=>{if(!g||typeof g!="object"||Array.isArray(g))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:u}=g;if(!Number.isInteger(u)||u>-32005||u<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return r(u,g)},invalidInput:g=>r(e.standardErrorCodes.rpc.invalidInput,g),resourceNotFound:g=>r(e.standardErrorCodes.rpc.resourceNotFound,g),resourceUnavailable:g=>r(e.standardErrorCodes.rpc.resourceUnavailable,g),transactionRejected:g=>r(e.standardErrorCodes.rpc.transactionRejected,g),methodNotSupported:g=>r(e.standardErrorCodes.rpc.methodNotSupported,g),limitExceeded:g=>r(e.standardErrorCodes.rpc.limitExceeded,g)},provider:{userRejectedRequest:g=>n(e.standardErrorCodes.provider.userRejectedRequest,g),unauthorized:g=>n(e.standardErrorCodes.provider.unauthorized,g),unsupportedMethod:g=>n(e.standardErrorCodes.provider.unsupportedMethod,g),disconnected:g=>n(e.standardErrorCodes.provider.disconnected,g),chainDisconnected:g=>n(e.standardErrorCodes.provider.chainDisconnected,g),unsupportedChain:g=>n(e.standardErrorCodes.provider.unsupportedChain,g),custom:g=>{if(!g||typeof g!="object"||Array.isArray(g))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:u,message:h,data:s}=g;if(!h||typeof h!="string")throw new Error('"message" must be a nonempty string');return new a(u,h,s)}}};function r(g,u){const[h,s]=c(u);return new o(g,h||(0,t.getMessageFromCode)(g),s)}function n(g,u){const[h,s]=c(u);return new a(g,h||(0,t.getMessageFromCode)(g),s)}function c(g){if(g){if(typeof g=="string")return[g];if(typeof g=="object"&&!Array.isArray(g)){const{message:u,data:h}=g;if(u&&typeof u!="string")throw new Error("Must specify string message.");return[u||void 0,h]}}return[]}class o extends Error{constructor(u,h,s){if(!Number.isInteger(u))throw new Error('"code" must be an integer.');if(!h||typeof h!="string")throw new Error('"message" must be a nonempty string.');super(h),this.code=u,s!==void 0&&(this.data=s)}}class a extends o{constructor(u,h,s){if(!f(u))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(u,h,s)}}function f(g){return Number.isInteger(g)&&g>=1e3&&g<=4999}return Ze}var Qe={},Ke={},to;function ni(){if(to)return Ke;to=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.isErrorResponse=void 0;function e(t){return t.errorMessage!==void 0}return Ke.isErrorResponse=e,Ke}var Xe={},ro;function si(){return ro||(ro=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.LIB_VERSION=void 0,Xe.LIB_VERSION="3.9.3"),Xe}var no;function Tl(){if(no)return Qe;no=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.serializeError=void 0;const e=ni(),t=si(),r=or(),n=ri();function c(f,g){const u=(0,n.serialize)(o(f),{shouldIncludeStack:!0}),h=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");h.searchParams.set("version",t.LIB_VERSION),h.searchParams.set("code",u.code.toString());const s=a(u.data,g);return s&&h.searchParams.set("method",s),h.searchParams.set("message",u.message),Object.assign(Object.assign({},u),{docUrl:h.href})}Qe.serializeError=c;function o(f){return typeof f=="string"?{message:f,code:r.standardErrorCodes.rpc.internal}:(0,e.isErrorResponse)(f)?Object.assign(Object.assign({},f),{message:f.errorMessage,code:f.errorCode,data:{method:f.method}}):f}function a(f,g){const u=f==null?void 0:f.method;if(u)return u;if(g!==void 0){if(typeof g=="string")return g;if(Array.isArray(g)){if(g.length>0)return g[0].method}else return g.method}}return Qe}var so;function ar(){return so||(so=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.standardErrors=e.standardErrorCodes=e.serializeError=e.getMessageFromCode=e.getErrorCode=void 0;const t=or();Object.defineProperty(e,"standardErrorCodes",{enumerable:!0,get:function(){return t.standardErrorCodes}});const r=Nl();Object.defineProperty(e,"standardErrors",{enumerable:!0,get:function(){return r.standardErrors}});const n=Tl();Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return n.serializeError}});const c=ri();Object.defineProperty(e,"getErrorCode",{enumerable:!0,get:function(){return c.getErrorCode}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return c.getMessageFromCode}})}(gn)),gn}var Q={},io;function cr(){if(io)return Q;io=1,Object.defineProperty(Q,"__esModule",{value:!0}),Q.ProviderType=Q.RegExpString=Q.IntNumber=Q.BigIntString=Q.AddressString=Q.HexString=Q.OpaqueType=void 0;function e(){return n=>n}Q.OpaqueType=e,Q.HexString=e(),Q.AddressString=e(),Q.BigIntString=e();function t(n){return Math.floor(n)}Q.IntNumber=t,Q.RegExpString=e();var r;return function(n){n.CoinbaseWallet="CoinbaseWallet",n.MetaMask="MetaMask",n.Unselected=""}(r||(Q.ProviderType=r={})),Q}var oo;function fe(){if(oo)return x;oo=1;var e=x&&x.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(x,"__esModule",{value:!0}),x.isMobileWeb=x.getLocation=x.isInIFrame=x.createQrUrl=x.getFavicon=x.range=x.isBigNumber=x.ensureParsedJSONObject=x.ensureBN=x.ensureRegExpString=x.ensureIntNumber=x.ensureBuffer=x.ensureAddressString=x.ensureEvenLengthHexString=x.ensureHexString=x.isHexString=x.prepend0x=x.strip0x=x.has0xPrefix=x.hexStringFromIntNumber=x.intNumberFromHexString=x.bigIntStringFromBN=x.hexStringFromBuffer=x.hexStringToUint8Array=x.uint8ArrayToHex=x.randomBytesHex=void 0;const t=e(ir()),r=ar(),n=cr(),c=/^[0-9]*$/,o=/^[a-f0-9]*$/;function a(R){return f(crypto.getRandomValues(new Uint8Array(R)))}x.randomBytesHex=a;function f(R){return[...R].map(I=>I.toString(16).padStart(2,"0")).join("")}x.uint8ArrayToHex=f;function g(R){return new Uint8Array(R.match(/.{1,2}/g).map(I=>parseInt(I,16)))}x.hexStringToUint8Array=g;function u(R,I=!1){const M=R.toString("hex");return(0,n.HexString)(I?`0x${M}`:M)}x.hexStringFromBuffer=u;function h(R){return(0,n.BigIntString)(R.toString(10))}x.bigIntStringFromBN=h;function s(R){return(0,n.IntNumber)(new t.default(b(R,!1),16).toNumber())}x.intNumberFromHexString=s;function l(R){return(0,n.HexString)(`0x${new t.default(R).toString(16)}`)}x.hexStringFromIntNumber=l;function i(R){return R.startsWith("0x")||R.startsWith("0X")}x.has0xPrefix=i;function p(R){return i(R)?R.slice(2):R}x.strip0x=p;function m(R){return i(R)?`0x${R.slice(2)}`:`0x${R}`}x.prepend0x=m;function _(R){if(typeof R!="string")return!1;const I=p(R).toLowerCase();return o.test(I)}x.isHexString=_;function d(R,I=!1){if(typeof R=="string"){const M=p(R).toLowerCase();if(o.test(M))return(0,n.HexString)(I?`0x${M}`:M)}throw r.standardErrors.rpc.invalidParams(`"${String(R)}" is not a hexadecimal string`)}x.ensureHexString=d;function b(R,I=!1){let M=d(R,!1);return M.length%2===1&&(M=(0,n.HexString)(`0${M}`)),I?(0,n.HexString)(`0x${M}`):M}x.ensureEvenLengthHexString=b;function y(R){if(typeof R=="string"){const I=p(R).toLowerCase();if(_(I)&&I.length===40)return(0,n.AddressString)(m(I))}throw r.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(R)}`)}x.ensureAddressString=y;function v(R){if(q.isBuffer(R))return R;if(typeof R=="string"){if(_(R)){const I=b(R,!1);return q.from(I,"hex")}return q.from(R,"utf8")}throw r.standardErrors.rpc.invalidParams(`Not binary data: ${String(R)}`)}x.ensureBuffer=v;function w(R){if(typeof R=="number"&&Number.isInteger(R))return(0,n.IntNumber)(R);if(typeof R=="string"){if(c.test(R))return(0,n.IntNumber)(Number(R));if(_(R))return(0,n.IntNumber)(new t.default(b(R,!1),16).toNumber())}throw r.standardErrors.rpc.invalidParams(`Not an integer: ${String(R)}`)}x.ensureIntNumber=w;function S(R){if(R instanceof RegExp)return(0,n.RegExpString)(R.toString());throw r.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(R)}`)}x.ensureRegExpString=S;function E(R){if(R!==null&&(t.default.isBN(R)||T(R)))return new t.default(R.toString(10),10);if(typeof R=="number")return new t.default(w(R));if(typeof R=="string"){if(c.test(R))return new t.default(R,10);if(_(R))return new t.default(b(R,!1),16)}throw r.standardErrors.rpc.invalidParams(`Not an integer: ${String(R)}`)}x.ensureBN=E;function C(R){if(typeof R=="string")return JSON.parse(R);if(typeof R=="object")return R;throw r.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(R)}`)}x.ensureParsedJSONObject=C;function T(R){if(R==null||typeof R.constructor!="function")return!1;const{constructor:I}=R;return typeof I.config=="function"&&typeof I.EUCLID=="number"}x.isBigNumber=T;function N(R,I){return Array.from({length:I-R},(M,L)=>R+L)}x.range=N;function P(){const R=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:I,host:M}=document.location,L=R?R.getAttribute("href"):null;return!L||L.startsWith("javascript:")||L.startsWith("vbscript:")?null:L.startsWith("http://")||L.startsWith("https://")||L.startsWith("data:")?L:L.startsWith("//")?I+L:`${I}//${M}${L}`}x.getFavicon=P;function F(R,I,M,L,O,j){const B=L?"parent-id":"id",H=new URLSearchParams({[B]:R,secret:I,server:M,v:O,chainId:j.toString()}).toString();return`${M}/#/link?${H}`}x.createQrUrl=F;function z(){try{return window.frameElement!==null}catch{return!1}}x.isInIFrame=z;function A(){try{return z()&&window.top?window.top.location:window.location}catch{return window.location}}x.getLocation=A;function k(){var R;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((R=window==null?void 0:window.navigator)===null||R===void 0?void 0:R.userAgent)}return x.isMobileWeb=k,x}var Ye={},ao;function Pl(){if(ao)return Ye;ao=1,Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.ScopedLocalStorage=void 0;let e=class{constructor(r){this.scope=r}setItem(r,n){localStorage.setItem(this.scopedKey(r),n)}getItem(r){return localStorage.getItem(this.scopedKey(r))}removeItem(r){localStorage.removeItem(this.scopedKey(r))}clear(){const r=this.scopedKey(""),n=[];for(let c=0;c<localStorage.length;c++){const o=localStorage.key(c);typeof o=="string"&&o.startsWith(r)&&n.push(o)}n.forEach(c=>localStorage.removeItem(c))}scopedKey(r){return`${this.scope}:${r}`}};return Ye.ScopedLocalStorage=e,Ye}var _e={},et={},tt={},rt={},co;function ii(){return co||(co=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.EVENTS=void 0,rt.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",METHOD_NOT_IMPLEMENTED:"walletlink_sdk.method_not_implemented",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}),rt}var re={},uo;function oi(){if(uo)return re;uo=1,Object.defineProperty(re,"__esModule",{value:!0}),re.RelayAbstract=re.APP_VERSION_KEY=re.LOCAL_STORAGE_ADDRESSES_KEY=re.WALLET_USER_NAME_KEY=void 0;const e=ar();re.WALLET_USER_NAME_KEY="walletUsername",re.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",re.APP_VERSION_KEY="AppVersion";let t=class{async makeEthereumJSONRPCRequest(n,c){if(!c)throw new Error("Error: No jsonRpcUrl provided");return window.fetch(c,{method:"POST",body:JSON.stringify(n),mode:"cors",headers:{"Content-Type":"application/json"}}).then(o=>o.json()).then(o=>{if(!o)throw e.standardErrors.rpc.parse({});const a=o,{error:f}=a;if(f)throw(0,e.serializeError)(f,n.method);return a})}};return re.RelayAbstract=t,re}var nt={},lo;function ai(){if(lo)return nt;lo=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.Session=void 0;const e=bl(),t=fe(),r="session:id",n="session:secret",c="session:linked";let o=class mu{constructor(f,g,u,h){this._storage=f,this._id=g||(0,t.randomBytesHex)(16),this._secret=u||(0,t.randomBytesHex)(32),this._key=new e.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!h}static load(f){const g=f.getItem(r),u=f.getItem(c),h=f.getItem(n);return g&&h?new mu(f,g,h,u==="1"):null}static hash(f){return new e.sha256().update(f).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(f){this._linked=f,this.persistLinked()}save(){return this._storage.setItem(r,this._id),this._storage.setItem(n,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(c,this._linked?"1":"0")}};return nt.Session=o,nt}var st={},it={},ho;function Ol(){if(ho)return it;ho=1,Object.defineProperty(it,"__esModule",{value:!0}),it.Cipher=void 0;const e=fe();let t=class{constructor(n){this.secret=n}async encrypt(n){const c=this.secret;if(c.length!==64)throw Error("secret must be 256 bits");const o=crypto.getRandomValues(new Uint8Array(12)),a=await crypto.subtle.importKey("raw",(0,e.hexStringToUint8Array)(c),{name:"aes-gcm"},!1,["encrypt","decrypt"]),f=new TextEncoder,g=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:o},a,f.encode(n)),u=16,h=g.slice(g.byteLength-u),s=g.slice(0,g.byteLength-u),l=new Uint8Array(h),i=new Uint8Array(s),p=new Uint8Array([...o,...l,...i]);return(0,e.uint8ArrayToHex)(p)}async decrypt(n){const c=this.secret;if(c.length!==64)throw Error("secret must be 256 bits");return new Promise((o,a)=>{(async function(){const f=await crypto.subtle.importKey("raw",(0,e.hexStringToUint8Array)(c),{name:"aes-gcm"},!1,["encrypt","decrypt"]),g=(0,e.hexStringToUint8Array)(n),u=g.slice(0,12),h=g.slice(12,28),s=g.slice(28),l=new Uint8Array([...s,...h]),i={name:"AES-GCM",iv:new Uint8Array(u)};try{const p=await window.crypto.subtle.decrypt(i,f,l),m=new TextDecoder;o(m.decode(p))}catch(p){a(p)}})()})}};return it.Cipher=t,it}var ot={},fo;function xl(){if(fo)return ot;fo=1,Object.defineProperty(ot,"__esModule",{value:!0}),ot.WalletLinkHTTP=void 0;let e=class{constructor(r,n,c){this.linkAPIUrl=r,this.sessionId=n;const o=`${n}:${c}`;this.auth=`Basic ${btoa(o)}`}async markUnseenEventsAsSeen(r){return Promise.all(r.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 r;const n=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(n.ok){const{events:c,error:o}=await n.json();if(o)throw new Error(`Check unseen events failed: ${o}`);const a=(r=c==null?void 0:c.filter(f=>f.event==="Web3Response").map(f=>({type:"Event",sessionId:this.sessionId,eventId:f.id,event:f.event,data:f.data})))!==null&&r!==void 0?r:[];return this.markUnseenEventsAsSeen(a),a}throw new Error(`Check unseen events failed: ${n.status}`)}};return ot.WalletLinkHTTP=e,ot}var be={},go;function Fl(){if(go)return be;go=1,Object.defineProperty(be,"__esModule",{value:!0}),be.WalletLinkWebSocket=be.ConnectionState=void 0;var e;(function(r){r[r.DISCONNECTED=0]="DISCONNECTED",r[r.CONNECTING=1]="CONNECTING",r[r.CONNECTED=2]="CONNECTED"})(e||(be.ConnectionState=e={}));let t=class{setConnectionStateListener(n){this.connectionStateListener=n}setIncomingDataListener(n){this.incomingDataListener=n}constructor(n,c=WebSocket){this.WebSocketClass=c,this.webSocket=null,this.pendingData=[],this.url=n.replace(/^http/,"ws")}async connect(){if(this.webSocket)throw new Error("webSocket object is not null");return new Promise((n,c)=>{var o;let a;try{this.webSocket=a=new this.WebSocketClass(this.url)}catch(f){c(f);return}(o=this.connectionStateListener)===null||o===void 0||o.call(this,e.CONNECTING),a.onclose=f=>{var g;this.clearWebSocket(),c(new Error(`websocket error ${f.code}: ${f.reason}`)),(g=this.connectionStateListener)===null||g===void 0||g.call(this,e.DISCONNECTED)},a.onopen=f=>{var g;n(),(g=this.connectionStateListener)===null||g===void 0||g.call(this,e.CONNECTED),this.pendingData.length>0&&([...this.pendingData].forEach(h=>this.sendData(h)),this.pendingData=[])},a.onmessage=f=>{var g,u;if(f.data==="h")(g=this.incomingDataListener)===null||g===void 0||g.call(this,{type:"Heartbeat"});else try{const h=JSON.parse(f.data);(u=this.incomingDataListener)===null||u===void 0||u.call(this,h)}catch{}}})}disconnect(){var n;const{webSocket:c}=this;if(c){this.clearWebSocket(),(n=this.connectionStateListener)===null||n===void 0||n.call(this,e.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{c.close()}catch{}}}sendData(n){const{webSocket:c}=this;if(!c){this.pendingData.push(n),this.connect();return}c.send(n)}clearWebSocket(){const{webSocket:n}=this;n&&(this.webSocket=null,n.onclose=null,n.onerror=null,n.onmessage=null,n.onopen=null)}};return be.WalletLinkWebSocket=t,be}var po;function Bl(){if(po)return st;po=1,Object.defineProperty(st,"__esModule",{value:!0}),st.WalletLinkConnection=void 0;const e=cr(),t=Ol(),r=ii(),n=oi(),c=ai(),o=xl(),a=Fl(),f=1e4,g=6e4;let u=class{constructor({session:s,linkAPIUrl:l,listener:i,diagnostic:p,WebSocketClass:m=WebSocket}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,e.IntNumber)(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=d=>{if(!d)return;new Map([["__destroyed",this.handleDestroyed],["EthereumAddress",this.handleAccountUpdated],["WalletUsername",this.handleWalletUsernameUpdated],["AppVersion",this.handleAppVersionUpdated],["ChainId",y=>d.JsonRpcUrl&&this.handleChainUpdated(y,d.JsonRpcUrl)]]).forEach((y,v)=>{const w=d[v];w!==void 0&&y(w)})},this.handleDestroyed=d=>{var b,y;d==="1"&&((b=this.listener)===null||b===void 0||b.resetAndReload(),(y=this.diagnostic)===null||y===void 0||y.log(r.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:this.isDestroyed,sessionIdHash:c.Session.hash(this.session.id)}))},this.handleAccountUpdated=async d=>{var b,y;try{const v=await this.cipher.decrypt(d);(b=this.listener)===null||b===void 0||b.accountUpdated(v)}catch{(y=this.diagnostic)===null||y===void 0||y.log(r.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}},this.handleMetadataUpdated=async(d,b)=>{var y,v;try{const w=await this.cipher.decrypt(b);(y=this.listener)===null||y===void 0||y.metadataUpdated(d,w)}catch{(v=this.diagnostic)===null||v===void 0||v.log(r.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:d})}},this.handleWalletUsernameUpdated=async d=>{this.handleMetadataUpdated(n.WALLET_USER_NAME_KEY,d)},this.handleAppVersionUpdated=async d=>{this.handleMetadataUpdated(n.APP_VERSION_KEY,d)},this.handleChainUpdated=async(d,b)=>{var y,v;try{const w=await this.cipher.decrypt(d),S=await this.cipher.decrypt(b);(y=this.listener)===null||y===void 0||y.chainUpdated(w,S)}catch{(v=this.diagnostic)===null||v===void 0||v.log(r.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}},this.session=s,this.cipher=new t.Cipher(s.secret),this.diagnostic=p,this.listener=i;const _=new a.WalletLinkWebSocket(`${l}/rpc`,m);_.setConnectionStateListener(async d=>{var b;(b=this.diagnostic)===null||b===void 0||b.log(r.EVENTS.CONNECTED_STATE_CHANGE,{state:d,sessionIdHash:c.Session.hash(s.id)});let y=!1;switch(d){case a.ConnectionState.DISCONNECTED:if(!this.destroyed){const v=async()=>{await new Promise(w=>setTimeout(w,5e3)),this.destroyed||_.connect().catch(()=>{v()})};v()}break;case a.ConnectionState.CONNECTED:try{await this.authenticate(),this.sendIsLinked(),this.sendGetSessionConfig(),y=!0}catch{}this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},f),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();break;case a.ConnectionState.CONNECTING:break}this.connected!==y&&(this.connected=y)}),_.setIncomingDataListener(d=>{var b,y,v;switch(d.type){case"Heartbeat":this.updateLastHeartbeat();return;case"IsLinkedOK":case"Linked":{const w=d.type==="IsLinkedOK"?d.linked:void 0;(b=this.diagnostic)===null||b===void 0||b.log(r.EVENTS.LINKED,{sessionIdHash:c.Session.hash(s.id),linked:w,type:d.type,onlineGuests:d.onlineGuests}),this.linked=w||d.onlineGuests>0;break}case"GetSessionConfigOK":case"SessionConfigUpdated":{(y=this.diagnostic)===null||y===void 0||y.log(r.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:c.Session.hash(s.id),metadata_keys:d&&d.metadata?Object.keys(d.metadata):void 0}),this.handleSessionMetadataUpdated(d.metadata);break}case"Event":{this.handleIncomingEvent(d);break}}d.id!==void 0&&((v=this.requestResolutions.get(d.id))===null||v===void 0||v(d))}),this.ws=_,this.http=new o.WalletLinkHTTP(l,s.id,s.key)}connect(){var s;if(this.destroyed)throw new Error("instance is destroyed");(s=this.diagnostic)===null||s===void 0||s.log(r.EVENTS.STARTED_CONNECTING,{sessionIdHash:c.Session.hash(this.session.id)}),this.ws.connect()}destroy(){var s;this.destroyed=!0,this.ws.disconnect(),(s=this.diagnostic)===null||s===void 0||s.log(r.EVENTS.DISCONNECTED,{sessionIdHash:c.Session.hash(this.session.id)}),this.listener=void 0}get isDestroyed(){return this.destroyed}get connected(){return this._connected}set connected(s){var l,i;this._connected=s,s&&((l=this.onceConnected)===null||l===void 0||l.call(this)),(i=this.listener)===null||i===void 0||i.connectedUpdated(s)}setOnceConnected(s){return new Promise(l=>{this.connected?s().then(l):this.onceConnected=()=>{s().then(l),this.onceConnected=void 0}})}get linked(){return this._linked}set linked(s){var l,i;this._linked=s,s&&((l=this.onceLinked)===null||l===void 0||l.call(this)),(i=this.listener)===null||i===void 0||i.linkedUpdated(s)}setOnceLinked(s){return new Promise(l=>{this.linked?s().then(l):this.onceLinked=()=>{s().then(l),this.onceLinked=void 0}})}async handleIncomingEvent(s){var l,i;if(!(s.type!=="Event"||s.event!=="Web3Response"))try{const p=await this.cipher.decrypt(s.data),m=JSON.parse(p);if(m.type!=="WEB3_RESPONSE")return;(l=this.listener)===null||l===void 0||l.handleWeb3ResponseMessage(m)}catch{(i=this.diagnostic)===null||i===void 0||i.log(r.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(s=>setTimeout(s,250));try{await this.fetchUnseenEventsAPI()}catch(s){console.error("Unable to check for unseen events",s)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEach(l=>this.handleIncomingEvent(l))}async setSessionMetadata(s,l){const i={type:"SetSessionConfig",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id,metadata:{[s]:l}};return this.setOnceConnected(async()=>{const p=await this.makeRequest(i);if(p.type==="Fail")throw new Error(p.error||"failed to set session metadata")})}async publishEvent(s,l,i=!1){const p=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},l),{origin:location.origin,relaySource:window.coinbaseWalletExtension?"injected_sdk":"sdk"}))),m={type:"PublishEvent",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id,event:s,data:p,callWebhook:i};return this.setOnceLinked(async()=>{const _=await this.makeRequest(m);if(_.type==="Fail")throw new Error(_.error||"failed to publish event");return _.eventId})}sendData(s){this.ws.sendData(JSON.stringify(s))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>f*2){this.ws.disconnect();return}try{this.ws.sendData("h")}catch{}}async makeRequest(s,l=g){const i=s.id;this.sendData(s);let p;return Promise.race([new Promise((m,_)=>{p=window.setTimeout(()=>{_(new Error(`request ${i} timed out`))},l)}),new Promise(m=>{this.requestResolutions.set(i,_=>{clearTimeout(p),m(_),this.requestResolutions.delete(i)})})])}async authenticate(){const s={type:"HostSession",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key},l=await this.makeRequest(s);if(l.type==="Fail")throw new Error(l.error||"failed to authentcate")}sendIsLinked(){const s={type:"IsLinked",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(s)}sendGetSessionConfig(){const s={type:"GetSessionConfig",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(s)}};return st.WalletLinkConnection=u,st}var at={},ye={},Ut={},mo;function Dl(){return mo||(mo=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.default='@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}'),Ut}var _o;function _u(){if(_o)return ye;_o=1;var e=ye&&ye.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.injectCssReset=void 0;const t=e(Dl());function r(){const n=document.createElement("style");n.type="text/css",n.appendChild(document.createTextNode(t.default)),document.documentElement.appendChild(n)}return ye.injectCssReset=r,ye}var ct={},Tt,$,bu,yu,Be,bo,vu,wu,Eu,ci,Gs,Zs,Ru,Mt={},Su=[],ql=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Pt=Array.isArray;function ue(e,t){for(var r in t)e[r]=t[r];return e}function ui(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Qs(e,t,r){var n,c,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?c=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?Tt.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return At(e,a,n,c,null)}function At(e,t,r,n,c){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:c??++bu,__i:-1,__u:0};return c==null&&$.vnode!=null&&$.vnode(o),o}function jl(){return{current:null}}function Ot(e){return e.children}function Lt(e,t){this.props=e,this.context=t}function He(e,t){if(t==null)return e.__?He(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?He(e):null}function Cu(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Cu(e)}}function Ks(e){(!e.__d&&(e.__d=!0)&&Be.push(e)&&!sr.__r++||bo!=$.debounceRendering)&&((bo=$.debounceRendering)||vu)(sr)}function sr(){for(var e,t,r,n,c,o,a,f=1;Be.length;)Be.length>f&&Be.sort(wu),e=Be.shift(),f=Be.length,e.__d&&(r=void 0,n=void 0,c=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=ue({},n)).__v=n.__v+1,$.vnode&&$.vnode(r),li(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[c]:null,o,c??He(n),!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Lu(o,r,a),n.__e=n.__=null,r.__e!=c&&Cu(r)));sr.__r=0}function ku(e,t,r,n,c,o,a,f,g,u,h){var s,l,i,p,m,_,d,b=n&&n.__k||Su,y=t.length;for(g=Hl(r,t,b,g,y),s=0;s<y;s++)(i=r.__k[s])!=null&&(l=i.__i==-1?Mt:b[i.__i]||Mt,i.__i=s,_=li(e,i,l,c,o,a,f,g,u,h),p=i.__e,i.ref&&l.ref!=i.ref&&(l.ref&&di(l.ref,null,i),h.push(i.ref,i.__c||p,i)),m==null&&p!=null&&(m=p),(d=!!(4&i.__u))||l.__k===i.__k?g=Iu(i,g,e,d):typeof i.type=="function"&&_!==void 0?g=_:p&&(g=p.nextSibling),i.__u&=-7);return r.__e=m,g}function Hl(e,t,r,n,c){var o,a,f,g,u,h=r.length,s=h,l=0;for(e.__k=new Array(c),o=0;o<c;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?a=e.__k[o]=At(null,a,null,null,null):Pt(a)?a=e.__k[o]=At(Ot,{children:a},null,null,null):a.constructor==null&&a.__b>0?a=e.__k[o]=At(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[o]=a,g=o+l,a.__=e,a.__b=e.__b+1,(u=a.__i=Ul(a,r,g,s))!=-1&&(s--,(f=r[u])&&(f.__u|=2)),f==null||f.__v==null?(u==-1&&(c>h?l--:c<h&&l++),typeof a.type!="function"&&(a.__u|=4)):u!=g&&(u==g-1?l--:u==g+1?l++:(u>g?l--:l++,a.__u|=4))):e.__k[o]=null;if(s)for(o=0;o<h;o++)(f=r[o])!=null&&!(2&f.__u)&&(f.__e==n&&(n=He(f)),Nu(f,f));return n}function Iu(e,t,r,n){var c,o;if(typeof e.type=="function"){for(c=e.__k,o=0;c&&o<c.length;o++)c[o]&&(c[o].__=e,t=Iu(c[o],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=He(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Au(e,t){return t=t||[],e==null||typeof e=="boolean"||(Pt(e)?e.some(function(r){Au(r,t)}):t.push(e)),t}function Ul(e,t,r,n){var c,o,a,f=e.key,g=e.type,u=t[r],h=u!=null&&(2&u.__u)==0;if(u===null&&f==null||h&&f==u.key&&g==u.type)return r;if(n>(h?1:0)){for(c=r-1,o=r+1;c>=0||o<t.length;)if((u=t[a=c>=0?c--:o++])!=null&&!(2&u.__u)&&f==u.key&&g==u.type)return a}return-1}function yo(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||ql.test(t)?r:r+"px"}function Wt(e,t,r,n,c){var o,a;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||yo(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||yo(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Eu,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.u=n.u:(r.u=ci,e.addEventListener(t,o?Zs:Gs,o)):e.removeEventListener(t,o?Zs:Gs,o);else{if(c=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function vo(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=ci++;else if(t.t<r.u)return;return r($.event?$.event(t):t)}}}function li(e,t,r,n,c,o,a,f,g,u){var h,s,l,i,p,m,_,d,b,y,v,w,S,E,C,T,N,P=t.type;if(t.constructor!=null)return null;128&r.__u&&(g=!!(32&r.__u),o=[f=t.__e=r.__e]),(h=$.__b)&&h(t);e:if(typeof P=="function")try{if(d=t.props,b="prototype"in P&&P.prototype.render,y=(h=P.contextType)&&n[h.__c],v=h?y?y.props.value:h.__:n,r.__c?_=(s=t.__c=r.__c).__=s.__E:(b?t.__c=s=new P(d,v):(t.__c=s=new Lt(d,v),s.constructor=P,s.render=Vl),y&&y.sub(s),s.state||(s.state={}),s.__n=n,l=s.__d=!0,s.__h=[],s._sb=[]),b&&s.__s==null&&(s.__s=s.state),b&&P.getDerivedStateFromProps!=null&&(s.__s==s.state&&(s.__s=ue({},s.__s)),ue(s.__s,P.getDerivedStateFromProps(d,s.__s))),i=s.props,p=s.state,s.__v=t,l)b&&P.getDerivedStateFromProps==null&&s.componentWillMount!=null&&s.componentWillMount(),b&&s.componentDidMount!=null&&s.__h.push(s.componentDidMount);else{if(b&&P.getDerivedStateFromProps==null&&d!==i&&s.componentWillReceiveProps!=null&&s.componentWillReceiveProps(d,v),t.__v==r.__v||!s.__e&&s.shouldComponentUpdate!=null&&s.shouldComponentUpdate(d,s.__s,v)===!1){for(t.__v!=r.__v&&(s.props=d,s.state=s.__s,s.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(F){F&&(F.__=t)}),w=0;w<s._sb.length;w++)s.__h.push(s._sb[w]);s._sb=[],s.__h.length&&a.push(s);break e}s.componentWillUpdate!=null&&s.componentWillUpdate(d,s.__s,v),b&&s.componentDidUpdate!=null&&s.__h.push(function(){s.componentDidUpdate(i,p,m)})}if(s.context=v,s.props=d,s.__P=e,s.__e=!1,S=$.__r,E=0,b){for(s.state=s.__s,s.__d=!1,S&&S(t),h=s.render(s.props,s.state,s.context),C=0;C<s._sb.length;C++)s.__h.push(s._sb[C]);s._sb=[]}else do s.__d=!1,S&&S(t),h=s.render(s.props,s.state,s.context),s.state=s.__s;while(s.__d&&++E<25);s.state=s.__s,s.getChildContext!=null&&(n=ue(ue({},n),s.getChildContext())),b&&!l&&s.getSnapshotBeforeUpdate!=null&&(m=s.getSnapshotBeforeUpdate(i,p)),T=h,h!=null&&h.type===Ot&&h.key==null&&(T=Mu(h.props.children)),f=ku(e,Pt(T)?T:[T],t,r,n,c,o,a,f,g,u),s.base=t.__e,t.__u&=-161,s.__h.length&&a.push(s),_&&(s.__E=s.__=null)}catch(F){if(t.__v=null,g||o!=null)if(F.then){for(t.__u|=g?160:128;f&&f.nodeType==8&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,t.__e=f}else{for(N=o.length;N--;)ui(o[N]);Xs(t)}else t.__e=r.__e,t.__k=r.__k,F.then||Xs(t);$.__e(F,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):f=t.__e=Wl(r.__e,t,r,n,c,o,a,g,u);return(h=$.diffed)&&h(t),128&t.__u?void 0:f}function Xs(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(Xs)}function Lu(e,t,r){for(var n=0;n<r.length;n++)di(r[n],r[++n],r[++n]);$.__c&&$.__c(t,e),e.some(function(c){try{e=c.__h,c.__h=[],e.some(function(o){o.call(c)})}catch(o){$.__e(o,c.__v)}})}function Mu(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Pt(e)?e.map(Mu):ue({},e)}function Wl(e,t,r,n,c,o,a,f,g){var u,h,s,l,i,p,m,_=r.props||Mt,d=t.props,b=t.type;if(b=="svg"?c="http://www.w3.org/2000/svg":b=="math"?c="http://www.w3.org/1998/Math/MathML":c||(c="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((i=o[u])&&"setAttribute"in i==!!b&&(b?i.localName==b:i.nodeType==3)){e=i,o[u]=null;break}}if(e==null){if(b==null)return document.createTextNode(d);e=document.createElementNS(c,b,d.is&&d),f&&($.__m&&$.__m(t,o),f=!1),o=null}if(b==null)_===d||f&&e.data==d||(e.data=d);else{if(o=o&&Tt.call(e.childNodes),!f&&o!=null)for(_={},u=0;u<e.attributes.length;u++)_[(i=e.attributes[u]).name]=i.value;for(u in _)if(i=_[u],u!="children"){if(u=="dangerouslySetInnerHTML")s=i;else if(!(u in d)){if(u=="value"&&"defaultValue"in d||u=="checked"&&"defaultChecked"in d)continue;Wt(e,u,null,i,c)}}for(u in d)i=d[u],u=="children"?l=i:u=="dangerouslySetInnerHTML"?h=i:u=="value"?p=i:u=="checked"?m=i:f&&typeof i!="function"||_[u]===i||Wt(e,u,i,_[u],c);if(h)f||s&&(h.__html==s.__html||h.__html==e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(s&&(e.innerHTML=""),ku(t.type=="template"?e.content:e,Pt(l)?l:[l],t,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":c,o,a,o?o[0]:r.__k&&He(r,0),f,g),o!=null)for(u=o.length;u--;)ui(o[u]);f||(u="value",b=="progress"&&p==null?e.removeAttribute("value"):p!=null&&(p!==e[u]||b=="progress"&&!p||b=="option"&&p!=_[u])&&Wt(e,u,p,_[u],c),u="checked",m!=null&&m!=e[u]&&Wt(e,u,m,_[u],c))}return e}function di(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(c){$.__e(c,r)}}function Nu(e,t,r){var n,c;if($.unmount&&$.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||di(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){$.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(c=0;c<n.length;c++)n[c]&&Nu(n[c],t,r||typeof e.type!="function");r||ui(e.__e),e.__c=e.__=e.__e=void 0}function Vl(e,t,r){return this.constructor(e,r)}function Tu(e,t,r){var n,c,o,a;t==document&&(t=document.documentElement),$.__&&$.__(e,t),c=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],li(t,e=(!n&&r||t).__k=Qs(Ot,null,[e]),c||Mt,Mt,t.namespaceURI,!n&&r?[r]:c?null:t.firstChild?Tt.call(t.childNodes):null,o,!n&&r?r:c?c.__e:t.firstChild,n,a),Lu(o,e,a)}function Pu(e,t){Tu(e,t,Pu)}function zl(e,t,r){var n,c,o,a,f=ue({},e.props);for(o in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)o=="key"?n=t[o]:o=="ref"?c=t[o]:f[o]=t[o]===void 0&&a!=null?a[o]:t[o];return arguments.length>2&&(f.children=arguments.length>3?Tt.call(arguments,2):r),At(e.type,f,n||e.key,c||e.ref,null)}function $l(e){function t(r){var n,c;return this.getChildContext||(n=new Set,(c={})[t.__c]=this,this.getChildContext=function(){return c},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(o){this.props.value!=o.value&&n.forEach(function(a){a.__e=!0,Ks(a)})},this.sub=function(o){n.add(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){n&&n.delete(o),a&&a.call(o)}}),r.children}return t.__c="__cC"+Ru++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}Tt=Su.slice,$={__e:function(e,t,r,n){for(var c,o,a;t=t.__;)if((c=t.__c)&&!c.__)try{if((o=c.constructor)&&o.getDerivedStateFromError!=null&&(c.setState(o.getDerivedStateFromError(e)),a=c.__d),c.componentDidCatch!=null&&(c.componentDidCatch(e,n||{}),a=c.__d),a)return c.__E=c}catch(f){e=f}throw e}},bu=0,yu=function(e){return e!=null&&e.constructor==null},Lt.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=ue({},this.state),typeof e=="function"&&(e=e(ue({},r),this.props)),e&&ue(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ks(this))},Lt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ks(this))},Lt.prototype.render=Ot,Be=[],vu=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,wu=function(e,t){return e.__v.__b-t.__v.__b},sr.__r=0,Eu=/(PointerCapture)$|Capture$/i,ci=0,Gs=vo(!1),Zs=vo(!0),Ru=0;const Jl=Object.freeze(Object.defineProperty({__proto__:null,Component:Lt,Fragment:Ot,cloneElement:zl,createContext:$l,createElement:Qs,createRef:jl,h:Qs,hydrate:Pu,get isValidElement(){return yu},get options(){return $},render:Tu,toChildArray:Au},Symbol.toStringTag,{value:"Module"})),X=Nt(Jl);var ve={};const xt=Nt(Il);var he,V,mn,wo,Ue=0,Ou=[],J=$,Eo=J.__b,Ro=J.__r,So=J.diffed,Co=J.__c,ko=J.unmount,Io=J.__;function De(e,t){J.__h&&J.__h(V,e,Ue||t),Ue=0;var r=V.__H||(V.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function xu(e){return Ue=1,Fu(Du,e)}function Fu(e,t,r){var n=De(he++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Du(void 0,t),function(f){var g=n.__N?n.__N[0]:n.__[0],u=n.t(g,f);g!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=V,!V.__f)){var c=function(f,g,u){if(!n.__c.__H)return!0;var h=n.__c.__H.__.filter(function(l){return!!l.__c});if(h.every(function(l){return!l.__N}))return!o||o.call(this,f,g,u);var s=n.__c.props!==f;return h.forEach(function(l){if(l.__N){var i=l.__[0];l.__=l.__N,l.__N=void 0,i!==l.__[0]&&(s=!0)}}),o&&o.call(this,f,g,u)||s};V.__f=!0;var o=V.shouldComponentUpdate,a=V.componentWillUpdate;V.componentWillUpdate=function(f,g,u){if(this.__e){var h=o;o=void 0,c(f,g,u),o=h}a&&a.call(this,f,g,u)},V.shouldComponentUpdate=c}return n.__N||n.__}function Gl(e,t){var r=De(he++,3);!J.__s&&fi(r.__H,t)&&(r.__=e,r.u=t,V.__H.__h.push(r))}function Bu(e,t){var r=De(he++,4);!J.__s&&fi(r.__H,t)&&(r.__=e,r.u=t,V.__h.push(r))}function Zl(e){return Ue=5,hi(function(){return{current:e}},[])}function Ql(e,t,r){Ue=6,Bu(function(){if(typeof e=="function"){var n=e(t());return function(){e(null),n&&typeof n=="function"&&n()}}if(e)return e.current=t(),function(){return e.current=null}},r==null?r:r.concat(e))}function hi(e,t){var r=De(he++,7);return fi(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Kl(e,t){return Ue=8,hi(function(){return e},t)}function Xl(e){var t=V.context[e.__c],r=De(he++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(V)),t.props.value):e.__}function Yl(e,t){J.useDebugValue&&J.useDebugValue(t?t(e):e)}function ed(e){var t=De(he++,10),r=xu();return t.__=e,V.componentDidCatch||(V.componentDidCatch=function(n,c){t.__&&t.__(n,c),r[1](n)}),[r[0],function(){r[1](void 0)}]}function td(){var e=De(he++,11);if(!e.__){for(var t=V.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function rd(){for(var e;e=Ou.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(nr),e.__H.__h.forEach(Ys),e.__H.__h=[]}catch(t){e.__H.__h=[],J.__e(t,e.__v)}}J.__b=function(e){V=null,Eo&&Eo(e)},J.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Io&&Io(e,t)},J.__r=function(e){Ro&&Ro(e),he=0;var t=(V=e.__c).__H;t&&(mn===V?(t.__h=[],V.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(nr),t.__h.forEach(Ys),t.__h=[],he=0)),mn=V},J.diffed=function(e){So&&So(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ou.push(t)!==1&&wo===J.requestAnimationFrame||((wo=J.requestAnimationFrame)||nd)(rd)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),mn=V=null},J.__c=function(e,t){t.some(function(r){try{r.__h.forEach(nr),r.__h=r.__h.filter(function(n){return!n.__||Ys(n)})}catch(n){t.some(function(c){c.__h&&(c.__h=[])}),t=[],J.__e(n,r.__v)}}),Co&&Co(e,t)},J.unmount=function(e){ko&&ko(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{nr(n)}catch(c){t=c}}),r.__H=void 0,t&&J.__e(t,r.__v))};var Ao=typeof requestAnimationFrame=="function";function nd(e){var t,r=function(){clearTimeout(n),Ao&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);Ao&&(t=requestAnimationFrame(r))}function nr(e){var t=V,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),V=t}function Ys(e){var t=V;e.__c=e.__(),V=t}function fi(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Du(e,t){return typeof t=="function"?t(e):t}const sd=Object.freeze(Object.defineProperty({__proto__:null,useCallback:Kl,useContext:Xl,useDebugValue:Yl,useEffect:Gl,useErrorBoundary:ed,useId:td,useImperativeHandle:Ql,useLayoutEffect:Bu,useMemo:hi,useReducer:Fu,useRef:Zl,useState:xu},Symbol.toStringTag,{value:"Module"})),ur=Nt(sd);var le={},ut={},Lo;function id(){if(Lo)return ut;Lo=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.CloseIcon=void 0;const e=X;function t(r){return(0,e.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}return ut.CloseIcon=t,ut}var lt={},Mo;function od(){if(Mo)return lt;Mo=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.CoinbaseWalletRound=void 0;const e=X;function t(r){return(0,e.h)("svg",Object.assign({width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.h)("circle",{cx:"14",cy:"14",r:"14",fill:"#0052FF"}),(0,e.h)("path",{d:"M23.8521 14.0003C23.8521 19.455 19.455 23.8521 14.0003 23.8521C8.54559 23.8521 4.14844 19.455 4.14844 14.0003C4.14844 8.54559 8.54559 4.14844 14.0003 4.14844C19.455 4.14844 23.8521 8.54559 23.8521 14.0003Z",fill:"white"}),(0,e.h)("path",{d:"M11.1855 12.5042C11.1855 12.0477 11.1855 11.7942 11.2835 11.642C11.3814 11.4899 11.4793 11.3377 11.6261 11.287C11.8219 11.1855 12.0178 11.1855 12.5073 11.1855H15.4934C15.983 11.1855 16.1788 11.1855 16.3746 11.287C16.5215 11.3884 16.6683 11.4899 16.7173 11.642C16.8152 11.8449 16.8152 12.0477 16.8152 12.5042V15.4965C16.8152 15.953 16.8152 16.2066 16.7173 16.3587C16.6194 16.5109 16.5215 16.663 16.3746 16.7137C16.1788 16.8152 15.983 16.8152 15.4934 16.8152H12.5073C12.0178 16.8152 11.8219 16.8152 11.6261 16.7137C11.4793 16.6123 11.3324 16.5109 11.2835 16.3587C11.1855 16.1558 11.1855 15.953 11.1855 15.4965V12.5042Z",fill:"#0052FF"}))}return lt.CoinbaseWalletRound=t,lt}var dt={},No;function ad(){if(No)return dt;No=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.QRCodeIcon=void 0;const e=X;function t(r){return(0,e.h)("svg",Object.assign({width:"18",height:"18",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.h)("path",{d:"M3 3V8.99939L5 8.99996V5H9V3H3Z"}),(0,e.h)("path",{d:"M15 21L21 21V15.0006L19 15V19L15 19V21Z"}),(0,e.h)("path",{d:"M21 9H19V5H15.0006L15 3H21V9Z"}),(0,e.h)("path",{d:"M3 15V21H8.99939L8.99996 19H5L5 15H3Z"}))}return dt.QRCodeIcon=t,dt}var we={},_n,To;function cd(){if(To)return _n;To=1;function e(i){this.mode=r.MODE_8BIT_BYTE,this.data=i,this.parsedData=[];for(var p=0,m=this.data.length;p<m;p++){var _=[],d=this.data.charCodeAt(p);d>65536?(_[0]=240|(d&1835008)>>>18,_[1]=128|(d&258048)>>>12,_[2]=128|(d&4032)>>>6,_[3]=128|d&63):d>2048?(_[0]=224|(d&61440)>>>12,_[1]=128|(d&4032)>>>6,_[2]=128|d&63):d>128?(_[0]=192|(d&1984)>>>6,_[1]=128|d&63):_[0]=d,this.parsedData.push(_)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}e.prototype={getLength:function(i){return this.parsedData.length},write:function(i){for(var p=0,m=this.parsedData.length;p<m;p++)i.put(this.parsedData[p],8)}};function t(i,p){this.typeNumber=i,this.errorCorrectLevel=p,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}t.prototype={addData:function(i){var p=new e(i);this.dataList.push(p),this.dataCache=null},isDark:function(i,p){if(i<0||this.moduleCount<=i||p<0||this.moduleCount<=p)throw new Error(i+","+p);return this.modules[i][p]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(i,p){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var m=0;m<this.moduleCount;m++){this.modules[m]=new Array(this.moduleCount);for(var _=0;_<this.moduleCount;_++)this.modules[m][_]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(i,p),this.typeNumber>=7&&this.setupTypeNumber(i),this.dataCache==null&&(this.dataCache=t.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,p)},setupPositionProbePattern:function(i,p){for(var m=-1;m<=7;m++)if(!(i+m<=-1||this.moduleCount<=i+m))for(var _=-1;_<=7;_++)p+_<=-1||this.moduleCount<=p+_||(0<=m&&m<=6&&(_==0||_==6)||0<=_&&_<=6&&(m==0||m==6)||2<=m&&m<=4&&2<=_&&_<=4?this.modules[i+m][p+_]=!0:this.modules[i+m][p+_]=!1)},getBestMaskPattern:function(){for(var i=0,p=0,m=0;m<8;m++){this.makeImpl(!0,m);var _=o.getLostPoint(this);(m==0||i>_)&&(i=_,p=m)}return p},createMovieClip:function(i,p,m){var _=i.createEmptyMovieClip(p,m),d=1;this.make();for(var b=0;b<this.modules.length;b++)for(var y=b*d,v=0;v<this.modules[b].length;v++){var w=v*d,S=this.modules[b][v];S&&(_.beginFill(0,100),_.moveTo(w,y),_.lineTo(w+d,y),_.lineTo(w+d,y+d),_.lineTo(w,y+d),_.endFill())}return _},setupTimingPattern:function(){for(var i=8;i<this.moduleCount-8;i++)this.modules[i][6]==null&&(this.modules[i][6]=i%2==0);for(var p=8;p<this.moduleCount-8;p++)this.modules[6][p]==null&&(this.modules[6][p]=p%2==0)},setupPositionAdjustPattern:function(){for(var i=o.getPatternPosition(this.typeNumber),p=0;p<i.length;p++)for(var m=0;m<i.length;m++){var _=i[p],d=i[m];if(this.modules[_][d]==null)for(var b=-2;b<=2;b++)for(var y=-2;y<=2;y++)b==-2||b==2||y==-2||y==2||b==0&&y==0?this.modules[_+b][d+y]=!0:this.modules[_+b][d+y]=!1}},setupTypeNumber:function(i){for(var p=o.getBCHTypeNumber(this.typeNumber),m=0;m<18;m++){var _=!i&&(p>>m&1)==1;this.modules[Math.floor(m/3)][m%3+this.moduleCount-8-3]=_}for(var m=0;m<18;m++){var _=!i&&(p>>m&1)==1;this.modules[m%3+this.moduleCount-8-3][Math.floor(m/3)]=_}},setupTypeInfo:function(i,p){for(var m=this.errorCorrectLevel<<3|p,_=o.getBCHTypeInfo(m),d=0;d<15;d++){var b=!i&&(_>>d&1)==1;d<6?this.modules[d][8]=b:d<8?this.modules[d+1][8]=b:this.modules[this.moduleCount-15+d][8]=b}for(var d=0;d<15;d++){var b=!i&&(_>>d&1)==1;d<8?this.modules[8][this.moduleCount-d-1]=b:d<9?this.modules[8][15-d-1+1]=b:this.modules[8][15-d-1]=b}this.modules[this.moduleCount-8][8]=!i},mapData:function(i,p){for(var m=-1,_=this.moduleCount-1,d=7,b=0,y=this.moduleCount-1;y>0;y-=2)for(y==6&&y--;;){for(var v=0;v<2;v++)if(this.modules[_][y-v]==null){var w=!1;b<i.length&&(w=(i[b]>>>d&1)==1);var S=o.getMask(p,_,y-v);S&&(w=!w),this.modules[_][y-v]=w,d--,d==-1&&(b++,d=7)}if(_+=m,_<0||this.moduleCount<=_){_-=m,m=-m;break}}}},t.PAD0=236,t.PAD1=17,t.createData=function(i,p,m){for(var _=u.getRSBlocks(i,p),d=new h,b=0;b<m.length;b++){var y=m[b];d.put(y.mode,4),d.put(y.getLength(),o.getLengthInBits(y.mode,i)),y.write(d)}for(var v=0,b=0;b<_.length;b++)v+=_[b].dataCount;if(d.getLengthInBits()>v*8)throw new Error("code length overflow. ("+d.getLengthInBits()+">"+v*8+")");for(d.getLengthInBits()+4<=v*8&&d.put(0,4);d.getLengthInBits()%8!=0;)d.putBit(!1);for(;!(d.getLengthInBits()>=v*8||(d.put(t.PAD0,8),d.getLengthInBits()>=v*8));)d.put(t.PAD1,8);return t.createBytes(d,_)},t.createBytes=function(i,p){for(var m=0,_=0,d=0,b=new Array(p.length),y=new Array(p.length),v=0;v<p.length;v++){var w=p[v].dataCount,S=p[v].totalCount-w;_=Math.max(_,w),d=Math.max(d,S),b[v]=new Array(w);for(var E=0;E<b[v].length;E++)b[v][E]=255&i.buffer[E+m];m+=w;var C=o.getErrorCorrectPolynomial(S),T=new g(b[v],C.getLength()-1),N=T.mod(C);y[v]=new Array(C.getLength()-1);for(var E=0;E<y[v].length;E++){var P=E+N.getLength()-y[v].length;y[v][E]=P>=0?N.get(P):0}}for(var F=0,E=0;E<p.length;E++)F+=p[E].totalCount;for(var z=new Array(F),A=0,E=0;E<_;E++)for(var v=0;v<p.length;v++)E<b[v].length&&(z[A++]=b[v][E]);for(var E=0;E<d;E++)for(var v=0;v<p.length;v++)E<y[v].length&&(z[A++]=y[v][E]);return z};for(var r={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},n={L:1,M:0,Q:3,H:2},c={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},o={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(i){for(var p=i<<10;o.getBCHDigit(p)-o.getBCHDigit(o.G15)>=0;)p^=o.G15<<o.getBCHDigit(p)-o.getBCHDigit(o.G15);return(i<<10|p)^o.G15_MASK},getBCHTypeNumber:function(i){for(var p=i<<12;o.getBCHDigit(p)-o.getBCHDigit(o.G18)>=0;)p^=o.G18<<o.getBCHDigit(p)-o.getBCHDigit(o.G18);return i<<12|p},getBCHDigit:function(i){for(var p=0;i!=0;)p++,i>>>=1;return p},getPatternPosition:function(i){return o.PATTERN_POSITION_TABLE[i-1]},getMask:function(i,p,m){switch(i){case c.PATTERN000:return(p+m)%2==0;case c.PATTERN001:return p%2==0;case c.PATTERN010:return m%3==0;case c.PATTERN011:return(p+m)%3==0;case c.PATTERN100:return(Math.floor(p/2)+Math.floor(m/3))%2==0;case c.PATTERN101:return p*m%2+p*m%3==0;case c.PATTERN110:return(p*m%2+p*m%3)%2==0;case c.PATTERN111:return(p*m%3+(p+m)%2)%2==0;default:throw new Error("bad maskPattern:"+i)}},getErrorCorrectPolynomial:function(i){for(var p=new g([1],0),m=0;m<i;m++)p=p.multiply(new g([1,a.gexp(m)],0));return p},getLengthInBits:function(i,p){if(1<=p&&p<10)switch(i){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:return 8;case r.MODE_KANJI:return 8;default:throw new Error("mode:"+i)}else if(p<27)switch(i){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw new Error("mode:"+i)}else if(p<41)switch(i){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw new Error("mode:"+i)}else throw new Error("type:"+p)},getLostPoint:function(i){for(var p=i.getModuleCount(),m=0,_=0;_<p;_++)for(var d=0;d<p;d++){for(var b=0,y=i.isDark(_,d),v=-1;v<=1;v++)if(!(_+v<0||p<=_+v))for(var w=-1;w<=1;w++)d+w<0||p<=d+w||v==0&&w==0||y==i.isDark(_+v,d+w)&&b++;b>5&&(m+=3+b-5)}for(var _=0;_<p-1;_++)for(var d=0;d<p-1;d++){var S=0;i.isDark(_,d)&&S++,i.isDark(_+1,d)&&S++,i.isDark(_,d+1)&&S++,i.isDark(_+1,d+1)&&S++,(S==0||S==4)&&(m+=3)}for(var _=0;_<p;_++)for(var d=0;d<p-6;d++)i.isDark(_,d)&&!i.isDark(_,d+1)&&i.isDark(_,d+2)&&i.isDark(_,d+3)&&i.isDark(_,d+4)&&!i.isDark(_,d+5)&&i.isDark(_,d+6)&&(m+=40);for(var d=0;d<p;d++)for(var _=0;_<p-6;_++)i.isDark(_,d)&&!i.isDark(_+1,d)&&i.isDark(_+2,d)&&i.isDark(_+3,d)&&i.isDark(_+4,d)&&!i.isDark(_+5,d)&&i.isDark(_+6,d)&&(m+=40);for(var E=0,d=0;d<p;d++)for(var _=0;_<p;_++)i.isDark(_,d)&&E++;var C=Math.abs(100*E/p/p-50)/5;return m+=C*10,m}},a={glog:function(i){if(i<1)throw new Error("glog("+i+")");return a.LOG_TABLE[i]},gexp:function(i){for(;i<0;)i+=255;for(;i>=256;)i-=255;return a.EXP_TABLE[i]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},f=0;f<8;f++)a.EXP_TABLE[f]=1<<f;for(var f=8;f<256;f++)a.EXP_TABLE[f]=a.EXP_TABLE[f-4]^a.EXP_TABLE[f-5]^a.EXP_TABLE[f-6]^a.EXP_TABLE[f-8];for(var f=0;f<255;f++)a.LOG_TABLE[a.EXP_TABLE[f]]=f;function g(i,p){if(i.length==null)throw new Error(i.length+"/"+p);for(var m=0;m<i.length&&i[m]==0;)m++;this.num=new Array(i.length-m+p);for(var _=0;_<i.length-m;_++)this.num[_]=i[_+m]}g.prototype={get:function(i){return this.num[i]},getLength:function(){return this.num.length},multiply:function(i){for(var p=new Array(this.getLength()+i.getLength()-1),m=0;m<this.getLength();m++)for(var _=0;_<i.getLength();_++)p[m+_]^=a.gexp(a.glog(this.get(m))+a.glog(i.get(_)));return new g(p,0)},mod:function(i){if(this.getLength()-i.getLength()<0)return this;for(var p=a.glog(this.get(0))-a.glog(i.get(0)),m=new Array(this.getLength()),_=0;_<this.getLength();_++)m[_]=this.get(_);for(var _=0;_<i.getLength();_++)m[_]^=a.gexp(a.glog(i.get(_))+p);return new g(m,0).mod(i)}};function u(i,p){this.totalCount=i,this.dataCount=p}u.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],u.getRSBlocks=function(i,p){var m=u.getRsBlockTable(i,p);if(m==null)throw new Error("bad rs block @ typeNumber:"+i+"/errorCorrectLevel:"+p);for(var _=m.length/3,d=[],b=0;b<_;b++)for(var y=m[b*3+0],v=m[b*3+1],w=m[b*3+2],S=0;S<y;S++)d.push(new u(v,w));return d},u.getRsBlockTable=function(i,p){switch(p){case n.L:return u.RS_BLOCK_TABLE[(i-1)*4+0];case n.M:return u.RS_BLOCK_TABLE[(i-1)*4+1];case n.Q:return u.RS_BLOCK_TABLE[(i-1)*4+2];case n.H:return u.RS_BLOCK_TABLE[(i-1)*4+3];default:return}};function h(){this.buffer=[],this.length=0}h.prototype={get:function(i){var p=Math.floor(i/8);return(this.buffer[p]>>>7-i%8&1)==1},put:function(i,p){for(var m=0;m<p;m++)this.putBit((i>>>p-m-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(i){var p=Math.floor(this.length/8);this.buffer.length<=p&&this.buffer.push(0),i&&(this.buffer[p]|=128>>>this.length%8),this.length++}};var s=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function l(i){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},typeof i=="string"&&(i={content:i}),i)for(var p in i)this.options[p]=i[p];if(typeof this.options.content!="string")throw new Error("Expected 'content' as string!");if(this.options.content.length===0)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");function m(w){switch(w){case"L":return n.L;case"M":return n.M;case"Q":return n.Q;case"H":return n.H;default:throw new Error("Unknwon error correction level: "+w)}}function _(w,S){for(var E=d(w),C=1,T=0,N=0,P=s.length;N<=P;N++){var F=s[N];if(!F)throw new Error("Content too long: expected "+T+" but got "+E);switch(S){case"L":T=F[0];break;case"M":T=F[1];break;case"Q":T=F[2];break;case"H":T=F[3];break;default:throw new Error("Unknwon error correction level: "+S)}if(E<=T)break;C++}if(C>s.length)throw new Error("Content too long");return C}function d(w){var S=encodeURI(w).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return S.length+(S.length!=w?3:0)}var b=this.options.content,y=_(b,this.options.ecl),v=m(this.options.ecl);this.qrcode=new t(y,v),this.qrcode.addData(b),this.qrcode.make()}return l.prototype.svg=function(i){var p=this.options||{},m=this.qrcode.modules;typeof i>"u"&&(i={container:p.container||"svg"});for(var _=typeof p.pretty<"u"?!!p.pretty:!0,d=_?" ":"",b=_?`\r
2
2
  `:"",y=p.width,v=p.height,w=m.length,S=y/(w+2*p.padding),E=v/(w+2*p.padding),C=typeof p.join<"u"?!!p.join:!1,T=typeof p.swap<"u"?!!p.swap:!1,N=typeof p.xmlDeclaration<"u"?!!p.xmlDeclaration:!0,P=typeof p.predefined<"u"?!!p.predefined:!1,F=P?d+'<defs><path id="qrmodule" d="M0 0 h'+E+" v"+S+' H0 z" style="fill:'+p.color+';shape-rendering:crispEdges;" /></defs>'+b:"",z=d+'<rect x="0" y="0" width="'+y+'" height="'+v+'" style="fill:'+p.background+';shape-rendering:crispEdges;"/>'+b,A="",k="",R=0;R<w;R++)for(var I=0;I<w;I++){var M=m[I][R];if(M){var L=I*S+p.padding*S,O=R*E+p.padding*E;if(T){var j=L;L=O,O=j}if(C){var B=S+L,H=E+O;L=Number.isInteger(L)?Number(L):L.toFixed(2),O=Number.isInteger(O)?Number(O):O.toFixed(2),B=Number.isInteger(B)?Number(B):B.toFixed(2),H=Number.isInteger(H)?Number(H):H.toFixed(2),k+="M"+L+","+O+" V"+H+" H"+B+" V"+O+" H"+L+" Z "}else P?A+=d+'<use x="'+L.toString()+'" y="'+O.toString()+'" href="#qrmodule" />'+b:A+=d+'<rect x="'+L.toString()+'" y="'+O.toString()+'" width="'+S+'" height="'+E+'" style="fill:'+p.color+';shape-rendering:crispEdges;"/>'+b}}C&&(A=d+'<path x="0" y="0" style="fill:'+p.color+';shape-rendering:crispEdges;" d="'+k+'" />');let W="";if(this.options.image!==void 0&&this.options.image.svg){const te=y*this.options.image.width/100,ze=v*this.options.image.height/100,jt=y/2-te/2,Ht=v/2-ze/2;W+=`<svg x="${jt}" y="${Ht}" width="${te}" height="${ze}" viewBox="0 0 100 100" preserveAspectRatio="xMinYMin meet">`,W+=this.options.image.svg+b,W+="</svg>"}var D="";switch(i.container){case"svg":N&&(D+='<?xml version="1.0" standalone="yes"?>'+b),D+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+y+'" height="'+v+'">'+b,D+=F+z+A,D+=W,D+="</svg>";break;case"svg-viewbox":N&&(D+='<?xml version="1.0" standalone="yes"?>'+b),D+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 '+y+" "+v+'">'+b,D+=F+z+A,D+=W,D+="</svg>";break;case"g":D+='<g width="'+y+'" height="'+v+'">'+b,D+=F+z+A,D+=W,D+="</g>";break;default:D+=(F+z+A+W).replace(/^\s+/,"");break}return D},_n=l,_n}var Po;function ud(){if(Po)return we;Po=1;var e=we&&we.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(we,"__esModule",{value:!0}),we.QRCode=void 0;const t=X,r=ur,n=e(cd()),c=o=>{const[a,f]=(0,r.useState)("");return(0,r.useEffect)(()=>{var g,u;const h=new n.default({content:o.content,background:o.bgColor||"#ffffff",color:o.fgColor||"#000000",container:"svg",ecl:"M",width:(g=o.width)!==null&&g!==void 0?g:256,height:(u=o.height)!==null&&u!==void 0?u:256,padding:0,image:o.image}),s=q.from(h.svg(),"utf8").toString("base64");f(`data:image/svg+xml;base64,${s}`)},[o.bgColor,o.content,o.fgColor,o.height,o.image,o.width]),a?(0,t.h)("img",{src:a,alt:"QR Code"}):null};return we.QRCode=c,we}var Ee={},Vt={},Oo;function ld(){return Oo||(Oo=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}"),Vt}var xo;function dd(){if(xo)return Ee;xo=1;var e=Ee&&Ee.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.Spinner=void 0;const t=X,r=e(ld()),n=c=>{var o;const a=(o=c.size)!==null&&o!==void 0?o:64,f=c.color||"#000";return(0,t.h)("div",{class:"-cbwsdk-spinner"},(0,t.h)("style",null,r.default),(0,t.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:a,height:a}},(0,t.h)("circle",{style:{cx:50,cy:50,r:45,stroke:f}})))};return Ee.Spinner=n,Ee}var zt={},Fo;function hd(){return Fo||(Fo=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer;border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}"),zt}var Bo;function fd(){if(Bo)return le;Bo=1;var e=le&&le.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(le,"__esModule",{value:!0}),le.CoinbaseWalletSteps=le.ConnectContent=void 0;const t=e(xt),r=X,n=fe(),c=si(),o=id(),a=od(),f=ad(),g=ud(),u=dd(),h=e(hd()),s={title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",steps:m},l=_=>_==="light"?"#FFFFFF":"#0A0B0D";function i(_){const{theme:d}=_,b=(0,n.createQrUrl)(_.sessionId,_.sessionSecret,_.linkAPIUrl,_.isParentConnection,_.version,_.chainId),y=s.steps;return(0,r.h)("div",{"data-testid":"connect-content",className:(0,t.default)("-cbwsdk-connect-content",d)},(0,r.h)("style",null,h.default),(0,r.h)("div",{className:"-cbwsdk-connect-content-header"},(0,r.h)("h2",{className:(0,t.default)("-cbwsdk-connect-content-heading",d)},"Scan to connect with our mobile app"),_.onCancel&&(0,r.h)("button",{type:"button",className:"-cbwsdk-cancel-button",onClick:_.onCancel},(0,r.h)(o.CloseIcon,{fill:d==="light"?"#0A0B0D":"#FFFFFF"}))),(0,r.h)("div",{className:"-cbwsdk-connect-content-layout"},(0,r.h)("div",{className:"-cbwsdk-connect-content-column-left"},(0,r.h)(p,{title:s.title,description:s.description,theme:d})),(0,r.h)("div",{className:"-cbwsdk-connect-content-column-right"},(0,r.h)("div",{className:"-cbwsdk-connect-content-qr-wrapper"},(0,r.h)(g.QRCode,{content:b,width:200,height:200,fgColor:"#000",bgColor:"transparent"}),(0,r.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:c.LIB_VERSION}),(0,r.h)("input",{type:"hidden",value:b})),(0,r.h)(y,{theme:d}),!_.isConnected&&(0,r.h)("div",{"data-testid":"connecting-spinner",className:(0,t.default)("-cbwsdk-connect-content-qr-connecting",d)},(0,r.h)(u.Spinner,{size:36,color:d==="dark"?"#FFF":"#000"}),(0,r.h)("p",null,"Connecting...")))))}le.ConnectContent=i;function p({title:_,description:d,theme:b}){return(0,r.h)("div",{className:(0,t.default)("-cbwsdk-connect-item",b)},(0,r.h)("div",null,(0,r.h)(a.CoinbaseWalletRound,null)),(0,r.h)("div",{className:"-cbwsdk-connect-item-copy-wrapper"},(0,r.h)("h3",{className:"-cbwsdk-connect-item-title"},_),(0,r.h)("p",{className:"-cbwsdk-connect-item-description"},d)))}function m({theme:_}){return(0,r.h)("ol",{className:"-cbwsdk-wallet-steps"},(0,r.h)("li",{className:(0,t.default)("-cbwsdk-wallet-steps-item",_)},(0,r.h)("div",{className:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,r.h)("li",{className:(0,t.default)("-cbwsdk-wallet-steps-item",_)},(0,r.h)("div",{className:"-cbwsdk-wallet-steps-item-wrapper"},(0,r.h)("span",null,"Tap ",(0,r.h)("strong",null,"Scan")," "),(0,r.h)("span",{className:(0,t.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",_)},(0,r.h)(f.QRCodeIcon,{fill:l(_)})))))}return le.CoinbaseWalletSteps=m,le}var Re={},ht={},Do;function gd(){if(Do)return ht;Do=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.ArrowLeftIcon=void 0;const e=X;function t(r){return(0,e.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}return ht.ArrowLeftIcon=t,ht}var ft={},qo;function pd(){if(qo)return ft;qo=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.LaptopIcon=void 0;const e=X;function t(r){return(0,e.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,e.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}return ft.LaptopIcon=t,ft}var gt={},jo;function md(){if(jo)return gt;jo=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.SafeIcon=void 0;const e=X;function t(r){return(0,e.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}return gt.SafeIcon=t,gt}var $t={},Ho;function _d(){return Ho||(Ho=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.default=".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}"),$t}var Uo;function bd(){if(Uo)return Re;Uo=1;var e=Re&&Re.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Re,"__esModule",{value:!0}),Re.TryExtensionContent=void 0;const t=e(xt),r=X,n=ur,c=gd(),o=pd(),a=md(),f=e(_d());function g({theme:u}){const[h,s]=(0,n.useState)(!1),l=(0,n.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),i=(0,n.useCallback)(()=>{h?window.location.reload():(l(),s(!0))},[l,h]);return(0,r.h)("div",{class:(0,t.default)("-cbwsdk-try-extension",u)},(0,r.h)("style",null,f.default),(0,r.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,r.h)("h3",{class:(0,t.default)("-cbwsdk-try-extension-heading",u)},"Or try the Coinbase Wallet browser extension"),(0,r.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,r.h)("button",{class:(0,t.default)("-cbwsdk-try-extension-cta",u),onClick:i},h?"Refresh":"Install"),(0,r.h)("div",null,!h&&(0,r.h)(c.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:u==="light"?"#0052FF":"#588AF5"})))),(0,r.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,r.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,r.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,r.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,r.h)("span",{class:(0,t.default)("-cbwsdk-try-extension-list-item-icon",u)},(0,r.h)(o.LaptopIcon,{fill:u==="light"?"#0A0B0D":"#FFFFFF"}))),(0,r.h)("div",{class:(0,t.default)("-cbwsdk-try-extension-list-item-copy",u)},"Connect with dapps with just one click on your desktop browser")),(0,r.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,r.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,r.h)("span",{class:(0,t.default)("-cbwsdk-try-extension-list-item-icon",u)},(0,r.h)(a.SafeIcon,{fill:u==="light"?"#0A0B0D":"#FFFFFF"}))),(0,r.h)("div",{class:(0,t.default)("-cbwsdk-try-extension-list-item-copy",u)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}return Re.TryExtensionContent=g,Re}var Jt={},Wo;function yd(){return Wo||(Wo=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}"),Jt}var Vo;function vd(){if(Vo)return ve;Vo=1;var e=ve&&ve.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.ConnectDialog=void 0;const t=e(xt),r=X,n=ur,c=fd(),o=bd(),a=e(yd()),f=g=>{const{isOpen:u,darkMode:h}=g,[s,l]=(0,n.useState)(!u),[i,p]=(0,n.useState)(!u);(0,n.useEffect)(()=>{const _=[window.setTimeout(()=>{p(!u)},10)];return u?l(!1):_.push(window.setTimeout(()=>{l(!0)},360)),()=>{_.forEach(window.clearTimeout)}},[u]);const m=h?"dark":"light";return(0,r.h)("div",{class:(0,t.default)("-cbwsdk-connect-dialog-container",s&&"-cbwsdk-connect-dialog-container-hidden")},(0,r.h)("style",null,a.default),(0,r.h)("div",{class:(0,t.default)("-cbwsdk-connect-dialog-backdrop",m,i&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,r.h)("div",{class:"-cbwsdk-connect-dialog"},(0,r.h)("div",{class:(0,t.default)("-cbwsdk-connect-dialog-box",i&&"-cbwsdk-connect-dialog-box-hidden")},g.connectDisabled?null:(0,r.h)(c.ConnectContent,{theme:m,version:g.version,sessionId:g.sessionId,sessionSecret:g.sessionSecret,linkAPIUrl:g.linkAPIUrl,isConnected:g.isConnected,isParentConnection:g.isParentConnection,chainId:g.chainId,onCancel:g.onCancel}),(0,r.h)(o.TryExtensionContent,{theme:m}))))};return ve.ConnectDialog=f,ve}var zo;function wd(){if(zo)return ct;zo=1,Object.defineProperty(ct,"__esModule",{value:!0}),ct.LinkFlow=void 0;const e=X,t=vd();let r=class{constructor(c){this.connected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=c.darkMode,this.version=c.version,this.sessionId=c.sessionId,this.sessionSecret=c.sessionSecret,this.linkAPIUrl=c.linkAPIUrl,this.isParentConnection=c.isParentConnection}attach(c){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",c.appendChild(this.root),this.render()}setConnected(c){this.connected!==c&&(this.connected=c,this.render())}setChainId(c){this.chainId!==c&&(this.chainId=c,this.render())}detach(){var c;this.root&&((0,e.render)(null,this.root),(c=this.root.parentElement)===null||c===void 0||c.removeChild(this.root))}setConnectDisabled(c){this.connectDisabled=c}open(c){this.isOpen=!0,this.onCancel=c.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){this.root&&(0,e.render)((0,e.h)(t.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.connected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)}};return ct.LinkFlow=r,ct}var pt={},Gt={},$o;function Ed(){return $o||($o=1,Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.default=".-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}"),Gt}var Jo;function qu(){return Jo||(Jo=1,function(e){var t=pt&&pt.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.SnackbarInstance=e.SnackbarContainer=e.Snackbar=void 0;const r=t(xt),n=X,c=ur,o=t(Ed()),a="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",f="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";class g{constructor(l){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=l.darkMode}attach(l){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",l.appendChild(this.root),this.render()}presentItem(l){const i=this.nextItemKey++;return this.items.set(i,l),this.render(),()=>{this.items.delete(i),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,n.render)((0,n.h)("div",null,(0,n.h)(e.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([l,i])=>(0,n.h)(e.SnackbarInstance,Object.assign({},i,{key:l}))))),this.root)}}e.Snackbar=g;const u=s=>(0,n.h)("div",{class:(0,r.default)("-cbwsdk-snackbar-container")},(0,n.h)("style",null,o.default),(0,n.h)("div",{class:"-cbwsdk-snackbar"},s.children));e.SnackbarContainer=u;const h=({autoExpand:s,message:l,menuItems:i})=>{const[p,m]=(0,c.useState)(!0),[_,d]=(0,c.useState)(s??!1);(0,c.useEffect)(()=>{const y=[window.setTimeout(()=>{m(!1)},1),window.setTimeout(()=>{d(!0)},1e4)];return()=>{y.forEach(window.clearTimeout)}});const b=()=>{d(!_)};return(0,n.h)("div",{class:(0,r.default)("-cbwsdk-snackbar-instance",p&&"-cbwsdk-snackbar-instance-hidden",_&&"-cbwsdk-snackbar-instance-expanded")},(0,n.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:b},(0,n.h)("img",{src:a,class:"-cbwsdk-snackbar-instance-header-cblogo"})," ",(0,n.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},l),(0,n.h)("div",{class:"-gear-container"},!_&&(0,n.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,n.h)("img",{src:f,class:"-gear-icon",title:"Expand"}))),i&&i.length>0&&(0,n.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},i.map((y,v)=>(0,n.h)("div",{class:(0,r.default)("-cbwsdk-snackbar-instance-menu-item",y.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:y.onClick,key:v},(0,n.h)("svg",{width:y.svgWidth,height:y.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("path",{"fill-rule":y.defaultFillRule,"clip-rule":y.defaultClipRule,d:y.path,fill:"#AAAAAA"})),(0,n.h)("span",{class:(0,r.default)("-cbwsdk-snackbar-instance-menu-item-info",y.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},y.info)))))};e.SnackbarInstance=h}(pt)),pt}var Go;function ju(){if(Go)return at;Go=1,Object.defineProperty(at,"__esModule",{value:!0}),at.WalletLinkRelayUI=void 0;const e=_u(),t=wd(),r=qu();let n=class{constructor(o){this.standalone=null,this.attached=!1,this.snackbar=new r.Snackbar({darkMode:o.darkMode}),this.linkFlow=new t.LinkFlow({darkMode:o.darkMode,version:o.version,sessionId:o.session.id,sessionSecret:o.session.secret,linkAPIUrl:o.linkAPIUrl,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");const o=document.documentElement,a=document.createElement("div");a.className="-cbwsdk-css-reset",o.appendChild(a),this.linkFlow.attach(a),this.snackbar.attach(a),this.attached=!0,(0,e.injectCssReset)()}setConnected(o){this.linkFlow.setConnected(o)}setChainId(o){this.linkFlow.setChainId(o)}setConnectDisabled(o){this.linkFlow.setConnectDisabled(o)}addEthereumChain(){}watchAsset(){}switchEthereumChain(){}requestEthereumAccounts(o){this.linkFlow.open({onCancel:o.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}showConnecting(o){let a;return o.isUnlinkedErrorState?a={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:o.onResetConnection}]}:a={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:o.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:o.onResetConnection}]},this.snackbar.presentItem(a)}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(o){this.standalone=o}isStandalone(){var o;return(o=this.standalone)!==null&&o!==void 0?o:!1}};return at.WalletLinkRelayUI=n,at}var Zo;function Hu(){if(Zo)return tt;Zo=1,Object.defineProperty(tt,"__esModule",{value:!0}),tt.WalletLinkRelay=void 0;const e=ar(),t=cr(),r=fe(),n=ii(),c=oi(),o=ai(),a=Bl(),f=ni(),g=ju();let u=class Fe extends c.RelayAbstract{constructor(s){var l;super(),this.accountsCallback=null,this.chainCallbackParams={chainId:"",jsonRpcUrl:""},this.chainCallback=null,this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.linkedUpdated=_=>{var d;this.isLinked=_;const b=this.storage.getItem(c.LOCAL_STORAGE_ADDRESSES_KEY);if(_&&(this.session.linked=_),this.isUnlinkedErrorState=!1,b){const y=b.split(" "),v=this.storage.getItem("IsStandaloneSigning")==="true";if(y[0]!==""&&!_&&this.session.linked&&!v){this.isUnlinkedErrorState=!0;const w=this.getSessionIdHash();(d=this.diagnostic)===null||d===void 0||d.log(n.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:w})}}},this.metadataUpdated=(_,d)=>{this.storage.setItem(_,d)},this.chainUpdated=(_,d)=>{this.chainCallbackParams.chainId===_&&this.chainCallbackParams.jsonRpcUrl===d||(this.chainCallbackParams={chainId:_,jsonRpcUrl:d},this.chainCallback&&this.chainCallback(_,d))},this.accountUpdated=_=>{this.accountsCallback&&this.accountsCallback([_]),Fe.accountRequestCallbackIds.size>0&&(Array.from(Fe.accountRequestCallbackIds.values()).forEach(d=>{const b={type:"WEB3_RESPONSE",id:d,response:{method:"requestEthereumAccounts",result:[_]}};this.invokeCallback(Object.assign(Object.assign({},b),{id:d}))}),Fe.accountRequestCallbackIds.clear())},this.connectedUpdated=_=>{this.ui.setConnected(_)},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=s.linkAPIUrl,this.storage=s.storage,this.options=s;const{session:i,ui:p,connection:m}=this.subscribe();this._session=i,this.connection=m,this.relayEventManager=s.relayEventManager,this.diagnostic=s.diagnosticLogger,this._reloadOnDisconnect=(l=s.reloadOnDisconnect)!==null&&l!==void 0?l:!0,this.ui=p}subscribe(){const s=o.Session.load(this.storage)||new o.Session(this.storage).save(),{linkAPIUrl:l,diagnostic:i}=this,p=new a.WalletLinkConnection({session:s,linkAPIUrl:l,diagnostic:i,listener:this}),{version:m,darkMode:_}=this.options,d=this.options.uiConstructor({linkAPIUrl:l,version:m,darkMode:_,session:s});return p.connect(),{session:s,ui:d,connection:p}}attachUI(){this.ui.attach()}resetAndReload(){Promise.race([this.connection.setSessionMetadata("__destroyed","1"),new Promise(s=>setTimeout(()=>s(null),1e3))]).then(()=>{var s,l;const i=this.ui.isStandalone();(s=this.diagnostic)===null||s===void 0||s.log(n.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();const p=o.Session.load(this.storage);if((p==null?void 0:p.id)===this._session.id?this.storage.clear():p&&((l=this.diagnostic)===null||l===void 0||l.log(n.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:o.Session.hash(p.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);const{session:m,ui:_,connection:d}=this.subscribe();this._session=m,this.connection=d,this.ui=_,i&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.options.headlessMode||this.attachUI()}).catch(s=>{var l;(l=this.diagnostic)===null||l===void 0||l.log(n.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${s}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(s,l){this.appName=s,this.appLogoUrl=l}getStorageItem(s){return this.storage.getItem(s)}get session(){return this._session}setStorageItem(s,l){this.storage.setItem(s,l)}signEthereumMessage(s,l,i,p){return this.sendRequest({method:"signEthereumMessage",params:{message:(0,r.hexStringFromBuffer)(s,!0),address:l,addPrefix:i,typedDataJson:p||null}})}ethereumAddressFromSignedMessage(s,l,i){return this.sendRequest({method:"ethereumAddressFromSignedMessage",params:{message:(0,r.hexStringFromBuffer)(s,!0),signature:(0,r.hexStringFromBuffer)(l,!0),addPrefix:i}})}signEthereumTransaction(s){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:s.fromAddress,toAddress:s.toAddress,weiValue:(0,r.bigIntStringFromBN)(s.weiValue),data:(0,r.hexStringFromBuffer)(s.data,!0),nonce:s.nonce,gasPriceInWei:s.gasPriceInWei?(0,r.bigIntStringFromBN)(s.gasPriceInWei):null,maxFeePerGas:s.gasPriceInWei?(0,r.bigIntStringFromBN)(s.gasPriceInWei):null,maxPriorityFeePerGas:s.gasPriceInWei?(0,r.bigIntStringFromBN)(s.gasPriceInWei):null,gasLimit:s.gasLimit?(0,r.bigIntStringFromBN)(s.gasLimit):null,chainId:s.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(s){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:s.fromAddress,toAddress:s.toAddress,weiValue:(0,r.bigIntStringFromBN)(s.weiValue),data:(0,r.hexStringFromBuffer)(s.data,!0),nonce:s.nonce,gasPriceInWei:s.gasPriceInWei?(0,r.bigIntStringFromBN)(s.gasPriceInWei):null,maxFeePerGas:s.maxFeePerGas?(0,r.bigIntStringFromBN)(s.maxFeePerGas):null,maxPriorityFeePerGas:s.maxPriorityFeePerGas?(0,r.bigIntStringFromBN)(s.maxPriorityFeePerGas):null,gasLimit:s.gasLimit?(0,r.bigIntStringFromBN)(s.gasLimit):null,chainId:s.chainId,shouldSubmit:!0}})}submitEthereumTransaction(s,l){return this.sendRequest({method:"submitEthereumTransaction",params:{signedTransaction:(0,r.hexStringFromBuffer)(s,!0),chainId:l}})}scanQRCode(s){return this.sendRequest({method:"scanQRCode",params:{regExp:s}})}getQRCodeUrl(){return(0,r.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(s,l){return this.sendRequest({method:"generic",params:{action:l,data:s}})}sendGenericMessage(s){return this.sendRequest(s)}sendRequest(s){let l=null;const i=(0,r.randomBytesHex)(8),p=_=>{this.publishWeb3RequestCanceledEvent(i),this.handleErrorResponse(i,s.method,_),l==null||l()};return{promise:new Promise((_,d)=>{this.ui.isStandalone()||(l=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:p,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(i,b=>{if(l==null||l(),(0,f.isErrorResponse)(b))return d(new Error(b.errorMessage));_(b)}),this.ui.isStandalone()?this.sendRequestStandalone(i,s):this.publishWeb3RequestEvent(i,s)}),cancel:p}}setConnectDisabled(s){this.ui.setConnectDisabled(s)}setAccountsCallback(s){this.accountsCallback=s}setChainCallback(s){this.chainCallback=s}setDappDefaultChainCallback(s){this.dappDefaultChain=s,this.ui instanceof g.WalletLinkRelayUI&&this.ui.setChainId(s)}publishWeb3RequestEvent(s,l){var i;const p={type:"WEB3_REQUEST",id:s,request:l},m=o.Session.load(this.storage);(i=this.diagnostic)===null||i===void 0||i.log(n.EVENTS.WEB3_REQUEST,{eventId:p.id,method:`relay::${l.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:m?o.Session.hash(m.id):"",isSessionMismatched:((m==null?void 0:m.id)!==this._session.id).toString()}),this.publishEvent("Web3Request",p,!0).then(_=>{var d;(d=this.diagnostic)===null||d===void 0||d.log(n.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:p.id,method:`relay::${l.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:m?o.Session.hash(m.id):"",isSessionMismatched:((m==null?void 0:m.id)!==this._session.id).toString()})}).catch(_=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:p.id,response:{method:l.method,errorMessage:_.message}})})}publishWeb3RequestCanceledEvent(s){const l={type:"WEB3_REQUEST_CANCELED",id:s};this.publishEvent("Web3RequestCanceled",l,!1).then()}publishEvent(s,l,i){return this.connection.publishEvent(s,l,i)}handleWeb3ResponseMessage(s){var l;const{response:i}=s;if((l=this.diagnostic)===null||l===void 0||l.log(n.EVENTS.WEB3_RESPONSE,{eventId:s.id,method:`relay::${i.method}`,sessionIdHash:this.getSessionIdHash()}),i.method==="requestEthereumAccounts"){Fe.accountRequestCallbackIds.forEach(p=>this.invokeCallback(Object.assign(Object.assign({},s),{id:p}))),Fe.accountRequestCallbackIds.clear();return}this.invokeCallback(s)}handleErrorResponse(s,l,i,p){var m;const _=(m=i==null?void 0:i.message)!==null&&m!==void 0?m:(0,e.getMessageFromCode)(p);this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:s,response:{method:l,errorMessage:_,errorCode:p}})}invokeCallback(s){const l=this.relayEventManager.callbacks.get(s.id);l&&(l(s.response),this.relayEventManager.callbacks.delete(s.id))}requestEthereumAccounts(){const s={method:"requestEthereumAccounts",params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},l=(0,r.randomBytesHex)(8),i=m=>{this.publishWeb3RequestCanceledEvent(l),this.handleErrorResponse(l,s.method,m)};return{promise:new Promise((m,_)=>{if(this.relayEventManager.callbacks.set(l,d=>{if(this.ui.hideRequestEthereumAccounts(),(0,f.isErrorResponse)(d))return _(new Error(d.errorMessage));m(d)}),this.ui.inlineAccountsResponse()){const d=b=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:l,response:{method:"requestEthereumAccounts",result:b}})};this.ui.requestEthereumAccounts({onCancel:i,onAccounts:d})}else{const d=e.standardErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>i(d)})}Fe.accountRequestCallbackIds.add(l),!this.ui.inlineAccountsResponse()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(l,s)}),cancel:i}}selectProvider(s){const l={method:"selectProvider"},i=(0,r.randomBytesHex)(8),p=_=>{this.publishWeb3RequestCanceledEvent(i),this.handleErrorResponse(i,l.method,_)},m=new Promise((_,d)=>{this.relayEventManager.callbacks.set(i,v=>{if((0,f.isErrorResponse)(v))return d(new Error(v.errorMessage));_(v)});const b=v=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:i,response:{method:"selectProvider",result:t.ProviderType.Unselected}})},y=v=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:i,response:{method:"selectProvider",result:v}})};this.ui.selectProvider&&this.ui.selectProvider({onApprove:y,onCancel:b,providerOptions:s})});return{cancel:p,promise:m}}watchAsset(s,l,i,p,m,_){const d={method:"watchAsset",params:{type:s,options:{address:l,symbol:i,decimals:p,image:m},chainId:_}};let b=null;const y=(0,r.randomBytesHex)(8),v=S=>{this.publishWeb3RequestCanceledEvent(y),this.handleErrorResponse(y,d.method,S),b==null||b()};this.ui.inlineWatchAsset()||(b=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:v,onResetConnection:this.resetAndReload}));const w=new Promise((S,E)=>{this.relayEventManager.callbacks.set(y,N=>{if(b==null||b(),(0,f.isErrorResponse)(N))return E(new Error(N.errorMessage));S(N)});const C=N=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:y,response:{method:"watchAsset",result:!1}})},T=()=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:y,response:{method:"watchAsset",result:!0}})};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:T,onCancel:C,type:s,address:l,symbol:i,decimals:p,image:m,chainId:_}),!this.ui.inlineWatchAsset()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(y,d)});return{cancel:v,promise:w}}addEthereumChain(s,l,i,p,m,_){const d={method:"addEthereumChain",params:{chainId:s,rpcUrls:l,blockExplorerUrls:p,chainName:m,iconUrls:i,nativeCurrency:_}};let b=null;const y=(0,r.randomBytesHex)(8),v=S=>{this.publishWeb3RequestCanceledEvent(y),this.handleErrorResponse(y,d.method,S),b==null||b()};return this.ui.inlineAddEthereumChain(s)||(b=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:v,onResetConnection:this.resetAndReload})),{promise:new Promise((S,E)=>{this.relayEventManager.callbacks.set(y,N=>{if(b==null||b(),(0,f.isErrorResponse)(N))return E(new Error(N.errorMessage));S(N)});const C=N=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:y,response:{method:"addEthereumChain",result:{isApproved:!1,rpcUrl:""}}})},T=N=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:y,response:{method:"addEthereumChain",result:{isApproved:!0,rpcUrl:N}}})};this.ui.inlineAddEthereumChain(s)&&this.ui.addEthereumChain({onCancel:C,onApprove:T,chainId:d.params.chainId,rpcUrls:d.params.rpcUrls,blockExplorerUrls:d.params.blockExplorerUrls,chainName:d.params.chainName,iconUrls:d.params.iconUrls,nativeCurrency:d.params.nativeCurrency}),!this.ui.inlineAddEthereumChain(s)&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(y,d)}),cancel:v}}switchEthereumChain(s,l){const i={method:"switchEthereumChain",params:Object.assign({chainId:s},{address:l})},p=(0,r.randomBytesHex)(8),m=d=>{this.publishWeb3RequestCanceledEvent(p),this.handleErrorResponse(p,i.method,d)};return{promise:new Promise((d,b)=>{this.relayEventManager.callbacks.set(p,w=>{if((0,f.isErrorResponse)(w)&&w.errorCode)return b(e.standardErrors.provider.custom({code:w.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."}));if((0,f.isErrorResponse)(w))return b(new Error(w.errorMessage));d(w)});const y=w=>{var S;if(w){const E=(S=(0,e.getErrorCode)(w))!==null&&S!==void 0?S:e.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(p,"switchEthereumChain",w instanceof Error?w:e.standardErrors.provider.unsupportedChain(s),E)}else this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:p,response:{method:"switchEthereumChain",result:{isApproved:!1,rpcUrl:""}}})},v=w=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:p,response:{method:"switchEthereumChain",result:{isApproved:!0,rpcUrl:w}}})};this.ui.switchEthereumChain({onCancel:y,onApprove:v,chainId:i.params.chainId,address:i.params.address}),!this.ui.inlineSwitchEthereumChain()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(p,i)}),cancel:m}}inlineAddEthereumChain(s){return this.ui.inlineAddEthereumChain(s)}getSessionIdHash(){return o.Session.hash(this._session.id)}sendRequestStandalone(s,l){const i=m=>{this.handleErrorResponse(s,l.method,m)},p=m=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:s,response:m})};switch(l.method){case"signEthereumMessage":this.ui.signEthereumMessage({request:l,onSuccess:p,onCancel:i});break;case"signEthereumTransaction":this.ui.signEthereumTransaction({request:l,onSuccess:p,onCancel:i});break;case"submitEthereumTransaction":this.ui.submitEthereumTransaction({request:l,onSuccess:p,onCancel:i});break;case"ethereumAddressFromSignedMessage":this.ui.ethereumAddressFromSignedMessage({request:l,onSuccess:p});break;default:i();break}}};return tt.WalletLinkRelay=u,u.accountRequestCallbackIds=new Set,tt}var mt={},Se={},Ce={},Qo;function Rd(){return Qo||(Qo=1,function(e){var t=Ce&&Ce.__createBinding||(Object.create?function(n,c,o,a){a===void 0&&(a=o);var f=Object.getOwnPropertyDescriptor(c,o);(!f||("get"in f?!c.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return c[o]}}),Object.defineProperty(n,a,f)}:function(n,c,o,a){a===void 0&&(a=o),n[a]=c[o]}),r=Ce&&Ce.__exportStar||function(n,c){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(c,o)&&t(c,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),r(qu(),e)}(Ce)),Ce}var Zt={},Ko;function Sd(){return Ko||(Ko=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.default=".-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}"),Zt}var Xo;function Cd(){if(Xo)return Se;Xo=1;var e=Se&&Se.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(Se,"__esModule",{value:!0}),Se.RedirectDialog=void 0;const t=e(xt),r=X,n=_u(),c=Rd(),o=e(Sd());let a=class{constructor(){this.root=null}attach(){const u=document.documentElement;this.root=document.createElement("div"),this.root.className="-cbwsdk-css-reset",u.appendChild(this.root),(0,n.injectCssReset)()}present(u){this.render(u)}clear(){this.render(null)}render(u){this.root&&((0,r.render)(null,this.root),u&&(0,r.render)((0,r.h)(f,Object.assign({},u,{onDismiss:()=>{this.clear()}})),this.root))}};Se.RedirectDialog=a;const f=({title:g,buttonText:u,darkMode:h,onButtonClick:s,onDismiss:l})=>{const i=h?"dark":"light";return(0,r.h)(c.SnackbarContainer,{darkMode:h},(0,r.h)("div",{class:"-cbwsdk-redirect-dialog"},(0,r.h)("style",null,o.default),(0,r.h)("div",{class:"-cbwsdk-redirect-dialog-backdrop",onClick:l}),(0,r.h)("div",{class:(0,t.default)("-cbwsdk-redirect-dialog-box",i)},(0,r.h)("p",null,g),(0,r.h)("button",{onClick:s},u))))};return Se}var Yo;function Uu(){if(Yo)return mt;Yo=1,Object.defineProperty(mt,"__esModule",{value:!0}),mt.MobileRelayUI=void 0;const e=Cd();let t=class{constructor(n){this.attached=!1,this.darkMode=!1,this.redirectDialog=new e.RedirectDialog,this.darkMode=n.darkMode}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");this.redirectDialog.attach(),this.attached=!0}setConnected(n){}redirectToCoinbaseWallet(n){const c=new URL("https://go.cb-w.com/walletlink");c.searchParams.append("redirect_url",window.location.href),n&&c.searchParams.append("wl_url",n);const o=document.createElement("a");o.target="cbw-opener",o.href=c.href,o.rel="noreferrer noopener",o.click()}openCoinbaseWalletDeeplink(n){this.redirectDialog.present({title:"Redirecting to Coinbase Wallet...",buttonText:"Open",darkMode:this.darkMode,onButtonClick:()=>{this.redirectToCoinbaseWallet(n)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(n)},99)}showConnecting(n){return()=>{this.redirectDialog.clear()}}hideRequestEthereumAccounts(){this.redirectDialog.clear()}requestEthereumAccounts(){}addEthereumChain(){}watchAsset(){}selectProvider(){}switchEthereumChain(){}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}reloadUI(){}setStandalone(){}setConnectDisabled(){}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}isStandalone(){return!1}};return mt.MobileRelayUI=t,mt}var ea;function Wu(){if(ea)return et;ea=1,Object.defineProperty(et,"__esModule",{value:!0}),et.MobileRelay=void 0;const e=fe(),t=Hu(),r=Uu();let n=class extends t.WalletLinkRelay{constructor(o){var a;super(o),this._enableMobileWalletLink=(a=o.enableMobileWalletLink)!==null&&a!==void 0?a:!1}requestEthereumAccounts(){return this._enableMobileWalletLink?super.requestEthereumAccounts():{promise:new Promise(()=>{const o=(0,e.getLocation)();o.href=`https://go.cb-w.com/dapp?cb_url=${encodeURIComponent(o.href)}`}),cancel:()=>{}}}publishWeb3RequestEvent(o,a){if(super.publishWeb3RequestEvent(o,a),!(this._enableMobileWalletLink&&this.ui instanceof r.MobileRelayUI))return;let f=!1;switch(a.method){case"requestEthereumAccounts":case"connectAndSignIn":f=!0,this.ui.openCoinbaseWalletDeeplink(this.getQRCodeUrl());break;case"switchEthereumChain":return;default:f=!0,this.ui.openCoinbaseWalletDeeplink();break}f&&window.addEventListener("blur",()=>{window.addEventListener("focus",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0})}handleWeb3ResponseMessage(o){super.handleWeb3ResponseMessage(o)}connectAndSignIn(o){if(!this._enableMobileWalletLink)throw new Error("connectAndSignIn is supported only when enableMobileWalletLink is on");return this.sendRequest({method:"connectAndSignIn",params:{appName:this.appName,appLogoUrl:this.appLogoUrl,domain:window.location.hostname,aud:window.location.href,version:"1",type:"eip4361",nonce:o.nonce,iat:new Date().toISOString(),chainId:`eip155:${this.dappDefaultChain}`,statement:o.statement,resources:o.resources}})}};return et.MobileRelay=n,et}var Qt={exports:{}},ta;function Vu(){return ta||(ta=1,function(e,t){t=e.exports=yl(),t.Stream=t,t.Readable=t,t.Writable=vl(),t.Duplex=wl(),t.Transform=El(),t.PassThrough=Rl(),t.finished=Sl(),t.pipeline=Cl()}(Qt,Qt.exports)),Qt.exports}var bn,ra;function kd(){if(ra)return bn;ra=1;const{Transform:e}=Vu();return bn=t=>class zu extends e{constructor(n,c,o,a,f){super(f),this._rate=n,this._capacity=c,this._delimitedSuffix=o,this._hashBitLength=a,this._options=f,this._state=new t,this._state.initialize(n,c),this._finalized=!1}_transform(n,c,o){let a=null;try{this.update(n,c)}catch(f){a=f}o(a)}_flush(n){let c=null;try{this.push(this.digest())}catch(o){c=o}n(c)}update(n,c){if(!q.isBuffer(n)&&typeof n!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return q.isBuffer(n)||(n=q.from(n,c)),this._state.absorb(n),this}digest(n){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let c=this._state.squeeze(this._hashBitLength/8);return n!==void 0&&(c=c.toString(n)),this._resetState(),c}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const n=new zu(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(n._state),n._finalized=this._finalized,n}},bn}var yn,na;function Id(){if(na)return yn;na=1;const{Transform:e}=Vu();return yn=t=>class $u extends e{constructor(n,c,o,a){super(a),this._rate=n,this._capacity=c,this._delimitedSuffix=o,this._options=a,this._state=new t,this._state.initialize(n,c),this._finalized=!1}_transform(n,c,o){let a=null;try{this.update(n,c)}catch(f){a=f}o(a)}_flush(){}_read(n){this.push(this.squeeze(n))}update(n,c){if(!q.isBuffer(n)&&typeof n!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return q.isBuffer(n)||(n=q.from(n,c)),this._state.absorb(n),this}squeeze(n,c){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let o=this._state.squeeze(n);return c!==void 0&&(o=o.toString(c)),o}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const n=new $u(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(n._state),n._finalized=this._finalized,n}},yn}var vn,sa;function Ad(){if(sa)return vn;sa=1;const e=kd(),t=Id();return vn=function(r){const n=e(r),c=t(r);return function(o,a){switch(typeof o=="string"?o.toLowerCase():o){case"keccak224":return new n(1152,448,null,224,a);case"keccak256":return new n(1088,512,null,256,a);case"keccak384":return new n(832,768,null,384,a);case"keccak512":return new n(576,1024,null,512,a);case"sha3-224":return new n(1152,448,6,224,a);case"sha3-256":return new n(1088,512,6,256,a);case"sha3-384":return new n(832,768,6,384,a);case"sha3-512":return new n(576,1024,6,512,a);case"shake128":return new c(1344,256,31,a);case"shake256":return new c(1088,512,31,a);default:throw new Error("Invald algorithm: "+o)}}},vn}var wn={},ia;function Ld(){if(ia)return wn;ia=1;const e=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];return wn.p1600=function(t){for(let r=0;r<24;++r){const n=t[0]^t[10]^t[20]^t[30]^t[40],c=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],f=t[4]^t[14]^t[24]^t[34]^t[44],g=t[5]^t[15]^t[25]^t[35]^t[45],u=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],s=t[8]^t[18]^t[28]^t[38]^t[48],l=t[9]^t[19]^t[29]^t[39]^t[49];let i=s^(o<<1|a>>>31),p=l^(a<<1|o>>>31);const m=t[0]^i,_=t[1]^p,d=t[10]^i,b=t[11]^p,y=t[20]^i,v=t[21]^p,w=t[30]^i,S=t[31]^p,E=t[40]^i,C=t[41]^p;i=n^(f<<1|g>>>31),p=c^(g<<1|f>>>31);const T=t[2]^i,N=t[3]^p,P=t[12]^i,F=t[13]^p,z=t[22]^i,A=t[23]^p,k=t[32]^i,R=t[33]^p,I=t[42]^i,M=t[43]^p;i=o^(u<<1|h>>>31),p=a^(h<<1|u>>>31);const L=t[4]^i,O=t[5]^p,j=t[14]^i,B=t[15]^p,H=t[24]^i,W=t[25]^p,D=t[34]^i,te=t[35]^p,ze=t[44]^i,jt=t[45]^p;i=f^(s<<1|l>>>31),p=g^(l<<1|s>>>31);const Ht=t[6]^i,Ni=t[7]^p,Ti=t[16]^i,Pi=t[17]^p,Oi=t[26]^i,xi=t[27]^p,Fi=t[36]^i,Bi=t[37]^p,Di=t[46]^i,qi=t[47]^p;i=u^(n<<1|c>>>31),p=h^(c<<1|n>>>31);const ji=t[8]^i,Hi=t[9]^p,Ui=t[18]^i,Wi=t[19]^p,Vi=t[28]^i,zi=t[29]^p,$i=t[38]^i,Ji=t[39]^p,Gi=t[48]^i,Zi=t[49]^p,mr=m,_r=_,br=b<<4|d>>>28,yr=d<<4|b>>>28,vr=y<<3|v>>>29,wr=v<<3|y>>>29,Er=S<<9|w>>>23,Rr=w<<9|S>>>23,Sr=E<<18|C>>>14,Cr=C<<18|E>>>14,kr=T<<1|N>>>31,Ir=N<<1|T>>>31,Ar=F<<12|P>>>20,Lr=P<<12|F>>>20,Mr=z<<10|A>>>22,Nr=A<<10|z>>>22,Tr=R<<13|k>>>19,Pr=k<<13|R>>>19,Or=I<<2|M>>>30,xr=M<<2|I>>>30,Fr=O<<30|L>>>2,Br=L<<30|O>>>2,Dr=j<<6|B>>>26,qr=B<<6|j>>>26,jr=W<<11|H>>>21,Hr=H<<11|W>>>21,Ur=D<<15|te>>>17,Wr=te<<15|D>>>17,Vr=jt<<29|ze>>>3,zr=ze<<29|jt>>>3,$r=Ht<<28|Ni>>>4,Jr=Ni<<28|Ht>>>4,Gr=Pi<<23|Ti>>>9,Zr=Ti<<23|Pi>>>9,Qr=Oi<<25|xi>>>7,Kr=xi<<25|Oi>>>7,Xr=Fi<<21|Bi>>>11,Yr=Bi<<21|Fi>>>11,en=qi<<24|Di>>>8,tn=Di<<24|qi>>>8,rn=ji<<27|Hi>>>5,nn=Hi<<27|ji>>>5,sn=Ui<<20|Wi>>>12,on=Wi<<20|Ui>>>12,an=zi<<7|Vi>>>25,cn=Vi<<7|zi>>>25,un=$i<<8|Ji>>>24,ln=Ji<<8|$i>>>24,dn=Gi<<14|Zi>>>18,hn=Zi<<14|Gi>>>18;t[0]=mr^~Ar&jr,t[1]=_r^~Lr&Hr,t[10]=$r^~sn&vr,t[11]=Jr^~on&wr,t[20]=kr^~Dr&Qr,t[21]=Ir^~qr&Kr,t[30]=rn^~br&Mr,t[31]=nn^~yr&Nr,t[40]=Fr^~Gr&an,t[41]=Br^~Zr&cn,t[2]=Ar^~jr&Xr,t[3]=Lr^~Hr&Yr,t[12]=sn^~vr&Tr,t[13]=on^~wr&Pr,t[22]=Dr^~Qr&un,t[23]=qr^~Kr&ln,t[32]=br^~Mr&Ur,t[33]=yr^~Nr&Wr,t[42]=Gr^~an&Er,t[43]=Zr^~cn&Rr,t[4]=jr^~Xr&dn,t[5]=Hr^~Yr&hn,t[14]=vr^~Tr&Vr,t[15]=wr^~Pr&zr,t[24]=Qr^~un&Sr,t[25]=Kr^~ln&Cr,t[34]=Mr^~Ur&en,t[35]=Nr^~Wr&tn,t[44]=an^~Er&Or,t[45]=cn^~Rr&xr,t[6]=Xr^~dn&mr,t[7]=Yr^~hn&_r,t[16]=Tr^~Vr&$r,t[17]=Pr^~zr&Jr,t[26]=un^~Sr&kr,t[27]=ln^~Cr&Ir,t[36]=Ur^~en&rn,t[37]=Wr^~tn&nn,t[46]=Er^~Or&Fr,t[47]=Rr^~xr&Br,t[8]=dn^~mr&Ar,t[9]=hn^~_r&Lr,t[18]=Vr^~$r&sn,t[19]=zr^~Jr&on,t[28]=Sr^~kr&Dr,t[29]=Cr^~Ir&qr,t[38]=en^~rn&br,t[39]=tn^~nn&yr,t[48]=Or^~Fr&Gr,t[49]=xr^~Br&Zr,t[0]^=e[r*2],t[1]^=e[r*2+1]}},wn}var En,oa;function Md(){if(oa)return En;oa=1;const e=Ld();function t(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}return t.prototype.initialize=function(r,n){for(let c=0;c<50;++c)this.state[c]=0;this.blockSize=r/8,this.count=0,this.squeezing=!1},t.prototype.absorb=function(r){for(let n=0;n<r.length;++n)this.state[~~(this.count/4)]^=r[n]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(e.p1600(this.state),this.count=0)},t.prototype.absorbLastFewBits=function(r){this.state[~~(this.count/4)]^=r<<8*(this.count%4),r&128&&this.count===this.blockSize-1&&e.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),e.p1600(this.state),this.count=0,this.squeezing=!0},t.prototype.squeeze=function(r){this.squeezing||this.absorbLastFewBits(1);const n=q.alloc(r);for(let c=0;c<r;++c)n[c]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(e.p1600(this.state),this.count=0);return n},t.prototype.copy=function(r){for(let n=0;n<50;++n)r.state[n]=this.state[n];r.blockSize=this.blockSize,r.count=this.count,r.squeezing=this.squeezing},En=t,En}var Rn,aa;function Nd(){return aa||(aa=1,Rn=Ad()(Md())),Rn}var Sn,ca;function Ju(){if(ca)return Sn;ca=1;const e=Nd(),t=ir();function r(s){return q.allocUnsafe(s).fill(0)}function n(s,l,i){const p=r(l);return s=o(s),i?s.length<l?(s.copy(p),p):s.slice(0,l):s.length<l?(s.copy(p,l-s.length),p):s.slice(-l)}function c(s,l){return n(s,l,!0)}function o(s){if(!q.isBuffer(s))if(Array.isArray(s))s=q.from(s);else if(typeof s=="string")u(s)?s=q.from(g(h(s)),"hex"):s=q.from(s);else if(typeof s=="number")s=intToBuffer(s);else if(s==null)s=q.allocUnsafe(0);else if(t.isBN(s))s=s.toArrayLike(q);else if(s.toArray)s=q.from(s.toArray());else throw new Error("invalid type");return s}function a(s){return s=o(s),"0x"+s.toString("hex")}function f(s,l){return s=o(s),l||(l=256),e("keccak"+l).update(s).digest()}function g(s){return s.length%2?"0"+s:s}function u(s){return typeof s=="string"&&s.match(/^0x[0-9A-Fa-f]*$/)}function h(s){return typeof s=="string"&&s.startsWith("0x")?s.slice(2):s}return Sn={zeros:r,setLength:n,setLengthRight:c,isHexString:u,stripHexPrefix:h,toBuffer:o,bufferToHex:a,keccak:f},Sn}var Cn,ua;function Td(){if(ua)return Cn;ua=1;const e=Ju(),t=ir();function r(i){return i.startsWith("int[")?"int256"+i.slice(3):i==="int"?"int256":i.startsWith("uint[")?"uint256"+i.slice(4):i==="uint"?"uint256":i.startsWith("fixed[")?"fixed128x128"+i.slice(5):i==="fixed"?"fixed128x128":i.startsWith("ufixed[")?"ufixed128x128"+i.slice(6):i==="ufixed"?"ufixed128x128":i}function n(i){return parseInt(/^\D+(\d+)$/.exec(i)[1],10)}function c(i){var p=/^\D+(\d+)x(\d+)$/.exec(i);return[parseInt(p[1],10),parseInt(p[2],10)]}function o(i){var p=i.match(/(.*)\[(.*?)\]$/);return p?p[2]===""?"dynamic":parseInt(p[2],10):null}function a(i){var p=typeof i;if(p==="string")return e.isHexString(i)?new t(e.stripHexPrefix(i),16):new t(i,10);if(p==="number")return new t(i);if(i.toArray)return i;throw new Error("Argument is not a number")}function f(i,p){var m,_,d,b;if(i==="address")return f("uint160",a(p));if(i==="bool")return f("uint8",p?1:0);if(i==="string")return f("bytes",new q(p,"utf8"));if(u(i)){if(typeof p.length>"u")throw new Error("Not an array?");if(m=o(i),m!=="dynamic"&&m!==0&&p.length>m)throw new Error("Elements exceed array size: "+m);d=[],i=i.slice(0,i.lastIndexOf("[")),typeof p=="string"&&(p=JSON.parse(p));for(b in p)d.push(f(i,p[b]));if(m==="dynamic"){var y=f("uint256",p.length);d.unshift(y)}return q.concat(d)}else{if(i==="bytes")return p=new q(p),d=q.concat([f("uint256",p.length),p]),p.length%32!==0&&(d=q.concat([d,e.zeros(32-p.length%32)])),d;if(i.startsWith("bytes")){if(m=n(i),m<1||m>32)throw new Error("Invalid bytes<N> width: "+m);return e.setLengthRight(p,32)}else if(i.startsWith("uint")){if(m=n(i),m%8||m<8||m>256)throw new Error("Invalid uint<N> width: "+m);if(_=a(p),_.bitLength()>m)throw new Error("Supplied uint exceeds width: "+m+" vs "+_.bitLength());if(_<0)throw new Error("Supplied uint is negative");return _.toArrayLike(q,"be",32)}else if(i.startsWith("int")){if(m=n(i),m%8||m<8||m>256)throw new Error("Invalid int<N> width: "+m);if(_=a(p),_.bitLength()>m)throw new Error("Supplied int exceeds width: "+m+" vs "+_.bitLength());return _.toTwos(256).toArrayLike(q,"be",32)}else if(i.startsWith("ufixed")){if(m=c(i),_=a(p),_<0)throw new Error("Supplied ufixed is negative");return f("uint256",_.mul(new t(2).pow(new t(m[1]))))}else if(i.startsWith("fixed"))return m=c(i),f("int256",a(p).mul(new t(2).pow(new t(m[1]))))}throw new Error("Unsupported or invalid type: "+i)}function g(i){return i==="string"||i==="bytes"||o(i)==="dynamic"}function u(i){return i.lastIndexOf("]")===i.length-1}function h(i,p){var m=[],_=[],d=32*i.length;for(var b in i){var y=r(i[b]),v=p[b],w=f(y,v);g(y)?(m.push(f("uint256",d)),_.push(w),d+=w.length):m.push(w)}return q.concat(m.concat(_))}function s(i,p){if(i.length!==p.length)throw new Error("Number of types are not matching the values");for(var m,_,d=[],b=0;b<i.length;b++){var y=r(i[b]),v=p[b];if(y==="bytes")d.push(v);else if(y==="string")d.push(new q(v,"utf8"));else if(y==="bool")d.push(new q(v?"01":"00","hex"));else if(y==="address")d.push(e.setLength(v,20));else if(y.startsWith("bytes")){if(m=n(y),m<1||m>32)throw new Error("Invalid bytes<N> width: "+m);d.push(e.setLengthRight(v,m))}else if(y.startsWith("uint")){if(m=n(y),m%8||m<8||m>256)throw new Error("Invalid uint<N> width: "+m);if(_=a(v),_.bitLength()>m)throw new Error("Supplied uint exceeds width: "+m+" vs "+_.bitLength());d.push(_.toArrayLike(q,"be",m/8))}else if(y.startsWith("int")){if(m=n(y),m%8||m<8||m>256)throw new Error("Invalid int<N> width: "+m);if(_=a(v),_.bitLength()>m)throw new Error("Supplied int exceeds width: "+m+" vs "+_.bitLength());d.push(_.toTwos(m).toArrayLike(q,"be",m/8))}else throw new Error("Unsupported or invalid type: "+y)}return q.concat(d)}function l(i,p){return e.keccak(s(i,p))}return Cn={rawEncode:h,solidityPack:s,soliditySHA3:l},Cn}var kn,la;function Pd(){if(la)return kn;la=1;const e=Ju(),t=Td(),r={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"]},n={encodeData(o,a,f,g=!0){const u=["bytes32"],h=[this.hashType(o,f)];if(g){const s=(l,i,p)=>{if(f[i]!==void 0)return["bytes32",p==null?"0x0000000000000000000000000000000000000000000000000000000000000000":e.keccak(this.encodeData(i,p,f,g))];if(p===void 0)throw new Error(`missing value for field ${l} of type ${i}`);if(i==="bytes")return["bytes32",e.keccak(p)];if(i==="string")return typeof p=="string"&&(p=q.from(p,"utf8")),["bytes32",e.keccak(p)];if(i.lastIndexOf("]")===i.length-1){const m=i.slice(0,i.lastIndexOf("[")),_=p.map(d=>s(l,m,d));return["bytes32",e.keccak(t.rawEncode(_.map(([d])=>d),_.map(([,d])=>d)))]}return[i,p]};for(const l of f[o]){const[i,p]=s(l.name,l.type,a[l.name]);u.push(i),h.push(p)}}else for(const s of f[o]){let l=a[s.name];if(l!==void 0)if(s.type==="bytes")u.push("bytes32"),l=e.keccak(l),h.push(l);else if(s.type==="string")u.push("bytes32"),typeof l=="string"&&(l=q.from(l,"utf8")),l=e.keccak(l),h.push(l);else if(f[s.type]!==void 0)u.push("bytes32"),l=e.keccak(this.encodeData(s.type,l,f,g)),h.push(l);else{if(s.type.lastIndexOf("]")===s.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");u.push(s.type),h.push(l)}}return t.rawEncode(u,h)},encodeType(o,a){let f="",g=this.findTypeDependencies(o,a).filter(u=>u!==o);g=[o].concat(g.sort());for(const u of g){if(!a[u])throw new Error("No type definition specified: "+u);f+=u+"("+a[u].map(({name:s,type:l})=>l+" "+s).join(",")+")"}return f},findTypeDependencies(o,a,f=[]){if(o=o.match(/^\w*/)[0],f.includes(o)||a[o]===void 0)return f;f.push(o);for(const g of a[o])for(const u of this.findTypeDependencies(g.type,a,f))!f.includes(u)&&f.push(u);return f},hashStruct(o,a,f,g=!0){return e.keccak(this.encodeData(o,a,f,g))},hashType(o,a){return e.keccak(this.encodeType(o,a))},sanitizeData(o){const a={};for(const f in r.properties)o[f]&&(a[f]=o[f]);return a.types&&(a.types=Object.assign({EIP712Domain:[]},a.types)),a},hash(o,a=!0){const f=this.sanitizeData(o),g=[q.from("1901","hex")];return g.push(this.hashStruct("EIP712Domain",f.domain,f.types,a)),f.primaryType!=="EIP712Domain"&&g.push(this.hashStruct(f.primaryType,f.message,f.types,a)),e.keccak(q.concat(g))}};kn={TYPED_MESSAGE_SCHEMA:r,TypedDataUtils:n,hashForSignTypedDataLegacy:function(o){return c(o.data)},hashForSignTypedData_v3:function(o){return n.hash(o.data,!1)},hashForSignTypedData_v4:function(o){return n.hash(o.data)}};function c(o){const a=new Error("Expect argument to be non-empty array");if(typeof o!="object"||!o.length)throw a;const f=o.map(function(h){return h.type==="bytes"?e.toBuffer(h.value):h.value}),g=o.map(function(h){return h.type}),u=o.map(function(h){if(!h.name)throw a;return h.type+" "+h.name});return t.soliditySHA3(["bytes32","bytes32"],[t.soliditySHA3(new Array(o.length).fill("string"),u),t.soliditySHA3(g,f)])}return kn}var ke={},da;function Od(){if(da)return ke;da=1,Object.defineProperty(ke,"__esModule",{value:!0}),ke.filterFromParam=ke.FilterPolyfill=void 0;const e=cr(),t=fe(),r=5*60*1e3,n={jsonrpc:"2.0",id:0};let c=class{constructor(l){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,e.IntNumber)(1),this.REQUEST_THROTTLE_INTERVAL=1e3,this.lastFetchTimestamp=new Date(0),this.resolvers=[],this.provider=l}async newFilter(l){const i=o(l),p=this.makeFilterId(),m=await this.setInitialCursorPosition(p,i.fromBlock);return console.info(`Installing new log filter(${p}):`,i,"initial cursor position:",m),this.logFilters.set(p,i),this.setFilterTimeout(p),(0,t.hexStringFromIntNumber)(p)}async newBlockFilter(){const l=this.makeFilterId(),i=await this.setInitialCursorPosition(l,"latest");return console.info(`Installing new block filter (${l}) with initial cursor position:`,i),this.blockFilters.add(l),this.setFilterTimeout(l),(0,t.hexStringFromIntNumber)(l)}async newPendingTransactionFilter(){const l=this.makeFilterId(),i=await this.setInitialCursorPosition(l,"latest");return console.info(`Installing new block filter (${l}) with initial cursor position:`,i),this.pendingTransactionFilters.add(l),this.setFilterTimeout(l),(0,t.hexStringFromIntNumber)(l)}uninstallFilter(l){const i=(0,t.intNumberFromHexString)(l);return console.info(`Uninstalling filter (${i})`),this.deleteFilter(i),!0}getFilterChanges(l){const i=(0,t.intNumberFromHexString)(l);return this.timeouts.has(i)&&this.setFilterTimeout(i),this.logFilters.has(i)?this.getLogFilterChanges(i):this.blockFilters.has(i)?this.getBlockFilterChanges(i):this.pendingTransactionFilters.has(i)?this.getPendingTransactionFilterChanges(i):Promise.resolve(u())}async getFilterLogs(l){const i=(0,t.intNumberFromHexString)(l),p=this.logFilters.get(i);return p?this.sendAsyncPromise(Object.assign(Object.assign({},n),{method:"eth_getLogs",params:[a(p)]})):u()}makeFilterId(){return(0,e.IntNumber)(++this.nextFilterId)}sendAsyncPromise(l){return new Promise((i,p)=>{this.provider.sendAsync(l,(m,_)=>{if(m)return p(m);if(Array.isArray(_)||_==null)return p(new Error(`unexpected response received: ${JSON.stringify(_)}`));i(_)})})}deleteFilter(l){console.info(`Deleting filter (${l})`),this.logFilters.delete(l),this.blockFilters.delete(l),this.pendingTransactionFilters.delete(l),this.cursors.delete(l),this.timeouts.delete(l)}async getLogFilterChanges(l){const i=this.logFilters.get(l),p=this.cursors.get(l);if(!p||!i)return u();const m=await this.getCurrentBlockHeight(),_=i.toBlock==="latest"?m:i.toBlock;if(p>m||p>Number(i.toBlock))return h();console.info(`Fetching logs from ${p} to ${_} for filter ${l}`);const d=await this.sendAsyncPromise(Object.assign(Object.assign({},n),{method:"eth_getLogs",params:[a(Object.assign(Object.assign({},i),{fromBlock:p,toBlock:_}))]}));if(Array.isArray(d.result)){const b=d.result.map(v=>(0,t.intNumberFromHexString)(v.blockNumber||"0x0")),y=Math.max(...b);if(y&&y>p){const v=(0,e.IntNumber)(y+1);console.info(`Moving cursor position for filter (${l}) from ${p} to ${v}`),this.cursors.set(l,v)}}return d}async getBlockFilterChanges(l){const i=this.cursors.get(l);if(!i)return u();const p=await this.getCurrentBlockHeight();if(i>p)return h();console.info(`Fetching blocks from ${i} to ${p} for filter (${l})`);const m=(await Promise.all((0,t.range)(i,p+1).map(d=>this.getBlockHashByNumber((0,e.IntNumber)(d))))).filter(d=>!!d),_=(0,e.IntNumber)(i+m.length);return console.info(`Moving cursor position for filter (${l}) from ${i} to ${_}`),this.cursors.set(l,_),Object.assign(Object.assign({},n),{result:m})}async getPendingTransactionFilterChanges(l){return Promise.resolve(h())}async setInitialCursorPosition(l,i){const p=await this.getCurrentBlockHeight(),m=typeof i=="number"&&i>p?i:p;return this.cursors.set(l,m),m}setFilterTimeout(l){const i=this.timeouts.get(l);i&&window.clearTimeout(i);const p=window.setTimeout(()=>{console.info(`Filter (${l}) timed out`),this.deleteFilter(l)},r);this.timeouts.set(l,p)}async getCurrentBlockHeight(){const l=new Date;if(l.getTime()-this.lastFetchTimestamp.getTime()>this.REQUEST_THROTTLE_INTERVAL){this.lastFetchTimestamp=l;const i=await this._getCurrentBlockHeight();this.currentBlockHeight=i,this.resolvers.forEach(p=>p(i)),this.resolvers=[]}return this.currentBlockHeight?this.currentBlockHeight:new Promise(i=>this.resolvers.push(i))}async _getCurrentBlockHeight(){const{result:l}=await this.sendAsyncPromise(Object.assign(Object.assign({},n),{method:"eth_blockNumber",params:[]}));return(0,t.intNumberFromHexString)((0,t.ensureHexString)(l))}async getBlockHashByNumber(l){const i=await this.sendAsyncPromise(Object.assign(Object.assign({},n),{method:"eth_getBlockByNumber",params:[(0,t.hexStringFromIntNumber)(l),!1]}));return i.result&&typeof i.result.hash=="string"?(0,t.ensureHexString)(i.result.hash):null}};ke.FilterPolyfill=c;function o(s){return{fromBlock:f(s.fromBlock),toBlock:f(s.toBlock),addresses:s.address===void 0?null:Array.isArray(s.address)?s.address:[s.address],topics:s.topics||[]}}ke.filterFromParam=o;function a(s){const l={fromBlock:g(s.fromBlock),toBlock:g(s.toBlock),topics:s.topics};return s.addresses!==null&&(l.address=s.addresses),l}function f(s){if(s===void 0||s==="latest"||s==="pending")return"latest";if(s==="earliest")return(0,e.IntNumber)(0);if((0,t.isHexString)(s))return(0,t.intNumberFromHexString)(s);throw new Error(`Invalid block option: ${String(s)}`)}function g(s){return s==="latest"?s:(0,t.hexStringFromIntNumber)(s)}function u(){return Object.assign(Object.assign({},n),{error:{code:-32e3,message:"filter not found"}})}function h(){return Object.assign(Object.assign({},n),{result:[]})}return ke}var _t={},Ie={},Ae={},In,ha;function gi(){if(ha)return In;ha=1,In=e;function e(t){t=t||{};var r=t.max||Number.MAX_SAFE_INTEGER,n=typeof t.start<"u"?t.start:Math.floor(Math.random()*r);return function(){return n=n%r,n++}}return In}var An,fa;function xd(){if(fa)return An;fa=1;const e=(t,r)=>function(){const n=r.promiseModule,c=new Array(arguments.length);for(let o=0;o<arguments.length;o++)c[o]=arguments[o];return new n((o,a)=>{r.errorFirst?c.push(function(f,g){if(r.multiArgs){const u=new Array(arguments.length-1);for(let h=1;h<arguments.length;h++)u[h-1]=arguments[h];f?(u.unshift(f),a(u)):o(u)}else f?a(f):o(g)}):c.push(function(f){if(r.multiArgs){const g=new Array(arguments.length-1);for(let u=0;u<arguments.length;u++)g[u]=arguments[u];o(g)}else o(f)}),t.apply(this,c)})};return An=(t,r)=>{r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},r);const n=o=>{const a=f=>typeof f=="string"?o===f:f.test(o);return r.include?r.include.some(a):!r.exclude.some(a)};let c;typeof t=="function"?c=function(){return r.excludeMain?t.apply(this,arguments):e(t,r).apply(this,arguments)}:c=Object.create(Object.getPrototypeOf(t));for(const o in t){const a=t[o];c[o]=typeof a=="function"&&n(o)?e(a,r):a}return c},An}var Le={},Kt={},ga;function pi(){if(ga)return Kt;ga=1,Object.defineProperty(Kt,"__esModule",{value:!0});const e=pu();function t(c,o,a){try{Reflect.apply(c,o,a)}catch(f){setTimeout(()=>{throw f})}}function r(c){const o=c.length,a=new Array(o);for(let f=0;f<o;f+=1)a[f]=c[f];return a}class n extends e.EventEmitter{emit(o,...a){let f=o==="error";const g=this._events;if(g!==void 0)f=f&&g.error===void 0;else if(!f)return!1;if(f){let h;if(a.length>0&&([h]=a),h instanceof Error)throw h;const s=new Error(`Unhandled error.${h?` (${h.message})`:""}`);throw s.context=h,s}const u=g[o];if(u===void 0)return!1;if(typeof u=="function")t(u,this,a);else{const h=u.length,s=r(u);for(let l=0;l<h;l+=1)t(s[l],this,a)}return!0}}return Kt.default=n,Kt}var pa;function Gu(){if(pa)return Le;pa=1;var e=Le&&Le.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(Le,"__esModule",{value:!0}),Le.BaseBlockTracker=void 0;const t=e(pi()),r=1e3,n=(f,g)=>f+g,c=["sync","latest"];let o=class extends t.default{constructor(g){super(),this._blockResetDuration=g.blockResetDuration||20*r,this._usePastBlocks=g.usePastBlocks||!1,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}async destroy(){this._cancelBlockResetTimeout(),await this._maybeEnd(),super.removeAllListeners()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(u=>this.once("latest",u))}removeAllListeners(g){return g?super.removeAllListeners(g):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener(),this}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(g){c.includes(g)&&this._maybeStart()}_onRemoveListener(){this._getBlockTrackerEventCount()>0||this._maybeEnd()}async _maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),await this._start(),this.emit("_started"))}async _maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),await this._end(),this.emit("_ended"))}_getBlockTrackerEventCount(){return c.map(g=>this.listenerCount(g)).reduce(n)}_shouldUseNewBlock(g){const u=this._currentBlock;if(!u)return!0;const h=a(g),s=a(u);return this._usePastBlocks&&h<s||h>s}_newPotentialLatest(g){this._shouldUseNewBlock(g)&&this._setCurrentBlock(g)}_setCurrentBlock(g){const u=this._currentBlock;this._currentBlock=g,this.emit("latest",g),this.emit("sync",{oldBlock:u,newBlock:g})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){this._blockResetTimeout&&clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}};Le.BaseBlockTracker=o;function a(f){return Number.parseInt(f,16)}return Le}var Ln={},Me={},ne={};class Zu extends TypeError{constructor(t,r){let n;const{message:c,explanation:o,...a}=t,{path:f}=t,g=f.length===0?c:`At path: ${f.join(".")} -- ${c}`;super(o??g),o!=null&&(this.cause=g),Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>n??(n=[t,...r()])}}function Fd(e){return ee(e)&&typeof e[Symbol.iterator]=="function"}function ee(e){return typeof e=="object"&&e!=null}function ma(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Z(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function Bd(e){const{done:t,value:r}=e.next();return t?void 0:r}function Dd(e,t,r,n){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});const{path:c,branch:o}=t,{type:a}=r,{refinement:f,message:g=`Expected a value of type \`${a}\`${f?` with refinement \`${f}\``:""}, but received: \`${Z(n)}\``}=e;return{value:n,type:a,refinement:f,key:c[c.length-1],path:c,branch:o,...e,message:g}}function*ei(e,t,r,n){Fd(e)||(e=[e]);for(const c of e){const o=Dd(c,t,r,n);o&&(yield o)}}function*mi(e,t,r={}){const{path:n=[],branch:c=[e],coerce:o=!1,mask:a=!1}=r,f={path:n,branch:c};if(o&&(e=t.coercer(e,f),a&&t.type!=="type"&&ee(t.schema)&&ee(e)&&!Array.isArray(e)))for(const u in e)t.schema[u]===void 0&&delete e[u];let g="valid";for(const u of t.validator(e,f))u.explanation=r.message,g="not_valid",yield[u,void 0];for(let[u,h,s]of t.entries(e,f)){const l=mi(h,s,{path:u===void 0?n:[...n,u],branch:u===void 0?c:[...c,h],coerce:o,mask:a,message:r.message});for(const i of l)i[0]?(g=i[0].refinement!=null?"not_refined":"not_valid",yield[i[0],void 0]):o&&(h=i[1],u===void 0?e=h:e instanceof Map?e.set(u,h):e instanceof Set?e.add(h):ee(e)&&(h!==void 0||u in e)&&(e[u]=h))}if(g!=="not_valid")for(const u of t.refiner(e,f))u.explanation=r.message,g="not_refined",yield[u,void 0];g==="valid"&&(yield[void 0,e])}class G{constructor(t){const{type:r,schema:n,validator:c,refiner:o,coercer:a=g=>g,entries:f=function*(){}}=t;this.type=r,this.schema=n,this.entries=f,this.coercer=a,c?this.validator=(g,u)=>{const h=c(g,u);return ei(h,u,this,g)}:this.validator=()=>[],o?this.refiner=(g,u)=>{const h=o(g,u);return ei(h,u,this,g)}:this.refiner=()=>[]}assert(t,r){return Qu(t,this,r)}create(t,r){return Ku(t,this,r)}is(t){return _i(t,this)}mask(t,r){return Xu(t,this,r)}validate(t,r={}){return We(t,this,r)}}function Qu(e,t,r){const n=We(e,t,{message:r});if(n[0])throw n[0]}function Ku(e,t,r){const n=We(e,t,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function Xu(e,t,r){const n=We(e,t,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function _i(e,t){return!We(e,t)[0]}function We(e,t,r={}){const n=mi(e,t,r),c=Bd(n);return c[0]?[new Zu(c[0],function*(){for(const a of n)a[0]&&(yield a[0])}),void 0]:[void 0,c[1]]}function qd(...e){const t=e[0].type==="type",r=e.map(c=>c.schema),n=Object.assign({},...r);return t?Bt(n):Ft(n)}function Y(e,t){return new G({type:e,schema:null,validator:t})}function jd(e,t){return new G({...e,refiner:(r,n)=>r===void 0||e.refiner(r,n),validator(r,n){return r===void 0?!0:(t(r,n),e.validator(r,n))}})}function Hd(e){return new G({type:"dynamic",schema:null,*entries(t,r){yield*e(t,r).entries(t,r)},validator(t,r){return e(t,r).validator(t,r)},coercer(t,r){return e(t,r).coercer(t,r)},refiner(t,r){return e(t,r).refiner(t,r)}})}function Ud(e){let t;return new G({type:"lazy",schema:null,*entries(r,n){t??(t=e()),yield*t.entries(r,n)},validator(r,n){return t??(t=e()),t.validator(r,n)},coercer(r,n){return t??(t=e()),t.coercer(r,n)},refiner(r,n){return t??(t=e()),t.refiner(r,n)}})}function Wd(e,t){const{schema:r}=e,n={...r};for(const c of t)delete n[c];switch(e.type){case"type":return Bt(n);default:return Ft(n)}}function Vd(e){const t=e instanceof G,r=t?{...e.schema}:{...e};for(const n in r)r[n]=Yu(r[n]);return t&&e.type==="type"?Bt(r):Ft(r)}function zd(e,t){const{schema:r}=e,n={};for(const c of t)n[c]=r[c];switch(e.type){case"type":return Bt(n);default:return Ft(n)}}function $d(e,t){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),Y(e,t)}function Jd(){return Y("any",()=>!0)}function Gd(e){return new G({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[r,n]of t.entries())yield[r,n,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${Z(t)}`}})}function Zd(){return Y("bigint",e=>typeof e=="bigint")}function Qd(){return Y("boolean",e=>typeof e=="boolean")}function Kd(){return Y("date",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${Z(e)}`)}function Xd(e){const t={},r=e.map(n=>Z(n)).join();for(const n of e)t[n]=n;return new G({type:"enums",schema:t,validator(n){return e.includes(n)||`Expected one of \`${r}\`, but received: ${Z(n)}`}})}function Yd(){return Y("func",e=>typeof e=="function"||`Expected a function, but received: ${Z(e)}`)}function eh(e){return Y("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${Z(t)}`)}function th(){return Y("integer",e=>typeof e=="number"&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${Z(e)}`)}function rh(e){return new G({type:"intersection",schema:null,*entries(t,r){for(const n of e)yield*n.entries(t,r)},*validator(t,r){for(const n of e)yield*n.validator(t,r)},*refiner(t,r){for(const n of e)yield*n.refiner(t,r)}})}function nh(e){const t=Z(e),r=typeof e;return new G({type:"literal",schema:r==="string"||r==="number"||r==="boolean"?e:null,validator(n){return n===e||`Expected the literal \`${t}\`, but received: ${Z(n)}`}})}function sh(e,t){return new G({type:"map",schema:null,*entries(r){if(e&&t&&r instanceof Map)for(const[n,c]of r.entries())yield[n,n,e],yield[n,c,t]},coercer(r){return r instanceof Map?new Map(r):r},validator(r){return r instanceof Map||`Expected a \`Map\` object, but received: ${Z(r)}`}})}function bi(){return Y("never",()=>!1)}function ih(e){return new G({...e,validator:(t,r)=>t===null||e.validator(t,r),refiner:(t,r)=>t===null||e.refiner(t,r)})}function oh(){return Y("number",e=>typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${Z(e)}`)}function Ft(e){const t=e?Object.keys(e):[],r=bi();return new G({type:"object",schema:e||null,*entries(n){if(e&&ee(n)){const c=new Set(Object.keys(n));for(const o of t)c.delete(o),yield[o,n[o],e[o]];for(const o of c)yield[o,n[o],r]}},validator(n){return ee(n)||`Expected an object, but received: ${Z(n)}`},coercer(n){return ee(n)?{...n}:n}})}function Yu(e){return new G({...e,validator:(t,r)=>t===void 0||e.validator(t,r),refiner:(t,r)=>t===void 0||e.refiner(t,r)})}function ah(e,t){return new G({type:"record",schema:null,*entries(r){if(ee(r))for(const n in r){const c=r[n];yield[n,n,e],yield[n,c,t]}},validator(r){return ee(r)||`Expected an object, but received: ${Z(r)}`}})}function ch(){return Y("regexp",e=>e instanceof RegExp)}function uh(e){return new G({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(const r of t)yield[r,r,e]},coercer(t){return t instanceof Set?new Set(t):t},validator(t){return t instanceof Set||`Expected a \`Set\` object, but received: ${Z(t)}`}})}function el(){return Y("string",e=>typeof e=="string"||`Expected a string, but received: ${Z(e)}`)}function lh(e){const t=bi();return new G({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){const n=Math.max(e.length,r.length);for(let c=0;c<n;c++)yield[c,r[c],e[c]||t]}},validator(r){return Array.isArray(r)||`Expected an array, but received: ${Z(r)}`}})}function Bt(e){const t=Object.keys(e);return new G({type:"type",schema:e,*entries(r){if(ee(r))for(const n of t)yield[n,r[n],e[n]]},validator(r){return ee(r)||`Expected an object, but received: ${Z(r)}`},coercer(r){return ee(r)?{...r}:r}})}function dh(e){const t=e.map(r=>r.type).join(" | ");return new G({type:"union",schema:null,coercer(r){for(const n of e){const[c,o]=n.validate(r,{coerce:!0});if(!c)return o}return r},validator(r,n){const c=[];for(const o of e){const[...a]=mi(r,o,n),[f]=a;if(f[0])for(const[g]of a)g&&c.push(g);else return[]}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${Z(r)}`,...c]}})}function tl(){return Y("unknown",()=>!0)}function yi(e,t,r){return new G({...e,coercer:(n,c)=>_i(n,t)?e.coercer(r(n,c),c):e.coercer(n,c)})}function hh(e,t,r={}){return yi(e,tl(),n=>{const c=typeof t=="function"?t():t;if(n===void 0)return c;if(!r.strict&&ma(n)&&ma(c)){const o={...n};let a=!1;for(const f in c)o[f]===void 0&&(o[f]=c[f],a=!0);if(a)return o}return n})}function fh(e){return yi(e,el(),t=>t.trim())}function gh(e){return qe(e,"empty",t=>{const r=rl(t);return r===0||`Expected an empty ${e.type} but received one with a size of \`${r}\``})}function rl(e){return e instanceof Map||e instanceof Set?e.size:e.length}function ph(e,t,r={}){const{exclusive:n}=r;return qe(e,"max",c=>n?c<t:c<=t||`Expected a ${e.type} less than ${n?"":"or equal to "}${t} but received \`${c}\``)}function mh(e,t,r={}){const{exclusive:n}=r;return qe(e,"min",c=>n?c>t:c>=t||`Expected a ${e.type} greater than ${n?"":"or equal to "}${t} but received \`${c}\``)}function _h(e){return qe(e,"nonempty",t=>rl(t)>0||`Expected a nonempty ${e.type} but received an empty one`)}function bh(e,t){return qe(e,"pattern",r=>t.test(r)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${r}"`)}function yh(e,t,r=t){const n=`Expected a ${e.type}`,c=t===r?`of \`${t}\``:`between \`${t}\` and \`${r}\``;return qe(e,"size",o=>{if(typeof o=="number"||o instanceof Date)return t<=o&&o<=r||`${n} ${c} but received \`${o}\``;if(o instanceof Map||o instanceof Set){const{size:a}=o;return t<=a&&a<=r||`${n} with a size ${c} but received one with a size of \`${a}\``}else{const{length:a}=o;return t<=a&&a<=r||`${n} with a length ${c} but received one with a length of \`${a}\``}})}function qe(e,t,r){return new G({...e,*refiner(n,c){yield*e.refiner(n,c);const o=r(n,c),a=ei(o,c,e,n);for(const f of a)yield{...f,refinement:t}}})}const vh=Object.freeze(Object.defineProperty({__proto__:null,Struct:G,StructError:Zu,any:Jd,array:Gd,assert:Qu,assign:qd,bigint:Zd,boolean:Qd,coerce:yi,create:Ku,date:Kd,defaulted:hh,define:Y,deprecated:jd,dynamic:Hd,empty:gh,enums:Xd,func:Yd,instance:eh,integer:th,intersection:rh,is:_i,lazy:Ud,literal:nh,map:sh,mask:Xu,max:ph,min:mh,never:bi,nonempty:_h,nullable:ih,number:oh,object:Ft,omit:Wd,optional:Yu,partial:Vd,pattern:bh,pick:zd,record:ah,refine:qe,regexp:ch,set:uh,size:yh,string:el,struct:$d,trimmed:fh,tuple:lh,type:Bt,union:dh,unknown:tl,validate:We},Symbol.toStringTag,{value:"Module"})),je=Nt(vh);var _a;function pe(){if(_a)return ne;_a=1,Object.defineProperty(ne,"__esModule",{value:!0}),ne.assertExhaustive=ne.assertStruct=ne.assert=ne.AssertionError=void 0;const e=je;function t(u){return typeof u=="object"&&u!==null&&"message"in u}function r(u){var h,s;return typeof((s=(h=u==null?void 0:u.prototype)===null||h===void 0?void 0:h.constructor)===null||s===void 0?void 0:s.name)=="string"}function n(u){const h=t(u)?u.message:String(u);return h.endsWith(".")?h.slice(0,-1):h}function c(u,h){return r(u)?new u({message:h}):u({message:h})}class o extends Error{constructor(h){super(h.message),this.code="ERR_ASSERTION"}}ne.AssertionError=o;function a(u,h="Assertion failed.",s=o){if(!u)throw h instanceof Error?h:c(s,h)}ne.assert=a;function f(u,h,s="Assertion failed",l=o){try{(0,e.assert)(u,h)}catch(i){throw c(l,`${s}: ${n(i)}.`)}}ne.assertStruct=f;function g(u){throw new Error("Invalid branch reached. Should be detected during compilation.")}return ne.assertExhaustive=g,ne}var bt={},ba;function nl(){if(ba)return bt;ba=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.base64=void 0;const e=je,t=pe(),r=(n,c={})=>{var o,a;const f=(o=c.paddingRequired)!==null&&o!==void 0?o:!1,g=(a=c.characterSet)!==null&&a!==void 0?a:"base64";let u;g==="base64"?u=String.raw`[A-Za-z0-9+\/]`:((0,t.assert)(g==="base64url"),u=String.raw`[-_A-Za-z0-9]`);let h;return f?h=new RegExp(`^(?:${u}{4})*(?:${u}{3}=|${u}{2}==)?$`,"u"):h=new RegExp(`^(?:${u}{4})*(?:${u}{2,3}|${u}{3}=|${u}{2}==)?$`,"u"),(0,e.pattern)(n,h)};return bt.base64=r,bt}var U={},Mn={},ya;function lr(){return ya||(ya=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.remove0x=e.add0x=e.assertIsStrictHexString=e.assertIsHexString=e.isStrictHexString=e.isHexString=e.StrictHexStruct=e.HexStruct=void 0;const t=je,r=pe();e.HexStruct=(0,t.pattern)((0,t.string)(),/^(?:0x)?[0-9a-f]+$/iu),e.StrictHexStruct=(0,t.pattern)((0,t.string)(),/^0x[0-9a-f]+$/iu);function n(u){return(0,t.is)(u,e.HexStruct)}e.isHexString=n;function c(u){return(0,t.is)(u,e.StrictHexStruct)}e.isStrictHexString=c;function o(u){(0,r.assert)(n(u),"Value must be a hexadecimal string.")}e.assertIsHexString=o;function a(u){(0,r.assert)(c(u),'Value must be a hexadecimal string, starting with "0x".')}e.assertIsStrictHexString=a;function f(u){return u.startsWith("0x")?u:u.startsWith("0X")?`0x${u.substring(2)}`:`0x${u}`}e.add0x=f;function g(u){return u.startsWith("0x")||u.startsWith("0X")?u.substring(2):u}e.remove0x=g}(Mn)),Mn}var va;function sl(){if(va)return U;va=1,Object.defineProperty(U,"__esModule",{value:!0}),U.createDataView=U.concatBytes=U.valueToBytes=U.stringToBytes=U.numberToBytes=U.signedBigIntToBytes=U.bigIntToBytes=U.hexToBytes=U.bytesToString=U.bytesToNumber=U.bytesToSignedBigInt=U.bytesToBigInt=U.bytesToHex=U.assertIsBytes=U.isBytes=void 0;const e=pe(),t=lr(),r=48,n=58,c=87;function o(){const E=[];return()=>{if(E.length===0)for(let C=0;C<256;C++)E.push(C.toString(16).padStart(2,"0"));return E}}const a=o();function f(E){return E instanceof Uint8Array}U.isBytes=f;function g(E){(0,e.assert)(f(E),"Value must be a Uint8Array.")}U.assertIsBytes=g;function u(E){if(g(E),E.length===0)return"0x";const C=a(),T=new Array(E.length);for(let N=0;N<E.length;N++)T[N]=C[E[N]];return(0,t.add0x)(T.join(""))}U.bytesToHex=u;function h(E){g(E);const C=u(E);return BigInt(C)}U.bytesToBigInt=h;function s(E){g(E);let C=BigInt(0);for(const T of E)C=(C<<BigInt(8))+BigInt(T);return BigInt.asIntN(E.length*8,C)}U.bytesToSignedBigInt=s;function l(E){g(E);const C=h(E);return(0,e.assert)(C<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(C)}U.bytesToNumber=l;function i(E){return g(E),new TextDecoder().decode(E)}U.bytesToString=i;function p(E){var C;if(((C=E==null?void 0:E.toLowerCase)===null||C===void 0?void 0:C.call(E))==="0x")return new Uint8Array;(0,t.assertIsHexString)(E);const T=(0,t.remove0x)(E).toLowerCase(),N=T.length%2===0?T:`0${T}`,P=new Uint8Array(N.length/2);for(let F=0;F<P.length;F++){const z=N.charCodeAt(F*2),A=N.charCodeAt(F*2+1),k=z-(z<n?r:c),R=A-(A<n?r:c);P[F]=k*16+R}return P}U.hexToBytes=p;function m(E){(0,e.assert)(typeof E=="bigint","Value must be a bigint."),(0,e.assert)(E>=BigInt(0),"Value must be a non-negative bigint.");const C=E.toString(16);return p(C)}U.bigIntToBytes=m;function _(E,C){(0,e.assert)(C>0);const T=E>>BigInt(31);return!((~E&T)+(E&~T)>>BigInt(C*8+-1))}function d(E,C){(0,e.assert)(typeof E=="bigint","Value must be a bigint."),(0,e.assert)(typeof C=="number","Byte length must be a number."),(0,e.assert)(C>0,"Byte length must be greater than 0."),(0,e.assert)(_(E,C),"Byte length is too small to represent the given value.");let T=E;const N=new Uint8Array(C);for(let P=0;P<N.length;P++)N[P]=Number(BigInt.asUintN(8,T)),T>>=BigInt(8);return N.reverse()}U.signedBigIntToBytes=d;function b(E){(0,e.assert)(typeof E=="number","Value must be a number."),(0,e.assert)(E>=0,"Value must be a non-negative number."),(0,e.assert)(Number.isSafeInteger(E),"Value is not a safe integer. Use `bigIntToBytes` instead.");const C=E.toString(16);return p(C)}U.numberToBytes=b;function y(E){return(0,e.assert)(typeof E=="string","Value must be a string."),new TextEncoder().encode(E)}U.stringToBytes=y;function v(E){if(typeof E=="bigint")return m(E);if(typeof E=="number")return b(E);if(typeof E=="string")return E.startsWith("0x")?p(E):y(E);if(f(E))return E;throw new TypeError(`Unsupported value type: "${typeof E}".`)}U.valueToBytes=v;function w(E){const C=new Array(E.length);let T=0;for(let P=0;P<E.length;P++){const F=v(E[P]);C[P]=F,T+=F.length}const N=new Uint8Array(T);for(let P=0,F=0;P<C.length;P++)N.set(C[P],F),F+=C[P].length;return N}U.concatBytes=w;function S(E){if(typeof q<"u"&&E instanceof q){const C=E.buffer.slice(E.byteOffset,E.byteOffset+E.byteLength);return new DataView(C)}return new DataView(E.buffer,E.byteOffset,E.byteLength)}return U.createDataView=S,U}var yt={},wa;function wh(){if(wa)return yt;wa=1,Object.defineProperty(yt,"__esModule",{value:!0}),yt.ChecksumStruct=void 0;const e=je,t=nl();return yt.ChecksumStruct=(0,e.size)((0,t.base64)((0,e.string)(),{paddingRequired:!0}),44,44),yt}var se={},Ea;function Eh(){if(Ea)return se;Ea=1,Object.defineProperty(se,"__esModule",{value:!0}),se.createHex=se.createBytes=se.createBigInt=se.createNumber=void 0;const e=je,t=pe(),r=sl(),n=lr(),c=(0,e.union)([(0,e.number)(),(0,e.bigint)(),(0,e.string)(),n.StrictHexStruct]),o=(0,e.coerce)((0,e.number)(),c,Number),a=(0,e.coerce)((0,e.bigint)(),c,BigInt);(0,e.union)([n.StrictHexStruct,(0,e.instance)(Uint8Array)]);const f=(0,e.coerce)((0,e.instance)(Uint8Array),(0,e.union)([n.StrictHexStruct]),r.hexToBytes),g=(0,e.coerce)(n.StrictHexStruct,(0,e.instance)(Uint8Array),r.bytesToHex);function u(i){try{const p=(0,e.create)(i,o);return(0,t.assert)(Number.isFinite(p),`Expected a number-like value, got "${i}".`),p}catch(p){throw p instanceof e.StructError?new Error(`Expected a number-like value, got "${i}".`):p}}se.createNumber=u;function h(i){try{return(0,e.create)(i,a)}catch(p){throw p instanceof e.StructError?new Error(`Expected a number-like value, got "${String(p.value)}".`):p}}se.createBigInt=h;function s(i){if(typeof i=="string"&&i.toLowerCase()==="0x")return new Uint8Array;try{return(0,e.create)(i,f)}catch(p){throw p instanceof e.StructError?new Error(`Expected a bytes-like value, got "${String(p.value)}".`):p}}se.createBytes=s;function l(i){if(i instanceof Uint8Array&&i.length===0||typeof i=="string"&&i.toLowerCase()==="0x")return"0x";try{return(0,e.create)(i,g)}catch(p){throw p instanceof e.StructError?new Error(`Expected a bytes-like value, got "${String(p.value)}".`):p}}return se.createHex=l,se}var ie={},Ra;function Rh(){if(Ra)return ie;Ra=1;var e=ie&&ie.__classPrivateFieldSet||function(a,f,g,u,h){if(u==="m")throw new TypeError("Private method is not writable");if(u==="a"&&!h)throw new TypeError("Private accessor was defined without a setter");if(typeof f=="function"?a!==f||!h:!f.has(a))throw new TypeError("Cannot write private member to an object whose class did not declare it");return u==="a"?h.call(a,g):h?h.value=g:f.set(a,g),g},t=ie&&ie.__classPrivateFieldGet||function(a,f,g,u){if(g==="a"&&!u)throw new TypeError("Private accessor was defined without a getter");if(typeof f=="function"?a!==f||!u:!f.has(a))throw new TypeError("Cannot read private member from an object whose class did not declare it");return g==="m"?u:g==="a"?u.call(a):u?u.value:f.get(a)},r,n;Object.defineProperty(ie,"__esModule",{value:!0}),ie.FrozenSet=ie.FrozenMap=void 0;class c{constructor(f){r.set(this,void 0),e(this,r,new Map(f),"f"),Object.freeze(this)}get size(){return t(this,r,"f").size}[(r=new WeakMap,Symbol.iterator)](){return t(this,r,"f")[Symbol.iterator]()}entries(){return t(this,r,"f").entries()}forEach(f,g){return t(this,r,"f").forEach((u,h,s)=>f.call(g,u,h,this))}get(f){return t(this,r,"f").get(f)}has(f){return t(this,r,"f").has(f)}keys(){return t(this,r,"f").keys()}values(){return t(this,r,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([f,g])=>`${String(f)} => ${String(g)}`).join(", ")} `:""}}`}}ie.FrozenMap=c;class o{constructor(f){n.set(this,void 0),e(this,n,new Set(f),"f"),Object.freeze(this)}get size(){return t(this,n,"f").size}[(n=new WeakMap,Symbol.iterator)](){return t(this,n,"f")[Symbol.iterator]()}entries(){return t(this,n,"f").entries()}forEach(f,g){return t(this,n,"f").forEach((u,h,s)=>f.call(g,u,h,this))}has(f){return t(this,n,"f").has(f)}keys(){return t(this,n,"f").keys()}values(){return t(this,n,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(f=>String(f)).join(", ")} `:""}}`}}return ie.FrozenSet=o,Object.freeze(c),Object.freeze(c.prototype),Object.freeze(o),Object.freeze(o.prototype),ie}var Nn={},Sa;function Sh(){return Sa||(Sa=1,Object.defineProperty(Nn,"__esModule",{value:!0})),Nn}var Tn={},Ca;function Ch(){return Ca||(Ca=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getJsonRpcIdValidator=e.assertIsJsonRpcError=e.isJsonRpcError=e.assertIsJsonRpcFailure=e.isJsonRpcFailure=e.assertIsJsonRpcSuccess=e.isJsonRpcSuccess=e.assertIsJsonRpcResponse=e.isJsonRpcResponse=e.assertIsPendingJsonRpcResponse=e.isPendingJsonRpcResponse=e.JsonRpcResponseStruct=e.JsonRpcFailureStruct=e.JsonRpcSuccessStruct=e.PendingJsonRpcResponseStruct=e.assertIsJsonRpcRequest=e.isJsonRpcRequest=e.assertIsJsonRpcNotification=e.isJsonRpcNotification=e.JsonRpcNotificationStruct=e.JsonRpcRequestStruct=e.JsonRpcParamsStruct=e.JsonRpcErrorStruct=e.JsonRpcIdStruct=e.JsonRpcVersionStruct=e.jsonrpc2=e.getJsonSize=e.isValidJson=e.JsonStruct=e.UnsafeJsonStruct=void 0;const t=je,r=pe(),n=()=>(0,t.define)("finite number",w=>(0,t.is)(w,(0,t.number)())&&Number.isFinite(w));e.UnsafeJsonStruct=(0,t.union)([(0,t.literal)(null),(0,t.boolean)(),n(),(0,t.string)(),(0,t.array)((0,t.lazy)(()=>e.UnsafeJsonStruct)),(0,t.record)((0,t.string)(),(0,t.lazy)(()=>e.UnsafeJsonStruct))]),e.JsonStruct=(0,t.define)("Json",(w,S)=>{function E(C,T){const P=[...T.validator(C,S)];return P.length>0?P:!0}try{const C=E(w,e.UnsafeJsonStruct);return C!==!0?C:E(JSON.parse(JSON.stringify(w)),e.UnsafeJsonStruct)}catch(C){return C instanceof RangeError?"Circular reference detected":!1}});function c(w){return(0,t.is)(w,e.JsonStruct)}e.isValidJson=c;function o(w){(0,r.assertStruct)(w,e.JsonStruct,"Invalid JSON value");const S=JSON.stringify(w);return new TextEncoder().encode(S).byteLength}e.getJsonSize=o,e.jsonrpc2="2.0",e.JsonRpcVersionStruct=(0,t.literal)(e.jsonrpc2),e.JsonRpcIdStruct=(0,t.nullable)((0,t.union)([(0,t.number)(),(0,t.string)()])),e.JsonRpcErrorStruct=(0,t.object)({code:(0,t.integer)(),message:(0,t.string)(),data:(0,t.optional)(e.JsonStruct),stack:(0,t.optional)((0,t.string)())}),e.JsonRpcParamsStruct=(0,t.optional)((0,t.union)([(0,t.record)((0,t.string)(),e.JsonStruct),(0,t.array)(e.JsonStruct)])),e.JsonRpcRequestStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,method:(0,t.string)(),params:e.JsonRpcParamsStruct}),e.JsonRpcNotificationStruct=(0,t.omit)(e.JsonRpcRequestStruct,["id"]);function a(w){return(0,t.is)(w,e.JsonRpcNotificationStruct)}e.isJsonRpcNotification=a;function f(w,S){(0,r.assertStruct)(w,e.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",S)}e.assertIsJsonRpcNotification=f;function g(w){return(0,t.is)(w,e.JsonRpcRequestStruct)}e.isJsonRpcRequest=g;function u(w,S){(0,r.assertStruct)(w,e.JsonRpcRequestStruct,"Invalid JSON-RPC request",S)}e.assertIsJsonRpcRequest=u,e.PendingJsonRpcResponseStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:(0,t.optional)((0,t.unknown)()),error:(0,t.optional)(e.JsonRpcErrorStruct)}),e.JsonRpcSuccessStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:e.JsonStruct}),e.JsonRpcFailureStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,error:e.JsonRpcErrorStruct}),e.JsonRpcResponseStruct=(0,t.union)([e.JsonRpcSuccessStruct,e.JsonRpcFailureStruct]);function h(w){return(0,t.is)(w,e.PendingJsonRpcResponseStruct)}e.isPendingJsonRpcResponse=h;function s(w,S){(0,r.assertStruct)(w,e.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",S)}e.assertIsPendingJsonRpcResponse=s;function l(w){return(0,t.is)(w,e.JsonRpcResponseStruct)}e.isJsonRpcResponse=l;function i(w,S){(0,r.assertStruct)(w,e.JsonRpcResponseStruct,"Invalid JSON-RPC response",S)}e.assertIsJsonRpcResponse=i;function p(w){return(0,t.is)(w,e.JsonRpcSuccessStruct)}e.isJsonRpcSuccess=p;function m(w,S){(0,r.assertStruct)(w,e.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",S)}e.assertIsJsonRpcSuccess=m;function _(w){return(0,t.is)(w,e.JsonRpcFailureStruct)}e.isJsonRpcFailure=_;function d(w,S){(0,r.assertStruct)(w,e.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",S)}e.assertIsJsonRpcFailure=d;function b(w){return(0,t.is)(w,e.JsonRpcErrorStruct)}e.isJsonRpcError=b;function y(w,S){(0,r.assertStruct)(w,e.JsonRpcErrorStruct,"Invalid JSON-RPC error",S)}e.assertIsJsonRpcError=y;function v(w){const{permitEmptyString:S,permitFractions:E,permitNull:C}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},w);return N=>!!(typeof N=="number"&&(E||Number.isInteger(N))||typeof N=="string"&&(S||N.length>0)||C&&N===null)}e.getJsonRpcIdValidator=v}(Tn)),Tn}var Pn={},ka;function kh(){return ka||(ka=1,Object.defineProperty(Pn,"__esModule",{value:!0})),Pn}var de={},Xt={exports:{}},On,Ia;function Ih(){if(Ia)return On;Ia=1;var e=1e3,t=e*60,r=t*60,n=r*24,c=n*7,o=n*365.25;On=function(h,s){s=s||{};var l=typeof h;if(l==="string"&&h.length>0)return a(h);if(l==="number"&&isFinite(h))return s.long?g(h):f(h);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(h))};function a(h){if(h=String(h),!(h.length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(h);if(s){var l=parseFloat(s[1]),i=(s[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return l*o;case"weeks":case"week":case"w":return l*c;case"days":case"day":case"d":return l*n;case"hours":case"hour":case"hrs":case"hr":case"h":return l*r;case"minutes":case"minute":case"mins":case"min":case"m":return l*t;case"seconds":case"second":case"secs":case"sec":case"s":return l*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function f(h){var s=Math.abs(h);return s>=n?Math.round(h/n)+"d":s>=r?Math.round(h/r)+"h":s>=t?Math.round(h/t)+"m":s>=e?Math.round(h/e)+"s":h+"ms"}function g(h){var s=Math.abs(h);return s>=n?u(h,s,n,"day"):s>=r?u(h,s,r,"hour"):s>=t?u(h,s,t,"minute"):s>=e?u(h,s,e,"second"):h+" ms"}function u(h,s,l,i){var p=s>=l*1.5;return Math.round(h/l)+" "+i+(p?"s":"")}return On}var xn,Aa;function Ah(){if(Aa)return xn;Aa=1;function e(t){n.debug=n,n.default=n,n.coerce=u,n.disable=f,n.enable=o,n.enabled=g,n.humanize=Ih(),n.destroy=h,Object.keys(t).forEach(s=>{n[s]=t[s]}),n.names=[],n.skips=[],n.formatters={};function r(s){let l=0;for(let i=0;i<s.length;i++)l=(l<<5)-l+s.charCodeAt(i),l|=0;return n.colors[Math.abs(l)%n.colors.length]}n.selectColor=r;function n(s){let l,i=null,p,m;function _(...d){if(!_.enabled)return;const b=_,y=Number(new Date),v=y-(l||y);b.diff=v,b.prev=l,b.curr=y,l=y,d[0]=n.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");let w=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,(E,C)=>{if(E==="%%")return"%";w++;const T=n.formatters[C];if(typeof T=="function"){const N=d[w];E=T.call(b,N),d.splice(w,1),w--}return E}),n.formatArgs.call(b,d),(b.log||n.log).apply(b,d)}return _.namespace=s,_.useColors=n.useColors(),_.color=n.selectColor(s),_.extend=c,_.destroy=n.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>i!==null?i:(p!==n.namespaces&&(p=n.namespaces,m=n.enabled(s)),m),set:d=>{i=d}}),typeof n.init=="function"&&n.init(_),_}function c(s,l){const i=n(this.namespace+(typeof l>"u"?":":l)+s);return i.log=this.log,i}function o(s){n.save(s),n.namespaces=s,n.names=[],n.skips=[];const l=(typeof s=="string"?s:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const i of l)i[0]==="-"?n.skips.push(i.slice(1)):n.names.push(i)}function a(s,l){let i=0,p=0,m=-1,_=0;for(;i<s.length;)if(p<l.length&&(l[p]===s[i]||l[p]==="*"))l[p]==="*"?(m=p,_=i,p++):(i++,p++);else if(m!==-1)p=m+1,_++,i=_;else return!1;for(;p<l.length&&l[p]==="*";)p++;return p===l.length}function f(){const s=[...n.names,...n.skips.map(l=>"-"+l)].join(",");return n.enable(""),s}function g(s){for(const l of n.skips)if(a(s,l))return!1;for(const l of n.names)if(a(s,l))return!0;return!1}function u(s){return s instanceof Error?s.stack||s.message:s}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}return xn=e,xn}var La;function Lh(){return La||(La=1,function(e,t){var r={};t.formatArgs=c,t.save=o,t.load=a,t.useColors=n,t.storage=f(),t.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let u;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(u=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(u[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function c(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const h="color: "+this.color;u.splice(1,0,h,"color: inherit");let s=0,l=0;u[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(s++,i==="%c"&&(l=s))}),u.splice(l,0,h)}t.log=console.debug||console.log||(()=>{});function o(u){try{u?t.storage.setItem("debug",u):t.storage.removeItem("debug")}catch{}}function a(){let u;try{u=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!u&&typeof Js<"u"&&"env"in Js&&(u=r.DEBUG),u}function f(){try{return localStorage}catch{}}e.exports=Ah()(t);const{formatters:g}=e.exports;g.j=function(u){try{return JSON.stringify(u)}catch(h){return"[UnexpectedJSONParseError]: "+h.message}}}(Xt,Xt.exports)),Xt.exports}var Ma;function Mh(){if(Ma)return de;Ma=1;var e=de&&de.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(de,"__esModule",{value:!0}),de.createModuleLogger=de.createProjectLogger=void 0;const r=(0,e(Lh()).default)("metamask");function n(o){return r.extend(o)}de.createProjectLogger=n;function c(o,a){return o.extend(a)}return de.createModuleLogger=c,de}var Fn={},Na;function Nh(){return Na||(Na=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.calculateNumberSize=e.calculateStringSize=e.isASCII=e.isPlainObject=e.ESCAPE_CHARACTERS_REGEXP=e.JsonSize=e.hasProperty=e.isObject=e.isNullOrUndefined=e.isNonEmptyArray=void 0;function t(u){return Array.isArray(u)&&u.length>0}e.isNonEmptyArray=t;function r(u){return u==null}e.isNullOrUndefined=r;function n(u){return!!u&&typeof u=="object"&&!Array.isArray(u)}e.isObject=n;const c=(u,h)=>Object.hasOwnProperty.call(u,h);e.hasProperty=c,function(u){u[u.Null=4]="Null",u[u.Comma=1]="Comma",u[u.Wrapper=1]="Wrapper",u[u.True=4]="True",u[u.False=5]="False",u[u.Quote=1]="Quote",u[u.Colon=1]="Colon",u[u.Date=24]="Date"}(e.JsonSize||(e.JsonSize={})),e.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu;function o(u){if(typeof u!="object"||u===null)return!1;try{let h=u;for(;Object.getPrototypeOf(h)!==null;)h=Object.getPrototypeOf(h);return Object.getPrototypeOf(u)===h}catch{return!1}}e.isPlainObject=o;function a(u){return u.charCodeAt(0)<=127}e.isASCII=a;function f(u){var h;return u.split("").reduce((l,i)=>a(i)?l+1:l+2,0)+((h=u.match(e.ESCAPE_CHARACTERS_REGEXP))!==null&&h!==void 0?h:[]).length}e.calculateStringSize=f;function g(u){return u.toString().length}e.calculateNumberSize=g}(Fn)),Fn}var oe={},Ta;function Th(){if(Ta)return oe;Ta=1,Object.defineProperty(oe,"__esModule",{value:!0}),oe.hexToBigInt=oe.hexToNumber=oe.bigIntToHex=oe.numberToHex=void 0;const e=pe(),t=lr(),r=a=>((0,e.assert)(typeof a=="number","Value must be a number."),(0,e.assert)(a>=0,"Value must be a non-negative number."),(0,e.assert)(Number.isSafeInteger(a),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,t.add0x)(a.toString(16)));oe.numberToHex=r;const n=a=>((0,e.assert)(typeof a=="bigint","Value must be a bigint."),(0,e.assert)(a>=0,"Value must be a non-negative bigint."),(0,t.add0x)(a.toString(16)));oe.bigIntToHex=n;const c=a=>{(0,t.assertIsHexString)(a);const f=parseInt(a,16);return(0,e.assert)(Number.isSafeInteger(f),"Value is not a safe integer. Use `hexToBigInt` instead."),f};oe.hexToNumber=c;const o=a=>((0,t.assertIsHexString)(a),BigInt((0,t.add0x)(a)));return oe.hexToBigInt=o,oe}var Bn={},Pa;function Ph(){return Pa||(Pa=1,Object.defineProperty(Bn,"__esModule",{value:!0})),Bn}var Dn={},Oa;function Oh(){return Oa||(Oa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.timeSince=e.inMilliseconds=e.Duration=void 0,function(o){o[o.Millisecond=1]="Millisecond",o[o.Second=1e3]="Second",o[o.Minute=6e4]="Minute",o[o.Hour=36e5]="Hour",o[o.Day=864e5]="Day",o[o.Week=6048e5]="Week",o[o.Year=31536e6]="Year"}(e.Duration||(e.Duration={}));const t=o=>Number.isInteger(o)&&o>=0,r=(o,a)=>{if(!t(o))throw new Error(`"${a}" must be a non-negative integer. Received: "${o}".`)};function n(o,a){return r(o,"count"),o*a}e.inMilliseconds=n;function c(o){return r(o,"timestamp"),Date.now()-o}e.timeSince=c}(Dn)),Dn}var qn={},xa;function xh(){return xa||(xa=1,Object.defineProperty(qn,"__esModule",{value:!0})),qn}var jn={},Yt={exports:{}},Hn,Fa;function dr(){if(Fa)return Hn;Fa=1;const e="2.0.0",t=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,c=t-6;return Hn={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:c,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Hn}var Un,Ba;function hr(){if(Ba)return Un;Ba=1;var e={};return Un=typeof Js=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{},Un}var Da;function Dt(){return Da||(Da=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:c}=dr(),o=hr();t=e.exports={};const a=t.re=[],f=t.safeRe=[],g=t.src=[],u=t.safeSrc=[],h=t.t={};let s=0;const l="[a-zA-Z0-9-]",i=[["\\s",1],["\\d",c],[l,n]],p=_=>{for(const[d,b]of i)_=_.split(`${d}*`).join(`${d}{0,${b}}`).split(`${d}+`).join(`${d}{1,${b}}`);return _},m=(_,d,b)=>{const y=p(d),v=s++;o(_,v,d),h[_]=v,g[v]=d,u[v]=y,a[v]=new RegExp(d,b?"g":void 0),f[v]=new RegExp(y,b?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${l}*`),m("MAINVERSION",`(${g[h.NUMERICIDENTIFIER]})\\.(${g[h.NUMERICIDENTIFIER]})\\.(${g[h.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${g[h.NUMERICIDENTIFIERLOOSE]})\\.(${g[h.NUMERICIDENTIFIERLOOSE]})\\.(${g[h.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${g[h.NONNUMERICIDENTIFIER]}|${g[h.NUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${g[h.NONNUMERICIDENTIFIER]}|${g[h.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASE",`(?:-(${g[h.PRERELEASEIDENTIFIER]}(?:\\.${g[h.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${g[h.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${g[h.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${l}+`),m("BUILD",`(?:\\+(${g[h.BUILDIDENTIFIER]}(?:\\.${g[h.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${g[h.MAINVERSION]}${g[h.PRERELEASE]}?${g[h.BUILD]}?`),m("FULL",`^${g[h.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${g[h.MAINVERSIONLOOSE]}${g[h.PRERELEASELOOSE]}?${g[h.BUILD]}?`),m("LOOSE",`^${g[h.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${g[h.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${g[h.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${g[h.XRANGEIDENTIFIER]})(?:\\.(${g[h.XRANGEIDENTIFIER]})(?:\\.(${g[h.XRANGEIDENTIFIER]})(?:${g[h.PRERELEASE]})?${g[h.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${g[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${g[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${g[h.XRANGEIDENTIFIERLOOSE]})(?:${g[h.PRERELEASELOOSE]})?${g[h.BUILD]}?)?)?`),m("XRANGE",`^${g[h.GTLT]}\\s*${g[h.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${g[h.GTLT]}\\s*${g[h.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),m("COERCE",`${g[h.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",g[h.COERCEPLAIN]+`(?:${g[h.PRERELEASE]})?(?:${g[h.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",g[h.COERCE],!0),m("COERCERTLFULL",g[h.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${g[h.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${g[h.LONETILDE]}${g[h.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${g[h.LONETILDE]}${g[h.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${g[h.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${g[h.LONECARET]}${g[h.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${g[h.LONECARET]}${g[h.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${g[h.GTLT]}\\s*(${g[h.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${g[h.GTLT]}\\s*(${g[h.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${g[h.GTLT]}\\s*(${g[h.LOOSEPLAIN]}|${g[h.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${g[h.XRANGEPLAIN]})\\s+-\\s+(${g[h.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${g[h.XRANGEPLAINLOOSE]})\\s+-\\s+(${g[h.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Yt,Yt.exports)),Yt.exports}var Wn,qa;function vi(){if(qa)return Wn;qa=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Wn=n=>n?typeof n!="object"?e:n:t,Wn}var Vn,ja;function il(){if(ja)return Vn;ja=1;const e=/^[0-9]+$/,t=(n,c)=>{if(typeof n=="number"&&typeof c=="number")return n===c?0:n<c?-1:1;const o=e.test(n),a=e.test(c);return o&&a&&(n=+n,c=+c),n===c?0:o&&!a?-1:a&&!o?1:n<c?-1:1};return Vn={compareIdentifiers:t,rcompareIdentifiers:(n,c)=>t(c,n)},Vn}var zn,Ha;function K(){if(Ha)return zn;Ha=1;const e=hr(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:r}=dr(),{safeRe:n,t:c}=Dt(),o=vi(),{compareIdentifiers:a}=il();class f{constructor(u,h){if(h=o(h),u instanceof f){if(u.loose===!!h.loose&&u.includePrerelease===!!h.includePrerelease)return u;u=u.version}else if(typeof u!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);if(u.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",u,h),this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease;const s=u.trim().match(h.loose?n[c.LOOSE]:n[c.FULL]);if(!s)throw new TypeError(`Invalid Version: ${u}`);if(this.raw=u,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(l=>{if(/^[0-9]+$/.test(l)){const i=+l;if(i>=0&&i<r)return i}return l}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(u){if(e("SemVer.compare",this.version,this.options,u),!(u instanceof f)){if(typeof u=="string"&&u===this.version)return 0;u=new f(u,this.options)}return u.version===this.version?0:this.compareMain(u)||this.comparePre(u)}compareMain(u){return u instanceof f||(u=new f(u,this.options)),this.major<u.major?-1:this.major>u.major?1:this.minor<u.minor?-1:this.minor>u.minor?1:this.patch<u.patch?-1:this.patch>u.patch?1:0}comparePre(u){if(u instanceof f||(u=new f(u,this.options)),this.prerelease.length&&!u.prerelease.length)return-1;if(!this.prerelease.length&&u.prerelease.length)return 1;if(!this.prerelease.length&&!u.prerelease.length)return 0;let h=0;do{const s=this.prerelease[h],l=u.prerelease[h];if(e("prerelease compare",h,s,l),s===void 0&&l===void 0)return 0;if(l===void 0)return 1;if(s===void 0)return-1;if(s===l)continue;return a(s,l)}while(++h)}compareBuild(u){u instanceof f||(u=new f(u,this.options));let h=0;do{const s=this.build[h],l=u.build[h];if(e("build compare",h,s,l),s===void 0&&l===void 0)return 0;if(l===void 0)return 1;if(s===void 0)return-1;if(s===l)continue;return a(s,l)}while(++h)}inc(u,h,s){if(u.startsWith("pre")){if(!h&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(h){const l=`-${h}`.match(this.options.loose?n[c.PRERELEASELOOSE]:n[c.PRERELEASE]);if(!l||l[1]!==h)throw new Error(`invalid identifier: ${h}`)}}switch(u){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",h,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",h,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",h,s),this.inc("pre",h,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",h,s),this.inc("pre",h,s);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const l=Number(s)?1:0;if(this.prerelease.length===0)this.prerelease=[l];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(h===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(l)}}if(h){let i=[h,l];s===!1&&(i=[h]),a(this.prerelease[0],h)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${u}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return zn=f,zn}var $n,Ua;function Ve(){if(Ua)return $n;Ua=1;const e=K();return $n=(r,n,c=!1)=>{if(r instanceof e)return r;try{return new e(r,n)}catch(o){if(!c)return null;throw o}},$n}var Jn,Wa;function Fh(){if(Wa)return Jn;Wa=1;const e=Ve();return Jn=(r,n)=>{const c=e(r,n);return c?c.version:null},Jn}var Gn,Va;function Bh(){if(Va)return Gn;Va=1;const e=Ve();return Gn=(r,n)=>{const c=e(r.trim().replace(/^[=v]+/,""),n);return c?c.version:null},Gn}var Zn,za;function Dh(){if(za)return Zn;za=1;const e=K();return Zn=(r,n,c,o,a)=>{typeof c=="string"&&(a=o,o=c,c=void 0);try{return new e(r instanceof e?r.version:r,c).inc(n,o,a).version}catch{return null}},Zn}var Qn,$a;function qh(){if($a)return Qn;$a=1;const e=Ve();return Qn=(r,n)=>{const c=e(r,null,!0),o=e(n,null,!0),a=c.compare(o);if(a===0)return null;const f=a>0,g=f?c:o,u=f?o:c,h=!!g.prerelease.length;if(!!u.prerelease.length&&!h){if(!u.patch&&!u.minor)return"major";if(u.compareMain(g)===0)return u.minor&&!u.patch?"minor":"patch"}const l=h?"pre":"";return c.major!==o.major?l+"major":c.minor!==o.minor?l+"minor":c.patch!==o.patch?l+"patch":"prerelease"},Qn}var Kn,Ja;function jh(){if(Ja)return Kn;Ja=1;const e=K();return Kn=(r,n)=>new e(r,n).major,Kn}var Xn,Ga;function Hh(){if(Ga)return Xn;Ga=1;const e=K();return Xn=(r,n)=>new e(r,n).minor,Xn}var Yn,Za;function Uh(){if(Za)return Yn;Za=1;const e=K();return Yn=(r,n)=>new e(r,n).patch,Yn}var es,Qa;function Wh(){if(Qa)return es;Qa=1;const e=Ve();return es=(r,n)=>{const c=e(r,n);return c&&c.prerelease.length?c.prerelease:null},es}var ts,Ka;function ae(){if(Ka)return ts;Ka=1;const e=K();return ts=(r,n,c)=>new e(r,c).compare(new e(n,c)),ts}var rs,Xa;function Vh(){if(Xa)return rs;Xa=1;const e=ae();return rs=(r,n,c)=>e(n,r,c),rs}var ns,Ya;function zh(){if(Ya)return ns;Ya=1;const e=ae();return ns=(r,n)=>e(r,n,!0),ns}var ss,ec;function wi(){if(ec)return ss;ec=1;const e=K();return ss=(r,n,c)=>{const o=new e(r,c),a=new e(n,c);return o.compare(a)||o.compareBuild(a)},ss}var is,tc;function $h(){if(tc)return is;tc=1;const e=wi();return is=(r,n)=>r.sort((c,o)=>e(c,o,n)),is}var os,rc;function Jh(){if(rc)return os;rc=1;const e=wi();return os=(r,n)=>r.sort((c,o)=>e(o,c,n)),os}var as,nc;function fr(){if(nc)return as;nc=1;const e=ae();return as=(r,n,c)=>e(r,n,c)>0,as}var cs,sc;function Ei(){if(sc)return cs;sc=1;const e=ae();return cs=(r,n,c)=>e(r,n,c)<0,cs}var us,ic;function ol(){if(ic)return us;ic=1;const e=ae();return us=(r,n,c)=>e(r,n,c)===0,us}var ls,oc;function al(){if(oc)return ls;oc=1;const e=ae();return ls=(r,n,c)=>e(r,n,c)!==0,ls}var ds,ac;function Ri(){if(ac)return ds;ac=1;const e=ae();return ds=(r,n,c)=>e(r,n,c)>=0,ds}var hs,cc;function Si(){if(cc)return hs;cc=1;const e=ae();return hs=(r,n,c)=>e(r,n,c)<=0,hs}var fs,uc;function cl(){if(uc)return fs;uc=1;const e=ol(),t=al(),r=fr(),n=Ri(),c=Ei(),o=Si();return fs=(f,g,u,h)=>{switch(g){case"===":return typeof f=="object"&&(f=f.version),typeof u=="object"&&(u=u.version),f===u;case"!==":return typeof f=="object"&&(f=f.version),typeof u=="object"&&(u=u.version),f!==u;case"":case"=":case"==":return e(f,u,h);case"!=":return t(f,u,h);case">":return r(f,u,h);case">=":return n(f,u,h);case"<":return c(f,u,h);case"<=":return o(f,u,h);default:throw new TypeError(`Invalid operator: ${g}`)}},fs}var gs,lc;function Gh(){if(lc)return gs;lc=1;const e=K(),t=Ve(),{safeRe:r,t:n}=Dt();return gs=(o,a)=>{if(o instanceof e)return o;if(typeof o=="number"&&(o=String(o)),typeof o!="string")return null;a=a||{};let f=null;if(!a.rtl)f=o.match(a.includePrerelease?r[n.COERCEFULL]:r[n.COERCE]);else{const i=a.includePrerelease?r[n.COERCERTLFULL]:r[n.COERCERTL];let p;for(;(p=i.exec(o))&&(!f||f.index+f[0].length!==o.length);)(!f||p.index+p[0].length!==f.index+f[0].length)&&(f=p),i.lastIndex=p.index+p[1].length+p[2].length;i.lastIndex=-1}if(f===null)return null;const g=f[2],u=f[3]||"0",h=f[4]||"0",s=a.includePrerelease&&f[5]?`-${f[5]}`:"",l=a.includePrerelease&&f[6]?`+${f[6]}`:"";return t(`${g}.${u}.${h}${s}${l}`,a)},gs}var ps,dc;function Zh(){if(dc)return ps;dc=1;class e{constructor(){this.max=1e3,this.map=new Map}get(r){const n=this.map.get(r);if(n!==void 0)return this.map.delete(r),this.map.set(r,n),n}delete(r){return this.map.delete(r)}set(r,n){if(!this.delete(r)&&n!==void 0){if(this.map.size>=this.max){const o=this.map.keys().next().value;this.delete(o)}this.map.set(r,n)}return this}}return ps=e,ps}var ms,hc;function ce(){if(hc)return ms;hc=1;const e=/\s+/g;class t{constructor(k,R){if(R=c(R),k instanceof t)return k.loose===!!R.loose&&k.includePrerelease===!!R.includePrerelease?k:new t(k.raw,R);if(k instanceof o)return this.raw=k.value,this.set=[[k]],this.formatted=void 0,this;if(this.options=R,this.loose=!!R.loose,this.includePrerelease=!!R.includePrerelease,this.raw=k.trim().replace(e," "),this.set=this.raw.split("||").map(I=>this.parseRange(I.trim())).filter(I=>I.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const I=this.set[0];if(this.set=this.set.filter(M=>!m(M[0])),this.set.length===0)this.set=[I];else if(this.set.length>1){for(const M of this.set)if(M.length===1&&_(M[0])){this.set=[M];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let k=0;k<this.set.length;k++){k>0&&(this.formatted+="||");const R=this.set[k];for(let I=0;I<R.length;I++)I>0&&(this.formatted+=" "),this.formatted+=R[I].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(k){const I=((this.options.includePrerelease&&i)|(this.options.loose&&p))+":"+k,M=n.get(I);if(M)return M;const L=this.options.loose,O=L?g[u.HYPHENRANGELOOSE]:g[u.HYPHENRANGE];k=k.replace(O,F(this.options.includePrerelease)),a("hyphen replace",k),k=k.replace(g[u.COMPARATORTRIM],h),a("comparator trim",k),k=k.replace(g[u.TILDETRIM],s),a("tilde trim",k),k=k.replace(g[u.CARETTRIM],l),a("caret trim",k);let j=k.split(" ").map(D=>b(D,this.options)).join(" ").split(/\s+/).map(D=>P(D,this.options));L&&(j=j.filter(D=>(a("loose invalid filter",D,this.options),!!D.match(g[u.COMPARATORLOOSE])))),a("range list",j);const B=new Map,H=j.map(D=>new o(D,this.options));for(const D of H){if(m(D))return[D];B.set(D.value,D)}B.size>1&&B.has("")&&B.delete("");const W=[...B.values()];return n.set(I,W),W}intersects(k,R){if(!(k instanceof t))throw new TypeError("a Range is required");return this.set.some(I=>d(I,R)&&k.set.some(M=>d(M,R)&&I.every(L=>M.every(O=>L.intersects(O,R)))))}test(k){if(!k)return!1;if(typeof k=="string")try{k=new f(k,this.options)}catch{return!1}for(let R=0;R<this.set.length;R++)if(z(this.set[R],k,this.options))return!0;return!1}}ms=t;const r=Zh(),n=new r,c=vi(),o=gr(),a=hr(),f=K(),{safeRe:g,t:u,comparatorTrimReplace:h,tildeTrimReplace:s,caretTrimReplace:l}=Dt(),{FLAG_INCLUDE_PRERELEASE:i,FLAG_LOOSE:p}=dr(),m=A=>A.value==="<0.0.0-0",_=A=>A.value==="",d=(A,k)=>{let R=!0;const I=A.slice();let M=I.pop();for(;R&&I.length;)R=I.every(L=>M.intersects(L,k)),M=I.pop();return R},b=(A,k)=>(A=A.replace(g[u.BUILD],""),a("comp",A,k),A=S(A,k),a("caret",A),A=v(A,k),a("tildes",A),A=C(A,k),a("xrange",A),A=N(A,k),a("stars",A),A),y=A=>!A||A.toLowerCase()==="x"||A==="*",v=(A,k)=>A.trim().split(/\s+/).map(R=>w(R,k)).join(" "),w=(A,k)=>{const R=k.loose?g[u.TILDELOOSE]:g[u.TILDE];return A.replace(R,(I,M,L,O,j)=>{a("tilde",A,I,M,L,O,j);let B;return y(M)?B="":y(L)?B=`>=${M}.0.0 <${+M+1}.0.0-0`:y(O)?B=`>=${M}.${L}.0 <${M}.${+L+1}.0-0`:j?(a("replaceTilde pr",j),B=`>=${M}.${L}.${O}-${j} <${M}.${+L+1}.0-0`):B=`>=${M}.${L}.${O} <${M}.${+L+1}.0-0`,a("tilde return",B),B})},S=(A,k)=>A.trim().split(/\s+/).map(R=>E(R,k)).join(" "),E=(A,k)=>{a("caret",A,k);const R=k.loose?g[u.CARETLOOSE]:g[u.CARET],I=k.includePrerelease?"-0":"";return A.replace(R,(M,L,O,j,B)=>{a("caret",A,M,L,O,j,B);let H;return y(L)?H="":y(O)?H=`>=${L}.0.0${I} <${+L+1}.0.0-0`:y(j)?L==="0"?H=`>=${L}.${O}.0${I} <${L}.${+O+1}.0-0`:H=`>=${L}.${O}.0${I} <${+L+1}.0.0-0`:B?(a("replaceCaret pr",B),L==="0"?O==="0"?H=`>=${L}.${O}.${j}-${B} <${L}.${O}.${+j+1}-0`:H=`>=${L}.${O}.${j}-${B} <${L}.${+O+1}.0-0`:H=`>=${L}.${O}.${j}-${B} <${+L+1}.0.0-0`):(a("no pr"),L==="0"?O==="0"?H=`>=${L}.${O}.${j}${I} <${L}.${O}.${+j+1}-0`:H=`>=${L}.${O}.${j}${I} <${L}.${+O+1}.0-0`:H=`>=${L}.${O}.${j} <${+L+1}.0.0-0`),a("caret return",H),H})},C=(A,k)=>(a("replaceXRanges",A,k),A.split(/\s+/).map(R=>T(R,k)).join(" ")),T=(A,k)=>{A=A.trim();const R=k.loose?g[u.XRANGELOOSE]:g[u.XRANGE];return A.replace(R,(I,M,L,O,j,B)=>{a("xRange",A,I,M,L,O,j,B);const H=y(L),W=H||y(O),D=W||y(j),te=D;return M==="="&&te&&(M=""),B=k.includePrerelease?"-0":"",H?M===">"||M==="<"?I="<0.0.0-0":I="*":M&&te?(W&&(O=0),j=0,M===">"?(M=">=",W?(L=+L+1,O=0,j=0):(O=+O+1,j=0)):M==="<="&&(M="<",W?L=+L+1:O=+O+1),M==="<"&&(B="-0"),I=`${M+L}.${O}.${j}${B}`):W?I=`>=${L}.0.0${B} <${+L+1}.0.0-0`:D&&(I=`>=${L}.${O}.0${B} <${L}.${+O+1}.0-0`),a("xRange return",I),I})},N=(A,k)=>(a("replaceStars",A,k),A.trim().replace(g[u.STAR],"")),P=(A,k)=>(a("replaceGTE0",A,k),A.trim().replace(g[k.includePrerelease?u.GTE0PRE:u.GTE0],"")),F=A=>(k,R,I,M,L,O,j,B,H,W,D,te)=>(y(I)?R="":y(M)?R=`>=${I}.0.0${A?"-0":""}`:y(L)?R=`>=${I}.${M}.0${A?"-0":""}`:O?R=`>=${R}`:R=`>=${R}${A?"-0":""}`,y(H)?B="":y(W)?B=`<${+H+1}.0.0-0`:y(D)?B=`<${H}.${+W+1}.0-0`:te?B=`<=${H}.${W}.${D}-${te}`:A?B=`<${H}.${W}.${+D+1}-0`:B=`<=${B}`,`${R} ${B}`.trim()),z=(A,k,R)=>{for(let I=0;I<A.length;I++)if(!A[I].test(k))return!1;if(k.prerelease.length&&!R.includePrerelease){for(let I=0;I<A.length;I++)if(a(A[I].semver),A[I].semver!==o.ANY&&A[I].semver.prerelease.length>0){const M=A[I].semver;if(M.major===k.major&&M.minor===k.minor&&M.patch===k.patch)return!0}return!1}return!0};return ms}var _s,fc;function gr(){if(fc)return _s;fc=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(h,s){if(s=r(s),h instanceof t){if(h.loose===!!s.loose)return h;h=h.value}h=h.trim().split(/\s+/).join(" "),a("comparator",h,s),this.options=s,this.loose=!!s.loose,this.parse(h),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(h){const s=this.options.loose?n[c.COMPARATORLOOSE]:n[c.COMPARATOR],l=h.match(s);if(!l)throw new TypeError(`Invalid comparator: ${h}`);this.operator=l[1]!==void 0?l[1]:"",this.operator==="="&&(this.operator=""),l[2]?this.semver=new f(l[2],this.options.loose):this.semver=e}toString(){return this.value}test(h){if(a("Comparator.test",h,this.options.loose),this.semver===e||h===e)return!0;if(typeof h=="string")try{h=new f(h,this.options)}catch{return!1}return o(h,this.operator,this.semver,this.options)}intersects(h,s){if(!(h instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new g(h.value,s).test(this.value):h.operator===""?h.value===""?!0:new g(this.value,s).test(h.semver):(s=r(s),s.includePrerelease&&(this.value==="<0.0.0-0"||h.value==="<0.0.0-0")||!s.includePrerelease&&(this.value.startsWith("<0.0.0")||h.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&h.operator.startsWith(">")||this.operator.startsWith("<")&&h.operator.startsWith("<")||this.semver.version===h.semver.version&&this.operator.includes("=")&&h.operator.includes("=")||o(this.semver,"<",h.semver,s)&&this.operator.startsWith(">")&&h.operator.startsWith("<")||o(this.semver,">",h.semver,s)&&this.operator.startsWith("<")&&h.operator.startsWith(">")))}}_s=t;const r=vi(),{safeRe:n,t:c}=Dt(),o=cl(),a=hr(),f=K(),g=ce();return _s}var bs,gc;function pr(){if(gc)return bs;gc=1;const e=ce();return bs=(r,n,c)=>{try{n=new e(n,c)}catch{return!1}return n.test(r)},bs}var ys,pc;function Qh(){if(pc)return ys;pc=1;const e=ce();return ys=(r,n)=>new e(r,n).set.map(c=>c.map(o=>o.value).join(" ").trim().split(" ")),ys}var vs,mc;function Kh(){if(mc)return vs;mc=1;const e=K(),t=ce();return vs=(n,c,o)=>{let a=null,f=null,g=null;try{g=new t(c,o)}catch{return null}return n.forEach(u=>{g.test(u)&&(!a||f.compare(u)===-1)&&(a=u,f=new e(a,o))}),a},vs}var ws,_c;function Xh(){if(_c)return ws;_c=1;const e=K(),t=ce();return ws=(n,c,o)=>{let a=null,f=null,g=null;try{g=new t(c,o)}catch{return null}return n.forEach(u=>{g.test(u)&&(!a||f.compare(u)===1)&&(a=u,f=new e(a,o))}),a},ws}var Es,bc;function Yh(){if(bc)return Es;bc=1;const e=K(),t=ce(),r=fr();return Es=(c,o)=>{c=new t(c,o);let a=new e("0.0.0");if(c.test(a)||(a=new e("0.0.0-0"),c.test(a)))return a;a=null;for(let f=0;f<c.set.length;++f){const g=c.set[f];let u=null;g.forEach(h=>{const s=new e(h.semver.version);switch(h.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!u||r(s,u))&&(u=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${h.operator}`)}}),u&&(!a||r(a,u))&&(a=u)}return a&&c.test(a)?a:null},Es}var Rs,yc;function ef(){if(yc)return Rs;yc=1;const e=ce();return Rs=(r,n)=>{try{return new e(r,n).range||"*"}catch{return null}},Rs}var Ss,vc;function Ci(){if(vc)return Ss;vc=1;const e=K(),t=gr(),{ANY:r}=t,n=ce(),c=pr(),o=fr(),a=Ei(),f=Si(),g=Ri();return Ss=(h,s,l,i)=>{h=new e(h,i),s=new n(s,i);let p,m,_,d,b;switch(l){case">":p=o,m=f,_=a,d=">",b=">=";break;case"<":p=a,m=g,_=o,d="<",b="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(c(h,s,i))return!1;for(let y=0;y<s.set.length;++y){const v=s.set[y];let w=null,S=null;if(v.forEach(E=>{E.semver===r&&(E=new t(">=0.0.0")),w=w||E,S=S||E,p(E.semver,w.semver,i)?w=E:_(E.semver,S.semver,i)&&(S=E)}),w.operator===d||w.operator===b||(!S.operator||S.operator===d)&&m(h,S.semver))return!1;if(S.operator===b&&_(h,S.semver))return!1}return!0},Ss}var Cs,wc;function tf(){if(wc)return Cs;wc=1;const e=Ci();return Cs=(r,n,c)=>e(r,n,">",c),Cs}var ks,Ec;function rf(){if(Ec)return ks;Ec=1;const e=Ci();return ks=(r,n,c)=>e(r,n,"<",c),ks}var Is,Rc;function nf(){if(Rc)return Is;Rc=1;const e=ce();return Is=(r,n,c)=>(r=new e(r,c),n=new e(n,c),r.intersects(n,c)),Is}var As,Sc;function sf(){if(Sc)return As;Sc=1;const e=pr(),t=ae();return As=(r,n,c)=>{const o=[];let a=null,f=null;const g=r.sort((l,i)=>t(l,i,c));for(const l of g)e(l,n,c)?(f=l,a||(a=l)):(f&&o.push([a,f]),f=null,a=null);a&&o.push([a,null]);const u=[];for(const[l,i]of o)l===i?u.push(l):!i&&l===g[0]?u.push("*"):i?l===g[0]?u.push(`<=${i}`):u.push(`${l} - ${i}`):u.push(`>=${l}`);const h=u.join(" || "),s=typeof n.raw=="string"?n.raw:String(n);return h.length<s.length?h:n},As}var Ls,Cc;function of(){if(Cc)return Ls;Cc=1;const e=ce(),t=gr(),{ANY:r}=t,n=pr(),c=ae(),o=(s,l,i={})=>{if(s===l)return!0;s=new e(s,i),l=new e(l,i);let p=!1;e:for(const m of s.set){for(const _ of l.set){const d=g(m,_,i);if(p=p||d!==null,d)continue e}if(p)return!1}return!0},a=[new t(">=0.0.0-0")],f=[new t(">=0.0.0")],g=(s,l,i)=>{if(s===l)return!0;if(s.length===1&&s[0].semver===r){if(l.length===1&&l[0].semver===r)return!0;i.includePrerelease?s=a:s=f}if(l.length===1&&l[0].semver===r){if(i.includePrerelease)return!0;l=f}const p=new Set;let m,_;for(const C of s)C.operator===">"||C.operator===">="?m=u(m,C,i):C.operator==="<"||C.operator==="<="?_=h(_,C,i):p.add(C.semver);if(p.size>1)return null;let d;if(m&&_){if(d=c(m.semver,_.semver,i),d>0)return null;if(d===0&&(m.operator!==">="||_.operator!=="<="))return null}for(const C of p){if(m&&!n(C,String(m),i)||_&&!n(C,String(_),i))return null;for(const T of l)if(!n(C,String(T),i))return!1;return!0}let b,y,v,w,S=_&&!i.includePrerelease&&_.semver.prerelease.length?_.semver:!1,E=m&&!i.includePrerelease&&m.semver.prerelease.length?m.semver:!1;S&&S.prerelease.length===1&&_.operator==="<"&&S.prerelease[0]===0&&(S=!1);for(const C of l){if(w=w||C.operator===">"||C.operator===">=",v=v||C.operator==="<"||C.operator==="<=",m){if(E&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===E.major&&C.semver.minor===E.minor&&C.semver.patch===E.patch&&(E=!1),C.operator===">"||C.operator===">="){if(b=u(m,C,i),b===C&&b!==m)return!1}else if(m.operator===">="&&!n(m.semver,String(C),i))return!1}if(_){if(S&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===S.major&&C.semver.minor===S.minor&&C.semver.patch===S.patch&&(S=!1),C.operator==="<"||C.operator==="<="){if(y=h(_,C,i),y===C&&y!==_)return!1}else if(_.operator==="<="&&!n(_.semver,String(C),i))return!1}if(!C.operator&&(_||m)&&d!==0)return!1}return!(m&&v&&!_&&d!==0||_&&w&&!m&&d!==0||E||S)},u=(s,l,i)=>{if(!s)return l;const p=c(s.semver,l.semver,i);return p>0?s:p<0||l.operator===">"&&s.operator===">="?l:s},h=(s,l,i)=>{if(!s)return l;const p=c(s.semver,l.semver,i);return p<0?s:p>0||l.operator==="<"&&s.operator==="<="?l:s};return Ls=o,Ls}var Ms,kc;function af(){if(kc)return Ms;kc=1;const e=Dt(),t=dr(),r=K(),n=il(),c=Ve(),o=Fh(),a=Bh(),f=Dh(),g=qh(),u=jh(),h=Hh(),s=Uh(),l=Wh(),i=ae(),p=Vh(),m=zh(),_=wi(),d=$h(),b=Jh(),y=fr(),v=Ei(),w=ol(),S=al(),E=Ri(),C=Si(),T=cl(),N=Gh(),P=gr(),F=ce(),z=pr(),A=Qh(),k=Kh(),R=Xh(),I=Yh(),M=ef(),L=Ci(),O=tf(),j=rf(),B=nf(),H=sf(),W=of();return Ms={parse:c,valid:o,clean:a,inc:f,diff:g,major:u,minor:h,patch:s,prerelease:l,compare:i,rcompare:p,compareLoose:m,compareBuild:_,sort:d,rsort:b,gt:y,lt:v,eq:w,neq:S,gte:E,lte:C,cmp:T,coerce:N,Comparator:P,Range:F,satisfies:z,toComparators:A,maxSatisfying:k,minSatisfying:R,minVersion:I,validRange:M,outside:L,gtr:O,ltr:j,intersects:B,simplifyRange:H,subset:W,SemVer:r,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:n.compareIdentifiers,rcompareIdentifiers:n.rcompareIdentifiers},Ms}var Ic;function cf(){return Ic||(Ic=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.satisfiesVersionRange=e.gtRange=e.gtVersion=e.assertIsSemVerRange=e.assertIsSemVerVersion=e.isValidSemVerRange=e.isValidSemVerVersion=e.VersionRangeStruct=e.VersionStruct=void 0;const t=af(),r=je,n=pe();e.VersionStruct=(0,r.refine)((0,r.string)(),"Version",s=>(0,t.valid)(s)===null?`Expected SemVer version, got "${s}"`:!0),e.VersionRangeStruct=(0,r.refine)((0,r.string)(),"Version range",s=>(0,t.validRange)(s)===null?`Expected SemVer range, got "${s}"`:!0);function c(s){return(0,r.is)(s,e.VersionStruct)}e.isValidSemVerVersion=c;function o(s){return(0,r.is)(s,e.VersionRangeStruct)}e.isValidSemVerRange=o;function a(s){(0,n.assertStruct)(s,e.VersionStruct)}e.assertIsSemVerVersion=a;function f(s){(0,n.assertStruct)(s,e.VersionRangeStruct)}e.assertIsSemVerRange=f;function g(s,l){return(0,t.gt)(s,l)}e.gtVersion=g;function u(s,l){return(0,t.gtr)(s,l)}e.gtRange=u;function h(s,l){return(0,t.satisfies)(s,l,{includePrerelease:!0})}e.satisfiesVersionRange=h}(jn)),jn}var Ac;function uf(){return Ac||(Ac=1,function(e){var t=Me&&Me.__createBinding||(Object.create?function(n,c,o,a){a===void 0&&(a=o);var f=Object.getOwnPropertyDescriptor(c,o);(!f||("get"in f?!c.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return c[o]}}),Object.defineProperty(n,a,f)}:function(n,c,o,a){a===void 0&&(a=o),n[a]=c[o]}),r=Me&&Me.__exportStar||function(n,c){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(c,o)&&t(c,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),r(pe(),e),r(nl(),e),r(sl(),e),r(wh(),e),r(Eh(),e),r(Rh(),e),r(Sh(),e),r(lr(),e),r(Ch(),e),r(kh(),e),r(Mh(),e),r(Nh(),e),r(Th(),e),r(Ph(),e),r(Oh(),e),r(xh(),e),r(cf(),e)}(Me)),Me}var Lc;function lf(){return Lc||(Lc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createModuleLogger=e.projectLogger=void 0;const t=uf();Object.defineProperty(e,"createModuleLogger",{enumerable:!0,get:function(){return t.createModuleLogger}}),e.projectLogger=(0,t.createProjectLogger)("eth-block-tracker")}(Ln)),Ln}var Mc;function df(){if(Mc)return Ae;Mc=1;var e=Ae&&Ae.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.PollingBlockTracker=void 0;const t=e(gi()),r=e(xd()),n=Gu(),c=lf(),o=(0,c.createModuleLogger)(c.projectLogger,"polling-block-tracker"),a=(0,t.default)(),f=1e3;let g=class extends n.BaseBlockTracker{constructor(s={}){var l;if(!s.provider)throw new Error("PollingBlockTracker - no provider specified.");super(Object.assign(Object.assign({},s),{blockResetDuration:(l=s.blockResetDuration)!==null&&l!==void 0?l:s.pollingInterval})),this._provider=s.provider,this._pollingInterval=s.pollingInterval||20*f,this._retryTimeout=s.retryTimeout||this._pollingInterval/10,this._keepEventLoopActive=s.keepEventLoopActive===void 0?!0:s.keepEventLoopActive,this._setSkipCacheFlag=s.setSkipCacheFlag||!1}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}async _start(){this._synchronize()}async _end(){}async _synchronize(){for(var s;this._isRunning;)try{await this._updateLatestBlock();const l=u(this._pollingInterval,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await l}catch(l){const i=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block:
3
3
  ${(s=l.stack)!==null&&s!==void 0?s:l}`);try{this.emit("error",i)}catch{console.error(i)}const p=u(this._retryTimeout,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await p}}async _updateLatestBlock(){const s=await this._fetchLatestBlock();this._newPotentialLatest(s)}async _fetchLatestBlock(){const s={jsonrpc:"2.0",id:a(),method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(s.skipCache=!0),o("Making request",s);const l=await(0,r.default)(i=>this._provider.sendAsync(s,i))();if(o("Got response",l),l.error)throw new Error(`PollingBlockTracker - encountered error fetching block:
4
4
  ${l.error.message}`);return l.result}};Ae.PollingBlockTracker=g;function u(h,s){return new Promise(l=>{const i=setTimeout(l,h);i.unref&&s&&i.unref()})}return Ae}var Ne={},Nc;function hf(){if(Nc)return Ne;Nc=1;var e=Ne&&Ne.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.SubscribeBlockTracker=void 0;const t=e(gi()),r=Gu(),n=(0,t.default)();let c=class extends r.BaseBlockTracker{constructor(a={}){if(!a.provider)throw new Error("SubscribeBlockTracker - no provider specified.");super(a),this._provider=a.provider,this._subscriptionId=null}async checkForLatestBlock(){return await this.getLatestBlock()}async _start(){if(this._subscriptionId===void 0||this._subscriptionId===null)try{const a=await this._call("eth_blockNumber");this._subscriptionId=await this._call("eth_subscribe","newHeads"),this._provider.on("data",this._handleSubData.bind(this)),this._newPotentialLatest(a)}catch(a){this.emit("error",a)}}async _end(){if(this._subscriptionId!==null&&this._subscriptionId!==void 0)try{await this._call("eth_unsubscribe",this._subscriptionId),this._subscriptionId=null}catch(a){this.emit("error",a)}}_call(a,...f){return new Promise((g,u)=>{this._provider.sendAsync({id:n(),method:a,params:f,jsonrpc:"2.0"},(h,s)=>{h?u(h):g(s.result)})})}_handleSubData(a,f){var g;f.method==="eth_subscription"&&((g=f.params)===null||g===void 0?void 0:g.subscription)===this._subscriptionId&&this._newPotentialLatest(f.params.result.number)}};return Ne.SubscribeBlockTracker=c,Ne}var Tc;function ff(){return Tc||(Tc=1,function(e){var t=Ie&&Ie.__createBinding||(Object.create?function(n,c,o,a){a===void 0&&(a=o),Object.defineProperty(n,a,{enumerable:!0,get:function(){return c[o]}})}:function(n,c,o,a){a===void 0&&(a=o),n[a]=c[o]}),r=Ie&&Ie.__exportStar||function(n,c){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(c,o)&&t(c,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),r(df(),e),r(hf(),e)}(Ie)),Ie}var Te={},vt={},wt={},Pc;function ul(){if(Pc)return wt;Pc=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.getUniqueId=void 0;const e=4294967295;let t=Math.floor(Math.random()*e);function r(){return t=(t+1)%e,t}return wt.getUniqueId=r,wt}var Oc;function gf(){if(Oc)return vt;Oc=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.createIdRemapMiddleware=void 0;const e=ul();function t(){return(r,n,c,o)=>{const a=r.id,f=e.getUniqueId();r.id=f,n.id=f,c(g=>{r.id=a,n.id=a,g()})}}return vt.createIdRemapMiddleware=t,vt}var Et={},xc;function pf(){if(xc)return Et;xc=1,Object.defineProperty(Et,"__esModule",{value:!0}),Et.createAsyncMiddleware=void 0;function e(t){return async(r,n,c,o)=>{let a;const f=new Promise(s=>{a=s});let g=null,u=!1;const h=async()=>{u=!0,c(s=>{g=s,a()}),await f};try{await t(r,n,h),u?(await f,g(null)):o(null)}catch(s){g?g(s):o(s)}}}return Et.createAsyncMiddleware=e,Et}var Rt={},Fc;function mf(){if(Fc)return Rt;Fc=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.createScaffoldMiddleware=void 0;function e(t){return(r,n,c,o)=>{const a=t[r.method];return a===void 0?c():typeof a=="function"?a(r,n,c,o):(n.result=a,o())}}return Rt.createScaffoldMiddleware=e,Rt}var Pe={},er={},Bc;function _f(){if(Bc)return er;Bc=1,Object.defineProperty(er,"__esModule",{value:!0});const e=pu();function t(c,o,a){try{Reflect.apply(c,o,a)}catch(f){setTimeout(()=>{throw f})}}function r(c){const o=c.length,a=new Array(o);for(let f=0;f<o;f+=1)a[f]=c[f];return a}class n extends e.EventEmitter{emit(o,...a){let f=o==="error";const g=this._events;if(g!==void 0)f=f&&g.error===void 0;else if(!f)return!1;if(f){let h;if(a.length>0&&([h]=a),h instanceof Error)throw h;const s=new Error(`Unhandled error.${h?` (${h.message})`:""}`);throw s.context=h,s}const u=g[o];if(u===void 0)return!1;if(typeof u=="function")t(u,this,a);else{const h=u.length,s=r(u);for(let l=0;l<h;l+=1)t(s[l],this,a)}return!0}}return er.default=n,er}var Ns={},Oe={},Ts,Dc;function bf(){if(Dc)return Ts;Dc=1,Ts=o,o.default=o,o.stable=u,o.stableStringify=u;var e="[...]",t="[Circular]",r=[],n=[];function c(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(l,i,p,m){typeof m>"u"&&(m=c()),f(l,"",0,[],void 0,0,m);var _;try{n.length===0?_=JSON.stringify(l,i,p):_=JSON.stringify(l,s(i),p)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var d=r.pop();d.length===4?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return _}function a(l,i,p,m){var _=Object.getOwnPropertyDescriptor(m,p);_.get!==void 0?_.configurable?(Object.defineProperty(m,p,{value:l}),r.push([m,p,i,_])):n.push([i,p,l]):(m[p]=l,r.push([m,p,i]))}function f(l,i,p,m,_,d,b){d+=1;var y;if(typeof l=="object"&&l!==null){for(y=0;y<m.length;y++)if(m[y]===l){a(t,l,i,_);return}if(typeof b.depthLimit<"u"&&d>b.depthLimit){a(e,l,i,_);return}if(typeof b.edgesLimit<"u"&&p+1>b.edgesLimit){a(e,l,i,_);return}if(m.push(l),Array.isArray(l))for(y=0;y<l.length;y++)f(l[y],y,y,m,l,d,b);else{var v=Object.keys(l);for(y=0;y<v.length;y++){var w=v[y];f(l[w],w,y,m,l,d,b)}}m.pop()}}function g(l,i){return l<i?-1:l>i?1:0}function u(l,i,p,m){typeof m>"u"&&(m=c());var _=h(l,"",0,[],void 0,0,m)||l,d;try{n.length===0?d=JSON.stringify(_,i,p):d=JSON.stringify(_,s(i),p)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var b=r.pop();b.length===4?Object.defineProperty(b[0],b[1],b[3]):b[0][b[1]]=b[2]}}return d}function h(l,i,p,m,_,d,b){d+=1;var y;if(typeof l=="object"&&l!==null){for(y=0;y<m.length;y++)if(m[y]===l){a(t,l,i,_);return}try{if(typeof l.toJSON=="function")return}catch{return}if(typeof b.depthLimit<"u"&&d>b.depthLimit){a(e,l,i,_);return}if(typeof b.edgesLimit<"u"&&p+1>b.edgesLimit){a(e,l,i,_);return}if(m.push(l),Array.isArray(l))for(y=0;y<l.length;y++)h(l[y],y,y,m,l,d,b);else{var v={},w=Object.keys(l).sort(g);for(y=0;y<w.length;y++){var S=w[y];h(l[S],S,y,m,l,d,b),v[S]=l[S]}if(typeof _<"u")r.push([_,i,l]),_[i]=v;else return v}m.pop()}}function s(l){return l=typeof l<"u"?l:function(i,p){return p},function(i,p){if(n.length>0)for(var m=0;m<n.length;m++){var _=n[m];if(_[1]===i&&_[0]===p){p=_[2],n.splice(m,1);break}}return l.call(this,i,p)}}return Ts}var qc;function ki(){if(qc)return Oe;qc=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.EthereumProviderError=Oe.EthereumRpcError=void 0;const e=bf();class t extends Error{constructor(a,f,g){if(!Number.isInteger(a))throw new Error('"code" must be an integer.');if(!f||typeof f!="string")throw new Error('"message" must be a nonempty string.');super(f),this.code=a,g!==void 0&&(this.data=g)}serialize(){const a={code:this.code,message:this.message};return this.data!==void 0&&(a.data=this.data),this.stack&&(a.stack=this.stack),a}toString(){return e.default(this.serialize(),c,2)}}Oe.EthereumRpcError=t;class r extends t{constructor(a,f,g){if(!n(a))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(a,f,g)}}Oe.EthereumProviderError=r;function n(o){return Number.isInteger(o)&&o>=1e3&&o<=4999}function c(o,a){if(a!=="[Circular]")return a}return Oe}var Ps={},xe={},jc;function Ii(){return jc||(jc=1,Object.defineProperty(xe,"__esModule",{value:!0}),xe.errorValues=xe.errorCodes=void 0,xe.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},xe.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}),xe}var Hc;function ll(){return Hc||(Hc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=Ii(),r=ki(),n=t.errorCodes.rpc.internal,c="Unspecified error message. This is a bug, please report it.",o={code:n,message:a(n)};e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function a(l,i=c){if(Number.isInteger(l)){const p=l.toString();if(s(t.errorValues,p))return t.errorValues[p].message;if(u(l))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return i}e.getMessageFromCode=a;function f(l){if(!Number.isInteger(l))return!1;const i=l.toString();return!!(t.errorValues[i]||u(l))}e.isValidCode=f;function g(l,{fallbackError:i=o,shouldIncludeStack:p=!1}={}){var m,_;if(!i||!Number.isInteger(i.code)||typeof i.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(l instanceof r.EthereumRpcError)return l.serialize();const d={};if(l&&typeof l=="object"&&!Array.isArray(l)&&s(l,"code")&&f(l.code)){const y=l;d.code=y.code,y.message&&typeof y.message=="string"?(d.message=y.message,s(y,"data")&&(d.data=y.data)):(d.message=a(d.code),d.data={originalError:h(l)})}else{d.code=i.code;const y=(m=l)===null||m===void 0?void 0:m.message;d.message=y&&typeof y=="string"?y:i.message,d.data={originalError:h(l)}}const b=(_=l)===null||_===void 0?void 0:_.stack;return p&&l&&b&&typeof b=="string"&&(d.stack=b),d}e.serializeError=g;function u(l){return l>=-32099&&l<=-32e3}function h(l){return l&&typeof l=="object"&&!Array.isArray(l)?Object.assign({},l):l}function s(l,i){return Object.prototype.hasOwnProperty.call(l,i)}}(Ps)),Ps}var St={},Uc;function yf(){if(Uc)return St;Uc=1,Object.defineProperty(St,"__esModule",{value:!0}),St.ethErrors=void 0;const e=ki(),t=ll(),r=Ii();St.ethErrors={rpc:{parse:a=>n(r.errorCodes.rpc.parse,a),invalidRequest:a=>n(r.errorCodes.rpc.invalidRequest,a),invalidParams:a=>n(r.errorCodes.rpc.invalidParams,a),methodNotFound:a=>n(r.errorCodes.rpc.methodNotFound,a),internal:a=>n(r.errorCodes.rpc.internal,a),server:a=>{if(!a||typeof a!="object"||Array.isArray(a))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:f}=a;if(!Number.isInteger(f)||f>-32005||f<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return n(f,a)},invalidInput:a=>n(r.errorCodes.rpc.invalidInput,a),resourceNotFound:a=>n(r.errorCodes.rpc.resourceNotFound,a),resourceUnavailable:a=>n(r.errorCodes.rpc.resourceUnavailable,a),transactionRejected:a=>n(r.errorCodes.rpc.transactionRejected,a),methodNotSupported:a=>n(r.errorCodes.rpc.methodNotSupported,a),limitExceeded:a=>n(r.errorCodes.rpc.limitExceeded,a)},provider:{userRejectedRequest:a=>c(r.errorCodes.provider.userRejectedRequest,a),unauthorized:a=>c(r.errorCodes.provider.unauthorized,a),unsupportedMethod:a=>c(r.errorCodes.provider.unsupportedMethod,a),disconnected:a=>c(r.errorCodes.provider.disconnected,a),chainDisconnected:a=>c(r.errorCodes.provider.chainDisconnected,a),custom:a=>{if(!a||typeof a!="object"||Array.isArray(a))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:f,message:g,data:u}=a;if(!g||typeof g!="string")throw new Error('"message" must be a nonempty string');return new e.EthereumProviderError(f,g,u)}}};function n(a,f){const[g,u]=o(f);return new e.EthereumRpcError(a,g||t.getMessageFromCode(a),u)}function c(a,f){const[g,u]=o(f);return new e.EthereumProviderError(a,g||t.getMessageFromCode(a),u)}function o(a){if(a){if(typeof a=="string")return[a];if(typeof a=="object"&&!Array.isArray(a)){const{message:f,data:g}=a;if(f&&typeof f!="string")throw new Error("Must specify string message.");return[f||void 0,g]}}return[]}return St}var Wc;function vf(){return Wc||(Wc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const t=ki();Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return t.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return t.EthereumProviderError}});const r=ll();Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return r.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return r.getMessageFromCode}});const n=yf();Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return n.ethErrors}});const c=Ii();Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return c.errorCodes}})}(Ns)),Ns}var Vc;function dl(){if(Vc)return Pe;Vc=1;var e=Pe&&Pe.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.JsonRpcEngine=void 0;const t=e(_f()),r=vf();let n=class ge extends t.default{constructor(){super(),this._middleware=[]}push(a){this._middleware.push(a)}handle(a,f){if(f&&typeof f!="function")throw new Error('"callback" must be a function if provided.');return Array.isArray(a)?f?this._handleBatch(a,f):this._handleBatch(a):f?this._handle(a,f):this._promiseHandle(a)}asMiddleware(){return async(a,f,g,u)=>{try{const[h,s,l]=await ge._runAllMiddleware(a,f,this._middleware);return s?(await ge._runReturnHandlers(l),u(h)):g(async i=>{try{await ge._runReturnHandlers(l)}catch(p){return i(p)}return i()})}catch(h){return u(h)}}}async _handleBatch(a,f){try{const g=await Promise.all(a.map(this._promiseHandle.bind(this)));return f?f(null,g):g}catch(g){if(f)return f(g);throw g}}_promiseHandle(a){return new Promise(f=>{this._handle(a,(g,u)=>{f(u)})})}async _handle(a,f){if(!a||Array.isArray(a)||typeof a!="object"){const s=new r.EthereumRpcError(r.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof a}`,{request:a});return f(s,{id:void 0,jsonrpc:"2.0",error:s})}if(typeof a.method!="string"){const s=new r.EthereumRpcError(r.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof a.method}`,{request:a});return f(s,{id:a.id,jsonrpc:"2.0",error:s})}const g=Object.assign({},a),u={id:g.id,jsonrpc:g.jsonrpc};let h=null;try{await this._processRequest(g,u)}catch(s){h=s}return h&&(delete u.result,u.error||(u.error=r.serializeError(h))),f(h,u)}async _processRequest(a,f){const[g,u,h]=await ge._runAllMiddleware(a,f,this._middleware);if(ge._checkForCompletion(a,f,u),await ge._runReturnHandlers(h),g)throw g}static async _runAllMiddleware(a,f,g){const u=[];let h=null,s=!1;for(const l of g)if([h,s]=await ge._runMiddleware(a,f,l,u),s)break;return[h,s,u.reverse()]}static _runMiddleware(a,f,g,u){return new Promise(h=>{const s=i=>{const p=i||f.error;p&&(f.error=r.serializeError(p)),h([p,!0])},l=i=>{f.error?s(f.error):(i&&(typeof i!="function"&&s(new r.EthereumRpcError(r.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof i}" for request: