@wormhole-foundation/wormhole-connect 3.0.2-beta.0-development → 3.0.2-beta.1-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 (290) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/{basic-ChNCp6rI.js → basic-PUjrTVXb.js} +1 -1
  3. package/dist/assets/{evm-DSirgd5b.js → evm-CO5UWnAY.js} +2 -2
  4. package/dist/assets/{index-L-lC4rqb.js → index-1lzfHdT2.js} +1 -1
  5. package/dist/assets/{index-CHfaLf5J.js → index-DBVZDYF7.js} +1 -1
  6. package/dist/assets/index-DKlPX3ZI.js +1 -0
  7. package/dist/assets/{index-BtCrMDAu.js → index-Ddk7n7Ti.js} +1 -1
  8. package/dist/assets/{index-HhyysXFu.js → index-DyUmO4PR.js} +1 -1
  9. package/dist/assets/{index-BiwA3Bbq.js → index-MMzKxP1N.js} +1 -1
  10. package/dist/assets/{secp256k1-Cd7rIav0.js → secp256k1-0LtSM2L1.js} +1 -1
  11. package/dist/assets/{secp256k1-BQBOR8e3.js → secp256k1-DwTU3j1N.js} +1 -1
  12. package/dist/assets/{solana-DcwLWeKT.js → solana-DlGdMBSL.js} +4 -4
  13. package/dist/assets/{w3m-modal-DdptuLHe.js → w3m-modal-DD9Jgepz.js} +1 -1
  14. package/dist/main.js +72 -70
  15. package/dist/src/AppRouter.d.ts.map +1 -1
  16. package/dist/src/config/mainnet/tokens.d.ts.map +1 -1
  17. package/dist/src/config/testnet/tokens.d.ts.map +1 -1
  18. package/dist/src/config/tokens.d.ts +1 -1
  19. package/dist/src/config/tokens.d.ts.map +1 -1
  20. package/dist/src/exports/index.d.ts +2 -2
  21. package/dist/src/exports/index.d.ts.map +1 -1
  22. package/dist/src/hooks/useFetchQuotes.d.ts.map +1 -1
  23. package/dist/src/icons/Chains/PLUME.d.ts.map +1 -1
  24. package/dist/src/icons/PoweredBy.d.ts.map +1 -1
  25. package/dist/src/icons/Routing.d.ts +5 -0
  26. package/dist/src/icons/Routing.d.ts.map +1 -0
  27. package/dist/src/icons/Tokens/PLUME.d.ts.map +1 -1
  28. package/dist/src/store/transferInput.d.ts +1 -1
  29. package/dist/src/store/transferInput.d.ts.map +1 -1
  30. package/dist/src/utils/coingecko.d.ts.map +1 -1
  31. package/dist/src/utils/formatNumber.d.ts +23 -0
  32. package/dist/src/utils/formatNumber.d.ts.map +1 -0
  33. package/dist/src/utils/index.d.ts +3 -1
  34. package/dist/src/utils/index.d.ts.map +1 -1
  35. package/dist/src/utils/routes.d.ts +12 -0
  36. package/dist/src/utils/routes.d.ts.map +1 -0
  37. package/dist/src/views/v2/Bridge/AmountInput/index.d.ts.map +1 -1
  38. package/dist/src/views/v2/Bridge/AssetPicker/TokenItem.d.ts.map +1 -1
  39. package/dist/src/views/v2/Bridge/Routes/SingleRoute.d.ts.map +1 -1
  40. package/dist/src/views/v2/Redeem/TransactionDetails/index.d.ts.map +1 -1
  41. package/dist/src/views/v3/Bridge/AmountInput/index.d.ts.map +1 -1
  42. package/dist/src/views/v3/Bridge/AssetPicker/TokenItem.d.ts.map +1 -1
  43. package/dist/src/views/v3/Bridge/AssetPicker/index.d.ts.map +1 -1
  44. package/dist/src/views/v3/Bridge/GasSlider/index.d.ts.map +1 -1
  45. package/dist/src/views/v3/Bridge/Routes/Eta.d.ts +6 -0
  46. package/dist/src/views/v3/Bridge/Routes/Eta.d.ts.map +1 -0
  47. package/dist/src/views/v3/Bridge/Routes/RouteBadge.d.ts.map +1 -1
  48. package/dist/src/views/v3/Bridge/Routes/RoutesBottomSheet.d.ts +7 -6
  49. package/dist/src/views/v3/Bridge/Routes/RoutesBottomSheet.d.ts.map +1 -1
  50. package/dist/src/views/v3/Bridge/Routes/RoutesLink.d.ts +7 -0
  51. package/dist/src/views/v3/Bridge/Routes/RoutesLink.d.ts.map +1 -0
  52. package/dist/src/views/v3/Bridge/Routes/RoutesList.d.ts +2 -1
  53. package/dist/src/views/v3/Bridge/Routes/RoutesList.d.ts.map +1 -1
  54. package/dist/src/views/v3/Bridge/Routes/RoutesLoader.d.ts +4 -0
  55. package/dist/src/views/v3/Bridge/Routes/RoutesLoader.d.ts.map +1 -0
  56. package/dist/src/views/v3/Bridge/Routes/RoutesModal.d.ts +6 -5
  57. package/dist/src/views/v3/Bridge/Routes/RoutesModal.d.ts.map +1 -1
  58. package/dist/src/views/v3/Bridge/Routes/SingleRoute.d.ts +1 -0
  59. package/dist/src/views/v3/Bridge/Routes/SingleRoute.d.ts.map +1 -1
  60. package/dist/src/views/v3/Bridge/Routes/index.d.ts.map +1 -1
  61. package/dist/src/views/v3/Redeem/TransactionDetails/index.d.ts.map +1 -1
  62. package/lib/account-Br8E7RB6.js +1 -0
  63. package/lib/{account-BTK2b2Fv.mjs → account-CVa_3S2g.mjs} +1 -1
  64. package/lib/{address-8wLqn60W.mjs → address-BApwdEpr.mjs} +96 -96
  65. package/lib/address-BwQqFkyh.js +1 -0
  66. package/lib/address-C2pxq9b2.js +1 -0
  67. package/lib/{address-n0gAFMrZ.mjs → address-f6joE_ig.mjs} +12 -12
  68. package/lib/aptos-CMRGggVs.js +2 -0
  69. package/lib/{aptos-CK-j196x.js → aptos-CTKQNmlP.js} +1 -1
  70. package/lib/{aptos-B-DJQlwt.mjs → aptos-CfFbx7uf.mjs} +9 -9
  71. package/lib/{aptos-Bwcz9wZX.mjs → aptos-fozuppXh.mjs} +3 -3
  72. package/lib/{basic-DHWVLmCq.mjs → basic-BA2aRJJn.mjs} +2 -2
  73. package/lib/{basic-B5ZFelC_.js → basic-DUWaF2I0.js} +1 -1
  74. package/lib/{basic-E2M-9h1u.js → basic-DeiUayOA.js} +1 -1
  75. package/lib/{basic-Pour9Ggp.mjs → basic-DoC8u7J8.mjs} +2 -2
  76. package/lib/{blake2b-C5HyObld.mjs → blake2b-BGxWUAjG.mjs} +23 -23
  77. package/lib/blake2b-Fj1aPKgL.js +1 -0
  78. package/lib/{browser-ponyfill-jK8MKVVg.mjs → browser-ponyfill-D5AN8ZPp.mjs} +1 -1
  79. package/lib/browser-ponyfill-Dn6gsMYK.js +2 -0
  80. package/lib/{chain-Bm6u6eUF.mjs → chain-DAw2I5H8.mjs} +1 -1
  81. package/lib/chain-DnPXlO8g.js +1 -0
  82. package/lib/chunk-KJH4KKG6-BjF7YUcU.js +470 -0
  83. package/lib/{chunk-KJH4KKG6-DJsu-Y-X.mjs → chunk-KJH4KKG6-DmVjhXO7.mjs} +144 -144
  84. package/lib/{constants-Cf2YMjNo.js → constants-BtNs_2F4.js} +1 -1
  85. package/lib/{constants-B7AbX6qr.mjs → constants-Dcc2nVaW.mjs} +3 -3
  86. package/lib/contract-BEHYQLvJ.js +1 -0
  87. package/lib/{contract-llnN6ki0.mjs → contract-BkMAZomO.mjs} +123 -123
  88. package/lib/{core-CF5c7Vev.mjs → core-BHV42Qa0.mjs} +25 -26
  89. package/lib/core-CV23yxnG.js +889 -0
  90. package/lib/create-CHcGblj6.js +1 -0
  91. package/lib/{create-Dm87_0zG.mjs → create-CKLtL7hr.mjs} +1 -1
  92. package/lib/{evm-BYIGg8e4.mjs → evm-Bf7qbM19.mjs} +42 -42
  93. package/lib/{evm-B2hUWkt7.js → evm-ClWkquRx.js} +2 -2
  94. package/lib/{evm-fvvpk-li.mjs → evm-DhMoy8cH.mjs} +6 -6
  95. package/lib/{evm-DFNbMHoa.js → evm-tXmzU9Xp.js} +2 -2
  96. package/lib/executor.js +1 -1
  97. package/lib/executor.mjs +145 -138
  98. package/lib/hosted.js +1 -1
  99. package/lib/hosted.mjs +1 -1
  100. package/lib/{index-Cwo5AKUC.mjs → index-1rCCpdwd.mjs} +5 -5
  101. package/lib/{index-DBCa3k0j.mjs → index-3HvzWPL7.mjs} +9 -9
  102. package/lib/{index-MOwE6ses.mjs → index-B7ztYPhr.mjs} +21 -22
  103. package/lib/index-BM-0SeYB.js +1 -0
  104. package/lib/{index-DiQ8Ytrt.mjs → index-BTnpftLz.mjs} +1 -1
  105. package/lib/{index-BiCMaXJS.js → index-BWQMi6Rj.js} +1 -1
  106. package/lib/index-BbgKw2pu.js +1 -0
  107. package/lib/index-BblcpkoK.js +1 -0
  108. package/lib/index-Bfblsmud.js +1 -0
  109. package/lib/{index-C_0yAOSX.mjs → index-BfkFXEnG.mjs} +25082 -24072
  110. package/lib/{index-fi1sh8vr.mjs → index-BijBPDRn.mjs} +2 -2
  111. package/lib/index-BoquY9R2.js +337 -0
  112. package/lib/index-C2NtsO9Q.js +1 -0
  113. package/lib/{index-CNuk-XLX.mjs → index-C4JmrizV.mjs} +4 -4
  114. package/lib/index-C8TtXpOf.js +1 -0
  115. package/lib/index-CB8kOyIP.js +1 -0
  116. package/lib/index-CInVjUCW.js +1 -0
  117. package/lib/{index-BF11RebI.mjs → index-CLTklDbp.mjs} +1 -1
  118. package/lib/index-CQvgeH_r.js +1 -0
  119. package/lib/{index-DzYjoSJp.mjs → index-CUnOYRFQ.mjs} +23 -24
  120. package/lib/{index-DGh9LzN1.mjs → index-CWe_BTdo.mjs} +31 -31
  121. package/lib/{index-2Bz1Np4K.mjs → index-CZ91lJ9M.mjs} +5 -5
  122. package/lib/{index-Dgy1FO7C.js → index-CgyVnj6U.js} +1 -1
  123. package/lib/{index-BzJcFdt_.mjs → index-Clr2JjoJ.mjs} +44 -44
  124. package/lib/index-CnnCCv6Q.js +1 -0
  125. package/lib/{index-CJnRWlFf.mjs → index-CwxGLNEk.mjs} +48 -49
  126. package/lib/index-D7BLfz05.js +1 -0
  127. package/lib/index-DM7C-wvQ.js +3 -0
  128. package/lib/{index-DhIh3xiW.mjs → index-DNy_sNGr.mjs} +8 -8
  129. package/lib/{index-BZaRg0yd.mjs → index-DVcaDWmz.mjs} +1 -1
  130. package/lib/{index-CsAigASU.mjs → index-DWOP9OBp.mjs} +17 -17
  131. package/lib/{index-CTLz8Fz0.mjs → index-Dda5qc2t.mjs} +13 -14
  132. package/lib/{index-CLBXF_zH.mjs → index-DeaiBvpG.mjs} +16 -16
  133. package/lib/index-HOuGP-7b.js +1 -0
  134. package/lib/{index-Dt2uNp-N.mjs → index-KZve3tYJ.mjs} +4 -4
  135. package/lib/{index-CJDBidKv.mjs → index-SIyXqCAN.mjs} +41 -41
  136. package/lib/index-WhVYPMUr.js +1 -0
  137. package/lib/index-hmjT4xa7.js +1 -0
  138. package/lib/index-ledagFNU.js +1 -0
  139. package/lib/index-pbRVlgcN.js +1 -0
  140. package/lib/{index-BpQXUhR4.mjs → index-qK7AyMAk.mjs} +23 -27
  141. package/lib/index-ttZu99PZ.js +1 -0
  142. package/lib/{index.es-BqRBGIq6.mjs → index.es-BXRQf6Oi.mjs} +25 -26
  143. package/lib/index.es-BjGaOok5.js +11 -0
  144. package/lib/index.es-D6S74vhi.js +27 -0
  145. package/lib/{index.es-DgCZuUzB.mjs → index.es-cOw8juwf.mjs} +741 -737
  146. package/lib/index.js +1 -1
  147. package/lib/index.mjs +17 -16
  148. package/lib/mayan.js +3 -3
  149. package/lib/mayan.mjs +918 -891
  150. package/lib/mint-CL36R6ED.js +1 -0
  151. package/lib/{mint-Dc-VsiAn.mjs → mint-DunEG1jV.mjs} +32 -33
  152. package/lib/ntt.js +1 -1
  153. package/lib/ntt.mjs +2332 -2373
  154. package/lib/platform-7vCWzCny.js +1 -0
  155. package/lib/platform-BKhoO9So.js +1 -0
  156. package/lib/{platform-B95L0Vxv.mjs → platform-BN6LFtXE.mjs} +16 -16
  157. package/lib/{platform-DnP_1wGA.mjs → platform-BYLu9SzP.mjs} +4 -4
  158. package/lib/platform-Bbe26nx7.js +1 -0
  159. package/lib/{platform-DiG7WY9Z.mjs → platform-DCgWqmh1.mjs} +4 -4
  160. package/lib/{provider-jsonrpc-CRABh2gN.mjs → provider-jsonrpc-Bmgnrmpy.mjs} +155 -155
  161. package/lib/provider-jsonrpc-CbtP2Ffg.js +1 -0
  162. package/lib/{secp256k1-zHHDNAlH.mjs → secp256k1-BDQEvyHq.mjs} +1 -1
  163. package/lib/{secp256k1-obBDPYM-.mjs → secp256k1-C77Oh9AA.mjs} +1 -1
  164. package/lib/{secp256k1-2hq3Jk4g.mjs → secp256k1-CCn2vlXj.mjs} +1 -1
  165. package/lib/{secp256k1-B94G4gyy.js → secp256k1-CHAR40au.js} +1 -1
  166. package/lib/{secp256k1-DCcAh19h.js → secp256k1-D-DmPYcJ.js} +1 -1
  167. package/lib/{secp256k1-CjndBUS7.js → secp256k1-DYWDlveU.js} +1 -1
  168. package/lib/{signer-N_ccpPOz.mjs → signer-BIcn81N5.mjs} +18 -18
  169. package/lib/signer-H7atraks.js +1 -0
  170. package/lib/{solana-_Ha4YgiP.mjs → solana-B0QSg7B3.mjs} +30 -30
  171. package/lib/solana-Cs5VyB20.js +900 -0
  172. package/lib/solana-uvHG8JV5.js +1 -0
  173. package/lib/solana-zyfOlbhb.mjs +18 -0
  174. package/lib/{solanaEmbed.esm-DK5RIquB.mjs → solanaEmbed.esm-BqdznDuW.mjs} +623 -622
  175. package/lib/solanaEmbed.esm-D8vtESE6.js +10 -0
  176. package/lib/src/AppRouter.d.ts.map +1 -1
  177. package/lib/src/config/mainnet/tokens.d.ts.map +1 -1
  178. package/lib/src/config/testnet/tokens.d.ts.map +1 -1
  179. package/lib/src/config/tokens.d.ts +1 -1
  180. package/lib/src/config/tokens.d.ts.map +1 -1
  181. package/lib/src/exports/index.d.ts +2 -2
  182. package/lib/src/exports/index.d.ts.map +1 -1
  183. package/lib/src/hooks/useFetchQuotes.d.ts.map +1 -1
  184. package/lib/src/icons/Chains/PLUME.d.ts.map +1 -1
  185. package/lib/src/icons/PoweredBy.d.ts.map +1 -1
  186. package/lib/src/icons/Routing.d.ts +5 -0
  187. package/lib/src/icons/Routing.d.ts.map +1 -0
  188. package/lib/src/icons/Tokens/PLUME.d.ts.map +1 -1
  189. package/lib/src/store/transferInput.d.ts +1 -1
  190. package/lib/src/store/transferInput.d.ts.map +1 -1
  191. package/lib/src/utils/coingecko.d.ts.map +1 -1
  192. package/lib/src/utils/formatNumber.d.ts +23 -0
  193. package/lib/src/utils/formatNumber.d.ts.map +1 -0
  194. package/lib/src/utils/index.d.ts +3 -1
  195. package/lib/src/utils/index.d.ts.map +1 -1
  196. package/lib/src/utils/routes.d.ts +12 -0
  197. package/lib/src/utils/routes.d.ts.map +1 -0
  198. package/lib/src/views/v2/Bridge/AmountInput/index.d.ts.map +1 -1
  199. package/lib/src/views/v2/Bridge/AssetPicker/TokenItem.d.ts.map +1 -1
  200. package/lib/src/views/v2/Bridge/Routes/SingleRoute.d.ts.map +1 -1
  201. package/lib/src/views/v2/Redeem/TransactionDetails/index.d.ts.map +1 -1
  202. package/lib/src/views/v3/Bridge/AmountInput/index.d.ts.map +1 -1
  203. package/lib/src/views/v3/Bridge/AssetPicker/TokenItem.d.ts.map +1 -1
  204. package/lib/src/views/v3/Bridge/AssetPicker/index.d.ts.map +1 -1
  205. package/lib/src/views/v3/Bridge/GasSlider/index.d.ts.map +1 -1
  206. package/lib/src/views/v3/Bridge/Routes/Eta.d.ts +6 -0
  207. package/lib/src/views/v3/Bridge/Routes/Eta.d.ts.map +1 -0
  208. package/lib/src/views/v3/Bridge/Routes/RouteBadge.d.ts.map +1 -1
  209. package/lib/src/views/v3/Bridge/Routes/RoutesBottomSheet.d.ts +7 -6
  210. package/lib/src/views/v3/Bridge/Routes/RoutesBottomSheet.d.ts.map +1 -1
  211. package/lib/src/views/v3/Bridge/Routes/RoutesLink.d.ts +7 -0
  212. package/lib/src/views/v3/Bridge/Routes/RoutesLink.d.ts.map +1 -0
  213. package/lib/src/views/v3/Bridge/Routes/RoutesList.d.ts +2 -1
  214. package/lib/src/views/v3/Bridge/Routes/RoutesList.d.ts.map +1 -1
  215. package/lib/src/views/v3/Bridge/Routes/RoutesLoader.d.ts +4 -0
  216. package/lib/src/views/v3/Bridge/Routes/RoutesLoader.d.ts.map +1 -0
  217. package/lib/src/views/v3/Bridge/Routes/RoutesModal.d.ts +6 -5
  218. package/lib/src/views/v3/Bridge/Routes/RoutesModal.d.ts.map +1 -1
  219. package/lib/src/views/v3/Bridge/Routes/SingleRoute.d.ts +1 -0
  220. package/lib/src/views/v3/Bridge/Routes/SingleRoute.d.ts.map +1 -1
  221. package/lib/src/views/v3/Bridge/Routes/index.d.ts.map +1 -1
  222. package/lib/src/views/v3/Redeem/TransactionDetails/index.d.ts.map +1 -1
  223. package/lib/{sui-CQcQ6w_P.mjs → sui-B38DyOqM.mjs} +44 -44
  224. package/lib/{sui-BplKFZQu.mjs → sui-BpfnZR4f.mjs} +3 -3
  225. package/lib/sui-CT9MWY38.js +1 -0
  226. package/lib/{sui-_hvmCvD8.js → sui-DXQAMRQJ.js} +1 -1
  227. package/lib/{tokens-DNv0ZNvU.js → tokens-CmINcwKk.js} +31 -31
  228. package/lib/{tokens-Dl4YwW18.mjs → tokens-YxAPPVy3.mjs} +1726 -1724
  229. package/lib/transfer-BQ72fByU.js +1 -0
  230. package/lib/transfer-bTW0j9yh.mjs +58 -0
  231. package/lib/units-Ckije3Qv.js +1 -0
  232. package/lib/{units-DPWUSE6J.mjs → units-CtyvuzxQ.mjs} +13 -13
  233. package/lib/unsignedTransaction-C6Qp42VS.js +1 -0
  234. package/lib/{unsignedTransaction-DwcUilyN.mjs → unsignedTransaction-CXB-QCUC.mjs} +18 -18
  235. package/lib/{w3m-modal-BJILsxDp.mjs → w3m-modal-B7LUHLWC.mjs} +2 -2
  236. package/lib/{w3m-modal-D4CpFxO2.mjs → w3m-modal-BOTzBqbc.mjs} +2 -2
  237. package/lib/{w3m-modal-CrfHWSrF.js → w3m-modal-BTb03-7B.js} +1 -1
  238. package/lib/{w3m-modal-CBG2MSPp.js → w3m-modal-xmdf4r6V.js} +1 -1
  239. package/lib/web3-COTIsLs8.js +22 -0
  240. package/lib/{address-B-XN4tFw.mjs → web3-DYVeiqSa.mjs} +6599 -6576
  241. package/package.json +32 -32
  242. package/dist/assets/index-BWPgrXHs.js +0 -1
  243. package/lib/account-cRt2xMoW.js +0 -1
  244. package/lib/address-BGujeWtN.js +0 -22
  245. package/lib/address-C7DIAk4M.js +0 -1
  246. package/lib/address-KNhRm6oe.js +0 -1
  247. package/lib/aptos-f5TqmvqV.js +0 -2
  248. package/lib/blake2b-B-MRXUPb.js +0 -1
  249. package/lib/browser-ponyfill-CE6vRkjp.js +0 -2
  250. package/lib/chain-Hsn22HAP.js +0 -1
  251. package/lib/chunk-KJH4KKG6-CoyI75Ig.js +0 -470
  252. package/lib/contract-D2fTrJgn.js +0 -1
  253. package/lib/core-v0G9f7LX.js +0 -889
  254. package/lib/create-DoZZ7ciL.js +0 -1
  255. package/lib/index-B8-KKWD-.js +0 -1
  256. package/lib/index-BHbvgOMD.js +0 -1
  257. package/lib/index-BHfUgvSV.js +0 -1
  258. package/lib/index-BTKC7Hou.js +0 -1
  259. package/lib/index-BWXglAWd.js +0 -1
  260. package/lib/index-Bpp8C4u8.js +0 -1
  261. package/lib/index-CF2fHBHJ.js +0 -3
  262. package/lib/index-CTPz98nv.js +0 -1
  263. package/lib/index-ClMoiji-.js +0 -1
  264. package/lib/index-ClsVcH6F.js +0 -1
  265. package/lib/index-CqOI6LVu.js +0 -1
  266. package/lib/index-DCz_4mcz.js +0 -1
  267. package/lib/index-DKksdvND.js +0 -335
  268. package/lib/index-DRv3ZpVL.js +0 -1
  269. package/lib/index-DYqo8IhM.js +0 -1
  270. package/lib/index-DZubce9o.js +0 -1
  271. package/lib/index-DprM_IpB.js +0 -1
  272. package/lib/index-DshEQYMA.js +0 -1
  273. package/lib/index-JrM783SN.js +0 -1
  274. package/lib/index.es-C6YhioMN.js +0 -27
  275. package/lib/index.es-D3Xxxr8I.js +0 -11
  276. package/lib/mint-DlXC3sGi.js +0 -1
  277. package/lib/platform-B1XoDKoN.js +0 -1
  278. package/lib/platform-COuZC5Zc.js +0 -1
  279. package/lib/platform-NG3efAb2.js +0 -1
  280. package/lib/provider-jsonrpc-pXNHQF7n.js +0 -1
  281. package/lib/signer-CCa6npZ3.js +0 -1
  282. package/lib/solana-BJ3aReZw.mjs +0 -18
  283. package/lib/solana-BwyVgP30.js +0 -1
  284. package/lib/solana-CanFuMgA.js +0 -900
  285. package/lib/solanaEmbed.esm-C--1F7Lx.js +0 -10
  286. package/lib/sui-Bs83Gy5Z.js +0 -1
  287. package/lib/units-BvcKDiAx.js +0 -1
  288. package/lib/unsignedTransaction-dN_5EJf5.js +0 -1
  289. package/lib/web3-Bu_6UejS.mjs +0 -67
  290. package/lib/web3-Doz_0RHD.js +0 -1
@@ -1,6 +1,8 @@
1
- import { e as et } from "./index-C_0yAOSX.mjs";
2
- import { a as an, d as V, g as bo, c as De } from "./address-B-XN4tFw.mjs";
3
- import { o as or } from "./browser-ponyfill-jK8MKVVg.mjs";
1
+ import { g as an, a as un, d as V, c as De } from "./web3-DYVeiqSa.mjs";
2
+ import { a as po } from "./index-BfkFXEnG.mjs";
3
+ import { o as or } from "./browser-ponyfill-D5AN8ZPp.mjs";
4
+ var Pe = po();
5
+ const Df = /* @__PURE__ */ an(Pe);
4
6
  var tt = {};
5
7
  /*! *****************************************************************************
6
8
  Copyright (c) Microsoft Corporation.
@@ -23,7 +25,7 @@ var Ft = function(e, t) {
23
25
  for (var o in n) n.hasOwnProperty(o) && (r[o] = n[o]);
24
26
  }, Ft(e, t);
25
27
  };
26
- function po(e, t) {
28
+ function go(e, t) {
27
29
  Ft(e, t);
28
30
  function r() {
29
31
  this.constructor = e;
@@ -39,7 +41,7 @@ var Ct = function() {
39
41
  return t;
40
42
  }, Ct.apply(this, arguments);
41
43
  };
42
- function go(e, t) {
44
+ function wo(e, t) {
43
45
  var r = {};
44
46
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
45
47
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -47,21 +49,21 @@ function go(e, t) {
47
49
  t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
48
50
  return r;
49
51
  }
50
- function wo(e, t, r, n) {
52
+ function Do(e, t, r, n) {
51
53
  var o = arguments.length, i = o < 3 ? t : n === null ? n = Object.getOwnPropertyDescriptor(t, r) : n, a;
52
54
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") i = Reflect.decorate(e, t, r, n);
53
55
  else for (var l = e.length - 1; l >= 0; l--) (a = e[l]) && (i = (o < 3 ? a(i) : o > 3 ? a(t, r, i) : a(t, r)) || i);
54
56
  return o > 3 && i && Object.defineProperty(t, r, i), i;
55
57
  }
56
- function Do(e, t) {
58
+ function yo(e, t) {
57
59
  return function(r, n) {
58
60
  t(r, n, e);
59
61
  };
60
62
  }
61
- function yo(e, t) {
63
+ function mo(e, t) {
62
64
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
63
65
  }
64
- function mo(e, t, r, n) {
66
+ function vo(e, t, r, n) {
65
67
  function o(i) {
66
68
  return i instanceof r ? i : new r(function(a) {
67
69
  a(i);
@@ -88,7 +90,7 @@ function mo(e, t, r, n) {
88
90
  s((n = n.apply(e, t || [])).next());
89
91
  });
90
92
  }
91
- function vo(e, t) {
93
+ function Eo(e, t) {
92
94
  var r = { label: 0, sent: function() {
93
95
  if (i[0] & 1) throw i[1];
94
96
  return i[1];
@@ -148,10 +150,10 @@ function vo(e, t) {
148
150
  return { value: s[0] ? s[1] : void 0, done: !0 };
149
151
  }
150
152
  }
151
- function Eo(e, t, r, n) {
153
+ function _o(e, t, r, n) {
152
154
  n === void 0 && (n = r), e[n] = t[r];
153
155
  }
154
- function _o(e, t) {
156
+ function So(e, t) {
155
157
  for (var r in e) r !== "default" && !t.hasOwnProperty(r) && (t[r] = e[r]);
156
158
  }
157
159
  function At(e) {
@@ -164,7 +166,7 @@ function At(e) {
164
166
  };
165
167
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
166
168
  }
167
- function un(e, t) {
169
+ function cn(e, t) {
168
170
  var r = typeof Symbol == "function" && e[Symbol.iterator];
169
171
  if (!r) return e;
170
172
  var n = r.call(e), o, i = [], a;
@@ -181,12 +183,12 @@ function un(e, t) {
181
183
  }
182
184
  return i;
183
185
  }
184
- function So() {
186
+ function Oo() {
185
187
  for (var e = [], t = 0; t < arguments.length; t++)
186
- e = e.concat(un(arguments[t]));
188
+ e = e.concat(cn(arguments[t]));
187
189
  return e;
188
190
  }
189
- function Oo() {
191
+ function Fo() {
190
192
  for (var e = 0, t = 0, r = arguments.length; t < r; t++) e += arguments[t].length;
191
193
  for (var n = Array(e), o = 0, t = 0; t < r; t++)
192
194
  for (var i = arguments[t], a = 0, l = i.length; a < l; a++, o++)
@@ -196,7 +198,7 @@ function Oo() {
196
198
  function Ie(e) {
197
199
  return this instanceof Ie ? (this.v = e, this) : new Ie(e);
198
200
  }
199
- function Fo(e, t, r) {
201
+ function Co(e, t, r) {
200
202
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
201
203
  var n = r.apply(e, t || []), o, i = [];
202
204
  return o = {}, a("next"), a("throw"), a("return"), o[Symbol.asyncIterator] = function() {
@@ -229,7 +231,7 @@ function Fo(e, t, r) {
229
231
  h(b), i.shift(), i.length && l(i[0][0], i[0][1]);
230
232
  }
231
233
  }
232
- function Co(e) {
234
+ function Ao(e) {
233
235
  var t, r;
234
236
  return t = {}, n("next"), n("throw", function(o) {
235
237
  throw o;
@@ -242,7 +244,7 @@ function Co(e) {
242
244
  } : i;
243
245
  }
244
246
  }
245
- function Ao(e) {
247
+ function xo(e) {
246
248
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
247
249
  var t = e[Symbol.asyncIterator], r;
248
250
  return t ? t.call(e) : (e = typeof At == "function" ? At(e) : e[Symbol.iterator](), r = {}, n("next"), n("throw"), n("return"), r[Symbol.asyncIterator] = function() {
@@ -261,19 +263,19 @@ function Ao(e) {
261
263
  }, a);
262
264
  }
263
265
  }
264
- function xo(e, t) {
266
+ function Bo(e, t) {
265
267
  return Object.defineProperty ? Object.defineProperty(e, "raw", { value: t }) : e.raw = t, e;
266
268
  }
267
- function Bo(e) {
269
+ function Io(e) {
268
270
  if (e && e.__esModule) return e;
269
271
  var t = {};
270
272
  if (e != null) for (var r in e) Object.hasOwnProperty.call(e, r) && (t[r] = e[r]);
271
273
  return t.default = e, t;
272
274
  }
273
- function Io(e) {
275
+ function To(e) {
274
276
  return e && e.__esModule ? e : { default: e };
275
277
  }
276
- function To(e, t) {
278
+ function No(e, t) {
277
279
  if (!t.has(e))
278
280
  throw new TypeError("attempted to get private field on non-instance");
279
281
  return t.get(e);
@@ -283,36 +285,36 @@ function Ro(e, t, r) {
283
285
  throw new TypeError("attempted to set private field on non-instance");
284
286
  return t.set(e, r), r;
285
287
  }
286
- const No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
288
+ const Po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
287
289
  __proto__: null,
288
290
  get __assign() {
289
291
  return Ct;
290
292
  },
291
- __asyncDelegator: Co,
292
- __asyncGenerator: Fo,
293
- __asyncValues: Ao,
293
+ __asyncDelegator: Ao,
294
+ __asyncGenerator: Co,
295
+ __asyncValues: xo,
294
296
  __await: Ie,
295
- __awaiter: mo,
296
- __classPrivateFieldGet: To,
297
+ __awaiter: vo,
298
+ __classPrivateFieldGet: No,
297
299
  __classPrivateFieldSet: Ro,
298
- __createBinding: Eo,
299
- __decorate: wo,
300
- __exportStar: _o,
301
- __extends: po,
302
- __generator: vo,
303
- __importDefault: Io,
304
- __importStar: Bo,
305
- __makeTemplateObject: xo,
306
- __metadata: yo,
307
- __param: Do,
308
- __read: un,
309
- __rest: go,
310
- __spread: So,
311
- __spreadArrays: Oo,
300
+ __createBinding: _o,
301
+ __decorate: Do,
302
+ __exportStar: So,
303
+ __extends: go,
304
+ __generator: Eo,
305
+ __importDefault: To,
306
+ __importStar: Io,
307
+ __makeTemplateObject: Bo,
308
+ __metadata: mo,
309
+ __param: yo,
310
+ __read: cn,
311
+ __rest: wo,
312
+ __spread: Oo,
313
+ __spreadArrays: Fo,
312
314
  __values: At
313
- }, Symbol.toStringTag, { value: "Module" })), rt = /* @__PURE__ */ an(No);
315
+ }, Symbol.toStringTag, { value: "Module" })), rt = /* @__PURE__ */ un(Po);
314
316
  var lt = {}, Ce = {}, ir;
315
- function Po() {
317
+ function jo() {
316
318
  if (ir) return Ce;
317
319
  ir = 1, Object.defineProperty(Ce, "__esModule", { value: !0 }), Ce.delay = void 0;
318
320
  function e(t) {
@@ -325,28 +327,28 @@ function Po() {
325
327
  return Ce.delay = e, Ce;
326
328
  }
327
329
  var fe = {}, ft = {}, he = {}, sr;
328
- function jo() {
330
+ function Lo() {
329
331
  return sr || (sr = 1, Object.defineProperty(he, "__esModule", { value: !0 }), he.ONE_THOUSAND = he.ONE_HUNDRED = void 0, he.ONE_HUNDRED = 100, he.ONE_THOUSAND = 1e3), he;
330
332
  }
331
333
  var ht = {}, ar;
332
- function Lo() {
334
+ function Uo() {
333
335
  return ar || (ar = 1, function(e) {
334
336
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ONE_YEAR = e.FOUR_WEEKS = e.THREE_WEEKS = e.TWO_WEEKS = e.ONE_WEEK = e.THIRTY_DAYS = e.SEVEN_DAYS = e.FIVE_DAYS = e.THREE_DAYS = e.ONE_DAY = e.TWENTY_FOUR_HOURS = e.TWELVE_HOURS = e.SIX_HOURS = e.THREE_HOURS = e.ONE_HOUR = e.SIXTY_MINUTES = e.THIRTY_MINUTES = e.TEN_MINUTES = e.FIVE_MINUTES = e.ONE_MINUTE = e.SIXTY_SECONDS = e.THIRTY_SECONDS = e.TEN_SECONDS = e.FIVE_SECONDS = e.ONE_SECOND = void 0, e.ONE_SECOND = 1, e.FIVE_SECONDS = 5, e.TEN_SECONDS = 10, e.THIRTY_SECONDS = 30, e.SIXTY_SECONDS = 60, e.ONE_MINUTE = e.SIXTY_SECONDS, e.FIVE_MINUTES = e.ONE_MINUTE * 5, e.TEN_MINUTES = e.ONE_MINUTE * 10, e.THIRTY_MINUTES = e.ONE_MINUTE * 30, e.SIXTY_MINUTES = e.ONE_MINUTE * 60, e.ONE_HOUR = e.SIXTY_MINUTES, e.THREE_HOURS = e.ONE_HOUR * 3, e.SIX_HOURS = e.ONE_HOUR * 6, e.TWELVE_HOURS = e.ONE_HOUR * 12, e.TWENTY_FOUR_HOURS = e.ONE_HOUR * 24, e.ONE_DAY = e.TWENTY_FOUR_HOURS, e.THREE_DAYS = e.ONE_DAY * 3, e.FIVE_DAYS = e.ONE_DAY * 5, e.SEVEN_DAYS = e.ONE_DAY * 7, e.THIRTY_DAYS = e.ONE_DAY * 30, e.ONE_WEEK = e.SEVEN_DAYS, e.TWO_WEEKS = e.ONE_WEEK * 2, e.THREE_WEEKS = e.ONE_WEEK * 3, e.FOUR_WEEKS = e.ONE_WEEK * 4, e.ONE_YEAR = e.ONE_DAY * 365;
335
337
  }(ht)), ht;
336
338
  }
337
339
  var ur;
338
- function cn() {
340
+ function ln() {
339
341
  return ur || (ur = 1, function(e) {
340
342
  Object.defineProperty(e, "__esModule", { value: !0 });
341
343
  const t = rt;
342
- t.__exportStar(jo(), e), t.__exportStar(Lo(), e);
344
+ t.__exportStar(Lo(), e), t.__exportStar(Uo(), e);
343
345
  }(ft)), ft;
344
346
  }
345
347
  var cr;
346
- function Uo() {
348
+ function Mo() {
347
349
  if (cr) return fe;
348
350
  cr = 1, Object.defineProperty(fe, "__esModule", { value: !0 }), fe.fromMiliseconds = fe.toMiliseconds = void 0;
349
- const e = cn();
351
+ const e = ln();
350
352
  function t(n) {
351
353
  return n * e.ONE_THOUSAND;
352
354
  }
@@ -357,15 +359,15 @@ function Uo() {
357
359
  return fe.fromMiliseconds = r, fe;
358
360
  }
359
361
  var lr;
360
- function Mo() {
362
+ function $o() {
361
363
  return lr || (lr = 1, function(e) {
362
364
  Object.defineProperty(e, "__esModule", { value: !0 });
363
365
  const t = rt;
364
- t.__exportStar(Po(), e), t.__exportStar(Uo(), e);
366
+ t.__exportStar(jo(), e), t.__exportStar(Mo(), e);
365
367
  }(lt)), lt;
366
368
  }
367
369
  var ye = {}, fr;
368
- function $o() {
370
+ function zo() {
369
371
  if (fr) return ye;
370
372
  fr = 1, Object.defineProperty(ye, "__esModule", { value: !0 }), ye.Watch = void 0;
371
373
  class e {
@@ -398,7 +400,7 @@ function $o() {
398
400
  return ye.Watch = e, ye.default = e, ye;
399
401
  }
400
402
  var dt = {}, Ae = {}, hr;
401
- function zo() {
403
+ function Wo() {
402
404
  if (hr) return Ae;
403
405
  hr = 1, Object.defineProperty(Ae, "__esModule", { value: !0 }), Ae.IWatch = void 0;
404
406
  class e {
@@ -406,30 +408,30 @@ function zo() {
406
408
  return Ae.IWatch = e, Ae;
407
409
  }
408
410
  var dr;
409
- function Wo() {
411
+ function ko() {
410
412
  return dr || (dr = 1, function(e) {
411
- Object.defineProperty(e, "__esModule", { value: !0 }), rt.__exportStar(zo(), e);
413
+ Object.defineProperty(e, "__esModule", { value: !0 }), rt.__exportStar(Wo(), e);
412
414
  }(dt)), dt;
413
415
  }
414
416
  (function(e) {
415
417
  Object.defineProperty(e, "__esModule", { value: !0 });
416
418
  const t = rt;
417
- t.__exportStar(Mo(), e), t.__exportStar($o(), e), t.__exportStar(Wo(), e), t.__exportStar(cn(), e);
419
+ t.__exportStar($o(), e), t.__exportStar(zo(), e), t.__exportStar(ko(), e), t.__exportStar(ln(), e);
418
420
  })(tt);
419
- class ko {
421
+ class Ho {
420
422
  }
421
- let Ho = class extends ko {
423
+ let Vo = class extends Ho {
422
424
  constructor(t) {
423
425
  super();
424
426
  }
425
427
  };
426
- const br = tt.FIVE_SECONDS, Vo = { pulse: "heartbeat_pulse" };
427
- let Df = class ln extends Ho {
428
+ const br = tt.FIVE_SECONDS, Ko = { pulse: "heartbeat_pulse" };
429
+ let mf = class fn extends Vo {
428
430
  constructor(t) {
429
- super(t), this.events = new et.EventEmitter(), this.interval = br, this.interval = (t == null ? void 0 : t.interval) || br;
431
+ super(t), this.events = new Pe.EventEmitter(), this.interval = br, this.interval = (t == null ? void 0 : t.interval) || br;
430
432
  }
431
433
  static async init(t) {
432
- const r = new ln(t);
434
+ const r = new fn(t);
433
435
  return await r.init(), r;
434
436
  }
435
437
  async init() {
@@ -454,21 +456,21 @@ let Df = class ln extends Ho {
454
456
  this.intervalRef = setInterval(() => this.pulse(), tt.toMiliseconds(this.interval));
455
457
  }
456
458
  pulse() {
457
- this.events.emit(Vo.pulse);
459
+ this.events.emit(Ko.pulse);
458
460
  }
459
461
  };
460
- const Ko = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, qo = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, Yo = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
461
- function Go(e, t) {
462
+ const qo = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, Yo = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, Go = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
463
+ function Jo(e, t) {
462
464
  if (e === "__proto__" || e === "constructor" && t && typeof t == "object" && "prototype" in t) {
463
- Jo(e);
465
+ Xo(e);
464
466
  return;
465
467
  }
466
468
  return t;
467
469
  }
468
- function Jo(e) {
470
+ function Xo(e) {
469
471
  console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);
470
472
  }
471
- function ze(e, t = {}) {
473
+ function We(e, t = {}) {
472
474
  if (typeof e != "string")
473
475
  return e;
474
476
  if (e[0] === '"' && e[e.length - 1] === '"' && e.indexOf("\\") === -1)
@@ -491,16 +493,16 @@ function ze(e, t = {}) {
491
493
  case "-infinity":
492
494
  return Number.NEGATIVE_INFINITY;
493
495
  }
494
- if (!Yo.test(e)) {
496
+ if (!Go.test(e)) {
495
497
  if (t.strict)
496
498
  throw new SyntaxError("[destr] Invalid JSON");
497
499
  return e;
498
500
  }
499
501
  try {
500
- if (Ko.test(e) || qo.test(e)) {
502
+ if (qo.test(e) || Yo.test(e)) {
501
503
  if (t.strict)
502
504
  throw new Error("[destr] Possible prototype pollution");
503
- return JSON.parse(e, Go);
505
+ return JSON.parse(e, Jo);
504
506
  }
505
507
  return JSON.parse(e);
506
508
  } catch (n) {
@@ -509,60 +511,60 @@ function ze(e, t = {}) {
509
511
  return e;
510
512
  }
511
513
  }
512
- function Xo(e) {
514
+ function Zo(e) {
513
515
  return !e || typeof e.then != "function" ? Promise.resolve(e) : e;
514
516
  }
515
517
  function $(e, ...t) {
516
518
  try {
517
- return Xo(e(...t));
519
+ return Zo(e(...t));
518
520
  } catch (r) {
519
521
  return Promise.reject(r);
520
522
  }
521
523
  }
522
- function Zo(e) {
524
+ function Qo(e) {
523
525
  const t = typeof e;
524
526
  return e === null || t !== "object" && t !== "function";
525
527
  }
526
- function Qo(e) {
528
+ function ei(e) {
527
529
  const t = Object.getPrototypeOf(e);
528
530
  return !t || t.isPrototypeOf(Object);
529
531
  }
530
- function qe(e) {
531
- if (Zo(e))
532
+ function Ye(e) {
533
+ if (Qo(e))
532
534
  return String(e);
533
- if (Qo(e) || Array.isArray(e))
535
+ if (ei(e) || Array.isArray(e))
534
536
  return JSON.stringify(e);
535
537
  if (typeof e.toJSON == "function")
536
- return qe(e.toJSON());
538
+ return Ye(e.toJSON());
537
539
  throw new Error("[unstorage] Cannot stringify value!");
538
540
  }
539
541
  const xt = "base64:";
540
- function ei(e) {
541
- return typeof e == "string" ? e : xt + ni(e);
542
- }
543
542
  function ti(e) {
544
- return typeof e != "string" || !e.startsWith(xt) ? e : ri(e.slice(xt.length));
543
+ return typeof e == "string" ? e : xt + oi(e);
545
544
  }
546
545
  function ri(e) {
546
+ return typeof e != "string" || !e.startsWith(xt) ? e : ni(e.slice(xt.length));
547
+ }
548
+ function ni(e) {
547
549
  return globalThis.Buffer ? V.Buffer.from(e, "base64") : Uint8Array.from(
548
550
  globalThis.atob(e),
549
551
  (t) => t.codePointAt(0)
550
552
  );
551
553
  }
552
- function ni(e) {
554
+ function oi(e) {
553
555
  return globalThis.Buffer ? V.Buffer.from(e).toString("base64") : globalThis.btoa(String.fromCodePoint(...e));
554
556
  }
555
557
  function Y(e) {
556
558
  var t;
557
559
  return e && ((t = e.split("?")[0]) == null ? void 0 : t.replace(/[/\\]/g, ":").replace(/:+/g, ":").replace(/^:|:$/g, "")) || "";
558
560
  }
559
- function oi(...e) {
561
+ function ii(...e) {
560
562
  return Y(e.join(":"));
561
563
  }
562
- function We(e) {
564
+ function ke(e) {
563
565
  return e = Y(e), e ? e + ":" : "";
564
566
  }
565
- function ii(e, t) {
567
+ function si(e, t) {
566
568
  if (t === void 0)
567
569
  return !0;
568
570
  let r = 0, n = e.indexOf(":");
@@ -570,13 +572,13 @@ function ii(e, t) {
570
572
  r++, n = e.indexOf(":", n + 1);
571
573
  return r <= t;
572
574
  }
573
- function si(e, t) {
575
+ function ai(e, t) {
574
576
  return t ? e.startsWith(t) && e[e.length - 1] !== "$" : e[e.length - 1] !== "$";
575
577
  }
576
- const ai = "memory", ui = () => {
578
+ const ui = "memory", ci = () => {
577
579
  const e = /* @__PURE__ */ new Map();
578
580
  return {
579
- name: ai,
581
+ name: ui,
580
582
  getInstance: () => e,
581
583
  hasItem(t) {
582
584
  return e.has(t);
@@ -607,9 +609,9 @@ const ai = "memory", ui = () => {
607
609
  }
608
610
  };
609
611
  };
610
- function ci(e = {}) {
612
+ function li(e = {}) {
611
613
  const t = {
612
- mounts: { "": e.driver || ui() },
614
+ mounts: { "": e.driver || ci() },
613
615
  mountpoints: [""],
614
616
  watching: !1,
615
617
  watchListeners: [],
@@ -687,7 +689,7 @@ function ci(e = {}) {
687
689
  s = Y(s);
688
690
  const { relativeKey: f, driver: h } = r(s);
689
691
  return $(h.getItem, f, u).then(
690
- (b) => ze(b)
692
+ (b) => We(b)
691
693
  );
692
694
  },
693
695
  getItems(s, u = {}) {
@@ -700,8 +702,8 @@ function ci(e = {}) {
700
702
  u
701
703
  ).then(
702
704
  (h) => h.map((b) => ({
703
- key: oi(f.base, b.key),
704
- value: ze(b.value)
705
+ key: ii(f.base, b.key),
706
+ value: We(b.value)
705
707
  }))
706
708
  ) : Promise.all(
707
709
  f.items.map((h) => $(
@@ -710,7 +712,7 @@ function ci(e = {}) {
710
712
  h.options
711
713
  ).then((b) => ({
712
714
  key: h.key,
713
- value: ze(b)
715
+ value: We(b)
714
716
  })))
715
717
  ));
716
718
  },
@@ -718,7 +720,7 @@ function ci(e = {}) {
718
720
  s = Y(s);
719
721
  const { relativeKey: f, driver: h } = r(s);
720
722
  return h.getItemRaw ? $(h.getItemRaw, f, u) : $(h.getItem, f, u).then(
721
- (b) => ti(b)
723
+ (b) => ri(b)
722
724
  );
723
725
  },
724
726
  async setItem(s, u, f = {}) {
@@ -726,7 +728,7 @@ function ci(e = {}) {
726
728
  return c.removeItem(s);
727
729
  s = Y(s);
728
730
  const { relativeKey: h, driver: b } = r(s);
729
- b.setItem && (await $(b.setItem, h, qe(u), f), b.watch || o("update", s));
731
+ b.setItem && (await $(b.setItem, h, Ye(u), f), b.watch || o("update", s));
730
732
  },
731
733
  async setItems(s, u) {
732
734
  await l(s, u, async (f) => {
@@ -735,7 +737,7 @@ function ci(e = {}) {
735
737
  f.driver.setItems,
736
738
  f.items.map((h) => ({
737
739
  key: h.relativeKey,
738
- value: qe(h.value),
740
+ value: Ye(h.value),
739
741
  options: h.options
740
742
  })),
741
743
  u
@@ -744,7 +746,7 @@ function ci(e = {}) {
744
746
  f.items.map((h) => $(
745
747
  f.driver.setItem,
746
748
  h.relativeKey,
747
- qe(h.value),
749
+ Ye(h.value),
748
750
  h.options
749
751
  ))
750
752
  );
@@ -758,7 +760,7 @@ function ci(e = {}) {
758
760
  if (b.setItemRaw)
759
761
  await $(b.setItemRaw, h, u, f);
760
762
  else if (b.setItem)
761
- await $(b.setItem, h, ei(u), f);
763
+ await $(b.setItem, h, ti(u), f);
762
764
  else
763
765
  return;
764
766
  b.watch || o("update", s);
@@ -777,7 +779,7 @@ function ci(e = {}) {
777
779
  h.getItem,
778
780
  f + "$",
779
781
  u
780
- ).then((g) => ze(g));
782
+ ).then((g) => We(g));
781
783
  d && typeof d == "object" && (typeof d.atime == "string" && (d.atime = new Date(d.atime)), typeof d.mtime == "string" && (d.mtime = new Date(d.mtime)), Object.assign(b, d));
782
784
  }
783
785
  return b;
@@ -791,7 +793,7 @@ function ci(e = {}) {
791
793
  // Keys
792
794
  async getKeys(s, u = {}) {
793
795
  var D;
794
- s = We(s);
796
+ s = ke(s);
795
797
  const f = n(s, !0);
796
798
  let h = [];
797
799
  const b = [];
@@ -814,12 +816,12 @@ function ci(e = {}) {
814
816
  }
815
817
  const g = u.maxDepth !== void 0 && !d;
816
818
  return b.filter(
817
- (y) => (!g || ii(y, u.maxDepth)) && si(y, s)
819
+ (y) => (!g || si(y, u.maxDepth)) && ai(y, s)
818
820
  );
819
821
  },
820
822
  // Utils
821
823
  async clear(s, u = {}) {
822
- s = We(s), await Promise.all(
824
+ s = ke(s), await Promise.all(
823
825
  n(s, !1).map(async (f) => {
824
826
  if (f.driver.clear)
825
827
  return $(f.driver.clear, f.relativeBase, u);
@@ -849,7 +851,7 @@ function ci(e = {}) {
849
851
  },
850
852
  // Mount
851
853
  mount(s, u) {
852
- if (s = We(s), s && t.mounts[s])
854
+ if (s = ke(s), s && t.mounts[s])
853
855
  throw new Error(`already mounted at ${s}`);
854
856
  return s && (t.mountpoints.push(s), t.mountpoints.sort((f, h) => h.length - f.length)), t.mounts[s] = u, t.watching && Promise.resolve(pr(u, o, s)).then((f) => {
855
857
  t.unwatch[s] = f;
@@ -857,7 +859,7 @@ function ci(e = {}) {
857
859
  },
858
860
  async unmount(s, u = !0) {
859
861
  var f, h;
860
- s = We(s), !(!s || !t.mounts[s]) && (t.watching && s in t.unwatch && ((h = (f = t.unwatch)[s]) == null || h.call(f), delete t.unwatch[s]), u && await gr(t.mounts[s]), t.mountpoints = t.mountpoints.filter((b) => b !== s), delete t.mounts[s]);
862
+ s = ke(s), !(!s || !t.mounts[s]) && (t.watching && s in t.unwatch && ((h = (f = t.unwatch)[s]) == null || h.call(f), delete t.unwatch[s]), u && await gr(t.mounts[s]), t.mountpoints = t.mountpoints.filter((b) => b !== s), delete t.mounts[s]);
861
863
  },
862
864
  getMount(s = "") {
863
865
  s = Y(s) + ":";
@@ -895,7 +897,7 @@ function be(e) {
895
897
  e.oncomplete = e.onsuccess = () => t(e.result), e.onabort = e.onerror = () => r(e.error);
896
898
  });
897
899
  }
898
- function fn(e, t) {
900
+ function hn(e, t) {
899
901
  let r;
900
902
  const n = () => {
901
903
  if (r)
@@ -909,72 +911,72 @@ function fn(e, t) {
909
911
  return (o, i) => n().then((a) => i(a.transaction(t, o).objectStore(t)));
910
912
  }
911
913
  let bt;
912
- function Pe() {
913
- return bt || (bt = fn("keyval-store", "keyval")), bt;
914
+ function je() {
915
+ return bt || (bt = hn("keyval-store", "keyval")), bt;
914
916
  }
915
- function wr(e, t = Pe()) {
917
+ function wr(e, t = je()) {
916
918
  return t("readonly", (r) => be(r.get(e)));
917
919
  }
918
- function li(e, t, r = Pe()) {
920
+ function fi(e, t, r = je()) {
919
921
  return r("readwrite", (n) => (n.put(t, e), be(n.transaction)));
920
922
  }
921
- function fi(e, t = Pe()) {
923
+ function hi(e, t = je()) {
922
924
  return t("readwrite", (r) => (r.delete(e), be(r.transaction)));
923
925
  }
924
- function hi(e = Pe()) {
926
+ function di(e = je()) {
925
927
  return e("readwrite", (t) => (t.clear(), be(t.transaction)));
926
928
  }
927
- function di(e, t) {
929
+ function bi(e, t) {
928
930
  return e.openCursor().onsuccess = function() {
929
931
  this.result && (t(this.result), this.result.continue());
930
932
  }, be(e.transaction);
931
933
  }
932
- function bi(e = Pe()) {
934
+ function pi(e = je()) {
933
935
  return e("readonly", (t) => {
934
936
  if (t.getAllKeys)
935
937
  return be(t.getAllKeys());
936
938
  const r = [];
937
- return di(t, (n) => r.push(n.key)).then(() => r);
939
+ return bi(t, (n) => r.push(n.key)).then(() => r);
938
940
  });
939
941
  }
940
- const pi = (e) => JSON.stringify(e, (t, r) => typeof r == "bigint" ? r.toString() + "n" : r), gi = (e) => {
942
+ const gi = (e) => JSON.stringify(e, (t, r) => typeof r == "bigint" ? r.toString() + "n" : r), wi = (e) => {
941
943
  const t = /([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g, r = e.replace(t, '$1"$2n"$3');
942
944
  return JSON.parse(r, (n, o) => typeof o == "string" && o.match(/^\d+n$/) ? BigInt(o.substring(0, o.length - 1)) : o);
943
945
  };
944
- function je(e) {
946
+ function Le(e) {
945
947
  if (typeof e != "string")
946
948
  throw new Error(`Cannot safe json parse value of type ${typeof e}`);
947
949
  try {
948
- return gi(e);
950
+ return wi(e);
949
951
  } catch {
950
952
  return e;
951
953
  }
952
954
  }
953
955
  function ue(e) {
954
- return typeof e == "string" ? e : pi(e) || "";
956
+ return typeof e == "string" ? e : gi(e) || "";
955
957
  }
956
- const wi = "idb-keyval";
957
- var Di = (e = {}) => {
958
+ const Di = "idb-keyval";
959
+ var yi = (e = {}) => {
958
960
  const t = e.base && e.base.length > 0 ? `${e.base}:` : "", r = (o) => t + o;
959
961
  let n;
960
- return e.dbName && e.storeName && (n = fn(e.dbName, e.storeName)), { name: wi, options: e, async hasItem(o) {
962
+ return e.dbName && e.storeName && (n = hn(e.dbName, e.storeName)), { name: Di, options: e, async hasItem(o) {
961
963
  return !(typeof await wr(r(o), n) > "u");
962
964
  }, async getItem(o) {
963
965
  return await wr(r(o), n) ?? null;
964
966
  }, setItem(o, i) {
965
- return li(r(o), i, n);
967
+ return fi(r(o), i, n);
966
968
  }, removeItem(o) {
967
- return fi(r(o), n);
969
+ return hi(r(o), n);
968
970
  }, getKeys() {
969
- return bi(n);
971
+ return pi(n);
970
972
  }, clear() {
971
- return hi(n);
973
+ return di(n);
972
974
  } };
973
975
  };
974
- const yi = "WALLET_CONNECT_V2_INDEXED_DB", mi = "keyvaluestorage";
975
- let vi = class {
976
+ const mi = "WALLET_CONNECT_V2_INDEXED_DB", vi = "keyvaluestorage";
977
+ let Ei = class {
976
978
  constructor() {
977
- this.indexedDb = ci({ driver: Di({ dbName: yi, storeName: mi }) });
979
+ this.indexedDb = li({ driver: yi({ dbName: mi, storeName: vi }) });
978
980
  }
979
981
  async getKeys() {
980
982
  return this.indexedDb.getKeys();
@@ -993,7 +995,7 @@ let vi = class {
993
995
  await this.indexedDb.removeItem(t);
994
996
  }
995
997
  };
996
- var pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof V.global < "u" ? V.global : typeof self < "u" ? self : {}, Ye = { exports: {} };
998
+ var pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof V.global < "u" ? V.global : typeof self < "u" ? self : {}, Ge = { exports: {} };
997
999
  (function() {
998
1000
  let e;
999
1001
  function t() {
@@ -1013,25 +1015,25 @@ var pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1013
1015
  return r = r || 0, Object.keys(this)[r];
1014
1016
  }, e.prototype.__defineGetter__("length", function() {
1015
1017
  return Object.keys(this).length;
1016
- }), typeof pt < "u" && pt.localStorage ? Ye.exports = pt.localStorage : typeof window < "u" && window.localStorage ? Ye.exports = window.localStorage : Ye.exports = new t();
1018
+ }), typeof pt < "u" && pt.localStorage ? Ge.exports = pt.localStorage : typeof window < "u" && window.localStorage ? Ge.exports = window.localStorage : Ge.exports = new t();
1017
1019
  })();
1018
- function Ei(e) {
1020
+ function _i(e) {
1019
1021
  var t;
1020
- return [e[0], je((t = e[1]) != null ? t : "")];
1022
+ return [e[0], Le((t = e[1]) != null ? t : "")];
1021
1023
  }
1022
- let _i = class {
1024
+ let Si = class {
1023
1025
  constructor() {
1024
- this.localStorage = Ye.exports;
1026
+ this.localStorage = Ge.exports;
1025
1027
  }
1026
1028
  async getKeys() {
1027
1029
  return Object.keys(this.localStorage);
1028
1030
  }
1029
1031
  async getEntries() {
1030
- return Object.entries(this.localStorage).map(Ei);
1032
+ return Object.entries(this.localStorage).map(_i);
1031
1033
  }
1032
1034
  async getItem(t) {
1033
1035
  const r = this.localStorage.getItem(t);
1034
- if (r !== null) return je(r);
1036
+ if (r !== null) return Le(r);
1035
1037
  }
1036
1038
  async setItem(t, r) {
1037
1039
  this.localStorage.setItem(t, ue(r));
@@ -1040,8 +1042,8 @@ let _i = class {
1040
1042
  this.localStorage.removeItem(t);
1041
1043
  }
1042
1044
  };
1043
- const Si = "wc_storage_version", Dr = 1, Oi = async (e, t, r) => {
1044
- const n = Si, o = await t.getItem(n);
1045
+ const Oi = "wc_storage_version", Dr = 1, Fi = async (e, t, r) => {
1046
+ const n = Oi, o = await t.getItem(n);
1045
1047
  if (o && o >= Dr) {
1046
1048
  r(t);
1047
1049
  return;
@@ -1061,22 +1063,22 @@ const Si = "wc_storage_version", Dr = 1, Oi = async (e, t, r) => {
1061
1063
  await t.setItem(l, s), a.push(l);
1062
1064
  }
1063
1065
  }
1064
- await t.setItem(n, Dr), r(t), Fi(e, a);
1065
- }, Fi = async (e, t) => {
1066
+ await t.setItem(n, Dr), r(t), Ci(e, a);
1067
+ }, Ci = async (e, t) => {
1066
1068
  t.length && t.forEach(async (r) => {
1067
1069
  await e.removeItem(r);
1068
1070
  });
1069
1071
  };
1070
- let vf = class {
1072
+ let _f = class {
1071
1073
  constructor() {
1072
1074
  this.initialized = !1, this.setInitialized = (r) => {
1073
1075
  this.storage = r, this.initialized = !0;
1074
1076
  };
1075
- const t = new _i();
1077
+ const t = new Si();
1076
1078
  this.storage = t;
1077
1079
  try {
1078
- const r = new vi();
1079
- Oi(t, r, this.setInitialized);
1080
+ const r = new Ei();
1081
+ Fi(t, r, this.setInitialized);
1080
1082
  } catch {
1081
1083
  this.initialized = !0;
1082
1084
  }
@@ -1104,16 +1106,16 @@ let vf = class {
1104
1106
  });
1105
1107
  }
1106
1108
  };
1107
- function Ci(e) {
1109
+ function Ai(e) {
1108
1110
  try {
1109
1111
  return JSON.stringify(e);
1110
1112
  } catch {
1111
1113
  return '"[Circular]"';
1112
1114
  }
1113
1115
  }
1114
- var Ai = xi;
1115
- function xi(e, t, r) {
1116
- var n = r && r.stringify || Ci, o = 1;
1116
+ var xi = Bi;
1117
+ function Bi(e, t, r) {
1118
+ var n = r && r.stringify || Ai, o = 1;
1117
1119
  if (typeof e == "object" && e !== null) {
1118
1120
  var i = t.length + o;
1119
1121
  if (i === 1) return e;
@@ -1170,19 +1172,19 @@ function xi(e, t, r) {
1170
1172
  }
1171
1173
  return f === -1 ? e : (f < h && (s += e.slice(f)), s);
1172
1174
  }
1173
- const yr = Ai;
1175
+ const yr = xi;
1174
1176
  var _e = Z;
1175
- const Te = Mi().console || {}, Bi = {
1176
- mapHttpRequest: ke,
1177
- mapHttpResponse: ke,
1177
+ const Te = $i().console || {}, Ii = {
1178
+ mapHttpRequest: He,
1179
+ mapHttpResponse: He,
1178
1180
  wrapRequestSerializer: gt,
1179
1181
  wrapResponseSerializer: gt,
1180
1182
  wrapErrorSerializer: gt,
1181
- req: ke,
1182
- res: ke,
1183
- err: Pi
1183
+ req: He,
1184
+ res: He,
1185
+ err: ji
1184
1186
  };
1185
- function Ii(e, t) {
1187
+ function Ti(e, t) {
1186
1188
  return Array.isArray(e) ? e.filter(function(n) {
1187
1189
  return n !== "!stdSerializers.err";
1188
1190
  }) : e === !0 ? Object.keys(t) : !1;
@@ -1194,13 +1196,13 @@ function Z(e) {
1194
1196
  throw Error("pino: transmit option must have a send function");
1195
1197
  const r = e.browser.write || Te;
1196
1198
  e.browser.write && (e.browser.asObject = !0);
1197
- const n = e.serializers || {}, o = Ii(e.browser.serialize, n);
1199
+ const n = e.serializers || {}, o = Ti(e.browser.serialize, n);
1198
1200
  let i = e.browser.serialize;
1199
1201
  Array.isArray(e.browser.serialize) && e.browser.serialize.indexOf("!stdSerializers.err") > -1 && (i = !1);
1200
1202
  const a = ["error", "fatal", "warn", "info", "debug", "trace"];
1201
1203
  typeof r == "function" && (r.error = r.fatal = r.warn = r.info = r.debug = r.trace = r), e.enabled === !1 && (e.level = "silent");
1202
1204
  const l = e.level || "info", c = Object.create(r);
1203
- c.log || (c.log = Re), Object.defineProperty(c, "levelVal", {
1205
+ c.log || (c.log = Ne), Object.defineProperty(c, "levelVal", {
1204
1206
  get: u
1205
1207
  }), Object.defineProperty(c, "level", {
1206
1208
  get: f,
@@ -1211,9 +1213,9 @@ function Z(e) {
1211
1213
  serialize: o,
1212
1214
  asObject: e.browser.asObject,
1213
1215
  levels: a,
1214
- timestamp: ji(e)
1216
+ timestamp: Li(e)
1215
1217
  };
1216
- c.levels = Z.levels, c.level = l, c.setMaxListeners = c.getMaxListeners = c.emit = c.addListener = c.on = c.prependListener = c.once = c.prependOnceListener = c.removeListener = c.removeAllListeners = c.listeners = c.listenerCount = c.eventNames = c.write = c.flush = Re, c.serializers = n, c._serialize = o, c._stdErrSerialize = i, c.child = b, t && (c._logEvent = Bt());
1218
+ c.levels = Z.levels, c.level = l, c.setMaxListeners = c.getMaxListeners = c.emit = c.addListener = c.on = c.prependListener = c.once = c.prependOnceListener = c.removeListener = c.removeAllListeners = c.listeners = c.listenerCount = c.eventNames = c.write = c.flush = Ne, c.serializers = n, c._serialize = o, c._stdErrSerialize = i, c.child = b, t && (c._logEvent = Bt());
1217
1219
  function u() {
1218
1220
  return this.level === "silent" ? 1 / 0 : this.levels.values[this.level];
1219
1221
  }
@@ -1261,21 +1263,21 @@ Z.levels = {
1261
1263
  60: "fatal"
1262
1264
  }
1263
1265
  };
1264
- Z.stdSerializers = Bi;
1265
- Z.stdTimeFunctions = Object.assign({}, { nullTime: hn, epochTime: dn, unixTime: Li, isoTime: Ui });
1266
+ Z.stdSerializers = Ii;
1267
+ Z.stdTimeFunctions = Object.assign({}, { nullTime: dn, epochTime: bn, unixTime: Ui, isoTime: Mi });
1266
1268
  function me(e, t, r, n) {
1267
1269
  const o = Object.getPrototypeOf(t);
1268
- t[r] = t.levelVal > t.levels.values[r] ? Re : o[r] ? o[r] : Te[r] || Te[n] || Re, Ti(e, t, r);
1270
+ t[r] = t.levelVal > t.levels.values[r] ? Ne : o[r] ? o[r] : Te[r] || Te[n] || Ne, Ni(e, t, r);
1269
1271
  }
1270
- function Ti(e, t, r) {
1271
- !e.transmit && t[r] === Re || (t[r] = /* @__PURE__ */ function(n) {
1272
+ function Ni(e, t, r) {
1273
+ !e.transmit && t[r] === Ne || (t[r] = /* @__PURE__ */ function(n) {
1272
1274
  return function() {
1273
1275
  const i = e.timestamp(), a = new Array(arguments.length), l = Object.getPrototypeOf && Object.getPrototypeOf(this) === Te ? Te : this;
1274
1276
  for (var c = 0; c < a.length; c++) a[c] = arguments[c];
1275
1277
  if (e.serialize && !e.asObject && nt(a, this._serialize, this.serializers, this._stdErrSerialize), e.asObject ? n.call(l, Ri(this, r, a, i)) : n.apply(l, a), e.transmit) {
1276
1278
  const s = e.transmit.level || t.level, u = Z.levels.values[s], f = Z.levels.values[r];
1277
1279
  if (f < u) return;
1278
- Ni(this, {
1280
+ Pi(this, {
1279
1281
  ts: i,
1280
1282
  methodLevel: r,
1281
1283
  methodValue: f,
@@ -1318,7 +1320,7 @@ function ve(e, t, r) {
1318
1320
  return e[r].apply(this, n);
1319
1321
  };
1320
1322
  }
1321
- function Ni(e, t, r) {
1323
+ function Pi(e, t, r) {
1322
1324
  const n = t.send, o = t.ts, i = t.methodLevel, a = t.methodValue, l = t.val, c = e._logEvent.bindings;
1323
1325
  nt(
1324
1326
  r,
@@ -1337,7 +1339,7 @@ function Bt(e) {
1337
1339
  level: { label: "", value: 0 }
1338
1340
  };
1339
1341
  }
1340
- function Pi(e) {
1342
+ function ji(e) {
1341
1343
  const t = {
1342
1344
  type: e.constructor.name,
1343
1345
  msg: e.message,
@@ -1347,30 +1349,30 @@ function Pi(e) {
1347
1349
  t[r] === void 0 && (t[r] = e[r]);
1348
1350
  return t;
1349
1351
  }
1350
- function ji(e) {
1351
- return typeof e.timestamp == "function" ? e.timestamp : e.timestamp === !1 ? hn : dn;
1352
+ function Li(e) {
1353
+ return typeof e.timestamp == "function" ? e.timestamp : e.timestamp === !1 ? dn : bn;
1352
1354
  }
1353
- function ke() {
1355
+ function He() {
1354
1356
  return {};
1355
1357
  }
1356
1358
  function gt(e) {
1357
1359
  return e;
1358
1360
  }
1359
- function Re() {
1361
+ function Ne() {
1360
1362
  }
1361
- function hn() {
1363
+ function dn() {
1362
1364
  return !1;
1363
1365
  }
1364
- function dn() {
1366
+ function bn() {
1365
1367
  return Date.now();
1366
1368
  }
1367
- function Li() {
1369
+ function Ui() {
1368
1370
  return Math.round(Date.now() / 1e3);
1369
1371
  }
1370
- function Ui() {
1372
+ function Mi() {
1371
1373
  return new Date(Date.now()).toISOString();
1372
1374
  }
1373
- function Mi() {
1375
+ function $i() {
1374
1376
  function e(t) {
1375
1377
  return typeof t < "u" && t;
1376
1378
  }
@@ -1385,8 +1387,8 @@ function Mi() {
1385
1387
  return e(self) || e(window) || e(this) || {};
1386
1388
  }
1387
1389
  }
1388
- const bn = /* @__PURE__ */ bo(_e), $i = { level: "info" }, Le = "custom_context", Mt = 1e3 * 1024;
1389
- let zi = class {
1390
+ const pn = /* @__PURE__ */ an(_e), zi = { level: "info" }, Ue = "custom_context", Mt = 1e3 * 1024;
1391
+ let Wi = class {
1390
1392
  constructor(t) {
1391
1393
  this.nodeValue = t, this.sizeInBytes = new TextEncoder().encode(this.nodeValue).length, this.next = null;
1392
1394
  }
@@ -1401,7 +1403,7 @@ let zi = class {
1401
1403
  this.head = null, this.tail = null, this.lengthInNodes = 0, this.maxSizeInBytes = t, this.sizeInBytes = 0;
1402
1404
  }
1403
1405
  append(t) {
1404
- const r = new zi(t);
1406
+ const r = new Wi(t);
1405
1407
  if (r.size > this.maxSizeInBytes) throw new Error(`[LinkedList] Value too big to insert into list: ${t} with size ${r.size}`);
1406
1408
  for (; this.size + r.size > this.maxSizeInBytes; ) this.shift();
1407
1409
  this.head ? (this.tail && (this.tail.next = r), this.tail = r) : (this.head = r, this.tail = r), this.lengthInNodes++, this.sizeInBytes += r.size;
@@ -1434,7 +1436,7 @@ let zi = class {
1434
1436
  return t = t.next, { done: !1, value: r };
1435
1437
  } };
1436
1438
  }
1437
- }, pn = class {
1439
+ }, gn = class {
1438
1440
  constructor(t, r = Mt) {
1439
1441
  this.level = t ?? "error", this.levelValue = _e.levels.values[this.level], this.MAX_LOG_SIZE_IN_BYTES = r, this.logs = new mr(this.MAX_LOG_SIZE_IN_BYTES);
1440
1442
  }
@@ -1460,9 +1462,9 @@ let zi = class {
1460
1462
  return r.push(ue({ extraMetadata: t })), new Blob(r, { type: "application/json" });
1461
1463
  }
1462
1464
  };
1463
- class Wi {
1465
+ class ki {
1464
1466
  constructor(t, r = Mt) {
1465
- this.baseChunkLogger = new pn(t, r);
1467
+ this.baseChunkLogger = new gn(t, r);
1466
1468
  }
1467
1469
  write(t) {
1468
1470
  this.baseChunkLogger.appendToLogs(t);
@@ -1484,9 +1486,9 @@ class Wi {
1484
1486
  n.href = r, n.download = `walletconnect-logs-${(/* @__PURE__ */ new Date()).toISOString()}.txt`, document.body.appendChild(n), n.click(), document.body.removeChild(n), URL.revokeObjectURL(r);
1485
1487
  }
1486
1488
  }
1487
- class ki {
1489
+ class Hi {
1488
1490
  constructor(t, r = Mt) {
1489
- this.baseChunkLogger = new pn(t, r);
1491
+ this.baseChunkLogger = new gn(t, r);
1490
1492
  }
1491
1493
  write(t) {
1492
1494
  this.baseChunkLogger.appendToLogs(t);
@@ -1504,98 +1506,98 @@ class ki {
1504
1506
  return this.baseChunkLogger.logsToBlob(t);
1505
1507
  }
1506
1508
  }
1507
- var Hi = Object.defineProperty, Vi = Object.defineProperties, Ki = Object.getOwnPropertyDescriptors, vr = Object.getOwnPropertySymbols, qi = Object.prototype.hasOwnProperty, Yi = Object.prototype.propertyIsEnumerable, Er = (e, t, r) => t in e ? Hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
1508
- for (var r in t || (t = {})) qi.call(t, r) && Er(e, r, t[r]);
1509
- if (vr) for (var r of vr(t)) Yi.call(t, r) && Er(e, r, t[r]);
1509
+ var Vi = Object.defineProperty, Ki = Object.defineProperties, qi = Object.getOwnPropertyDescriptors, vr = Object.getOwnPropertySymbols, Yi = Object.prototype.hasOwnProperty, Gi = Object.prototype.propertyIsEnumerable, Er = (e, t, r) => t in e ? Vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xe = (e, t) => {
1510
+ for (var r in t || (t = {})) Yi.call(t, r) && Er(e, r, t[r]);
1511
+ if (vr) for (var r of vr(t)) Gi.call(t, r) && Er(e, r, t[r]);
1510
1512
  return e;
1511
- }, Xe = (e, t) => Vi(e, Ki(t));
1512
- function Ff(e) {
1513
- return Xe(Je({}, e), { level: (e == null ? void 0 : e.level) || $i.level });
1513
+ }, Ze = (e, t) => Ki(e, qi(t));
1514
+ function Af(e) {
1515
+ return Ze(Xe({}, e), { level: (e == null ? void 0 : e.level) || zi.level });
1514
1516
  }
1515
- function Gi(e, t = Le) {
1517
+ function Ji(e, t = Ue) {
1516
1518
  return e[t] || "";
1517
1519
  }
1518
- function Ji(e, t, r = Le) {
1520
+ function Xi(e, t, r = Ue) {
1519
1521
  return e[r] = t, e;
1520
1522
  }
1521
- function Xi(e, t = Le) {
1523
+ function Zi(e, t = Ue) {
1522
1524
  let r = "";
1523
- return typeof e.bindings > "u" ? r = Gi(e, t) : r = e.bindings().context || "", r;
1525
+ return typeof e.bindings > "u" ? r = Ji(e, t) : r = e.bindings().context || "", r;
1524
1526
  }
1525
- function Zi(e, t, r = Le) {
1526
- const n = Xi(e, r);
1527
+ function Qi(e, t, r = Ue) {
1528
+ const n = Zi(e, r);
1527
1529
  return n.trim() ? `${n}/${t}` : t;
1528
1530
  }
1529
- function Cf(e, t, r = Le) {
1530
- const n = Zi(e, t, r), o = e.child({ context: n });
1531
- return Ji(o, n, r);
1531
+ function xf(e, t, r = Ue) {
1532
+ const n = Qi(e, t, r), o = e.child({ context: n });
1533
+ return Xi(o, n, r);
1532
1534
  }
1533
- function Qi(e) {
1535
+ function es(e) {
1534
1536
  var t, r;
1535
- const n = new Wi((t = e.opts) == null ? void 0 : t.level, e.maxSizeInBytes);
1536
- return { logger: bn(Xe(Je({}, e.opts), { level: "trace", browser: Xe(Je({}, (r = e.opts) == null ? void 0 : r.browser), { write: (o) => n.write(o) }) })), chunkLoggerController: n };
1537
+ const n = new ki((t = e.opts) == null ? void 0 : t.level, e.maxSizeInBytes);
1538
+ return { logger: pn(Ze(Xe({}, e.opts), { level: "trace", browser: Ze(Xe({}, (r = e.opts) == null ? void 0 : r.browser), { write: (o) => n.write(o) }) })), chunkLoggerController: n };
1537
1539
  }
1538
- function es(e) {
1540
+ function ts(e) {
1539
1541
  var t;
1540
- const r = new ki((t = e.opts) == null ? void 0 : t.level, e.maxSizeInBytes);
1541
- return { logger: bn(Xe(Je({}, e.opts), { level: "trace" }), r), chunkLoggerController: r };
1542
+ const r = new Hi((t = e.opts) == null ? void 0 : t.level, e.maxSizeInBytes);
1543
+ return { logger: pn(Ze(Xe({}, e.opts), { level: "trace" }), r), chunkLoggerController: r };
1542
1544
  }
1543
- function Af(e) {
1544
- return typeof e.loggerOverride < "u" && typeof e.loggerOverride != "string" ? { logger: e.loggerOverride, chunkLoggerController: null } : typeof window < "u" ? Qi(e) : es(e);
1545
+ function Bf(e) {
1546
+ return typeof e.loggerOverride < "u" && typeof e.loggerOverride != "string" ? { logger: e.loggerOverride, chunkLoggerController: null } : typeof window < "u" ? es(e) : ts(e);
1545
1547
  }
1546
- function ts(e) {
1548
+ function rs(e) {
1547
1549
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
1548
1550
  }
1549
- function gn(e, ...t) {
1550
- if (!ts(e)) throw new Error("Uint8Array expected");
1551
+ function wn(e, ...t) {
1552
+ if (!rs(e)) throw new Error("Uint8Array expected");
1551
1553
  if (t.length > 0 && !t.includes(e.length)) throw new Error("Uint8Array expected of length " + t + ", got length=" + e.length);
1552
1554
  }
1553
1555
  function _r(e, t = !0) {
1554
1556
  if (e.destroyed) throw new Error("Hash instance has been destroyed");
1555
1557
  if (t && e.finished) throw new Error("Hash#digest() has already been called");
1556
1558
  }
1557
- function rs(e, t) {
1558
- gn(e);
1559
+ function ns(e, t) {
1560
+ wn(e);
1559
1561
  const r = t.outputLen;
1560
1562
  if (e.length < r) throw new Error("digestInto() expects output buffer of length at least " + r);
1561
1563
  }
1562
1564
  const Ee = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
1563
1565
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
1564
1566
  const wt = (e) => new DataView(e.buffer, e.byteOffset, e.byteLength);
1565
- function ns(e) {
1567
+ function os(e) {
1566
1568
  if (typeof e != "string") throw new Error("utf8ToBytes expected string, got " + typeof e);
1567
1569
  return new Uint8Array(new TextEncoder().encode(e));
1568
1570
  }
1569
- function wn(e) {
1570
- return typeof e == "string" && (e = ns(e)), gn(e), e;
1571
+ function Dn(e) {
1572
+ return typeof e == "string" && (e = os(e)), wn(e), e;
1571
1573
  }
1572
- class os {
1574
+ class is {
1573
1575
  clone() {
1574
1576
  return this._cloneInto();
1575
1577
  }
1576
1578
  }
1577
- function is(e) {
1578
- const t = (n) => e().update(wn(n)).digest(), r = e();
1579
+ function ss(e) {
1580
+ const t = (n) => e().update(Dn(n)).digest(), r = e();
1579
1581
  return t.outputLen = r.outputLen, t.blockLen = r.blockLen, t.create = () => e(), t;
1580
1582
  }
1581
- function Dn(e = 32) {
1583
+ function yn(e = 32) {
1582
1584
  if (Ee && typeof Ee.getRandomValues == "function") return Ee.getRandomValues(new Uint8Array(e));
1583
1585
  if (Ee && typeof Ee.randomBytes == "function") return Ee.randomBytes(e);
1584
1586
  throw new Error("crypto.getRandomValues must be defined");
1585
1587
  }
1586
- function ss(e, t, r, n) {
1588
+ function as(e, t, r, n) {
1587
1589
  if (typeof e.setBigUint64 == "function") return e.setBigUint64(t, r, n);
1588
1590
  const o = BigInt(32), i = BigInt(4294967295), a = Number(r >> o & i), l = Number(r & i), c = n ? 4 : 0, s = n ? 0 : 4;
1589
1591
  e.setUint32(t + c, a, n), e.setUint32(t + s, l, n);
1590
1592
  }
1591
- class as extends os {
1593
+ class us extends is {
1592
1594
  constructor(t, r, n, o) {
1593
1595
  super(), this.blockLen = t, this.outputLen = r, this.padOffset = n, this.isLE = o, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(t), this.view = wt(this.buffer);
1594
1596
  }
1595
1597
  update(t) {
1596
1598
  _r(this);
1597
1599
  const { view: r, buffer: n, blockLen: o } = this;
1598
- t = wn(t);
1600
+ t = Dn(t);
1599
1601
  const i = t.length;
1600
1602
  for (let a = 0; a < i; ) {
1601
1603
  const l = Math.min(o - this.pos, i - a);
@@ -1609,12 +1611,12 @@ class as extends os {
1609
1611
  return this.length += t.length, this.roundClean(), this;
1610
1612
  }
1611
1613
  digestInto(t) {
1612
- _r(this), rs(t, this), this.finished = !0;
1614
+ _r(this), ns(t, this), this.finished = !0;
1613
1615
  const { buffer: r, view: n, blockLen: o, isLE: i } = this;
1614
1616
  let { pos: a } = this;
1615
1617
  r[a++] = 128, this.buffer.subarray(a).fill(0), this.padOffset > o - a && (this.process(n, 0), a = 0);
1616
1618
  for (let f = a; f < o; f++) r[f] = 0;
1617
- ss(n, o - 8, BigInt(this.length * 8), i), this.process(n, 0);
1619
+ as(n, o - 8, BigInt(this.length * 8), i), this.process(n, 0);
1618
1620
  const l = wt(t), c = this.outputLen;
1619
1621
  if (c % 4) throw new Error("_sha2: outputLen should be aligned to 32bit");
1620
1622
  const s = c / 4, u = this.get();
@@ -1633,25 +1635,25 @@ class as extends os {
1633
1635
  return t.length = o, t.pos = l, t.finished = i, t.destroyed = a, o % r && t.buffer.set(n), t;
1634
1636
  }
1635
1637
  }
1636
- const He = BigInt(2 ** 32 - 1), It = BigInt(32);
1637
- function yn(e, t = !1) {
1638
- return t ? { h: Number(e & He), l: Number(e >> It & He) } : { h: Number(e >> It & He) | 0, l: Number(e & He) | 0 };
1638
+ const Ve = BigInt(2 ** 32 - 1), It = BigInt(32);
1639
+ function mn(e, t = !1) {
1640
+ return t ? { h: Number(e & Ve), l: Number(e >> It & Ve) } : { h: Number(e >> It & Ve) | 0, l: Number(e & Ve) | 0 };
1639
1641
  }
1640
- function us(e, t = !1) {
1642
+ function cs(e, t = !1) {
1641
1643
  let r = new Uint32Array(e.length), n = new Uint32Array(e.length);
1642
1644
  for (let o = 0; o < e.length; o++) {
1643
- const { h: i, l: a } = yn(e[o], t);
1645
+ const { h: i, l: a } = mn(e[o], t);
1644
1646
  [r[o], n[o]] = [i, a];
1645
1647
  }
1646
1648
  return [r, n];
1647
1649
  }
1648
- const cs = (e, t) => BigInt(e >>> 0) << It | BigInt(t >>> 0), ls = (e, t, r) => e >>> r, fs = (e, t, r) => e << 32 - r | t >>> r, hs = (e, t, r) => e >>> r | t << 32 - r, ds = (e, t, r) => e << 32 - r | t >>> r, bs = (e, t, r) => e << 64 - r | t >>> r - 32, ps = (e, t, r) => e >>> r - 32 | t << 64 - r, gs = (e, t) => t, ws = (e, t) => e, Ds = (e, t, r) => e << r | t >>> 32 - r, ys = (e, t, r) => t << r | e >>> 32 - r, ms = (e, t, r) => t << r - 32 | e >>> 64 - r, vs = (e, t, r) => e << r - 32 | t >>> 64 - r;
1649
- function Es(e, t, r, n) {
1650
+ const ls = (e, t) => BigInt(e >>> 0) << It | BigInt(t >>> 0), fs = (e, t, r) => e >>> r, hs = (e, t, r) => e << 32 - r | t >>> r, ds = (e, t, r) => e >>> r | t << 32 - r, bs = (e, t, r) => e << 32 - r | t >>> r, ps = (e, t, r) => e << 64 - r | t >>> r - 32, gs = (e, t, r) => e >>> r - 32 | t << 64 - r, ws = (e, t) => t, Ds = (e, t) => e, ys = (e, t, r) => e << r | t >>> 32 - r, ms = (e, t, r) => t << r | e >>> 32 - r, vs = (e, t, r) => t << r - 32 | e >>> 64 - r, Es = (e, t, r) => e << r - 32 | t >>> 64 - r;
1651
+ function _s(e, t, r, n) {
1650
1652
  const o = (t >>> 0) + (n >>> 0);
1651
1653
  return { h: e + r + (o / 2 ** 32 | 0) | 0, l: o | 0 };
1652
1654
  }
1653
- const _s = (e, t, r) => (e >>> 0) + (t >>> 0) + (r >>> 0), Ss = (e, t, r, n) => t + r + n + (e / 2 ** 32 | 0) | 0, Os = (e, t, r, n) => (e >>> 0) + (t >>> 0) + (r >>> 0) + (n >>> 0), Fs = (e, t, r, n, o) => t + r + n + o + (e / 2 ** 32 | 0) | 0, Cs = (e, t, r, n, o) => (e >>> 0) + (t >>> 0) + (r >>> 0) + (n >>> 0) + (o >>> 0), As = (e, t, r, n, o, i) => t + r + n + o + i + (e / 2 ** 32 | 0) | 0, O = { fromBig: yn, split: us, toBig: cs, shrSH: ls, shrSL: fs, rotrSH: hs, rotrSL: ds, rotrBH: bs, rotrBL: ps, rotr32H: gs, rotr32L: ws, rotlSH: Ds, rotlSL: ys, rotlBH: ms, rotlBL: vs, add: Es, add3L: _s, add3H: Ss, add4L: Os, add4H: Fs, add5H: As, add5L: Cs }, [xs, Bs] = O.split(["0x428a2f98d728ae22", "0x7137449123ef65cd", "0xb5c0fbcfec4d3b2f", "0xe9b5dba58189dbbc", "0x3956c25bf348b538", "0x59f111f1b605d019", "0x923f82a4af194f9b", "0xab1c5ed5da6d8118", "0xd807aa98a3030242", "0x12835b0145706fbe", "0x243185be4ee4b28c", "0x550c7dc3d5ffb4e2", "0x72be5d74f27b896f", "0x80deb1fe3b1696b1", "0x9bdc06a725c71235", "0xc19bf174cf692694", "0xe49b69c19ef14ad2", "0xefbe4786384f25e3", "0x0fc19dc68b8cd5b5", "0x240ca1cc77ac9c65", "0x2de92c6f592b0275", "0x4a7484aa6ea6e483", "0x5cb0a9dcbd41fbd4", "0x76f988da831153b5", "0x983e5152ee66dfab", "0xa831c66d2db43210", "0xb00327c898fb213f", "0xbf597fc7beef0ee4", "0xc6e00bf33da88fc2", "0xd5a79147930aa725", "0x06ca6351e003826f", "0x142929670a0e6e70", "0x27b70a8546d22ffc", "0x2e1b21385c26c926", "0x4d2c6dfc5ac42aed", "0x53380d139d95b3df", "0x650a73548baf63de", "0x766a0abb3c77b2a8", "0x81c2c92e47edaee6", "0x92722c851482353b", "0xa2bfe8a14cf10364", "0xa81a664bbc423001", "0xc24b8b70d0f89791", "0xc76c51a30654be30", "0xd192e819d6ef5218", "0xd69906245565a910", "0xf40e35855771202a", "0x106aa07032bbd1b8", "0x19a4c116b8d2d0c8", "0x1e376c085141ab53", "0x2748774cdf8eeb99", "0x34b0bcb5e19b48a8", "0x391c0cb3c5c95a63", "0x4ed8aa4ae3418acb", "0x5b9cca4f7763e373", "0x682e6ff3d6b2b8a3", "0x748f82ee5defb2fc", "0x78a5636f43172f60", "0x84c87814a1f0ab72", "0x8cc702081a6439ec", "0x90befffa23631e28", "0xa4506cebde82bde9", "0xbef9a3f7b2c67915", "0xc67178f2e372532b", "0xca273eceea26619c", "0xd186b8c721c0c207", "0xeada7dd6cde0eb1e", "0xf57d4f7fee6ed178", "0x06f067aa72176fba", "0x0a637dc5a2c898a6", "0x113f9804bef90dae", "0x1b710b35131c471b", "0x28db77f523047d84", "0x32caab7b40c72493", "0x3c9ebe0a15c9bebc", "0x431d67c49c100d4c", "0x4cc5d4becb3e42b6", "0x597f299cfc657e2a", "0x5fcb6fab3ad6faec", "0x6c44198c4a475817"].map((e) => BigInt(e))), se = new Uint32Array(80), ae = new Uint32Array(80);
1654
- class Is extends as {
1655
+ const Ss = (e, t, r) => (e >>> 0) + (t >>> 0) + (r >>> 0), Os = (e, t, r, n) => t + r + n + (e / 2 ** 32 | 0) | 0, Fs = (e, t, r, n) => (e >>> 0) + (t >>> 0) + (r >>> 0) + (n >>> 0), Cs = (e, t, r, n, o) => t + r + n + o + (e / 2 ** 32 | 0) | 0, As = (e, t, r, n, o) => (e >>> 0) + (t >>> 0) + (r >>> 0) + (n >>> 0) + (o >>> 0), xs = (e, t, r, n, o, i) => t + r + n + o + i + (e / 2 ** 32 | 0) | 0, O = { fromBig: mn, split: cs, toBig: ls, shrSH: fs, shrSL: hs, rotrSH: ds, rotrSL: bs, rotrBH: ps, rotrBL: gs, rotr32H: ws, rotr32L: Ds, rotlSH: ys, rotlSL: ms, rotlBH: vs, rotlBL: Es, add: _s, add3L: Ss, add3H: Os, add4L: Fs, add4H: Cs, add5H: xs, add5L: As }, [Bs, Is] = O.split(["0x428a2f98d728ae22", "0x7137449123ef65cd", "0xb5c0fbcfec4d3b2f", "0xe9b5dba58189dbbc", "0x3956c25bf348b538", "0x59f111f1b605d019", "0x923f82a4af194f9b", "0xab1c5ed5da6d8118", "0xd807aa98a3030242", "0x12835b0145706fbe", "0x243185be4ee4b28c", "0x550c7dc3d5ffb4e2", "0x72be5d74f27b896f", "0x80deb1fe3b1696b1", "0x9bdc06a725c71235", "0xc19bf174cf692694", "0xe49b69c19ef14ad2", "0xefbe4786384f25e3", "0x0fc19dc68b8cd5b5", "0x240ca1cc77ac9c65", "0x2de92c6f592b0275", "0x4a7484aa6ea6e483", "0x5cb0a9dcbd41fbd4", "0x76f988da831153b5", "0x983e5152ee66dfab", "0xa831c66d2db43210", "0xb00327c898fb213f", "0xbf597fc7beef0ee4", "0xc6e00bf33da88fc2", "0xd5a79147930aa725", "0x06ca6351e003826f", "0x142929670a0e6e70", "0x27b70a8546d22ffc", "0x2e1b21385c26c926", "0x4d2c6dfc5ac42aed", "0x53380d139d95b3df", "0x650a73548baf63de", "0x766a0abb3c77b2a8", "0x81c2c92e47edaee6", "0x92722c851482353b", "0xa2bfe8a14cf10364", "0xa81a664bbc423001", "0xc24b8b70d0f89791", "0xc76c51a30654be30", "0xd192e819d6ef5218", "0xd69906245565a910", "0xf40e35855771202a", "0x106aa07032bbd1b8", "0x19a4c116b8d2d0c8", "0x1e376c085141ab53", "0x2748774cdf8eeb99", "0x34b0bcb5e19b48a8", "0x391c0cb3c5c95a63", "0x4ed8aa4ae3418acb", "0x5b9cca4f7763e373", "0x682e6ff3d6b2b8a3", "0x748f82ee5defb2fc", "0x78a5636f43172f60", "0x84c87814a1f0ab72", "0x8cc702081a6439ec", "0x90befffa23631e28", "0xa4506cebde82bde9", "0xbef9a3f7b2c67915", "0xc67178f2e372532b", "0xca273eceea26619c", "0xd186b8c721c0c207", "0xeada7dd6cde0eb1e", "0xf57d4f7fee6ed178", "0x06f067aa72176fba", "0x0a637dc5a2c898a6", "0x113f9804bef90dae", "0x1b710b35131c471b", "0x28db77f523047d84", "0x32caab7b40c72493", "0x3c9ebe0a15c9bebc", "0x431d67c49c100d4c", "0x4cc5d4becb3e42b6", "0x597f299cfc657e2a", "0x5fcb6fab3ad6faec", "0x6c44198c4a475817"].map((e) => BigInt(e))), se = new Uint32Array(80), ae = new Uint32Array(80);
1656
+ class Ts extends us {
1655
1657
  constructor() {
1656
1658
  super(128, 64, 16, !1), this.Ah = 1779033703, this.Al = -205731576, this.Bh = -1150833019, this.Bl = -2067093701, this.Ch = 1013904242, this.Cl = -23791573, this.Dh = -1521486534, this.Dl = 1595750129, this.Eh = 1359893119, this.El = -1377402159, this.Fh = -1694144372, this.Fl = 725511199, this.Gh = 528734635, this.Gl = -79577749, this.Hh = 1541459225, this.Hl = 327033209;
1657
1659
  }
@@ -1670,7 +1672,7 @@ class Is extends as {
1670
1672
  }
1671
1673
  let { Ah: n, Al: o, Bh: i, Bl: a, Ch: l, Cl: c, Dh: s, Dl: u, Eh: f, El: h, Fh: b, Fl: d, Gh: g, Gl: D, Hh: y, Hl: S } = this;
1672
1674
  for (let p = 0; p < 80; p++) {
1673
- const m = O.rotrSH(f, h, 14) ^ O.rotrSH(f, h, 18) ^ O.rotrBH(f, h, 41), F = O.rotrSL(f, h, 14) ^ O.rotrSL(f, h, 18) ^ O.rotrBL(f, h, 41), T = f & b ^ ~f & g, B = h & d ^ ~h & D, C = O.add5L(S, F, B, Bs[p], ae[p]), P = O.add5H(C, y, m, T, xs[p], se[p]), ge = C | 0, ce = O.rotrSH(n, o, 28) ^ O.rotrBH(n, o, 34) ^ O.rotrBH(n, o, 39), we = O.rotrSL(n, o, 28) ^ O.rotrBL(n, o, 34) ^ O.rotrBL(n, o, 39), Fe = n & i ^ n & l ^ i & l, ut = o & a ^ o & c ^ a & c;
1675
+ const m = O.rotrSH(f, h, 14) ^ O.rotrSH(f, h, 18) ^ O.rotrBH(f, h, 41), F = O.rotrSL(f, h, 14) ^ O.rotrSL(f, h, 18) ^ O.rotrBL(f, h, 41), T = f & b ^ ~f & g, B = h & d ^ ~h & D, C = O.add5L(S, F, B, Is[p], ae[p]), P = O.add5H(C, y, m, T, Bs[p], se[p]), ge = C | 0, ce = O.rotrSH(n, o, 28) ^ O.rotrBH(n, o, 34) ^ O.rotrBH(n, o, 39), we = O.rotrSL(n, o, 28) ^ O.rotrBL(n, o, 34) ^ O.rotrBL(n, o, 39), Fe = n & i ^ n & l ^ i & l, ut = o & a ^ o & c ^ a & c;
1674
1676
  y = g | 0, S = D | 0, g = b | 0, D = d | 0, b = f | 0, d = h | 0, { h: f, l: h } = O.add(s | 0, u | 0, P | 0, ge | 0), s = l | 0, u = c | 0, l = i | 0, c = a | 0, i = n | 0, a = o | 0;
1675
1677
  const E = O.add3L(ge, we, ut);
1676
1678
  n = O.add3H(E, P, ce, Fe), o = E | 0;
@@ -1684,9 +1686,9 @@ class Is extends as {
1684
1686
  this.buffer.fill(0), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
1685
1687
  }
1686
1688
  }
1687
- const Ts = is(() => new Is());
1689
+ const Ns = ss(() => new Ts());
1688
1690
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
1689
- const $t = BigInt(0), mn = BigInt(1), Rs = BigInt(2);
1691
+ const $t = BigInt(0), vn = BigInt(1), Rs = BigInt(2);
1690
1692
  function zt(e) {
1691
1693
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
1692
1694
  }
@@ -1696,14 +1698,14 @@ function Wt(e) {
1696
1698
  function Dt(e, t) {
1697
1699
  if (typeof t != "boolean") throw new Error(e + " boolean expected, got " + t);
1698
1700
  }
1699
- const Ns = Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
1701
+ const Ps = Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
1700
1702
  function kt(e) {
1701
1703
  Wt(e);
1702
1704
  let t = "";
1703
- for (let r = 0; r < e.length; r++) t += Ns[e[r]];
1705
+ for (let r = 0; r < e.length; r++) t += Ps[e[r]];
1704
1706
  return t;
1705
1707
  }
1706
- function vn(e) {
1708
+ function En(e) {
1707
1709
  if (typeof e != "string") throw new Error("hex string expected, got " + typeof e);
1708
1710
  return e === "" ? $t : BigInt("0x" + e);
1709
1711
  }
@@ -1713,7 +1715,7 @@ function Sr(e) {
1713
1715
  if (e >= te.A && e <= te.F) return e - (te.A - 10);
1714
1716
  if (e >= te.a && e <= te.f) return e - (te.a - 10);
1715
1717
  }
1716
- function En(e) {
1718
+ function _n(e) {
1717
1719
  if (typeof e != "string") throw new Error("hex string expected, got " + typeof e);
1718
1720
  const t = e.length, r = t / 2;
1719
1721
  if (t % 2) throw new Error("hex string expected, got unpadded hex of length " + t);
@@ -1728,22 +1730,22 @@ function En(e) {
1728
1730
  }
1729
1731
  return n;
1730
1732
  }
1731
- function Ps(e) {
1732
- return vn(kt(e));
1733
+ function js(e) {
1734
+ return En(kt(e));
1733
1735
  }
1734
- function Ge(e) {
1735
- return Wt(e), vn(kt(Uint8Array.from(e).reverse()));
1736
+ function Je(e) {
1737
+ return Wt(e), En(kt(Uint8Array.from(e).reverse()));
1736
1738
  }
1737
- function _n(e, t) {
1738
- return En(e.toString(16).padStart(t * 2, "0"));
1739
+ function Sn(e, t) {
1740
+ return _n(e.toString(16).padStart(t * 2, "0"));
1739
1741
  }
1740
1742
  function Tt(e, t) {
1741
- return _n(e, t).reverse();
1743
+ return Sn(e, t).reverse();
1742
1744
  }
1743
1745
  function re(e, t, r) {
1744
1746
  let n;
1745
1747
  if (typeof t == "string") try {
1746
- n = En(t);
1748
+ n = _n(t);
1747
1749
  } catch (i) {
1748
1750
  throw new Error(e + " must be hex string or Uint8Array, cause: " + i);
1749
1751
  }
@@ -1767,21 +1769,21 @@ function Or(...e) {
1767
1769
  return r;
1768
1770
  }
1769
1771
  const yt = (e) => typeof e == "bigint" && $t <= e;
1770
- function js(e, t, r) {
1772
+ function Ls(e, t, r) {
1771
1773
  return yt(e) && yt(t) && yt(r) && t <= e && e < r;
1772
1774
  }
1773
1775
  function xe(e, t, r, n) {
1774
- if (!js(t, r, n)) throw new Error("expected valid " + e + ": " + r + " <= n < " + n + ", got " + t);
1776
+ if (!Ls(t, r, n)) throw new Error("expected valid " + e + ": " + r + " <= n < " + n + ", got " + t);
1775
1777
  }
1776
- function Ls(e) {
1778
+ function Us(e) {
1777
1779
  let t;
1778
- for (t = 0; e > $t; e >>= mn, t += 1) ;
1780
+ for (t = 0; e > $t; e >>= vn, t += 1) ;
1779
1781
  return t;
1780
1782
  }
1781
- const Us = (e) => (Rs << BigInt(e - 1)) - mn, Ms = { bigint: (e) => typeof e == "bigint", function: (e) => typeof e == "function", boolean: (e) => typeof e == "boolean", string: (e) => typeof e == "string", stringOrUint8Array: (e) => typeof e == "string" || zt(e), isSafeInteger: (e) => Number.isSafeInteger(e), array: (e) => Array.isArray(e), field: (e, t) => t.Fp.isValid(e), hash: (e) => typeof e == "function" && Number.isSafeInteger(e.outputLen) };
1783
+ const Ms = (e) => (Rs << BigInt(e - 1)) - vn, $s = { bigint: (e) => typeof e == "bigint", function: (e) => typeof e == "function", boolean: (e) => typeof e == "boolean", string: (e) => typeof e == "string", stringOrUint8Array: (e) => typeof e == "string" || zt(e), isSafeInteger: (e) => Number.isSafeInteger(e), array: (e) => Array.isArray(e), field: (e, t) => t.Fp.isValid(e), hash: (e) => typeof e == "function" && Number.isSafeInteger(e.outputLen) };
1782
1784
  function Ht(e, t, r = {}) {
1783
1785
  const n = (o, i, a) => {
1784
- const l = Ms[i];
1786
+ const l = $s[i];
1785
1787
  if (typeof l != "function") throw new Error("invalid validator function");
1786
1788
  const c = e[o];
1787
1789
  if (!(a && c === void 0) && !l(c, e)) throw new Error("param " + String(o) + " is invalid. Expected " + i + ", got " + c);
@@ -1799,12 +1801,12 @@ function Fr(e) {
1799
1801
  return t.set(r, i), i;
1800
1802
  };
1801
1803
  }
1802
- const z = BigInt(0), U = BigInt(1), de = BigInt(2), $s = BigInt(3), Rt = BigInt(4), Cr = BigInt(5), Ar = BigInt(8);
1804
+ const z = BigInt(0), U = BigInt(1), de = BigInt(2), zs = BigInt(3), Nt = BigInt(4), Cr = BigInt(5), Ar = BigInt(8);
1803
1805
  function M(e, t) {
1804
1806
  const r = e % t;
1805
1807
  return r >= z ? r : t + r;
1806
1808
  }
1807
- function zs(e, t, r) {
1809
+ function Ws(e, t, r) {
1808
1810
  if (t < z) throw new Error("invalid exponent, negatives unsupported");
1809
1811
  if (r <= z) throw new Error("invalid modulus");
1810
1812
  if (r === U) return z;
@@ -1828,13 +1830,13 @@ function xr(e, t) {
1828
1830
  if (n !== U) throw new Error("invert: does not exist");
1829
1831
  return M(o, t);
1830
1832
  }
1831
- function Ws(e) {
1833
+ function ks(e) {
1832
1834
  const t = (e - U) / de;
1833
1835
  let r, n, o;
1834
1836
  for (r = e - U, n = 0; r % de === z; r /= de, n++) ;
1835
- for (o = de; o < e && zs(o, t, e) !== e - U; o++) if (o > 1e3) throw new Error("Cannot find square root: likely non-prime P");
1837
+ for (o = de; o < e && Ws(o, t, e) !== e - U; o++) if (o > 1e3) throw new Error("Cannot find square root: likely non-prime P");
1836
1838
  if (n === 1) {
1837
- const a = (e + U) / Rt;
1839
+ const a = (e + U) / Nt;
1838
1840
  return function(l, c) {
1839
1841
  const s = l.pow(c, a);
1840
1842
  if (!l.eql(l.sqr(s), c)) throw new Error("Cannot find square root");
@@ -1855,9 +1857,9 @@ function Ws(e) {
1855
1857
  return u;
1856
1858
  };
1857
1859
  }
1858
- function ks(e) {
1859
- if (e % Rt === $s) {
1860
- const t = (e + U) / Rt;
1860
+ function Hs(e) {
1861
+ if (e % Nt === zs) {
1862
+ const t = (e + U) / Nt;
1861
1863
  return function(r, n) {
1862
1864
  const o = r.pow(n, t);
1863
1865
  if (!r.eql(r.sqr(o), n)) throw new Error("Cannot find square root");
@@ -1872,14 +1874,14 @@ function ks(e) {
1872
1874
  return c;
1873
1875
  };
1874
1876
  }
1875
- return Ws(e);
1877
+ return ks(e);
1876
1878
  }
1877
- const Hs = (e, t) => (M(e, t) & U) === U, Vs = ["create", "isValid", "is0", "neg", "inv", "sqrt", "sqr", "eql", "add", "sub", "mul", "pow", "div", "addN", "subN", "mulN", "sqrN"];
1878
- function Ks(e) {
1879
- const t = { ORDER: "bigint", MASK: "bigint", BYTES: "isSafeInteger", BITS: "isSafeInteger" }, r = Vs.reduce((n, o) => (n[o] = "function", n), t);
1879
+ const Vs = (e, t) => (M(e, t) & U) === U, Ks = ["create", "isValid", "is0", "neg", "inv", "sqrt", "sqr", "eql", "add", "sub", "mul", "pow", "div", "addN", "subN", "mulN", "sqrN"];
1880
+ function qs(e) {
1881
+ const t = { ORDER: "bigint", MASK: "bigint", BYTES: "isSafeInteger", BITS: "isSafeInteger" }, r = Ks.reduce((n, o) => (n[o] = "function", n), t);
1880
1882
  return Ht(e, r);
1881
1883
  }
1882
- function qs(e, t, r) {
1884
+ function Ys(e, t, r) {
1883
1885
  if (r < z) throw new Error("invalid exponent, negatives unsupported");
1884
1886
  if (r === z) return e.ONE;
1885
1887
  if (r === U) return t;
@@ -1887,63 +1889,63 @@ function qs(e, t, r) {
1887
1889
  for (; r > z; ) r & U && (n = e.mul(n, o)), o = e.sqr(o), r >>= U;
1888
1890
  return n;
1889
1891
  }
1890
- function Ys(e, t) {
1892
+ function Gs(e, t) {
1891
1893
  const r = new Array(t.length), n = t.reduce((i, a, l) => e.is0(a) ? i : (r[l] = i, e.mul(i, a)), e.ONE), o = e.inv(n);
1892
1894
  return t.reduceRight((i, a, l) => e.is0(a) ? i : (r[l] = e.mul(i, r[l]), e.mul(i, a)), o), r;
1893
1895
  }
1894
- function Sn(e, t) {
1896
+ function On(e, t) {
1895
1897
  const r = t !== void 0 ? t : e.toString(2).length, n = Math.ceil(r / 8);
1896
1898
  return { nBitLength: r, nByteLength: n };
1897
1899
  }
1898
- function On(e, t, r = !1, n = {}) {
1900
+ function Fn(e, t, r = !1, n = {}) {
1899
1901
  if (e <= z) throw new Error("invalid field: expected ORDER > 0, got " + e);
1900
- const { nBitLength: o, nByteLength: i } = Sn(e, t);
1902
+ const { nBitLength: o, nByteLength: i } = On(e, t);
1901
1903
  if (i > 2048) throw new Error("invalid field: expected ORDER of <= 2048 bytes");
1902
1904
  let a;
1903
- const l = Object.freeze({ ORDER: e, isLE: r, BITS: o, BYTES: i, MASK: Us(o), ZERO: z, ONE: U, create: (c) => M(c, e), isValid: (c) => {
1905
+ const l = Object.freeze({ ORDER: e, isLE: r, BITS: o, BYTES: i, MASK: Ms(o), ZERO: z, ONE: U, create: (c) => M(c, e), isValid: (c) => {
1904
1906
  if (typeof c != "bigint") throw new Error("invalid field element: expected bigint, got " + typeof c);
1905
1907
  return z <= c && c < e;
1906
- }, is0: (c) => c === z, isOdd: (c) => (c & U) === U, neg: (c) => M(-c, e), eql: (c, s) => c === s, sqr: (c) => M(c * c, e), add: (c, s) => M(c + s, e), sub: (c, s) => M(c - s, e), mul: (c, s) => M(c * s, e), pow: (c, s) => qs(l, c, s), div: (c, s) => M(c * xr(s, e), e), sqrN: (c) => c * c, addN: (c, s) => c + s, subN: (c, s) => c - s, mulN: (c, s) => c * s, inv: (c) => xr(c, e), sqrt: n.sqrt || ((c) => (a || (a = ks(e)), a(l, c))), invertBatch: (c) => Ys(l, c), cmov: (c, s, u) => u ? s : c, toBytes: (c) => r ? Tt(c, i) : _n(c, i), fromBytes: (c) => {
1908
+ }, is0: (c) => c === z, isOdd: (c) => (c & U) === U, neg: (c) => M(-c, e), eql: (c, s) => c === s, sqr: (c) => M(c * c, e), add: (c, s) => M(c + s, e), sub: (c, s) => M(c - s, e), mul: (c, s) => M(c * s, e), pow: (c, s) => Ys(l, c, s), div: (c, s) => M(c * xr(s, e), e), sqrN: (c) => c * c, addN: (c, s) => c + s, subN: (c, s) => c - s, mulN: (c, s) => c * s, inv: (c) => xr(c, e), sqrt: n.sqrt || ((c) => (a || (a = Hs(e)), a(l, c))), invertBatch: (c) => Gs(l, c), cmov: (c, s, u) => u ? s : c, toBytes: (c) => r ? Tt(c, i) : Sn(c, i), fromBytes: (c) => {
1907
1909
  if (c.length !== i) throw new Error("Field.fromBytes: expected " + i + " bytes, got " + c.length);
1908
- return r ? Ge(c) : Ps(c);
1910
+ return r ? Je(c) : js(c);
1909
1911
  } });
1910
1912
  return Object.freeze(l);
1911
1913
  }
1912
- const Br = BigInt(0), Ve = BigInt(1);
1914
+ const Br = BigInt(0), Ke = BigInt(1);
1913
1915
  function mt(e, t) {
1914
1916
  const r = t.negate();
1915
1917
  return e ? r : t;
1916
1918
  }
1917
- function Fn(e, t) {
1919
+ function Cn(e, t) {
1918
1920
  if (!Number.isSafeInteger(e) || e <= 0 || e > t) throw new Error("invalid window size, expected [1.." + t + "], got W=" + e);
1919
1921
  }
1920
1922
  function vt(e, t) {
1921
- Fn(e, t);
1923
+ Cn(e, t);
1922
1924
  const r = Math.ceil(t / e) + 1, n = 2 ** (e - 1);
1923
1925
  return { windows: r, windowSize: n };
1924
1926
  }
1925
- function Gs(e, t) {
1927
+ function Js(e, t) {
1926
1928
  if (!Array.isArray(e)) throw new Error("array expected");
1927
1929
  e.forEach((r, n) => {
1928
1930
  if (!(r instanceof t)) throw new Error("invalid point at index " + n);
1929
1931
  });
1930
1932
  }
1931
- function Js(e, t) {
1933
+ function Xs(e, t) {
1932
1934
  if (!Array.isArray(e)) throw new Error("array of scalars expected");
1933
1935
  e.forEach((r, n) => {
1934
1936
  if (!t.isValid(r)) throw new Error("invalid scalar at index " + n);
1935
1937
  });
1936
1938
  }
1937
- const Et = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap();
1939
+ const Et = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakMap();
1938
1940
  function _t(e) {
1939
- return Cn.get(e) || 1;
1941
+ return An.get(e) || 1;
1940
1942
  }
1941
- function Xs(e, t) {
1943
+ function Zs(e, t) {
1942
1944
  return { constTimeNegate: mt, hasPrecomputes(r) {
1943
1945
  return _t(r) !== 1;
1944
1946
  }, unsafeLadder(r, n, o = e.ZERO) {
1945
1947
  let i = r;
1946
- for (; n > Br; ) n & Ve && (o = o.add(i)), i = i.double(), n >>= Ve;
1948
+ for (; n > Br; ) n & Ke && (o = o.add(i)), i = i.double(), n >>= Ke;
1947
1949
  return o;
1948
1950
  }, precomputeWindow(r, n) {
1949
1951
  const { windows: o, windowSize: i } = vt(n, t), a = [];
@@ -1961,7 +1963,7 @@ function Xs(e, t) {
1961
1963
  for (let h = 0; h < i; h++) {
1962
1964
  const b = h * a;
1963
1965
  let d = Number(o & s);
1964
- o >>= f, d > a && (d -= u, o += Ve);
1966
+ o >>= f, d > a && (d -= u, o += Ke);
1965
1967
  const g = b, D = b + Math.abs(d) - 1, y = h % 2 !== 0, S = d < 0;
1966
1968
  d === 0 ? c = c.add(mt(y, n[g])) : l = l.add(mt(S, n[D]));
1967
1969
  }
@@ -1972,7 +1974,7 @@ function Xs(e, t) {
1972
1974
  const h = f * l;
1973
1975
  if (o === Br) break;
1974
1976
  let b = Number(o & c);
1975
- if (o >>= u, b > l && (b -= s, o += Ve), b === 0) continue;
1977
+ if (o >>= u, b > l && (b -= s, o += Ke), b === 0) continue;
1976
1978
  let d = n[h + Math.abs(b) - 1];
1977
1979
  b < 0 && (d = d.negate()), i = i.add(d);
1978
1980
  }
@@ -1987,12 +1989,12 @@ function Xs(e, t) {
1987
1989
  const a = _t(r);
1988
1990
  return a === 1 ? this.unsafeLadder(r, n, i) : this.wNAFUnsafe(a, this.getPrecomputes(a, r, o), n, i);
1989
1991
  }, setWindowSize(r, n) {
1990
- Fn(n, t), Cn.set(r, n), Et.delete(r);
1992
+ Cn(n, t), An.set(r, n), Et.delete(r);
1991
1993
  } };
1992
1994
  }
1993
- function Zs(e, t, r, n) {
1994
- if (Gs(r, e), Js(n, t), r.length !== n.length) throw new Error("arrays of points and scalars must have equal length");
1995
- const o = e.ZERO, i = Ls(BigInt(r.length)), a = i > 12 ? i - 3 : i > 4 ? i - 2 : i ? 2 : 1, l = (1 << a) - 1, c = new Array(l + 1).fill(o), s = Math.floor((t.BITS - 1) / a) * a;
1995
+ function Qs(e, t, r, n) {
1996
+ if (Js(r, e), Xs(n, t), r.length !== n.length) throw new Error("arrays of points and scalars must have equal length");
1997
+ const o = e.ZERO, i = Us(BigInt(r.length)), a = i > 12 ? i - 3 : i > 4 ? i - 2 : i ? 2 : 1, l = (1 << a) - 1, c = new Array(l + 1).fill(o), s = Math.floor((t.BITS - 1) / a) * a;
1996
1998
  let u = o;
1997
1999
  for (let f = s; f >= 0; f -= a) {
1998
2000
  c.fill(o);
@@ -2006,16 +2008,16 @@ function Zs(e, t, r, n) {
2006
2008
  }
2007
2009
  return u;
2008
2010
  }
2009
- function Qs(e) {
2010
- return Ks(e.Fp), Ht(e, { n: "bigint", h: "bigint", Gx: "field", Gy: "field" }, { nBitLength: "isSafeInteger", nByteLength: "isSafeInteger" }), Object.freeze({ ...Sn(e.n, e.nBitLength), ...e, p: e.Fp.ORDER });
2011
+ function ea(e) {
2012
+ return qs(e.Fp), Ht(e, { n: "bigint", h: "bigint", Gx: "field", Gy: "field" }, { nBitLength: "isSafeInteger", nByteLength: "isSafeInteger" }), Object.freeze({ ...On(e.n, e.nBitLength), ...e, p: e.Fp.ORDER });
2011
2013
  }
2012
- const J = BigInt(0), q = BigInt(1), Ke = BigInt(2), ea = BigInt(8), ta = { zip215: !0 };
2013
- function ra(e) {
2014
- const t = Qs(e);
2014
+ const J = BigInt(0), q = BigInt(1), qe = BigInt(2), ta = BigInt(8), ra = { zip215: !0 };
2015
+ function na(e) {
2016
+ const t = ea(e);
2015
2017
  return Ht(e, { hash: "function", a: "bigint", d: "bigint", randomBytes: "function" }, { adjustScalarBytes: "function", domain: "function", uvRatio: "function", mapToCurve: "function" }), Object.freeze({ ...t });
2016
2018
  }
2017
- function na(e) {
2018
- const t = ra(e), { Fp: r, n, prehash: o, hash: i, randomBytes: a, nByteLength: l, h: c } = t, s = Ke << BigInt(l * 8) - q, u = r.create, f = On(t.n, t.nBitLength), h = t.uvRatio || ((E, w) => {
2019
+ function oa(e) {
2020
+ const t = na(e), { Fp: r, n, prehash: o, hash: i, randomBytes: a, nByteLength: l, h: c } = t, s = qe << BigInt(l * 8) - q, u = r.create, f = Fn(t.n, t.nBitLength), h = t.uvRatio || ((E, w) => {
2019
2021
  try {
2020
2022
  return { isValid: !0, value: r.sqrt(E * r.inv(w)) };
2021
2023
  } catch {
@@ -2033,15 +2035,15 @@ function na(e) {
2033
2035
  }
2034
2036
  const y = Fr((E, w) => {
2035
2037
  const { ex: v, ey: _, ez: A } = E, x = E.is0();
2036
- w == null && (w = x ? ea : r.inv(A));
2037
- const I = u(v * w), j = u(_ * w), R = u(A * w);
2038
+ w == null && (w = x ? ta : r.inv(A));
2039
+ const I = u(v * w), j = u(_ * w), N = u(A * w);
2038
2040
  if (x) return { x: J, y: q };
2039
- if (R !== q) throw new Error("invZ was invalid");
2041
+ if (N !== q) throw new Error("invZ was invalid");
2040
2042
  return { x: I, y: j };
2041
2043
  }), S = Fr((E) => {
2042
2044
  const { a: w, d: v } = t;
2043
2045
  if (E.is0()) throw new Error("bad point: ZERO");
2044
- const { ex: _, ey: A, ez: x, et: I } = E, j = u(_ * _), R = u(A * A), L = u(x * x), W = u(L * L), K = u(j * w), Q = u(L * u(K + R)), ee = u(W + u(v * u(j * R)));
2046
+ const { ex: _, ey: A, ez: x, et: I } = E, j = u(_ * _), N = u(A * A), L = u(x * x), W = u(L * L), K = u(j * w), Q = u(L * u(K + N)), ee = u(W + u(v * u(j * N)));
2045
2047
  if (Q !== ee) throw new Error("bad point: equation left != right (1)");
2046
2048
  const G = u(_ * A), ie = u(x * I);
2047
2049
  if (G !== ie) throw new Error("bad point: equation left != right (2)");
@@ -2067,7 +2069,7 @@ function na(e) {
2067
2069
  return w.map((_, A) => _.toAffine(v[A])).map(p.fromAffine);
2068
2070
  }
2069
2071
  static msm(w, v) {
2070
- return Zs(p, f, w, v);
2072
+ return Qs(p, f, w, v);
2071
2073
  }
2072
2074
  _setWindowSize(w) {
2073
2075
  T.setWindowSize(this, w);
@@ -2077,8 +2079,8 @@ function na(e) {
2077
2079
  }
2078
2080
  equals(w) {
2079
2081
  D(w);
2080
- const { ex: v, ey: _, ez: A } = this, { ex: x, ey: I, ez: j } = w, R = u(v * j), L = u(x * A), W = u(_ * j), K = u(I * A);
2081
- return R === L && W === K;
2082
+ const { ex: v, ey: _, ez: A } = this, { ex: x, ey: I, ez: j } = w, N = u(v * j), L = u(x * A), W = u(_ * j), K = u(I * A);
2083
+ return N === L && W === K;
2082
2084
  }
2083
2085
  is0() {
2084
2086
  return this.equals(p.ZERO);
@@ -2087,20 +2089,20 @@ function na(e) {
2087
2089
  return new p(u(-this.ex), this.ey, this.ez, u(-this.et));
2088
2090
  }
2089
2091
  double() {
2090
- const { a: w } = t, { ex: v, ey: _, ez: A } = this, x = u(v * v), I = u(_ * _), j = u(Ke * u(A * A)), R = u(w * x), L = v + _, W = u(u(L * L) - x - I), K = R + I, Q = K - j, ee = R - I, G = u(W * Q), ie = u(K * ee), le = u(W * ee), $e = u(Q * K);
2091
- return new p(G, ie, $e, le);
2092
+ const { a: w } = t, { ex: v, ey: _, ez: A } = this, x = u(v * v), I = u(_ * _), j = u(qe * u(A * A)), N = u(w * x), L = v + _, W = u(u(L * L) - x - I), K = N + I, Q = K - j, ee = N - I, G = u(W * Q), ie = u(K * ee), le = u(W * ee), ze = u(Q * K);
2093
+ return new p(G, ie, ze, le);
2092
2094
  }
2093
2095
  add(w) {
2094
2096
  D(w);
2095
- const { a: v, d: _ } = t, { ex: A, ey: x, ez: I, et: j } = this, { ex: R, ey: L, ez: W, et: K } = w;
2097
+ const { a: v, d: _ } = t, { ex: A, ey: x, ez: I, et: j } = this, { ex: N, ey: L, ez: W, et: K } = w;
2096
2098
  if (v === BigInt(-1)) {
2097
- const Xt = u((x - A) * (L + R)), Zt = u((x + A) * (L - R)), ct = u(Zt - Xt);
2099
+ const Xt = u((x - A) * (L + N)), Zt = u((x + A) * (L - N)), ct = u(Zt - Xt);
2098
2100
  if (ct === J) return this.double();
2099
- const Qt = u(I * Ke * K), er = u(j * Ke * W), tr = er + Qt, rr = Zt + Xt, nr = er - Qt, co = u(tr * ct), lo = u(rr * nr), fo = u(tr * nr), ho = u(ct * rr);
2100
- return new p(co, lo, ho, fo);
2101
+ const Qt = u(I * qe * K), er = u(j * qe * W), tr = er + Qt, rr = Zt + Xt, nr = er - Qt, lo = u(tr * ct), fo = u(rr * nr), ho = u(tr * nr), bo = u(ct * rr);
2102
+ return new p(lo, fo, bo, ho);
2101
2103
  }
2102
- const Q = u(A * R), ee = u(x * L), G = u(j * _ * K), ie = u(I * W), le = u((A + x) * (R + L) - Q - ee), $e = ie - G, Gt = ie + G, Jt = u(ee - v * Q), io = u(le * $e), so = u(Gt * Jt), ao = u(le * Jt), uo = u($e * Gt);
2103
- return new p(io, so, uo, ao);
2104
+ const Q = u(A * N), ee = u(x * L), G = u(j * _ * K), ie = u(I * W), le = u((A + x) * (N + L) - Q - ee), ze = ie - G, Gt = ie + G, Jt = u(ee - v * Q), so = u(le * ze), ao = u(Gt * Jt), uo = u(le * Jt), co = u(ze * Gt);
2105
+ return new p(so, ao, co, uo);
2104
2106
  }
2105
2107
  subtract(w) {
2106
2108
  return this.add(w.negate());
@@ -2136,14 +2138,14 @@ function na(e) {
2136
2138
  w = re("pointHex", w, x), Dt("zip215", v);
2137
2139
  const I = w.slice(), j = w[x - 1];
2138
2140
  I[x - 1] = j & -129;
2139
- const R = Ge(I), L = v ? s : r.ORDER;
2140
- xe("pointHex.y", R, J, L);
2141
- const W = u(R * R), K = u(W - q), Q = u(_ * W - A);
2141
+ const N = Je(I), L = v ? s : r.ORDER;
2142
+ xe("pointHex.y", N, J, L);
2143
+ const W = u(N * N), K = u(W - q), Q = u(_ * W - A);
2142
2144
  let { isValid: ee, value: G } = h(K, Q);
2143
2145
  if (!ee) throw new Error("Point.fromHex: invalid y coordinate");
2144
2146
  const ie = (G & q) === q, le = (j & 128) !== 0;
2145
2147
  if (!v && G === J && le) throw new Error("Point.fromHex: x=0 and x_0=1");
2146
- return le !== ie && (G = u(-G)), p.fromAffine({ x: G, y: R });
2148
+ return le !== ie && (G = u(-G)), p.fromAffine({ x: G, y: N });
2147
2149
  }
2148
2150
  static fromPrivateKey(w) {
2149
2151
  return P(w).point;
@@ -2157,12 +2159,12 @@ function na(e) {
2157
2159
  }
2158
2160
  }
2159
2161
  p.BASE = new p(t.Gx, t.Gy, q, u(t.Gx * t.Gy)), p.ZERO = new p(J, q, q, J);
2160
- const { BASE: m, ZERO: F } = p, T = Xs(p, l * 8);
2162
+ const { BASE: m, ZERO: F } = p, T = Zs(p, l * 8);
2161
2163
  function B(E) {
2162
2164
  return M(E, n);
2163
2165
  }
2164
2166
  function C(E) {
2165
- return B(Ge(E));
2167
+ return B(Je(E));
2166
2168
  }
2167
2169
  function P(E) {
2168
2170
  const w = r.BYTES;
@@ -2179,25 +2181,25 @@ function na(e) {
2179
2181
  }
2180
2182
  function we(E, w, v = {}) {
2181
2183
  E = re("message", E), o && (E = o(E));
2182
- const { prefix: _, scalar: A, pointBytes: x } = P(w), I = ce(v.context, _, E), j = m.multiply(I).toRawBytes(), R = ce(v.context, j, x, E), L = B(I + R * A);
2184
+ const { prefix: _, scalar: A, pointBytes: x } = P(w), I = ce(v.context, _, E), j = m.multiply(I).toRawBytes(), N = ce(v.context, j, x, E), L = B(I + N * A);
2183
2185
  xe("signature.s", L, J, n);
2184
2186
  const W = Or(j, Tt(L, r.BYTES));
2185
2187
  return re("result", W, r.BYTES * 2);
2186
2188
  }
2187
- const Fe = ta;
2189
+ const Fe = ra;
2188
2190
  function ut(E, w, v, _ = Fe) {
2189
2191
  const { context: A, zip215: x } = _, I = r.BYTES;
2190
2192
  E = re("signature", E, 2 * I), w = re("message", w), v = re("publicKey", v, I), x !== void 0 && Dt("zip215", x), o && (w = o(w));
2191
- const j = Ge(E.slice(I, 2 * I));
2192
- let R, L, W;
2193
+ const j = Je(E.slice(I, 2 * I));
2194
+ let N, L, W;
2193
2195
  try {
2194
- R = p.fromHex(v, x), L = p.fromHex(E.slice(0, I), x), W = m.multiplyUnsafe(j);
2196
+ N = p.fromHex(v, x), L = p.fromHex(E.slice(0, I), x), W = m.multiplyUnsafe(j);
2195
2197
  } catch {
2196
2198
  return !1;
2197
2199
  }
2198
- if (!x && R.isSmallOrder()) return !1;
2199
- const K = ce(A, L.toRawBytes(), R.toRawBytes(), w);
2200
- return L.add(R.multiplyUnsafe(K)).subtract(W).clearCofactor().equals(p.ZERO);
2200
+ if (!x && N.isSmallOrder()) return !1;
2201
+ const K = ce(A, L.toRawBytes(), N.toRawBytes(), w);
2202
+ return L.add(N.multiplyUnsafe(K)).subtract(W).clearCofactor().equals(p.ZERO);
2201
2203
  }
2202
2204
  return m._setWindowSize(8), { CURVE: t, getPublicKey: ge, sign: we, verify: ut, ExtendedPoint: p, utils: { getExtendedPublicKey: P, randomPrivateKey: () => a(r.BYTES), precompute(E = 8, w = p.BASE) {
2203
2205
  return w._setWindowSize(E), w.multiply(BigInt(3)), w;
@@ -2206,37 +2208,37 @@ function na(e) {
2206
2208
  BigInt(0), BigInt(1);
2207
2209
  const Vt = BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"), Ir = BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");
2208
2210
  BigInt(0);
2209
- const oa = BigInt(1), Tr = BigInt(2);
2211
+ const ia = BigInt(1), Tr = BigInt(2);
2210
2212
  BigInt(3);
2211
- const ia = BigInt(5), sa = BigInt(8);
2212
- function aa(e) {
2213
- const t = BigInt(10), r = BigInt(20), n = BigInt(40), o = BigInt(80), i = Vt, a = e * e % i * e % i, l = X(a, Tr, i) * a % i, c = X(l, oa, i) * e % i, s = X(c, ia, i) * c % i, u = X(s, t, i) * s % i, f = X(u, r, i) * u % i, h = X(f, n, i) * f % i, b = X(h, o, i) * h % i, d = X(b, o, i) * h % i, g = X(d, t, i) * s % i;
2213
+ const sa = BigInt(5), aa = BigInt(8);
2214
+ function ua(e) {
2215
+ const t = BigInt(10), r = BigInt(20), n = BigInt(40), o = BigInt(80), i = Vt, a = e * e % i * e % i, l = X(a, Tr, i) * a % i, c = X(l, ia, i) * e % i, s = X(c, sa, i) * c % i, u = X(s, t, i) * s % i, f = X(u, r, i) * u % i, h = X(f, n, i) * f % i, b = X(h, o, i) * h % i, d = X(b, o, i) * h % i, g = X(d, t, i) * s % i;
2214
2216
  return { pow_p_5_8: X(g, Tr, i) * e % i, b2: a };
2215
2217
  }
2216
- function ua(e) {
2218
+ function ca(e) {
2217
2219
  return e[0] &= 248, e[31] &= 127, e[31] |= 64, e;
2218
2220
  }
2219
- function ca(e, t) {
2220
- const r = Vt, n = M(t * t * t, r), o = M(n * n * t, r), i = aa(e * o).pow_p_5_8;
2221
+ function la(e, t) {
2222
+ const r = Vt, n = M(t * t * t, r), o = M(n * n * t, r), i = ua(e * o).pow_p_5_8;
2221
2223
  let a = M(e * n * i, r);
2222
2224
  const l = M(t * a * a, r), c = a, s = M(a * Ir, r), u = l === e, f = l === M(-e, r), h = l === M(-e * Ir, r);
2223
- return u && (a = c), (f || h) && (a = s), Hs(a, r) && (a = M(-a, r)), { isValid: u || f, value: a };
2225
+ return u && (a = c), (f || h) && (a = s), Vs(a, r) && (a = M(-a, r)), { isValid: u || f, value: a };
2224
2226
  }
2225
- const la = On(Vt, void 0, !0), fa = { a: BigInt(-1), d: BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"), Fp: la, n: BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"), h: sa, Gx: BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"), Gy: BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"), hash: Ts, randomBytes: Dn, adjustScalarBytes: ua, uvRatio: ca }, An = na(fa), ha = "EdDSA", da = "JWT", Ze = ".", ot = "base64url", xn = "utf8", Bn = "utf8", ba = ":", pa = "did", ga = "key", Rr = "base58btc", wa = "z", Da = "K36", ya = 32;
2227
+ const fa = Fn(Vt, void 0, !0), ha = { a: BigInt(-1), d: BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"), Fp: fa, n: BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"), h: aa, Gx: BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"), Gy: BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"), hash: Ns, randomBytes: yn, adjustScalarBytes: ca, uvRatio: la }, xn = oa(ha), da = "EdDSA", ba = "JWT", Qe = ".", ot = "base64url", Bn = "utf8", In = "utf8", pa = ":", ga = "did", wa = "key", Nr = "base58btc", Da = "z", ya = "K36", ma = 32;
2226
2228
  function Kt(e) {
2227
2229
  return globalThis.Buffer != null ? new Uint8Array(e.buffer, e.byteOffset, e.byteLength) : e;
2228
2230
  }
2229
- function In(e = 0) {
2231
+ function Tn(e = 0) {
2230
2232
  return globalThis.Buffer != null && globalThis.Buffer.allocUnsafe != null ? Kt(globalThis.Buffer.allocUnsafe(e)) : new Uint8Array(e);
2231
2233
  }
2232
- function Tn(e, t) {
2234
+ function Nn(e, t) {
2233
2235
  t || (t = e.reduce((o, i) => o + i.length, 0));
2234
- const r = In(t);
2236
+ const r = Tn(t);
2235
2237
  let n = 0;
2236
2238
  for (const o of e) r.set(o, n), n += o.length;
2237
2239
  return Kt(r);
2238
2240
  }
2239
- function ma(e, t) {
2241
+ function va(e, t) {
2240
2242
  if (e.length >= 255) throw new TypeError("Alphabet too long");
2241
2243
  for (var r = new Uint8Array(256), n = 0; n < r.length; n++) r[n] = 255;
2242
2244
  for (var o = 0; o < e.length; o++) {
@@ -2285,14 +2287,14 @@ function ma(e, t) {
2285
2287
  }
2286
2288
  return { encode: f, decodeUnsafe: h, decode: b };
2287
2289
  }
2288
- var va = ma, Ea = va;
2290
+ var Ea = va, _a = Ea;
2289
2291
  const Rn = (e) => {
2290
2292
  if (e instanceof Uint8Array && e.constructor.name === "Uint8Array") return e;
2291
2293
  if (e instanceof ArrayBuffer) return new Uint8Array(e);
2292
2294
  if (ArrayBuffer.isView(e)) return new Uint8Array(e.buffer, e.byteOffset, e.byteLength);
2293
2295
  throw new Error("Unknown type, must be binary type");
2294
- }, _a = (e) => new TextEncoder().encode(e), Sa = (e) => new TextDecoder().decode(e);
2295
- class Oa {
2296
+ }, Sa = (e) => new TextEncoder().encode(e), Oa = (e) => new TextDecoder().decode(e);
2297
+ class Fa {
2296
2298
  constructor(t, r, n) {
2297
2299
  this.name = t, this.prefix = r, this.baseEncode = n;
2298
2300
  }
@@ -2301,7 +2303,7 @@ class Oa {
2301
2303
  throw Error("Unknown type, must be binary type");
2302
2304
  }
2303
2305
  }
2304
- class Fa {
2306
+ class Ca {
2305
2307
  constructor(t, r, n) {
2306
2308
  if (this.name = t, this.prefix = r, r.codePointAt(0) === void 0) throw new Error("Invalid prefix character");
2307
2309
  this.prefixCodePoint = r.codePointAt(0), this.baseDecode = n;
@@ -2313,15 +2315,15 @@ class Fa {
2313
2315
  } else throw Error("Can only multibase decode strings");
2314
2316
  }
2315
2317
  or(t) {
2316
- return Nn(this, t);
2318
+ return Pn(this, t);
2317
2319
  }
2318
2320
  }
2319
- class Ca {
2321
+ class Aa {
2320
2322
  constructor(t) {
2321
2323
  this.decoders = t;
2322
2324
  }
2323
2325
  or(t) {
2324
- return Nn(this, t);
2326
+ return Pn(this, t);
2325
2327
  }
2326
2328
  decode(t) {
2327
2329
  const r = t[0], n = this.decoders[r];
@@ -2329,10 +2331,10 @@ class Ca {
2329
2331
  throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`);
2330
2332
  }
2331
2333
  }
2332
- const Nn = (e, t) => new Ca({ ...e.decoders || { [e.prefix]: e }, ...t.decoders || { [t.prefix]: t } });
2333
- class Aa {
2334
+ const Pn = (e, t) => new Aa({ ...e.decoders || { [e.prefix]: e }, ...t.decoders || { [t.prefix]: t } });
2335
+ class xa {
2334
2336
  constructor(t, r, n, o) {
2335
- this.name = t, this.prefix = r, this.baseEncode = n, this.baseDecode = o, this.encoder = new Oa(t, r, n), this.decoder = new Fa(t, r, o);
2337
+ this.name = t, this.prefix = r, this.baseEncode = n, this.baseDecode = o, this.encoder = new Fa(t, r, n), this.decoder = new Ca(t, r, o);
2336
2338
  }
2337
2339
  encode(t) {
2338
2340
  return this.encoder.encode(t);
@@ -2341,10 +2343,10 @@ class Aa {
2341
2343
  return this.decoder.decode(t);
2342
2344
  }
2343
2345
  }
2344
- const it = ({ name: e, prefix: t, encode: r, decode: n }) => new Aa(e, t, r, n), Ue = ({ prefix: e, name: t, alphabet: r }) => {
2345
- const { encode: n, decode: o } = Ea(r, t);
2346
+ const it = ({ name: e, prefix: t, encode: r, decode: n }) => new xa(e, t, r, n), Me = ({ prefix: e, name: t, alphabet: r }) => {
2347
+ const { encode: n, decode: o } = _a(r, t);
2346
2348
  return it({ prefix: e, name: t, encode: n, decode: (i) => Rn(o(i)) });
2347
- }, xa = (e, t, r, n) => {
2349
+ }, Ba = (e, t, r, n) => {
2348
2350
  const o = {};
2349
2351
  for (let u = 0; u < t.length; ++u) o[t[u]] = u;
2350
2352
  let i = e.length;
@@ -2358,78 +2360,78 @@ const it = ({ name: e, prefix: t, encode: r, decode: n }) => new Aa(e, t, r, n),
2358
2360
  }
2359
2361
  if (l >= r || 255 & c << 8 - l) throw new SyntaxError("Unexpected end of data");
2360
2362
  return a;
2361
- }, Ba = (e, t, r) => {
2363
+ }, Ia = (e, t, r) => {
2362
2364
  const n = t[t.length - 1] === "=", o = (1 << r) - 1;
2363
2365
  let i = "", a = 0, l = 0;
2364
2366
  for (let c = 0; c < e.length; ++c) for (l = l << 8 | e[c], a += 8; a > r; ) a -= r, i += t[o & l >> a];
2365
2367
  if (a && (i += t[o & l << r - a]), n) for (; i.length * r & 7; ) i += "=";
2366
2368
  return i;
2367
2369
  }, k = ({ name: e, prefix: t, bitsPerChar: r, alphabet: n }) => it({ prefix: t, name: e, encode(o) {
2368
- return Ba(o, n, r);
2370
+ return Ia(o, n, r);
2369
2371
  }, decode(o) {
2370
- return xa(o, n, r, e);
2371
- } }), Ia = it({ prefix: "\0", name: "identity", encode: (e) => Sa(e), decode: (e) => _a(e) });
2372
- var Ta = Object.freeze({ __proto__: null, identity: Ia });
2372
+ return Ba(o, n, r, e);
2373
+ } }), Ta = it({ prefix: "\0", name: "identity", encode: (e) => Oa(e), decode: (e) => Sa(e) });
2374
+ var Na = Object.freeze({ __proto__: null, identity: Ta });
2373
2375
  const Ra = k({ prefix: "0", name: "base2", alphabet: "01", bitsPerChar: 1 });
2374
- var Na = Object.freeze({ __proto__: null, base2: Ra });
2375
- const Pa = k({ prefix: "7", name: "base8", alphabet: "01234567", bitsPerChar: 3 });
2376
- var ja = Object.freeze({ __proto__: null, base8: Pa });
2377
- const La = Ue({ prefix: "9", name: "base10", alphabet: "0123456789" });
2378
- var Ua = Object.freeze({ __proto__: null, base10: La });
2379
- const Ma = k({ prefix: "f", name: "base16", alphabet: "0123456789abcdef", bitsPerChar: 4 }), $a = k({ prefix: "F", name: "base16upper", alphabet: "0123456789ABCDEF", bitsPerChar: 4 });
2380
- var za = Object.freeze({ __proto__: null, base16: Ma, base16upper: $a });
2381
- const Wa = k({ prefix: "b", name: "base32", alphabet: "abcdefghijklmnopqrstuvwxyz234567", bitsPerChar: 5 }), ka = k({ prefix: "B", name: "base32upper", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", bitsPerChar: 5 }), Ha = k({ prefix: "c", name: "base32pad", alphabet: "abcdefghijklmnopqrstuvwxyz234567=", bitsPerChar: 5 }), Va = k({ prefix: "C", name: "base32padupper", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=", bitsPerChar: 5 }), Ka = k({ prefix: "v", name: "base32hex", alphabet: "0123456789abcdefghijklmnopqrstuv", bitsPerChar: 5 }), qa = k({ prefix: "V", name: "base32hexupper", alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUV", bitsPerChar: 5 }), Ya = k({ prefix: "t", name: "base32hexpad", alphabet: "0123456789abcdefghijklmnopqrstuv=", bitsPerChar: 5 }), Ga = k({ prefix: "T", name: "base32hexpadupper", alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUV=", bitsPerChar: 5 }), Ja = k({ prefix: "h", name: "base32z", alphabet: "ybndrfg8ejkmcpqxot1uwisza345h769", bitsPerChar: 5 });
2382
- var Xa = Object.freeze({ __proto__: null, base32: Wa, base32upper: ka, base32pad: Ha, base32padupper: Va, base32hex: Ka, base32hexupper: qa, base32hexpad: Ya, base32hexpadupper: Ga, base32z: Ja });
2383
- const Za = Ue({ prefix: "k", name: "base36", alphabet: "0123456789abcdefghijklmnopqrstuvwxyz" }), Qa = Ue({ prefix: "K", name: "base36upper", alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" });
2384
- var eu = Object.freeze({ __proto__: null, base36: Za, base36upper: Qa });
2385
- const tu = Ue({ name: "base58btc", prefix: "z", alphabet: "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" }), ru = Ue({ name: "base58flickr", prefix: "Z", alphabet: "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ" });
2386
- var nu = Object.freeze({ __proto__: null, base58btc: tu, base58flickr: ru });
2387
- const ou = k({ prefix: "m", name: "base64", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", bitsPerChar: 6 }), iu = k({ prefix: "M", name: "base64pad", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", bitsPerChar: 6 }), su = k({ prefix: "u", name: "base64url", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_", bitsPerChar: 6 }), au = k({ prefix: "U", name: "base64urlpad", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=", bitsPerChar: 6 });
2388
- var uu = Object.freeze({ __proto__: null, base64: ou, base64pad: iu, base64url: su, base64urlpad: au });
2389
- const Pn = Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"), cu = Pn.reduce((e, t, r) => (e[r] = t, e), []), lu = Pn.reduce((e, t, r) => (e[t.codePointAt(0)] = r, e), []);
2390
- function fu(e) {
2391
- return e.reduce((t, r) => (t += cu[r], t), "");
2392
- }
2376
+ var Pa = Object.freeze({ __proto__: null, base2: Ra });
2377
+ const ja = k({ prefix: "7", name: "base8", alphabet: "01234567", bitsPerChar: 3 });
2378
+ var La = Object.freeze({ __proto__: null, base8: ja });
2379
+ const Ua = Me({ prefix: "9", name: "base10", alphabet: "0123456789" });
2380
+ var Ma = Object.freeze({ __proto__: null, base10: Ua });
2381
+ const $a = k({ prefix: "f", name: "base16", alphabet: "0123456789abcdef", bitsPerChar: 4 }), za = k({ prefix: "F", name: "base16upper", alphabet: "0123456789ABCDEF", bitsPerChar: 4 });
2382
+ var Wa = Object.freeze({ __proto__: null, base16: $a, base16upper: za });
2383
+ const ka = k({ prefix: "b", name: "base32", alphabet: "abcdefghijklmnopqrstuvwxyz234567", bitsPerChar: 5 }), Ha = k({ prefix: "B", name: "base32upper", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", bitsPerChar: 5 }), Va = k({ prefix: "c", name: "base32pad", alphabet: "abcdefghijklmnopqrstuvwxyz234567=", bitsPerChar: 5 }), Ka = k({ prefix: "C", name: "base32padupper", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=", bitsPerChar: 5 }), qa = k({ prefix: "v", name: "base32hex", alphabet: "0123456789abcdefghijklmnopqrstuv", bitsPerChar: 5 }), Ya = k({ prefix: "V", name: "base32hexupper", alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUV", bitsPerChar: 5 }), Ga = k({ prefix: "t", name: "base32hexpad", alphabet: "0123456789abcdefghijklmnopqrstuv=", bitsPerChar: 5 }), Ja = k({ prefix: "T", name: "base32hexpadupper", alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUV=", bitsPerChar: 5 }), Xa = k({ prefix: "h", name: "base32z", alphabet: "ybndrfg8ejkmcpqxot1uwisza345h769", bitsPerChar: 5 });
2384
+ var Za = Object.freeze({ __proto__: null, base32: ka, base32upper: Ha, base32pad: Va, base32padupper: Ka, base32hex: qa, base32hexupper: Ya, base32hexpad: Ga, base32hexpadupper: Ja, base32z: Xa });
2385
+ const Qa = Me({ prefix: "k", name: "base36", alphabet: "0123456789abcdefghijklmnopqrstuvwxyz" }), eu = Me({ prefix: "K", name: "base36upper", alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" });
2386
+ var tu = Object.freeze({ __proto__: null, base36: Qa, base36upper: eu });
2387
+ const ru = Me({ name: "base58btc", prefix: "z", alphabet: "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" }), nu = Me({ name: "base58flickr", prefix: "Z", alphabet: "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ" });
2388
+ var ou = Object.freeze({ __proto__: null, base58btc: ru, base58flickr: nu });
2389
+ const iu = k({ prefix: "m", name: "base64", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", bitsPerChar: 6 }), su = k({ prefix: "M", name: "base64pad", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", bitsPerChar: 6 }), au = k({ prefix: "u", name: "base64url", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_", bitsPerChar: 6 }), uu = k({ prefix: "U", name: "base64urlpad", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=", bitsPerChar: 6 });
2390
+ var cu = Object.freeze({ __proto__: null, base64: iu, base64pad: su, base64url: au, base64urlpad: uu });
2391
+ const jn = Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"), lu = jn.reduce((e, t, r) => (e[r] = t, e), []), fu = jn.reduce((e, t, r) => (e[t.codePointAt(0)] = r, e), []);
2393
2392
  function hu(e) {
2393
+ return e.reduce((t, r) => (t += lu[r], t), "");
2394
+ }
2395
+ function du(e) {
2394
2396
  const t = [];
2395
2397
  for (const r of e) {
2396
- const n = lu[r.codePointAt(0)];
2398
+ const n = fu[r.codePointAt(0)];
2397
2399
  if (n === void 0) throw new Error(`Non-base256emoji character: ${r}`);
2398
2400
  t.push(n);
2399
2401
  }
2400
2402
  return new Uint8Array(t);
2401
2403
  }
2402
- const du = it({ prefix: "🚀", name: "base256emoji", encode: fu, decode: hu });
2403
- var bu = Object.freeze({ __proto__: null, base256emoji: du }), pu = jn, Nr = 128, gu = -128, wu = Math.pow(2, 31);
2404
- function jn(e, t, r) {
2404
+ const bu = it({ prefix: "🚀", name: "base256emoji", encode: hu, decode: du });
2405
+ var pu = Object.freeze({ __proto__: null, base256emoji: bu }), gu = Ln, Rr = 128, wu = -128, Du = Math.pow(2, 31);
2406
+ function Ln(e, t, r) {
2405
2407
  t = t || [], r = r || 0;
2406
- for (var n = r; e >= wu; ) t[r++] = e & 255 | Nr, e /= 128;
2407
- for (; e & gu; ) t[r++] = e & 255 | Nr, e >>>= 7;
2408
- return t[r] = e | 0, jn.bytes = r - n + 1, t;
2408
+ for (var n = r; e >= Du; ) t[r++] = e & 255 | Rr, e /= 128;
2409
+ for (; e & wu; ) t[r++] = e & 255 | Rr, e >>>= 7;
2410
+ return t[r] = e | 0, Ln.bytes = r - n + 1, t;
2409
2411
  }
2410
- var Du = Nt, yu = 128, Pr = 127;
2411
- function Nt(e, n) {
2412
+ var yu = Rt, mu = 128, Pr = 127;
2413
+ function Rt(e, n) {
2412
2414
  var r = 0, n = n || 0, o = 0, i = n, a, l = e.length;
2413
2415
  do {
2414
- if (i >= l) throw Nt.bytes = 0, new RangeError("Could not decode varint");
2416
+ if (i >= l) throw Rt.bytes = 0, new RangeError("Could not decode varint");
2415
2417
  a = e[i++], r += o < 28 ? (a & Pr) << o : (a & Pr) * Math.pow(2, o), o += 7;
2416
- } while (a >= yu);
2417
- return Nt.bytes = i - n, r;
2418
+ } while (a >= mu);
2419
+ return Rt.bytes = i - n, r;
2418
2420
  }
2419
- var mu = Math.pow(2, 7), vu = Math.pow(2, 14), Eu = Math.pow(2, 21), _u = Math.pow(2, 28), Su = Math.pow(2, 35), Ou = Math.pow(2, 42), Fu = Math.pow(2, 49), Cu = Math.pow(2, 56), Au = Math.pow(2, 63), xu = function(e) {
2420
- return e < mu ? 1 : e < vu ? 2 : e < Eu ? 3 : e < _u ? 4 : e < Su ? 5 : e < Ou ? 6 : e < Fu ? 7 : e < Cu ? 8 : e < Au ? 9 : 10;
2421
- }, Bu = { encode: pu, decode: Du, encodingLength: xu }, Ln = Bu;
2422
- const jr = (e, t, r = 0) => (Ln.encode(e, t, r), t), Lr = (e) => Ln.encodingLength(e), Pt = (e, t) => {
2421
+ var vu = Math.pow(2, 7), Eu = Math.pow(2, 14), _u = Math.pow(2, 21), Su = Math.pow(2, 28), Ou = Math.pow(2, 35), Fu = Math.pow(2, 42), Cu = Math.pow(2, 49), Au = Math.pow(2, 56), xu = Math.pow(2, 63), Bu = function(e) {
2422
+ return e < vu ? 1 : e < Eu ? 2 : e < _u ? 3 : e < Su ? 4 : e < Ou ? 5 : e < Fu ? 6 : e < Cu ? 7 : e < Au ? 8 : e < xu ? 9 : 10;
2423
+ }, Iu = { encode: gu, decode: yu, encodingLength: Bu }, Un = Iu;
2424
+ const jr = (e, t, r = 0) => (Un.encode(e, t, r), t), Lr = (e) => Un.encodingLength(e), Pt = (e, t) => {
2423
2425
  const r = t.byteLength, n = Lr(e), o = n + Lr(r), i = new Uint8Array(o + r);
2424
- return jr(e, i, 0), jr(r, i, n), i.set(t, o), new Iu(e, r, t, i);
2426
+ return jr(e, i, 0), jr(r, i, n), i.set(t, o), new Tu(e, r, t, i);
2425
2427
  };
2426
- class Iu {
2428
+ class Tu {
2427
2429
  constructor(t, r, n, o) {
2428
2430
  this.code = t, this.size = r, this.digest = n, this.bytes = o;
2429
2431
  }
2430
2432
  }
2431
- const Un = ({ name: e, code: t, encode: r }) => new Tu(e, t, r);
2432
- class Tu {
2433
+ const Mn = ({ name: e, code: t, encode: r }) => new Nu(e, t, r);
2434
+ class Nu {
2433
2435
  constructor(t, r, n) {
2434
2436
  this.name = t, this.code = r, this.encode = n;
2435
2437
  }
@@ -2440,75 +2442,75 @@ class Tu {
2440
2442
  } else throw Error("Unknown type, must be binary type");
2441
2443
  }
2442
2444
  }
2443
- const Mn = (e) => async (t) => new Uint8Array(await crypto.subtle.digest(e, t)), Ru = Un({ name: "sha2-256", code: 18, encode: Mn("SHA-256") }), Nu = Un({ name: "sha2-512", code: 19, encode: Mn("SHA-512") });
2444
- var Pu = Object.freeze({ __proto__: null, sha256: Ru, sha512: Nu });
2445
- const $n = 0, ju = "identity", zn = Rn, Lu = (e) => Pt($n, zn(e)), Uu = { code: $n, name: ju, encode: zn, digest: Lu };
2446
- var Mu = Object.freeze({ __proto__: null, identity: Uu });
2445
+ const $n = (e) => async (t) => new Uint8Array(await crypto.subtle.digest(e, t)), Ru = Mn({ name: "sha2-256", code: 18, encode: $n("SHA-256") }), Pu = Mn({ name: "sha2-512", code: 19, encode: $n("SHA-512") });
2446
+ var ju = Object.freeze({ __proto__: null, sha256: Ru, sha512: Pu });
2447
+ const zn = 0, Lu = "identity", Wn = Rn, Uu = (e) => Pt(zn, Wn(e)), Mu = { code: zn, name: Lu, encode: Wn, digest: Uu };
2448
+ var $u = Object.freeze({ __proto__: null, identity: Mu });
2447
2449
  new TextEncoder(), new TextDecoder();
2448
- const Ur = { ...Ta, ...Na, ...ja, ...Ua, ...za, ...Xa, ...eu, ...nu, ...uu, ...bu };
2449
- ({ ...Pu, ...Mu });
2450
- function Wn(e, t, r, n) {
2450
+ const Ur = { ...Na, ...Pa, ...La, ...Ma, ...Wa, ...Za, ...tu, ...ou, ...cu, ...pu };
2451
+ ({ ...ju, ...$u });
2452
+ function kn(e, t, r, n) {
2451
2453
  return { name: e, prefix: t, encoder: { name: e, prefix: t, encode: r }, decoder: { decode: n } };
2452
2454
  }
2453
- const Mr = Wn("utf8", "u", (e) => "u" + new TextDecoder("utf8").decode(e), (e) => new TextEncoder().encode(e.substring(1))), St = Wn("ascii", "a", (e) => {
2455
+ const Mr = kn("utf8", "u", (e) => "u" + new TextDecoder("utf8").decode(e), (e) => new TextEncoder().encode(e.substring(1))), St = kn("ascii", "a", (e) => {
2454
2456
  let t = "a";
2455
2457
  for (let r = 0; r < e.length; r++) t += String.fromCharCode(e[r]);
2456
2458
  return t;
2457
2459
  }, (e) => {
2458
2460
  e = e.substring(1);
2459
- const t = In(e.length);
2461
+ const t = Tn(e.length);
2460
2462
  for (let r = 0; r < e.length; r++) t[r] = e.charCodeAt(r);
2461
2463
  return t;
2462
- }), kn = { utf8: Mr, "utf-8": Mr, hex: Ur.base16, latin1: St, ascii: St, binary: St, ...Ur };
2464
+ }), Hn = { utf8: Mr, "utf-8": Mr, hex: Ur.base16, latin1: St, ascii: St, binary: St, ...Ur };
2463
2465
  function st(e, t = "utf8") {
2464
- const r = kn[t];
2466
+ const r = Hn[t];
2465
2467
  if (!r) throw new Error(`Unsupported encoding "${t}"`);
2466
2468
  return (t === "utf8" || t === "utf-8") && globalThis.Buffer != null && globalThis.Buffer.from != null ? globalThis.Buffer.from(e.buffer, e.byteOffset, e.byteLength).toString("utf8") : r.encoder.encode(e).substring(1);
2467
2469
  }
2468
2470
  function Se(e, t = "utf8") {
2469
- const r = kn[t];
2471
+ const r = Hn[t];
2470
2472
  if (!r) throw new Error(`Unsupported encoding "${t}"`);
2471
2473
  return (t === "utf8" || t === "utf-8") && globalThis.Buffer != null && globalThis.Buffer.from != null ? Kt(globalThis.Buffer.from(e, "utf-8")) : r.decoder.decode(`${r.prefix}${e}`);
2472
2474
  }
2473
2475
  function $r(e) {
2474
- return je(st(Se(e, ot), xn));
2475
- }
2476
- function Qe(e) {
2477
- return st(Se(ue(e), xn), ot);
2476
+ return Le(st(Se(e, ot), Bn));
2478
2477
  }
2479
- function $u(e) {
2480
- const t = Se(Da, Rr), r = wa + st(Tn([t, e]), Rr);
2481
- return [pa, ga, r].join(ba);
2478
+ function et(e) {
2479
+ return st(Se(ue(e), Bn), ot);
2482
2480
  }
2483
2481
  function zu(e) {
2484
- return st(e, ot);
2482
+ const t = Se(ya, Nr), r = Da + st(Nn([t, e]), Nr);
2483
+ return [ga, wa, r].join(pa);
2485
2484
  }
2486
2485
  function Wu(e) {
2487
- return Se(e, ot);
2486
+ return st(e, ot);
2488
2487
  }
2489
2488
  function ku(e) {
2490
- return Se([Qe(e.header), Qe(e.payload)].join(Ze), Bn);
2489
+ return Se(e, ot);
2491
2490
  }
2492
2491
  function Hu(e) {
2493
- return [Qe(e.header), Qe(e.payload), zu(e.signature)].join(Ze);
2492
+ return Se([et(e.header), et(e.payload)].join(Qe), In);
2494
2493
  }
2495
- function xf(e) {
2496
- const t = e.split(Ze), r = $r(t[0]), n = $r(t[1]), o = Wu(t[2]), i = Se(t.slice(0, 2).join(Ze), Bn);
2494
+ function Vu(e) {
2495
+ return [et(e.header), et(e.payload), Wu(e.signature)].join(Qe);
2496
+ }
2497
+ function If(e) {
2498
+ const t = e.split(Qe), r = $r(t[0]), n = $r(t[1]), o = ku(t[2]), i = Se(t.slice(0, 2).join(Qe), In);
2497
2499
  return { header: r, payload: n, signature: o, data: i };
2498
2500
  }
2499
- function Bf(e = Dn(ya)) {
2500
- const t = An.getPublicKey(e);
2501
- return { secretKey: Tn([e, t]), publicKey: t };
2501
+ function Tf(e = yn(ma)) {
2502
+ const t = xn.getPublicKey(e);
2503
+ return { secretKey: Nn([e, t]), publicKey: t };
2502
2504
  }
2503
- async function If(e, t, r, n, o = tt.fromMiliseconds(Date.now())) {
2504
- const i = { alg: ha, typ: da }, a = $u(n.publicKey), l = o + r, c = { iss: a, sub: e, aud: t, iat: o, exp: l }, s = ku({ header: i, payload: c }), u = An.sign(s, n.secretKey.slice(0, 32));
2505
- return Hu({ header: i, payload: c, signature: u });
2505
+ async function Nf(e, t, r, n, o = tt.fromMiliseconds(Date.now())) {
2506
+ const i = { alg: da, typ: ba }, a = zu(n.publicKey), l = o + r, c = { iss: a, sub: e, aud: t, iat: o, exp: l }, s = Hu({ header: i, payload: c }), u = xn.sign(s, n.secretKey.slice(0, 32));
2507
+ return Vu({ header: i, payload: c, signature: u });
2506
2508
  }
2507
2509
  var zr = function(e, t, r) {
2508
2510
  if (r || arguments.length === 2) for (var n = 0, o = t.length, i; n < o; n++)
2509
2511
  (i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
2510
2512
  return e.concat(i || Array.prototype.slice.call(t));
2511
- }, Vu = (
2513
+ }, Ku = (
2512
2514
  /** @class */
2513
2515
  /* @__PURE__ */ function() {
2514
2516
  function e(t, r, n) {
@@ -2516,7 +2518,7 @@ var zr = function(e, t, r) {
2516
2518
  }
2517
2519
  return e;
2518
2520
  }()
2519
- ), Ku = (
2521
+ ), qu = (
2520
2522
  /** @class */
2521
2523
  /* @__PURE__ */ function() {
2522
2524
  function e(t) {
@@ -2524,7 +2526,7 @@ var zr = function(e, t, r) {
2524
2526
  }
2525
2527
  return e;
2526
2528
  }()
2527
- ), qu = (
2529
+ ), Yu = (
2528
2530
  /** @class */
2529
2531
  /* @__PURE__ */ function() {
2530
2532
  function e(t, r, n, o) {
@@ -2532,7 +2534,7 @@ var zr = function(e, t, r) {
2532
2534
  }
2533
2535
  return e;
2534
2536
  }()
2535
- ), Yu = (
2537
+ ), Gu = (
2536
2538
  /** @class */
2537
2539
  /* @__PURE__ */ function() {
2538
2540
  function e() {
@@ -2540,7 +2542,7 @@ var zr = function(e, t, r) {
2540
2542
  }
2541
2543
  return e;
2542
2544
  }()
2543
- ), Gu = (
2545
+ ), Ju = (
2544
2546
  /** @class */
2545
2547
  /* @__PURE__ */ function() {
2546
2548
  function e() {
@@ -2548,7 +2550,7 @@ var zr = function(e, t, r) {
2548
2550
  }
2549
2551
  return e;
2550
2552
  }()
2551
- ), Ju = /alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/, Xu = /(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/, Wr = 3, Zu = [
2553
+ ), Xu = /alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/, Zu = /(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/, Wr = 3, Qu = [
2552
2554
  ["aol", /AOLShield\/([0-9\._]+)/],
2553
2555
  ["edge", /Edge\/([0-9\._]+)/],
2554
2556
  ["edge-ios", /EdgiOS\/([0-9\._]+)/],
@@ -2586,7 +2588,7 @@ var zr = function(e, t, r) {
2586
2588
  ["ios-webview", /AppleWebKit\/([0-9\.]+).*Mobile/],
2587
2589
  ["ios-webview", /AppleWebKit\/([0-9\.]+).*Gecko\)$/],
2588
2590
  ["curl", /^curl\/([0-9\.]+)$/],
2589
- ["searchbot", Ju]
2591
+ ["searchbot", Xu]
2590
2592
  ], kr = [
2591
2593
  ["iOS", /iP(hone|od|ad)/],
2592
2594
  ["Android OS", /Android/],
@@ -2615,11 +2617,11 @@ var zr = function(e, t, r) {
2615
2617
  ["BeOS", /BeOS/],
2616
2618
  ["OS/2", /OS\/2/]
2617
2619
  ];
2618
- function Tf(e) {
2619
- return typeof document > "u" && typeof navigator < "u" && navigator.product === "ReactNative" ? new Gu() : typeof navigator < "u" ? ec(navigator.userAgent) : rc();
2620
+ function Rf(e) {
2621
+ return typeof document > "u" && typeof navigator < "u" && navigator.product === "ReactNative" ? new Ju() : typeof navigator < "u" ? tc(navigator.userAgent) : nc();
2620
2622
  }
2621
- function Qu(e) {
2622
- return e !== "" && Zu.reduce(function(t, r) {
2623
+ function ec(e) {
2624
+ return e !== "" && Qu.reduce(function(t, r) {
2623
2625
  var n = r[0], o = r[1];
2624
2626
  if (t)
2625
2627
  return t;
@@ -2627,19 +2629,19 @@ function Qu(e) {
2627
2629
  return !!i && [n, i];
2628
2630
  }, !1);
2629
2631
  }
2630
- function ec(e) {
2631
- var t = Qu(e);
2632
+ function tc(e) {
2633
+ var t = ec(e);
2632
2634
  if (!t)
2633
2635
  return null;
2634
2636
  var r = t[0], n = t[1];
2635
2637
  if (r === "searchbot")
2636
- return new Yu();
2638
+ return new Gu();
2637
2639
  var o = n[1] && n[1].split(".").join("_").split("_").slice(0, 3);
2638
- o ? o.length < Wr && (o = zr(zr([], o, !0), nc(Wr - o.length), !0)) : o = [];
2639
- var i = o.join("."), a = tc(e), l = Xu.exec(e);
2640
- return l && l[1] ? new qu(r, i, a, l[1]) : new Vu(r, i, a);
2640
+ o ? o.length < Wr && (o = zr(zr([], o, !0), oc(Wr - o.length), !0)) : o = [];
2641
+ var i = o.join("."), a = rc(e), l = Zu.exec(e);
2642
+ return l && l[1] ? new Yu(r, i, a, l[1]) : new Ku(r, i, a);
2641
2643
  }
2642
- function tc(e) {
2644
+ function rc(e) {
2643
2645
  for (var t = 0, r = kr.length; t < r; t++) {
2644
2646
  var n = kr[t], o = n[0], i = n[1], a = i.exec(e);
2645
2647
  if (a)
@@ -2647,75 +2649,75 @@ function tc(e) {
2647
2649
  }
2648
2650
  return null;
2649
2651
  }
2650
- function rc() {
2652
+ function nc() {
2651
2653
  var e = typeof V.process < "u" && V.process.version;
2652
- return e ? new Ku(V.process.version.slice(1)) : null;
2654
+ return e ? new qu(V.process.version.slice(1)) : null;
2653
2655
  }
2654
- function nc(e) {
2656
+ function oc(e) {
2655
2657
  for (var t = [], r = 0; r < e; r++)
2656
2658
  t.push("0");
2657
2659
  return t;
2658
2660
  }
2659
- var N = {};
2660
- Object.defineProperty(N, "__esModule", { value: !0 });
2661
- N.getLocalStorage = N.getLocalStorageOrThrow = N.getCrypto = N.getCryptoOrThrow = hc = N.getLocation = N.getLocationOrThrow = cc = N.getNavigator = N.getNavigatorOrThrow = sc = N.getDocument = N.getDocumentOrThrow = N.getFromWindowOrThrow = N.getFromWindow = void 0;
2661
+ var R = {};
2662
+ Object.defineProperty(R, "__esModule", { value: !0 });
2663
+ R.getLocalStorage = R.getLocalStorageOrThrow = R.getCrypto = R.getCryptoOrThrow = dc = R.getLocation = R.getLocationOrThrow = lc = R.getNavigator = R.getNavigatorOrThrow = ac = R.getDocument = R.getDocumentOrThrow = R.getFromWindowOrThrow = R.getFromWindow = void 0;
2662
2664
  function pe(e) {
2663
2665
  let t;
2664
2666
  return typeof window < "u" && typeof window[e] < "u" && (t = window[e]), t;
2665
2667
  }
2666
- N.getFromWindow = pe;
2668
+ R.getFromWindow = pe;
2667
2669
  function Oe(e) {
2668
2670
  const t = pe(e);
2669
2671
  if (!t)
2670
2672
  throw new Error(`${e} is not defined in Window`);
2671
2673
  return t;
2672
2674
  }
2673
- N.getFromWindowOrThrow = Oe;
2674
- function oc() {
2675
+ R.getFromWindowOrThrow = Oe;
2676
+ function ic() {
2675
2677
  return Oe("document");
2676
2678
  }
2677
- N.getDocumentOrThrow = oc;
2678
- function ic() {
2679
+ R.getDocumentOrThrow = ic;
2680
+ function sc() {
2679
2681
  return pe("document");
2680
2682
  }
2681
- var sc = N.getDocument = ic;
2682
- function ac() {
2683
+ var ac = R.getDocument = sc;
2684
+ function uc() {
2683
2685
  return Oe("navigator");
2684
2686
  }
2685
- N.getNavigatorOrThrow = ac;
2686
- function uc() {
2687
+ R.getNavigatorOrThrow = uc;
2688
+ function cc() {
2687
2689
  return pe("navigator");
2688
2690
  }
2689
- var cc = N.getNavigator = uc;
2690
- function lc() {
2691
+ var lc = R.getNavigator = cc;
2692
+ function fc() {
2691
2693
  return Oe("location");
2692
2694
  }
2693
- N.getLocationOrThrow = lc;
2694
- function fc() {
2695
+ R.getLocationOrThrow = fc;
2696
+ function hc() {
2695
2697
  return pe("location");
2696
2698
  }
2697
- var hc = N.getLocation = fc;
2698
- function dc() {
2699
+ var dc = R.getLocation = hc;
2700
+ function bc() {
2699
2701
  return Oe("crypto");
2700
2702
  }
2701
- N.getCryptoOrThrow = dc;
2702
- function bc() {
2703
+ R.getCryptoOrThrow = bc;
2704
+ function pc() {
2703
2705
  return pe("crypto");
2704
2706
  }
2705
- N.getCrypto = bc;
2706
- function pc() {
2707
+ R.getCrypto = pc;
2708
+ function gc() {
2707
2709
  return Oe("localStorage");
2708
2710
  }
2709
- N.getLocalStorageOrThrow = pc;
2710
- function gc() {
2711
+ R.getLocalStorageOrThrow = gc;
2712
+ function wc() {
2711
2713
  return pe("localStorage");
2712
2714
  }
2713
- N.getLocalStorage = gc;
2715
+ R.getLocalStorage = wc;
2714
2716
  var qt = {};
2715
2717
  Object.defineProperty(qt, "__esModule", { value: !0 });
2716
- var wc = qt.getWindowMetadata = void 0;
2717
- const Hr = N;
2718
- function Dc() {
2718
+ var Dc = qt.getWindowMetadata = void 0;
2719
+ const Hr = R;
2720
+ function yc() {
2719
2721
  let e, t;
2720
2722
  try {
2721
2723
  e = Hr.getDocumentOrThrow(), t = Hr.getLocationOrThrow();
@@ -2776,19 +2778,19 @@ function Dc() {
2776
2778
  name: a
2777
2779
  };
2778
2780
  }
2779
- wc = qt.getWindowMetadata = Dc;
2780
- function Hn(e = 0) {
2781
+ Dc = qt.getWindowMetadata = yc;
2782
+ function Vn(e = 0) {
2781
2783
  return globalThis.Buffer != null && globalThis.Buffer.allocUnsafe != null ? globalThis.Buffer.allocUnsafe(e) : new Uint8Array(e);
2782
2784
  }
2783
- function Rf(e, t) {
2785
+ function Pf(e, t) {
2784
2786
  t || (t = e.reduce((o, i) => o + i.length, 0));
2785
- const r = Hn(t);
2787
+ const r = Vn(t);
2786
2788
  let n = 0;
2787
2789
  for (const o of e)
2788
2790
  r.set(o, n), n += o.length;
2789
2791
  return r;
2790
2792
  }
2791
- function yc(e, t) {
2793
+ function mc(e, t) {
2792
2794
  if (e.length >= 255)
2793
2795
  throw new TypeError("Alphabet too long");
2794
2796
  for (var r = new Uint8Array(256), n = 0; n < r.length; n++)
@@ -2860,8 +2862,8 @@ function yc(e, t) {
2860
2862
  decode: b
2861
2863
  };
2862
2864
  }
2863
- var mc = yc, vc = mc;
2864
- const Ec = (e) => {
2865
+ var vc = mc, Ec = vc;
2866
+ const _c = (e) => {
2865
2867
  if (e instanceof Uint8Array && e.constructor.name === "Uint8Array")
2866
2868
  return e;
2867
2869
  if (e instanceof ArrayBuffer)
@@ -2869,8 +2871,8 @@ const Ec = (e) => {
2869
2871
  if (ArrayBuffer.isView(e))
2870
2872
  return new Uint8Array(e.buffer, e.byteOffset, e.byteLength);
2871
2873
  throw new Error("Unknown type, must be binary type");
2872
- }, _c = (e) => new TextEncoder().encode(e), Sc = (e) => new TextDecoder().decode(e);
2873
- class Oc {
2874
+ }, Sc = (e) => new TextEncoder().encode(e), Oc = (e) => new TextDecoder().decode(e);
2875
+ class Fc {
2874
2876
  constructor(t, r, n) {
2875
2877
  this.name = t, this.prefix = r, this.baseEncode = n;
2876
2878
  }
@@ -2880,7 +2882,7 @@ class Oc {
2880
2882
  throw Error("Unknown type, must be binary type");
2881
2883
  }
2882
2884
  }
2883
- class Fc {
2885
+ class Cc {
2884
2886
  constructor(t, r, n) {
2885
2887
  if (this.name = t, this.prefix = r, r.codePointAt(0) === void 0)
2886
2888
  throw new Error("Invalid prefix character");
@@ -2895,15 +2897,15 @@ class Fc {
2895
2897
  throw Error("Can only multibase decode strings");
2896
2898
  }
2897
2899
  or(t) {
2898
- return Vn(this, t);
2900
+ return Kn(this, t);
2899
2901
  }
2900
2902
  }
2901
- class Cc {
2903
+ class Ac {
2902
2904
  constructor(t) {
2903
2905
  this.decoders = t;
2904
2906
  }
2905
2907
  or(t) {
2906
- return Vn(this, t);
2908
+ return Kn(this, t);
2907
2909
  }
2908
2910
  decode(t) {
2909
2911
  const r = t[0], n = this.decoders[r];
@@ -2912,13 +2914,13 @@ class Cc {
2912
2914
  throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`);
2913
2915
  }
2914
2916
  }
2915
- const Vn = (e, t) => new Cc({
2917
+ const Kn = (e, t) => new Ac({
2916
2918
  ...e.decoders || { [e.prefix]: e },
2917
2919
  ...t.decoders || { [t.prefix]: t }
2918
2920
  });
2919
- class Ac {
2921
+ class xc {
2920
2922
  constructor(t, r, n, o) {
2921
- this.name = t, this.prefix = r, this.baseEncode = n, this.baseDecode = o, this.encoder = new Oc(t, r, n), this.decoder = new Fc(t, r, o);
2923
+ this.name = t, this.prefix = r, this.baseEncode = n, this.baseDecode = o, this.encoder = new Fc(t, r, n), this.decoder = new Cc(t, r, o);
2922
2924
  }
2923
2925
  encode(t) {
2924
2926
  return this.encoder.encode(t);
@@ -2927,15 +2929,15 @@ class Ac {
2927
2929
  return this.decoder.decode(t);
2928
2930
  }
2929
2931
  }
2930
- const at = ({ name: e, prefix: t, encode: r, decode: n }) => new Ac(e, t, r, n), Me = ({ prefix: e, name: t, alphabet: r }) => {
2931
- const { encode: n, decode: o } = vc(r, t);
2932
+ const at = ({ name: e, prefix: t, encode: r, decode: n }) => new xc(e, t, r, n), $e = ({ prefix: e, name: t, alphabet: r }) => {
2933
+ const { encode: n, decode: o } = Ec(r, t);
2932
2934
  return at({
2933
2935
  prefix: e,
2934
2936
  name: t,
2935
2937
  encode: n,
2936
- decode: (i) => Ec(o(i))
2938
+ decode: (i) => _c(o(i))
2937
2939
  });
2938
- }, xc = (e, t, r, n) => {
2940
+ }, Bc = (e, t, r, n) => {
2939
2941
  const o = {};
2940
2942
  for (let u = 0; u < t.length; ++u)
2941
2943
  o[t[u]] = u;
@@ -2953,7 +2955,7 @@ const at = ({ name: e, prefix: t, encode: r, decode: n }) => new Ac(e, t, r, n),
2953
2955
  if (l >= r || 255 & c << 8 - l)
2954
2956
  throw new SyntaxError("Unexpected end of data");
2955
2957
  return a;
2956
- }, Bc = (e, t, r) => {
2958
+ }, Ic = (e, t, r) => {
2957
2959
  const n = t[t.length - 1] === "=", o = (1 << r) - 1;
2958
2960
  let i = "", a = 0, l = 0;
2959
2961
  for (let c = 0; c < e.length; ++c)
@@ -2967,200 +2969,200 @@ const at = ({ name: e, prefix: t, encode: r, decode: n }) => new Ac(e, t, r, n),
2967
2969
  prefix: t,
2968
2970
  name: e,
2969
2971
  encode(o) {
2970
- return Bc(o, n, r);
2972
+ return Ic(o, n, r);
2971
2973
  },
2972
2974
  decode(o) {
2973
- return xc(o, n, r, e);
2975
+ return Bc(o, n, r, e);
2974
2976
  }
2975
- }), Ic = at({
2977
+ }), Tc = at({
2976
2978
  prefix: "\0",
2977
2979
  name: "identity",
2978
- encode: (e) => Sc(e),
2979
- decode: (e) => _c(e)
2980
- }), Tc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2980
+ encode: (e) => Oc(e),
2981
+ decode: (e) => Sc(e)
2982
+ }), Nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2981
2983
  __proto__: null,
2982
- identity: Ic
2984
+ identity: Tc
2983
2985
  }, Symbol.toStringTag, { value: "Module" })), Rc = H({
2984
2986
  prefix: "0",
2985
2987
  name: "base2",
2986
2988
  alphabet: "01",
2987
2989
  bitsPerChar: 1
2988
- }), Nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2990
+ }), Pc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2989
2991
  __proto__: null,
2990
2992
  base2: Rc
2991
- }, Symbol.toStringTag, { value: "Module" })), Pc = H({
2993
+ }, Symbol.toStringTag, { value: "Module" })), jc = H({
2992
2994
  prefix: "7",
2993
2995
  name: "base8",
2994
2996
  alphabet: "01234567",
2995
2997
  bitsPerChar: 3
2996
- }), jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2998
+ }), Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2997
2999
  __proto__: null,
2998
- base8: Pc
2999
- }, Symbol.toStringTag, { value: "Module" })), Lc = Me({
3000
+ base8: jc
3001
+ }, Symbol.toStringTag, { value: "Module" })), Uc = $e({
3000
3002
  prefix: "9",
3001
3003
  name: "base10",
3002
3004
  alphabet: "0123456789"
3003
- }), Uc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3005
+ }), Mc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3004
3006
  __proto__: null,
3005
- base10: Lc
3006
- }, Symbol.toStringTag, { value: "Module" })), Mc = H({
3007
+ base10: Uc
3008
+ }, Symbol.toStringTag, { value: "Module" })), $c = H({
3007
3009
  prefix: "f",
3008
3010
  name: "base16",
3009
3011
  alphabet: "0123456789abcdef",
3010
3012
  bitsPerChar: 4
3011
- }), $c = H({
3013
+ }), zc = H({
3012
3014
  prefix: "F",
3013
3015
  name: "base16upper",
3014
3016
  alphabet: "0123456789ABCDEF",
3015
3017
  bitsPerChar: 4
3016
- }), zc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3018
+ }), Wc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3017
3019
  __proto__: null,
3018
- base16: Mc,
3019
- base16upper: $c
3020
- }, Symbol.toStringTag, { value: "Module" })), Wc = H({
3020
+ base16: $c,
3021
+ base16upper: zc
3022
+ }, Symbol.toStringTag, { value: "Module" })), kc = H({
3021
3023
  prefix: "b",
3022
3024
  name: "base32",
3023
3025
  alphabet: "abcdefghijklmnopqrstuvwxyz234567",
3024
3026
  bitsPerChar: 5
3025
- }), kc = H({
3027
+ }), Hc = H({
3026
3028
  prefix: "B",
3027
3029
  name: "base32upper",
3028
3030
  alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",
3029
3031
  bitsPerChar: 5
3030
- }), Hc = H({
3032
+ }), Vc = H({
3031
3033
  prefix: "c",
3032
3034
  name: "base32pad",
3033
3035
  alphabet: "abcdefghijklmnopqrstuvwxyz234567=",
3034
3036
  bitsPerChar: 5
3035
- }), Vc = H({
3037
+ }), Kc = H({
3036
3038
  prefix: "C",
3037
3039
  name: "base32padupper",
3038
3040
  alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",
3039
3041
  bitsPerChar: 5
3040
- }), Kc = H({
3042
+ }), qc = H({
3041
3043
  prefix: "v",
3042
3044
  name: "base32hex",
3043
3045
  alphabet: "0123456789abcdefghijklmnopqrstuv",
3044
3046
  bitsPerChar: 5
3045
- }), qc = H({
3047
+ }), Yc = H({
3046
3048
  prefix: "V",
3047
3049
  name: "base32hexupper",
3048
3050
  alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUV",
3049
3051
  bitsPerChar: 5
3050
- }), Yc = H({
3052
+ }), Gc = H({
3051
3053
  prefix: "t",
3052
3054
  name: "base32hexpad",
3053
3055
  alphabet: "0123456789abcdefghijklmnopqrstuv=",
3054
3056
  bitsPerChar: 5
3055
- }), Gc = H({
3057
+ }), Jc = H({
3056
3058
  prefix: "T",
3057
3059
  name: "base32hexpadupper",
3058
3060
  alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUV=",
3059
3061
  bitsPerChar: 5
3060
- }), Jc = H({
3062
+ }), Xc = H({
3061
3063
  prefix: "h",
3062
3064
  name: "base32z",
3063
3065
  alphabet: "ybndrfg8ejkmcpqxot1uwisza345h769",
3064
3066
  bitsPerChar: 5
3065
- }), Xc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3067
+ }), Zc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3066
3068
  __proto__: null,
3067
- base32: Wc,
3068
- base32hex: Kc,
3069
- base32hexpad: Yc,
3070
- base32hexpadupper: Gc,
3071
- base32hexupper: qc,
3072
- base32pad: Hc,
3073
- base32padupper: Vc,
3074
- base32upper: kc,
3075
- base32z: Jc
3076
- }, Symbol.toStringTag, { value: "Module" })), Zc = Me({
3069
+ base32: kc,
3070
+ base32hex: qc,
3071
+ base32hexpad: Gc,
3072
+ base32hexpadupper: Jc,
3073
+ base32hexupper: Yc,
3074
+ base32pad: Vc,
3075
+ base32padupper: Kc,
3076
+ base32upper: Hc,
3077
+ base32z: Xc
3078
+ }, Symbol.toStringTag, { value: "Module" })), Qc = $e({
3077
3079
  prefix: "k",
3078
3080
  name: "base36",
3079
3081
  alphabet: "0123456789abcdefghijklmnopqrstuvwxyz"
3080
- }), Qc = Me({
3082
+ }), el = $e({
3081
3083
  prefix: "K",
3082
3084
  name: "base36upper",
3083
3085
  alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
3084
- }), el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3086
+ }), tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3085
3087
  __proto__: null,
3086
- base36: Zc,
3087
- base36upper: Qc
3088
- }, Symbol.toStringTag, { value: "Module" })), tl = Me({
3088
+ base36: Qc,
3089
+ base36upper: el
3090
+ }, Symbol.toStringTag, { value: "Module" })), rl = $e({
3089
3091
  name: "base58btc",
3090
3092
  prefix: "z",
3091
3093
  alphabet: "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
3092
- }), rl = Me({
3094
+ }), nl = $e({
3093
3095
  name: "base58flickr",
3094
3096
  prefix: "Z",
3095
3097
  alphabet: "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
3096
- }), nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3098
+ }), ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3097
3099
  __proto__: null,
3098
- base58btc: tl,
3099
- base58flickr: rl
3100
- }, Symbol.toStringTag, { value: "Module" })), ol = H({
3100
+ base58btc: rl,
3101
+ base58flickr: nl
3102
+ }, Symbol.toStringTag, { value: "Module" })), il = H({
3101
3103
  prefix: "m",
3102
3104
  name: "base64",
3103
3105
  alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
3104
3106
  bitsPerChar: 6
3105
- }), il = H({
3107
+ }), sl = H({
3106
3108
  prefix: "M",
3107
3109
  name: "base64pad",
3108
3110
  alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
3109
3111
  bitsPerChar: 6
3110
- }), sl = H({
3112
+ }), al = H({
3111
3113
  prefix: "u",
3112
3114
  name: "base64url",
3113
3115
  alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",
3114
3116
  bitsPerChar: 6
3115
- }), al = H({
3117
+ }), ul = H({
3116
3118
  prefix: "U",
3117
3119
  name: "base64urlpad",
3118
3120
  alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",
3119
3121
  bitsPerChar: 6
3120
- }), ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3122
+ }), cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3121
3123
  __proto__: null,
3122
- base64: ol,
3123
- base64pad: il,
3124
- base64url: sl,
3125
- base64urlpad: al
3126
- }, Symbol.toStringTag, { value: "Module" })), Kn = Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"), cl = Kn.reduce((e, t, r) => (e[r] = t, e), []), ll = Kn.reduce((e, t, r) => (e[t.codePointAt(0)] = r, e), []);
3127
- function fl(e) {
3128
- return e.reduce((t, r) => (t += cl[r], t), "");
3129
- }
3124
+ base64: il,
3125
+ base64pad: sl,
3126
+ base64url: al,
3127
+ base64urlpad: ul
3128
+ }, Symbol.toStringTag, { value: "Module" })), qn = Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"), ll = qn.reduce((e, t, r) => (e[r] = t, e), []), fl = qn.reduce((e, t, r) => (e[t.codePointAt(0)] = r, e), []);
3130
3129
  function hl(e) {
3130
+ return e.reduce((t, r) => (t += ll[r], t), "");
3131
+ }
3132
+ function dl(e) {
3131
3133
  const t = [];
3132
3134
  for (const r of e) {
3133
- const n = ll[r.codePointAt(0)];
3135
+ const n = fl[r.codePointAt(0)];
3134
3136
  if (n === void 0)
3135
3137
  throw new Error(`Non-base256emoji character: ${r}`);
3136
3138
  t.push(n);
3137
3139
  }
3138
3140
  return new Uint8Array(t);
3139
3141
  }
3140
- const dl = at({
3142
+ const bl = at({
3141
3143
  prefix: "🚀",
3142
3144
  name: "base256emoji",
3143
- encode: fl,
3144
- decode: hl
3145
- }), bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3145
+ encode: hl,
3146
+ decode: dl
3147
+ }), pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3146
3148
  __proto__: null,
3147
- base256emoji: dl
3149
+ base256emoji: bl
3148
3150
  }, Symbol.toStringTag, { value: "Module" }));
3149
3151
  new TextEncoder();
3150
3152
  new TextDecoder();
3151
3153
  const Vr = {
3152
- ...Tc,
3153
3154
  ...Nc,
3154
- ...jc,
3155
- ...Uc,
3156
- ...zc,
3157
- ...Xc,
3158
- ...el,
3159
- ...nl,
3160
- ...ul,
3161
- ...bl
3155
+ ...Pc,
3156
+ ...Lc,
3157
+ ...Mc,
3158
+ ...Wc,
3159
+ ...Zc,
3160
+ ...tl,
3161
+ ...ol,
3162
+ ...cl,
3163
+ ...pl
3162
3164
  };
3163
- function qn(e, t, r, n) {
3165
+ function Yn(e, t, r, n) {
3164
3166
  return {
3165
3167
  name: e,
3166
3168
  prefix: t,
@@ -3172,18 +3174,18 @@ function qn(e, t, r, n) {
3172
3174
  decoder: { decode: n }
3173
3175
  };
3174
3176
  }
3175
- const Kr = qn("utf8", "u", (e) => "u" + new TextDecoder("utf8").decode(e), (e) => new TextEncoder().encode(e.substring(1))), Ot = qn("ascii", "a", (e) => {
3177
+ const Kr = Yn("utf8", "u", (e) => "u" + new TextDecoder("utf8").decode(e), (e) => new TextEncoder().encode(e.substring(1))), Ot = Yn("ascii", "a", (e) => {
3176
3178
  let t = "a";
3177
3179
  for (let r = 0; r < e.length; r++)
3178
3180
  t += String.fromCharCode(e[r]);
3179
3181
  return t;
3180
3182
  }, (e) => {
3181
3183
  e = e.substring(1);
3182
- const t = Hn(e.length);
3184
+ const t = Vn(e.length);
3183
3185
  for (let r = 0; r < e.length; r++)
3184
3186
  t[r] = e.charCodeAt(r);
3185
3187
  return t;
3186
- }), Yn = {
3188
+ }), Gn = {
3187
3189
  utf8: Kr,
3188
3190
  "utf-8": Kr,
3189
3191
  hex: Vr.base16,
@@ -3192,40 +3194,40 @@ const Kr = qn("utf8", "u", (e) => "u" + new TextDecoder("utf8").decode(e), (e) =
3192
3194
  binary: Ot,
3193
3195
  ...Vr
3194
3196
  };
3195
- function Nf(e, t = "utf8") {
3196
- const r = Yn[t];
3197
+ function jf(e, t = "utf8") {
3198
+ const r = Gn[t];
3197
3199
  if (!r)
3198
3200
  throw new Error(`Unsupported encoding "${t}"`);
3199
3201
  return (t === "utf8" || t === "utf-8") && globalThis.Buffer != null && globalThis.Buffer.from != null ? globalThis.Buffer.from(e, "utf8") : r.decoder.decode(`${r.prefix}${e}`);
3200
3202
  }
3201
- function Pf(e, t = "utf8") {
3202
- const r = Yn[t];
3203
+ function Lf(e, t = "utf8") {
3204
+ const r = Gn[t];
3203
3205
  if (!r)
3204
3206
  throw new Error(`Unsupported encoding "${t}"`);
3205
3207
  return (t === "utf8" || t === "utf-8") && globalThis.Buffer != null && globalThis.Buffer.from != null ? globalThis.Buffer.from(e.buffer, e.byteOffset, e.byteLength).toString("utf8") : r.encoder.encode(e).substring(1);
3206
3208
  }
3207
- const jf = { waku: { publish: "waku_publish", batchPublish: "waku_batchPublish", subscribe: "waku_subscribe", batchSubscribe: "waku_batchSubscribe", subscription: "waku_subscription", unsubscribe: "waku_unsubscribe", batchUnsubscribe: "waku_batchUnsubscribe", batchFetchMessages: "waku_batchFetchMessages" }, irn: { publish: "irn_publish", batchPublish: "irn_batchPublish", subscribe: "irn_subscribe", batchSubscribe: "irn_batchSubscribe", subscription: "irn_subscription", unsubscribe: "irn_unsubscribe", batchUnsubscribe: "irn_batchUnsubscribe", batchFetchMessages: "irn_batchFetchMessages" }, iridium: { publish: "iridium_publish", batchPublish: "iridium_batchPublish", subscribe: "iridium_subscribe", batchSubscribe: "iridium_batchSubscribe", subscription: "iridium_subscription", unsubscribe: "iridium_unsubscribe", batchUnsubscribe: "iridium_batchUnsubscribe", batchFetchMessages: "iridium_batchFetchMessages" } }, pl = "PARSE_ERROR", gl = "INVALID_REQUEST", wl = "METHOD_NOT_FOUND", Dl = "INVALID_PARAMS", Gn = "INTERNAL_ERROR", Yt = "SERVER_ERROR", yl = [-32700, -32600, -32601, -32602, -32603], Be = {
3208
- [pl]: { code: -32700, message: "Parse error" },
3209
- [gl]: { code: -32600, message: "Invalid Request" },
3210
- [wl]: { code: -32601, message: "Method not found" },
3211
- [Dl]: { code: -32602, message: "Invalid params" },
3212
- [Gn]: { code: -32603, message: "Internal error" },
3209
+ const Uf = { waku: { publish: "waku_publish", batchPublish: "waku_batchPublish", subscribe: "waku_subscribe", batchSubscribe: "waku_batchSubscribe", subscription: "waku_subscription", unsubscribe: "waku_unsubscribe", batchUnsubscribe: "waku_batchUnsubscribe", batchFetchMessages: "waku_batchFetchMessages" }, irn: { publish: "irn_publish", batchPublish: "irn_batchPublish", subscribe: "irn_subscribe", batchSubscribe: "irn_batchSubscribe", subscription: "irn_subscription", unsubscribe: "irn_unsubscribe", batchUnsubscribe: "irn_batchUnsubscribe", batchFetchMessages: "irn_batchFetchMessages" }, iridium: { publish: "iridium_publish", batchPublish: "iridium_batchPublish", subscribe: "iridium_subscribe", batchSubscribe: "iridium_batchSubscribe", subscription: "iridium_subscription", unsubscribe: "iridium_unsubscribe", batchUnsubscribe: "iridium_batchUnsubscribe", batchFetchMessages: "iridium_batchFetchMessages" } }, gl = "PARSE_ERROR", wl = "INVALID_REQUEST", Dl = "METHOD_NOT_FOUND", yl = "INVALID_PARAMS", Jn = "INTERNAL_ERROR", Yt = "SERVER_ERROR", ml = [-32700, -32600, -32601, -32602, -32603], Be = {
3210
+ [gl]: { code: -32700, message: "Parse error" },
3211
+ [wl]: { code: -32600, message: "Invalid Request" },
3212
+ [Dl]: { code: -32601, message: "Method not found" },
3213
+ [yl]: { code: -32602, message: "Invalid params" },
3214
+ [Jn]: { code: -32603, message: "Internal error" },
3213
3215
  [Yt]: { code: -32e3, message: "Server error" }
3214
- }, Jn = Yt;
3215
- function ml(e) {
3216
- return yl.includes(e);
3216
+ }, Xn = Yt;
3217
+ function vl(e) {
3218
+ return ml.includes(e);
3217
3219
  }
3218
3220
  function qr(e) {
3219
- return Object.keys(Be).includes(e) ? Be[e] : Be[Jn];
3221
+ return Object.keys(Be).includes(e) ? Be[e] : Be[Xn];
3220
3222
  }
3221
- function vl(e) {
3223
+ function El(e) {
3222
3224
  const t = Object.values(Be).find((r) => r.code === e);
3223
- return t || Be[Jn];
3225
+ return t || Be[Xn];
3224
3226
  }
3225
- function Xn(e, t, r) {
3227
+ function Zn(e, t, r) {
3226
3228
  return e.message.includes("getaddrinfo ENOTFOUND") || e.message.includes("connect ECONNREFUSED") ? new Error(`Unavailable ${r} RPC url at ${t}`) : e;
3227
3229
  }
3228
- var Zn = {};
3230
+ var Qn = {};
3229
3231
  /*! *****************************************************************************
3230
3232
  Copyright (c) Microsoft Corporation.
3231
3233
 
@@ -3247,7 +3249,7 @@ var jt = function(e, t) {
3247
3249
  for (var o in n) n.hasOwnProperty(o) && (r[o] = n[o]);
3248
3250
  }, jt(e, t);
3249
3251
  };
3250
- function El(e, t) {
3252
+ function _l(e, t) {
3251
3253
  jt(e, t);
3252
3254
  function r() {
3253
3255
  this.constructor = e;
@@ -3263,7 +3265,7 @@ var Lt = function() {
3263
3265
  return t;
3264
3266
  }, Lt.apply(this, arguments);
3265
3267
  };
3266
- function _l(e, t) {
3268
+ function Sl(e, t) {
3267
3269
  var r = {};
3268
3270
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3269
3271
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -3271,21 +3273,21 @@ function _l(e, t) {
3271
3273
  t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
3272
3274
  return r;
3273
3275
  }
3274
- function Sl(e, t, r, n) {
3276
+ function Ol(e, t, r, n) {
3275
3277
  var o = arguments.length, i = o < 3 ? t : n === null ? n = Object.getOwnPropertyDescriptor(t, r) : n, a;
3276
3278
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") i = Reflect.decorate(e, t, r, n);
3277
3279
  else for (var l = e.length - 1; l >= 0; l--) (a = e[l]) && (i = (o < 3 ? a(i) : o > 3 ? a(t, r, i) : a(t, r)) || i);
3278
3280
  return o > 3 && i && Object.defineProperty(t, r, i), i;
3279
3281
  }
3280
- function Ol(e, t) {
3282
+ function Fl(e, t) {
3281
3283
  return function(r, n) {
3282
3284
  t(r, n, e);
3283
3285
  };
3284
3286
  }
3285
- function Fl(e, t) {
3287
+ function Cl(e, t) {
3286
3288
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
3287
3289
  }
3288
- function Cl(e, t, r, n) {
3290
+ function Al(e, t, r, n) {
3289
3291
  function o(i) {
3290
3292
  return i instanceof r ? i : new r(function(a) {
3291
3293
  a(i);
@@ -3312,7 +3314,7 @@ function Cl(e, t, r, n) {
3312
3314
  s((n = n.apply(e, t || [])).next());
3313
3315
  });
3314
3316
  }
3315
- function Al(e, t) {
3317
+ function xl(e, t) {
3316
3318
  var r = { label: 0, sent: function() {
3317
3319
  if (i[0] & 1) throw i[1];
3318
3320
  return i[1];
@@ -3372,10 +3374,10 @@ function Al(e, t) {
3372
3374
  return { value: s[0] ? s[1] : void 0, done: !0 };
3373
3375
  }
3374
3376
  }
3375
- function xl(e, t, r, n) {
3377
+ function Bl(e, t, r, n) {
3376
3378
  n === void 0 && (n = r), e[n] = t[r];
3377
3379
  }
3378
- function Bl(e, t) {
3380
+ function Il(e, t) {
3379
3381
  for (var r in e) r !== "default" && !t.hasOwnProperty(r) && (t[r] = e[r]);
3380
3382
  }
3381
3383
  function Ut(e) {
@@ -3388,7 +3390,7 @@ function Ut(e) {
3388
3390
  };
3389
3391
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
3390
3392
  }
3391
- function Qn(e, t) {
3393
+ function eo(e, t) {
3392
3394
  var r = typeof Symbol == "function" && e[Symbol.iterator];
3393
3395
  if (!r) return e;
3394
3396
  var n = r.call(e), o, i = [], a;
@@ -3405,20 +3407,20 @@ function Qn(e, t) {
3405
3407
  }
3406
3408
  return i;
3407
3409
  }
3408
- function Il() {
3410
+ function Tl() {
3409
3411
  for (var e = [], t = 0; t < arguments.length; t++)
3410
- e = e.concat(Qn(arguments[t]));
3412
+ e = e.concat(eo(arguments[t]));
3411
3413
  return e;
3412
3414
  }
3413
- function Tl() {
3415
+ function Nl() {
3414
3416
  for (var e = 0, t = 0, r = arguments.length; t < r; t++) e += arguments[t].length;
3415
3417
  for (var n = Array(e), o = 0, t = 0; t < r; t++)
3416
3418
  for (var i = arguments[t], a = 0, l = i.length; a < l; a++, o++)
3417
3419
  n[o] = i[a];
3418
3420
  return n;
3419
3421
  }
3420
- function Ne(e) {
3421
- return this instanceof Ne ? (this.v = e, this) : new Ne(e);
3422
+ function Re(e) {
3423
+ return this instanceof Re ? (this.v = e, this) : new Re(e);
3422
3424
  }
3423
3425
  function Rl(e, t, r) {
3424
3426
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
@@ -3441,7 +3443,7 @@ function Rl(e, t, r) {
3441
3443
  }
3442
3444
  }
3443
3445
  function c(h) {
3444
- h.value instanceof Ne ? Promise.resolve(h.value.v).then(s, u) : f(i[0][2], h);
3446
+ h.value instanceof Re ? Promise.resolve(h.value.v).then(s, u) : f(i[0][2], h);
3445
3447
  }
3446
3448
  function s(h) {
3447
3449
  l("next", h);
@@ -3453,7 +3455,7 @@ function Rl(e, t, r) {
3453
3455
  h(b), i.shift(), i.length && l(i[0][0], i[0][1]);
3454
3456
  }
3455
3457
  }
3456
- function Nl(e) {
3458
+ function Pl(e) {
3457
3459
  var t, r;
3458
3460
  return t = {}, n("next"), n("throw", function(o) {
3459
3461
  throw o;
@@ -3462,11 +3464,11 @@ function Nl(e) {
3462
3464
  }, t;
3463
3465
  function n(o, i) {
3464
3466
  t[o] = e[o] ? function(a) {
3465
- return (r = !r) ? { value: Ne(e[o](a)), done: o === "return" } : i ? i(a) : a;
3467
+ return (r = !r) ? { value: Re(e[o](a)), done: o === "return" } : i ? i(a) : a;
3466
3468
  } : i;
3467
3469
  }
3468
3470
  }
3469
- function Pl(e) {
3471
+ function jl(e) {
3470
3472
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
3471
3473
  var t = e[Symbol.asyncIterator], r;
3472
3474
  return t ? t.call(e) : (e = typeof Ut == "function" ? Ut(e) : e[Symbol.iterator](), r = {}, n("next"), n("throw"), n("return"), r[Symbol.asyncIterator] = function() {
@@ -3485,58 +3487,58 @@ function Pl(e) {
3485
3487
  }, a);
3486
3488
  }
3487
3489
  }
3488
- function jl(e, t) {
3490
+ function Ll(e, t) {
3489
3491
  return Object.defineProperty ? Object.defineProperty(e, "raw", { value: t }) : e.raw = t, e;
3490
3492
  }
3491
- function Ll(e) {
3493
+ function Ul(e) {
3492
3494
  if (e && e.__esModule) return e;
3493
3495
  var t = {};
3494
3496
  if (e != null) for (var r in e) Object.hasOwnProperty.call(e, r) && (t[r] = e[r]);
3495
3497
  return t.default = e, t;
3496
3498
  }
3497
- function Ul(e) {
3499
+ function Ml(e) {
3498
3500
  return e && e.__esModule ? e : { default: e };
3499
3501
  }
3500
- function Ml(e, t) {
3502
+ function $l(e, t) {
3501
3503
  if (!t.has(e))
3502
3504
  throw new TypeError("attempted to get private field on non-instance");
3503
3505
  return t.get(e);
3504
3506
  }
3505
- function $l(e, t, r) {
3507
+ function zl(e, t, r) {
3506
3508
  if (!t.has(e))
3507
3509
  throw new TypeError("attempted to set private field on non-instance");
3508
3510
  return t.set(e, r), r;
3509
3511
  }
3510
- const zl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3512
+ const Wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3511
3513
  __proto__: null,
3512
3514
  get __assign() {
3513
3515
  return Lt;
3514
3516
  },
3515
- __asyncDelegator: Nl,
3517
+ __asyncDelegator: Pl,
3516
3518
  __asyncGenerator: Rl,
3517
- __asyncValues: Pl,
3518
- __await: Ne,
3519
- __awaiter: Cl,
3520
- __classPrivateFieldGet: Ml,
3521
- __classPrivateFieldSet: $l,
3522
- __createBinding: xl,
3523
- __decorate: Sl,
3524
- __exportStar: Bl,
3525
- __extends: El,
3526
- __generator: Al,
3527
- __importDefault: Ul,
3528
- __importStar: Ll,
3529
- __makeTemplateObject: jl,
3530
- __metadata: Fl,
3531
- __param: Ol,
3532
- __read: Qn,
3533
- __rest: _l,
3534
- __spread: Il,
3535
- __spreadArrays: Tl,
3519
+ __asyncValues: jl,
3520
+ __await: Re,
3521
+ __awaiter: Al,
3522
+ __classPrivateFieldGet: $l,
3523
+ __classPrivateFieldSet: zl,
3524
+ __createBinding: Bl,
3525
+ __decorate: Ol,
3526
+ __exportStar: Il,
3527
+ __extends: _l,
3528
+ __generator: xl,
3529
+ __importDefault: Ml,
3530
+ __importStar: Ul,
3531
+ __makeTemplateObject: Ll,
3532
+ __metadata: Cl,
3533
+ __param: Fl,
3534
+ __read: eo,
3535
+ __rest: Sl,
3536
+ __spread: Tl,
3537
+ __spreadArrays: Nl,
3536
3538
  __values: Ut
3537
- }, Symbol.toStringTag, { value: "Module" })), Wl = /* @__PURE__ */ an(zl);
3539
+ }, Symbol.toStringTag, { value: "Module" })), kl = /* @__PURE__ */ un(Wl);
3538
3540
  var ne = {}, Yr;
3539
- function kl() {
3541
+ function Hl() {
3540
3542
  if (Yr) return ne;
3541
3543
  Yr = 1, Object.defineProperty(ne, "__esModule", { value: !0 }), ne.isBrowserCryptoAvailable = ne.getSubtleCrypto = ne.getBrowerCrypto = void 0;
3542
3544
  function e() {
@@ -3554,7 +3556,7 @@ function kl() {
3554
3556
  return ne.isBrowserCryptoAvailable = r, ne;
3555
3557
  }
3556
3558
  var oe = {}, Gr;
3557
- function Hl() {
3559
+ function Vl() {
3558
3560
  if (Gr) return oe;
3559
3561
  Gr = 1, Object.defineProperty(oe, "__esModule", { value: !0 }), oe.isBrowser = oe.isNode = oe.isReactNative = void 0;
3560
3562
  function e() {
@@ -3572,90 +3574,90 @@ function Hl() {
3572
3574
  }
3573
3575
  (function(e) {
3574
3576
  Object.defineProperty(e, "__esModule", { value: !0 });
3575
- const t = Wl;
3576
- t.__exportStar(kl(), e), t.__exportStar(Hl(), e);
3577
- })(Zn);
3578
- function eo(e = 3) {
3577
+ const t = kl;
3578
+ t.__exportStar(Hl(), e), t.__exportStar(Vl(), e);
3579
+ })(Qn);
3580
+ function to(e = 3) {
3579
3581
  const t = Date.now() * Math.pow(10, e), r = Math.floor(Math.random() * Math.pow(10, e));
3580
3582
  return t + r;
3581
3583
  }
3582
- function Vl(e = 6) {
3583
- return BigInt(eo(e));
3584
+ function Kl(e = 6) {
3585
+ return BigInt(to(e));
3584
3586
  }
3585
- function Kl(e, t, r) {
3587
+ function ql(e, t, r) {
3586
3588
  return {
3587
- id: r || eo(),
3589
+ id: r || to(),
3588
3590
  jsonrpc: "2.0",
3589
3591
  method: e,
3590
3592
  params: t
3591
3593
  };
3592
3594
  }
3593
- function Lf(e, t) {
3595
+ function Mf(e, t) {
3594
3596
  return {
3595
3597
  id: e,
3596
3598
  jsonrpc: "2.0",
3597
3599
  result: t
3598
3600
  };
3599
3601
  }
3600
- function to(e, t, r) {
3602
+ function ro(e, t, r) {
3601
3603
  return {
3602
3604
  id: e,
3603
3605
  jsonrpc: "2.0",
3604
- error: ql(t)
3606
+ error: Yl(t)
3605
3607
  };
3606
3608
  }
3607
- function ql(e, t) {
3608
- return typeof e > "u" ? qr(Gn) : (typeof e == "string" && (e = Object.assign(Object.assign({}, qr(Yt)), { message: e })), ml(e.code) && (e = vl(e.code)), e);
3609
+ function Yl(e, t) {
3610
+ return typeof e > "u" ? qr(Jn) : (typeof e == "string" && (e = Object.assign(Object.assign({}, qr(Yt)), { message: e })), vl(e.code) && (e = El(e.code)), e);
3609
3611
  }
3610
- class Yl {
3612
+ class Gl {
3611
3613
  }
3612
- class Gl extends Yl {
3614
+ class Jl extends Gl {
3613
3615
  constructor() {
3614
3616
  super();
3615
3617
  }
3616
3618
  }
3617
- class Jl extends Gl {
3619
+ class Xl extends Jl {
3618
3620
  constructor(t) {
3619
3621
  super();
3620
3622
  }
3621
3623
  }
3622
- const Xl = "^https?:", Zl = "^wss?:";
3623
- function Ql(e) {
3624
+ const Zl = "^https?:", Ql = "^wss?:";
3625
+ function ef(e) {
3624
3626
  const t = e.match(new RegExp(/^\w+:/, "gi"));
3625
3627
  if (!(!t || !t.length))
3626
3628
  return t[0];
3627
3629
  }
3628
- function ro(e, t) {
3629
- const r = Ql(e);
3630
+ function no(e, t) {
3631
+ const r = ef(e);
3630
3632
  return typeof r > "u" ? !1 : new RegExp(t).test(r);
3631
3633
  }
3632
3634
  function Jr(e) {
3633
- return ro(e, Xl);
3635
+ return no(e, Zl);
3634
3636
  }
3635
3637
  function Xr(e) {
3636
- return ro(e, Zl);
3638
+ return no(e, Ql);
3637
3639
  }
3638
- function ef(e) {
3640
+ function tf(e) {
3639
3641
  return new RegExp("wss?://localhost(:d{2,5})?").test(e);
3640
3642
  }
3641
- function no(e) {
3643
+ function oo(e) {
3642
3644
  return typeof e == "object" && "id" in e && "jsonrpc" in e && e.jsonrpc === "2.0";
3643
3645
  }
3644
- function Uf(e) {
3645
- return no(e) && "method" in e;
3646
- }
3647
- function tf(e) {
3648
- return no(e) && (rf(e) || oo(e));
3646
+ function $f(e) {
3647
+ return oo(e) && "method" in e;
3649
3648
  }
3650
3649
  function rf(e) {
3650
+ return oo(e) && (nf(e) || io(e));
3651
+ }
3652
+ function nf(e) {
3651
3653
  return "result" in e;
3652
3654
  }
3653
- function oo(e) {
3655
+ function io(e) {
3654
3656
  return "error" in e;
3655
3657
  }
3656
- class Mf extends Jl {
3658
+ class zf extends Xl {
3657
3659
  constructor(t) {
3658
- super(t), this.events = new et.EventEmitter(), this.hasRegisteredEventListeners = !1, this.connection = this.setConnection(t), this.connection.connected && this.registerEventListeners();
3660
+ super(t), this.events = new Pe.EventEmitter(), this.hasRegisteredEventListeners = !1, this.connection = this.setConnection(t), this.connection.connected && this.registerEventListeners();
3659
3661
  }
3660
3662
  async connect(t = this.connection) {
3661
3663
  await this.open(t);
@@ -3676,7 +3678,7 @@ class Mf extends Jl {
3676
3678
  this.events.removeListener(t, r);
3677
3679
  }
3678
3680
  async request(t, r) {
3679
- return this.requestStrict(Kl(t.method, t.params || [], t.id || Vl().toString()), r);
3681
+ return this.requestStrict(ql(t.method, t.params || [], t.id || Kl().toString()), r);
3680
3682
  }
3681
3683
  async requestStrict(t, r) {
3682
3684
  return new Promise(async (n, o) => {
@@ -3686,7 +3688,7 @@ class Mf extends Jl {
3686
3688
  o(i);
3687
3689
  }
3688
3690
  this.events.on(`${t.id}`, (i) => {
3689
- oo(i) ? o(i.error) : n(i.result);
3691
+ io(i) ? o(i.error) : n(i.result);
3690
3692
  });
3691
3693
  try {
3692
3694
  await this.connection.send(t, r);
@@ -3699,7 +3701,7 @@ class Mf extends Jl {
3699
3701
  return t;
3700
3702
  }
3701
3703
  onPayload(t) {
3702
- this.events.emit("payload", t), tf(t) ? this.events.emit(`${t.id}`, t) : this.events.emit("message", { type: t.method, data: t.params });
3704
+ this.events.emit("payload", t), rf(t) ? this.events.emit(`${t.id}`, t) : this.events.emit("message", { type: t.method, data: t.params });
3703
3705
  }
3704
3706
  onClose(t) {
3705
3707
  t && t.code === 3e3 && this.events.emit("error", new Error(`WebSocket connection closed abnormally with code: ${t.code} ${t.reason ? `(${t.reason})` : ""}`)), this.events.emit("disconnect");
@@ -3714,10 +3716,10 @@ class Mf extends Jl {
3714
3716
  this.hasRegisteredEventListeners || (this.connection.on("payload", (t) => this.onPayload(t)), this.connection.on("close", (t) => this.onClose(t)), this.connection.on("error", (t) => this.events.emit("error", t)), this.connection.on("register_error", (t) => this.onClose()), this.hasRegisteredEventListeners = !0);
3715
3717
  }
3716
3718
  }
3717
- const nf = () => typeof WebSocket < "u" ? WebSocket : typeof V.global < "u" && typeof V.global.WebSocket < "u" ? V.global.WebSocket : typeof window < "u" && typeof window.WebSocket < "u" ? window.WebSocket : typeof self < "u" && typeof self.WebSocket < "u" ? self.WebSocket : require("ws"), of = () => typeof WebSocket < "u" || typeof V.global < "u" && typeof V.global.WebSocket < "u" || typeof window < "u" && typeof window.WebSocket < "u" || typeof self < "u" && typeof self.WebSocket < "u", Zr = (e) => e.split("?")[0], Qr = 10, sf = nf();
3718
- let $f = class {
3719
+ const of = () => typeof WebSocket < "u" ? WebSocket : typeof V.global < "u" && typeof V.global.WebSocket < "u" ? V.global.WebSocket : typeof window < "u" && typeof window.WebSocket < "u" ? window.WebSocket : typeof self < "u" && typeof self.WebSocket < "u" ? self.WebSocket : require("ws"), sf = () => typeof WebSocket < "u" || typeof V.global < "u" && typeof V.global.WebSocket < "u" || typeof window < "u" && typeof window.WebSocket < "u" || typeof self < "u" && typeof self.WebSocket < "u", Zr = (e) => e.split("?")[0], Qr = 10, af = of();
3720
+ let Wf = class {
3719
3721
  constructor(t) {
3720
- if (this.url = t, this.events = new et.EventEmitter(), this.registering = !1, !Xr(t)) throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);
3722
+ if (this.url = t, this.events = new Pe.EventEmitter(), this.registering = !1, !Xr(t)) throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);
3721
3723
  this.url = t;
3722
3724
  }
3723
3725
  get connected() {
@@ -3774,8 +3776,8 @@ let $f = class {
3774
3776
  });
3775
3777
  }
3776
3778
  return this.url = t, this.registering = !0, new Promise((r, n) => {
3777
- const o = Zn.isReactNative() ? void 0 : { rejectUnauthorized: !ef(t) }, i = new sf(t, [], o);
3778
- of() ? i.onerror = (a) => {
3779
+ const o = Qn.isReactNative() ? void 0 : { rejectUnauthorized: !tf(t) }, i = new af(t, [], o);
3780
+ sf() ? i.onerror = (a) => {
3779
3781
  const l = a;
3780
3782
  n(this.emitError(l.error));
3781
3783
  } : i.on("error", (a) => {
@@ -3793,15 +3795,15 @@ let $f = class {
3793
3795
  }
3794
3796
  onPayload(t) {
3795
3797
  if (typeof t.data > "u") return;
3796
- const r = typeof t.data == "string" ? je(t.data) : t.data;
3798
+ const r = typeof t.data == "string" ? Le(t.data) : t.data;
3797
3799
  this.events.emit("payload", r);
3798
3800
  }
3799
3801
  onError(t, r) {
3800
- const n = this.parseError(r), o = n.message || n.toString(), i = to(t, o);
3802
+ const n = this.parseError(r), o = n.message || n.toString(), i = ro(t, o);
3801
3803
  this.events.emit("payload", i);
3802
3804
  }
3803
3805
  parseError(t, r = this.url) {
3804
- return Xn(t, Zr(r), "WS");
3806
+ return Zn(t, Zr(r), "WS");
3805
3807
  }
3806
3808
  resetMaxListeners() {
3807
3809
  this.events.getMaxListeners() > Qr && this.events.setMaxListeners(Qr);
@@ -3811,15 +3813,15 @@ let $f = class {
3811
3813
  return this.events.emit("register_error", r), r;
3812
3814
  }
3813
3815
  };
3814
- var af = Object.defineProperty, uf = Object.defineProperties, cf = Object.getOwnPropertyDescriptors, en = Object.getOwnPropertySymbols, lf = Object.prototype.hasOwnProperty, ff = Object.prototype.propertyIsEnumerable, tn = (e, t, r) => t in e ? af(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rn = (e, t) => {
3815
- for (var r in t || (t = {})) lf.call(t, r) && tn(e, r, t[r]);
3816
- if (en) for (var r of en(t)) ff.call(t, r) && tn(e, r, t[r]);
3816
+ var uf = Object.defineProperty, cf = Object.defineProperties, lf = Object.getOwnPropertyDescriptors, en = Object.getOwnPropertySymbols, ff = Object.prototype.hasOwnProperty, hf = Object.prototype.propertyIsEnumerable, tn = (e, t, r) => t in e ? uf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rn = (e, t) => {
3817
+ for (var r in t || (t = {})) ff.call(t, r) && tn(e, r, t[r]);
3818
+ if (en) for (var r of en(t)) hf.call(t, r) && tn(e, r, t[r]);
3817
3819
  return e;
3818
- }, nn = (e, t) => uf(e, cf(t));
3819
- const hf = { Accept: "application/json", "Content-Type": "application/json" }, df = "POST", on = { headers: hf, method: df }, sn = 10;
3820
- class Wf {
3820
+ }, nn = (e, t) => cf(e, lf(t));
3821
+ const df = { Accept: "application/json", "Content-Type": "application/json" }, bf = "POST", on = { headers: df, method: bf }, sn = 10;
3822
+ class Hf {
3821
3823
  constructor(t, r = !1) {
3822
- if (this.url = t, this.disableProviderPing = r, this.events = new et.EventEmitter(), this.isAvailable = !1, this.registering = !1, !Jr(t)) throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);
3824
+ if (this.url = t, this.disableProviderPing = r, this.events = new Pe.EventEmitter(), this.isAvailable = !1, this.registering = !1, !Jr(t)) throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);
3823
3825
  this.url = t, this.disableProviderPing = r;
3824
3826
  }
3825
3827
  get connected() {
@@ -3889,56 +3891,58 @@ class Wf {
3889
3891
  }
3890
3892
  onPayload(t) {
3891
3893
  if (typeof t.data > "u") return;
3892
- const r = typeof t.data == "string" ? je(t.data) : t.data;
3894
+ const r = typeof t.data == "string" ? Le(t.data) : t.data;
3893
3895
  this.events.emit("payload", r);
3894
3896
  }
3895
3897
  onError(t, r) {
3896
- const n = this.parseError(r), o = n.message || n.toString(), i = to(t, o);
3898
+ const n = this.parseError(r), o = n.message || n.toString(), i = ro(t, o);
3897
3899
  this.events.emit("payload", i);
3898
3900
  }
3899
3901
  parseError(t, r = this.url) {
3900
- return Xn(t, r, "HTTP");
3902
+ return Zn(t, r, "HTTP");
3901
3903
  }
3902
3904
  resetMaxListeners() {
3903
3905
  this.events.getMaxListeners() > sn && this.events.setMaxListeners(sn);
3904
3906
  }
3905
3907
  }
3906
3908
  export {
3907
- Af as A,
3908
- rf as B,
3909
- jf as C,
3910
- oo as D,
3911
- Cf as E,
3912
- eo as F,
3913
- Wf as G,
3914
- ko as I,
3915
- bn as O,
3916
- Bf as P,
3917
- $u as Q,
3918
- sc as a,
3919
- cc as b,
3909
+ Bf as A,
3910
+ ro as B,
3911
+ Uf as C,
3912
+ nf as D,
3913
+ xf as E,
3914
+ io as F,
3915
+ to as G,
3916
+ Hf as H,
3917
+ Ho as I,
3918
+ Df as N,
3919
+ pn as O,
3920
+ Tf as P,
3921
+ zu as Q,
3922
+ ac as a,
3923
+ lc as b,
3920
3924
  tt as c,
3921
- Tf as d,
3922
- hc as e,
3923
- Nf as f,
3924
- wc as g,
3925
- Rf as h,
3926
- Df as i,
3927
- vf as j,
3928
- Ff as k,
3929
- Kl as l,
3930
- $f as m,
3931
- Uf as n,
3932
- Mf as o,
3933
- tf as p,
3934
- Lf as q,
3935
- Vo as r,
3936
- xf as s,
3937
- Pf as t,
3938
- If as u,
3939
- ue as v,
3940
- je as w,
3941
- Vl as x,
3942
- Xi as y,
3943
- to as z
3925
+ Rf as d,
3926
+ dc as e,
3927
+ jf as f,
3928
+ Dc as g,
3929
+ Pf as h,
3930
+ Pe as i,
3931
+ mf as j,
3932
+ Af as k,
3933
+ _f as l,
3934
+ ql as m,
3935
+ Wf as n,
3936
+ zf as o,
3937
+ $f as p,
3938
+ rf as q,
3939
+ Ko as r,
3940
+ If as s,
3941
+ Lf as t,
3942
+ Mf as u,
3943
+ Nf as v,
3944
+ ue as w,
3945
+ Le as x,
3946
+ Zi as y,
3947
+ Kl as z
3944
3948
  };