@wormhole-foundation/wormhole-connect 1.0.0-beta.3-development → 1.0.0-beta.4-development

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 (152) hide show
  1. package/dist/assets/{ccip-YN27M9dL.js → ccip-Dn5z57Cx.js} +1 -1
  2. package/dist/assets/{evm-wKiUiV3-.js → evm-Ci-t-8ei.js} +4 -4
  3. package/dist/assets/{index-8fbGA94c.js → index-Da59NFoY.js} +1 -1
  4. package/dist/assets/{index-B9_Snb-C.js → index-DlyJ6Tua.js} +2 -2
  5. package/dist/assets/{index-BBy_QGBB.js → index-yInQCZK6.js} +1 -1
  6. package/dist/assets/{index.es-BY7lrdO_.js → index.es-DUffrgf3.js} +2 -2
  7. package/dist/main.js +115 -62
  8. package/dist/src/components/v2/Button.d.ts +1 -1
  9. package/dist/src/components/v2/Button.d.ts.map +1 -1
  10. package/dist/src/config/types.d.ts +17 -3
  11. package/dist/src/config/types.d.ts.map +1 -1
  12. package/dist/src/hooks/useTransactionHistory.d.ts +1 -1
  13. package/dist/src/hooks/useTransactionHistory.d.ts.map +1 -1
  14. package/dist/src/hooks/useTransactionHistoryMayan.d.ts.map +1 -1
  15. package/dist/src/hooks/useTransactionHistoryWHScan.d.ts.map +1 -1
  16. package/dist/src/icons/TxReadyForClaim.d.ts +2 -2
  17. package/dist/src/icons/TxReadyForClaim.d.ts.map +1 -1
  18. package/dist/src/utils/inProgressTxCache.d.ts +5 -0
  19. package/dist/src/utils/inProgressTxCache.d.ts.map +1 -0
  20. package/dist/src/utils/polling.d.ts +5 -0
  21. package/dist/src/utils/polling.d.ts.map +1 -0
  22. package/dist/src/utils/sdkv2.d.ts +3 -2
  23. package/dist/src/utils/sdkv2.d.ts.map +1 -1
  24. package/dist/src/views/v2/Bridge/ReviewTransaction/index.d.ts.map +1 -1
  25. package/dist/src/views/v2/Bridge/index.d.ts.map +1 -1
  26. package/dist/src/views/v2/Redeem/index.d.ts.map +1 -1
  27. package/dist/src/views/v2/TxHistory/Widget/Item.d.ts +8 -0
  28. package/dist/src/views/v2/TxHistory/Widget/Item.d.ts.map +1 -0
  29. package/dist/src/views/v2/TxHistory/Widget/index.d.ts +4 -0
  30. package/dist/src/views/v2/TxHistory/Widget/index.d.ts.map +1 -0
  31. package/dist/src/views/v2/TxHistory/index.d.ts.map +1 -1
  32. package/lib/{algorand-BZLSulqp.mjs → algorand-B9ai7AKk.mjs} +3 -3
  33. package/lib/{algorand-DIrI8hux.js → algorand-BZfir-Gt.js} +1 -1
  34. package/lib/{aptos-BXyptrTk.mjs → aptos-BiWZASIH.mjs} +3 -3
  35. package/lib/{aptos-B61S9Mku.js → aptos-CX7jOv1y.js} +1 -1
  36. package/lib/{aptos-poOCeL-e.js → aptos-D_w5IEUK.js} +2 -2
  37. package/lib/{aptos-ClFQX748.mjs → aptos-ZpPdNMHJ.mjs} +1 -1
  38. package/lib/{ccip-CROSeCCn.js → ccip-CLMQ2RsP.js} +1 -1
  39. package/lib/{ccip-BcLqF-ov.mjs → ccip-lVzudYcQ.mjs} +1 -1
  40. package/lib/{cosmos-D-fRtzTz.js → cosmos-6rjmrhY_.js} +1 -1
  41. package/lib/{cosmos-B7IowZE9.mjs → cosmos-B3YMB-qs.mjs} +6 -6
  42. package/lib/{cosmwasm-BU28GqyN.js → cosmwasm-DMVssDjU.js} +2 -2
  43. package/lib/{cosmwasm-i8-2LBd4.mjs → cosmwasm-SnVdtN68.mjs} +7 -7
  44. package/lib/{events-BIfEV615.mjs → events-pgsgrP1S.mjs} +1 -1
  45. package/lib/{events-CG085uVS.js → events-t6i_QSEn.js} +1 -1
  46. package/lib/{evm-BG4p6wWc.mjs → evm-Bd3DzKCY.mjs} +7 -7
  47. package/lib/{evm-DSo1klm4.js → evm-D7GRIPdg.js} +4 -4
  48. package/lib/{evm-z72BQwjo.js → evm-DFJuxSg1.js} +1 -1
  49. package/lib/{evm-DqVh4NBz.mjs → evm-DiQodX72.mjs} +5 -5
  50. package/lib/{index-BrFyHtHO.js → index-048e7Uvl.js} +1 -1
  51. package/lib/{index-Bn9MsO0e.mjs → index-0QJFchou.mjs} +2 -2
  52. package/lib/{index-DjSK9SdK.mjs → index-0YCaekiF.mjs} +2 -2
  53. package/lib/{index-GyFHGs5Z.js → index-2LZtNZ5P.js} +1 -1
  54. package/lib/{index-C1XMdJFH.js → index-B2aC_g_3.js} +1 -1
  55. package/lib/{index-Cf-xLfst.js → index-B5TmFc4M.js} +1 -1
  56. package/lib/{index-l3VuXtv4.mjs → index-B64jLBfI.mjs} +2 -2
  57. package/lib/{index-CkrE6mmF.js → index-BAqClXT6.js} +1 -1
  58. package/lib/{index--orPBbEs.mjs → index-BT7_dDgl.mjs} +3 -3
  59. package/lib/{index-DTj0BYI6.mjs → index-BYv5Tbwe.mjs} +1 -1
  60. package/lib/{index-ByG9EJHX.js → index-BZ7LatAr.js} +137 -84
  61. package/lib/{index-BhfoV5RZ.js → index-B_FxM4qi.js} +1 -1
  62. package/lib/{index-B3uNul6-.mjs → index-BcbPoWss.mjs} +3 -3
  63. package/lib/{index-C262JAz4.mjs → index-Bd6ExIDW.mjs} +4 -4
  64. package/lib/{index-C2ZrCXVv.mjs → index-BhrO8yNx.mjs} +2 -2
  65. package/lib/{index--kQS0wX-.js → index-BjpzXqrL.js} +1 -1
  66. package/lib/{index-2u6Q9y32.js → index-BkyCouQJ.js} +1 -1
  67. package/lib/{index-DGI2tbSC.mjs → index-C4NKqUWK.mjs} +1 -1
  68. package/lib/{index-3CEBQmCn.mjs → index-C9xfXphF.mjs} +2 -2
  69. package/lib/{index-CdnXAZl6.js → index-CE4mRmPN.js} +1 -1
  70. package/lib/{index-CJJaUncM.js → index-CFVJznfe.js} +1 -1
  71. package/lib/{index-Coqx-ZYc.js → index-C_JBf5AE.js} +1 -1
  72. package/lib/{index-9Ifk_2V6.js → index-CcKxlhe-.js} +1 -1
  73. package/lib/{index-C3Ztf7te.mjs → index-CdFX-OBR.mjs} +4 -4
  74. package/lib/{index-BUcxdUpo.mjs → index-CkyGUP8I.mjs} +2 -2
  75. package/lib/{index-eY_q88kc.js → index-Cl110Yt1.js} +1 -1
  76. package/lib/{index-C8UyzBg3.mjs → index-CpM8O4af.mjs} +4 -4
  77. package/lib/{index-CytdQ1id.js → index-CvRFH7pa.js} +1 -1
  78. package/lib/{index-DkmEXbbA.js → index-D4-zCm-j.js} +1 -1
  79. package/lib/{index-B-bMfv9J.mjs → index-DG5KwGj7.mjs} +3 -3
  80. package/lib/{index-Cfu2mlWW.mjs → index-DJgWkkqj.mjs} +2 -2
  81. package/lib/{index-xrevpHY6.js → index-DLXjX60f.js} +1 -1
  82. package/lib/{index-B51snNHX.mjs → index-DPq8nS1b.mjs} +1 -1
  83. package/lib/{index-DTtBAHqC.mjs → index-DUn9bDrk.mjs} +2 -2
  84. package/lib/{index-C8tIBuyM.mjs → index-DVnPDtFx.mjs} +1 -1
  85. package/lib/{index-DEfagu36.js → index-DWmEAYa2.js} +1 -1
  86. package/lib/{index-DTLOaiZ5.mjs → index-DZbeM9gY.mjs} +2 -2
  87. package/lib/{index-CLiemfL3.js → index-Dk2OkATw.js} +1 -1
  88. package/lib/{index-x3yNXPc-.js → index-DllSkb9h.js} +1 -1
  89. package/lib/{index-CQ_e_FtW.js → index-EPcXyhD3.js} +1 -1
  90. package/lib/{index-BDhzG0Bz.mjs → index-EhUlCH18.mjs} +5312 -4798
  91. package/lib/{index-CYfEuKEC.js → index-QqzqKjF9.js} +1 -1
  92. package/lib/{index-D1GFc9u_.js → index-VI9qDjx0.js} +1 -1
  93. package/lib/{index-C1t8_dYP.mjs → index-bpVbPzFG.mjs} +1 -1
  94. package/lib/{index-BM3TrHYu.mjs → index-fD6yeQDw.mjs} +7 -7
  95. package/lib/{index-C1fq1xT0.mjs → index-fPs98C_X.mjs} +2 -2
  96. package/lib/{index-Xxsx46yX.mjs → index-hiGmsL0b.mjs} +1 -1
  97. package/lib/{index-CGmv-GLf.js → index-mAuqp4GD.js} +1 -1
  98. package/lib/{index.es-zlUSra_a.mjs → index.es-B4wQLKJO.mjs} +5 -5
  99. package/lib/{index.es-CTYy3A6V.js → index.es-WCp4WrVw.js} +2 -2
  100. package/lib/index.js +1 -1
  101. package/lib/index.mjs +1 -1
  102. package/lib/{libsodium-wrappers-_Sv3nUjE.js → libsodium-wrappers-BdZeVEOK.js} +1 -1
  103. package/lib/{libsodium-wrappers-BL6m46dv.mjs → libsodium-wrappers-DnY3rBzj.mjs} +1 -1
  104. package/lib/{pako.esm-CEjOh_1P.js → pako.esm-CpOVp0Fg.js} +1 -1
  105. package/lib/{pako.esm-Bf33_673.mjs → pako.esm-doGHPq3v.mjs} +3 -3
  106. package/lib/{pbkdf2-C3vdgkb4.mjs → pbkdf2-CR1mMO6P.mjs} +1 -1
  107. package/lib/{pbkdf2-BJ3CFykt.js → pbkdf2-DRrUaAek.js} +1 -1
  108. package/lib/{sei-LGYYUG8M.js → sei-BHskcl2R.js} +1 -1
  109. package/lib/{sei-BXWrZef6.mjs → sei-ReMraEM4.mjs} +4 -4
  110. package/lib/{signer-DaJj3hCp.mjs → signer-BwkEV8NR.mjs} +1 -1
  111. package/lib/{signer-BQ4T60Nz.js → signer-C5udfQih.js} +1 -1
  112. package/lib/{solana-AQlZomQ6.js → solana-BWRzXH9-.js} +1 -1
  113. package/lib/solana-ci1dqiv5.mjs +16 -0
  114. package/lib/solana-gFEm46ZS.js +1 -0
  115. package/lib/{solana-Cl4jwD2F.mjs → solana-kr2Et-_M.mjs} +4 -4
  116. package/lib/{solanaEmbed.esm-B_5axZif.js → solanaEmbed.esm-8hegnauD.js} +1 -1
  117. package/lib/{solanaEmbed.esm-DEMxZG02.mjs → solanaEmbed.esm-HLygiesN.mjs} +4 -4
  118. package/lib/src/components/v2/Button.d.ts +1 -1
  119. package/lib/src/components/v2/Button.d.ts.map +1 -1
  120. package/lib/src/config/types.d.ts +17 -3
  121. package/lib/src/config/types.d.ts.map +1 -1
  122. package/lib/src/hooks/useTransactionHistory.d.ts +1 -1
  123. package/lib/src/hooks/useTransactionHistory.d.ts.map +1 -1
  124. package/lib/src/hooks/useTransactionHistoryMayan.d.ts.map +1 -1
  125. package/lib/src/hooks/useTransactionHistoryWHScan.d.ts.map +1 -1
  126. package/lib/src/icons/TxReadyForClaim.d.ts +2 -2
  127. package/lib/src/icons/TxReadyForClaim.d.ts.map +1 -1
  128. package/lib/src/utils/inProgressTxCache.d.ts +5 -0
  129. package/lib/src/utils/inProgressTxCache.d.ts.map +1 -0
  130. package/lib/src/utils/polling.d.ts +5 -0
  131. package/lib/src/utils/polling.d.ts.map +1 -0
  132. package/lib/src/utils/sdkv2.d.ts +3 -2
  133. package/lib/src/utils/sdkv2.d.ts.map +1 -1
  134. package/lib/src/views/v2/Bridge/ReviewTransaction/index.d.ts.map +1 -1
  135. package/lib/src/views/v2/Bridge/index.d.ts.map +1 -1
  136. package/lib/src/views/v2/Redeem/index.d.ts.map +1 -1
  137. package/lib/src/views/v2/TxHistory/Widget/Item.d.ts +8 -0
  138. package/lib/src/views/v2/TxHistory/Widget/Item.d.ts.map +1 -0
  139. package/lib/src/views/v2/TxHistory/Widget/index.d.ts +4 -0
  140. package/lib/src/views/v2/TxHistory/Widget/index.d.ts.map +1 -0
  141. package/lib/src/views/v2/TxHistory/index.d.ts.map +1 -1
  142. package/lib/{sui-DfdFzATl.mjs → sui-B6XCpe1d.mjs} +1 -1
  143. package/lib/{sui-IAt2YxVB.js → sui-BWRqoTdl.js} +2 -2
  144. package/lib/{sui-tX-807Bw.js → sui-BocrppL0.js} +1 -1
  145. package/lib/{sui-BpKCqOiX.mjs → sui-BuZPAcI0.mjs} +4 -4
  146. package/lib/{unsignedTransaction-BzNQ2WFS.js → unsignedTransaction-DSuqsGgb.js} +1 -1
  147. package/lib/{unsignedTransaction-B1rzGa0o.mjs → unsignedTransaction-oXk8lD5s.mjs} +2 -2
  148. package/lib/{utils-DZZcQv7V.js → utils-SML27G4C.js} +1 -1
  149. package/lib/{utils-Xa6ErDQY.mjs → utils-fI-uXUZk.mjs} +2 -2
  150. package/package.json +1 -1
  151. package/lib/solana-6EZacoKb.js +0 -1
  152. package/lib/solana-CbB3tRah.mjs +0 -16
@@ -1 +1 @@
1
- "use strict";var m=Object.defineProperty;var u=(d,e,t)=>e in d?m(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t;var i=(d,e,t)=>u(d,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./cosmwasm-BU28GqyN.js"),c=require("./index-ByG9EJHX.js");class o{constructor(e,t,s,r){i(this,"network");i(this,"chain");i(this,"rpc");i(this,"contracts");i(this,"coreAddress");this.network=e,this.chain=t,this.rpc=s,this.contracts=r;const n=this.contracts.coreBridge;if(!n)throw new Error(`Wormhole Token Bridge contract for domain ${t} not found`);this.coreAddress=n}getGuardianSet(e){throw new Error("Method not implemented.")}getGuardianSetIndex(){throw new Error("Method not implemented.")}getMessageFee(){throw new Error("Method not implemented.")}static async fromRpc(e,t){const[s,r]=await w.CosmwasmPlatform.chainFromRpc(e),n=t[r];if(n.network!==s)throw new Error(`Network mismatch: ${n.network} != ${s}`);return new o(s,r,e,n.contracts)}async*publishMessage(e,t,s,r){throw new Error("Method not implemented.")}async*verifyMessage(e,t){throw new Error("Not implemented.")}async parseTransaction(e){const t=await this.rpc.getTx(e);if(!t)throw new Error("No transaction found for txid: "+e);return[o.parseWormholeMessageId(this.chain,this.coreAddress,t)]}async parseMessages(e){const t=await this.rpc.getTx(e);if(!t)throw new Error("No transaction found for txid: "+e);return[o.parseWormholeMessage(this.chain,this.coreAddress,t)]}static parseWormholeMessage(e,t,s){const r=s.events.filter(a=>a.type==="wasm"&&a.attributes[0].key==="_contract_address"&&a.attributes[0].value===t);if(r.length===0)throw new Error("No wormhole message found in tx");r.length>1&&console.error(`Expected single message, found ${r.length}`);const[n]=r,h=Object.fromEntries(n.attributes.map(a=>[a.key.split(".")[1],a.value]));return c.createVAA("Uint8Array",{emitterChain:e,emitterAddress:new c.UniversalAddress(c.hex.decode(h.sender)),sequence:BigInt(h.sequence),guardianSet:0,timestamp:Number(h.block_time),consistencyLevel:0,nonce:Number(h.nonce),signatures:[],payload:c.hex.decode(h.message)})}static parseWormholeMessageId(e,t,s){const r=o.parseWormholeMessage(e,t,s);return{chain:r.emitterChain,emitter:r.emitterAddress,sequence:r.sequence}}}c.registerProtocol(c._platform$3,"WormholeCore",o);exports.CosmwasmWormholeCore=o;
1
+ "use strict";var m=Object.defineProperty;var u=(d,e,t)=>e in d?m(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t;var i=(d,e,t)=>u(d,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./cosmwasm-DMVssDjU.js"),c=require("./index-BZ7LatAr.js");class o{constructor(e,t,s,r){i(this,"network");i(this,"chain");i(this,"rpc");i(this,"contracts");i(this,"coreAddress");this.network=e,this.chain=t,this.rpc=s,this.contracts=r;const n=this.contracts.coreBridge;if(!n)throw new Error(`Wormhole Token Bridge contract for domain ${t} not found`);this.coreAddress=n}getGuardianSet(e){throw new Error("Method not implemented.")}getGuardianSetIndex(){throw new Error("Method not implemented.")}getMessageFee(){throw new Error("Method not implemented.")}static async fromRpc(e,t){const[s,r]=await w.CosmwasmPlatform.chainFromRpc(e),n=t[r];if(n.network!==s)throw new Error(`Network mismatch: ${n.network} != ${s}`);return new o(s,r,e,n.contracts)}async*publishMessage(e,t,s,r){throw new Error("Method not implemented.")}async*verifyMessage(e,t){throw new Error("Not implemented.")}async parseTransaction(e){const t=await this.rpc.getTx(e);if(!t)throw new Error("No transaction found for txid: "+e);return[o.parseWormholeMessageId(this.chain,this.coreAddress,t)]}async parseMessages(e){const t=await this.rpc.getTx(e);if(!t)throw new Error("No transaction found for txid: "+e);return[o.parseWormholeMessage(this.chain,this.coreAddress,t)]}static parseWormholeMessage(e,t,s){const r=s.events.filter(a=>a.type==="wasm"&&a.attributes[0].key==="_contract_address"&&a.attributes[0].value===t);if(r.length===0)throw new Error("No wormhole message found in tx");r.length>1&&console.error(`Expected single message, found ${r.length}`);const[n]=r,h=Object.fromEntries(n.attributes.map(a=>[a.key.split(".")[1],a.value]));return c.createVAA("Uint8Array",{emitterChain:e,emitterAddress:new c.UniversalAddress(c.hex.decode(h.sender)),sequence:BigInt(h.sequence),guardianSet:0,timestamp:Number(h.block_time),consistencyLevel:0,nonce:Number(h.nonce),signatures:[],payload:c.hex.decode(h.message)})}static parseWormholeMessageId(e,t,s){const r=o.parseWormholeMessage(e,t,s);return{chain:r.emitterChain,emitter:r.emitterAddress,sequence:r.sequence}}}c.registerProtocol(c._platform$3,"WormholeCore",o);exports.CosmwasmWormholeCore=o;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Z=require("./index-ByG9EJHX.js"),Bl=require("./dijkstra-CtFxn7S9.js"),Vt=require("./events-CG085uVS.js"),$=require("./index-eY_q88kc.js"),K=require("./index-DEfagu36.js");let kl=class extends $.r{constructor(e){super(e),this.events=new Vt.eventsExports.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}off(e,r){this.events.off(e,r)}removeListener(e,r){this.events.removeListener(e,r)}async request(e,r){return this.requestStrict($.formatJsonRpcRequest(e.method,e.params||[],e.id||$.getBigIntRpcId().toString()),r)}async requestStrict(e,r){return new Promise(async(i,n)=>{if(!this.connection.connected)try{await this.open()}catch(s){n(s)}this.events.on(`${e.id}`,s=>{$.isJsonRpcError(s)?n(s.error):i(s.result)});try{await this.connection.send(e,r)}catch(s){n(s)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),$.isJsonRpcResponse(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&e.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),typeof e=="string"&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}};var Dl=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,r=[],i=0;i<t.rangeCount;i++)r.push(t.getRangeAt(i));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(function(n){t.addRange(n)}),e&&e.focus()}},Ul=Dl,Po={"text/plain":"Text","text/html":"Url",default:"Text"},Ll="Copy to clipboard: #{key}, Enter";function ql(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}function $l(t,e){var r,i,n,s,o,a,h=!1;e||(e={}),r=e.debug||!1;try{n=Ul(),s=document.createRange(),o=document.getSelection(),a=document.createElement("span"),a.textContent=t,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(p){if(p.stopPropagation(),e.format)if(p.preventDefault(),typeof p.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=Po[e.format]||Po.default;window.clipboardData.setData(y,t)}else p.clipboardData.clearData(),p.clipboardData.setData(e.format,t);e.onCopy&&(p.preventDefault(),e.onCopy(p.clipboardData))}),document.body.appendChild(a),s.selectNodeContents(a),o.addRange(s);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");h=!0}catch(p){r&&console.error("unable to copy using execCommand: ",p),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),h=!0}catch(y){r&&console.error("unable to copy using clipboardData: ",y),r&&console.error("falling back to prompt"),i=ql("message"in e?e.message:Ll),window.prompt(i,t)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(s):o.removeAllRanges()),a&&document.body.removeChild(a),n()}return h}var zl=$l,jl={}.toString,Zs=Array.isArray||function(t){return jl.call(t)=="[object Array]"},Kl=Z.requireElliptic(),eo={},ze={};Object.defineProperty(ze,"__esModule",{value:!0});var Oc=ze.getLocalStorage=Hc=ze.getLocalStorageOrThrow=Kc=ze.getCrypto=jc=ze.getCryptoOrThrow=zc=ze.getLocation=$c=ze.getLocationOrThrow=qc=ze.getNavigator=Lc=ze.getNavigatorOrThrow=Uc=ze.getDocument=Dc=ze.getDocumentOrThrow=kc=ze.getFromWindowOrThrow=Bc=ze.getFromWindow=void 0;function Ur(t){let e;return typeof window<"u"&&typeof window[t]<"u"&&(e=window[t]),e}var Bc=ze.getFromWindow=Ur;function si(t){const e=Ur(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}var kc=ze.getFromWindowOrThrow=si;function Hl(){return si("document")}var Dc=ze.getDocumentOrThrow=Hl;function Vl(){return Ur("document")}var Uc=ze.getDocument=Vl;function Jl(){return si("navigator")}var Lc=ze.getNavigatorOrThrow=Jl;function Wl(){return Ur("navigator")}var qc=ze.getNavigator=Wl;function Gl(){return si("location")}var $c=ze.getLocationOrThrow=Gl;function Ql(){return Ur("location")}var zc=ze.getLocation=Ql;function Yl(){return si("crypto")}var jc=ze.getCryptoOrThrow=Yl;function Xl(){return Ur("crypto")}var Kc=ze.getCrypto=Xl;function Zl(){return si("localStorage")}var Hc=ze.getLocalStorageOrThrow=Zl;function ef(){return Ur("localStorage")}Oc=ze.getLocalStorage=ef;Object.defineProperty(eo,"__esModule",{value:!0});var Vc=eo.getWindowMetadata=void 0;const To=ze;function tf(){let t,e;try{t=To.getDocumentOrThrow(),e=To.getLocationOrThrow()}catch{return null}function r(){const y=t.getElementsByTagName("link"),C=[];for(let E=0;E<y.length;E++){const v=y[E],k=v.getAttribute("rel");if(k&&k.toLowerCase().indexOf("icon")>-1){const B=v.getAttribute("href");if(B)if(B.toLowerCase().indexOf("https:")===-1&&B.toLowerCase().indexOf("http:")===-1&&B.indexOf("//")!==0){let U=e.protocol+"//"+e.host;if(B.indexOf("/")===0)U+=B;else{const A=e.pathname.split("/");A.pop();const F=A.join("/");U+=F+"/"+B}C.push(U)}else if(B.indexOf("//")===0){const U=e.protocol+B;C.push(U)}else C.push(B)}}return C}function i(...y){const C=t.getElementsByTagName("meta");for(let E=0;E<C.length;E++){const v=C[E],k=["itemprop","property","name"].map(B=>v.getAttribute(B)).filter(B=>B?y.includes(B):!1);if(k.length&&k){const B=v.getAttribute("content");if(B)return B}}return""}function n(){let y=i("name","og:site_name","og:title","twitter:title");return y||(y=t.title),y}function s(){return i("description","og:description","twitter:description","keywords")}const o=n(),a=s(),h=e.origin,d=r();return{description:a,url:h,icons:d,name:o}}Vc=eo.getWindowMetadata=tf;var rf=function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var i=Array(t),n=0,e=0;e<r;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,n++)i[n]=s[o];return i},nf=function(){function t(e,r,i){this.name=e,this.version=r,this.os=i,this.type="browser"}return t}(),sf=function(){function t(e){this.version=e,this.type="node",this.name="node",this.os=Z.dist.process.platform}return t}(),of=function(){function t(e,r,i,n){this.name=e,this.version=r,this.os=i,this.bot=n,this.type="bot-device"}return t}(),af=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),cf=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),hf=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,uf=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Oo=3,lf=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",hf]],Bo=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function ff(t){return t?ko(t):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new cf:typeof navigator<"u"?ko(navigator.userAgent):gf()}function df(t){return t!==""&&lf.reduce(function(e,r){var i=r[0],n=r[1];if(e)return e;var s=n.exec(t);return!!s&&[i,s]},!1)}function ko(t){var e=df(t);if(!e)return null;var r=e[0],i=e[1];if(r==="searchbot")return new af;var n=i[1]&&i[1].split(/[._]/).slice(0,3);n?n.length<Oo&&(n=rf(n,mf(Oo-n.length))):n=[];var s=n.join("."),o=pf(t),a=uf.exec(t);return a&&a[1]?new of(r,s,o,a[1]):new nf(r,s,o)}function pf(t){for(var e=0,r=Bo.length;e<r;e++){var i=Bo[e],n=i[0],s=i[1],o=s.exec(t);if(o)return n}return null}function gf(){var t=typeof Z.dist.process<"u"&&Z.dist.process.version;return t?new sf(Z.dist.process.version.slice(1)):null}function mf(t){for(var e=[],r=0;r<t;r++)e.push("0");return e}function to(t){return ff(t)}function En(){const t=to();return t&&t.os?t.os:void 0}function Jc(){const t=En();return t?t.toLowerCase().includes("android"):!1}function Wc(){const t=En();return t?t.toLowerCase().includes("ios")||t.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function yf(){return En()?Jc()||Wc():!1}function Gc(){const t=to();return t&&t.name?t.name.toLowerCase()==="node":!1}function wf(){return!Gc()&&!!Qc()}const vf=Bc,bf=kc,_f=Dc,Af=Uc,Ef=Lc,Qc=qc,Sf=$c,If=zc,Mf=jc,Nf=Kc,xf=Hc,Sn=Oc;function Cf(){return Vc()}function Ff(t){if(typeof t!="string")throw new Error(`Cannot safe json parse value of type ${typeof t}`);try{return JSON.parse(t)}catch{return t}}function Rf(t){return typeof t=="string"?t:JSON.stringify(t)}const Yc=Ff,Xc=Rf;function Zc(t,e){const r=Xc(e),i=Sn();i&&i.setItem(t,r)}function Pf(t){let e=null,r=null;const i=Sn();return i&&(r=i.getItem(t)),e=r&&Yc(r),e}function Tf(t){const e=Sn();e&&e.removeItem(t)}const eh="WALLETCONNECT_DEEPLINK_CHOICE";function Of(t,e){const r=encodeURIComponent(t);return e.universalLink?`${e.universalLink}/wc?uri=${r}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${r}`:""}function Bf(t){const e=t.href.split("?")[0];Zc(eh,Object.assign(Object.assign({},t),{href:e}))}function th(t,e){return t.filter(r=>r.name.toLowerCase().includes(e.toLowerCase()))[0]}function kf(t,e){let r=t;return e&&(r=e.map(i=>th(t,i)).filter(Boolean)),r}const rh="https://registry.walletconnect.com";function Df(){return rh+"/api/v2/wallets"}function Uf(){return rh+"/api/v2/dapps"}function ih(t,e="mobile"){var r;return{name:t.name||"",shortName:t.metadata.shortName||"",color:t.metadata.colors.primary||"",logo:(r=t.image_url.sm)!==null&&r!==void 0?r:"",universalLink:t[e].universal||"",deepLink:t[e].native||""}}function Lf(t,e="mobile"){return Object.values(t).filter(r=>!!r[e].universal||!!r[e].native).map(r=>ih(r,e))}const qf=Object.freeze(Object.defineProperty({__proto__:null,detectEnv:to,detectOS:En,formatIOSMobile:Of,formatMobileRegistry:Lf,formatMobileRegistryEntry:ih,getClientMeta:Cf,getCrypto:Nf,getCryptoOrThrow:Mf,getDappRegistryUrl:Uf,getDocument:Af,getDocumentOrThrow:_f,getFromWindow:vf,getFromWindowOrThrow:bf,getLocal:Pf,getLocalStorage:Sn,getLocalStorageOrThrow:xf,getLocation:If,getLocationOrThrow:Sf,getMobileLinkRegistry:kf,getMobileRegistryEntry:th,getNavigator:Qc,getNavigatorOrThrow:Ef,getWalletRegistryUrl:Df,isAndroid:Jc,isBrowser:wf,isIOS:Wc,isMobile:yf,isNode:Gc,mobileLinkChoiceKey:eh,removeLocal:Tf,safeJsonParse:Yc,safeJsonStringify:Xc,saveMobileLinkInfo:Bf,setLocal:Zc},Symbol.toStringTag,{value:"Module"})),$f=Z.getAugmentedNamespace(qf);var Oi={},zf=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},nh={},Fr={},jf=Zs;function Kf(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},t.foo()===42}catch{return!1}}Pe.TYPED_ARRAY_SUPPORT=Kf();var Do=Pe.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function Pe(t,e,r){return!Pe.TYPED_ARRAY_SUPPORT&&!(this instanceof Pe)?new Pe(t,e,r):typeof t=="number"?sh(this,t):Yf(this,t,e,r)}Pe.TYPED_ARRAY_SUPPORT&&(Pe.prototype.__proto__=Uint8Array.prototype,Pe.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&Pe[Symbol.species]===Pe&&Object.defineProperty(Pe,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function ro(t){if(t>=Do)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Do.toString(16)+" bytes");return t|0}function Hf(t){return t!==t}function Yr(t,e){var r;return Pe.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(e),r.__proto__=Pe.prototype):(r=t,r===null&&(r=new Pe(e)),r.length=e),r}function sh(t,e){var r=Yr(t,e<0?0:ro(e)|0);if(!Pe.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)r[i]=0;return r}function Vf(t,e){var r=ah(e)|0,i=Yr(t,r),n=i.write(e);return n!==r&&(i=i.slice(0,n)),i}function Ms(t,e){for(var r=e.length<0?0:ro(e.length)|0,i=Yr(t,r),n=0;n<r;n+=1)i[n]=e[n]&255;return i}function Jf(t,e,r,i){if(r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(i||0))throw new RangeError("'length' is out of bounds");var n;return r===void 0&&i===void 0?n=new Uint8Array(e):i===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,i),Pe.TYPED_ARRAY_SUPPORT?n.__proto__=Pe.prototype:n=Ms(t,n),n}function Wf(t,e){if(Pe.isBuffer(e)){var r=ro(e.length)|0,i=Yr(t,r);return i.length===0||e.copy(i,0,0,r),i}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||Hf(e.length)?Yr(t,0):Ms(t,e);if(e.type==="Buffer"&&Array.isArray(e.data))return Ms(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function oh(t,e){e=e||1/0;for(var r,i=t.length,n=null,s=[],o=0;o<i;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(o+1===i){(e-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return s}function ah(t){if(Pe.isBuffer(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var e=t.length;return e===0?0:oh(t).length}function Gf(t,e,r,i){for(var n=0;n<i&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}function Qf(t,e,r,i){return Gf(oh(e,t.length-r),t,r,i)}function Yf(t,e,r,i){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?Jf(t,e,r,i):typeof e=="string"?Vf(t,e):Wf(t,e)}Pe.prototype.write=function(e,r,i){r===void 0?(i=this.length,r=0):i===void 0&&typeof r=="string"?(i=this.length,r=0):isFinite(r)&&(r=r|0,isFinite(i)?i=i|0:i=void 0);var n=this.length-r;if((i===void 0||i>n)&&(i=n),e.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");return Qf(this,e,r,i)};Pe.prototype.slice=function(e,r){var i=this.length;e=~~e,r=r===void 0?i:~~r,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<e&&(r=e);var n;if(Pe.TYPED_ARRAY_SUPPORT)n=this.subarray(e,r),n.__proto__=Pe.prototype;else{var s=r-e;n=new Pe(s,void 0);for(var o=0;o<s;++o)n[o]=this[o+e]}return n};Pe.prototype.copy=function(e,r,i,n){if(i||(i=0),!n&&n!==0&&(n=this.length),r>=e.length&&(r=e.length),r||(r=0),n>0&&n<i&&(n=i),n===i||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-r<n-i&&(n=e.length-r+i);var s=n-i,o;if(this===e&&i<r&&r<n)for(o=s-1;o>=0;--o)e[o+r]=this[o+i];else if(s<1e3||!Pe.TYPED_ARRAY_SUPPORT)for(o=0;o<s;++o)e[o+r]=this[o+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+s),r);return s};Pe.prototype.fill=function(e,r,i){if(typeof e=="string"){if(typeof r=="string"?(r=0,i=this.length):typeof i=="string"&&(i=this.length),e.length===1){var n=e.charCodeAt(0);n<256&&(e=n)}}else typeof e=="number"&&(e=e&255);if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);var s;if(typeof e=="number")for(s=r;s<i;++s)this[s]=e;else{var o=Pe.isBuffer(e)?e:new Pe(e),a=o.length;for(s=0;s<i-r;++s)this[s+r]=o[s%a]}return this};Pe.concat=function(e,r){if(!jf(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Yr(null,0);var i;if(r===void 0)for(r=0,i=0;i<e.length;++i)r+=e[i].length;var n=sh(null,r),s=0;for(i=0;i<e.length;++i){var o=e[i];if(!Pe.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,s),s+=o.length}return n};Pe.byteLength=ah;Pe.prototype._isBuffer=!0;Pe.isBuffer=function(e){return!!(e!=null&&e._isBuffer)};Fr.alloc=function(t){var e=new Pe(t);return e.fill(0),e};Fr.from=function(t){return new Pe(t)};var Pt={},io,Xf=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Pt.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};Pt.getSymbolTotalCodewords=function(e){return Xf[e]};Pt.getBCHDigit=function(t){for(var e=0;t!==0;)e++,t>>>=1;return e};Pt.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');io=e};Pt.isKanjiModeEnabled=function(){return typeof io<"u"};Pt.toSJIS=function(e){return io(e)};var In={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(r){if(typeof r!="string")throw new Error("Param is not a string");var i=r.toLowerCase();switch(i){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+r)}}t.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},t.from=function(i,n){if(t.isValid(i))return i;try{return e(i)}catch{return n}}})(In);function ch(){this.buffer=[],this.length=0}ch.prototype={get:function(t){var e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(var r=0;r<e;r++)this.putBit((t>>>e-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var Zf=ch,Uo=Fr;function Bi(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=Uo.alloc(t*t),this.reservedBit=Uo.alloc(t*t)}Bi.prototype.set=function(t,e,r,i){var n=t*this.size+e;this.data[n]=r,i&&(this.reservedBit[n]=!0)};Bi.prototype.get=function(t,e){return this.data[t*this.size+e]};Bi.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};Bi.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var ed=Bi,hh={};(function(t){var e=Pt.getSymbolSize;t.getRowColCoords=function(i){if(i===1)return[];for(var n=Math.floor(i/7)+2,s=e(i),o=s===145?26:Math.ceil((s-13)/(2*n-2))*2,a=[s-7],h=1;h<n-1;h++)a[h]=a[h-1]-o;return a.push(6),a.reverse()},t.getPositions=function(i){for(var n=[],s=t.getRowColCoords(i),o=s.length,a=0;a<o;a++)for(var h=0;h<o;h++)a===0&&h===0||a===0&&h===o-1||a===o-1&&h===0||n.push([s[a],s[h]]);return n}})(hh);var uh={},td=Pt.getSymbolSize,Lo=7;uh.getPositions=function(e){var r=td(e);return[[0,0],[r-Lo,0],[0,r-Lo]]};var lh={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},t.from=function(n){return t.isValid(n)?parseInt(n,10):void 0},t.getPenaltyN1=function(n){for(var s=n.size,o=0,a=0,h=0,d=null,p=null,y=0;y<s;y++){a=h=0,d=p=null;for(var C=0;C<s;C++){var E=n.get(y,C);E===d?a++:(a>=5&&(o+=e.N1+(a-5)),d=E,a=1),E=n.get(C,y),E===p?h++:(h>=5&&(o+=e.N1+(h-5)),p=E,h=1)}a>=5&&(o+=e.N1+(a-5)),h>=5&&(o+=e.N1+(h-5))}return o},t.getPenaltyN2=function(n){for(var s=n.size,o=0,a=0;a<s-1;a++)for(var h=0;h<s-1;h++){var d=n.get(a,h)+n.get(a,h+1)+n.get(a+1,h)+n.get(a+1,h+1);(d===4||d===0)&&o++}return o*e.N2},t.getPenaltyN3=function(n){for(var s=n.size,o=0,a=0,h=0,d=0;d<s;d++){a=h=0;for(var p=0;p<s;p++)a=a<<1&2047|n.get(d,p),p>=10&&(a===1488||a===93)&&o++,h=h<<1&2047|n.get(p,d),p>=10&&(h===1488||h===93)&&o++}return o*e.N3},t.getPenaltyN4=function(n){for(var s=0,o=n.data.length,a=0;a<o;a++)s+=n.data[a];var h=Math.abs(Math.ceil(s*100/o/5)-10);return h*e.N4};function r(i,n,s){switch(i){case t.Patterns.PATTERN000:return(n+s)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return s%3===0;case t.Patterns.PATTERN011:return(n+s)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(s/3))%2===0;case t.Patterns.PATTERN101:return n*s%2+n*s%3===0;case t.Patterns.PATTERN110:return(n*s%2+n*s%3)%2===0;case t.Patterns.PATTERN111:return(n*s%3+(n+s)%2)%2===0;default:throw new Error("bad maskPattern:"+i)}}t.applyMask=function(n,s){for(var o=s.size,a=0;a<o;a++)for(var h=0;h<o;h++)s.isReserved(h,a)||s.xor(h,a,r(n,h,a))},t.getBestMask=function(n,s){for(var o=Object.keys(t.Patterns).length,a=0,h=1/0,d=0;d<o;d++){s(d),t.applyMask(d,n);var p=t.getPenaltyN1(n)+t.getPenaltyN2(n)+t.getPenaltyN3(n)+t.getPenaltyN4(n);t.applyMask(d,n),p<h&&(h=p,a=d)}return a}})(lh);var Mn={},xr=In,Vi=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Ji=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Mn.getBlocksCount=function(e,r){switch(r){case xr.L:return Vi[(e-1)*4+0];case xr.M:return Vi[(e-1)*4+1];case xr.Q:return Vi[(e-1)*4+2];case xr.H:return Vi[(e-1)*4+3];default:return}};Mn.getTotalCodewordsCount=function(e,r){switch(r){case xr.L:return Ji[(e-1)*4+0];case xr.M:return Ji[(e-1)*4+1];case xr.Q:return Ji[(e-1)*4+2];case xr.H:return Ji[(e-1)*4+3];default:return}};var fh={},Nn={},dh=Fr,_i=dh.alloc(512),cn=dh.alloc(256);(function(){for(var e=1,r=0;r<255;r++)_i[r]=e,cn[e]=r,e<<=1,e&256&&(e^=285);for(r=255;r<512;r++)_i[r]=_i[r-255]})();Nn.log=function(e){if(e<1)throw new Error("log("+e+")");return cn[e]};Nn.exp=function(e){return _i[e]};Nn.mul=function(e,r){return e===0||r===0?0:_i[cn[e]+cn[r]]};(function(t){var e=Fr,r=Nn;t.mul=function(n,s){for(var o=e.alloc(n.length+s.length-1),a=0;a<n.length;a++)for(var h=0;h<s.length;h++)o[a+h]^=r.mul(n[a],s[h]);return o},t.mod=function(n,s){for(var o=e.from(n);o.length-s.length>=0;){for(var a=o[0],h=0;h<s.length;h++)o[h]^=r.mul(s[h],a);for(var d=0;d<o.length&&o[d]===0;)d++;o=o.slice(d)}return o},t.generateECPolynomial=function(n){for(var s=e.from([1]),o=0;o<n;o++)s=t.mul(s,[1,r.exp(o)]);return s}})(fh);var qo=Fr,ph=fh,rd=Z.bufferPolyfill.Buffer;function no(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}no.prototype.initialize=function(e){this.degree=e,this.genPoly=ph.generateECPolynomial(this.degree)};no.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var r=qo.alloc(this.degree),i=rd.concat([e,r],e.length+this.degree),n=ph.mod(i,this.genPoly),s=this.degree-n.length;if(s>0){var o=qo.alloc(this.degree);return n.copy(o,s),o}return n};var id=no,gh={},Rr={},so={};so.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var nr={},mh="[0-9]+",nd="[A-Z $%*+\\-./:]+",Ni="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ni=Ni.replace(/u/g,"\\u");var sd="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ni+`)(?:.|[\r
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Z=require("./index-BZ7LatAr.js"),Bl=require("./dijkstra-CtFxn7S9.js"),Vt=require("./events-t6i_QSEn.js"),$=require("./index-Cl110Yt1.js"),K=require("./index-DWmEAYa2.js");let kl=class extends $.r{constructor(e){super(e),this.events=new Vt.eventsExports.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}off(e,r){this.events.off(e,r)}removeListener(e,r){this.events.removeListener(e,r)}async request(e,r){return this.requestStrict($.formatJsonRpcRequest(e.method,e.params||[],e.id||$.getBigIntRpcId().toString()),r)}async requestStrict(e,r){return new Promise(async(i,n)=>{if(!this.connection.connected)try{await this.open()}catch(s){n(s)}this.events.on(`${e.id}`,s=>{$.isJsonRpcError(s)?n(s.error):i(s.result)});try{await this.connection.send(e,r)}catch(s){n(s)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),$.isJsonRpcResponse(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&e.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),typeof e=="string"&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}};var Dl=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,r=[],i=0;i<t.rangeCount;i++)r.push(t.getRangeAt(i));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(function(n){t.addRange(n)}),e&&e.focus()}},Ul=Dl,Po={"text/plain":"Text","text/html":"Url",default:"Text"},Ll="Copy to clipboard: #{key}, Enter";function ql(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}function $l(t,e){var r,i,n,s,o,a,h=!1;e||(e={}),r=e.debug||!1;try{n=Ul(),s=document.createRange(),o=document.getSelection(),a=document.createElement("span"),a.textContent=t,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(p){if(p.stopPropagation(),e.format)if(p.preventDefault(),typeof p.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=Po[e.format]||Po.default;window.clipboardData.setData(y,t)}else p.clipboardData.clearData(),p.clipboardData.setData(e.format,t);e.onCopy&&(p.preventDefault(),e.onCopy(p.clipboardData))}),document.body.appendChild(a),s.selectNodeContents(a),o.addRange(s);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");h=!0}catch(p){r&&console.error("unable to copy using execCommand: ",p),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),h=!0}catch(y){r&&console.error("unable to copy using clipboardData: ",y),r&&console.error("falling back to prompt"),i=ql("message"in e?e.message:Ll),window.prompt(i,t)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(s):o.removeAllRanges()),a&&document.body.removeChild(a),n()}return h}var zl=$l,jl={}.toString,Zs=Array.isArray||function(t){return jl.call(t)=="[object Array]"},Kl=Z.requireElliptic(),eo={},ze={};Object.defineProperty(ze,"__esModule",{value:!0});var Oc=ze.getLocalStorage=Hc=ze.getLocalStorageOrThrow=Kc=ze.getCrypto=jc=ze.getCryptoOrThrow=zc=ze.getLocation=$c=ze.getLocationOrThrow=qc=ze.getNavigator=Lc=ze.getNavigatorOrThrow=Uc=ze.getDocument=Dc=ze.getDocumentOrThrow=kc=ze.getFromWindowOrThrow=Bc=ze.getFromWindow=void 0;function Ur(t){let e;return typeof window<"u"&&typeof window[t]<"u"&&(e=window[t]),e}var Bc=ze.getFromWindow=Ur;function si(t){const e=Ur(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}var kc=ze.getFromWindowOrThrow=si;function Hl(){return si("document")}var Dc=ze.getDocumentOrThrow=Hl;function Vl(){return Ur("document")}var Uc=ze.getDocument=Vl;function Jl(){return si("navigator")}var Lc=ze.getNavigatorOrThrow=Jl;function Wl(){return Ur("navigator")}var qc=ze.getNavigator=Wl;function Gl(){return si("location")}var $c=ze.getLocationOrThrow=Gl;function Ql(){return Ur("location")}var zc=ze.getLocation=Ql;function Yl(){return si("crypto")}var jc=ze.getCryptoOrThrow=Yl;function Xl(){return Ur("crypto")}var Kc=ze.getCrypto=Xl;function Zl(){return si("localStorage")}var Hc=ze.getLocalStorageOrThrow=Zl;function ef(){return Ur("localStorage")}Oc=ze.getLocalStorage=ef;Object.defineProperty(eo,"__esModule",{value:!0});var Vc=eo.getWindowMetadata=void 0;const To=ze;function tf(){let t,e;try{t=To.getDocumentOrThrow(),e=To.getLocationOrThrow()}catch{return null}function r(){const y=t.getElementsByTagName("link"),C=[];for(let E=0;E<y.length;E++){const v=y[E],k=v.getAttribute("rel");if(k&&k.toLowerCase().indexOf("icon")>-1){const B=v.getAttribute("href");if(B)if(B.toLowerCase().indexOf("https:")===-1&&B.toLowerCase().indexOf("http:")===-1&&B.indexOf("//")!==0){let U=e.protocol+"//"+e.host;if(B.indexOf("/")===0)U+=B;else{const A=e.pathname.split("/");A.pop();const F=A.join("/");U+=F+"/"+B}C.push(U)}else if(B.indexOf("//")===0){const U=e.protocol+B;C.push(U)}else C.push(B)}}return C}function i(...y){const C=t.getElementsByTagName("meta");for(let E=0;E<C.length;E++){const v=C[E],k=["itemprop","property","name"].map(B=>v.getAttribute(B)).filter(B=>B?y.includes(B):!1);if(k.length&&k){const B=v.getAttribute("content");if(B)return B}}return""}function n(){let y=i("name","og:site_name","og:title","twitter:title");return y||(y=t.title),y}function s(){return i("description","og:description","twitter:description","keywords")}const o=n(),a=s(),h=e.origin,d=r();return{description:a,url:h,icons:d,name:o}}Vc=eo.getWindowMetadata=tf;var rf=function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var i=Array(t),n=0,e=0;e<r;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,n++)i[n]=s[o];return i},nf=function(){function t(e,r,i){this.name=e,this.version=r,this.os=i,this.type="browser"}return t}(),sf=function(){function t(e){this.version=e,this.type="node",this.name="node",this.os=Z.dist.process.platform}return t}(),of=function(){function t(e,r,i,n){this.name=e,this.version=r,this.os=i,this.bot=n,this.type="bot-device"}return t}(),af=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),cf=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),hf=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,uf=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Oo=3,lf=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",hf]],Bo=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function ff(t){return t?ko(t):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new cf:typeof navigator<"u"?ko(navigator.userAgent):gf()}function df(t){return t!==""&&lf.reduce(function(e,r){var i=r[0],n=r[1];if(e)return e;var s=n.exec(t);return!!s&&[i,s]},!1)}function ko(t){var e=df(t);if(!e)return null;var r=e[0],i=e[1];if(r==="searchbot")return new af;var n=i[1]&&i[1].split(/[._]/).slice(0,3);n?n.length<Oo&&(n=rf(n,mf(Oo-n.length))):n=[];var s=n.join("."),o=pf(t),a=uf.exec(t);return a&&a[1]?new of(r,s,o,a[1]):new nf(r,s,o)}function pf(t){for(var e=0,r=Bo.length;e<r;e++){var i=Bo[e],n=i[0],s=i[1],o=s.exec(t);if(o)return n}return null}function gf(){var t=typeof Z.dist.process<"u"&&Z.dist.process.version;return t?new sf(Z.dist.process.version.slice(1)):null}function mf(t){for(var e=[],r=0;r<t;r++)e.push("0");return e}function to(t){return ff(t)}function En(){const t=to();return t&&t.os?t.os:void 0}function Jc(){const t=En();return t?t.toLowerCase().includes("android"):!1}function Wc(){const t=En();return t?t.toLowerCase().includes("ios")||t.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function yf(){return En()?Jc()||Wc():!1}function Gc(){const t=to();return t&&t.name?t.name.toLowerCase()==="node":!1}function wf(){return!Gc()&&!!Qc()}const vf=Bc,bf=kc,_f=Dc,Af=Uc,Ef=Lc,Qc=qc,Sf=$c,If=zc,Mf=jc,Nf=Kc,xf=Hc,Sn=Oc;function Cf(){return Vc()}function Ff(t){if(typeof t!="string")throw new Error(`Cannot safe json parse value of type ${typeof t}`);try{return JSON.parse(t)}catch{return t}}function Rf(t){return typeof t=="string"?t:JSON.stringify(t)}const Yc=Ff,Xc=Rf;function Zc(t,e){const r=Xc(e),i=Sn();i&&i.setItem(t,r)}function Pf(t){let e=null,r=null;const i=Sn();return i&&(r=i.getItem(t)),e=r&&Yc(r),e}function Tf(t){const e=Sn();e&&e.removeItem(t)}const eh="WALLETCONNECT_DEEPLINK_CHOICE";function Of(t,e){const r=encodeURIComponent(t);return e.universalLink?`${e.universalLink}/wc?uri=${r}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${r}`:""}function Bf(t){const e=t.href.split("?")[0];Zc(eh,Object.assign(Object.assign({},t),{href:e}))}function th(t,e){return t.filter(r=>r.name.toLowerCase().includes(e.toLowerCase()))[0]}function kf(t,e){let r=t;return e&&(r=e.map(i=>th(t,i)).filter(Boolean)),r}const rh="https://registry.walletconnect.com";function Df(){return rh+"/api/v2/wallets"}function Uf(){return rh+"/api/v2/dapps"}function ih(t,e="mobile"){var r;return{name:t.name||"",shortName:t.metadata.shortName||"",color:t.metadata.colors.primary||"",logo:(r=t.image_url.sm)!==null&&r!==void 0?r:"",universalLink:t[e].universal||"",deepLink:t[e].native||""}}function Lf(t,e="mobile"){return Object.values(t).filter(r=>!!r[e].universal||!!r[e].native).map(r=>ih(r,e))}const qf=Object.freeze(Object.defineProperty({__proto__:null,detectEnv:to,detectOS:En,formatIOSMobile:Of,formatMobileRegistry:Lf,formatMobileRegistryEntry:ih,getClientMeta:Cf,getCrypto:Nf,getCryptoOrThrow:Mf,getDappRegistryUrl:Uf,getDocument:Af,getDocumentOrThrow:_f,getFromWindow:vf,getFromWindowOrThrow:bf,getLocal:Pf,getLocalStorage:Sn,getLocalStorageOrThrow:xf,getLocation:If,getLocationOrThrow:Sf,getMobileLinkRegistry:kf,getMobileRegistryEntry:th,getNavigator:Qc,getNavigatorOrThrow:Ef,getWalletRegistryUrl:Df,isAndroid:Jc,isBrowser:wf,isIOS:Wc,isMobile:yf,isNode:Gc,mobileLinkChoiceKey:eh,removeLocal:Tf,safeJsonParse:Yc,safeJsonStringify:Xc,saveMobileLinkInfo:Bf,setLocal:Zc},Symbol.toStringTag,{value:"Module"})),$f=Z.getAugmentedNamespace(qf);var Oi={},zf=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},nh={},Fr={},jf=Zs;function Kf(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},t.foo()===42}catch{return!1}}Pe.TYPED_ARRAY_SUPPORT=Kf();var Do=Pe.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function Pe(t,e,r){return!Pe.TYPED_ARRAY_SUPPORT&&!(this instanceof Pe)?new Pe(t,e,r):typeof t=="number"?sh(this,t):Yf(this,t,e,r)}Pe.TYPED_ARRAY_SUPPORT&&(Pe.prototype.__proto__=Uint8Array.prototype,Pe.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&Pe[Symbol.species]===Pe&&Object.defineProperty(Pe,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function ro(t){if(t>=Do)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Do.toString(16)+" bytes");return t|0}function Hf(t){return t!==t}function Yr(t,e){var r;return Pe.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(e),r.__proto__=Pe.prototype):(r=t,r===null&&(r=new Pe(e)),r.length=e),r}function sh(t,e){var r=Yr(t,e<0?0:ro(e)|0);if(!Pe.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)r[i]=0;return r}function Vf(t,e){var r=ah(e)|0,i=Yr(t,r),n=i.write(e);return n!==r&&(i=i.slice(0,n)),i}function Ms(t,e){for(var r=e.length<0?0:ro(e.length)|0,i=Yr(t,r),n=0;n<r;n+=1)i[n]=e[n]&255;return i}function Jf(t,e,r,i){if(r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(i||0))throw new RangeError("'length' is out of bounds");var n;return r===void 0&&i===void 0?n=new Uint8Array(e):i===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,i),Pe.TYPED_ARRAY_SUPPORT?n.__proto__=Pe.prototype:n=Ms(t,n),n}function Wf(t,e){if(Pe.isBuffer(e)){var r=ro(e.length)|0,i=Yr(t,r);return i.length===0||e.copy(i,0,0,r),i}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||Hf(e.length)?Yr(t,0):Ms(t,e);if(e.type==="Buffer"&&Array.isArray(e.data))return Ms(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function oh(t,e){e=e||1/0;for(var r,i=t.length,n=null,s=[],o=0;o<i;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(o+1===i){(e-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return s}function ah(t){if(Pe.isBuffer(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var e=t.length;return e===0?0:oh(t).length}function Gf(t,e,r,i){for(var n=0;n<i&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}function Qf(t,e,r,i){return Gf(oh(e,t.length-r),t,r,i)}function Yf(t,e,r,i){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?Jf(t,e,r,i):typeof e=="string"?Vf(t,e):Wf(t,e)}Pe.prototype.write=function(e,r,i){r===void 0?(i=this.length,r=0):i===void 0&&typeof r=="string"?(i=this.length,r=0):isFinite(r)&&(r=r|0,isFinite(i)?i=i|0:i=void 0);var n=this.length-r;if((i===void 0||i>n)&&(i=n),e.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");return Qf(this,e,r,i)};Pe.prototype.slice=function(e,r){var i=this.length;e=~~e,r=r===void 0?i:~~r,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<e&&(r=e);var n;if(Pe.TYPED_ARRAY_SUPPORT)n=this.subarray(e,r),n.__proto__=Pe.prototype;else{var s=r-e;n=new Pe(s,void 0);for(var o=0;o<s;++o)n[o]=this[o+e]}return n};Pe.prototype.copy=function(e,r,i,n){if(i||(i=0),!n&&n!==0&&(n=this.length),r>=e.length&&(r=e.length),r||(r=0),n>0&&n<i&&(n=i),n===i||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-r<n-i&&(n=e.length-r+i);var s=n-i,o;if(this===e&&i<r&&r<n)for(o=s-1;o>=0;--o)e[o+r]=this[o+i];else if(s<1e3||!Pe.TYPED_ARRAY_SUPPORT)for(o=0;o<s;++o)e[o+r]=this[o+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+s),r);return s};Pe.prototype.fill=function(e,r,i){if(typeof e=="string"){if(typeof r=="string"?(r=0,i=this.length):typeof i=="string"&&(i=this.length),e.length===1){var n=e.charCodeAt(0);n<256&&(e=n)}}else typeof e=="number"&&(e=e&255);if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);var s;if(typeof e=="number")for(s=r;s<i;++s)this[s]=e;else{var o=Pe.isBuffer(e)?e:new Pe(e),a=o.length;for(s=0;s<i-r;++s)this[s+r]=o[s%a]}return this};Pe.concat=function(e,r){if(!jf(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Yr(null,0);var i;if(r===void 0)for(r=0,i=0;i<e.length;++i)r+=e[i].length;var n=sh(null,r),s=0;for(i=0;i<e.length;++i){var o=e[i];if(!Pe.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,s),s+=o.length}return n};Pe.byteLength=ah;Pe.prototype._isBuffer=!0;Pe.isBuffer=function(e){return!!(e!=null&&e._isBuffer)};Fr.alloc=function(t){var e=new Pe(t);return e.fill(0),e};Fr.from=function(t){return new Pe(t)};var Pt={},io,Xf=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Pt.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};Pt.getSymbolTotalCodewords=function(e){return Xf[e]};Pt.getBCHDigit=function(t){for(var e=0;t!==0;)e++,t>>>=1;return e};Pt.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');io=e};Pt.isKanjiModeEnabled=function(){return typeof io<"u"};Pt.toSJIS=function(e){return io(e)};var In={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(r){if(typeof r!="string")throw new Error("Param is not a string");var i=r.toLowerCase();switch(i){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+r)}}t.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},t.from=function(i,n){if(t.isValid(i))return i;try{return e(i)}catch{return n}}})(In);function ch(){this.buffer=[],this.length=0}ch.prototype={get:function(t){var e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(var r=0;r<e;r++)this.putBit((t>>>e-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var Zf=ch,Uo=Fr;function Bi(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=Uo.alloc(t*t),this.reservedBit=Uo.alloc(t*t)}Bi.prototype.set=function(t,e,r,i){var n=t*this.size+e;this.data[n]=r,i&&(this.reservedBit[n]=!0)};Bi.prototype.get=function(t,e){return this.data[t*this.size+e]};Bi.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};Bi.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var ed=Bi,hh={};(function(t){var e=Pt.getSymbolSize;t.getRowColCoords=function(i){if(i===1)return[];for(var n=Math.floor(i/7)+2,s=e(i),o=s===145?26:Math.ceil((s-13)/(2*n-2))*2,a=[s-7],h=1;h<n-1;h++)a[h]=a[h-1]-o;return a.push(6),a.reverse()},t.getPositions=function(i){for(var n=[],s=t.getRowColCoords(i),o=s.length,a=0;a<o;a++)for(var h=0;h<o;h++)a===0&&h===0||a===0&&h===o-1||a===o-1&&h===0||n.push([s[a],s[h]]);return n}})(hh);var uh={},td=Pt.getSymbolSize,Lo=7;uh.getPositions=function(e){var r=td(e);return[[0,0],[r-Lo,0],[0,r-Lo]]};var lh={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},t.from=function(n){return t.isValid(n)?parseInt(n,10):void 0},t.getPenaltyN1=function(n){for(var s=n.size,o=0,a=0,h=0,d=null,p=null,y=0;y<s;y++){a=h=0,d=p=null;for(var C=0;C<s;C++){var E=n.get(y,C);E===d?a++:(a>=5&&(o+=e.N1+(a-5)),d=E,a=1),E=n.get(C,y),E===p?h++:(h>=5&&(o+=e.N1+(h-5)),p=E,h=1)}a>=5&&(o+=e.N1+(a-5)),h>=5&&(o+=e.N1+(h-5))}return o},t.getPenaltyN2=function(n){for(var s=n.size,o=0,a=0;a<s-1;a++)for(var h=0;h<s-1;h++){var d=n.get(a,h)+n.get(a,h+1)+n.get(a+1,h)+n.get(a+1,h+1);(d===4||d===0)&&o++}return o*e.N2},t.getPenaltyN3=function(n){for(var s=n.size,o=0,a=0,h=0,d=0;d<s;d++){a=h=0;for(var p=0;p<s;p++)a=a<<1&2047|n.get(d,p),p>=10&&(a===1488||a===93)&&o++,h=h<<1&2047|n.get(p,d),p>=10&&(h===1488||h===93)&&o++}return o*e.N3},t.getPenaltyN4=function(n){for(var s=0,o=n.data.length,a=0;a<o;a++)s+=n.data[a];var h=Math.abs(Math.ceil(s*100/o/5)-10);return h*e.N4};function r(i,n,s){switch(i){case t.Patterns.PATTERN000:return(n+s)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return s%3===0;case t.Patterns.PATTERN011:return(n+s)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(s/3))%2===0;case t.Patterns.PATTERN101:return n*s%2+n*s%3===0;case t.Patterns.PATTERN110:return(n*s%2+n*s%3)%2===0;case t.Patterns.PATTERN111:return(n*s%3+(n+s)%2)%2===0;default:throw new Error("bad maskPattern:"+i)}}t.applyMask=function(n,s){for(var o=s.size,a=0;a<o;a++)for(var h=0;h<o;h++)s.isReserved(h,a)||s.xor(h,a,r(n,h,a))},t.getBestMask=function(n,s){for(var o=Object.keys(t.Patterns).length,a=0,h=1/0,d=0;d<o;d++){s(d),t.applyMask(d,n);var p=t.getPenaltyN1(n)+t.getPenaltyN2(n)+t.getPenaltyN3(n)+t.getPenaltyN4(n);t.applyMask(d,n),p<h&&(h=p,a=d)}return a}})(lh);var Mn={},xr=In,Vi=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Ji=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Mn.getBlocksCount=function(e,r){switch(r){case xr.L:return Vi[(e-1)*4+0];case xr.M:return Vi[(e-1)*4+1];case xr.Q:return Vi[(e-1)*4+2];case xr.H:return Vi[(e-1)*4+3];default:return}};Mn.getTotalCodewordsCount=function(e,r){switch(r){case xr.L:return Ji[(e-1)*4+0];case xr.M:return Ji[(e-1)*4+1];case xr.Q:return Ji[(e-1)*4+2];case xr.H:return Ji[(e-1)*4+3];default:return}};var fh={},Nn={},dh=Fr,_i=dh.alloc(512),cn=dh.alloc(256);(function(){for(var e=1,r=0;r<255;r++)_i[r]=e,cn[e]=r,e<<=1,e&256&&(e^=285);for(r=255;r<512;r++)_i[r]=_i[r-255]})();Nn.log=function(e){if(e<1)throw new Error("log("+e+")");return cn[e]};Nn.exp=function(e){return _i[e]};Nn.mul=function(e,r){return e===0||r===0?0:_i[cn[e]+cn[r]]};(function(t){var e=Fr,r=Nn;t.mul=function(n,s){for(var o=e.alloc(n.length+s.length-1),a=0;a<n.length;a++)for(var h=0;h<s.length;h++)o[a+h]^=r.mul(n[a],s[h]);return o},t.mod=function(n,s){for(var o=e.from(n);o.length-s.length>=0;){for(var a=o[0],h=0;h<s.length;h++)o[h]^=r.mul(s[h],a);for(var d=0;d<o.length&&o[d]===0;)d++;o=o.slice(d)}return o},t.generateECPolynomial=function(n){for(var s=e.from([1]),o=0;o<n;o++)s=t.mul(s,[1,r.exp(o)]);return s}})(fh);var qo=Fr,ph=fh,rd=Z.bufferPolyfill.Buffer;function no(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}no.prototype.initialize=function(e){this.degree=e,this.genPoly=ph.generateECPolynomial(this.degree)};no.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var r=qo.alloc(this.degree),i=rd.concat([e,r],e.length+this.degree),n=ph.mod(i,this.genPoly),s=this.degree-n.length;if(s>0){var o=qo.alloc(this.degree);return n.copy(o,s),o}return n};var id=no,gh={},Rr={},so={};so.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var nr={},mh="[0-9]+",nd="[A-Z $%*+\\-./:]+",Ni="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ni=Ni.replace(/u/g,"\\u");var sd="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ni+`)(?:.|[\r
2
2
  ]))+`;nr.KANJI=new RegExp(Ni,"g");nr.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");nr.BYTE=new RegExp(sd,"g");nr.NUMERIC=new RegExp(mh,"g");nr.ALPHANUMERIC=new RegExp(nd,"g");var od=new RegExp("^"+Ni+"$"),ad=new RegExp("^"+mh+"$"),cd=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");nr.testKanji=function(e){return od.test(e)};nr.testNumeric=function(e){return ad.test(e)};nr.testAlphanumeric=function(e){return cd.test(e)};(function(t){var e=so,r=nr;t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(s,o){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!e.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?s.ccBits[0]:o<27?s.ccBits[1]:s.ccBits[2]},t.getBestModeForData=function(s){return r.testNumeric(s)?t.NUMERIC:r.testAlphanumeric(s)?t.ALPHANUMERIC:r.testKanji(s)?t.KANJI:t.BYTE},t.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},t.isValid=function(s){return s&&s.bit&&s.ccBits};function i(n){if(typeof n!="string")throw new Error("Param is not a string");var s=n.toLowerCase();switch(s){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+n)}}t.from=function(s,o){if(t.isValid(s))return s;try{return i(s)}catch{return o}}})(Rr);(function(t){var e=Pt,r=Mn,i=In,n=Rr,s=so,o=Zs,a=7973,h=e.getBCHDigit(a);function d(E,v,k){for(var B=1;B<=40;B++)if(v<=t.getCapacity(B,k,E))return B}function p(E,v){return n.getCharCountIndicator(E,v)+4}function y(E,v){var k=0;return E.forEach(function(B){var U=p(B.mode,v);k+=U+B.getBitsLength()}),k}function C(E,v){for(var k=1;k<=40;k++){var B=y(E,k);if(B<=t.getCapacity(k,v,n.MIXED))return k}}t.from=function(v,k){return s.isValid(v)?parseInt(v,10):k},t.getCapacity=function(v,k,B){if(!s.isValid(v))throw new Error("Invalid QR Code version");typeof B>"u"&&(B=n.BYTE);var U=e.getSymbolTotalCodewords(v),A=r.getTotalCodewordsCount(v,k),F=(U-A)*8;if(B===n.MIXED)return F;var R=F-p(B,v);switch(B){case n.NUMERIC:return Math.floor(R/10*3);case n.ALPHANUMERIC:return Math.floor(R/11*2);case n.KANJI:return Math.floor(R/13);case n.BYTE:default:return Math.floor(R/8)}},t.getBestVersionForData=function(v,k){var B,U=i.from(k,i.M);if(o(v)){if(v.length>1)return C(v,U);if(v.length===0)return 1;B=v[0]}else B=v;return d(B.mode,B.getLength(),U)},t.getEncodedBits=function(v){if(!s.isValid(v)||v<7)throw new Error("Invalid QR Code version");for(var k=v<<12;e.getBCHDigit(k)-h>=0;)k^=a<<e.getBCHDigit(k)-h;return v<<12|k}})(gh);var yh={},Ns=Pt,wh=1335,hd=21522,$o=Ns.getBCHDigit(wh);yh.getEncodedBits=function(e,r){for(var i=e.bit<<3|r,n=i<<10;Ns.getBCHDigit(n)-$o>=0;)n^=wh<<Ns.getBCHDigit(n)-$o;return(i<<10|n)^hd};var vh={},ud=Rr;function Xr(t){this.mode=ud.NUMERIC,this.data=t.toString()}Xr.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};Xr.prototype.getLength=function(){return this.data.length};Xr.prototype.getBitsLength=function(){return Xr.getBitsLength(this.data.length)};Xr.prototype.write=function(e){var r,i,n;for(r=0;r+3<=this.data.length;r+=3)i=this.data.substr(r,3),n=parseInt(i,10),e.put(n,10);var s=this.data.length-r;s>0&&(i=this.data.substr(r),n=parseInt(i,10),e.put(n,s*3+1))};var ld=Xr,fd=Rr,Qn=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Zr(t){this.mode=fd.ALPHANUMERIC,this.data=t}Zr.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};Zr.prototype.getLength=function(){return this.data.length};Zr.prototype.getBitsLength=function(){return Zr.getBitsLength(this.data.length)};Zr.prototype.write=function(e){var r;for(r=0;r+2<=this.data.length;r+=2){var i=Qn.indexOf(this.data[r])*45;i+=Qn.indexOf(this.data[r+1]),e.put(i,11)}this.data.length%2&&e.put(Qn.indexOf(this.data[r]),6)};var dd=Zr,pd=Fr,gd=Rr;function ei(t){this.mode=gd.BYTE,this.data=pd.from(t)}ei.getBitsLength=function(e){return e*8};ei.prototype.getLength=function(){return this.data.length};ei.prototype.getBitsLength=function(){return ei.getBitsLength(this.data.length)};ei.prototype.write=function(t){for(var e=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)};var md=ei,yd=Rr,wd=Pt;function ti(t){this.mode=yd.KANJI,this.data=t}ti.getBitsLength=function(e){return e*13};ti.prototype.getLength=function(){return this.data.length};ti.prototype.getBitsLength=function(){return ti.getBitsLength(this.data.length)};ti.prototype.write=function(t){var e;for(e=0;e<this.data.length;e++){var r=wd.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
3
3
  Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),t.put(r,13)}};var vd=ti;(function(t){var e=Rr,r=ld,i=dd,n=md,s=vd,o=nr,a=Pt,h=Bl.dijkstraExports;function d(U){return unescape(encodeURIComponent(U)).length}function p(U,A,F){for(var R=[],O;(O=U.exec(F))!==null;)R.push({data:O[0],index:O.index,mode:A,length:O[0].length});return R}function y(U){var A=p(o.NUMERIC,e.NUMERIC,U),F=p(o.ALPHANUMERIC,e.ALPHANUMERIC,U),R,O;a.isKanjiModeEnabled()?(R=p(o.BYTE,e.BYTE,U),O=p(o.KANJI,e.KANJI,U)):(R=p(o.BYTE_KANJI,e.BYTE,U),O=[]);var D=A.concat(F,R,O);return D.sort(function(L,q){return L.index-q.index}).map(function(L){return{data:L.data,mode:L.mode,length:L.length}})}function C(U,A){switch(A){case e.NUMERIC:return r.getBitsLength(U);case e.ALPHANUMERIC:return i.getBitsLength(U);case e.KANJI:return s.getBitsLength(U);case e.BYTE:return n.getBitsLength(U)}}function E(U){return U.reduce(function(A,F){var R=A.length-1>=0?A[A.length-1]:null;return R&&R.mode===F.mode?(A[A.length-1].data+=F.data,A):(A.push(F),A)},[])}function v(U){for(var A=[],F=0;F<U.length;F++){var R=U[F];switch(R.mode){case e.NUMERIC:A.push([R,{data:R.data,mode:e.ALPHANUMERIC,length:R.length},{data:R.data,mode:e.BYTE,length:R.length}]);break;case e.ALPHANUMERIC:A.push([R,{data:R.data,mode:e.BYTE,length:R.length}]);break;case e.KANJI:A.push([R,{data:R.data,mode:e.BYTE,length:d(R.data)}]);break;case e.BYTE:A.push([{data:R.data,mode:e.BYTE,length:d(R.data)}])}}return A}function k(U,A){for(var F={},R={start:{}},O=["start"],D=0;D<U.length;D++){for(var L=U[D],q=[],Q=0;Q<L.length;Q++){var ee=L[Q],te=""+D+Q;q.push(te),F[te]={node:ee,lastCount:0},R[te]={};for(var xe=0;xe<O.length;xe++){var c=O[xe];F[c]&&F[c].node.mode===ee.mode?(R[c][te]=C(F[c].lastCount+ee.length,ee.mode)-C(F[c].lastCount,ee.mode),F[c].lastCount+=ee.length):(F[c]&&(F[c].lastCount=ee.length),R[c][te]=C(ee.length,ee.mode)+4+e.getCharCountIndicator(ee.mode,A))}}O=q}for(xe=0;xe<O.length;xe++)R[O[xe]].end=0;return{map:R,table:F}}function B(U,A){var F,R=e.getBestModeForData(U);if(F=e.from(A,R),F!==e.BYTE&&F.bit<R.bit)throw new Error('"'+U+'" cannot be encoded with mode '+e.toString(F)+`.
4
4
  Suggested mode is: `+e.toString(R));switch(F===e.KANJI&&!a.isKanjiModeEnabled()&&(F=e.BYTE),F){case e.NUMERIC:return new r(U);case e.ALPHANUMERIC:return new i(U);case e.KANJI:return new s(U);case e.BYTE:return new n(U)}}t.fromArray=function(A){return A.reduce(function(F,R){return typeof R=="string"?F.push(B(R,null)):R.data&&F.push(B(R.data,R.mode)),F},[])},t.fromString=function(A,F){for(var R=y(A,a.isKanjiModeEnabled()),O=v(R),D=k(O,F),L=h.find_path(D.map,"start","end"),q=[],Q=1;Q<L.length-1;Q++)q.push(D.table[L[Q]].node);return t.fromArray(E(q))},t.rawSplit=function(A){return t.fromArray(y(A,a.isKanjiModeEnabled()))}})(vh);var zo=Fr,xn=Pt,Yn=In,bd=Zf,_d=ed,Ad=hh,Ed=uh,xs=lh,Cs=Mn,Sd=id,hn=gh,Id=yh,Md=Rr,Xn=vh,Nd=Zs;function xd(t,e){for(var r=t.size,i=Ed.getPositions(e),n=0;n<i.length;n++)for(var s=i[n][0],o=i[n][1],a=-1;a<=7;a++)if(!(s+a<=-1||r<=s+a))for(var h=-1;h<=7;h++)o+h<=-1||r<=o+h||(a>=0&&a<=6&&(h===0||h===6)||h>=0&&h<=6&&(a===0||a===6)||a>=2&&a<=4&&h>=2&&h<=4?t.set(s+a,o+h,!0,!0):t.set(s+a,o+h,!1,!0))}function Cd(t){for(var e=t.size,r=8;r<e-8;r++){var i=r%2===0;t.set(r,6,i,!0),t.set(6,r,i,!0)}}function Fd(t,e){for(var r=Ad.getPositions(e),i=0;i<r.length;i++)for(var n=r[i][0],s=r[i][1],o=-2;o<=2;o++)for(var a=-2;a<=2;a++)o===-2||o===2||a===-2||a===2||o===0&&a===0?t.set(n+o,s+a,!0,!0):t.set(n+o,s+a,!1,!0)}function Rd(t,e){for(var r=t.size,i=hn.getEncodedBits(e),n,s,o,a=0;a<18;a++)n=Math.floor(a/3),s=a%3+r-8-3,o=(i>>a&1)===1,t.set(n,s,o,!0),t.set(s,n,o,!0)}function Zn(t,e,r){var i=t.size,n=Id.getEncodedBits(e,r),s,o;for(s=0;s<15;s++)o=(n>>s&1)===1,s<6?t.set(s,8,o,!0):s<8?t.set(s+1,8,o,!0):t.set(i-15+s,8,o,!0),s<8?t.set(8,i-s-1,o,!0):s<9?t.set(8,15-s-1+1,o,!0):t.set(8,15-s-1,o,!0);t.set(i-8,8,1,!0)}function Pd(t,e){for(var r=t.size,i=-1,n=r-1,s=7,o=0,a=r-1;a>0;a-=2)for(a===6&&a--;;){for(var h=0;h<2;h++)if(!t.isReserved(n,a-h)){var d=!1;o<e.length&&(d=(e[o]>>>s&1)===1),t.set(n,a-h,d),s--,s===-1&&(o++,s=7)}if(n+=i,n<0||r<=n){n-=i,i=-i;break}}}function Td(t,e,r){var i=new bd;r.forEach(function(d){i.put(d.mode.bit,4),i.put(d.getLength(),Md.getCharCountIndicator(d.mode,t)),d.write(i)});var n=xn.getSymbolTotalCodewords(t),s=Cs.getTotalCodewordsCount(t,e),o=(n-s)*8;for(i.getLengthInBits()+4<=o&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);for(var a=(o-i.getLengthInBits())/8,h=0;h<a;h++)i.put(h%2?17:236,8);return Od(i,t,e)}function Od(t,e,r){for(var i=xn.getSymbolTotalCodewords(e),n=Cs.getTotalCodewordsCount(e,r),s=i-n,o=Cs.getBlocksCount(e,r),a=i%o,h=o-a,d=Math.floor(i/o),p=Math.floor(s/o),y=p+1,C=d-p,E=new Sd(C),v=0,k=new Array(o),B=new Array(o),U=0,A=zo.from(t.buffer),F=0;F<o;F++){var R=F<h?p:y;k[F]=A.slice(v,v+R),B[F]=E.encode(k[F]),v+=R,U=Math.max(U,R)}var O=zo.alloc(i),D=0,L,q;for(L=0;L<U;L++)for(q=0;q<o;q++)L<k[q].length&&(O[D++]=k[q][L]);for(L=0;L<C;L++)for(q=0;q<o;q++)O[D++]=B[q][L];return O}function Bd(t,e,r,i){var n;if(Nd(t))n=Xn.fromArray(t);else if(typeof t=="string"){var s=e;if(!s){var o=Xn.rawSplit(t);s=hn.getBestVersionForData(o,r)}n=Xn.fromString(t,s||40)}else throw new Error("Invalid data");var a=hn.getBestVersionForData(n,r);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=a;else if(e<a)throw new Error(`
@@ -1,7 +1,7 @@
1
1
  var Q = Object.defineProperty;
2
2
  var j = (t, e, s) => e in t ? Q(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
3
  var y = (t, e, s) => j(t, typeof e != "symbol" ? e + "" : e, s);
4
- import { aX as u, bw as Y, bx as I, by as x, bz as ee, bA as ne, bB as se, Z as M, cn as O, cf as ae, cs as E, ct as N, cK as B, cF as _, c1 as U, u as te, S as b, e as ie, c2 as D, a$ as T, c0 as re, b6 as me, c4 as R, cJ as oe, bR as ue, g as le } from "./index-BDhzG0Bz.mjs";
4
+ import { aX as u, bw as Y, bx as I, by as x, bz as ee, bA as ne, bB as se, Z as M, cn as O, cf as ae, cs as E, ct as N, cK as B, cF as _, c1 as U, u as te, S as b, e as ie, c2 as D, a$ as T, c0 as re, b6 as me, c4 as R, cJ as oe, bR as ue, g as le } from "./index-EhUlCH18.mjs";
5
5
  const h = new u("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");
6
6
  new u("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");
7
7
  const A = new u("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");
@@ -1,13 +1,13 @@
1
1
  var uu = Object.defineProperty;
2
2
  var du = (e, t, n) => t in e ? uu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ct = (e, t, n) => du(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { V as h, X as Ur, Y as lu, Z as tt, $ as ia, a0 as aa, aa as fi, a3 as hi, N as pi, o as mu, a8 as gi, p as fu, cX as hu, a6 as yi, cY as Qo, cZ as bi, c_ as vi, c$ as wi, d0 as ki, d1 as _i, d2 as Si, d3 as pu, d4 as gu, d5 as yu, bR as bu, a9 as vu } from "./index-BDhzG0Bz.mjs";
5
- import { t as jt, l as wu, s as qr, a as Rs, c as ca, m as ku } from "./index-C8UyzBg3.mjs";
6
- import { b as _u, r as Su, a as ua, c as Pu, x as Bt, d as Au, e as Tu } from "./pako.esm-Bf33_673.mjs";
7
- import { r as Eu, a as Cu } from "./index-DGI2tbSC.mjs";
8
- import { k as Mu, a as Ou, b as ju, t as da, c as Bu, v as Ru, p as Iu, q as $u, d as Nu, e as Du, f as xu, g as la, h as Uu, i as qu, j as Hu, l as Vu, m as Fu, n as Wu, o as Ju, r as Gu, s as Hr, u as Lu, w as zu, x as Ku, y as Qu, z as Zu, A as Xu, B as Yu, D as ed, E as td, F as nd, H as rd, I as ma, J as od, K as sd, L as id, M as ad, N as cd, G as Nt, C as Zo } from "./cosmwasm-i8-2LBd4.mjs";
9
- import { CosmwasmWormholeCore as ud } from "./index-DjSK9SdK.mjs";
10
- import { c as dd, C as ld } from "./unsignedTransaction-B1rzGa0o.mjs";
4
+ import { V as h, X as Ur, Y as lu, Z as tt, $ as ia, a0 as aa, aa as fi, a3 as hi, N as pi, o as mu, a8 as gi, p as fu, cX as hu, a6 as yi, cY as Qo, cZ as bi, c_ as vi, c$ as wi, d0 as ki, d1 as _i, d2 as Si, d3 as pu, d4 as gu, d5 as yu, bR as bu, a9 as vu } from "./index-EhUlCH18.mjs";
5
+ import { t as jt, l as wu, s as qr, a as Rs, c as ca, m as ku } from "./index-CpM8O4af.mjs";
6
+ import { b as _u, r as Su, a as ua, c as Pu, x as Bt, d as Au, e as Tu } from "./pako.esm-doGHPq3v.mjs";
7
+ import { r as Eu, a as Cu } from "./index-C4NKqUWK.mjs";
8
+ import { k as Mu, a as Ou, b as ju, t as da, c as Bu, v as Ru, p as Iu, q as $u, d as Nu, e as Du, f as xu, g as la, h as Uu, i as qu, j as Hu, l as Vu, m as Fu, n as Wu, o as Ju, r as Gu, s as Hr, u as Lu, w as zu, x as Ku, y as Qu, z as Zu, A as Xu, B as Yu, D as ed, E as td, F as nd, H as rd, I as ma, J as od, K as sd, L as id, M as ad, N as cd, G as Nt, C as Zo } from "./cosmwasm-SnVdtN68.mjs";
9
+ import { CosmwasmWormholeCore as ud } from "./index-0YCaekiF.mjs";
10
+ import { c as dd, C as ld } from "./unsignedTransaction-oXk8lD5s.mjs";
11
11
  function md(e) {
12
12
  return e.id !== void 0 && e.pending !== void 0 && e.data !== void 0;
13
13
  }
@@ -1,8 +1,8 @@
1
1
  var se = Object.defineProperty;
2
2
  var oe = (s, e, t) => e in s ? se(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
3
  var d = (s, e, t) => oe(s, typeof e != "symbol" ? e + "" : e, t);
4
- import { de as l, dh as T, da as y, cp as _, a8 as C, a5 as f, p as re, u as M, dl as Q, dm as ae, N as S, dc as ce, Z as ie, an as X, dd as N, df as P, dn as de, dp as $, cL as pe, dg as ge, dq as ue, dr as J, cb as fe, bM as le, bR as he } from "./index-BDhzG0Bz.mjs";
5
- import { A as Ae } from "./algorand-BZLSulqp.mjs";
4
+ import { de as l, dh as T, da as y, cp as _, a8 as C, a5 as f, p as re, u as M, dl as Q, dm as ae, N as S, dc as ce, Z as ie, an as X, dd as N, df as P, dn as de, dp as $, cL as pe, dg as ge, dq as ue, dr as J, cb as fe, bM as le, bR as he } from "./index-EhUlCH18.mjs";
5
+ import { A as Ae } from "./algorand-B9ai7AKk.mjs";
6
6
  class ye {
7
7
  constructor(e, t, o, n, r = !1) {
8
8
  d(this, "transaction");
@@ -1,7 +1,7 @@
1
1
  var Pt = Object.defineProperty;
2
2
  var _t = (e, t, r) => t in e ? Pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var f = (e, t, r) => _t(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { aX as c, bw as A, bA as z, bz as U, Z as l, cf as le, bB as G, by as S, bx as V, cg as Ge, ch as Ze, ci as Wt, cj as It, ck as Ut, cl as Nt, cm as O, cn as E, a8 as y, co as b, cp as Ft, cq as ye, c9 as dt, cr as xt, cs as lt, ct as zt, cu as Ot, cv as Q, cw as Lt, cx as Z, cy as H, cz as Dt, cA as qt, cB as Kt, cC as Vt, cD as Se, cE as Gt, cF as v, cG as Zt, e as oe, S as k, c7 as Ce, c8 as Ht, p as $, ce as Be, cH as Yt, cI as Qt, b6 as se, a$ as L, a5 as Xt, cJ as ft, bR as mt, g as gt } from "./index-BDhzG0Bz.mjs";
4
+ import { aX as c, bw as A, bA as z, bz as U, Z as l, cf as le, bB as G, by as S, bx as V, cg as Ge, ch as Ze, ci as Wt, cj as It, ck as Ut, cl as Nt, cm as O, cn as E, a8 as y, co as b, cp as Ft, cq as ye, c9 as dt, cr as xt, cs as lt, ct as zt, cu as Ot, cv as Q, cw as Lt, cx as Z, cy as H, cz as Dt, cA as qt, cB as Kt, cC as Vt, cD as Se, cE as Gt, cF as v, cG as Zt, e as oe, S as k, c7 as Ce, c8 as Ht, p as $, ce as Be, cH as Yt, cI as Qt, b6 as se, a$ as L, a5 as Xt, cJ as ft, bR as mt, g as gt } from "./index-EhUlCH18.mjs";
5
5
  const M = new c("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");
6
6
  new c("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");
7
7
  const Ae = new c("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"), D = new c("So11111111111111111111111111111111111111112");
@@ -1 +1 @@
1
- "use strict";var D=Object.defineProperty;var q=(o,e,n)=>e in o?D(o,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[e]=n;var p=(o,e,n)=>q(o,typeof e!="symbol"?e+"":e,n);const t=require("./index-ByG9EJHX.js"),H=require("./algorand-DIrI8hux.js");class j{constructor(e,n,r,s,i=!1){p(this,"transaction");p(this,"network");p(this,"chain");p(this,"description");p(this,"parallelizable");this.transaction=e,this.network=n,this.chain=r,this.description=s,this.parallelizable=i}}const K=1002e3,O=15,U=127,L=8,R=U*L,V=U*O,N=L*V,m={_limit:127,encodingLength:o=>{let e=0;for(;o>=128;e++)o>>=7;return e+1},encode:(o,e,n)=>{if(typeof o=="bigint"&&(o=t.safeBigIntToNumber(o)),o<0)throw new RangeError("value must be unsigned");const r=m.encodingLength(o);if(e=e||new ArrayBuffer(r),n=n||0,e.byteLength<n+r)throw new RangeError("the buffer is too small to encode the number at the offset");const s=new Uint8Array(e,n);let i=0;for(;m._limit<o;)s[i++]=o&m._limit|128,o>>=7;return s[i]=Number(o),s},decode:(o,e=0)=>{let n=0,r=0,s;do{if(s=o[e+r],s===void 0)throw new RangeError("offset out of range");n+=(s&m._limit)<<r*7,r++}while(128<=s);return n}},u={forMessageId:(o,e)=>{const n=t.decodeAddress(t.getApplicationAddress(o)).publicKey,r=e.emitter.toUniversalAddress().toUint8Array(),s=t.bignum.toBytes(BigInt(t.toChainId(e.chain)),2),i=t.bytes.concat(s,r);return u.fromData({appId:o,appAddress:n,idx:e.sequence/BigInt(N),address:i})},forWrappedAsset:(o,e)=>{if(t.isNative(e.address))throw new Error("native asset cannot be a wrapped asset");const n=t.decodeAddress(t.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:n,idx:BigInt(t.toChainId(e.chain)),address:e.address.toUniversalAddress().toUint8Array()})},forNativeAsset:(o,e)=>{const n=t.decodeAddress(t.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:n,idx:e,address:t.bytes.encode("native")})},forGuardianSet:(o,e)=>{const n=t.decodeAddress(t.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:n,idx:BigInt(e),address:t.bytes.encode("guardian")})},forEmitter:(o,e)=>{const n=t.decodeAddress(t.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:n,idx:0n,address:e})},_encode:o=>typeof o=="bigint"?[t.hex.encode(m.encode(o))]:[t.hex.encode(m.encode(o.length)),t.hex.encode(o)],fromData:o=>{const e=["0620010181",...u._encode(o.idx),"4880",...u._encode(o.address),"483110810612443119221244311881",...u._encode(o.appId),"1244312080",...u._encode(o.appAddress),"124431018100124431093203124431153203124422"],n=t.hex.decode(e.join(""));return new t.LogicSigAccount(n)},decodeLocalState:async(o,e,n)=>{let r;try{const a=await o.accountApplicationInformation(n,t.safeBigIntToNumber(e)).do();r=t.AccountApplicationResponse.from_obj_for_encoding(a).appLocalState}catch{return new Uint8Array}const s=t.b64.encode("meta");let i=new Map;for(const a of r.keyValue){if(a.key===s)continue;const g=t.b64.decode(a.key)[0],l=t.b64.decode(a.value.bytes);i.set(g,l)}const d=[];for(let a=0;a<O;a++)i.has(a)&&d.push(i.get(a));return t.bytes.concat(...d)},checkBitsSet:async(o,e,n,r)=>{let s=!1,i;const d=await o.accountInformation(n).do(),g=t.Account.from_obj_for_encoding(d).appsLocalState;if(g&&g.forEach(h=>{BigInt(h.id)===e&&(i=h.keyValue)}),(i==null?void 0:i.length)===0)return s;const l=BigInt(N),f=BigInt(8),y=r/l*l,b=t.safeBigIntToNumber(r-y),T=Math.floor(b/R),x=Math.floor((b-T*R)/8),B=t.b64.encode(t.bignum.toBytes(T,1));return i==null||i.forEach(h=>{if(h.key===B){const _=t.dist.Buffer.from(h.value.bytes,"base64"),w=1<<t.safeBigIntToNumber(r%f);s=(_[x]&w)!=0;return}}),s},storageAccountExists:async(o,e,n)=>{try{const r=await o.accountApplicationInformation(e,t.safeBigIntToNumber(n)).do();return Object.keys(r).length>0}catch{}return!1}},c=class c{constructor(e,n,r,s){p(this,"network");p(this,"chain");p(this,"connection");p(this,"contracts");p(this,"chainId");p(this,"coreAppId");p(this,"coreAppAddress");p(this,"tokenBridgeAppId");p(this,"tokenBridgeAppAddress");if(this.network=e,this.chain=n,this.connection=r,this.contracts=s,this.chainId=t.toChainId(n),!s.coreBridge)throw new Error(`Core contract address for chain ${n} not found`);const i=BigInt(s.coreBridge);if(this.coreAppId=i,this.coreAppAddress=t.getApplicationAddress(i),!s.tokenBridge)throw new Error(`TokenBridge contract address for chain ${n} not found`);const d=BigInt(s.tokenBridge);this.tokenBridgeAppId=d,this.tokenBridgeAppAddress=t.getApplicationAddress(d)}getGuardianSet(e){throw new Error("Method not implemented.")}async*verifyMessage(e,n,r){const s=new t.AlgorandAddress(e).toString(),i=await c.submitVAAHeader(this.connection,this.coreAppId,r??this.coreAppId,n,s);for(const d of i.txs)yield this.createUnsignedTx(d,"Core.verifyMessage")}static async fromRpc(e,n){const[r,s]=await H.AlgorandPlatform.chainFromRpc(e),i=n[s];if(i.network!==r)throw new Error(`Network mismatch: ${i.network} !== ${r}`);return new c(r,s,e,i.contracts)}async*publishMessage(e,n){const r=new t.AlgorandAddress(e),s=r.toString(),i=await this.connection.getTransactionParams().do(),d=u.forEmitter(this.coreAppId,r.toUint8Array()),{accounts:a,txs:g}=await c.maybeCreateStorageTx(this.connection,s,this.coreAppId,d,i);for(const f of g)yield this.createUnsignedTx(f,"Core.publishMessage",!0);const l=t.makeApplicationCallTxnFromObject({from:s,appIndex:t.safeBigIntToNumber(this.coreAppId),appArgs:[c.publishMessage,n,t.bignum.toBytes(0n,8)],accounts:a,onComplete:t.OnApplicationComplete.NoOpOC,suggestedParams:i});yield this.createUnsignedTx({tx:l},"Core.publishMessage",!0)}async getMessageFee(){var s;const e=await this.connection.getApplicationByID(t.safeBigIntToNumber(this.coreAppId)).do(),r=(s=t.Application.from_obj_for_encoding(e).params.globalState)==null?void 0:s.find(i=>i.key===c.feeKey);return r?BigInt(r.value.uint):0n}async getGuardianSetIndex(){throw new Error("Not implemented")}async parseTransaction(e){const n=await this.connection.pendingTransactionInformation(e).do(),r=t.PendingTransactionResponse.from_obj_for_encoding(n);return this.parseTx(r).map(s=>({chain:s.emitterChain,emitter:s.emitterAddress,sequence:s.sequence}))}async parseMessages(e){const n=await this.connection.pendingTransactionInformation(e).do(),r=t.PendingTransactionResponse.from_obj_for_encoding(n);return this.parseTx(r)}parseTx(e){const n=[];if(e.innerTxns&&e.innerTxns.length>0&&n.push(...e.innerTxns.flatMap(g=>this.parseTx(g))),BigInt(e.txn.txn.apid??0)!==this.coreAppId||!e.logs||e.logs.length===0)return n;const r=e.txn.txn.apaa??[];if(r.length!==3||!t.bytes.equals(new Uint8Array(r[0]),c.publishMessage))return n;const s=t.bignum.decode(e.logs[0]),i=new t.AlgorandAddress(e.txn.txn.snd).toUniversalAddress(),d=new Uint8Array(r[1]),a=t.bignum.decode(r[2]);return n.push(t.createVAA("Uint8Array",{emitterChain:this.chain,emitterAddress:i,sequence:s,guardianSet:0,timestamp:0,consistencyLevel:0,nonce:Number(a),payload:d,signatures:[]})),n}static async maybeCreateStorageTx(e,n,r,s,i){const d=t.getApplicationAddress(r),a=s.address(),g=[];if(await u.storageAccountExists(e,a,r))return{accounts:[a],txs:g};i=i??await e.getTransactionParams().do();const l=t.makePaymentTxnWithSuggestedParamsFromObject({from:n,to:a,amount:K,suggestedParams:i});l.fee=l.fee*2,g.push({tx:l});const f=t.makeApplicationOptInTxnFromObject({from:a,appIndex:t.safeBigIntToNumber(r),rekeyTo:d,suggestedParams:i});return f.fee=0,g.push({tx:f,signer:{address:s.address(),signTxn:y=>Promise.resolve(t.signLogicSigTransaction(y,s).blob)}}),{accounts:[a],txs:g}}static async submitVAAHeader(e,n,r,s,i,d){d=d??await e.getTransactionParams().do();let a=[];const g=u.forMessageId(r,{chain:s.emitterChain,sequence:s.sequence,emitter:s.emitterAddress}),{accounts:l,txs:f}=await c.maybeCreateStorageTx(e,i,r,g,d);a.push(...f);const y=u.forGuardianSet(n,s.guardianSet),{accounts:[b],txs:T}=await c.maybeCreateStorageTx(e,i,n,y,d);a.push(...T);let x=[...l,b];const B=await u.decodeLocalState(e,n,b),h=t.keccak_256(s.hash),_=s.signatures.length,w=Math.ceil(_/c.MAX_SIGS_PER_TXN),k=20,C=new t.LogicSigAccount(c.ALGO_VERIFY);for(let M=0;M<w;M++){const v=M*c.MAX_SIGS_PER_TXN,S=s.signatures.slice(v,v+c.MAX_SIGS_PER_TXN),F=S.length*k,G=new Uint8Array(F);for(let A=0;A<S.length;A++){const P=S[A],Y=B.slice(P.guardianIndex*k+1,(P.guardianIndex+1)*k+1);G.set(Y,A*20)}const X=t.makeApplicationCallTxnFromObject({appArgs:[c.verifySigs,t.bytes.concat(...S.map(A=>t.bytes.concat(new Uint8Array([A.guardianIndex]),A.signature.encode()))),G,h],accounts:x,appIndex:t.safeBigIntToNumber(n),from:c.ALGO_VERIFY_HASH,onComplete:t.OnApplicationComplete.NoOpOC,suggestedParams:d});X.fee=0,a.push({tx:X,signer:{address:C.address(),signTxn:A=>Promise.resolve(t.signLogicSigTransaction(A,C).blob)}})}const E=t.makeApplicationCallTxnFromObject({appArgs:[c.verifyVaa,t.serialize(s)],accounts:x,appIndex:t.safeBigIntToNumber(n),from:i,onComplete:t.OnApplicationComplete.NoOpOC,suggestedParams:d});return E.fee=E.fee*(2+w),a.push({tx:E}),{accounts:x,txs:a}}createUnsignedTx(e,n,r=!0){return new j(e,this.network,this.chain,n,r)}};p(c,"MAX_SIGS_PER_TXN",6),p(c,"ALGO_VERIFY_HASH","EZATROXX2HISIRZDRGXW4LRQ46Z6IUJYYIHU3PJGP7P5IQDPKVX42N767A"),p(c,"ALGO_VERIFY",new Uint8Array([6,32,4,1,0,32,20,38,1,0,49,32,50,3,18,68,49,1,35,18,68,49,16,129,6,18,68,54,26,1,54,26,3,54,26,2,136,0,3,68,34,67,53,2,53,1,53,0,40,53,240,40,53,241,52,0,21,53,5,35,53,3,35,53,4,52,3,52,5,12,65,0,68,52,1,52,0,52,3,129,65,8,34,88,23,52,0,52,3,34,8,36,88,52,0,52,3,129,33,8,36,88,7,0,53,241,53,240,52,2,52,4,37,88,52,240,52,241,80,2,87,12,20,18,68,52,3,129,66,8,53,3,52,4,37,8,53,4,66,255,180,34,137])),p(c,"feeKey",t.b64.encode("MessageFee")),p(c,"verifyVaa",t.bytes.encode("verifyVAA")),p(c,"verifySigs",t.bytes.encode("verifySigs")),p(c,"publishMessage",t.bytes.encode("publishMessage"));let I=c;t.registerProtocol("Algorand","WormholeCore",I);const z=Object.freeze(Object.defineProperty({__proto__:null,AlgorandWormholeCore:I,BITS_PER_BYTE:L,BITS_PER_KEY:R,MAX_BITS:N,MAX_BYTES:V,MAX_BYTES_PER_KEY:U,MAX_KEYS:O,SEED_AMT:K,StorageLogicSig:u,varint:m},Symbol.toStringTag,{value:"Module"}));exports.AlgorandUnsignedTransaction=j;exports.AlgorandWormholeCore=I;exports.StorageLogicSig=u;exports.index=z;
1
+ "use strict";var D=Object.defineProperty;var q=(o,e,n)=>e in o?D(o,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[e]=n;var p=(o,e,n)=>q(o,typeof e!="symbol"?e+"":e,n);const t=require("./index-BZ7LatAr.js"),H=require("./algorand-BZfir-Gt.js");class j{constructor(e,n,r,s,i=!1){p(this,"transaction");p(this,"network");p(this,"chain");p(this,"description");p(this,"parallelizable");this.transaction=e,this.network=n,this.chain=r,this.description=s,this.parallelizable=i}}const K=1002e3,O=15,U=127,L=8,R=U*L,V=U*O,N=L*V,m={_limit:127,encodingLength:o=>{let e=0;for(;o>=128;e++)o>>=7;return e+1},encode:(o,e,n)=>{if(typeof o=="bigint"&&(o=t.safeBigIntToNumber(o)),o<0)throw new RangeError("value must be unsigned");const r=m.encodingLength(o);if(e=e||new ArrayBuffer(r),n=n||0,e.byteLength<n+r)throw new RangeError("the buffer is too small to encode the number at the offset");const s=new Uint8Array(e,n);let i=0;for(;m._limit<o;)s[i++]=o&m._limit|128,o>>=7;return s[i]=Number(o),s},decode:(o,e=0)=>{let n=0,r=0,s;do{if(s=o[e+r],s===void 0)throw new RangeError("offset out of range");n+=(s&m._limit)<<r*7,r++}while(128<=s);return n}},u={forMessageId:(o,e)=>{const n=t.decodeAddress(t.getApplicationAddress(o)).publicKey,r=e.emitter.toUniversalAddress().toUint8Array(),s=t.bignum.toBytes(BigInt(t.toChainId(e.chain)),2),i=t.bytes.concat(s,r);return u.fromData({appId:o,appAddress:n,idx:e.sequence/BigInt(N),address:i})},forWrappedAsset:(o,e)=>{if(t.isNative(e.address))throw new Error("native asset cannot be a wrapped asset");const n=t.decodeAddress(t.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:n,idx:BigInt(t.toChainId(e.chain)),address:e.address.toUniversalAddress().toUint8Array()})},forNativeAsset:(o,e)=>{const n=t.decodeAddress(t.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:n,idx:e,address:t.bytes.encode("native")})},forGuardianSet:(o,e)=>{const n=t.decodeAddress(t.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:n,idx:BigInt(e),address:t.bytes.encode("guardian")})},forEmitter:(o,e)=>{const n=t.decodeAddress(t.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:n,idx:0n,address:e})},_encode:o=>typeof o=="bigint"?[t.hex.encode(m.encode(o))]:[t.hex.encode(m.encode(o.length)),t.hex.encode(o)],fromData:o=>{const e=["0620010181",...u._encode(o.idx),"4880",...u._encode(o.address),"483110810612443119221244311881",...u._encode(o.appId),"1244312080",...u._encode(o.appAddress),"124431018100124431093203124431153203124422"],n=t.hex.decode(e.join(""));return new t.LogicSigAccount(n)},decodeLocalState:async(o,e,n)=>{let r;try{const a=await o.accountApplicationInformation(n,t.safeBigIntToNumber(e)).do();r=t.AccountApplicationResponse.from_obj_for_encoding(a).appLocalState}catch{return new Uint8Array}const s=t.b64.encode("meta");let i=new Map;for(const a of r.keyValue){if(a.key===s)continue;const g=t.b64.decode(a.key)[0],l=t.b64.decode(a.value.bytes);i.set(g,l)}const d=[];for(let a=0;a<O;a++)i.has(a)&&d.push(i.get(a));return t.bytes.concat(...d)},checkBitsSet:async(o,e,n,r)=>{let s=!1,i;const d=await o.accountInformation(n).do(),g=t.Account.from_obj_for_encoding(d).appsLocalState;if(g&&g.forEach(h=>{BigInt(h.id)===e&&(i=h.keyValue)}),(i==null?void 0:i.length)===0)return s;const l=BigInt(N),f=BigInt(8),y=r/l*l,b=t.safeBigIntToNumber(r-y),T=Math.floor(b/R),x=Math.floor((b-T*R)/8),B=t.b64.encode(t.bignum.toBytes(T,1));return i==null||i.forEach(h=>{if(h.key===B){const _=t.dist.Buffer.from(h.value.bytes,"base64"),w=1<<t.safeBigIntToNumber(r%f);s=(_[x]&w)!=0;return}}),s},storageAccountExists:async(o,e,n)=>{try{const r=await o.accountApplicationInformation(e,t.safeBigIntToNumber(n)).do();return Object.keys(r).length>0}catch{}return!1}},c=class c{constructor(e,n,r,s){p(this,"network");p(this,"chain");p(this,"connection");p(this,"contracts");p(this,"chainId");p(this,"coreAppId");p(this,"coreAppAddress");p(this,"tokenBridgeAppId");p(this,"tokenBridgeAppAddress");if(this.network=e,this.chain=n,this.connection=r,this.contracts=s,this.chainId=t.toChainId(n),!s.coreBridge)throw new Error(`Core contract address for chain ${n} not found`);const i=BigInt(s.coreBridge);if(this.coreAppId=i,this.coreAppAddress=t.getApplicationAddress(i),!s.tokenBridge)throw new Error(`TokenBridge contract address for chain ${n} not found`);const d=BigInt(s.tokenBridge);this.tokenBridgeAppId=d,this.tokenBridgeAppAddress=t.getApplicationAddress(d)}getGuardianSet(e){throw new Error("Method not implemented.")}async*verifyMessage(e,n,r){const s=new t.AlgorandAddress(e).toString(),i=await c.submitVAAHeader(this.connection,this.coreAppId,r??this.coreAppId,n,s);for(const d of i.txs)yield this.createUnsignedTx(d,"Core.verifyMessage")}static async fromRpc(e,n){const[r,s]=await H.AlgorandPlatform.chainFromRpc(e),i=n[s];if(i.network!==r)throw new Error(`Network mismatch: ${i.network} !== ${r}`);return new c(r,s,e,i.contracts)}async*publishMessage(e,n){const r=new t.AlgorandAddress(e),s=r.toString(),i=await this.connection.getTransactionParams().do(),d=u.forEmitter(this.coreAppId,r.toUint8Array()),{accounts:a,txs:g}=await c.maybeCreateStorageTx(this.connection,s,this.coreAppId,d,i);for(const f of g)yield this.createUnsignedTx(f,"Core.publishMessage",!0);const l=t.makeApplicationCallTxnFromObject({from:s,appIndex:t.safeBigIntToNumber(this.coreAppId),appArgs:[c.publishMessage,n,t.bignum.toBytes(0n,8)],accounts:a,onComplete:t.OnApplicationComplete.NoOpOC,suggestedParams:i});yield this.createUnsignedTx({tx:l},"Core.publishMessage",!0)}async getMessageFee(){var s;const e=await this.connection.getApplicationByID(t.safeBigIntToNumber(this.coreAppId)).do(),r=(s=t.Application.from_obj_for_encoding(e).params.globalState)==null?void 0:s.find(i=>i.key===c.feeKey);return r?BigInt(r.value.uint):0n}async getGuardianSetIndex(){throw new Error("Not implemented")}async parseTransaction(e){const n=await this.connection.pendingTransactionInformation(e).do(),r=t.PendingTransactionResponse.from_obj_for_encoding(n);return this.parseTx(r).map(s=>({chain:s.emitterChain,emitter:s.emitterAddress,sequence:s.sequence}))}async parseMessages(e){const n=await this.connection.pendingTransactionInformation(e).do(),r=t.PendingTransactionResponse.from_obj_for_encoding(n);return this.parseTx(r)}parseTx(e){const n=[];if(e.innerTxns&&e.innerTxns.length>0&&n.push(...e.innerTxns.flatMap(g=>this.parseTx(g))),BigInt(e.txn.txn.apid??0)!==this.coreAppId||!e.logs||e.logs.length===0)return n;const r=e.txn.txn.apaa??[];if(r.length!==3||!t.bytes.equals(new Uint8Array(r[0]),c.publishMessage))return n;const s=t.bignum.decode(e.logs[0]),i=new t.AlgorandAddress(e.txn.txn.snd).toUniversalAddress(),d=new Uint8Array(r[1]),a=t.bignum.decode(r[2]);return n.push(t.createVAA("Uint8Array",{emitterChain:this.chain,emitterAddress:i,sequence:s,guardianSet:0,timestamp:0,consistencyLevel:0,nonce:Number(a),payload:d,signatures:[]})),n}static async maybeCreateStorageTx(e,n,r,s,i){const d=t.getApplicationAddress(r),a=s.address(),g=[];if(await u.storageAccountExists(e,a,r))return{accounts:[a],txs:g};i=i??await e.getTransactionParams().do();const l=t.makePaymentTxnWithSuggestedParamsFromObject({from:n,to:a,amount:K,suggestedParams:i});l.fee=l.fee*2,g.push({tx:l});const f=t.makeApplicationOptInTxnFromObject({from:a,appIndex:t.safeBigIntToNumber(r),rekeyTo:d,suggestedParams:i});return f.fee=0,g.push({tx:f,signer:{address:s.address(),signTxn:y=>Promise.resolve(t.signLogicSigTransaction(y,s).blob)}}),{accounts:[a],txs:g}}static async submitVAAHeader(e,n,r,s,i,d){d=d??await e.getTransactionParams().do();let a=[];const g=u.forMessageId(r,{chain:s.emitterChain,sequence:s.sequence,emitter:s.emitterAddress}),{accounts:l,txs:f}=await c.maybeCreateStorageTx(e,i,r,g,d);a.push(...f);const y=u.forGuardianSet(n,s.guardianSet),{accounts:[b],txs:T}=await c.maybeCreateStorageTx(e,i,n,y,d);a.push(...T);let x=[...l,b];const B=await u.decodeLocalState(e,n,b),h=t.keccak_256(s.hash),_=s.signatures.length,w=Math.ceil(_/c.MAX_SIGS_PER_TXN),k=20,C=new t.LogicSigAccount(c.ALGO_VERIFY);for(let M=0;M<w;M++){const v=M*c.MAX_SIGS_PER_TXN,S=s.signatures.slice(v,v+c.MAX_SIGS_PER_TXN),F=S.length*k,G=new Uint8Array(F);for(let A=0;A<S.length;A++){const P=S[A],Y=B.slice(P.guardianIndex*k+1,(P.guardianIndex+1)*k+1);G.set(Y,A*20)}const X=t.makeApplicationCallTxnFromObject({appArgs:[c.verifySigs,t.bytes.concat(...S.map(A=>t.bytes.concat(new Uint8Array([A.guardianIndex]),A.signature.encode()))),G,h],accounts:x,appIndex:t.safeBigIntToNumber(n),from:c.ALGO_VERIFY_HASH,onComplete:t.OnApplicationComplete.NoOpOC,suggestedParams:d});X.fee=0,a.push({tx:X,signer:{address:C.address(),signTxn:A=>Promise.resolve(t.signLogicSigTransaction(A,C).blob)}})}const E=t.makeApplicationCallTxnFromObject({appArgs:[c.verifyVaa,t.serialize(s)],accounts:x,appIndex:t.safeBigIntToNumber(n),from:i,onComplete:t.OnApplicationComplete.NoOpOC,suggestedParams:d});return E.fee=E.fee*(2+w),a.push({tx:E}),{accounts:x,txs:a}}createUnsignedTx(e,n,r=!0){return new j(e,this.network,this.chain,n,r)}};p(c,"MAX_SIGS_PER_TXN",6),p(c,"ALGO_VERIFY_HASH","EZATROXX2HISIRZDRGXW4LRQ46Z6IUJYYIHU3PJGP7P5IQDPKVX42N767A"),p(c,"ALGO_VERIFY",new Uint8Array([6,32,4,1,0,32,20,38,1,0,49,32,50,3,18,68,49,1,35,18,68,49,16,129,6,18,68,54,26,1,54,26,3,54,26,2,136,0,3,68,34,67,53,2,53,1,53,0,40,53,240,40,53,241,52,0,21,53,5,35,53,3,35,53,4,52,3,52,5,12,65,0,68,52,1,52,0,52,3,129,65,8,34,88,23,52,0,52,3,34,8,36,88,52,0,52,3,129,33,8,36,88,7,0,53,241,53,240,52,2,52,4,37,88,52,240,52,241,80,2,87,12,20,18,68,52,3,129,66,8,53,3,52,4,37,8,53,4,66,255,180,34,137])),p(c,"feeKey",t.b64.encode("MessageFee")),p(c,"verifyVaa",t.bytes.encode("verifyVAA")),p(c,"verifySigs",t.bytes.encode("verifySigs")),p(c,"publishMessage",t.bytes.encode("publishMessage"));let I=c;t.registerProtocol("Algorand","WormholeCore",I);const z=Object.freeze(Object.defineProperty({__proto__:null,AlgorandWormholeCore:I,BITS_PER_BYTE:L,BITS_PER_KEY:R,MAX_BITS:N,MAX_BYTES:V,MAX_BYTES_PER_KEY:U,MAX_KEYS:O,SEED_AMT:K,StorageLogicSig:u,varint:m},Symbol.toStringTag,{value:"Module"}));exports.AlgorandUnsignedTransaction=j;exports.AlgorandWormholeCore=I;exports.StorageLogicSig=u;exports.index=z;
@@ -1,7 +1,7 @@
1
- import { e as bt, D as No } from "./events-BIfEV615.mjs";
2
- import { a1 as $o, aQ as dw, Z as ue, ac as fw, dt as _u } from "./index-BDhzG0Bz.mjs";
3
- import { s as Rh, f as Nh, a as $h, d as Ah, c as L, g as gw, b as Ao, e as Ch, h as xh, x as Th, r as Fh, H as yw, i as Dh, j as mw } from "./index-DTj0BYI6.mjs";
4
- import { I as ur, f as dt, t as st, c as Eu, C as vw, d as ww, r as bw, a as Ar, g as qh, i as wt, b as Ps, W as _w, E as Le, y as We, o as Ss, k as Os, h as Ew, e as Iu, j as Iw, s as Pw, l as po, m as jh, n as Sw, p as Co, q as Rs, u as xo, v as Kt, w as Ow, x as Pu, z as Rw } from "./index-B-bMfv9J.mjs";
1
+ import { e as bt, D as No } from "./events-pgsgrP1S.mjs";
2
+ import { a1 as $o, aQ as dw, Z as ue, ac as fw, dt as _u } from "./index-EhUlCH18.mjs";
3
+ import { s as Rh, f as Nh, a as $h, d as Ah, c as L, g as gw, b as Ao, e as Ch, h as xh, x as Th, r as Fh, H as yw, i as Dh, j as mw } from "./index-BYv5Tbwe.mjs";
4
+ import { I as ur, f as dt, t as st, c as Eu, C as vw, d as ww, r as bw, a as Ar, g as qh, i as wt, b as Ps, W as _w, E as Le, y as We, o as Ss, k as Os, h as Ew, e as Iu, j as Iw, s as Pw, l as po, m as jh, n as Sw, p as Co, q as Rs, u as xo, v as Kt, w as Ow, x as Pu, z as Rw } from "./index-DG5KwGj7.mjs";
5
5
  var Nw = {};
6
6
  (function(a) {
7
7
  const t = $h, r = Ah, s = Rh, o = Nh, u = (f) => f == null, l = Symbol("encodeFragmentIdentifier");
@@ -7726,7 +7726,7 @@ class ko {
7726
7726
  if (this.rpc = this.getRpcConfig(t), this.chainId = this.rpc.chains.length ? Is(this.rpc.chains) : Is(this.rpc.optionalChains), this.signer = await oI.init({ projectId: this.rpc.projectId, metadata: this.rpc.metadata, disableProviderPing: t.disableProviderPing, relayUrl: t.relayUrl, storageOptions: t.storageOptions }), this.registerEventListeners(), await this.loadPersistedSession(), this.rpc.showQrModal) {
7727
7727
  let r;
7728
7728
  try {
7729
- const { WalletConnectModal: s } = await import("./index-BUcxdUpo.mjs").then((o) => o.i);
7729
+ const { WalletConnectModal: s } = await import("./index-CkyGUP8I.mjs").then((o) => o.i);
7730
7730
  r = s;
7731
7731
  } catch {
7732
7732
  throw new Error("To use QR modal, please install @walletconnect/modal package");