@dcl/marketplace-site 8.6.1 → 8.6.2-21763626081.commit-e07ffa9

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 (64) hide show
  1. package/assets/{ConstantsUtil-0uePVKyp.js → ConstantsUtil-Cw5uH-i5.js} +1 -1
  2. package/assets/{ExchangeController-DqQsAVzx.js → ExchangeController-B8g6pRfS.js} +1 -1
  3. package/assets/{HelpersUtil-DFkbhaRg.js → HelpersUtil-DNBPWmHy.js} +1 -1
  4. package/assets/{NetworkUtil-DFkzwIPL.js → NetworkUtil-3SIrikOw.js} +1 -1
  5. package/assets/{SwapController-CNffpgsM.js → SwapController-BGRlDmCA.js} +1 -1
  6. package/assets/{ccip-CFTnAxWV.js → ccip-Df4LKgZK.js} +1 -1
  7. package/assets/{data-capture-DPJniIza.js → data-capture-C6QaYSs8.js} +1 -1
  8. package/assets/{email-CV99yGtH.js → email-BG_i___x.js} +1 -1
  9. package/assets/{embedded-wallet-BRmiIOUa.js → embedded-wallet-CG7TbOV-.js} +1 -1
  10. package/assets/{features-DZkQn-RB.js → features-BbA7J1KA.js} +1 -1
  11. package/assets/{fortmatic-Bo5KzcBD.js → fortmatic-Bz0QEpcS.js} +1 -1
  12. package/assets/{if-defined-CIrb8Dm-.js → if-defined-Dr097eDH.js} +1 -1
  13. package/assets/{index-CHuiuTQy.js → index--0UsZF9G.js} +5 -5
  14. package/assets/{index-ijwspMD9.js → index-3gO2YMOL.js} +1 -1
  15. package/assets/{index-Dj0QTdt3.js → index-4tzrFolB.js} +1 -1
  16. package/assets/{index-CJ9JjBbk.js → index-B-U3jRM1.js} +1 -1
  17. package/assets/{index-CtevShQo.js → index-B3_NJasS.js} +1 -1
  18. package/assets/{index-BUlRwq2o.js → index-B5TtbbC5.js} +1 -1
  19. package/assets/{index-BtloeNEV.js → index-BSk3zAXq.js} +1 -1
  20. package/assets/{index-DT3Iv8i3.js → index-BWv932mQ.js} +1 -1
  21. package/assets/{index-hJbRNzPd.js → index-BmUGzhOu.js} +1 -1
  22. package/assets/{index-CoDOM4BJ.js → index-BrS7G6Pb.js} +1 -1
  23. package/assets/{index-k3NmmIEH.js → index-Bv-MB-53.js} +1 -1
  24. package/assets/{index-Ba8VNpw-.js → index-C4Iw9Gtu.js} +1 -1
  25. package/assets/{index-BFABKBJ2.css → index-C7O9dqJ5.css} +4 -4
  26. package/assets/{index-Dv60edNb.js → index-C8dGzvIM.js} +1 -1
  27. package/assets/{index-D-L7ozfm.js → index-CBk7djGV.js} +1 -1
  28. package/assets/{index-DFkNML2i.js → index-CHE56tT6.js} +1 -1
  29. package/assets/{index-JzUBYnfx.js → index-CP_uj5Ou.js} +1 -1
  30. package/assets/{index-8ejL2aqn.js → index-CTejii_3.js} +1 -1
  31. package/assets/{index-CQqxfHPW.js → index-ChZ5AYqd.js} +1 -1
  32. package/assets/{index-Bk_97mZS.js → index-ClmwewVJ.js} +1 -1
  33. package/assets/{index-6PFA9My_.js → index-Cwe7emK5.js} +1 -1
  34. package/assets/{index-C3858rWU.js → index-CyeE4RgJ.js} +1 -1
  35. package/assets/{index-CruU_JWG.js → index-D3Kjyb0X.js} +1 -1
  36. package/assets/{index-CMaNpe07.js → index-D7KzIusu.js} +1 -1
  37. package/assets/{index-DUUFr82u.js → index-DFYCage7.js} +1 -1
  38. package/assets/{index-DjaTizzB.js → index-DMLVtHMI.js} +1 -1
  39. package/assets/{index-CM2Bsju7.js → index-DMuYTl5Z.js} +1 -1
  40. package/assets/{index-BkXJUMdv.js → index-DTzL6GLY.js} +1 -1
  41. package/assets/{index-DseC2rjG.js → index-DYpsaqOT.js} +1 -1
  42. package/assets/{index-r-2ydifG.js → index-DeGBgVeI.js} +1 -1
  43. package/assets/{index-CWln8DL3.js → index-DlVZs1oU.js} +1 -1
  44. package/assets/{index-Dn_xp_Lo.js → index-DxbiZFrZ.js} +1 -1
  45. package/assets/{index-Dtmzfbas.js → index-HR0EdyCk.js} +1 -1
  46. package/assets/{index-BUuapyWi.js → index-HWZ6yYA8.js} +1 -1
  47. package/assets/{index-B2dkLiRb.js → index-uPtowLYG.js} +1 -1
  48. package/assets/{index-BVb7vkdp.js → index-xGFXY5RX.js} +12 -12
  49. package/assets/{index-8wkY0Jb7.js → index-yx1vikfy.js} +1 -1
  50. package/assets/{index-1O0Ay-sy.js → index-zk_kM3aZ.js} +1 -1
  51. package/assets/{networks-D_xu1zad.js → networks-DDtnXuR-.js} +1 -1
  52. package/assets/{onramp-CWeX_eyk.js → onramp-BUHkZqza.js} +1 -1
  53. package/assets/{pay-with-exchange-Cc8oS6gA.js → pay-with-exchange-sBe4iQtb.js} +1 -1
  54. package/assets/{receive-CADcxERz.js → receive-CcTr-1Qk.js} +1 -1
  55. package/assets/{ref-BW5bCcd7.js → ref-CPwoUAPs.js} +1 -1
  56. package/assets/{secp256k1-DOJZC1KX.js → secp256k1-yAhP4Cup.js} +1 -1
  57. package/assets/{send-CudJE3ga.js → send-lCTQJ_pv.js} +1 -1
  58. package/assets/{socials-QLyEk6zh.js → socials-Dc6QGKNd.js} +1 -1
  59. package/assets/{swaps-DLZEIO9U.js → swaps-11Cmmiib.js} +1 -1
  60. package/assets/{transactions-of0GeMXR.js → transactions-DFf4sRIF.js} +1 -1
  61. package/assets/{verifyHash-CKXJQLWy.js → verifyHash-CWmIX1-Z.js} +3 -3
  62. package/assets/{w3m-modal-DP8Arf0z.js → w3m-modal-DrW1uZDo.js} +1 -1
  63. package/index.html +6 -5
  64. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import{a6 as kr,G as Q,a7 as Ir,a8 as ve,a9 as Ar,aa as rd,ab as nd,ac as Xt,ad as Tr,g as ol,b as re,ae as Zs}from"./index-BVb7vkdp.js";function id(e,r){for(var t=0;t<r.length;t++){const n=r[t];if(typeof n!="string"&&!Array.isArray(n)){for(const f in n)if(f!=="default"&&!(f in e)){const c=Object.getOwnPropertyDescriptor(n,f);c&&Object.defineProperty(e,f,c.get?c:{enumerable:!0,get:()=>n[f]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Fn={},gt={},pt={},Co;function sd(){if(Co)return pt;Co=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.walletLogo=void 0;const e=(r,t)=>{let n;switch(r){case"standard":return n=t,`data:image/svg+xml,%3Csvg width='${t}' 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=t,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' 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*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' 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*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' 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*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' 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*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' 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=t,`data:image/svg+xml,%3Csvg width='${t}' 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 pt.walletLogo=e,pt}var bt={},ko;function od(){return ko||(ko=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.LINK_API_URL=void 0,bt.LINK_API_URL="https://www.walletlink.org"),bt}var W={},qn={},De={},Io;function Lr(){return Io||(Io=1,Object.defineProperty(De,"__esModule",{value:!0}),De.errorValues=De.standardErrorCodes=void 0,De.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}},De.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."}}),De}var mt={},jn={},Ao;function Ks(){return Ao||(Ao=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 r=Lr(),t="Unspecified error message.";e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function n(u,o=t){if(u&&Number.isInteger(u)){const p=u.toString();if(h(r.errorValues,p))return r.errorValues[p].message;if(g(u))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return o}e.getMessageFromCode=n;function f(u){if(!Number.isInteger(u))return!1;const o=u.toString();return!!(r.errorValues[o]||g(u))}e.isValidCode=f;function c(u){var o;if(typeof u=="number")return u;if(l(u))return(o=u.code)!==null&&o!==void 0?o:u.errorCode}e.getErrorCode=c;function l(u){return typeof u=="object"&&u!==null&&(typeof u.code=="number"||typeof u.errorCode=="number")}function d(u,{shouldIncludeStack:o=!1}={}){const p={};if(u&&typeof u=="object"&&!Array.isArray(u)&&h(u,"code")&&f(u.code)){const m=u;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:s(u)})}else p.code=r.standardErrorCodes.rpc.internal,p.message=i(u,"message")?u.message:t,p.data={originalError:s(u)};return o&&(p.stack=i(u,"stack")?u.stack:void 0),p}e.serialize=d;function g(u){return u>=-32099&&u<=-32e3}function s(u){return u&&typeof u=="object"&&!Array.isArray(u)?Object.assign({},u):u}function h(u,o){return Object.prototype.hasOwnProperty.call(u,o)}function i(u,o){return typeof u=="object"&&u!==null&&o in u&&typeof u[o]=="string"}}(jn)),jn}var To;function ad(){if(To)return mt;To=1,Object.defineProperty(mt,"__esModule",{value:!0}),mt.standardErrors=void 0;const e=Lr(),r=Ks();mt.standardErrors={rpc:{parse:g=>t(e.standardErrorCodes.rpc.parse,g),invalidRequest:g=>t(e.standardErrorCodes.rpc.invalidRequest,g),invalidParams:g=>t(e.standardErrorCodes.rpc.invalidParams,g),methodNotFound:g=>t(e.standardErrorCodes.rpc.methodNotFound,g),internal:g=>t(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:s}=g;if(!Number.isInteger(s)||s>-32005||s<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return t(s,g)},invalidInput:g=>t(e.standardErrorCodes.rpc.invalidInput,g),resourceNotFound:g=>t(e.standardErrorCodes.rpc.resourceNotFound,g),resourceUnavailable:g=>t(e.standardErrorCodes.rpc.resourceUnavailable,g),transactionRejected:g=>t(e.standardErrorCodes.rpc.transactionRejected,g),methodNotSupported:g=>t(e.standardErrorCodes.rpc.methodNotSupported,g),limitExceeded:g=>t(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:s,message:h,data:i}=g;if(!h||typeof h!="string")throw new Error('"message" must be a nonempty string');return new l(s,h,i)}}};function t(g,s){const[h,i]=f(s);return new c(g,h||(0,r.getMessageFromCode)(g),i)}function n(g,s){const[h,i]=f(s);return new l(g,h||(0,r.getMessageFromCode)(g),i)}function f(g){if(g){if(typeof g=="string")return[g];if(typeof g=="object"&&!Array.isArray(g)){const{message:s,data:h}=g;if(s&&typeof s!="string")throw new Error("Must specify string message.");return[s||void 0,h]}}return[]}class c extends Error{constructor(s,h,i){if(!Number.isInteger(s))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=s,i!==void 0&&(this.data=i)}}class l extends c{constructor(s,h,i){if(!d(s))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(s,h,i)}}function d(g){return Number.isInteger(g)&&g>=1e3&&g<=4999}return mt}var _t={},yt={},Lo;function Qs(){if(Lo)return yt;Lo=1,Object.defineProperty(yt,"__esModule",{value:!0}),yt.isErrorResponse=void 0;function e(r){return r.errorMessage!==void 0}return yt.isErrorResponse=e,yt}var vt={},Mo;function Ys(){return Mo||(Mo=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.LIB_VERSION=void 0,vt.LIB_VERSION="3.9.3"),vt}var No;function cd(){if(No)return _t;No=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.serializeError=void 0;const e=Qs(),r=Ys(),t=Lr(),n=Ks();function f(d,g){const s=(0,n.serialize)(c(d),{shouldIncludeStack:!0}),h=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");h.searchParams.set("version",r.LIB_VERSION),h.searchParams.set("code",s.code.toString());const i=l(s.data,g);return i&&h.searchParams.set("method",i),h.searchParams.set("message",s.message),Object.assign(Object.assign({},s),{docUrl:h.href})}_t.serializeError=f;function c(d){return typeof d=="string"?{message:d,code:t.standardErrorCodes.rpc.internal}:(0,e.isErrorResponse)(d)?Object.assign(Object.assign({},d),{message:d.errorMessage,code:d.errorCode,data:{method:d.method}}):d}function l(d,g){const s=d==null?void 0:d.method;if(s)return s;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 _t}var xo;function Mr(){return xo||(xo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.standardErrors=e.standardErrorCodes=e.serializeError=e.getMessageFromCode=e.getErrorCode=void 0;const r=Lr();Object.defineProperty(e,"standardErrorCodes",{enumerable:!0,get:function(){return r.standardErrorCodes}});const t=ad();Object.defineProperty(e,"standardErrors",{enumerable:!0,get:function(){return t.standardErrors}});const n=cd();Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return n.serializeError}});const f=Ks();Object.defineProperty(e,"getErrorCode",{enumerable:!0,get:function(){return f.getErrorCode}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return f.getMessageFromCode}})}(qn)),qn}var ce={},Oo;function Nr(){if(Oo)return ce;Oo=1,Object.defineProperty(ce,"__esModule",{value:!0}),ce.ProviderType=ce.RegExpString=ce.IntNumber=ce.BigIntString=ce.AddressString=ce.HexString=ce.OpaqueType=void 0;function e(){return n=>n}ce.OpaqueType=e,ce.HexString=e(),ce.AddressString=e(),ce.BigIntString=e();function r(n){return Math.floor(n)}ce.IntNumber=r,ce.RegExpString=e();var t;return function(n){n.CoinbaseWallet="CoinbaseWallet",n.MetaMask="MetaMask",n.Unselected=""}(t||(ce.ProviderType=t={})),ce}var Po;function Le(){if(Po)return W;Po=1;var e=W&&W.__importDefault||function(k){return k&&k.__esModule?k:{default:k}};Object.defineProperty(W,"__esModule",{value:!0}),W.isMobileWeb=W.getLocation=W.isInIFrame=W.createQrUrl=W.getFavicon=W.range=W.isBigNumber=W.ensureParsedJSONObject=W.ensureBN=W.ensureRegExpString=W.ensureIntNumber=W.ensureBuffer=W.ensureAddressString=W.ensureEvenLengthHexString=W.ensureHexString=W.isHexString=W.prepend0x=W.strip0x=W.has0xPrefix=W.hexStringFromIntNumber=W.intNumberFromHexString=W.bigIntStringFromBN=W.hexStringFromBuffer=W.hexStringToUint8Array=W.uint8ArrayToHex=W.randomBytesHex=void 0;const r=e(kr()),t=Mr(),n=Nr(),f=/^[0-9]*$/,c=/^[a-f0-9]*$/;function l(k){return d(crypto.getRandomValues(new Uint8Array(k)))}W.randomBytesHex=l;function d(k){return[...k].map(L=>L.toString(16).padStart(2,"0")).join("")}W.uint8ArrayToHex=d;function g(k){return new Uint8Array(k.match(/.{1,2}/g).map(L=>parseInt(L,16)))}W.hexStringToUint8Array=g;function s(k,L=!1){const B=k.toString("hex");return(0,n.HexString)(L?`0x${B}`:B)}W.hexStringFromBuffer=s;function h(k){return(0,n.BigIntString)(k.toString(10))}W.bigIntStringFromBN=h;function i(k){return(0,n.IntNumber)(new r.default(y(k,!1),16).toNumber())}W.intNumberFromHexString=i;function u(k){return(0,n.HexString)(`0x${new r.default(k).toString(16)}`)}W.hexStringFromIntNumber=u;function o(k){return k.startsWith("0x")||k.startsWith("0X")}W.has0xPrefix=o;function p(k){return o(k)?k.slice(2):k}W.strip0x=p;function m(k){return o(k)?`0x${k.slice(2)}`:`0x${k}`}W.prepend0x=m;function b(k){if(typeof k!="string")return!1;const L=p(k).toLowerCase();return c.test(L)}W.isHexString=b;function a(k,L=!1){if(typeof k=="string"){const B=p(k).toLowerCase();if(c.test(B))return(0,n.HexString)(L?`0x${B}`:B)}throw t.standardErrors.rpc.invalidParams(`"${String(k)}" is not a hexadecimal string`)}W.ensureHexString=a;function y(k,L=!1){let B=a(k,!1);return B.length%2===1&&(B=(0,n.HexString)(`0${B}`)),L?(0,n.HexString)(`0x${B}`):B}W.ensureEvenLengthHexString=y;function _(k){if(typeof k=="string"){const L=p(k).toLowerCase();if(b(L)&&L.length===40)return(0,n.AddressString)(m(L))}throw t.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(k)}`)}W.ensureAddressString=_;function v(k){if(Q.isBuffer(k))return k;if(typeof k=="string"){if(b(k)){const L=y(k,!1);return Q.from(L,"hex")}return Q.from(k,"utf8")}throw t.standardErrors.rpc.invalidParams(`Not binary data: ${String(k)}`)}W.ensureBuffer=v;function w(k){if(typeof k=="number"&&Number.isInteger(k))return(0,n.IntNumber)(k);if(typeof k=="string"){if(f.test(k))return(0,n.IntNumber)(Number(k));if(b(k))return(0,n.IntNumber)(new r.default(y(k,!1),16).toNumber())}throw t.standardErrors.rpc.invalidParams(`Not an integer: ${String(k)}`)}W.ensureIntNumber=w;function C(k){if(k instanceof RegExp)return(0,n.RegExpString)(k.toString());throw t.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(k)}`)}W.ensureRegExpString=C;function S(k){if(k!==null&&(r.default.isBN(k)||x(k)))return new r.default(k.toString(10),10);if(typeof k=="number")return new r.default(w(k));if(typeof k=="string"){if(f.test(k))return new r.default(k,10);if(b(k))return new r.default(y(k,!1),16)}throw t.standardErrors.rpc.invalidParams(`Not an integer: ${String(k)}`)}W.ensureBN=S;function A(k){if(typeof k=="string")return JSON.parse(k);if(typeof k=="object")return k;throw t.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(k)}`)}W.ensureParsedJSONObject=A;function x(k){if(k==null||typeof k.constructor!="function")return!1;const{constructor:L}=k;return typeof L.config=="function"&&typeof L.EUCLID=="number"}W.isBigNumber=x;function N(k,L){return Array.from({length:L-k},(B,P)=>k+P)}W.range=N;function $(){const k=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:L,host:B}=document.location,P=k?k.getAttribute("href"):null;return!P||P.startsWith("javascript:")||P.startsWith("vbscript:")?null:P.startsWith("http://")||P.startsWith("https://")||P.startsWith("data:")?P:P.startsWith("//")?L+P:`${L}//${B}${P}`}W.getFavicon=$;function H(k,L,B,P,j,J){const V=P?"parent-id":"id",G=new URLSearchParams({[V]:k,secret:L,server:B,v:j,chainId:J.toString()}).toString();return`${B}/#/link?${G}`}W.createQrUrl=H;function Y(){try{return window.frameElement!==null}catch{return!1}}W.isInIFrame=Y;function O(){try{return Y()&&window.top?window.top.location:window.location}catch{return window.location}}W.getLocation=O;function M(){var k;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((k=window==null?void 0:window.navigator)===null||k===void 0?void 0:k.userAgent)}return W.isMobileWeb=M,W}var wt={},Bo;function ud(){if(Bo)return wt;Bo=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.ScopedLocalStorage=void 0;let e=class{constructor(t){this.scope=t}setItem(t,n){localStorage.setItem(this.scopedKey(t),n)}getItem(t){return localStorage.getItem(this.scopedKey(t))}removeItem(t){localStorage.removeItem(this.scopedKey(t))}clear(){const t=this.scopedKey(""),n=[];for(let f=0;f<localStorage.length;f++){const c=localStorage.key(f);typeof c=="string"&&c.startsWith(t)&&n.push(c)}n.forEach(f=>localStorage.removeItem(f))}scopedKey(t){return`${this.scope}:${t}`}};return wt.ScopedLocalStorage=e,wt}var Fe={},$n={exports:{}},Do;function ld(){return Do||(Do=1,function(e){var r=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function f(g,s,h){this.fn=g,this.context=s,this.once=h||!1}function c(g,s,h,i,u){if(typeof h!="function")throw new TypeError("The listener must be a function");var o=new f(h,i||g,u),p=t?t+s:s;return g._events[p]?g._events[p].fn?g._events[p]=[g._events[p],o]:g._events[p].push(o):(g._events[p]=o,g._eventsCount++),g}function l(g,s){--g._eventsCount===0?g._events=new n:delete g._events[s]}function d(){this._events=new n,this._eventsCount=0}d.prototype.eventNames=function(){var s=[],h,i;if(this._eventsCount===0)return s;for(i in h=this._events)r.call(h,i)&&s.push(t?i.slice(1):i);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(h)):s},d.prototype.listeners=function(s){var h=t?t+s:s,i=this._events[h];if(!i)return[];if(i.fn)return[i.fn];for(var u=0,o=i.length,p=new Array(o);u<o;u++)p[u]=i[u].fn;return p},d.prototype.listenerCount=function(s){var h=t?t+s:s,i=this._events[h];return i?i.fn?1:i.length:0},d.prototype.emit=function(s,h,i,u,o,p){var m=t?t+s:s;if(!this._events[m])return!1;var b=this._events[m],a=arguments.length,y,_;if(b.fn){switch(b.once&&this.removeListener(s,b.fn,void 0,!0),a){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,h),!0;case 3:return b.fn.call(b.context,h,i),!0;case 4:return b.fn.call(b.context,h,i,u),!0;case 5:return b.fn.call(b.context,h,i,u,o),!0;case 6:return b.fn.call(b.context,h,i,u,o,p),!0}for(_=1,y=new Array(a-1);_<a;_++)y[_-1]=arguments[_];b.fn.apply(b.context,y)}else{var v=b.length,w;for(_=0;_<v;_++)switch(b[_].once&&this.removeListener(s,b[_].fn,void 0,!0),a){case 1:b[_].fn.call(b[_].context);break;case 2:b[_].fn.call(b[_].context,h);break;case 3:b[_].fn.call(b[_].context,h,i);break;case 4:b[_].fn.call(b[_].context,h,i,u);break;default:if(!y)for(w=1,y=new Array(a-1);w<a;w++)y[w-1]=arguments[w];b[_].fn.apply(b[_].context,y)}}return!0},d.prototype.on=function(s,h,i){return c(this,s,h,i,!1)},d.prototype.once=function(s,h,i){return c(this,s,h,i,!0)},d.prototype.removeListener=function(s,h,i,u){var o=t?t+s:s;if(!this._events[o])return this;if(!h)return l(this,o),this;var p=this._events[o];if(p.fn)p.fn===h&&(!u||p.once)&&(!i||p.context===i)&&l(this,o);else{for(var m=0,b=[],a=p.length;m<a;m++)(p[m].fn!==h||u&&!p[m].once||i&&p[m].context!==i)&&b.push(p[m]);b.length?this._events[o]=b.length===1?b[0]:b:l(this,o)}return this},d.prototype.removeAllListeners=function(s){var h;return s?(h=t?t+s:s,this._events[h]&&l(this,h)):(this._events=new n,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prefixed=t,d.EventEmitter=d,e.exports=d}($n)),$n.exports}var Et={},Rt={},St={},Fo;function Xs(){return Fo||(Fo=1,Object.defineProperty(St,"__esModule",{value:!0}),St.EVENTS=void 0,St.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"}),St}var pe={},qo;function eo(){if(qo)return pe;qo=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.RelayAbstract=pe.APP_VERSION_KEY=pe.LOCAL_STORAGE_ADDRESSES_KEY=pe.WALLET_USER_NAME_KEY=void 0;const e=Mr();pe.WALLET_USER_NAME_KEY="walletUsername",pe.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",pe.APP_VERSION_KEY="AppVersion";let r=class{async makeEthereumJSONRPCRequest(n,f){if(!f)throw new Error("Error: No jsonRpcUrl provided");return window.fetch(f,{method:"POST",body:JSON.stringify(n),mode:"cors",headers:{"Content-Type":"application/json"}}).then(c=>c.json()).then(c=>{if(!c)throw e.standardErrors.rpc.parse({});const l=c,{error:d}=l;if(d)throw(0,e.serializeError)(d,n.method);return l})}};return pe.RelayAbstract=r,pe}var Ct={},Hn={exports:{}},or={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var jo;function Pe(){return jo||(jo=1,function(e,r){var t=Ir(),n=t.Buffer;function f(l,d){for(var g in l)d[g]=l[g]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=t:(f(t,r),r.Buffer=c);function c(l,d,g){return n(l,d,g)}c.prototype=Object.create(n.prototype),f(n,c),c.from=function(l,d,g){if(typeof l=="number")throw new TypeError("Argument must not be a number");return n(l,d,g)},c.alloc=function(l,d,g){if(typeof l!="number")throw new TypeError("Argument must be a number");var s=n(l);return d!==void 0?typeof g=="string"?s.fill(d,g):s.fill(d):s.fill(0),s},c.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return n(l)},c.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(l)}}(or,or.exports)),or.exports}var Un,$o;function lt(){if($o)return Un;$o=1;var e=Pe().Buffer;function r(t,n){this._block=e.alloc(t),this._finalSize=n,this._blockSize=t,this._len=0}return r.prototype.update=function(t,n){typeof t=="string"&&(n=n||"utf8",t=e.from(t,n));for(var f=this._block,c=this._blockSize,l=t.length,d=this._len,g=0;g<l;){for(var s=d%c,h=Math.min(l-g,c-s),i=0;i<h;i++)f[s+i]=t[g+i];d+=h,g+=h,d%c===0&&this._update(f)}return this._len+=l,this},r.prototype.digest=function(t){var n=this._len%this._blockSize;this._block[n]=128,this._block.fill(0,n+1),n>=this._finalSize&&(this._update(this._block),this._block.fill(0));var f=this._len*8;if(f<=4294967295)this._block.writeUInt32BE(f,this._blockSize-4);else{var c=(f&4294967295)>>>0,l=(f-c)/4294967296;this._block.writeUInt32BE(l,this._blockSize-8),this._block.writeUInt32BE(c,this._blockSize-4)}this._update(this._block);var d=this._hash();return t?d.toString(t):d},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Un=r,Un}var Wn,Ho;function dd(){if(Ho)return Wn;Ho=1;var e=ve(),r=lt(),t=Pe().Buffer,n=[1518500249,1859775393,-1894007588,-899497514],f=new Array(80);function c(){this.init(),this._w=f,r.call(this,64,56)}e(c,r),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function l(s){return s<<5|s>>>27}function d(s){return s<<30|s>>>2}function g(s,h,i,u){return s===0?h&i|~h&u:s===2?h&i|h&u|i&u:h^i^u}return c.prototype._update=function(s){for(var h=this._w,i=this._a|0,u=this._b|0,o=this._c|0,p=this._d|0,m=this._e|0,b=0;b<16;++b)h[b]=s.readInt32BE(b*4);for(;b<80;++b)h[b]=h[b-3]^h[b-8]^h[b-14]^h[b-16];for(var a=0;a<80;++a){var y=~~(a/20),_=l(i)+g(y,u,o,p)+m+h[a]+n[y]|0;m=p,p=o,o=d(u),u=i,i=_}this._a=i+this._a|0,this._b=u+this._b|0,this._c=o+this._c|0,this._d=p+this._d|0,this._e=m+this._e|0},c.prototype._hash=function(){var s=t.allocUnsafe(20);return s.writeInt32BE(this._a|0,0),s.writeInt32BE(this._b|0,4),s.writeInt32BE(this._c|0,8),s.writeInt32BE(this._d|0,12),s.writeInt32BE(this._e|0,16),s},Wn=c,Wn}var Vn,Uo;function hd(){if(Uo)return Vn;Uo=1;var e=ve(),r=lt(),t=Pe().Buffer,n=[1518500249,1859775393,-1894007588,-899497514],f=new Array(80);function c(){this.init(),this._w=f,r.call(this,64,56)}e(c,r),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function l(h){return h<<1|h>>>31}function d(h){return h<<5|h>>>27}function g(h){return h<<30|h>>>2}function s(h,i,u,o){return h===0?i&u|~i&o:h===2?i&u|i&o|u&o:i^u^o}return c.prototype._update=function(h){for(var i=this._w,u=this._a|0,o=this._b|0,p=this._c|0,m=this._d|0,b=this._e|0,a=0;a<16;++a)i[a]=h.readInt32BE(a*4);for(;a<80;++a)i[a]=l(i[a-3]^i[a-8]^i[a-14]^i[a-16]);for(var y=0;y<80;++y){var _=~~(y/20),v=d(u)+s(_,o,p,m)+b+i[y]+n[_]|0;b=m,m=p,p=g(o),o=u,u=v}this._a=u+this._a|0,this._b=o+this._b|0,this._c=p+this._c|0,this._d=m+this._d|0,this._e=b+this._e|0},c.prototype._hash=function(){var h=t.allocUnsafe(20);return h.writeInt32BE(this._a|0,0),h.writeInt32BE(this._b|0,4),h.writeInt32BE(this._c|0,8),h.writeInt32BE(this._d|0,12),h.writeInt32BE(this._e|0,16),h},Vn=c,Vn}var zn,Wo;function al(){if(Wo)return zn;Wo=1;var e=ve(),r=lt(),t=Pe().Buffer,n=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],f=new Array(64);function c(){this.init(),this._w=f,r.call(this,64,56)}e(c,r),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function l(u,o,p){return p^u&(o^p)}function d(u,o,p){return u&o|p&(u|o)}function g(u){return(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10)}function s(u){return(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7)}function h(u){return(u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3}function i(u){return(u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10}return c.prototype._update=function(u){for(var o=this._w,p=this._a|0,m=this._b|0,b=this._c|0,a=this._d|0,y=this._e|0,_=this._f|0,v=this._g|0,w=this._h|0,C=0;C<16;++C)o[C]=u.readInt32BE(C*4);for(;C<64;++C)o[C]=i(o[C-2])+o[C-7]+h(o[C-15])+o[C-16]|0;for(var S=0;S<64;++S){var A=w+s(y)+l(y,_,v)+n[S]+o[S]|0,x=g(p)+d(p,m,b)|0;w=v,v=_,_=y,y=a+A|0,a=b,b=m,m=p,p=A+x|0}this._a=p+this._a|0,this._b=m+this._b|0,this._c=b+this._c|0,this._d=a+this._d|0,this._e=y+this._e|0,this._f=_+this._f|0,this._g=v+this._g|0,this._h=w+this._h|0},c.prototype._hash=function(){var u=t.allocUnsafe(32);return u.writeInt32BE(this._a,0),u.writeInt32BE(this._b,4),u.writeInt32BE(this._c,8),u.writeInt32BE(this._d,12),u.writeInt32BE(this._e,16),u.writeInt32BE(this._f,20),u.writeInt32BE(this._g,24),u.writeInt32BE(this._h,28),u},zn=c,zn}var Jn,Vo;function fd(){if(Vo)return Jn;Vo=1;var e=ve(),r=al(),t=lt(),n=Pe().Buffer,f=new Array(64);function c(){this.init(),this._w=f,t.call(this,64,56)}return e(c,r),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var l=n.allocUnsafe(28);return l.writeInt32BE(this._a,0),l.writeInt32BE(this._b,4),l.writeInt32BE(this._c,8),l.writeInt32BE(this._d,12),l.writeInt32BE(this._e,16),l.writeInt32BE(this._f,20),l.writeInt32BE(this._g,24),l},Jn=c,Jn}var Gn,zo;function cl(){if(zo)return Gn;zo=1;var e=ve(),r=lt(),t=Pe().Buffer,n=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],f=new Array(160);function c(){this.init(),this._w=f,r.call(this,128,112)}e(c,r),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function l(m,b,a){return a^m&(b^a)}function d(m,b,a){return m&b|a&(m|b)}function g(m,b){return(m>>>28|b<<4)^(b>>>2|m<<30)^(b>>>7|m<<25)}function s(m,b){return(m>>>14|b<<18)^(m>>>18|b<<14)^(b>>>9|m<<23)}function h(m,b){return(m>>>1|b<<31)^(m>>>8|b<<24)^m>>>7}function i(m,b){return(m>>>1|b<<31)^(m>>>8|b<<24)^(m>>>7|b<<25)}function u(m,b){return(m>>>19|b<<13)^(b>>>29|m<<3)^m>>>6}function o(m,b){return(m>>>19|b<<13)^(b>>>29|m<<3)^(m>>>6|b<<26)}function p(m,b){return m>>>0<b>>>0?1:0}return c.prototype._update=function(m){for(var b=this._w,a=this._ah|0,y=this._bh|0,_=this._ch|0,v=this._dh|0,w=this._eh|0,C=this._fh|0,S=this._gh|0,A=this._hh|0,x=this._al|0,N=this._bl|0,$=this._cl|0,H=this._dl|0,Y=this._el|0,O=this._fl|0,M=this._gl|0,k=this._hl|0,L=0;L<32;L+=2)b[L]=m.readInt32BE(L*4),b[L+1]=m.readInt32BE(L*4+4);for(;L<160;L+=2){var B=b[L-30],P=b[L-15*2+1],j=h(B,P),J=i(P,B);B=b[L-2*2],P=b[L-2*2+1];var V=u(B,P),G=o(P,B),X=b[L-7*2],z=b[L-7*2+1],ae=b[L-16*2],T=b[L-16*2+1],I=J+z|0,F=j+X+p(I,J)|0;I=I+G|0,F=F+V+p(I,G)|0,I=I+T|0,F=F+ae+p(I,T)|0,b[L]=F,b[L+1]=I}for(var U=0;U<160;U+=2){F=b[U],I=b[U+1];var K=d(a,y,_),E=d(x,N,$),R=g(a,x),D=g(x,a),q=s(w,Y),ne=s(Y,w),Z=n[U],te=n[U+1],ge=l(w,C,S),Re=l(Y,O,M),se=k+ne|0,he=A+q+p(se,k)|0;se=se+Re|0,he=he+ge+p(se,Re)|0,se=se+te|0,he=he+Z+p(se,te)|0,se=se+I|0,he=he+F+p(se,I)|0;var Me=D+E|0,Ne=R+K+p(Me,D)|0;A=S,k=M,S=C,M=O,C=w,O=Y,Y=H+se|0,w=v+he+p(Y,H)|0,v=_,H=$,_=y,$=N,y=a,N=x,x=se+Me|0,a=he+Ne+p(x,se)|0}this._al=this._al+x|0,this._bl=this._bl+N|0,this._cl=this._cl+$|0,this._dl=this._dl+H|0,this._el=this._el+Y|0,this._fl=this._fl+O|0,this._gl=this._gl+M|0,this._hl=this._hl+k|0,this._ah=this._ah+a+p(this._al,x)|0,this._bh=this._bh+y+p(this._bl,N)|0,this._ch=this._ch+_+p(this._cl,$)|0,this._dh=this._dh+v+p(this._dl,H)|0,this._eh=this._eh+w+p(this._el,Y)|0,this._fh=this._fh+C+p(this._fl,O)|0,this._gh=this._gh+S+p(this._gl,M)|0,this._hh=this._hh+A+p(this._hl,k)|0},c.prototype._hash=function(){var m=t.allocUnsafe(64);function b(a,y,_){m.writeInt32BE(a,_),m.writeInt32BE(y,_+4)}return b(this._ah,this._al,0),b(this._bh,this._bl,8),b(this._ch,this._cl,16),b(this._dh,this._dl,24),b(this._eh,this._el,32),b(this._fh,this._fl,40),b(this._gh,this._gl,48),b(this._hh,this._hl,56),m},Gn=c,Gn}var Zn,Jo;function gd(){if(Jo)return Zn;Jo=1;var e=ve(),r=cl(),t=lt(),n=Pe().Buffer,f=new Array(160);function c(){this.init(),this._w=f,t.call(this,128,112)}return e(c,r),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var l=n.allocUnsafe(48);function d(g,s,h){l.writeInt32BE(g,h),l.writeInt32BE(s,h+4)}return d(this._ah,this._al,0),d(this._bh,this._bl,8),d(this._ch,this._cl,16),d(this._dh,this._dl,24),d(this._eh,this._el,32),d(this._fh,this._fl,40),l},Zn=c,Zn}var Go;function pd(){if(Go)return Hn.exports;Go=1;var e=Hn.exports=function(t){t=t.toLowerCase();var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n};return e.sha=dd(),e.sha1=hd(),e.sha224=fd(),e.sha256=al(),e.sha384=gd(),e.sha512=cl(),Hn.exports}var Zo;function to(){if(Zo)return Ct;Zo=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.Session=void 0;const e=pd(),r=Le(),t="session:id",n="session:secret",f="session:linked";let c=class ul{constructor(d,g,s,h){this._storage=d,this._id=g||(0,r.randomBytesHex)(16),this._secret=s||(0,r.randomBytesHex)(32),this._key=new e.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!h}static load(d){const g=d.getItem(t),s=d.getItem(f),h=d.getItem(n);return g&&h?new ul(d,g,h,s==="1"):null}static hash(d){return new e.sha256().update(d).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(d){this._linked=d,this.persistLinked()}save(){return this._storage.setItem(t,this._id),this._storage.setItem(n,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(f,this._linked?"1":"0")}};return Ct.Session=c,Ct}var kt={},It={},Ko;function bd(){if(Ko)return It;Ko=1,Object.defineProperty(It,"__esModule",{value:!0}),It.Cipher=void 0;const e=Le();let r=class{constructor(n){this.secret=n}async encrypt(n){const f=this.secret;if(f.length!==64)throw Error("secret must be 256 bits");const c=crypto.getRandomValues(new Uint8Array(12)),l=await crypto.subtle.importKey("raw",(0,e.hexStringToUint8Array)(f),{name:"aes-gcm"},!1,["encrypt","decrypt"]),d=new TextEncoder,g=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:c},l,d.encode(n)),s=16,h=g.slice(g.byteLength-s),i=g.slice(0,g.byteLength-s),u=new Uint8Array(h),o=new Uint8Array(i),p=new Uint8Array([...c,...u,...o]);return(0,e.uint8ArrayToHex)(p)}async decrypt(n){const f=this.secret;if(f.length!==64)throw Error("secret must be 256 bits");return new Promise((c,l)=>{(async function(){const d=await crypto.subtle.importKey("raw",(0,e.hexStringToUint8Array)(f),{name:"aes-gcm"},!1,["encrypt","decrypt"]),g=(0,e.hexStringToUint8Array)(n),s=g.slice(0,12),h=g.slice(12,28),i=g.slice(28),u=new Uint8Array([...i,...h]),o={name:"AES-GCM",iv:new Uint8Array(s)};try{const p=await window.crypto.subtle.decrypt(o,d,u),m=new TextDecoder;c(m.decode(p))}catch(p){l(p)}})()})}};return It.Cipher=r,It}var At={},Qo;function md(){if(Qo)return At;Qo=1,Object.defineProperty(At,"__esModule",{value:!0}),At.WalletLinkHTTP=void 0;let e=class{constructor(t,n,f){this.linkAPIUrl=t,this.sessionId=n;const c=`${n}:${f}`;this.auth=`Basic ${btoa(c)}`}async markUnseenEventsAsSeen(t){return Promise.all(t.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 t;const n=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(n.ok){const{events:f,error:c}=await n.json();if(c)throw new Error(`Check unseen events failed: ${c}`);const l=(t=f==null?void 0:f.filter(d=>d.event==="Web3Response").map(d=>({type:"Event",sessionId:this.sessionId,eventId:d.id,event:d.event,data:d.data})))!==null&&t!==void 0?t:[];return this.markUnseenEventsAsSeen(l),l}throw new Error(`Check unseen events failed: ${n.status}`)}};return At.WalletLinkHTTP=e,At}var qe={},Yo;function _d(){if(Yo)return qe;Yo=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.WalletLinkWebSocket=qe.ConnectionState=void 0;var e;(function(t){t[t.DISCONNECTED=0]="DISCONNECTED",t[t.CONNECTING=1]="CONNECTING",t[t.CONNECTED=2]="CONNECTED"})(e||(qe.ConnectionState=e={}));let r=class{setConnectionStateListener(n){this.connectionStateListener=n}setIncomingDataListener(n){this.incomingDataListener=n}constructor(n,f=WebSocket){this.WebSocketClass=f,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,f)=>{var c;let l;try{this.webSocket=l=new this.WebSocketClass(this.url)}catch(d){f(d);return}(c=this.connectionStateListener)===null||c===void 0||c.call(this,e.CONNECTING),l.onclose=d=>{var g;this.clearWebSocket(),f(new Error(`websocket error ${d.code}: ${d.reason}`)),(g=this.connectionStateListener)===null||g===void 0||g.call(this,e.DISCONNECTED)},l.onopen=d=>{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=[])},l.onmessage=d=>{var g,s;if(d.data==="h")(g=this.incomingDataListener)===null||g===void 0||g.call(this,{type:"Heartbeat"});else try{const h=JSON.parse(d.data);(s=this.incomingDataListener)===null||s===void 0||s.call(this,h)}catch{}}})}disconnect(){var n;const{webSocket:f}=this;if(f){this.clearWebSocket(),(n=this.connectionStateListener)===null||n===void 0||n.call(this,e.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{f.close()}catch{}}}sendData(n){const{webSocket:f}=this;if(!f){this.pendingData.push(n),this.connect();return}f.send(n)}clearWebSocket(){const{webSocket:n}=this;n&&(this.webSocket=null,n.onclose=null,n.onerror=null,n.onmessage=null,n.onopen=null)}};return qe.WalletLinkWebSocket=r,qe}var Xo;function yd(){if(Xo)return kt;Xo=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.WalletLinkConnection=void 0;const e=Nr(),r=bd(),t=Xs(),n=eo(),f=to(),c=md(),l=_d(),d=1e4,g=6e4;let s=class{constructor({session:i,linkAPIUrl:u,listener:o,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=a=>{if(!a)return;new Map([["__destroyed",this.handleDestroyed],["EthereumAddress",this.handleAccountUpdated],["WalletUsername",this.handleWalletUsernameUpdated],["AppVersion",this.handleAppVersionUpdated],["ChainId",_=>a.JsonRpcUrl&&this.handleChainUpdated(_,a.JsonRpcUrl)]]).forEach((_,v)=>{const w=a[v];w!==void 0&&_(w)})},this.handleDestroyed=a=>{var y,_;a==="1"&&((y=this.listener)===null||y===void 0||y.resetAndReload(),(_=this.diagnostic)===null||_===void 0||_.log(t.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:this.isDestroyed,sessionIdHash:f.Session.hash(this.session.id)}))},this.handleAccountUpdated=async a=>{var y,_;try{const v=await this.cipher.decrypt(a);(y=this.listener)===null||y===void 0||y.accountUpdated(v)}catch{(_=this.diagnostic)===null||_===void 0||_.log(t.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}},this.handleMetadataUpdated=async(a,y)=>{var _,v;try{const w=await this.cipher.decrypt(y);(_=this.listener)===null||_===void 0||_.metadataUpdated(a,w)}catch{(v=this.diagnostic)===null||v===void 0||v.log(t.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:a})}},this.handleWalletUsernameUpdated=async a=>{this.handleMetadataUpdated(n.WALLET_USER_NAME_KEY,a)},this.handleAppVersionUpdated=async a=>{this.handleMetadataUpdated(n.APP_VERSION_KEY,a)},this.handleChainUpdated=async(a,y)=>{var _,v;try{const w=await this.cipher.decrypt(a),C=await this.cipher.decrypt(y);(_=this.listener)===null||_===void 0||_.chainUpdated(w,C)}catch{(v=this.diagnostic)===null||v===void 0||v.log(t.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}},this.session=i,this.cipher=new r.Cipher(i.secret),this.diagnostic=p,this.listener=o;const b=new l.WalletLinkWebSocket(`${u}/rpc`,m);b.setConnectionStateListener(async a=>{var y;(y=this.diagnostic)===null||y===void 0||y.log(t.EVENTS.CONNECTED_STATE_CHANGE,{state:a,sessionIdHash:f.Session.hash(i.id)});let _=!1;switch(a){case l.ConnectionState.DISCONNECTED:if(!this.destroyed){const v=async()=>{await new Promise(w=>setTimeout(w,5e3)),this.destroyed||b.connect().catch(()=>{v()})};v()}break;case l.ConnectionState.CONNECTED:try{await this.authenticate(),this.sendIsLinked(),this.sendGetSessionConfig(),_=!0}catch{}this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},d),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();break;case l.ConnectionState.CONNECTING:break}this.connected!==_&&(this.connected=_)}),b.setIncomingDataListener(a=>{var y,_,v;switch(a.type){case"Heartbeat":this.updateLastHeartbeat();return;case"IsLinkedOK":case"Linked":{const w=a.type==="IsLinkedOK"?a.linked:void 0;(y=this.diagnostic)===null||y===void 0||y.log(t.EVENTS.LINKED,{sessionIdHash:f.Session.hash(i.id),linked:w,type:a.type,onlineGuests:a.onlineGuests}),this.linked=w||a.onlineGuests>0;break}case"GetSessionConfigOK":case"SessionConfigUpdated":{(_=this.diagnostic)===null||_===void 0||_.log(t.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:f.Session.hash(i.id),metadata_keys:a&&a.metadata?Object.keys(a.metadata):void 0}),this.handleSessionMetadataUpdated(a.metadata);break}case"Event":{this.handleIncomingEvent(a);break}}a.id!==void 0&&((v=this.requestResolutions.get(a.id))===null||v===void 0||v(a))}),this.ws=b,this.http=new c.WalletLinkHTTP(u,i.id,i.key)}connect(){var i;if(this.destroyed)throw new Error("instance is destroyed");(i=this.diagnostic)===null||i===void 0||i.log(t.EVENTS.STARTED_CONNECTING,{sessionIdHash:f.Session.hash(this.session.id)}),this.ws.connect()}destroy(){var i;this.destroyed=!0,this.ws.disconnect(),(i=this.diagnostic)===null||i===void 0||i.log(t.EVENTS.DISCONNECTED,{sessionIdHash:f.Session.hash(this.session.id)}),this.listener=void 0}get isDestroyed(){return this.destroyed}get connected(){return this._connected}set connected(i){var u,o;this._connected=i,i&&((u=this.onceConnected)===null||u===void 0||u.call(this)),(o=this.listener)===null||o===void 0||o.connectedUpdated(i)}setOnceConnected(i){return new Promise(u=>{this.connected?i().then(u):this.onceConnected=()=>{i().then(u),this.onceConnected=void 0}})}get linked(){return this._linked}set linked(i){var u,o;this._linked=i,i&&((u=this.onceLinked)===null||u===void 0||u.call(this)),(o=this.listener)===null||o===void 0||o.linkedUpdated(i)}setOnceLinked(i){return new Promise(u=>{this.linked?i().then(u):this.onceLinked=()=>{i().then(u),this.onceLinked=void 0}})}async handleIncomingEvent(i){var u,o;if(!(i.type!=="Event"||i.event!=="Web3Response"))try{const p=await this.cipher.decrypt(i.data),m=JSON.parse(p);if(m.type!=="WEB3_RESPONSE")return;(u=this.listener)===null||u===void 0||u.handleWeb3ResponseMessage(m)}catch{(o=this.diagnostic)===null||o===void 0||o.log(t.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(i=>setTimeout(i,250));try{await this.fetchUnseenEventsAPI()}catch(i){console.error("Unable to check for unseen events",i)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEach(u=>this.handleIncomingEvent(u))}async setSessionMetadata(i,u){const o={type:"SetSessionConfig",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id,metadata:{[i]:u}};return this.setOnceConnected(async()=>{const p=await this.makeRequest(o);if(p.type==="Fail")throw new Error(p.error||"failed to set session metadata")})}async publishEvent(i,u,o=!1){const p=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},u),{origin:location.origin,relaySource:window.coinbaseWalletExtension?"injected_sdk":"sdk"}))),m={type:"PublishEvent",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id,event:i,data:p,callWebhook:o};return this.setOnceLinked(async()=>{const b=await this.makeRequest(m);if(b.type==="Fail")throw new Error(b.error||"failed to publish event");return b.eventId})}sendData(i){this.ws.sendData(JSON.stringify(i))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>d*2){this.ws.disconnect();return}try{this.ws.sendData("h")}catch{}}async makeRequest(i,u=g){const o=i.id;this.sendData(i);let p;return Promise.race([new Promise((m,b)=>{p=window.setTimeout(()=>{b(new Error(`request ${o} timed out`))},u)}),new Promise(m=>{this.requestResolutions.set(o,b=>{clearTimeout(p),m(b),this.requestResolutions.delete(o)})})])}async authenticate(){const i={type:"HostSession",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key},u=await this.makeRequest(i);if(u.type==="Fail")throw new Error(u.error||"failed to authentcate")}sendIsLinked(){const i={type:"IsLinked",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(i)}sendGetSessionConfig(){const i={type:"GetSessionConfig",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(i)}};return kt.WalletLinkConnection=s,kt}var Tt={},je={},ar={},ea;function vd(){return ea||(ea=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.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}'),ar}var ta;function ll(){if(ta)return je;ta=1;var e=je&&je.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(je,"__esModule",{value:!0}),je.injectCssReset=void 0;const r=e(vd());function t(){const n=document.createElement("style");n.type="text/css",n.appendChild(document.createTextNode(r.default)),document.documentElement.appendChild(n)}return je.injectCssReset=t,je}var Lt={};const le=Ar(rd);var $e={};const xr=Ar(nd);var Ae={},Mt={},ra;function wd(){if(ra)return Mt;ra=1,Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.CloseIcon=void 0;const e=le;function r(t){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"},t),(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 Mt.CloseIcon=r,Mt}var Nt={},na;function Ed(){if(na)return Nt;na=1,Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.CoinbaseWalletRound=void 0;const e=le;function r(t){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"},t),(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 Nt.CoinbaseWalletRound=r,Nt}var xt={},ia;function Rd(){if(ia)return xt;ia=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.QRCodeIcon=void 0;const e=le;function r(t){return(0,e.h)("svg",Object.assign({width:"18",height:"18",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),(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 xt.QRCodeIcon=r,xt}var He={},Kn,sa;function Sd(){if(sa)return Kn;sa=1;function e(o){this.mode=t.MODE_8BIT_BYTE,this.data=o,this.parsedData=[];for(var p=0,m=this.data.length;p<m;p++){var b=[],a=this.data.charCodeAt(p);a>65536?(b[0]=240|(a&1835008)>>>18,b[1]=128|(a&258048)>>>12,b[2]=128|(a&4032)>>>6,b[3]=128|a&63):a>2048?(b[0]=224|(a&61440)>>>12,b[1]=128|(a&4032)>>>6,b[2]=128|a&63):a>128?(b[0]=192|(a&1984)>>>6,b[1]=128|a&63):b[0]=a,this.parsedData.push(b)}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(o){return this.parsedData.length},write:function(o){for(var p=0,m=this.parsedData.length;p<m;p++)o.put(this.parsedData[p],8)}};function r(o,p){this.typeNumber=o,this.errorCorrectLevel=p,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}r.prototype={addData:function(o){var p=new e(o);this.dataList.push(p),this.dataCache=null},isDark:function(o,p){if(o<0||this.moduleCount<=o||p<0||this.moduleCount<=p)throw new Error(o+","+p);return this.modules[o][p]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(o,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 b=0;b<this.moduleCount;b++)this.modules[m][b]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(o,p),this.typeNumber>=7&&this.setupTypeNumber(o),this.dataCache==null&&(this.dataCache=r.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,p)},setupPositionProbePattern:function(o,p){for(var m=-1;m<=7;m++)if(!(o+m<=-1||this.moduleCount<=o+m))for(var b=-1;b<=7;b++)p+b<=-1||this.moduleCount<=p+b||(0<=m&&m<=6&&(b==0||b==6)||0<=b&&b<=6&&(m==0||m==6)||2<=m&&m<=4&&2<=b&&b<=4?this.modules[o+m][p+b]=!0:this.modules[o+m][p+b]=!1)},getBestMaskPattern:function(){for(var o=0,p=0,m=0;m<8;m++){this.makeImpl(!0,m);var b=c.getLostPoint(this);(m==0||o>b)&&(o=b,p=m)}return p},createMovieClip:function(o,p,m){var b=o.createEmptyMovieClip(p,m),a=1;this.make();for(var y=0;y<this.modules.length;y++)for(var _=y*a,v=0;v<this.modules[y].length;v++){var w=v*a,C=this.modules[y][v];C&&(b.beginFill(0,100),b.moveTo(w,_),b.lineTo(w+a,_),b.lineTo(w+a,_+a),b.lineTo(w,_+a),b.endFill())}return b},setupTimingPattern:function(){for(var o=8;o<this.moduleCount-8;o++)this.modules[o][6]==null&&(this.modules[o][6]=o%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 o=c.getPatternPosition(this.typeNumber),p=0;p<o.length;p++)for(var m=0;m<o.length;m++){var b=o[p],a=o[m];if(this.modules[b][a]==null)for(var y=-2;y<=2;y++)for(var _=-2;_<=2;_++)y==-2||y==2||_==-2||_==2||y==0&&_==0?this.modules[b+y][a+_]=!0:this.modules[b+y][a+_]=!1}},setupTypeNumber:function(o){for(var p=c.getBCHTypeNumber(this.typeNumber),m=0;m<18;m++){var b=!o&&(p>>m&1)==1;this.modules[Math.floor(m/3)][m%3+this.moduleCount-8-3]=b}for(var m=0;m<18;m++){var b=!o&&(p>>m&1)==1;this.modules[m%3+this.moduleCount-8-3][Math.floor(m/3)]=b}},setupTypeInfo:function(o,p){for(var m=this.errorCorrectLevel<<3|p,b=c.getBCHTypeInfo(m),a=0;a<15;a++){var y=!o&&(b>>a&1)==1;a<6?this.modules[a][8]=y:a<8?this.modules[a+1][8]=y:this.modules[this.moduleCount-15+a][8]=y}for(var a=0;a<15;a++){var y=!o&&(b>>a&1)==1;a<8?this.modules[8][this.moduleCount-a-1]=y:a<9?this.modules[8][15-a-1+1]=y:this.modules[8][15-a-1]=y}this.modules[this.moduleCount-8][8]=!o},mapData:function(o,p){for(var m=-1,b=this.moduleCount-1,a=7,y=0,_=this.moduleCount-1;_>0;_-=2)for(_==6&&_--;;){for(var v=0;v<2;v++)if(this.modules[b][_-v]==null){var w=!1;y<o.length&&(w=(o[y]>>>a&1)==1);var C=c.getMask(p,b,_-v);C&&(w=!w),this.modules[b][_-v]=w,a--,a==-1&&(y++,a=7)}if(b+=m,b<0||this.moduleCount<=b){b-=m,m=-m;break}}}},r.PAD0=236,r.PAD1=17,r.createData=function(o,p,m){for(var b=s.getRSBlocks(o,p),a=new h,y=0;y<m.length;y++){var _=m[y];a.put(_.mode,4),a.put(_.getLength(),c.getLengthInBits(_.mode,o)),_.write(a)}for(var v=0,y=0;y<b.length;y++)v+=b[y].dataCount;if(a.getLengthInBits()>v*8)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+v*8+")");for(a.getLengthInBits()+4<=v*8&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=v*8||(a.put(r.PAD0,8),a.getLengthInBits()>=v*8));)a.put(r.PAD1,8);return r.createBytes(a,b)},r.createBytes=function(o,p){for(var m=0,b=0,a=0,y=new Array(p.length),_=new Array(p.length),v=0;v<p.length;v++){var w=p[v].dataCount,C=p[v].totalCount-w;b=Math.max(b,w),a=Math.max(a,C),y[v]=new Array(w);for(var S=0;S<y[v].length;S++)y[v][S]=255&o.buffer[S+m];m+=w;var A=c.getErrorCorrectPolynomial(C),x=new g(y[v],A.getLength()-1),N=x.mod(A);_[v]=new Array(A.getLength()-1);for(var S=0;S<_[v].length;S++){var $=S+N.getLength()-_[v].length;_[v][S]=$>=0?N.get($):0}}for(var H=0,S=0;S<p.length;S++)H+=p[S].totalCount;for(var Y=new Array(H),O=0,S=0;S<b;S++)for(var v=0;v<p.length;v++)S<y[v].length&&(Y[O++]=y[v][S]);for(var S=0;S<a;S++)for(var v=0;v<p.length;v++)S<_[v].length&&(Y[O++]=_[v][S]);return Y};for(var t={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},n={L:1,M:0,Q:3,H:2},f={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},c={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(o){for(var p=o<<10;c.getBCHDigit(p)-c.getBCHDigit(c.G15)>=0;)p^=c.G15<<c.getBCHDigit(p)-c.getBCHDigit(c.G15);return(o<<10|p)^c.G15_MASK},getBCHTypeNumber:function(o){for(var p=o<<12;c.getBCHDigit(p)-c.getBCHDigit(c.G18)>=0;)p^=c.G18<<c.getBCHDigit(p)-c.getBCHDigit(c.G18);return o<<12|p},getBCHDigit:function(o){for(var p=0;o!=0;)p++,o>>>=1;return p},getPatternPosition:function(o){return c.PATTERN_POSITION_TABLE[o-1]},getMask:function(o,p,m){switch(o){case f.PATTERN000:return(p+m)%2==0;case f.PATTERN001:return p%2==0;case f.PATTERN010:return m%3==0;case f.PATTERN011:return(p+m)%3==0;case f.PATTERN100:return(Math.floor(p/2)+Math.floor(m/3))%2==0;case f.PATTERN101:return p*m%2+p*m%3==0;case f.PATTERN110:return(p*m%2+p*m%3)%2==0;case f.PATTERN111:return(p*m%3+(p+m)%2)%2==0;default:throw new Error("bad maskPattern:"+o)}},getErrorCorrectPolynomial:function(o){for(var p=new g([1],0),m=0;m<o;m++)p=p.multiply(new g([1,l.gexp(m)],0));return p},getLengthInBits:function(o,p){if(1<=p&&p<10)switch(o){case t.MODE_NUMBER:return 10;case t.MODE_ALPHA_NUM:return 9;case t.MODE_8BIT_BYTE:return 8;case t.MODE_KANJI:return 8;default:throw new Error("mode:"+o)}else if(p<27)switch(o){case t.MODE_NUMBER:return 12;case t.MODE_ALPHA_NUM:return 11;case t.MODE_8BIT_BYTE:return 16;case t.MODE_KANJI:return 10;default:throw new Error("mode:"+o)}else if(p<41)switch(o){case t.MODE_NUMBER:return 14;case t.MODE_ALPHA_NUM:return 13;case t.MODE_8BIT_BYTE:return 16;case t.MODE_KANJI:return 12;default:throw new Error("mode:"+o)}else throw new Error("type:"+p)},getLostPoint:function(o){for(var p=o.getModuleCount(),m=0,b=0;b<p;b++)for(var a=0;a<p;a++){for(var y=0,_=o.isDark(b,a),v=-1;v<=1;v++)if(!(b+v<0||p<=b+v))for(var w=-1;w<=1;w++)a+w<0||p<=a+w||v==0&&w==0||_==o.isDark(b+v,a+w)&&y++;y>5&&(m+=3+y-5)}for(var b=0;b<p-1;b++)for(var a=0;a<p-1;a++){var C=0;o.isDark(b,a)&&C++,o.isDark(b+1,a)&&C++,o.isDark(b,a+1)&&C++,o.isDark(b+1,a+1)&&C++,(C==0||C==4)&&(m+=3)}for(var b=0;b<p;b++)for(var a=0;a<p-6;a++)o.isDark(b,a)&&!o.isDark(b,a+1)&&o.isDark(b,a+2)&&o.isDark(b,a+3)&&o.isDark(b,a+4)&&!o.isDark(b,a+5)&&o.isDark(b,a+6)&&(m+=40);for(var a=0;a<p;a++)for(var b=0;b<p-6;b++)o.isDark(b,a)&&!o.isDark(b+1,a)&&o.isDark(b+2,a)&&o.isDark(b+3,a)&&o.isDark(b+4,a)&&!o.isDark(b+5,a)&&o.isDark(b+6,a)&&(m+=40);for(var S=0,a=0;a<p;a++)for(var b=0;b<p;b++)o.isDark(b,a)&&S++;var A=Math.abs(100*S/p/p-50)/5;return m+=A*10,m}},l={glog:function(o){if(o<1)throw new Error("glog("+o+")");return l.LOG_TABLE[o]},gexp:function(o){for(;o<0;)o+=255;for(;o>=256;)o-=255;return l.EXP_TABLE[o]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},d=0;d<8;d++)l.EXP_TABLE[d]=1<<d;for(var d=8;d<256;d++)l.EXP_TABLE[d]=l.EXP_TABLE[d-4]^l.EXP_TABLE[d-5]^l.EXP_TABLE[d-6]^l.EXP_TABLE[d-8];for(var d=0;d<255;d++)l.LOG_TABLE[l.EXP_TABLE[d]]=d;function g(o,p){if(o.length==null)throw new Error(o.length+"/"+p);for(var m=0;m<o.length&&o[m]==0;)m++;this.num=new Array(o.length-m+p);for(var b=0;b<o.length-m;b++)this.num[b]=o[b+m]}g.prototype={get:function(o){return this.num[o]},getLength:function(){return this.num.length},multiply:function(o){for(var p=new Array(this.getLength()+o.getLength()-1),m=0;m<this.getLength();m++)for(var b=0;b<o.getLength();b++)p[m+b]^=l.gexp(l.glog(this.get(m))+l.glog(o.get(b)));return new g(p,0)},mod:function(o){if(this.getLength()-o.getLength()<0)return this;for(var p=l.glog(this.get(0))-l.glog(o.get(0)),m=new Array(this.getLength()),b=0;b<this.getLength();b++)m[b]=this.get(b);for(var b=0;b<o.getLength();b++)m[b]^=l.gexp(l.glog(o.get(b))+p);return new g(m,0).mod(o)}};function s(o,p){this.totalCount=o,this.dataCount=p}s.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]],s.getRSBlocks=function(o,p){var m=s.getRsBlockTable(o,p);if(m==null)throw new Error("bad rs block @ typeNumber:"+o+"/errorCorrectLevel:"+p);for(var b=m.length/3,a=[],y=0;y<b;y++)for(var _=m[y*3+0],v=m[y*3+1],w=m[y*3+2],C=0;C<_;C++)a.push(new s(v,w));return a},s.getRsBlockTable=function(o,p){switch(p){case n.L:return s.RS_BLOCK_TABLE[(o-1)*4+0];case n.M:return s.RS_BLOCK_TABLE[(o-1)*4+1];case n.Q:return s.RS_BLOCK_TABLE[(o-1)*4+2];case n.H:return s.RS_BLOCK_TABLE[(o-1)*4+3];default:return}};function h(){this.buffer=[],this.length=0}h.prototype={get:function(o){var p=Math.floor(o/8);return(this.buffer[p]>>>7-o%8&1)==1},put:function(o,p){for(var m=0;m<p;m++)this.putBit((o>>>p-m-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(o){var p=Math.floor(this.length/8);this.buffer.length<=p&&this.buffer.push(0),o&&(this.buffer[p]|=128>>>this.length%8),this.length++}};var i=[[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 u(o){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},typeof o=="string"&&(o={content:o}),o)for(var p in o)this.options[p]=o[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 b(w,C){for(var S=a(w),A=1,x=0,N=0,$=i.length;N<=$;N++){var H=i[N];if(!H)throw new Error("Content too long: expected "+x+" but got "+S);switch(C){case"L":x=H[0];break;case"M":x=H[1];break;case"Q":x=H[2];break;case"H":x=H[3];break;default:throw new Error("Unknwon error correction level: "+C)}if(S<=x)break;A++}if(A>i.length)throw new Error("Content too long");return A}function a(w){var C=encodeURI(w).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return C.length+(C.length!=w?3:0)}var y=this.options.content,_=b(y,this.options.ecl),v=m(this.options.ecl);this.qrcode=new r(_,v),this.qrcode.addData(y),this.qrcode.make()}return u.prototype.svg=function(o){var p=this.options||{},m=this.qrcode.modules;typeof o>"u"&&(o={container:p.container||"svg"});for(var b=typeof p.pretty<"u"?!!p.pretty:!0,a=b?" ":"",y=b?`\r
1
+ import{a6 as kr,G as Q,a7 as Ir,a8 as ve,a9 as Ar,aa as rd,ab as nd,ac as Xt,ad as Tr,g as ol,b as re,ae as Zs}from"./index-xGFXY5RX.js";function id(e,r){for(var t=0;t<r.length;t++){const n=r[t];if(typeof n!="string"&&!Array.isArray(n)){for(const f in n)if(f!=="default"&&!(f in e)){const c=Object.getOwnPropertyDescriptor(n,f);c&&Object.defineProperty(e,f,c.get?c:{enumerable:!0,get:()=>n[f]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Fn={},gt={},pt={},Co;function sd(){if(Co)return pt;Co=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.walletLogo=void 0;const e=(r,t)=>{let n;switch(r){case"standard":return n=t,`data:image/svg+xml,%3Csvg width='${t}' 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=t,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' 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*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' 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*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' 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*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' 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*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' 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=t,`data:image/svg+xml,%3Csvg width='${t}' 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 pt.walletLogo=e,pt}var bt={},ko;function od(){return ko||(ko=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.LINK_API_URL=void 0,bt.LINK_API_URL="https://www.walletlink.org"),bt}var W={},qn={},De={},Io;function Lr(){return Io||(Io=1,Object.defineProperty(De,"__esModule",{value:!0}),De.errorValues=De.standardErrorCodes=void 0,De.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}},De.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."}}),De}var mt={},jn={},Ao;function Ks(){return Ao||(Ao=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 r=Lr(),t="Unspecified error message.";e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function n(u,o=t){if(u&&Number.isInteger(u)){const p=u.toString();if(h(r.errorValues,p))return r.errorValues[p].message;if(g(u))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return o}e.getMessageFromCode=n;function f(u){if(!Number.isInteger(u))return!1;const o=u.toString();return!!(r.errorValues[o]||g(u))}e.isValidCode=f;function c(u){var o;if(typeof u=="number")return u;if(l(u))return(o=u.code)!==null&&o!==void 0?o:u.errorCode}e.getErrorCode=c;function l(u){return typeof u=="object"&&u!==null&&(typeof u.code=="number"||typeof u.errorCode=="number")}function d(u,{shouldIncludeStack:o=!1}={}){const p={};if(u&&typeof u=="object"&&!Array.isArray(u)&&h(u,"code")&&f(u.code)){const m=u;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:s(u)})}else p.code=r.standardErrorCodes.rpc.internal,p.message=i(u,"message")?u.message:t,p.data={originalError:s(u)};return o&&(p.stack=i(u,"stack")?u.stack:void 0),p}e.serialize=d;function g(u){return u>=-32099&&u<=-32e3}function s(u){return u&&typeof u=="object"&&!Array.isArray(u)?Object.assign({},u):u}function h(u,o){return Object.prototype.hasOwnProperty.call(u,o)}function i(u,o){return typeof u=="object"&&u!==null&&o in u&&typeof u[o]=="string"}}(jn)),jn}var To;function ad(){if(To)return mt;To=1,Object.defineProperty(mt,"__esModule",{value:!0}),mt.standardErrors=void 0;const e=Lr(),r=Ks();mt.standardErrors={rpc:{parse:g=>t(e.standardErrorCodes.rpc.parse,g),invalidRequest:g=>t(e.standardErrorCodes.rpc.invalidRequest,g),invalidParams:g=>t(e.standardErrorCodes.rpc.invalidParams,g),methodNotFound:g=>t(e.standardErrorCodes.rpc.methodNotFound,g),internal:g=>t(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:s}=g;if(!Number.isInteger(s)||s>-32005||s<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return t(s,g)},invalidInput:g=>t(e.standardErrorCodes.rpc.invalidInput,g),resourceNotFound:g=>t(e.standardErrorCodes.rpc.resourceNotFound,g),resourceUnavailable:g=>t(e.standardErrorCodes.rpc.resourceUnavailable,g),transactionRejected:g=>t(e.standardErrorCodes.rpc.transactionRejected,g),methodNotSupported:g=>t(e.standardErrorCodes.rpc.methodNotSupported,g),limitExceeded:g=>t(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:s,message:h,data:i}=g;if(!h||typeof h!="string")throw new Error('"message" must be a nonempty string');return new l(s,h,i)}}};function t(g,s){const[h,i]=f(s);return new c(g,h||(0,r.getMessageFromCode)(g),i)}function n(g,s){const[h,i]=f(s);return new l(g,h||(0,r.getMessageFromCode)(g),i)}function f(g){if(g){if(typeof g=="string")return[g];if(typeof g=="object"&&!Array.isArray(g)){const{message:s,data:h}=g;if(s&&typeof s!="string")throw new Error("Must specify string message.");return[s||void 0,h]}}return[]}class c extends Error{constructor(s,h,i){if(!Number.isInteger(s))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=s,i!==void 0&&(this.data=i)}}class l extends c{constructor(s,h,i){if(!d(s))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(s,h,i)}}function d(g){return Number.isInteger(g)&&g>=1e3&&g<=4999}return mt}var _t={},yt={},Lo;function Qs(){if(Lo)return yt;Lo=1,Object.defineProperty(yt,"__esModule",{value:!0}),yt.isErrorResponse=void 0;function e(r){return r.errorMessage!==void 0}return yt.isErrorResponse=e,yt}var vt={},Mo;function Ys(){return Mo||(Mo=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.LIB_VERSION=void 0,vt.LIB_VERSION="3.9.3"),vt}var No;function cd(){if(No)return _t;No=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.serializeError=void 0;const e=Qs(),r=Ys(),t=Lr(),n=Ks();function f(d,g){const s=(0,n.serialize)(c(d),{shouldIncludeStack:!0}),h=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");h.searchParams.set("version",r.LIB_VERSION),h.searchParams.set("code",s.code.toString());const i=l(s.data,g);return i&&h.searchParams.set("method",i),h.searchParams.set("message",s.message),Object.assign(Object.assign({},s),{docUrl:h.href})}_t.serializeError=f;function c(d){return typeof d=="string"?{message:d,code:t.standardErrorCodes.rpc.internal}:(0,e.isErrorResponse)(d)?Object.assign(Object.assign({},d),{message:d.errorMessage,code:d.errorCode,data:{method:d.method}}):d}function l(d,g){const s=d==null?void 0:d.method;if(s)return s;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 _t}var xo;function Mr(){return xo||(xo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.standardErrors=e.standardErrorCodes=e.serializeError=e.getMessageFromCode=e.getErrorCode=void 0;const r=Lr();Object.defineProperty(e,"standardErrorCodes",{enumerable:!0,get:function(){return r.standardErrorCodes}});const t=ad();Object.defineProperty(e,"standardErrors",{enumerable:!0,get:function(){return t.standardErrors}});const n=cd();Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return n.serializeError}});const f=Ks();Object.defineProperty(e,"getErrorCode",{enumerable:!0,get:function(){return f.getErrorCode}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return f.getMessageFromCode}})}(qn)),qn}var ce={},Oo;function Nr(){if(Oo)return ce;Oo=1,Object.defineProperty(ce,"__esModule",{value:!0}),ce.ProviderType=ce.RegExpString=ce.IntNumber=ce.BigIntString=ce.AddressString=ce.HexString=ce.OpaqueType=void 0;function e(){return n=>n}ce.OpaqueType=e,ce.HexString=e(),ce.AddressString=e(),ce.BigIntString=e();function r(n){return Math.floor(n)}ce.IntNumber=r,ce.RegExpString=e();var t;return function(n){n.CoinbaseWallet="CoinbaseWallet",n.MetaMask="MetaMask",n.Unselected=""}(t||(ce.ProviderType=t={})),ce}var Po;function Le(){if(Po)return W;Po=1;var e=W&&W.__importDefault||function(k){return k&&k.__esModule?k:{default:k}};Object.defineProperty(W,"__esModule",{value:!0}),W.isMobileWeb=W.getLocation=W.isInIFrame=W.createQrUrl=W.getFavicon=W.range=W.isBigNumber=W.ensureParsedJSONObject=W.ensureBN=W.ensureRegExpString=W.ensureIntNumber=W.ensureBuffer=W.ensureAddressString=W.ensureEvenLengthHexString=W.ensureHexString=W.isHexString=W.prepend0x=W.strip0x=W.has0xPrefix=W.hexStringFromIntNumber=W.intNumberFromHexString=W.bigIntStringFromBN=W.hexStringFromBuffer=W.hexStringToUint8Array=W.uint8ArrayToHex=W.randomBytesHex=void 0;const r=e(kr()),t=Mr(),n=Nr(),f=/^[0-9]*$/,c=/^[a-f0-9]*$/;function l(k){return d(crypto.getRandomValues(new Uint8Array(k)))}W.randomBytesHex=l;function d(k){return[...k].map(L=>L.toString(16).padStart(2,"0")).join("")}W.uint8ArrayToHex=d;function g(k){return new Uint8Array(k.match(/.{1,2}/g).map(L=>parseInt(L,16)))}W.hexStringToUint8Array=g;function s(k,L=!1){const B=k.toString("hex");return(0,n.HexString)(L?`0x${B}`:B)}W.hexStringFromBuffer=s;function h(k){return(0,n.BigIntString)(k.toString(10))}W.bigIntStringFromBN=h;function i(k){return(0,n.IntNumber)(new r.default(y(k,!1),16).toNumber())}W.intNumberFromHexString=i;function u(k){return(0,n.HexString)(`0x${new r.default(k).toString(16)}`)}W.hexStringFromIntNumber=u;function o(k){return k.startsWith("0x")||k.startsWith("0X")}W.has0xPrefix=o;function p(k){return o(k)?k.slice(2):k}W.strip0x=p;function m(k){return o(k)?`0x${k.slice(2)}`:`0x${k}`}W.prepend0x=m;function b(k){if(typeof k!="string")return!1;const L=p(k).toLowerCase();return c.test(L)}W.isHexString=b;function a(k,L=!1){if(typeof k=="string"){const B=p(k).toLowerCase();if(c.test(B))return(0,n.HexString)(L?`0x${B}`:B)}throw t.standardErrors.rpc.invalidParams(`"${String(k)}" is not a hexadecimal string`)}W.ensureHexString=a;function y(k,L=!1){let B=a(k,!1);return B.length%2===1&&(B=(0,n.HexString)(`0${B}`)),L?(0,n.HexString)(`0x${B}`):B}W.ensureEvenLengthHexString=y;function _(k){if(typeof k=="string"){const L=p(k).toLowerCase();if(b(L)&&L.length===40)return(0,n.AddressString)(m(L))}throw t.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(k)}`)}W.ensureAddressString=_;function v(k){if(Q.isBuffer(k))return k;if(typeof k=="string"){if(b(k)){const L=y(k,!1);return Q.from(L,"hex")}return Q.from(k,"utf8")}throw t.standardErrors.rpc.invalidParams(`Not binary data: ${String(k)}`)}W.ensureBuffer=v;function w(k){if(typeof k=="number"&&Number.isInteger(k))return(0,n.IntNumber)(k);if(typeof k=="string"){if(f.test(k))return(0,n.IntNumber)(Number(k));if(b(k))return(0,n.IntNumber)(new r.default(y(k,!1),16).toNumber())}throw t.standardErrors.rpc.invalidParams(`Not an integer: ${String(k)}`)}W.ensureIntNumber=w;function C(k){if(k instanceof RegExp)return(0,n.RegExpString)(k.toString());throw t.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(k)}`)}W.ensureRegExpString=C;function S(k){if(k!==null&&(r.default.isBN(k)||x(k)))return new r.default(k.toString(10),10);if(typeof k=="number")return new r.default(w(k));if(typeof k=="string"){if(f.test(k))return new r.default(k,10);if(b(k))return new r.default(y(k,!1),16)}throw t.standardErrors.rpc.invalidParams(`Not an integer: ${String(k)}`)}W.ensureBN=S;function A(k){if(typeof k=="string")return JSON.parse(k);if(typeof k=="object")return k;throw t.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(k)}`)}W.ensureParsedJSONObject=A;function x(k){if(k==null||typeof k.constructor!="function")return!1;const{constructor:L}=k;return typeof L.config=="function"&&typeof L.EUCLID=="number"}W.isBigNumber=x;function N(k,L){return Array.from({length:L-k},(B,P)=>k+P)}W.range=N;function $(){const k=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:L,host:B}=document.location,P=k?k.getAttribute("href"):null;return!P||P.startsWith("javascript:")||P.startsWith("vbscript:")?null:P.startsWith("http://")||P.startsWith("https://")||P.startsWith("data:")?P:P.startsWith("//")?L+P:`${L}//${B}${P}`}W.getFavicon=$;function H(k,L,B,P,j,J){const V=P?"parent-id":"id",G=new URLSearchParams({[V]:k,secret:L,server:B,v:j,chainId:J.toString()}).toString();return`${B}/#/link?${G}`}W.createQrUrl=H;function Y(){try{return window.frameElement!==null}catch{return!1}}W.isInIFrame=Y;function O(){try{return Y()&&window.top?window.top.location:window.location}catch{return window.location}}W.getLocation=O;function M(){var k;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((k=window==null?void 0:window.navigator)===null||k===void 0?void 0:k.userAgent)}return W.isMobileWeb=M,W}var wt={},Bo;function ud(){if(Bo)return wt;Bo=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.ScopedLocalStorage=void 0;let e=class{constructor(t){this.scope=t}setItem(t,n){localStorage.setItem(this.scopedKey(t),n)}getItem(t){return localStorage.getItem(this.scopedKey(t))}removeItem(t){localStorage.removeItem(this.scopedKey(t))}clear(){const t=this.scopedKey(""),n=[];for(let f=0;f<localStorage.length;f++){const c=localStorage.key(f);typeof c=="string"&&c.startsWith(t)&&n.push(c)}n.forEach(f=>localStorage.removeItem(f))}scopedKey(t){return`${this.scope}:${t}`}};return wt.ScopedLocalStorage=e,wt}var Fe={},$n={exports:{}},Do;function ld(){return Do||(Do=1,function(e){var r=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function f(g,s,h){this.fn=g,this.context=s,this.once=h||!1}function c(g,s,h,i,u){if(typeof h!="function")throw new TypeError("The listener must be a function");var o=new f(h,i||g,u),p=t?t+s:s;return g._events[p]?g._events[p].fn?g._events[p]=[g._events[p],o]:g._events[p].push(o):(g._events[p]=o,g._eventsCount++),g}function l(g,s){--g._eventsCount===0?g._events=new n:delete g._events[s]}function d(){this._events=new n,this._eventsCount=0}d.prototype.eventNames=function(){var s=[],h,i;if(this._eventsCount===0)return s;for(i in h=this._events)r.call(h,i)&&s.push(t?i.slice(1):i);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(h)):s},d.prototype.listeners=function(s){var h=t?t+s:s,i=this._events[h];if(!i)return[];if(i.fn)return[i.fn];for(var u=0,o=i.length,p=new Array(o);u<o;u++)p[u]=i[u].fn;return p},d.prototype.listenerCount=function(s){var h=t?t+s:s,i=this._events[h];return i?i.fn?1:i.length:0},d.prototype.emit=function(s,h,i,u,o,p){var m=t?t+s:s;if(!this._events[m])return!1;var b=this._events[m],a=arguments.length,y,_;if(b.fn){switch(b.once&&this.removeListener(s,b.fn,void 0,!0),a){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,h),!0;case 3:return b.fn.call(b.context,h,i),!0;case 4:return b.fn.call(b.context,h,i,u),!0;case 5:return b.fn.call(b.context,h,i,u,o),!0;case 6:return b.fn.call(b.context,h,i,u,o,p),!0}for(_=1,y=new Array(a-1);_<a;_++)y[_-1]=arguments[_];b.fn.apply(b.context,y)}else{var v=b.length,w;for(_=0;_<v;_++)switch(b[_].once&&this.removeListener(s,b[_].fn,void 0,!0),a){case 1:b[_].fn.call(b[_].context);break;case 2:b[_].fn.call(b[_].context,h);break;case 3:b[_].fn.call(b[_].context,h,i);break;case 4:b[_].fn.call(b[_].context,h,i,u);break;default:if(!y)for(w=1,y=new Array(a-1);w<a;w++)y[w-1]=arguments[w];b[_].fn.apply(b[_].context,y)}}return!0},d.prototype.on=function(s,h,i){return c(this,s,h,i,!1)},d.prototype.once=function(s,h,i){return c(this,s,h,i,!0)},d.prototype.removeListener=function(s,h,i,u){var o=t?t+s:s;if(!this._events[o])return this;if(!h)return l(this,o),this;var p=this._events[o];if(p.fn)p.fn===h&&(!u||p.once)&&(!i||p.context===i)&&l(this,o);else{for(var m=0,b=[],a=p.length;m<a;m++)(p[m].fn!==h||u&&!p[m].once||i&&p[m].context!==i)&&b.push(p[m]);b.length?this._events[o]=b.length===1?b[0]:b:l(this,o)}return this},d.prototype.removeAllListeners=function(s){var h;return s?(h=t?t+s:s,this._events[h]&&l(this,h)):(this._events=new n,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prefixed=t,d.EventEmitter=d,e.exports=d}($n)),$n.exports}var Et={},Rt={},St={},Fo;function Xs(){return Fo||(Fo=1,Object.defineProperty(St,"__esModule",{value:!0}),St.EVENTS=void 0,St.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"}),St}var pe={},qo;function eo(){if(qo)return pe;qo=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.RelayAbstract=pe.APP_VERSION_KEY=pe.LOCAL_STORAGE_ADDRESSES_KEY=pe.WALLET_USER_NAME_KEY=void 0;const e=Mr();pe.WALLET_USER_NAME_KEY="walletUsername",pe.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",pe.APP_VERSION_KEY="AppVersion";let r=class{async makeEthereumJSONRPCRequest(n,f){if(!f)throw new Error("Error: No jsonRpcUrl provided");return window.fetch(f,{method:"POST",body:JSON.stringify(n),mode:"cors",headers:{"Content-Type":"application/json"}}).then(c=>c.json()).then(c=>{if(!c)throw e.standardErrors.rpc.parse({});const l=c,{error:d}=l;if(d)throw(0,e.serializeError)(d,n.method);return l})}};return pe.RelayAbstract=r,pe}var Ct={},Hn={exports:{}},or={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var jo;function Pe(){return jo||(jo=1,function(e,r){var t=Ir(),n=t.Buffer;function f(l,d){for(var g in l)d[g]=l[g]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=t:(f(t,r),r.Buffer=c);function c(l,d,g){return n(l,d,g)}c.prototype=Object.create(n.prototype),f(n,c),c.from=function(l,d,g){if(typeof l=="number")throw new TypeError("Argument must not be a number");return n(l,d,g)},c.alloc=function(l,d,g){if(typeof l!="number")throw new TypeError("Argument must be a number");var s=n(l);return d!==void 0?typeof g=="string"?s.fill(d,g):s.fill(d):s.fill(0),s},c.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return n(l)},c.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(l)}}(or,or.exports)),or.exports}var Un,$o;function lt(){if($o)return Un;$o=1;var e=Pe().Buffer;function r(t,n){this._block=e.alloc(t),this._finalSize=n,this._blockSize=t,this._len=0}return r.prototype.update=function(t,n){typeof t=="string"&&(n=n||"utf8",t=e.from(t,n));for(var f=this._block,c=this._blockSize,l=t.length,d=this._len,g=0;g<l;){for(var s=d%c,h=Math.min(l-g,c-s),i=0;i<h;i++)f[s+i]=t[g+i];d+=h,g+=h,d%c===0&&this._update(f)}return this._len+=l,this},r.prototype.digest=function(t){var n=this._len%this._blockSize;this._block[n]=128,this._block.fill(0,n+1),n>=this._finalSize&&(this._update(this._block),this._block.fill(0));var f=this._len*8;if(f<=4294967295)this._block.writeUInt32BE(f,this._blockSize-4);else{var c=(f&4294967295)>>>0,l=(f-c)/4294967296;this._block.writeUInt32BE(l,this._blockSize-8),this._block.writeUInt32BE(c,this._blockSize-4)}this._update(this._block);var d=this._hash();return t?d.toString(t):d},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Un=r,Un}var Wn,Ho;function dd(){if(Ho)return Wn;Ho=1;var e=ve(),r=lt(),t=Pe().Buffer,n=[1518500249,1859775393,-1894007588,-899497514],f=new Array(80);function c(){this.init(),this._w=f,r.call(this,64,56)}e(c,r),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function l(s){return s<<5|s>>>27}function d(s){return s<<30|s>>>2}function g(s,h,i,u){return s===0?h&i|~h&u:s===2?h&i|h&u|i&u:h^i^u}return c.prototype._update=function(s){for(var h=this._w,i=this._a|0,u=this._b|0,o=this._c|0,p=this._d|0,m=this._e|0,b=0;b<16;++b)h[b]=s.readInt32BE(b*4);for(;b<80;++b)h[b]=h[b-3]^h[b-8]^h[b-14]^h[b-16];for(var a=0;a<80;++a){var y=~~(a/20),_=l(i)+g(y,u,o,p)+m+h[a]+n[y]|0;m=p,p=o,o=d(u),u=i,i=_}this._a=i+this._a|0,this._b=u+this._b|0,this._c=o+this._c|0,this._d=p+this._d|0,this._e=m+this._e|0},c.prototype._hash=function(){var s=t.allocUnsafe(20);return s.writeInt32BE(this._a|0,0),s.writeInt32BE(this._b|0,4),s.writeInt32BE(this._c|0,8),s.writeInt32BE(this._d|0,12),s.writeInt32BE(this._e|0,16),s},Wn=c,Wn}var Vn,Uo;function hd(){if(Uo)return Vn;Uo=1;var e=ve(),r=lt(),t=Pe().Buffer,n=[1518500249,1859775393,-1894007588,-899497514],f=new Array(80);function c(){this.init(),this._w=f,r.call(this,64,56)}e(c,r),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function l(h){return h<<1|h>>>31}function d(h){return h<<5|h>>>27}function g(h){return h<<30|h>>>2}function s(h,i,u,o){return h===0?i&u|~i&o:h===2?i&u|i&o|u&o:i^u^o}return c.prototype._update=function(h){for(var i=this._w,u=this._a|0,o=this._b|0,p=this._c|0,m=this._d|0,b=this._e|0,a=0;a<16;++a)i[a]=h.readInt32BE(a*4);for(;a<80;++a)i[a]=l(i[a-3]^i[a-8]^i[a-14]^i[a-16]);for(var y=0;y<80;++y){var _=~~(y/20),v=d(u)+s(_,o,p,m)+b+i[y]+n[_]|0;b=m,m=p,p=g(o),o=u,u=v}this._a=u+this._a|0,this._b=o+this._b|0,this._c=p+this._c|0,this._d=m+this._d|0,this._e=b+this._e|0},c.prototype._hash=function(){var h=t.allocUnsafe(20);return h.writeInt32BE(this._a|0,0),h.writeInt32BE(this._b|0,4),h.writeInt32BE(this._c|0,8),h.writeInt32BE(this._d|0,12),h.writeInt32BE(this._e|0,16),h},Vn=c,Vn}var zn,Wo;function al(){if(Wo)return zn;Wo=1;var e=ve(),r=lt(),t=Pe().Buffer,n=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],f=new Array(64);function c(){this.init(),this._w=f,r.call(this,64,56)}e(c,r),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function l(u,o,p){return p^u&(o^p)}function d(u,o,p){return u&o|p&(u|o)}function g(u){return(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10)}function s(u){return(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7)}function h(u){return(u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3}function i(u){return(u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10}return c.prototype._update=function(u){for(var o=this._w,p=this._a|0,m=this._b|0,b=this._c|0,a=this._d|0,y=this._e|0,_=this._f|0,v=this._g|0,w=this._h|0,C=0;C<16;++C)o[C]=u.readInt32BE(C*4);for(;C<64;++C)o[C]=i(o[C-2])+o[C-7]+h(o[C-15])+o[C-16]|0;for(var S=0;S<64;++S){var A=w+s(y)+l(y,_,v)+n[S]+o[S]|0,x=g(p)+d(p,m,b)|0;w=v,v=_,_=y,y=a+A|0,a=b,b=m,m=p,p=A+x|0}this._a=p+this._a|0,this._b=m+this._b|0,this._c=b+this._c|0,this._d=a+this._d|0,this._e=y+this._e|0,this._f=_+this._f|0,this._g=v+this._g|0,this._h=w+this._h|0},c.prototype._hash=function(){var u=t.allocUnsafe(32);return u.writeInt32BE(this._a,0),u.writeInt32BE(this._b,4),u.writeInt32BE(this._c,8),u.writeInt32BE(this._d,12),u.writeInt32BE(this._e,16),u.writeInt32BE(this._f,20),u.writeInt32BE(this._g,24),u.writeInt32BE(this._h,28),u},zn=c,zn}var Jn,Vo;function fd(){if(Vo)return Jn;Vo=1;var e=ve(),r=al(),t=lt(),n=Pe().Buffer,f=new Array(64);function c(){this.init(),this._w=f,t.call(this,64,56)}return e(c,r),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var l=n.allocUnsafe(28);return l.writeInt32BE(this._a,0),l.writeInt32BE(this._b,4),l.writeInt32BE(this._c,8),l.writeInt32BE(this._d,12),l.writeInt32BE(this._e,16),l.writeInt32BE(this._f,20),l.writeInt32BE(this._g,24),l},Jn=c,Jn}var Gn,zo;function cl(){if(zo)return Gn;zo=1;var e=ve(),r=lt(),t=Pe().Buffer,n=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],f=new Array(160);function c(){this.init(),this._w=f,r.call(this,128,112)}e(c,r),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function l(m,b,a){return a^m&(b^a)}function d(m,b,a){return m&b|a&(m|b)}function g(m,b){return(m>>>28|b<<4)^(b>>>2|m<<30)^(b>>>7|m<<25)}function s(m,b){return(m>>>14|b<<18)^(m>>>18|b<<14)^(b>>>9|m<<23)}function h(m,b){return(m>>>1|b<<31)^(m>>>8|b<<24)^m>>>7}function i(m,b){return(m>>>1|b<<31)^(m>>>8|b<<24)^(m>>>7|b<<25)}function u(m,b){return(m>>>19|b<<13)^(b>>>29|m<<3)^m>>>6}function o(m,b){return(m>>>19|b<<13)^(b>>>29|m<<3)^(m>>>6|b<<26)}function p(m,b){return m>>>0<b>>>0?1:0}return c.prototype._update=function(m){for(var b=this._w,a=this._ah|0,y=this._bh|0,_=this._ch|0,v=this._dh|0,w=this._eh|0,C=this._fh|0,S=this._gh|0,A=this._hh|0,x=this._al|0,N=this._bl|0,$=this._cl|0,H=this._dl|0,Y=this._el|0,O=this._fl|0,M=this._gl|0,k=this._hl|0,L=0;L<32;L+=2)b[L]=m.readInt32BE(L*4),b[L+1]=m.readInt32BE(L*4+4);for(;L<160;L+=2){var B=b[L-30],P=b[L-15*2+1],j=h(B,P),J=i(P,B);B=b[L-2*2],P=b[L-2*2+1];var V=u(B,P),G=o(P,B),X=b[L-7*2],z=b[L-7*2+1],ae=b[L-16*2],T=b[L-16*2+1],I=J+z|0,F=j+X+p(I,J)|0;I=I+G|0,F=F+V+p(I,G)|0,I=I+T|0,F=F+ae+p(I,T)|0,b[L]=F,b[L+1]=I}for(var U=0;U<160;U+=2){F=b[U],I=b[U+1];var K=d(a,y,_),E=d(x,N,$),R=g(a,x),D=g(x,a),q=s(w,Y),ne=s(Y,w),Z=n[U],te=n[U+1],ge=l(w,C,S),Re=l(Y,O,M),se=k+ne|0,he=A+q+p(se,k)|0;se=se+Re|0,he=he+ge+p(se,Re)|0,se=se+te|0,he=he+Z+p(se,te)|0,se=se+I|0,he=he+F+p(se,I)|0;var Me=D+E|0,Ne=R+K+p(Me,D)|0;A=S,k=M,S=C,M=O,C=w,O=Y,Y=H+se|0,w=v+he+p(Y,H)|0,v=_,H=$,_=y,$=N,y=a,N=x,x=se+Me|0,a=he+Ne+p(x,se)|0}this._al=this._al+x|0,this._bl=this._bl+N|0,this._cl=this._cl+$|0,this._dl=this._dl+H|0,this._el=this._el+Y|0,this._fl=this._fl+O|0,this._gl=this._gl+M|0,this._hl=this._hl+k|0,this._ah=this._ah+a+p(this._al,x)|0,this._bh=this._bh+y+p(this._bl,N)|0,this._ch=this._ch+_+p(this._cl,$)|0,this._dh=this._dh+v+p(this._dl,H)|0,this._eh=this._eh+w+p(this._el,Y)|0,this._fh=this._fh+C+p(this._fl,O)|0,this._gh=this._gh+S+p(this._gl,M)|0,this._hh=this._hh+A+p(this._hl,k)|0},c.prototype._hash=function(){var m=t.allocUnsafe(64);function b(a,y,_){m.writeInt32BE(a,_),m.writeInt32BE(y,_+4)}return b(this._ah,this._al,0),b(this._bh,this._bl,8),b(this._ch,this._cl,16),b(this._dh,this._dl,24),b(this._eh,this._el,32),b(this._fh,this._fl,40),b(this._gh,this._gl,48),b(this._hh,this._hl,56),m},Gn=c,Gn}var Zn,Jo;function gd(){if(Jo)return Zn;Jo=1;var e=ve(),r=cl(),t=lt(),n=Pe().Buffer,f=new Array(160);function c(){this.init(),this._w=f,t.call(this,128,112)}return e(c,r),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var l=n.allocUnsafe(48);function d(g,s,h){l.writeInt32BE(g,h),l.writeInt32BE(s,h+4)}return d(this._ah,this._al,0),d(this._bh,this._bl,8),d(this._ch,this._cl,16),d(this._dh,this._dl,24),d(this._eh,this._el,32),d(this._fh,this._fl,40),l},Zn=c,Zn}var Go;function pd(){if(Go)return Hn.exports;Go=1;var e=Hn.exports=function(t){t=t.toLowerCase();var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n};return e.sha=dd(),e.sha1=hd(),e.sha224=fd(),e.sha256=al(),e.sha384=gd(),e.sha512=cl(),Hn.exports}var Zo;function to(){if(Zo)return Ct;Zo=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.Session=void 0;const e=pd(),r=Le(),t="session:id",n="session:secret",f="session:linked";let c=class ul{constructor(d,g,s,h){this._storage=d,this._id=g||(0,r.randomBytesHex)(16),this._secret=s||(0,r.randomBytesHex)(32),this._key=new e.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!h}static load(d){const g=d.getItem(t),s=d.getItem(f),h=d.getItem(n);return g&&h?new ul(d,g,h,s==="1"):null}static hash(d){return new e.sha256().update(d).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(d){this._linked=d,this.persistLinked()}save(){return this._storage.setItem(t,this._id),this._storage.setItem(n,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(f,this._linked?"1":"0")}};return Ct.Session=c,Ct}var kt={},It={},Ko;function bd(){if(Ko)return It;Ko=1,Object.defineProperty(It,"__esModule",{value:!0}),It.Cipher=void 0;const e=Le();let r=class{constructor(n){this.secret=n}async encrypt(n){const f=this.secret;if(f.length!==64)throw Error("secret must be 256 bits");const c=crypto.getRandomValues(new Uint8Array(12)),l=await crypto.subtle.importKey("raw",(0,e.hexStringToUint8Array)(f),{name:"aes-gcm"},!1,["encrypt","decrypt"]),d=new TextEncoder,g=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:c},l,d.encode(n)),s=16,h=g.slice(g.byteLength-s),i=g.slice(0,g.byteLength-s),u=new Uint8Array(h),o=new Uint8Array(i),p=new Uint8Array([...c,...u,...o]);return(0,e.uint8ArrayToHex)(p)}async decrypt(n){const f=this.secret;if(f.length!==64)throw Error("secret must be 256 bits");return new Promise((c,l)=>{(async function(){const d=await crypto.subtle.importKey("raw",(0,e.hexStringToUint8Array)(f),{name:"aes-gcm"},!1,["encrypt","decrypt"]),g=(0,e.hexStringToUint8Array)(n),s=g.slice(0,12),h=g.slice(12,28),i=g.slice(28),u=new Uint8Array([...i,...h]),o={name:"AES-GCM",iv:new Uint8Array(s)};try{const p=await window.crypto.subtle.decrypt(o,d,u),m=new TextDecoder;c(m.decode(p))}catch(p){l(p)}})()})}};return It.Cipher=r,It}var At={},Qo;function md(){if(Qo)return At;Qo=1,Object.defineProperty(At,"__esModule",{value:!0}),At.WalletLinkHTTP=void 0;let e=class{constructor(t,n,f){this.linkAPIUrl=t,this.sessionId=n;const c=`${n}:${f}`;this.auth=`Basic ${btoa(c)}`}async markUnseenEventsAsSeen(t){return Promise.all(t.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 t;const n=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(n.ok){const{events:f,error:c}=await n.json();if(c)throw new Error(`Check unseen events failed: ${c}`);const l=(t=f==null?void 0:f.filter(d=>d.event==="Web3Response").map(d=>({type:"Event",sessionId:this.sessionId,eventId:d.id,event:d.event,data:d.data})))!==null&&t!==void 0?t:[];return this.markUnseenEventsAsSeen(l),l}throw new Error(`Check unseen events failed: ${n.status}`)}};return At.WalletLinkHTTP=e,At}var qe={},Yo;function _d(){if(Yo)return qe;Yo=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.WalletLinkWebSocket=qe.ConnectionState=void 0;var e;(function(t){t[t.DISCONNECTED=0]="DISCONNECTED",t[t.CONNECTING=1]="CONNECTING",t[t.CONNECTED=2]="CONNECTED"})(e||(qe.ConnectionState=e={}));let r=class{setConnectionStateListener(n){this.connectionStateListener=n}setIncomingDataListener(n){this.incomingDataListener=n}constructor(n,f=WebSocket){this.WebSocketClass=f,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,f)=>{var c;let l;try{this.webSocket=l=new this.WebSocketClass(this.url)}catch(d){f(d);return}(c=this.connectionStateListener)===null||c===void 0||c.call(this,e.CONNECTING),l.onclose=d=>{var g;this.clearWebSocket(),f(new Error(`websocket error ${d.code}: ${d.reason}`)),(g=this.connectionStateListener)===null||g===void 0||g.call(this,e.DISCONNECTED)},l.onopen=d=>{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=[])},l.onmessage=d=>{var g,s;if(d.data==="h")(g=this.incomingDataListener)===null||g===void 0||g.call(this,{type:"Heartbeat"});else try{const h=JSON.parse(d.data);(s=this.incomingDataListener)===null||s===void 0||s.call(this,h)}catch{}}})}disconnect(){var n;const{webSocket:f}=this;if(f){this.clearWebSocket(),(n=this.connectionStateListener)===null||n===void 0||n.call(this,e.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{f.close()}catch{}}}sendData(n){const{webSocket:f}=this;if(!f){this.pendingData.push(n),this.connect();return}f.send(n)}clearWebSocket(){const{webSocket:n}=this;n&&(this.webSocket=null,n.onclose=null,n.onerror=null,n.onmessage=null,n.onopen=null)}};return qe.WalletLinkWebSocket=r,qe}var Xo;function yd(){if(Xo)return kt;Xo=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.WalletLinkConnection=void 0;const e=Nr(),r=bd(),t=Xs(),n=eo(),f=to(),c=md(),l=_d(),d=1e4,g=6e4;let s=class{constructor({session:i,linkAPIUrl:u,listener:o,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=a=>{if(!a)return;new Map([["__destroyed",this.handleDestroyed],["EthereumAddress",this.handleAccountUpdated],["WalletUsername",this.handleWalletUsernameUpdated],["AppVersion",this.handleAppVersionUpdated],["ChainId",_=>a.JsonRpcUrl&&this.handleChainUpdated(_,a.JsonRpcUrl)]]).forEach((_,v)=>{const w=a[v];w!==void 0&&_(w)})},this.handleDestroyed=a=>{var y,_;a==="1"&&((y=this.listener)===null||y===void 0||y.resetAndReload(),(_=this.diagnostic)===null||_===void 0||_.log(t.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:this.isDestroyed,sessionIdHash:f.Session.hash(this.session.id)}))},this.handleAccountUpdated=async a=>{var y,_;try{const v=await this.cipher.decrypt(a);(y=this.listener)===null||y===void 0||y.accountUpdated(v)}catch{(_=this.diagnostic)===null||_===void 0||_.log(t.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}},this.handleMetadataUpdated=async(a,y)=>{var _,v;try{const w=await this.cipher.decrypt(y);(_=this.listener)===null||_===void 0||_.metadataUpdated(a,w)}catch{(v=this.diagnostic)===null||v===void 0||v.log(t.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:a})}},this.handleWalletUsernameUpdated=async a=>{this.handleMetadataUpdated(n.WALLET_USER_NAME_KEY,a)},this.handleAppVersionUpdated=async a=>{this.handleMetadataUpdated(n.APP_VERSION_KEY,a)},this.handleChainUpdated=async(a,y)=>{var _,v;try{const w=await this.cipher.decrypt(a),C=await this.cipher.decrypt(y);(_=this.listener)===null||_===void 0||_.chainUpdated(w,C)}catch{(v=this.diagnostic)===null||v===void 0||v.log(t.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}},this.session=i,this.cipher=new r.Cipher(i.secret),this.diagnostic=p,this.listener=o;const b=new l.WalletLinkWebSocket(`${u}/rpc`,m);b.setConnectionStateListener(async a=>{var y;(y=this.diagnostic)===null||y===void 0||y.log(t.EVENTS.CONNECTED_STATE_CHANGE,{state:a,sessionIdHash:f.Session.hash(i.id)});let _=!1;switch(a){case l.ConnectionState.DISCONNECTED:if(!this.destroyed){const v=async()=>{await new Promise(w=>setTimeout(w,5e3)),this.destroyed||b.connect().catch(()=>{v()})};v()}break;case l.ConnectionState.CONNECTED:try{await this.authenticate(),this.sendIsLinked(),this.sendGetSessionConfig(),_=!0}catch{}this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},d),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();break;case l.ConnectionState.CONNECTING:break}this.connected!==_&&(this.connected=_)}),b.setIncomingDataListener(a=>{var y,_,v;switch(a.type){case"Heartbeat":this.updateLastHeartbeat();return;case"IsLinkedOK":case"Linked":{const w=a.type==="IsLinkedOK"?a.linked:void 0;(y=this.diagnostic)===null||y===void 0||y.log(t.EVENTS.LINKED,{sessionIdHash:f.Session.hash(i.id),linked:w,type:a.type,onlineGuests:a.onlineGuests}),this.linked=w||a.onlineGuests>0;break}case"GetSessionConfigOK":case"SessionConfigUpdated":{(_=this.diagnostic)===null||_===void 0||_.log(t.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:f.Session.hash(i.id),metadata_keys:a&&a.metadata?Object.keys(a.metadata):void 0}),this.handleSessionMetadataUpdated(a.metadata);break}case"Event":{this.handleIncomingEvent(a);break}}a.id!==void 0&&((v=this.requestResolutions.get(a.id))===null||v===void 0||v(a))}),this.ws=b,this.http=new c.WalletLinkHTTP(u,i.id,i.key)}connect(){var i;if(this.destroyed)throw new Error("instance is destroyed");(i=this.diagnostic)===null||i===void 0||i.log(t.EVENTS.STARTED_CONNECTING,{sessionIdHash:f.Session.hash(this.session.id)}),this.ws.connect()}destroy(){var i;this.destroyed=!0,this.ws.disconnect(),(i=this.diagnostic)===null||i===void 0||i.log(t.EVENTS.DISCONNECTED,{sessionIdHash:f.Session.hash(this.session.id)}),this.listener=void 0}get isDestroyed(){return this.destroyed}get connected(){return this._connected}set connected(i){var u,o;this._connected=i,i&&((u=this.onceConnected)===null||u===void 0||u.call(this)),(o=this.listener)===null||o===void 0||o.connectedUpdated(i)}setOnceConnected(i){return new Promise(u=>{this.connected?i().then(u):this.onceConnected=()=>{i().then(u),this.onceConnected=void 0}})}get linked(){return this._linked}set linked(i){var u,o;this._linked=i,i&&((u=this.onceLinked)===null||u===void 0||u.call(this)),(o=this.listener)===null||o===void 0||o.linkedUpdated(i)}setOnceLinked(i){return new Promise(u=>{this.linked?i().then(u):this.onceLinked=()=>{i().then(u),this.onceLinked=void 0}})}async handleIncomingEvent(i){var u,o;if(!(i.type!=="Event"||i.event!=="Web3Response"))try{const p=await this.cipher.decrypt(i.data),m=JSON.parse(p);if(m.type!=="WEB3_RESPONSE")return;(u=this.listener)===null||u===void 0||u.handleWeb3ResponseMessage(m)}catch{(o=this.diagnostic)===null||o===void 0||o.log(t.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(i=>setTimeout(i,250));try{await this.fetchUnseenEventsAPI()}catch(i){console.error("Unable to check for unseen events",i)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEach(u=>this.handleIncomingEvent(u))}async setSessionMetadata(i,u){const o={type:"SetSessionConfig",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id,metadata:{[i]:u}};return this.setOnceConnected(async()=>{const p=await this.makeRequest(o);if(p.type==="Fail")throw new Error(p.error||"failed to set session metadata")})}async publishEvent(i,u,o=!1){const p=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},u),{origin:location.origin,relaySource:window.coinbaseWalletExtension?"injected_sdk":"sdk"}))),m={type:"PublishEvent",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id,event:i,data:p,callWebhook:o};return this.setOnceLinked(async()=>{const b=await this.makeRequest(m);if(b.type==="Fail")throw new Error(b.error||"failed to publish event");return b.eventId})}sendData(i){this.ws.sendData(JSON.stringify(i))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>d*2){this.ws.disconnect();return}try{this.ws.sendData("h")}catch{}}async makeRequest(i,u=g){const o=i.id;this.sendData(i);let p;return Promise.race([new Promise((m,b)=>{p=window.setTimeout(()=>{b(new Error(`request ${o} timed out`))},u)}),new Promise(m=>{this.requestResolutions.set(o,b=>{clearTimeout(p),m(b),this.requestResolutions.delete(o)})})])}async authenticate(){const i={type:"HostSession",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key},u=await this.makeRequest(i);if(u.type==="Fail")throw new Error(u.error||"failed to authentcate")}sendIsLinked(){const i={type:"IsLinked",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(i)}sendGetSessionConfig(){const i={type:"GetSessionConfig",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(i)}};return kt.WalletLinkConnection=s,kt}var Tt={},je={},ar={},ea;function vd(){return ea||(ea=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.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}'),ar}var ta;function ll(){if(ta)return je;ta=1;var e=je&&je.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(je,"__esModule",{value:!0}),je.injectCssReset=void 0;const r=e(vd());function t(){const n=document.createElement("style");n.type="text/css",n.appendChild(document.createTextNode(r.default)),document.documentElement.appendChild(n)}return je.injectCssReset=t,je}var Lt={};const le=Ar(rd);var $e={};const xr=Ar(nd);var Ae={},Mt={},ra;function wd(){if(ra)return Mt;ra=1,Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.CloseIcon=void 0;const e=le;function r(t){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"},t),(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 Mt.CloseIcon=r,Mt}var Nt={},na;function Ed(){if(na)return Nt;na=1,Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.CoinbaseWalletRound=void 0;const e=le;function r(t){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"},t),(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 Nt.CoinbaseWalletRound=r,Nt}var xt={},ia;function Rd(){if(ia)return xt;ia=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.QRCodeIcon=void 0;const e=le;function r(t){return(0,e.h)("svg",Object.assign({width:"18",height:"18",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),(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 xt.QRCodeIcon=r,xt}var He={},Kn,sa;function Sd(){if(sa)return Kn;sa=1;function e(o){this.mode=t.MODE_8BIT_BYTE,this.data=o,this.parsedData=[];for(var p=0,m=this.data.length;p<m;p++){var b=[],a=this.data.charCodeAt(p);a>65536?(b[0]=240|(a&1835008)>>>18,b[1]=128|(a&258048)>>>12,b[2]=128|(a&4032)>>>6,b[3]=128|a&63):a>2048?(b[0]=224|(a&61440)>>>12,b[1]=128|(a&4032)>>>6,b[2]=128|a&63):a>128?(b[0]=192|(a&1984)>>>6,b[1]=128|a&63):b[0]=a,this.parsedData.push(b)}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(o){return this.parsedData.length},write:function(o){for(var p=0,m=this.parsedData.length;p<m;p++)o.put(this.parsedData[p],8)}};function r(o,p){this.typeNumber=o,this.errorCorrectLevel=p,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}r.prototype={addData:function(o){var p=new e(o);this.dataList.push(p),this.dataCache=null},isDark:function(o,p){if(o<0||this.moduleCount<=o||p<0||this.moduleCount<=p)throw new Error(o+","+p);return this.modules[o][p]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(o,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 b=0;b<this.moduleCount;b++)this.modules[m][b]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(o,p),this.typeNumber>=7&&this.setupTypeNumber(o),this.dataCache==null&&(this.dataCache=r.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,p)},setupPositionProbePattern:function(o,p){for(var m=-1;m<=7;m++)if(!(o+m<=-1||this.moduleCount<=o+m))for(var b=-1;b<=7;b++)p+b<=-1||this.moduleCount<=p+b||(0<=m&&m<=6&&(b==0||b==6)||0<=b&&b<=6&&(m==0||m==6)||2<=m&&m<=4&&2<=b&&b<=4?this.modules[o+m][p+b]=!0:this.modules[o+m][p+b]=!1)},getBestMaskPattern:function(){for(var o=0,p=0,m=0;m<8;m++){this.makeImpl(!0,m);var b=c.getLostPoint(this);(m==0||o>b)&&(o=b,p=m)}return p},createMovieClip:function(o,p,m){var b=o.createEmptyMovieClip(p,m),a=1;this.make();for(var y=0;y<this.modules.length;y++)for(var _=y*a,v=0;v<this.modules[y].length;v++){var w=v*a,C=this.modules[y][v];C&&(b.beginFill(0,100),b.moveTo(w,_),b.lineTo(w+a,_),b.lineTo(w+a,_+a),b.lineTo(w,_+a),b.endFill())}return b},setupTimingPattern:function(){for(var o=8;o<this.moduleCount-8;o++)this.modules[o][6]==null&&(this.modules[o][6]=o%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 o=c.getPatternPosition(this.typeNumber),p=0;p<o.length;p++)for(var m=0;m<o.length;m++){var b=o[p],a=o[m];if(this.modules[b][a]==null)for(var y=-2;y<=2;y++)for(var _=-2;_<=2;_++)y==-2||y==2||_==-2||_==2||y==0&&_==0?this.modules[b+y][a+_]=!0:this.modules[b+y][a+_]=!1}},setupTypeNumber:function(o){for(var p=c.getBCHTypeNumber(this.typeNumber),m=0;m<18;m++){var b=!o&&(p>>m&1)==1;this.modules[Math.floor(m/3)][m%3+this.moduleCount-8-3]=b}for(var m=0;m<18;m++){var b=!o&&(p>>m&1)==1;this.modules[m%3+this.moduleCount-8-3][Math.floor(m/3)]=b}},setupTypeInfo:function(o,p){for(var m=this.errorCorrectLevel<<3|p,b=c.getBCHTypeInfo(m),a=0;a<15;a++){var y=!o&&(b>>a&1)==1;a<6?this.modules[a][8]=y:a<8?this.modules[a+1][8]=y:this.modules[this.moduleCount-15+a][8]=y}for(var a=0;a<15;a++){var y=!o&&(b>>a&1)==1;a<8?this.modules[8][this.moduleCount-a-1]=y:a<9?this.modules[8][15-a-1+1]=y:this.modules[8][15-a-1]=y}this.modules[this.moduleCount-8][8]=!o},mapData:function(o,p){for(var m=-1,b=this.moduleCount-1,a=7,y=0,_=this.moduleCount-1;_>0;_-=2)for(_==6&&_--;;){for(var v=0;v<2;v++)if(this.modules[b][_-v]==null){var w=!1;y<o.length&&(w=(o[y]>>>a&1)==1);var C=c.getMask(p,b,_-v);C&&(w=!w),this.modules[b][_-v]=w,a--,a==-1&&(y++,a=7)}if(b+=m,b<0||this.moduleCount<=b){b-=m,m=-m;break}}}},r.PAD0=236,r.PAD1=17,r.createData=function(o,p,m){for(var b=s.getRSBlocks(o,p),a=new h,y=0;y<m.length;y++){var _=m[y];a.put(_.mode,4),a.put(_.getLength(),c.getLengthInBits(_.mode,o)),_.write(a)}for(var v=0,y=0;y<b.length;y++)v+=b[y].dataCount;if(a.getLengthInBits()>v*8)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+v*8+")");for(a.getLengthInBits()+4<=v*8&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=v*8||(a.put(r.PAD0,8),a.getLengthInBits()>=v*8));)a.put(r.PAD1,8);return r.createBytes(a,b)},r.createBytes=function(o,p){for(var m=0,b=0,a=0,y=new Array(p.length),_=new Array(p.length),v=0;v<p.length;v++){var w=p[v].dataCount,C=p[v].totalCount-w;b=Math.max(b,w),a=Math.max(a,C),y[v]=new Array(w);for(var S=0;S<y[v].length;S++)y[v][S]=255&o.buffer[S+m];m+=w;var A=c.getErrorCorrectPolynomial(C),x=new g(y[v],A.getLength()-1),N=x.mod(A);_[v]=new Array(A.getLength()-1);for(var S=0;S<_[v].length;S++){var $=S+N.getLength()-_[v].length;_[v][S]=$>=0?N.get($):0}}for(var H=0,S=0;S<p.length;S++)H+=p[S].totalCount;for(var Y=new Array(H),O=0,S=0;S<b;S++)for(var v=0;v<p.length;v++)S<y[v].length&&(Y[O++]=y[v][S]);for(var S=0;S<a;S++)for(var v=0;v<p.length;v++)S<_[v].length&&(Y[O++]=_[v][S]);return Y};for(var t={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},n={L:1,M:0,Q:3,H:2},f={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},c={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(o){for(var p=o<<10;c.getBCHDigit(p)-c.getBCHDigit(c.G15)>=0;)p^=c.G15<<c.getBCHDigit(p)-c.getBCHDigit(c.G15);return(o<<10|p)^c.G15_MASK},getBCHTypeNumber:function(o){for(var p=o<<12;c.getBCHDigit(p)-c.getBCHDigit(c.G18)>=0;)p^=c.G18<<c.getBCHDigit(p)-c.getBCHDigit(c.G18);return o<<12|p},getBCHDigit:function(o){for(var p=0;o!=0;)p++,o>>>=1;return p},getPatternPosition:function(o){return c.PATTERN_POSITION_TABLE[o-1]},getMask:function(o,p,m){switch(o){case f.PATTERN000:return(p+m)%2==0;case f.PATTERN001:return p%2==0;case f.PATTERN010:return m%3==0;case f.PATTERN011:return(p+m)%3==0;case f.PATTERN100:return(Math.floor(p/2)+Math.floor(m/3))%2==0;case f.PATTERN101:return p*m%2+p*m%3==0;case f.PATTERN110:return(p*m%2+p*m%3)%2==0;case f.PATTERN111:return(p*m%3+(p+m)%2)%2==0;default:throw new Error("bad maskPattern:"+o)}},getErrorCorrectPolynomial:function(o){for(var p=new g([1],0),m=0;m<o;m++)p=p.multiply(new g([1,l.gexp(m)],0));return p},getLengthInBits:function(o,p){if(1<=p&&p<10)switch(o){case t.MODE_NUMBER:return 10;case t.MODE_ALPHA_NUM:return 9;case t.MODE_8BIT_BYTE:return 8;case t.MODE_KANJI:return 8;default:throw new Error("mode:"+o)}else if(p<27)switch(o){case t.MODE_NUMBER:return 12;case t.MODE_ALPHA_NUM:return 11;case t.MODE_8BIT_BYTE:return 16;case t.MODE_KANJI:return 10;default:throw new Error("mode:"+o)}else if(p<41)switch(o){case t.MODE_NUMBER:return 14;case t.MODE_ALPHA_NUM:return 13;case t.MODE_8BIT_BYTE:return 16;case t.MODE_KANJI:return 12;default:throw new Error("mode:"+o)}else throw new Error("type:"+p)},getLostPoint:function(o){for(var p=o.getModuleCount(),m=0,b=0;b<p;b++)for(var a=0;a<p;a++){for(var y=0,_=o.isDark(b,a),v=-1;v<=1;v++)if(!(b+v<0||p<=b+v))for(var w=-1;w<=1;w++)a+w<0||p<=a+w||v==0&&w==0||_==o.isDark(b+v,a+w)&&y++;y>5&&(m+=3+y-5)}for(var b=0;b<p-1;b++)for(var a=0;a<p-1;a++){var C=0;o.isDark(b,a)&&C++,o.isDark(b+1,a)&&C++,o.isDark(b,a+1)&&C++,o.isDark(b+1,a+1)&&C++,(C==0||C==4)&&(m+=3)}for(var b=0;b<p;b++)for(var a=0;a<p-6;a++)o.isDark(b,a)&&!o.isDark(b,a+1)&&o.isDark(b,a+2)&&o.isDark(b,a+3)&&o.isDark(b,a+4)&&!o.isDark(b,a+5)&&o.isDark(b,a+6)&&(m+=40);for(var a=0;a<p;a++)for(var b=0;b<p-6;b++)o.isDark(b,a)&&!o.isDark(b+1,a)&&o.isDark(b+2,a)&&o.isDark(b+3,a)&&o.isDark(b+4,a)&&!o.isDark(b+5,a)&&o.isDark(b+6,a)&&(m+=40);for(var S=0,a=0;a<p;a++)for(var b=0;b<p;b++)o.isDark(b,a)&&S++;var A=Math.abs(100*S/p/p-50)/5;return m+=A*10,m}},l={glog:function(o){if(o<1)throw new Error("glog("+o+")");return l.LOG_TABLE[o]},gexp:function(o){for(;o<0;)o+=255;for(;o>=256;)o-=255;return l.EXP_TABLE[o]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},d=0;d<8;d++)l.EXP_TABLE[d]=1<<d;for(var d=8;d<256;d++)l.EXP_TABLE[d]=l.EXP_TABLE[d-4]^l.EXP_TABLE[d-5]^l.EXP_TABLE[d-6]^l.EXP_TABLE[d-8];for(var d=0;d<255;d++)l.LOG_TABLE[l.EXP_TABLE[d]]=d;function g(o,p){if(o.length==null)throw new Error(o.length+"/"+p);for(var m=0;m<o.length&&o[m]==0;)m++;this.num=new Array(o.length-m+p);for(var b=0;b<o.length-m;b++)this.num[b]=o[b+m]}g.prototype={get:function(o){return this.num[o]},getLength:function(){return this.num.length},multiply:function(o){for(var p=new Array(this.getLength()+o.getLength()-1),m=0;m<this.getLength();m++)for(var b=0;b<o.getLength();b++)p[m+b]^=l.gexp(l.glog(this.get(m))+l.glog(o.get(b)));return new g(p,0)},mod:function(o){if(this.getLength()-o.getLength()<0)return this;for(var p=l.glog(this.get(0))-l.glog(o.get(0)),m=new Array(this.getLength()),b=0;b<this.getLength();b++)m[b]=this.get(b);for(var b=0;b<o.getLength();b++)m[b]^=l.gexp(l.glog(o.get(b))+p);return new g(m,0).mod(o)}};function s(o,p){this.totalCount=o,this.dataCount=p}s.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]],s.getRSBlocks=function(o,p){var m=s.getRsBlockTable(o,p);if(m==null)throw new Error("bad rs block @ typeNumber:"+o+"/errorCorrectLevel:"+p);for(var b=m.length/3,a=[],y=0;y<b;y++)for(var _=m[y*3+0],v=m[y*3+1],w=m[y*3+2],C=0;C<_;C++)a.push(new s(v,w));return a},s.getRsBlockTable=function(o,p){switch(p){case n.L:return s.RS_BLOCK_TABLE[(o-1)*4+0];case n.M:return s.RS_BLOCK_TABLE[(o-1)*4+1];case n.Q:return s.RS_BLOCK_TABLE[(o-1)*4+2];case n.H:return s.RS_BLOCK_TABLE[(o-1)*4+3];default:return}};function h(){this.buffer=[],this.length=0}h.prototype={get:function(o){var p=Math.floor(o/8);return(this.buffer[p]>>>7-o%8&1)==1},put:function(o,p){for(var m=0;m<p;m++)this.putBit((o>>>p-m-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(o){var p=Math.floor(this.length/8);this.buffer.length<=p&&this.buffer.push(0),o&&(this.buffer[p]|=128>>>this.length%8),this.length++}};var i=[[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 u(o){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},typeof o=="string"&&(o={content:o}),o)for(var p in o)this.options[p]=o[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 b(w,C){for(var S=a(w),A=1,x=0,N=0,$=i.length;N<=$;N++){var H=i[N];if(!H)throw new Error("Content too long: expected "+x+" but got "+S);switch(C){case"L":x=H[0];break;case"M":x=H[1];break;case"Q":x=H[2];break;case"H":x=H[3];break;default:throw new Error("Unknwon error correction level: "+C)}if(S<=x)break;A++}if(A>i.length)throw new Error("Content too long");return A}function a(w){var C=encodeURI(w).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return C.length+(C.length!=w?3:0)}var y=this.options.content,_=b(y,this.options.ecl),v=m(this.options.ecl);this.qrcode=new r(_,v),this.qrcode.addData(y),this.qrcode.make()}return u.prototype.svg=function(o){var p=this.options||{},m=this.qrcode.modules;typeof o>"u"&&(o={container:p.container||"svg"});for(var b=typeof p.pretty<"u"?!!p.pretty:!0,a=b?" ":"",y=b?`\r
2
2
  `:"",_=p.width,v=p.height,w=m.length,C=_/(w+2*p.padding),S=v/(w+2*p.padding),A=typeof p.join<"u"?!!p.join:!1,x=typeof p.swap<"u"?!!p.swap:!1,N=typeof p.xmlDeclaration<"u"?!!p.xmlDeclaration:!0,$=typeof p.predefined<"u"?!!p.predefined:!1,H=$?a+'<defs><path id="qrmodule" d="M0 0 h'+S+" v"+C+' H0 z" style="fill:'+p.color+';shape-rendering:crispEdges;" /></defs>'+y:"",Y=a+'<rect x="0" y="0" width="'+_+'" height="'+v+'" style="fill:'+p.background+';shape-rendering:crispEdges;"/>'+y,O="",M="",k=0;k<w;k++)for(var L=0;L<w;L++){var B=m[L][k];if(B){var P=L*C+p.padding*C,j=k*S+p.padding*S;if(x){var J=P;P=j,j=J}if(A){var V=C+P,G=S+j;P=Number.isInteger(P)?Number(P):P.toFixed(2),j=Number.isInteger(j)?Number(j):j.toFixed(2),V=Number.isInteger(V)?Number(V):V.toFixed(2),G=Number.isInteger(G)?Number(G):G.toFixed(2),M+="M"+P+","+j+" V"+G+" H"+V+" V"+j+" H"+P+" Z "}else $?O+=a+'<use x="'+P.toString()+'" y="'+j.toString()+'" href="#qrmodule" />'+y:O+=a+'<rect x="'+P.toString()+'" y="'+j.toString()+'" width="'+C+'" height="'+S+'" style="fill:'+p.color+';shape-rendering:crispEdges;"/>'+y}}A&&(O=a+'<path x="0" y="0" style="fill:'+p.color+';shape-rendering:crispEdges;" d="'+M+'" />');let X="";if(this.options.image!==void 0&&this.options.image.svg){const ae=_*this.options.image.width/100,T=v*this.options.image.height/100,I=_/2-ae/2,F=v/2-T/2;X+=`<svg x="${I}" y="${F}" width="${ae}" height="${T}" viewBox="0 0 100 100" preserveAspectRatio="xMinYMin meet">`,X+=this.options.image.svg+y,X+="</svg>"}var z="";switch(o.container){case"svg":N&&(z+='<?xml version="1.0" standalone="yes"?>'+y),z+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+_+'" height="'+v+'">'+y,z+=H+Y+O,z+=X,z+="</svg>";break;case"svg-viewbox":N&&(z+='<?xml version="1.0" standalone="yes"?>'+y),z+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 '+_+" "+v+'">'+y,z+=H+Y+O,z+=X,z+="</svg>";break;case"g":z+='<g width="'+_+'" height="'+v+'">'+y,z+=H+Y+O,z+=X,z+="</g>";break;default:z+=(H+Y+O+X).replace(/^\s+/,"");break}return z},Kn=u,Kn}var oa;function Cd(){if(oa)return He;oa=1;var e=He&&He.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(He,"__esModule",{value:!0}),He.QRCode=void 0;const r=le,t=xr,n=e(Sd()),f=c=>{const[l,d]=(0,t.useState)("");return(0,t.useEffect)(()=>{var g,s;const h=new n.default({content:c.content,background:c.bgColor||"#ffffff",color:c.fgColor||"#000000",container:"svg",ecl:"M",width:(g=c.width)!==null&&g!==void 0?g:256,height:(s=c.height)!==null&&s!==void 0?s:256,padding:0,image:c.image}),i=Q.from(h.svg(),"utf8").toString("base64");d(`data:image/svg+xml;base64,${i}`)},[c.bgColor,c.content,c.fgColor,c.height,c.image,c.width]),l?(0,r.h)("img",{src:l,alt:"QR Code"}):null};return He.QRCode=f,He}var Ue={},cr={},aa;function kd(){return aa||(aa=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.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)}}"),cr}var ca;function Id(){if(ca)return Ue;ca=1;var e=Ue&&Ue.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.Spinner=void 0;const r=le,t=e(kd()),n=f=>{var c;const l=(c=f.size)!==null&&c!==void 0?c:64,d=f.color||"#000";return(0,r.h)("div",{class:"-cbwsdk-spinner"},(0,r.h)("style",null,t.default),(0,r.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:l,height:l}},(0,r.h)("circle",{style:{cx:50,cy:50,r:45,stroke:d}})))};return Ue.Spinner=n,Ue}var ur={},ua;function Ad(){return ua||(ua=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.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}"),ur}var la;function Td(){if(la)return Ae;la=1;var e=Ae&&Ae.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.CoinbaseWalletSteps=Ae.ConnectContent=void 0;const r=e(Xt),t=le,n=Le(),f=Ys(),c=wd(),l=Ed(),d=Rd(),g=Cd(),s=Id(),h=e(Ad()),i={title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",steps:m},u=b=>b==="light"?"#FFFFFF":"#0A0B0D";function o(b){const{theme:a}=b,y=(0,n.createQrUrl)(b.sessionId,b.sessionSecret,b.linkAPIUrl,b.isParentConnection,b.version,b.chainId),_=i.steps;return(0,t.h)("div",{"data-testid":"connect-content",className:(0,r.default)("-cbwsdk-connect-content",a)},(0,t.h)("style",null,h.default),(0,t.h)("div",{className:"-cbwsdk-connect-content-header"},(0,t.h)("h2",{className:(0,r.default)("-cbwsdk-connect-content-heading",a)},"Scan to connect with our mobile app"),b.onCancel&&(0,t.h)("button",{type:"button",className:"-cbwsdk-cancel-button",onClick:b.onCancel},(0,t.h)(c.CloseIcon,{fill:a==="light"?"#0A0B0D":"#FFFFFF"}))),(0,t.h)("div",{className:"-cbwsdk-connect-content-layout"},(0,t.h)("div",{className:"-cbwsdk-connect-content-column-left"},(0,t.h)(p,{title:i.title,description:i.description,theme:a})),(0,t.h)("div",{className:"-cbwsdk-connect-content-column-right"},(0,t.h)("div",{className:"-cbwsdk-connect-content-qr-wrapper"},(0,t.h)(g.QRCode,{content:y,width:200,height:200,fgColor:"#000",bgColor:"transparent"}),(0,t.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:f.LIB_VERSION}),(0,t.h)("input",{type:"hidden",value:y})),(0,t.h)(_,{theme:a}),!b.isConnected&&(0,t.h)("div",{"data-testid":"connecting-spinner",className:(0,r.default)("-cbwsdk-connect-content-qr-connecting",a)},(0,t.h)(s.Spinner,{size:36,color:a==="dark"?"#FFF":"#000"}),(0,t.h)("p",null,"Connecting...")))))}Ae.ConnectContent=o;function p({title:b,description:a,theme:y}){return(0,t.h)("div",{className:(0,r.default)("-cbwsdk-connect-item",y)},(0,t.h)("div",null,(0,t.h)(l.CoinbaseWalletRound,null)),(0,t.h)("div",{className:"-cbwsdk-connect-item-copy-wrapper"},(0,t.h)("h3",{className:"-cbwsdk-connect-item-title"},b),(0,t.h)("p",{className:"-cbwsdk-connect-item-description"},a)))}function m({theme:b}){return(0,t.h)("ol",{className:"-cbwsdk-wallet-steps"},(0,t.h)("li",{className:(0,r.default)("-cbwsdk-wallet-steps-item",b)},(0,t.h)("div",{className:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,t.h)("li",{className:(0,r.default)("-cbwsdk-wallet-steps-item",b)},(0,t.h)("div",{className:"-cbwsdk-wallet-steps-item-wrapper"},(0,t.h)("span",null,"Tap ",(0,t.h)("strong",null,"Scan")," "),(0,t.h)("span",{className:(0,r.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",b)},(0,t.h)(d.QRCodeIcon,{fill:u(b)})))))}return Ae.CoinbaseWalletSteps=m,Ae}var We={},Ot={},da;function Ld(){if(da)return Ot;da=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.ArrowLeftIcon=void 0;const e=le;function r(t){return(0,e.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},t),(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 Ot.ArrowLeftIcon=r,Ot}var Pt={},ha;function Md(){if(ha)return Pt;ha=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.LaptopIcon=void 0;const e=le;function r(t){return(0,e.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},t),(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 Pt.LaptopIcon=r,Pt}var Bt={},fa;function Nd(){if(fa)return Bt;fa=1,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.SafeIcon=void 0;const e=le;function r(t){return(0,e.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},t),(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 Bt.SafeIcon=r,Bt}var lr={},ga;function xd(){return ga||(ga=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.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}"),lr}var pa;function Od(){if(pa)return We;pa=1;var e=We&&We.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(We,"__esModule",{value:!0}),We.TryExtensionContent=void 0;const r=e(Xt),t=le,n=xr,f=Ld(),c=Md(),l=Nd(),d=e(xd());function g({theme:s}){const[h,i]=(0,n.useState)(!1),u=(0,n.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),o=(0,n.useCallback)(()=>{h?window.location.reload():(u(),i(!0))},[u,h]);return(0,t.h)("div",{class:(0,r.default)("-cbwsdk-try-extension",s)},(0,t.h)("style",null,d.default),(0,t.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,t.h)("h3",{class:(0,r.default)("-cbwsdk-try-extension-heading",s)},"Or try the Coinbase Wallet browser extension"),(0,t.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,t.h)("button",{class:(0,r.default)("-cbwsdk-try-extension-cta",s),onClick:o},h?"Refresh":"Install"),(0,t.h)("div",null,!h&&(0,t.h)(f.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:s==="light"?"#0052FF":"#588AF5"})))),(0,t.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,t.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,t.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,t.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,t.h)("span",{class:(0,r.default)("-cbwsdk-try-extension-list-item-icon",s)},(0,t.h)(c.LaptopIcon,{fill:s==="light"?"#0A0B0D":"#FFFFFF"}))),(0,t.h)("div",{class:(0,r.default)("-cbwsdk-try-extension-list-item-copy",s)},"Connect with dapps with just one click on your desktop browser")),(0,t.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,t.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,t.h)("span",{class:(0,r.default)("-cbwsdk-try-extension-list-item-icon",s)},(0,t.h)(l.SafeIcon,{fill:s==="light"?"#0A0B0D":"#FFFFFF"}))),(0,t.h)("div",{class:(0,r.default)("-cbwsdk-try-extension-list-item-copy",s)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}return We.TryExtensionContent=g,We}var dr={},ba;function Pd(){return ba||(ba=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.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}"),dr}var ma;function Bd(){if(ma)return $e;ma=1;var e=$e&&$e.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty($e,"__esModule",{value:!0}),$e.ConnectDialog=void 0;const r=e(Xt),t=le,n=xr,f=Td(),c=Od(),l=e(Pd()),d=g=>{const{isOpen:s,darkMode:h}=g,[i,u]=(0,n.useState)(!s),[o,p]=(0,n.useState)(!s);(0,n.useEffect)(()=>{const b=[window.setTimeout(()=>{p(!s)},10)];return s?u(!1):b.push(window.setTimeout(()=>{u(!0)},360)),()=>{b.forEach(window.clearTimeout)}},[s]);const m=h?"dark":"light";return(0,t.h)("div",{class:(0,r.default)("-cbwsdk-connect-dialog-container",i&&"-cbwsdk-connect-dialog-container-hidden")},(0,t.h)("style",null,l.default),(0,t.h)("div",{class:(0,r.default)("-cbwsdk-connect-dialog-backdrop",m,o&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,t.h)("div",{class:"-cbwsdk-connect-dialog"},(0,t.h)("div",{class:(0,r.default)("-cbwsdk-connect-dialog-box",o&&"-cbwsdk-connect-dialog-box-hidden")},g.connectDisabled?null:(0,t.h)(f.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,t.h)(c.TryExtensionContent,{theme:m}))))};return $e.ConnectDialog=d,$e}var _a;function Dd(){if(_a)return Lt;_a=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.LinkFlow=void 0;const e=le,r=Bd();let t=class{constructor(f){this.connected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=f.darkMode,this.version=f.version,this.sessionId=f.sessionId,this.sessionSecret=f.sessionSecret,this.linkAPIUrl=f.linkAPIUrl,this.isParentConnection=f.isParentConnection}attach(f){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",f.appendChild(this.root),this.render()}setConnected(f){this.connected!==f&&(this.connected=f,this.render())}setChainId(f){this.chainId!==f&&(this.chainId=f,this.render())}detach(){var f;this.root&&((0,e.render)(null,this.root),(f=this.root.parentElement)===null||f===void 0||f.removeChild(this.root))}setConnectDisabled(f){this.connectDisabled=f}open(f){this.isOpen=!0,this.onCancel=f.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){this.root&&(0,e.render)((0,e.h)(r.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 Lt.LinkFlow=t,Lt}var Dt={},hr={},ya;function Fd(){return ya||(ya=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.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}"),hr}var va;function dl(){return va||(va=1,function(e){var r=Dt&&Dt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.SnackbarInstance=e.SnackbarContainer=e.Snackbar=void 0;const t=r(Xt),n=le,f=xr,c=r(Fd()),l="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",d="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";class g{constructor(u){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=u.darkMode}attach(u){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",u.appendChild(this.root),this.render()}presentItem(u){const o=this.nextItemKey++;return this.items.set(o,u),this.render(),()=>{this.items.delete(o),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(([u,o])=>(0,n.h)(e.SnackbarInstance,Object.assign({},o,{key:u}))))),this.root)}}e.Snackbar=g;const s=i=>(0,n.h)("div",{class:(0,t.default)("-cbwsdk-snackbar-container")},(0,n.h)("style",null,c.default),(0,n.h)("div",{class:"-cbwsdk-snackbar"},i.children));e.SnackbarContainer=s;const h=({autoExpand:i,message:u,menuItems:o})=>{const[p,m]=(0,f.useState)(!0),[b,a]=(0,f.useState)(i??!1);(0,f.useEffect)(()=>{const _=[window.setTimeout(()=>{m(!1)},1),window.setTimeout(()=>{a(!0)},1e4)];return()=>{_.forEach(window.clearTimeout)}});const y=()=>{a(!b)};return(0,n.h)("div",{class:(0,t.default)("-cbwsdk-snackbar-instance",p&&"-cbwsdk-snackbar-instance-hidden",b&&"-cbwsdk-snackbar-instance-expanded")},(0,n.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:y},(0,n.h)("img",{src:l,class:"-cbwsdk-snackbar-instance-header-cblogo"})," ",(0,n.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},u),(0,n.h)("div",{class:"-gear-container"},!b&&(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:d,class:"-gear-icon",title:"Expand"}))),o&&o.length>0&&(0,n.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},o.map((_,v)=>(0,n.h)("div",{class:(0,t.default)("-cbwsdk-snackbar-instance-menu-item",_.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:_.onClick,key:v},(0,n.h)("svg",{width:_.svgWidth,height:_.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("path",{"fill-rule":_.defaultFillRule,"clip-rule":_.defaultClipRule,d:_.path,fill:"#AAAAAA"})),(0,n.h)("span",{class:(0,t.default)("-cbwsdk-snackbar-instance-menu-item-info",_.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},_.info)))))};e.SnackbarInstance=h}(Dt)),Dt}var wa;function hl(){if(wa)return Tt;wa=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.WalletLinkRelayUI=void 0;const e=ll(),r=Dd(),t=dl();let n=class{constructor(c){this.standalone=null,this.attached=!1,this.snackbar=new t.Snackbar({darkMode:c.darkMode}),this.linkFlow=new r.LinkFlow({darkMode:c.darkMode,version:c.version,sessionId:c.session.id,sessionSecret:c.session.secret,linkAPIUrl:c.linkAPIUrl,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");const c=document.documentElement,l=document.createElement("div");l.className="-cbwsdk-css-reset",c.appendChild(l),this.linkFlow.attach(l),this.snackbar.attach(l),this.attached=!0,(0,e.injectCssReset)()}setConnected(c){this.linkFlow.setConnected(c)}setChainId(c){this.linkFlow.setChainId(c)}setConnectDisabled(c){this.linkFlow.setConnectDisabled(c)}addEthereumChain(){}watchAsset(){}switchEthereumChain(){}requestEthereumAccounts(c){this.linkFlow.open({onCancel:c.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}showConnecting(c){let l;return c.isUnlinkedErrorState?l={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:c.onResetConnection}]}:l={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:c.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:c.onResetConnection}]},this.snackbar.presentItem(l)}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(c){this.standalone=c}isStandalone(){var c;return(c=this.standalone)!==null&&c!==void 0?c:!1}};return Tt.WalletLinkRelayUI=n,Tt}var Ea;function fl(){if(Ea)return Rt;Ea=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.WalletLinkRelay=void 0;const e=Mr(),r=Nr(),t=Le(),n=Xs(),f=eo(),c=to(),l=yd(),d=Qs(),g=hl();let s=class nt extends f.RelayAbstract{constructor(i){var u;super(),this.accountsCallback=null,this.chainCallbackParams={chainId:"",jsonRpcUrl:""},this.chainCallback=null,this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.linkedUpdated=b=>{var a;this.isLinked=b;const y=this.storage.getItem(f.LOCAL_STORAGE_ADDRESSES_KEY);if(b&&(this.session.linked=b),this.isUnlinkedErrorState=!1,y){const _=y.split(" "),v=this.storage.getItem("IsStandaloneSigning")==="true";if(_[0]!==""&&!b&&this.session.linked&&!v){this.isUnlinkedErrorState=!0;const w=this.getSessionIdHash();(a=this.diagnostic)===null||a===void 0||a.log(n.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:w})}}},this.metadataUpdated=(b,a)=>{this.storage.setItem(b,a)},this.chainUpdated=(b,a)=>{this.chainCallbackParams.chainId===b&&this.chainCallbackParams.jsonRpcUrl===a||(this.chainCallbackParams={chainId:b,jsonRpcUrl:a},this.chainCallback&&this.chainCallback(b,a))},this.accountUpdated=b=>{this.accountsCallback&&this.accountsCallback([b]),nt.accountRequestCallbackIds.size>0&&(Array.from(nt.accountRequestCallbackIds.values()).forEach(a=>{const y={type:"WEB3_RESPONSE",id:a,response:{method:"requestEthereumAccounts",result:[b]}};this.invokeCallback(Object.assign(Object.assign({},y),{id:a}))}),nt.accountRequestCallbackIds.clear())},this.connectedUpdated=b=>{this.ui.setConnected(b)},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=i.linkAPIUrl,this.storage=i.storage,this.options=i;const{session:o,ui:p,connection:m}=this.subscribe();this._session=o,this.connection=m,this.relayEventManager=i.relayEventManager,this.diagnostic=i.diagnosticLogger,this._reloadOnDisconnect=(u=i.reloadOnDisconnect)!==null&&u!==void 0?u:!0,this.ui=p}subscribe(){const i=c.Session.load(this.storage)||new c.Session(this.storage).save(),{linkAPIUrl:u,diagnostic:o}=this,p=new l.WalletLinkConnection({session:i,linkAPIUrl:u,diagnostic:o,listener:this}),{version:m,darkMode:b}=this.options,a=this.options.uiConstructor({linkAPIUrl:u,version:m,darkMode:b,session:i});return p.connect(),{session:i,ui:a,connection:p}}attachUI(){this.ui.attach()}resetAndReload(){Promise.race([this.connection.setSessionMetadata("__destroyed","1"),new Promise(i=>setTimeout(()=>i(null),1e3))]).then(()=>{var i,u;const o=this.ui.isStandalone();(i=this.diagnostic)===null||i===void 0||i.log(n.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();const p=c.Session.load(this.storage);if((p==null?void 0:p.id)===this._session.id?this.storage.clear():p&&((u=this.diagnostic)===null||u===void 0||u.log(n.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:c.Session.hash(p.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);const{session:m,ui:b,connection:a}=this.subscribe();this._session=m,this.connection=a,this.ui=b,o&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.options.headlessMode||this.attachUI()}).catch(i=>{var u;(u=this.diagnostic)===null||u===void 0||u.log(n.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${i}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(i,u){this.appName=i,this.appLogoUrl=u}getStorageItem(i){return this.storage.getItem(i)}get session(){return this._session}setStorageItem(i,u){this.storage.setItem(i,u)}signEthereumMessage(i,u,o,p){return this.sendRequest({method:"signEthereumMessage",params:{message:(0,t.hexStringFromBuffer)(i,!0),address:u,addPrefix:o,typedDataJson:p||null}})}ethereumAddressFromSignedMessage(i,u,o){return this.sendRequest({method:"ethereumAddressFromSignedMessage",params:{message:(0,t.hexStringFromBuffer)(i,!0),signature:(0,t.hexStringFromBuffer)(u,!0),addPrefix:o}})}signEthereumTransaction(i){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:i.fromAddress,toAddress:i.toAddress,weiValue:(0,t.bigIntStringFromBN)(i.weiValue),data:(0,t.hexStringFromBuffer)(i.data,!0),nonce:i.nonce,gasPriceInWei:i.gasPriceInWei?(0,t.bigIntStringFromBN)(i.gasPriceInWei):null,maxFeePerGas:i.gasPriceInWei?(0,t.bigIntStringFromBN)(i.gasPriceInWei):null,maxPriorityFeePerGas:i.gasPriceInWei?(0,t.bigIntStringFromBN)(i.gasPriceInWei):null,gasLimit:i.gasLimit?(0,t.bigIntStringFromBN)(i.gasLimit):null,chainId:i.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(i){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:i.fromAddress,toAddress:i.toAddress,weiValue:(0,t.bigIntStringFromBN)(i.weiValue),data:(0,t.hexStringFromBuffer)(i.data,!0),nonce:i.nonce,gasPriceInWei:i.gasPriceInWei?(0,t.bigIntStringFromBN)(i.gasPriceInWei):null,maxFeePerGas:i.maxFeePerGas?(0,t.bigIntStringFromBN)(i.maxFeePerGas):null,maxPriorityFeePerGas:i.maxPriorityFeePerGas?(0,t.bigIntStringFromBN)(i.maxPriorityFeePerGas):null,gasLimit:i.gasLimit?(0,t.bigIntStringFromBN)(i.gasLimit):null,chainId:i.chainId,shouldSubmit:!0}})}submitEthereumTransaction(i,u){return this.sendRequest({method:"submitEthereumTransaction",params:{signedTransaction:(0,t.hexStringFromBuffer)(i,!0),chainId:u}})}scanQRCode(i){return this.sendRequest({method:"scanQRCode",params:{regExp:i}})}getQRCodeUrl(){return(0,t.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(i,u){return this.sendRequest({method:"generic",params:{action:u,data:i}})}sendGenericMessage(i){return this.sendRequest(i)}sendRequest(i){let u=null;const o=(0,t.randomBytesHex)(8),p=b=>{this.publishWeb3RequestCanceledEvent(o),this.handleErrorResponse(o,i.method,b),u==null||u()};return{promise:new Promise((b,a)=>{this.ui.isStandalone()||(u=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:p,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(o,y=>{if(u==null||u(),(0,d.isErrorResponse)(y))return a(new Error(y.errorMessage));b(y)}),this.ui.isStandalone()?this.sendRequestStandalone(o,i):this.publishWeb3RequestEvent(o,i)}),cancel:p}}setConnectDisabled(i){this.ui.setConnectDisabled(i)}setAccountsCallback(i){this.accountsCallback=i}setChainCallback(i){this.chainCallback=i}setDappDefaultChainCallback(i){this.dappDefaultChain=i,this.ui instanceof g.WalletLinkRelayUI&&this.ui.setChainId(i)}publishWeb3RequestEvent(i,u){var o;const p={type:"WEB3_REQUEST",id:i,request:u},m=c.Session.load(this.storage);(o=this.diagnostic)===null||o===void 0||o.log(n.EVENTS.WEB3_REQUEST,{eventId:p.id,method:`relay::${u.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:m?c.Session.hash(m.id):"",isSessionMismatched:((m==null?void 0:m.id)!==this._session.id).toString()}),this.publishEvent("Web3Request",p,!0).then(b=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(n.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:p.id,method:`relay::${u.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:m?c.Session.hash(m.id):"",isSessionMismatched:((m==null?void 0:m.id)!==this._session.id).toString()})}).catch(b=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:p.id,response:{method:u.method,errorMessage:b.message}})})}publishWeb3RequestCanceledEvent(i){const u={type:"WEB3_REQUEST_CANCELED",id:i};this.publishEvent("Web3RequestCanceled",u,!1).then()}publishEvent(i,u,o){return this.connection.publishEvent(i,u,o)}handleWeb3ResponseMessage(i){var u;const{response:o}=i;if((u=this.diagnostic)===null||u===void 0||u.log(n.EVENTS.WEB3_RESPONSE,{eventId:i.id,method:`relay::${o.method}`,sessionIdHash:this.getSessionIdHash()}),o.method==="requestEthereumAccounts"){nt.accountRequestCallbackIds.forEach(p=>this.invokeCallback(Object.assign(Object.assign({},i),{id:p}))),nt.accountRequestCallbackIds.clear();return}this.invokeCallback(i)}handleErrorResponse(i,u,o,p){var m;const b=(m=o==null?void 0:o.message)!==null&&m!==void 0?m:(0,e.getMessageFromCode)(p);this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:i,response:{method:u,errorMessage:b,errorCode:p}})}invokeCallback(i){const u=this.relayEventManager.callbacks.get(i.id);u&&(u(i.response),this.relayEventManager.callbacks.delete(i.id))}requestEthereumAccounts(){const i={method:"requestEthereumAccounts",params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},u=(0,t.randomBytesHex)(8),o=m=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,i.method,m)};return{promise:new Promise((m,b)=>{if(this.relayEventManager.callbacks.set(u,a=>{if(this.ui.hideRequestEthereumAccounts(),(0,d.isErrorResponse)(a))return b(new Error(a.errorMessage));m(a)}),this.ui.inlineAccountsResponse()){const a=y=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:u,response:{method:"requestEthereumAccounts",result:y}})};this.ui.requestEthereumAccounts({onCancel:o,onAccounts:a})}else{const a=e.standardErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>o(a)})}nt.accountRequestCallbackIds.add(u),!this.ui.inlineAccountsResponse()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(u,i)}),cancel:o}}selectProvider(i){const u={method:"selectProvider"},o=(0,t.randomBytesHex)(8),p=b=>{this.publishWeb3RequestCanceledEvent(o),this.handleErrorResponse(o,u.method,b)},m=new Promise((b,a)=>{this.relayEventManager.callbacks.set(o,v=>{if((0,d.isErrorResponse)(v))return a(new Error(v.errorMessage));b(v)});const y=v=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:o,response:{method:"selectProvider",result:r.ProviderType.Unselected}})},_=v=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:o,response:{method:"selectProvider",result:v}})};this.ui.selectProvider&&this.ui.selectProvider({onApprove:_,onCancel:y,providerOptions:i})});return{cancel:p,promise:m}}watchAsset(i,u,o,p,m,b){const a={method:"watchAsset",params:{type:i,options:{address:u,symbol:o,decimals:p,image:m},chainId:b}};let y=null;const _=(0,t.randomBytesHex)(8),v=C=>{this.publishWeb3RequestCanceledEvent(_),this.handleErrorResponse(_,a.method,C),y==null||y()};this.ui.inlineWatchAsset()||(y=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:v,onResetConnection:this.resetAndReload}));const w=new Promise((C,S)=>{this.relayEventManager.callbacks.set(_,N=>{if(y==null||y(),(0,d.isErrorResponse)(N))return S(new Error(N.errorMessage));C(N)});const A=N=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:_,response:{method:"watchAsset",result:!1}})},x=()=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:_,response:{method:"watchAsset",result:!0}})};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:x,onCancel:A,type:i,address:u,symbol:o,decimals:p,image:m,chainId:b}),!this.ui.inlineWatchAsset()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(_,a)});return{cancel:v,promise:w}}addEthereumChain(i,u,o,p,m,b){const a={method:"addEthereumChain",params:{chainId:i,rpcUrls:u,blockExplorerUrls:p,chainName:m,iconUrls:o,nativeCurrency:b}};let y=null;const _=(0,t.randomBytesHex)(8),v=C=>{this.publishWeb3RequestCanceledEvent(_),this.handleErrorResponse(_,a.method,C),y==null||y()};return this.ui.inlineAddEthereumChain(i)||(y=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:v,onResetConnection:this.resetAndReload})),{promise:new Promise((C,S)=>{this.relayEventManager.callbacks.set(_,N=>{if(y==null||y(),(0,d.isErrorResponse)(N))return S(new Error(N.errorMessage));C(N)});const A=N=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:_,response:{method:"addEthereumChain",result:{isApproved:!1,rpcUrl:""}}})},x=N=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:_,response:{method:"addEthereumChain",result:{isApproved:!0,rpcUrl:N}}})};this.ui.inlineAddEthereumChain(i)&&this.ui.addEthereumChain({onCancel:A,onApprove:x,chainId:a.params.chainId,rpcUrls:a.params.rpcUrls,blockExplorerUrls:a.params.blockExplorerUrls,chainName:a.params.chainName,iconUrls:a.params.iconUrls,nativeCurrency:a.params.nativeCurrency}),!this.ui.inlineAddEthereumChain(i)&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(_,a)}),cancel:v}}switchEthereumChain(i,u){const o={method:"switchEthereumChain",params:Object.assign({chainId:i},{address:u})},p=(0,t.randomBytesHex)(8),m=a=>{this.publishWeb3RequestCanceledEvent(p),this.handleErrorResponse(p,o.method,a)};return{promise:new Promise((a,y)=>{this.relayEventManager.callbacks.set(p,w=>{if((0,d.isErrorResponse)(w)&&w.errorCode)return y(e.standardErrors.provider.custom({code:w.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."}));if((0,d.isErrorResponse)(w))return y(new Error(w.errorMessage));a(w)});const _=w=>{var C;if(w){const S=(C=(0,e.getErrorCode)(w))!==null&&C!==void 0?C:e.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(p,"switchEthereumChain",w instanceof Error?w:e.standardErrors.provider.unsupportedChain(i),S)}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:_,onApprove:v,chainId:o.params.chainId,address:o.params.address}),!this.ui.inlineSwitchEthereumChain()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(p,o)}),cancel:m}}inlineAddEthereumChain(i){return this.ui.inlineAddEthereumChain(i)}getSessionIdHash(){return c.Session.hash(this._session.id)}sendRequestStandalone(i,u){const o=m=>{this.handleErrorResponse(i,u.method,m)},p=m=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:i,response:m})};switch(u.method){case"signEthereumMessage":this.ui.signEthereumMessage({request:u,onSuccess:p,onCancel:o});break;case"signEthereumTransaction":this.ui.signEthereumTransaction({request:u,onSuccess:p,onCancel:o});break;case"submitEthereumTransaction":this.ui.submitEthereumTransaction({request:u,onSuccess:p,onCancel:o});break;case"ethereumAddressFromSignedMessage":this.ui.ethereumAddressFromSignedMessage({request:u,onSuccess:p});break;default:o();break}}};return Rt.WalletLinkRelay=s,s.accountRequestCallbackIds=new Set,Rt}var Ft={},Ve={},ze={},Ra;function qd(){return Ra||(Ra=1,function(e){var r=ze&&ze.__createBinding||(Object.create?function(n,f,c,l){l===void 0&&(l=c);var d=Object.getOwnPropertyDescriptor(f,c);(!d||("get"in d?!f.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return f[c]}}),Object.defineProperty(n,l,d)}:function(n,f,c,l){l===void 0&&(l=c),n[l]=f[c]}),t=ze&&ze.__exportStar||function(n,f){for(var c in n)c!=="default"&&!Object.prototype.hasOwnProperty.call(f,c)&&r(f,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),t(dl(),e)}(ze)),ze}var fr={},Sa;function jd(){return Sa||(Sa=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.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}"),fr}var Ca;function $d(){if(Ca)return Ve;Ca=1;var e=Ve&&Ve.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.RedirectDialog=void 0;const r=e(Xt),t=le,n=ll(),f=qd(),c=e(jd());let l=class{constructor(){this.root=null}attach(){const s=document.documentElement;this.root=document.createElement("div"),this.root.className="-cbwsdk-css-reset",s.appendChild(this.root),(0,n.injectCssReset)()}present(s){this.render(s)}clear(){this.render(null)}render(s){this.root&&((0,t.render)(null,this.root),s&&(0,t.render)((0,t.h)(d,Object.assign({},s,{onDismiss:()=>{this.clear()}})),this.root))}};Ve.RedirectDialog=l;const d=({title:g,buttonText:s,darkMode:h,onButtonClick:i,onDismiss:u})=>{const o=h?"dark":"light";return(0,t.h)(f.SnackbarContainer,{darkMode:h},(0,t.h)("div",{class:"-cbwsdk-redirect-dialog"},(0,t.h)("style",null,c.default),(0,t.h)("div",{class:"-cbwsdk-redirect-dialog-backdrop",onClick:u}),(0,t.h)("div",{class:(0,r.default)("-cbwsdk-redirect-dialog-box",o)},(0,t.h)("p",null,g),(0,t.h)("button",{onClick:i},s))))};return Ve}var ka;function gl(){if(ka)return Ft;ka=1,Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.MobileRelayUI=void 0;const e=$d();let r=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 f=new URL("https://go.cb-w.com/walletlink");f.searchParams.append("redirect_url",window.location.href),n&&f.searchParams.append("wl_url",n);const c=document.createElement("a");c.target="cbw-opener",c.href=f.href,c.rel="noreferrer noopener",c.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 Ft.MobileRelayUI=r,Ft}var Ia;function pl(){if(Ia)return Et;Ia=1,Object.defineProperty(Et,"__esModule",{value:!0}),Et.MobileRelay=void 0;const e=Le(),r=fl(),t=gl();let n=class extends r.WalletLinkRelay{constructor(c){var l;super(c),this._enableMobileWalletLink=(l=c.enableMobileWalletLink)!==null&&l!==void 0?l:!1}requestEthereumAccounts(){return this._enableMobileWalletLink?super.requestEthereumAccounts():{promise:new Promise(()=>{const c=(0,e.getLocation)();c.href=`https://go.cb-w.com/dapp?cb_url=${encodeURIComponent(c.href)}`}),cancel:()=>{}}}publishWeb3RequestEvent(c,l){if(super.publishWeb3RequestEvent(c,l),!(this._enableMobileWalletLink&&this.ui instanceof t.MobileRelayUI))return;let d=!1;switch(l.method){case"requestEthereumAccounts":case"connectAndSignIn":d=!0,this.ui.openCoinbaseWalletDeeplink(this.getQRCodeUrl());break;case"switchEthereumChain":return;default:d=!0,this.ui.openCoinbaseWalletDeeplink();break}d&&window.addEventListener("blur",()=>{window.addEventListener("focus",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0})}handleWeb3ResponseMessage(c){super.handleWeb3ResponseMessage(c)}connectAndSignIn(c){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:c.nonce,iat:new Date().toISOString(),chainId:`eip155:${this.dappDefaultChain}`,statement:c.statement,resources:c.resources}})}};return Et.MobileRelay=n,Et}var gr={exports:{}},Qn,Aa;function bl(){return Aa||(Aa=1,Qn=Tr().EventEmitter),Qn}var Yn={exports:{}},Ta;function Hd(){if(Ta)return Yn.exports;Ta=1;var e=Yn.exports={},r,t;function n(){throw new Error("setTimeout has not been defined")}function f(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?r=setTimeout:r=n}catch{r=n}try{typeof clearTimeout=="function"?t=clearTimeout:t=f}catch{t=f}})();function c(m){if(r===setTimeout)return setTimeout(m,0);if((r===n||!r)&&setTimeout)return r=setTimeout,setTimeout(m,0);try{return r(m,0)}catch{try{return r.call(null,m,0)}catch{return r.call(this,m,0)}}}function l(m){if(t===clearTimeout)return clearTimeout(m);if((t===f||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(m);try{return t(m)}catch{try{return t.call(null,m)}catch{return t.call(this,m)}}}var d=[],g=!1,s,h=-1;function i(){!g||!s||(g=!1,s.length?d=s.concat(d):h=-1,d.length&&u())}function u(){if(!g){var m=c(i);g=!0;for(var b=d.length;b;){for(s=d,d=[];++h<b;)s&&s[h].run();h=-1,b=d.length}s=null,g=!1,l(m)}}e.nextTick=function(m){var b=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)b[a-1]=arguments[a];d.push(new o(m,b)),d.length===1&&!g&&c(u)};function o(m,b){this.fun=m,this.array=b}o.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function p(){}return e.on=p,e.addListener=p,e.once=p,e.off=p,e.removeListener=p,e.removeAllListeners=p,e.emit=p,e.prependListener=p,e.prependOnceListener=p,e.listeners=function(m){return[]},e.binding=function(m){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(m){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},Yn.exports}var Ud=Hd();const Er=ol(Ud);var Rr;typeof Object.create=="function"?Rr=function(r,t){r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})}:Rr=function(r,t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r};var Wd={},Vd=/%[sdj%]/g;function Or(e){if(!tr(e)){for(var r=[],t=0;t<arguments.length;t++)r.push(ke(arguments[t]));return r.join(" ")}for(var t=1,n=arguments,f=n.length,c=String(e).replace(Vd,function(d){if(d==="%%")return"%";if(t>=f)return d;switch(d){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch{return"[Circular]"}default:return d}}),l=n[t];t<f;l=n[++t])er(l)||!it(l)?c+=" "+l:c+=" "+ke(l);return c}function ro(e,r){if(Ce(Wd.process))return function(){return ro(e,r).apply(this,arguments)};if(Er.noDeprecation===!0)return e;var t=!1;function n(){if(!t){if(Er.throwDeprecation)throw new Error(r);Er.traceDeprecation?console.trace(r):console.error(r),t=!0}return e.apply(this,arguments)}return n}var pr={},Xn;function ml(e){if(Ce(Xn)&&(Xn=Er.env.NODE_DEBUG||""),e=e.toUpperCase(),!pr[e])if(new RegExp("\\b"+e+"\\b","i").test(Xn)){var r=0;pr[e]=function(){var t=Or.apply(null,arguments);console.error("%s %d: %s",e,r,t)}}else pr[e]=function(){};return pr[e]}function ke(e,r){var t={seen:[],stylize:Jd};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),Pr(r)?t.showHidden=r:r&&oo(t,r),Ce(t.showHidden)&&(t.showHidden=!1),Ce(t.depth)&&(t.depth=2),Ce(t.colors)&&(t.colors=!1),Ce(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=zd),Sr(t,e,t.depth)}ke.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};ke.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function zd(e,r){var t=ke.styles[r];return t?"\x1B["+ke.colors[t][0]+"m"+e+"\x1B["+ke.colors[t][1]+"m":e}function Jd(e,r){return e}function Gd(e){var r={};return e.forEach(function(t,n){r[t]=!0}),r}function Sr(e,r,t){if(e.customInspect&&r&&Yt(r.inspect)&&r.inspect!==ke&&!(r.constructor&&r.constructor.prototype===r)){var n=r.inspect(t,e);return tr(n)||(n=Sr(e,n,t)),n}var f=Zd(e,r);if(f)return f;var c=Object.keys(r),l=Gd(c);if(e.showHidden&&(c=Object.getOwnPropertyNames(r)),Qt(r)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return ei(r);if(c.length===0){if(Yt(r)){var d=r.name?": "+r.name:"";return e.stylize("[Function"+d+"]","special")}if(Kt(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Cr(r))return e.stylize(Date.prototype.toString.call(r),"date");if(Qt(r))return ei(r)}var g="",s=!1,h=["{","}"];if(no(r)&&(s=!0,h=["[","]"]),Yt(r)){var i=r.name?": "+r.name:"";g=" [Function"+i+"]"}if(Kt(r)&&(g=" "+RegExp.prototype.toString.call(r)),Cr(r)&&(g=" "+Date.prototype.toUTCString.call(r)),Qt(r)&&(g=" "+ei(r)),c.length===0&&(!s||r.length==0))return h[0]+g+h[1];if(t<0)return Kt(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var u;return s?u=Kd(e,r,t,l,c):u=c.map(function(o){return zs(e,r,t,l,o,s)}),e.seen.pop(),Qd(u,g,h)}function Zd(e,r){if(Ce(r))return e.stylize("undefined","undefined");if(tr(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(io(r))return e.stylize(""+r,"number");if(Pr(r))return e.stylize(""+r,"boolean");if(er(r))return e.stylize("null","null")}function ei(e){return"["+Error.prototype.toString.call(e)+"]"}function Kd(e,r,t,n,f){for(var c=[],l=0,d=r.length;l<d;++l)Rl(r,String(l))?c.push(zs(e,r,t,n,String(l),!0)):c.push("");return f.forEach(function(g){g.match(/^\d+$/)||c.push(zs(e,r,t,n,g,!0))}),c}function zs(e,r,t,n,f,c){var l,d,g;if(g=Object.getOwnPropertyDescriptor(r,f)||{value:r[f]},g.get?g.set?d=e.stylize("[Getter/Setter]","special"):d=e.stylize("[Getter]","special"):g.set&&(d=e.stylize("[Setter]","special")),Rl(n,f)||(l="["+f+"]"),d||(e.seen.indexOf(g.value)<0?(er(t)?d=Sr(e,g.value,null):d=Sr(e,g.value,t-1),d.indexOf(`
3
3
  `)>-1&&(c?d=d.split(`
4
4
  `).map(function(s){return" "+s}).join(`
@@ -1,4 +1,4 @@
1
- import{n as m,r as c,l as f,m as d}from"./index-CHuiuTQy.js";import{n as u,c as b}from"./index-B2dkLiRb.js";import{o as h}from"./if-defined-CIrb8Dm-.js";import"./index-Dj0QTdt3.js";const v=m`
1
+ import{n as m,r as c,l as f,m as d}from"./index--0UsZF9G.js";import{n as u,c as b}from"./index-uPtowLYG.js";import{o as h}from"./if-defined-Dr097eDH.js";import"./index-4tzrFolB.js";const v=m`
2
2
  :host {
3
3
  position: relative;
4
4
  display: inline-block;
@@ -1,4 +1,4 @@
1
- import{j as l,r as p,k as h,l as b,m as y}from"./index-CHuiuTQy.js";import{n as r,c as f}from"./index-B2dkLiRb.js";import{o as v}from"./if-defined-CIrb8Dm-.js";const m=l`
1
+ import{j as l,r as p,k as h,l as b,m as y}from"./index--0UsZF9G.js";import{n as r,c as f}from"./index-uPtowLYG.js";import{o as v}from"./if-defined-Dr097eDH.js";const m=l`
2
2
  :host {
3
3
  position: relative;
4
4
  }
@@ -1,4 +1,4 @@
1
- import{j as l,r as b,k as p,l as h,m as v}from"./index-CHuiuTQy.js";import{n as r,c as f}from"./index-B2dkLiRb.js";const m=l`
1
+ import{j as l,r as b,k as p,l as h,m as v}from"./index--0UsZF9G.js";import{n as r,c as f}from"./index-uPtowLYG.js";const m=l`
2
2
  button {
3
3
  background-color: transparent;
4
4
  padding: ${({spacing:t})=>t[1]};
@@ -1,4 +1,4 @@
1
- import{j as p,r as d,l as f,m as c}from"./index-CHuiuTQy.js";import{n as m,c as h}from"./index-B2dkLiRb.js";const x=p`
1
+ import{j as p,r as d,l as f,m as c}from"./index--0UsZF9G.js";import{n as m,c as h}from"./index-uPtowLYG.js";const x=p`
2
2
  :host {
3
3
  position: relative;
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{w as d,p as h,s as f,i as g,j as w,l as b,m as y}from"./index-CHuiuTQy.js";import{r as m,c as v}from"./index-B2dkLiRb.js";const o=h({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),x={state:o,subscribe(t){return g(o,()=>t(o))},subscribeKey(t,e){return f(o,t,e)},showTooltip({message:t,triggerRect:e,variant:i}){o.open=!0,o.message=t,o.triggerRect=e,o.variant=i},hide(){o.open=!1,o.message="",o.triggerRect={width:0,height:0,top:0,left:0}}},s=d(x),$=w`
1
+ import{w as d,p as h,s as f,i as g,j as w,l as b,m as y}from"./index--0UsZF9G.js";import{r as m,c as v}from"./index-uPtowLYG.js";const o=h({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),x={state:o,subscribe(t){return g(o,()=>t(o))},subscribeKey(t,e){return f(o,t,e)},showTooltip({message:t,triggerRect:e,variant:i}){o.open=!0,o.message=t,o.triggerRect=e,o.variant=i},hide(){o.open=!1,o.message="",o.triggerRect={width:0,height:0,top:0,left:0}}},s=d(x),$=w`
2
2
  :host {
3
3
  pointer-events: none;
4
4
  }
@@ -1,4 +1,4 @@
1
- import{n as p,l as u,R as f,M as g,m as d}from"./index-CHuiuTQy.js";import{n as b,r as m,c as w}from"./index-B2dkLiRb.js";import{T as l}from"./index-CruU_JWG.js";const C={interpolate(r,e,t){if(r.length!==2||e.length!==2)throw new Error("inputRange and outputRange must be an array of length 2");const n=r[0]||0,i=r[1]||0,o=e[0]||0,s=e[1]||0;return t<n?o:t>i?s:(s-o)/(i-n)*(t-n)+o}},M=p`
1
+ import{n as p,l as u,R as f,M as g,m as d}from"./index--0UsZF9G.js";import{n as b,r as m,c as w}from"./index-uPtowLYG.js";import{T as l}from"./index-D3Kjyb0X.js";const C={interpolate(r,e,t){if(r.length!==2||e.length!==2)throw new Error("inputRange and outputRange must be an array of length 2");const n=r[0]||0,i=r[1]||0,o=e[0]||0,s=e[1]||0;return t<n?o:t>i?s:(s-o)/(i-n)*(t-n)+o}},M=p`
2
2
  :host {
3
3
  width: 100%;
4
4
  display: block;