@wormhole-foundation/wormhole-connect 3.0.0-beta.12-development → 3.0.0-beta.13-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.
- package/dist/assets/{tokens-BjeNFBPV.js → tokens-CrPLX1jh.js} +13 -13
- package/dist/main.js +75 -75
- package/dist/src/components/SampleApp/index.d.ts.map +1 -1
- package/dist/src/config/mainnet/rpcs.d.ts.map +1 -1
- package/dist/src/config/mainnet/tokens.d.ts.map +1 -1
- package/dist/src/config/testnet/rpcs.d.ts.map +1 -1
- package/dist/src/config/testnet/tokens.d.ts.map +1 -1
- package/dist/src/config/types.d.ts +2 -1
- package/dist/src/config/types.d.ts.map +1 -1
- package/dist/src/contexts/TokensContext.d.ts.map +1 -1
- package/dist/src/exports/executor.d.ts +1 -1
- package/dist/src/exports/executor.d.ts.map +1 -1
- package/dist/src/icons/ChainIcons.d.ts.map +1 -1
- package/dist/src/icons/Chains/LINEA.d.ts +4 -0
- package/dist/src/icons/Chains/LINEA.d.ts.map +1 -0
- package/dist/src/icons/Chains/POLY.d.ts +2 -2
- package/dist/src/icons/Chains/POLY.d.ts.map +1 -1
- package/dist/src/icons/Chains/SONIC.d.ts +4 -0
- package/dist/src/icons/Chains/SONIC.d.ts.map +1 -0
- package/dist/src/icons/SvgDefs.d.ts.map +1 -1
- package/dist/src/icons/TokenIcons.d.ts.map +1 -1
- package/dist/src/icons/Tokens/POLY.d.ts.map +1 -1
- package/dist/src/sdklegacy/config/MAINNET.d.ts.map +1 -1
- package/dist/src/sdklegacy/config/TESTNET.d.ts.map +1 -1
- package/dist/src/utils/coingecko.d.ts.map +1 -1
- package/dist/src/utils/sdkv2.d.ts +1 -1
- package/dist/src/utils/sdkv2.d.ts.map +1 -1
- package/dist/src/utils/wallet/index.d.ts.map +1 -1
- package/dist/src/views/v2/Bridge/GasSlider/index.d.ts +1 -0
- package/dist/src/views/v2/Bridge/GasSlider/index.d.ts.map +1 -1
- package/dist/src/views/v2/Bridge/Routes/SingleRoute.d.ts.map +1 -1
- package/dist/src/views/v2/Redeem/index.d.ts.map +1 -1
- package/lib/{account-k-CXVcvA.mjs → account-DRrQuG9b.mjs} +1 -1
- package/lib/{account-gVjkECaX.js → account-nmHnnwf-.js} +1 -1
- package/lib/{add-Bgr8Uh8B.mjs → add-B3TOzisV.mjs} +1 -1
- package/lib/{add-CgyvYm-l.js → add-PboF8xOA.js} +1 -1
- package/lib/{address-CrYNZ_Nj.mjs → address-BkeBsCZD.mjs} +1837 -1809
- package/lib/{address-ByLIzxVb.mjs → address-CHEvC20V.mjs} +1 -1
- package/lib/{address-DfgK_jn7.js → address-CslafWGT.js} +1 -1
- package/lib/address-DKM11kf_.js +15 -0
- package/lib/{address-DGYJWkFz.js → address-vHTAfgt6.js} +1 -1
- package/lib/{address-BJNAPSnr.mjs → address-xvE59bSC.mjs} +1 -1
- package/lib/{all-wallets-BeYsJiCM.js → all-wallets-C3KaOAtR.js} +1 -1
- package/lib/{all-wallets-DdRIEq-V.mjs → all-wallets-i8sBvyse.mjs} +1 -1
- package/lib/{app-store-C9yZzH2t.js → app-store-DMPxp7LI.js} +1 -1
- package/lib/{app-store-eKRqPW4N.mjs → app-store-D_gEJYR-.mjs} +1 -1
- package/lib/{apple-DQcCTOa_.mjs → apple-C7dx7WbA.mjs} +1 -1
- package/lib/{apple-B3Aps_l8.js → apple-CBv-wD_N.js} +1 -1
- package/lib/{aptos-DySrgy5u.mjs → aptos-5WdoBDe7.mjs} +3 -3
- package/lib/{aptos-IciOSw-S.js → aptos-7NDR_C5e.js} +2 -2
- package/lib/{aptos-CxfKcGPe.js → aptos-BHb4m4xc.js} +1 -1
- package/lib/{aptos-M18090BQ.mjs → aptos-DjCb_S8U.mjs} +7 -7
- package/lib/{arrow-bottom-CUgsoqql.js → arrow-bottom-JVAM2flH.js} +1 -1
- package/lib/{arrow-bottom-circle-CvfJ5p_y.mjs → arrow-bottom-circle-CNlCzI_j.mjs} +1 -1
- package/lib/{arrow-bottom-circle-u8tFbHrW.js → arrow-bottom-circle-Cwm4Epf6.js} +1 -1
- package/lib/{arrow-bottom-Duiu5Tg_.mjs → arrow-bottom-dGyduTnX.mjs} +1 -1
- package/lib/{arrow-left-IZiFrwcP.js → arrow-left-BCNUIhF5.js} +1 -1
- package/lib/{arrow-left-avYXBHF4.mjs → arrow-left-PKOB36Bh.mjs} +1 -1
- package/lib/{arrow-right-Cbunep5L.mjs → arrow-right-CS5PKMHz.mjs} +1 -1
- package/lib/{arrow-right-CF-NNN4L.js → arrow-right-DmYVvh1l.js} +1 -1
- package/lib/{arrow-top-DBWWW9Oy.mjs → arrow-top-BkM6S1a6.mjs} +1 -1
- package/lib/{arrow-top-DCGkz6k-.js → arrow-top-Bo7YKrfd.js} +1 -1
- package/lib/{bank-C2jhIapN.mjs → bank-CCF3DOdG.mjs} +1 -1
- package/lib/{bank-C-CLDGG9.js → bank-DLZl3tlW.js} +1 -1
- package/lib/{basic-CIBqPAeW.mjs → basic-B3TQQ8Sq.mjs} +2 -2
- package/lib/{basic-DVsxPr6-.js → basic-DVoqEslQ.js} +1 -1
- package/lib/{blake2b-GH2Zzt65.mjs → blake2b-CAi92fbu.mjs} +17 -17
- package/lib/{blake2b-CCJ4LnEi.js → blake2b-DQdnnomV.js} +1 -1
- package/lib/{browser-DFX8bJKi.mjs → browser-8x7RJ5du.mjs} +1 -1
- package/lib/{browser-BQ2hKa4j.js → browser-CRt_zD3Q.js} +1 -1
- package/lib/{browser-ponyfill-JlME40Yz.mjs → browser-ponyfill-B32wgiqZ.mjs} +1 -1
- package/lib/{browser-ponyfill-DqqaJGv_.js → browser-ponyfill-UnUv8h3i.js} +1 -1
- package/lib/{card-CUMXwdG1.js → card-B4Tu3QQo.js} +1 -1
- package/lib/{card-4-u9SA69.mjs → card-CXjBQX3v.mjs} +1 -1
- package/lib/{ccip-FetjJVFw.mjs → ccip-CIIU_fEJ.mjs} +2 -2
- package/lib/{ccip-BTGJ_kF8.js → ccip-DaWU7YTU.js} +1 -1
- package/lib/{chain-DTh9H2Cq.js → chain-CJuQGMF5.js} +1 -1
- package/lib/{chain-Dq8acwHq.mjs → chain-uXEmLNMk.mjs} +1 -1
- package/lib/{checkmark-DDLHlQQ9.mjs → checkmark-BAUqIoTm.mjs} +1 -1
- package/lib/{checkmark-BaLFRM45.js → checkmark-C7_13-xW.js} +1 -1
- package/lib/{checkmark-bold-COMu2UxE.js → checkmark-bold-BAPMY9Va.js} +1 -1
- package/lib/{checkmark-bold-CuRoxeU8.mjs → checkmark-bold-DdxcN-xa.mjs} +1 -1
- package/lib/{chevron-bottom-C4e9WRar.js → chevron-bottom-BhliKUSk.js} +1 -1
- package/lib/{chevron-bottom-BWzCLrD5.mjs → chevron-bottom-DPs0vktV.mjs} +1 -1
- package/lib/{chevron-left-CGVLc133.js → chevron-left-CmxD6cz4.js} +1 -1
- package/lib/{chevron-left--LyUtyQT.mjs → chevron-left-Dk6PhtGR.mjs} +1 -1
- package/lib/{chevron-right-kMciDMkJ.mjs → chevron-right-CkGXlHcz.mjs} +1 -1
- package/lib/{chevron-right-BwKWUL52.js → chevron-right-CsZm-r4d.js} +1 -1
- package/lib/{chevron-top-CAHxogoB.js → chevron-top-COxXTPhY.js} +1 -1
- package/lib/{chevron-top-DwIXDDfD.mjs → chevron-top-Cckcz4Qs.mjs} +1 -1
- package/lib/{chrome-store-KsYwGQZ1.js → chrome-store-BQDKjVx4.js} +1 -1
- package/lib/{chrome-store-BtgUtu2e.mjs → chrome-store-BWCBtyqY.mjs} +1 -1
- package/lib/{chunk-KJH4KKG6-DOESg_ru.js → chunk-KJH4KKG6-CAnNL4lj.js} +1 -1
- package/lib/{chunk-KJH4KKG6-cfe1Zo7n.mjs → chunk-KJH4KKG6-CCerRpgp.mjs} +2 -2
- package/lib/{clock-CeP_x_KK.mjs → clock-BVouBwH-.mjs} +1 -1
- package/lib/{clock-DZ0ehwc-.js → clock-DyD0fxqO.js} +1 -1
- package/lib/{close-fTN6nBRu.mjs → close-BWXb69Wl.mjs} +1 -1
- package/lib/{close-DQfNwzpp.js → close-Cw0rUieJ.js} +1 -1
- package/lib/{coinPlaceholder-DetWjpMK.mjs → coinPlaceholder-BMScJe5r.mjs} +1 -1
- package/lib/{coinPlaceholder-Dg3gZsJM.js → coinPlaceholder-cDwG015N.js} +1 -1
- package/lib/{compass-BNDqAmOT.js → compass-BEkdaonl.js} +1 -1
- package/lib/{compass-Bi1bPHDM.mjs → compass-Ck1hdMBP.mjs} +1 -1
- package/lib/{constants-CoxhiYrX.js → constants-84--TxnQ.js} +1 -1
- package/lib/{constants-CPx3n7t3.mjs → constants-DL79O3Cw.mjs} +4 -4
- package/lib/{contract-D8VzaUQJ.mjs → contract-C26uilM9.mjs} +171 -171
- package/lib/{contract-DYtnmT6F.js → contract-C2wJ6LwN.js} +1 -1
- package/lib/{copy-CYLp0MkE.js → copy-BLHxb-RP.js} +1 -1
- package/lib/{copy-C0ChGAOX.mjs → copy-Db7Dj1yY.mjs} +1 -1
- package/lib/{create-BRB2U1qV.js → create-D2vX2bRe.js} +1 -1
- package/lib/create-OmEBpMgv.mjs +18 -0
- package/lib/{cursor-DsUEeeMn.js → cursor-C1Sin6tb.js} +1 -1
- package/lib/{cursor-C0wqoNp_.mjs → cursor-CNsWvtzA.mjs} +1 -1
- package/lib/{cursor-transparent-DOFMlNyt.mjs → cursor-transparent-BunBBBx5.mjs} +1 -1
- package/lib/{cursor-transparent-Dgi2QAXz.js → cursor-transparent-SER8uk9I.js} +1 -1
- package/lib/{desktop-DvAIpuqU.mjs → desktop-B6mJxAHq.mjs} +1 -1
- package/lib/{desktop-7XDZ1UeO.js → desktop-BxtmfVtX.js} +1 -1
- package/lib/{disconnect-BPZFeB_X.js → disconnect-C41yMwSb.js} +1 -1
- package/lib/{disconnect-CVe77kqf.mjs → disconnect-D7XSHnMT.mjs} +1 -1
- package/lib/{discord-BQnoDtpm.js → discord-B03i6OzP.js} +1 -1
- package/lib/{discord-C8tW30M4.mjs → discord-BYp6ZBO5.mjs} +1 -1
- package/lib/{etherscan-XnmA1DYM.js → etherscan-DLF8GRx-.js} +1 -1
- package/lib/{etherscan-BbTgK2kR.mjs → etherscan-Db4s0bfM.mjs} +1 -1
- package/lib/{evm-BcBUJ9Y7.js → evm-BmUWgBnJ.js} +2 -2
- package/lib/{evm-B1mLJPQm.mjs → evm-Cfbj-u_x.mjs} +9 -9
- package/lib/{evm-B92-10xg.js → evm-DT7UH6jw.js} +3 -3
- package/lib/{evm-DDTF3fsK.mjs → evm-JX0NqvCN.mjs} +9 -9
- package/lib/{exclamation-triangle-BSU-BEmm.js → exclamation-triangle-Bnq3BTWj.js} +1 -1
- package/lib/{exclamation-triangle-CDPTA2Zq.mjs → exclamation-triangle-QwUrQkZz.mjs} +1 -1
- package/lib/executor.js +1 -1
- package/lib/executor.mjs +1130 -487
- package/lib/{extension-BoRmu23R.mjs → extension-BJ8ReR_0.mjs} +1 -1
- package/lib/{extension-JoJqEx2q.js → extension-CgcYwI-C.js} +1 -1
- package/lib/{external-link-BmVFZxUx.mjs → external-link-C-xXuK-w.mjs} +1 -1
- package/lib/{external-link-CDpvnIKV.js → external-link-DyvDlcrJ.js} +1 -1
- package/lib/{facebook-BU0IgAsn.mjs → facebook-0DLWcqgY.mjs} +1 -1
- package/lib/{facebook-DVG-Of9i.js → facebook-BpyxMifX.js} +1 -1
- package/lib/{farcaster-EqU1YhWT.mjs → farcaster-7pF76-yJ.mjs} +1 -1
- package/lib/{farcaster-HjCoTneu.js → farcaster-CWG8svoe.js} +1 -1
- package/lib/{filters-9uiEFQFc.mjs → filters-B13ud8_A.mjs} +1 -1
- package/lib/{filters-Dj4vA-oO.js → filters-QScvFA3B.js} +1 -1
- package/lib/{github-CHTQ7Hhb.js → github-B1QukX4i.js} +1 -1
- package/lib/{github-Bv36prmZ.mjs → github-D82vkMzo.mjs} +1 -1
- package/lib/{google-D4be9Rni.js → google-C6E4oHHf.js} +1 -1
- package/lib/{google-CIdoM_ZL.mjs → google-D4wJMU48.mjs} +1 -1
- package/lib/{help-circle-Cp-RWM01.js → help-circle-C4PprAiX.js} +1 -1
- package/lib/{help-circle-Di6XLLqm.mjs → help-circle-DoiMsREG.mjs} +1 -1
- package/lib/hosted.js +1 -1
- package/lib/hosted.mjs +1 -1
- package/lib/{id-zzAVAbpV.js → id-D6HBBibn.js} +1 -1
- package/lib/{id-BKRrmUYA.mjs → id-DOZCSctU.mjs} +1 -1
- package/lib/{image-CHXv-pfQ.mjs → image-Bz-sq4zu.mjs} +1 -1
- package/lib/{image-D0lV7yfg.js → image-DwgrdoFE.js} +1 -1
- package/lib/{index-CbF5x2NI.js → index-AZ65joOD.js} +1 -1
- package/lib/{index-BsqWniHZ.mjs → index-B0H8aSyJ.mjs} +2 -2
- package/lib/{index-CreVTM0z.mjs → index-B1YHtJKf.mjs} +32 -32
- package/lib/{index-6NFOdkn_.mjs → index-B2v8cGyE.mjs} +5 -5
- package/lib/{index-Bn829hfx.js → index-B586QVP1.js} +1 -1
- package/lib/{index-CjojdPoR.js → index-BOiHIPRm.js} +1 -1
- package/lib/{index-CSf9Xnts.mjs → index-BgvV5NF2.mjs} +5 -5
- package/lib/{index-BxR9BQdY.mjs → index-BjeolB9D.mjs} +5 -5
- package/lib/{index-WR7oDg9u.mjs → index-Bv-BZXf_.mjs} +6 -6
- package/lib/{index-T00Tc9JN.js → index-C2EKjwxb.js} +1 -1
- package/lib/{index-D4dCJIWy.js → index-C2oYdtY8.js} +1 -1
- package/lib/{index-Cj6R9JbK.js → index-CFfjoJR9.js} +1 -1
- package/lib/{index-B6QoC8kC.mjs → index-CIGkn9tA.mjs} +1 -1
- package/lib/{index-D0eLvswO.mjs → index-CNWcuxPc.mjs} +1 -1
- package/lib/{index-Dy8-WjNf.mjs → index-CNhD4Iu8.mjs} +14 -14
- package/lib/{index-Cv26ujGL.js → index-CP6-WHfp.js} +1 -1
- package/lib/{index-BuMERF6V.mjs → index-CRYNS9pm.mjs} +3 -3
- package/lib/{index-CMRsE6Rx.js → index-CZhOgoed.js} +2 -2
- package/lib/{index-C9CCEaud.js → index-Cet7Wvc5.js} +1 -1
- package/lib/{index-CpYW6xKB.mjs → index-Cg5Ko9uq.mjs} +12 -12
- package/lib/{index-iIndJffV.js → index-CjI7Vey3.js} +1 -1
- package/lib/{index-C_DPPfkk.js → index-Cjz6EL9G.js} +1 -1
- package/lib/{index-CJXywlFV.mjs → index-CrKGOs08.mjs} +5 -5
- package/lib/{index-Dg_iItNp.js → index-Cy_GmZ1K.js} +1 -1
- package/lib/{index-B8CSnOaL.mjs → index-D1vSocUD.mjs} +4 -4
- package/lib/{index-Co1W4Raf.mjs → index-D4WbU33f.mjs} +10 -10
- package/lib/{index-B4yQb6w1.mjs → index-DInWB5Ku.mjs} +78 -78
- package/lib/{index-BJjgo7T5.js → index-DQXzR255.js} +1 -1
- package/lib/{index-FyK0K3it.mjs → index-DSGGuRHs.mjs} +7 -7
- package/lib/{index-BOmzGtQH.mjs → index-DVj58Xn9.mjs} +13 -13
- package/lib/{index-CAZoTTeF.js → index-DXD0qvNV.js} +1 -1
- package/lib/{index-DLyteqgH.js → index-Dd0zXo9p.js} +1 -1
- package/lib/{index-BDN9fAFf.js → index-DflOc1lz.js} +1 -1
- package/lib/{index-DZ0LaYyC.js → index-DoubjpWw.js} +1 -1
- package/lib/{index-BBXzsMzy.mjs → index-Dpefdrdb.mjs} +3296 -3074
- package/lib/{index-0V2bg9Sg.mjs → index-DuXi1xNY.mjs} +2 -2
- package/lib/{index-Csb-_vqa.js → index-Dw8nyQGf.js} +1 -1
- package/lib/{index-DUoona4h.mjs → index-Naa9NLXw.mjs} +4 -4
- package/lib/{index-BBwY_mLw.mjs → index-UZaBhUoD.mjs} +4 -4
- package/lib/{index-D5Wl9ZPE.mjs → index-XkPtmd0r.mjs} +7 -7
- package/lib/{index-CFikcYS0.js → index-XrGXGqnM.js} +1 -1
- package/lib/{index--rEdlHs9.js → index-sIkHg4mO.js} +1 -1
- package/lib/{index-w1W7oltR.js → index-tVbvQzum.js} +60 -60
- package/lib/{index-Cvt-EnSZ.mjs → index-wFZO7Yy8.mjs} +19 -19
- package/lib/{index-uqZQu-qU.js → index-yI1a3BCl.js} +1 -1
- package/lib/{index-aoDDl5Bh.js → index-zrsGesGr.js} +1 -1
- package/lib/{index.es-Buu5D0rZ.mjs → index.es-CTerQ-xd.mjs} +6 -6
- package/lib/{index.es-SeoKSGri.js → index.es-DW-Rbcpg.js} +1 -1
- package/lib/{index.es-BjmsZFfK.mjs → index.es-FblCdfpc.mjs} +4 -4
- package/lib/{index.es-B-gAV41L.js → index.es-tq-RvjG8.js} +2 -2
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{info-Bro13JOm.js → info-BifZFc7t.js} +1 -1
- package/lib/{info-circle-B1XYC5VH.js → info-circle-2P1Yxg4Q.js} +1 -1
- package/lib/{info-circle-Ysma0RJy.mjs → info-circle-BAC0QRkt.mjs} +1 -1
- package/lib/{info-DI_ShZXM.mjs → info-sSeB9YE8.mjs} +1 -1
- package/lib/{lightbulb-llAiUdyo.mjs → lightbulb-EmWyHxHf.mjs} +1 -1
- package/lib/{lightbulb-BWSob509.js → lightbulb-MtN8FDGi.js} +1 -1
- package/lib/{mail-rZToesAW.js → mail-CqXkLFqA.js} +1 -1
- package/lib/{mail-DoQE8IHx.mjs → mail-Kn0E2IkG.mjs} +1 -1
- package/lib/mayan.js +1 -1
- package/lib/mayan.mjs +9 -9
- package/lib/{mint-CyFSbOaj.js → mint-DzKeNBRo.js} +1 -1
- package/lib/{mint-CDUlLJB4.mjs → mint-WjTAjh-p.mjs} +2 -2
- package/lib/{mobile-BbcVkbmr.js → mobile-BE2FxzUq.js} +1 -1
- package/lib/{mobile-EtRDQH27.mjs → mobile-Dj3WE71d.mjs} +1 -1
- package/lib/{more-BK6O3COI.js → more-BGlDHap-.js} +1 -1
- package/lib/{more-DVrhZdB3.mjs → more-D4DDIvdG.mjs} +1 -1
- package/lib/{native-Bdd5l9MQ.js → native-CGkMKXpm.js} +1 -1
- package/lib/{native-D6oc9ERK.mjs → native-DCc4sjxb.mjs} +1 -1
- package/lib/{network-placeholder-BbB6hX07.mjs → network-placeholder-BBNnq4LJ.mjs} +1 -1
- package/lib/{network-placeholder-K8zio41s.js → network-placeholder-DZ6qNrD8.js} +1 -1
- package/lib/{nftPlaceholder-BMuE_429.mjs → nftPlaceholder-BGK-mcGP.mjs} +1 -1
- package/lib/{nftPlaceholder-L3ThVWUO.js → nftPlaceholder-t3eyvw1E.js} +1 -1
- package/lib/ntt.js +1 -1
- package/lib/ntt.mjs +10 -10
- package/lib/{off-CHM9QBcy.js → off-BBGwptS5.js} +1 -1
- package/lib/{off-CUzDZ7SQ.mjs → off-f4sOrEaa.mjs} +1 -1
- package/lib/{platform-CyoDzIPB.mjs → platform-BVScq6Cn.mjs} +6 -6
- package/lib/{platform-Ck9W87gm.mjs → platform-ByoVE-An.mjs} +4 -4
- package/lib/{platform-DbvllBcy.js → platform-DHBUZeaO.js} +1 -1
- package/lib/{platform-C7YwgvxU.js → platform-Yk6Fw43J.js} +1 -1
- package/lib/{platform-CgqczEeE.js → platform-_YLyrJdi.js} +1 -1
- package/lib/{platform-DkmFvjoG.mjs → platform-tSU41623.mjs} +16 -16
- package/lib/{play-store-DodlKRO8.js → play-store-BbN0jXQh.js} +1 -1
- package/lib/{play-store-B_TfUWJP.mjs → play-store-D8C6HS_a.mjs} +1 -1
- package/lib/{plus-BY6E-gA7.mjs → plus-CbTzHTic.mjs} +1 -1
- package/lib/{plus-DVGYUzNZ.js → plus-DmTKVIYx.js} +1 -1
- package/lib/{provider-jsonrpc-D033z3Mz.js → provider-jsonrpc-B0U6Ij-n.js} +1 -1
- package/lib/{provider-jsonrpc-BVvalXMV.mjs → provider-jsonrpc-pHUX5SqN.mjs} +155 -155
- package/lib/{qr-code-MKK1K7_f.js → qr-code-B6qlbkUI.js} +1 -1
- package/lib/{qr-code-DkdB4YWU.mjs → qr-code-BWVtySSk.mjs} +1 -1
- package/lib/{recycle-horizontal-Bg37UVPn.mjs → recycle-horizontal-Bs5gf79m.mjs} +1 -1
- package/lib/{recycle-horizontal-Bjn-ZLNs.js → recycle-horizontal-DzBA56-s.js} +1 -1
- package/lib/{refresh-dRlw97C1.js → refresh-62hm4k6x.js} +1 -1
- package/lib/{refresh-D6TcjIU1.mjs → refresh-ivbjdSCV.mjs} +1 -1
- package/lib/{reown-logo-Kc70GqDZ.js → reown-logo-CVyCROZP.js} +1 -1
- package/lib/{reown-logo-Dk82Zy5_.mjs → reown-logo-DkbDD804.mjs} +1 -1
- package/lib/{search-Dv-LI1Vx.js → search-BAemvNq7.js} +1 -1
- package/lib/{search-D83RKxoH.mjs → search-By1CMDmb.mjs} +1 -1
- package/lib/{secp256k1-BrfK8uV1.mjs → secp256k1-Cgk0g7W_.mjs} +1 -1
- package/lib/{secp256k1-DV6Qne0v.mjs → secp256k1-ClYndPcJ.mjs} +1 -1
- package/lib/{secp256k1-DXHZqO4S.js → secp256k1-DboBd6yN.js} +1 -1
- package/lib/{secp256k1-sf_P35Lc.js → secp256k1-uAsXZq5d.js} +1 -1
- package/lib/{send-Cyopk79y.mjs → send-BIKE35sd.mjs} +1 -1
- package/lib/{send-BSMIYys9.js → send-BQNTa-AX.js} +1 -1
- package/lib/{signer-DIpGs_9B.mjs → signer-CinqaaXD.mjs} +10 -10
- package/lib/{signer-BZ3rTVnM.js → signer-D-HjSIgq.js} +1 -1
- package/lib/{solana-DS2ZcUpG.js → solana-BUWSwHur.js} +4 -4
- package/lib/{solana-CrMvdvfl.mjs → solana-C2S4i5Ij.mjs} +11 -11
- package/lib/solana-CEz8hIFa.mjs +18 -0
- package/lib/solana-Dohpdke6.js +1 -0
- package/lib/{solanaEmbed.esm-Dj8UZAI5.mjs → solanaEmbed.esm-Dk8f6vW0.mjs} +2 -2
- package/lib/{solanaEmbed.esm-1oBtzdki.js → solanaEmbed.esm-lyjsfmH_.js} +1 -1
- package/lib/src/components/SampleApp/index.d.ts.map +1 -1
- package/lib/src/config/mainnet/rpcs.d.ts.map +1 -1
- package/lib/src/config/mainnet/tokens.d.ts.map +1 -1
- package/lib/src/config/testnet/rpcs.d.ts.map +1 -1
- package/lib/src/config/testnet/tokens.d.ts.map +1 -1
- package/lib/src/config/types.d.ts +2 -1
- package/lib/src/config/types.d.ts.map +1 -1
- package/lib/src/contexts/TokensContext.d.ts.map +1 -1
- package/lib/src/exports/executor.d.ts +1 -1
- package/lib/src/exports/executor.d.ts.map +1 -1
- package/lib/src/icons/ChainIcons.d.ts.map +1 -1
- package/lib/src/icons/Chains/LINEA.d.ts +4 -0
- package/lib/src/icons/Chains/LINEA.d.ts.map +1 -0
- package/lib/src/icons/Chains/POLY.d.ts +2 -2
- package/lib/src/icons/Chains/POLY.d.ts.map +1 -1
- package/lib/src/icons/Chains/SONIC.d.ts +4 -0
- package/lib/src/icons/Chains/SONIC.d.ts.map +1 -0
- package/lib/src/icons/SvgDefs.d.ts.map +1 -1
- package/lib/src/icons/TokenIcons.d.ts.map +1 -1
- package/lib/src/icons/Tokens/POLY.d.ts.map +1 -1
- package/lib/src/sdklegacy/config/MAINNET.d.ts.map +1 -1
- package/lib/src/sdklegacy/config/TESTNET.d.ts.map +1 -1
- package/lib/src/utils/coingecko.d.ts.map +1 -1
- package/lib/src/utils/sdkv2.d.ts +1 -1
- package/lib/src/utils/sdkv2.d.ts.map +1 -1
- package/lib/src/utils/wallet/index.d.ts.map +1 -1
- package/lib/src/views/v2/Bridge/GasSlider/index.d.ts +1 -0
- package/lib/src/views/v2/Bridge/GasSlider/index.d.ts.map +1 -1
- package/lib/src/views/v2/Bridge/Routes/SingleRoute.d.ts.map +1 -1
- package/lib/src/views/v2/Redeem/index.d.ts.map +1 -1
- package/lib/{sui-wX1yJDdB.js → sui-BCJA_cYx.js} +1 -1
- package/lib/{sui-C6UUvjyd.mjs → sui-BJC_JOkP.mjs} +3 -3
- package/lib/{sui-jsmS--zo.mjs → sui-B_AxArCa.mjs} +31 -31
- package/lib/{sui-mpRuHBm9.js → sui-Bdmfxpd2.js} +1 -1
- package/lib/{swapHorizontal-BiNrGmxY.mjs → swapHorizontal-CGVqXEEp.mjs} +1 -1
- package/lib/{swapHorizontal-Bg8dDuE0.js → swapHorizontal-Wp81JSgX.js} +1 -1
- package/lib/{swapHorizontalBold-DeCMOo5R.js → swapHorizontalBold-D70amlcg.js} +1 -1
- package/lib/{swapHorizontalBold-CNvg6Zjx.mjs → swapHorizontalBold-DfykA661.mjs} +1 -1
- package/lib/{swapHorizontalMedium-DClbbhUH.js → swapHorizontalMedium-B92n1mhC.js} +1 -1
- package/lib/{swapHorizontalMedium-TUPMHawi.mjs → swapHorizontalMedium-C39AY5jR.mjs} +1 -1
- package/lib/{swapHorizontalRoundedBold-Cwu5ydTm.js → swapHorizontalRoundedBold-CWEgSWL3.js} +1 -1
- package/lib/{swapHorizontalRoundedBold-BAlHBaC3.mjs → swapHorizontalRoundedBold-DHWf4C2R.mjs} +1 -1
- package/lib/{swapVertical-DDYEDCbu.mjs → swapVertical-BpTJ-r5m.mjs} +1 -1
- package/lib/{swapVertical-cn4noOLO.js → swapVertical-DbS3f5xB.js} +1 -1
- package/lib/{telegram-BGnemuS8.mjs → telegram-CNeTqCXy.mjs} +1 -1
- package/lib/{telegram-sBtcJjCa.js → telegram-DK-OaZof.js} +1 -1
- package/lib/{three-dots-BS-tA53X.mjs → three-dots-BK0Ca5f9.mjs} +1 -1
- package/lib/{three-dots-Ci3M242Y.js → three-dots-CLOJZeqn.js} +1 -1
- package/lib/{tokens-DprimVrG.js → tokens-BVFCrwUI.js} +1 -1
- package/lib/{tokens-ZJvnv3ye.mjs → tokens-BtPkpuCj.mjs} +3 -3
- package/lib/{twitch-kde2nyWc.js → twitch-6sCGBDD_.js} +1 -1
- package/lib/{twitch-DwEOOcQc.mjs → twitch-RQqv2Pha.mjs} +1 -1
- package/lib/{twitterIcon-EX3YrhMm.js → twitterIcon-A2SY7Ljz.js} +1 -1
- package/lib/{twitterIcon-D-aL497o.mjs → twitterIcon-C8wIxAQv.mjs} +1 -1
- package/lib/{units-BVg9f9bp.js → units-BrJ4CYDZ.js} +1 -1
- package/lib/{units-De4Es9C-.mjs → units-CLOrp1Nk.mjs} +24 -24
- package/lib/{unsignedTransaction-3gDumn1W.js → unsignedTransaction-BwT180qj.js} +1 -1
- package/lib/{unsignedTransaction-DmrfJNQf.mjs → unsignedTransaction-DkC9OIgh.mjs} +17 -17
- package/lib/{verify-DPJd26j0.mjs → verify-CXS0qPBz.mjs} +1 -1
- package/lib/{verify-BuD5oE0Y.js → verify-DnxzVYqj.js} +1 -1
- package/lib/{verify-filled-DgfMnLnW.js → verify-filled-BOz9hX3w.js} +1 -1
- package/lib/{verify-filled-BSJMiVyN.mjs → verify-filled-DOsmzDzC.mjs} +1 -1
- package/lib/{w3m-modal-vqqsLuJC.mjs → w3m-modal-Cdafmb0Z.mjs} +2 -2
- package/lib/{w3m-modal-jDCMhVYM.js → w3m-modal-CpYUxfVT.js} +1 -1
- package/lib/{wallet-DlsCAJmu.js → wallet-Bc87h19O.js} +1 -1
- package/lib/{wallet-CiaeeygI.mjs → wallet-D3sDbpnL.mjs} +1 -1
- package/lib/{wallet-placeholder-DhQ6l48d.mjs → wallet-placeholder-CsEk6mnJ.mjs} +1 -1
- package/lib/{wallet-placeholder-CWeGWgUL.js → wallet-placeholder-D60KEgcO.js} +1 -1
- package/lib/{walletconnect-CHFqRNg_.mjs → walletconnect-D44C2RUp.mjs} +1 -1
- package/lib/{walletconnect-YkYiOGcA.js → walletconnect-isfAM6mU.js} +1 -1
- package/lib/{warning-circle-z__jbYAZ.mjs → warning-circle-D6V7bjdk.mjs} +1 -1
- package/lib/{warning-circle-BKWEaDK7.js → warning-circle-DKsp8DlH.js} +1 -1
- package/lib/{web3-IDpqtkwB.js → web3-DgUW0FuE.js} +1 -1
- package/lib/{web3-CevzYKNd.mjs → web3-L0yKkQfC.mjs} +1 -1
- package/lib/{x-DXPEHEVV.mjs → x-CfYfR6N2.mjs} +1 -1
- package/lib/{x-De5ksSKs.js → x-D1ju5P9d.js} +1 -1
- package/package.json +30 -28
- package/lib/address-CSWlEusF.js +0 -15
- package/lib/create-CRa9FZnZ.mjs +0 -18
- package/lib/solana-BHr-TCKL.js +0 -1
- package/lib/solana-Dhrl0nvx.mjs +0 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const de=require("./index-C_DPPfkk.js"),V=require("./address-CSWlEusF.js"),_o=require("./index-w1W7oltR.js"),kr=require("./browser-ponyfill-DqqaJGv_.js");function Tn(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function Eo(e,t){t||(t=e.reduce((i,o)=>i+o.length,0));const r=Tn(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return r}const qr={...de.identityBase,...de.base2,...de.base8,...de.base10,...de.base16,...de.base32,...de.base36,...de.base58,...de.base64,...de.base256emoji};function Cn(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}const Wr=Cn("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),Kt=Cn("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);const t=Tn(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),In={utf8:Wr,"utf-8":Wr,hex:qr.base16,latin1:Kt,ascii:Kt,binary:Kt,...qr};function xo(e,t="utf8"){const r=In[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}function Fo(e,t="utf8"){const r=In[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);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)}var Vr=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},Ao=function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e}(),So=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=V.dist.process.platform}return e}(),Bo=function(){function e(t,r,n,i){this.name=t,this.version=r,this.os=n,this.bot=i,this.type="bot-device"}return e}(),Oo=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}(),To=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}(),Co=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,Io=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Jr=3,Ro=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",Co]],Kr=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Lo(e){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new To:typeof navigator<"u"?jo(navigator.userAgent):No()}function Po(e){return e!==""&&Ro.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var o=i.exec(e);return!!o&&[n,o]},!1)}function jo(e){var t=Po(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new Oo;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?i.length<Jr&&(i=Vr(Vr([],i,!0),zo(Jr-i.length),!0)):i=[];var o=i.join("."),a=Uo(e),l=Io.exec(e);return l&&l[1]?new Bo(r,o,a,l[1]):new Ao(r,o,a)}function Uo(e){for(var t=0,r=Kr.length;t<r;t++){var n=Kr[t],i=n[0],o=n[1],a=o.exec(e);if(a)return i}return null}function No(){var e=typeof V.dist.process<"u"&&V.dist.process.version;return e?new So(V.dist.process.version.slice(1)):null}function zo(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}const Do={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"}};class Mo{}const $o=/"(?:_|\\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*:/,Ho=/"(?: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*$/;function ko(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){qo(e);return}return t}function qo(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Wo(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Go.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if($o.test(e)||Ho.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,ko)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}function ze(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function Rn(e,t){let r;const n=()=>{if(r)return r;const i=indexedDB.open(e);return i.onupgradeneeded=()=>i.result.createObjectStore(t),r=ze(i),r.then(o=>{o.onclose=()=>r=void 0},()=>{}),r};return(i,o)=>n().then(a=>o(a.transaction(t,i).objectStore(t)))}let Zt;function at(){return Zt||(Zt=Rn("keyval-store","keyval")),Zt}function Vo(e,t=at()){return t("readonly",r=>ze(r.get(e)))}function Jo(e,t,r=at()){return r("readwrite",n=>(n.put(t,e),ze(n.transaction)))}function Ko(e,t=at()){return t("readwrite",r=>(r.delete(e),ze(r.transaction)))}function Zo(e=at()){return e("readwrite",t=>(t.clear(),ze(t.transaction)))}function Yo(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},ze(e.transaction)}function Xo(e=at()){return e("readonly",t=>{if(t.getAllKeys)return ze(t.getAllKeys());const r=[];return Yo(t,n=>r.push(n.key)).then(()=>r)})}const Qo=e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString()+"n":r),es=e=>{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');return JSON.parse(r,(n,i)=>typeof i=="string"&&i.match(/^\d+n$/)?BigInt(i.substring(0,i.length-1)):i)};function br(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return es(e)}catch{return e}}function qe(e){return typeof e=="string"?e:Qo(e)||""}function ts(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}var rs=ns;function ns(e,t,r){var n=r&&r.stringify||ts,i=1;if(typeof e=="object"&&e!==null){var o=t.length+i;if(o===1)return e;var a=new Array(o);a[0]=n(e);for(var l=1;l<o;l++)a[l]=n(t[l]);return a.join(" ")}if(typeof e!="string")return e;var u=t.length;if(u===0)return e;for(var h="",f=1-i,p=-1,w=e&&e.length||0,g=0;g<w;){if(e.charCodeAt(g)===37&&g+1<w){switch(p=p>-1?p:0,e.charCodeAt(g+1)){case 100:case 102:if(f>=u||t[f]==null)break;p<g&&(h+=e.slice(p,g)),h+=Number(t[f]),p=g+2,g++;break;case 105:if(f>=u||t[f]==null)break;p<g&&(h+=e.slice(p,g)),h+=Math.floor(Number(t[f])),p=g+2,g++;break;case 79:case 111:case 106:if(f>=u||t[f]===void 0)break;p<g&&(h+=e.slice(p,g));var b=typeof t[f];if(b==="string"){h+="'"+t[f]+"'",p=g+2,g++;break}if(b==="function"){h+=t[f].name||"<anonymous>",p=g+2,g++;break}h+=n(t[f]),p=g+2,g++;break;case 115:if(f>=u)break;p<g&&(h+=e.slice(p,g)),h+=String(t[f]),p=g+2,g++;break;case 37:p<g&&(h+=e.slice(p,g)),h+="%",p=g+2,g++,f--;break}++f}++g}return p===-1?e:(p<w&&(h+=e.slice(p)),h)}const Zr=rs;var ke=we;const it=ds().console||{},is={mapHttpRequest:At,mapHttpResponse:At,wrapRequestSerializer:Yt,wrapResponseSerializer:Yt,wrapErrorSerializer:Yt,req:At,res:At,err:cs};function os(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function we(e){e=e||{},e.browser=e.browser||{};const t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");const r=e.browser.write||it;e.browser.write&&(e.browser.asObject=!0);const n=e.serializers||{},i=os(e.browser.serialize,n);let o=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(o=!1);const a=["error","fatal","warn","info","debug","trace"];typeof r=="function"&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),e.enabled===!1&&(e.level="silent");const l=e.level||"info",u=Object.create(r);u.log||(u.log=ot),Object.defineProperty(u,"levelVal",{get:f}),Object.defineProperty(u,"level",{get:p,set:w});const h={transmit:t,serialize:i,asObject:e.browser.asObject,levels:a,timestamp:fs(e)};u.levels=we.levels,u.level=l,u.setMaxListeners=u.getMaxListeners=u.emit=u.addListener=u.on=u.prependListener=u.once=u.prependOnceListener=u.removeListener=u.removeAllListeners=u.listeners=u.listenerCount=u.eventNames=u.write=u.flush=ot,u.serializers=n,u._serialize=i,u._stdErrSerialize=o,u.child=g,t&&(u._logEvent=sr());function f(){return this.level==="silent"?1/0:this.levels.values[this.level]}function p(){return this._level}function w(b){if(b!=="silent"&&!this.levels.values[b])throw Error("unknown level "+b);this._level=b,$e(h,u,"error","log"),$e(h,u,"fatal","error"),$e(h,u,"warn","error"),$e(h,u,"info","log"),$e(h,u,"debug","log"),$e(h,u,"trace","log")}function g(b,_){if(!b)throw new Error("missing bindings for child Pino");_=_||{},i&&b.serializers&&(_.serializers=b.serializers);const R=_.serializers;if(i&&R){var P=Object.assign({},n,R),I=e.browser.serialize===!0?Object.keys(P):i;delete b.serializers,jt([b],I,P,this._stdErrSerialize)}function m(O){this._childLevel=(O._childLevel|0)+1,this.error=He(O,b,"error"),this.fatal=He(O,b,"fatal"),this.warn=He(O,b,"warn"),this.info=He(O,b,"info"),this.debug=He(O,b,"debug"),this.trace=He(O,b,"trace"),P&&(this.serializers=P,this._serialize=I),t&&(this._logEvent=sr([].concat(O._logEvent.bindings,b)))}return m.prototype=this,new m(this)}return u}we.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};we.stdSerializers=is;we.stdTimeFunctions=Object.assign({},{nullTime:Ln,epochTime:Pn,unixTime:ls,isoTime:hs});function $e(e,t,r,n){const i=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?ot:i[r]?i[r]:it[r]||it[n]||ot,ss(e,t,r)}function ss(e,t,r){!e.transmit&&t[r]===ot||(t[r]=function(n){return function(){const o=e.timestamp(),a=new Array(arguments.length),l=Object.getPrototypeOf&&Object.getPrototypeOf(this)===it?it:this;for(var u=0;u<a.length;u++)a[u]=arguments[u];if(e.serialize&&!e.asObject&&jt(a,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?n.call(l,as(this,r,a,o)):n.apply(l,a),e.transmit){const h=e.transmit.level||t.level,f=we.levels.values[h],p=we.levels.values[r];if(p<f)return;us(this,{ts:o,methodLevel:r,methodValue:p,transmitValue:we.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},a)}}}(t[r]))}function as(e,t,r,n){e._serialize&&jt(r,e._serialize,e.serializers,e._stdErrSerialize);const i=r.slice();let o=i[0];const a={};n&&(a.time=n),a.level=we.levels.values[t];let l=(e._childLevel|0)+1;if(l<1&&(l=1),o!==null&&typeof o=="object"){for(;l--&&typeof i[0]=="object";)Object.assign(a,i.shift());o=i.length?Zr(i.shift(),i):void 0}else typeof o=="string"&&(o=Zr(i.shift(),i));return o!==void 0&&(a.msg=o),a}function jt(e,t,r,n){for(const i in e)if(n&&e[i]instanceof Error)e[i]=we.stdSerializers.err(e[i]);else if(typeof e[i]=="object"&&!Array.isArray(e[i]))for(const o in e[i])t&&t.indexOf(o)>-1&&o in r&&(e[i][o]=r[o](e[i][o]))}function He(e,t,r){return function(){const n=new Array(1+arguments.length);n[0]=t;for(var i=1;i<n.length;i++)n[i]=arguments[i-1];return e[r].apply(this,n)}}function us(e,t,r){const n=t.send,i=t.ts,o=t.methodLevel,a=t.methodValue,l=t.val,u=e._logEvent.bindings;jt(r,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=r.filter(function(h){return u.indexOf(h)===-1}),e._logEvent.level.label=o,e._logEvent.level.value=a,n(o,e._logEvent,l),e._logEvent=sr(u)}function sr(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function cs(e){const t={type:e.constructor.name,msg:e.message,stack:e.stack};for(const r in e)t[r]===void 0&&(t[r]=e[r]);return t}function fs(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?Ln:Pn}function At(){return{}}function Yt(e){return e}function ot(){}function Ln(){return!1}function Pn(){return Date.now()}function ls(){return Math.round(Date.now()/1e3)}function hs(){return new Date(Date.now()).toISOString()}function ds(){function e(t){return typeof t<"u"&&t}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return e(self)||e(window)||e(this)||{}}}const gr=V.getDefaultExportFromCjs(ke),ps={level:"info"},ut="custom_context",yr=1e3*1024;let bs=class{constructor(t){this.nodeValue=t,this.sizeInBytes=new TextEncoder().encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}},Yr=class{constructor(t){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=t,this.sizeInBytes=0}append(t){const r=new bs(t);if(r.size>this.maxSizeInBytes)throw new Error(`[LinkedList] Value too big to insert into list: ${t} with size ${r.size}`);for(;this.size+r.size>this.maxSizeInBytes;)this.shift();this.head?(this.tail&&(this.tail.next=r),this.tail=r):(this.head=r,this.tail=r),this.lengthInNodes++,this.sizeInBytes+=r.size}shift(){if(!this.head)return;const t=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=t.size}toArray(){const t=[];let r=this.head;for(;r!==null;)t.push(r.value),r=r.next;return t}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let t=this.head;return{next:()=>{if(!t)return{done:!0,value:null};const r=t.value;return t=t.next,{done:!1,value:r}}}}},jn=class{constructor(t,r=yr){this.level=t??"error",this.levelValue=ke.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=r,this.logs=new Yr(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(t,r){r===ke.levels.values.error?console.error(t):r===ke.levels.values.warn?console.warn(t):r===ke.levels.values.debug?console.debug(t):r===ke.levels.values.trace?console.trace(t):console.log(t)}appendToLogs(t){this.logs.append(qe({timestamp:new Date().toISOString(),log:t}));const r=typeof t=="string"?JSON.parse(t).level:t.level;r>=this.levelValue&&this.forwardToConsole(t,r)}getLogs(){return this.logs}clearLogs(){this.logs=new Yr(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(t){const r=this.getLogArray();return r.push(qe({extraMetadata:t})),new Blob(r,{type:"application/json"})}};class gs{constructor(t,r=yr){this.baseChunkLogger=new jn(t,r)}write(t){this.baseChunkLogger.appendToLogs(t)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(t){return this.baseChunkLogger.logsToBlob(t)}downloadLogsBlobInBrowser(t){const r=URL.createObjectURL(this.logsToBlob(t)),n=document.createElement("a");n.href=r,n.download=`walletconnect-logs-${new Date().toISOString()}.txt`,document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r)}}class ys{constructor(t,r=yr){this.baseChunkLogger=new jn(t,r)}write(t){this.baseChunkLogger.appendToLogs(t)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(t){return this.baseChunkLogger.logsToBlob(t)}}var ws=Object.defineProperty,ms=Object.defineProperties,vs=Object.getOwnPropertyDescriptors,Xr=Object.getOwnPropertySymbols,_s=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,Qr=(e,t,r)=>t in e?ws(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ct=(e,t)=>{for(var r in t||(t={}))_s.call(t,r)&&Qr(e,r,t[r]);if(Xr)for(var r of Xr(t))Es.call(t,r)&&Qr(e,r,t[r]);return e},It=(e,t)=>ms(e,vs(t));function xs(e){return It(Ct({},e),{level:(e==null?void 0:e.level)||ps.level})}function Fs(e,t=ut){return e[t]||""}function As(e,t,r=ut){return e[r]=t,e}function Un(e,t=ut){let r="";return typeof e.bindings>"u"?r=Fs(e,t):r=e.bindings().context||"",r}function Ss(e,t,r=ut){const n=Un(e,r);return n.trim()?`${n}/${t}`:t}function Bs(e,t,r=ut){const n=Ss(e,t,r),i=e.child({context:n});return As(i,n,r)}function Os(e){var t,r;const n=new gs((t=e.opts)==null?void 0:t.level,e.maxSizeInBytes);return{logger:gr(It(Ct({},e.opts),{level:"trace",browser:It(Ct({},(r=e.opts)==null?void 0:r.browser),{write:i=>n.write(i)})})),chunkLoggerController:n}}function Ts(e){var t;const r=new ys((t=e.opts)==null?void 0:t.level,e.maxSizeInBytes);return{logger:gr(It(Ct({},e.opts),{level:"trace"}),r),chunkLoggerController:r}}function Cs(e){return typeof e.loggerOverride<"u"&&typeof e.loggerOverride!="string"?{logger:e.loggerOverride,chunkLoggerController:null}:typeof window<"u"?Os(e):Ts(e)}function Is(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Nn(e,...t){if(!Is(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function en(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Rs(e,t){Nn(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}const Ge=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Xt=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);function Ls(e){if(typeof e!="string")throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array(new TextEncoder().encode(e))}function zn(e){return typeof e=="string"&&(e=Ls(e)),Nn(e),e}class Ps{clone(){return this._cloneInto()}}function js(e){const t=n=>e().update(zn(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function Dn(e=32){if(Ge&&typeof Ge.getRandomValues=="function")return Ge.getRandomValues(new Uint8Array(e));if(Ge&&typeof Ge.randomBytes=="function")return Ge.randomBytes(e);throw new Error("crypto.getRandomValues must be defined")}function Us(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const i=BigInt(32),o=BigInt(4294967295),a=Number(r>>i&o),l=Number(r&o),u=n?4:0,h=n?0:4;e.setUint32(t+u,a,n),e.setUint32(t+h,l,n)}class Ns extends Ps{constructor(t,r,n,i){super(),this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=Xt(this.buffer)}update(t){en(this);const{view:r,buffer:n,blockLen:i}=this;t=zn(t);const o=t.length;for(let a=0;a<o;){const l=Math.min(i-this.pos,o-a);if(l===i){const u=Xt(t);for(;i<=o-a;a+=i)this.process(u,a);continue}n.set(t.subarray(a,a+l),this.pos),this.pos+=l,a+=l,this.pos===i&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){en(this),Rs(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:i,isLE:o}=this;let{pos:a}=this;r[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>i-a&&(this.process(n,0),a=0);for(let p=a;p<i;p++)r[p]=0;Us(n,i-8,BigInt(this.length*8),o),this.process(n,0);const l=Xt(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const h=u/4,f=this.get();if(h>f.length)throw new Error("_sha2: outputLen bigger than state");for(let p=0;p<h;p++)l.setUint32(4*p,f[p],o)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:n,length:i,finished:o,destroyed:a,pos:l}=this;return t.length=i,t.pos=l,t.finished=o,t.destroyed=a,i%r&&t.buffer.set(n),t}}const St=BigInt(2**32-1),ar=BigInt(32);function Mn(e,t=!1){return t?{h:Number(e&St),l:Number(e>>ar&St)}:{h:Number(e>>ar&St)|0,l:Number(e&St)|0}}function zs(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){const{h:o,l:a}=Mn(e[i],t);[r[i],n[i]]=[o,a]}return[r,n]}const Ds=(e,t)=>BigInt(e>>>0)<<ar|BigInt(t>>>0),Ms=(e,t,r)=>e>>>r,$s=(e,t,r)=>e<<32-r|t>>>r,Hs=(e,t,r)=>e>>>r|t<<32-r,Gs=(e,t,r)=>e<<32-r|t>>>r,ks=(e,t,r)=>e<<64-r|t>>>r-32,qs=(e,t,r)=>e>>>r-32|t<<64-r,Ws=(e,t)=>t,Vs=(e,t)=>e,Js=(e,t,r)=>e<<r|t>>>32-r,Ks=(e,t,r)=>t<<r|e>>>32-r,Zs=(e,t,r)=>t<<r-32|e>>>64-r,Ys=(e,t,r)=>e<<r-32|t>>>64-r;function Xs(e,t,r,n){const i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:i|0}}const Qs=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),ea=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,ta=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),ra=(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0,na=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0),ia=(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0,B={fromBig:Mn,split:zs,toBig:Ds,shrSH:Ms,shrSL:$s,rotrSH:Hs,rotrSL:Gs,rotrBH:ks,rotrBL:qs,rotr32H:Ws,rotr32L:Vs,rotlSH:Js,rotlSL:Ks,rotlBH:Zs,rotlBL:Ys,add:Xs,add3L:Qs,add3H:ea,add4L:ta,add4H:ra,add5H:ia,add5L:na},[oa,sa]=B.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))),Te=new Uint32Array(80),Ce=new Uint32Array(80);class aa extends Ns{constructor(){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}get(){const{Ah:t,Al:r,Bh:n,Bl:i,Ch:o,Cl:a,Dh:l,Dl:u,Eh:h,El:f,Fh:p,Fl:w,Gh:g,Gl:b,Hh:_,Hl:R}=this;return[t,r,n,i,o,a,l,u,h,f,p,w,g,b,_,R]}set(t,r,n,i,o,a,l,u,h,f,p,w,g,b,_,R){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=i|0,this.Ch=o|0,this.Cl=a|0,this.Dh=l|0,this.Dl=u|0,this.Eh=h|0,this.El=f|0,this.Fh=p|0,this.Fl=w|0,this.Gh=g|0,this.Gl=b|0,this.Hh=_|0,this.Hl=R|0}process(t,r){for(let m=0;m<16;m++,r+=4)Te[m]=t.getUint32(r),Ce[m]=t.getUint32(r+=4);for(let m=16;m<80;m++){const O=Te[m-15]|0,N=Ce[m-15]|0,H=B.rotrSH(O,N,1)^B.rotrSH(O,N,8)^B.shrSH(O,N,7),k=B.rotrSL(O,N,1)^B.rotrSL(O,N,8)^B.shrSL(O,N,7),z=Te[m-2]|0,q=Ce[m-2]|0,pe=B.rotrSH(z,q,19)^B.rotrBH(z,q,61)^B.shrSH(z,q,6),be=B.rotrSL(z,q,19)^B.rotrBL(z,q,61)^B.shrSL(z,q,6),ue=B.add4L(k,be,Ce[m-7],Ce[m-16]),Ie=B.add4H(ue,H,pe,Te[m-7],Te[m-16]);Te[m]=Ie|0,Ce[m]=ue|0}let{Ah:n,Al:i,Bh:o,Bl:a,Ch:l,Cl:u,Dh:h,Dl:f,Eh:p,El:w,Fh:g,Fl:b,Gh:_,Gl:R,Hh:P,Hl:I}=this;for(let m=0;m<80;m++){const O=B.rotrSH(p,w,14)^B.rotrSH(p,w,18)^B.rotrBH(p,w,41),N=B.rotrSL(p,w,14)^B.rotrSL(p,w,18)^B.rotrBL(p,w,41),H=p&g^~p&_,k=w&b^~w&R,z=B.add5L(I,N,k,sa[m],Ce[m]),q=B.add5H(z,P,O,H,oa[m],Te[m]),pe=z|0,be=B.rotrSH(n,i,28)^B.rotrBH(n,i,34)^B.rotrBH(n,i,39),ue=B.rotrSL(n,i,28)^B.rotrBL(n,i,34)^B.rotrBL(n,i,39),Ie=n&o^n&l^o&l,Ve=i&a^i&u^a&u;P=_|0,I=R|0,_=g|0,R=b|0,g=p|0,b=w|0,{h:p,l:w}=B.add(h|0,f|0,q|0,pe|0),h=l|0,f=u|0,l=o|0,u=a|0,o=n|0,a=i|0;const x=B.add3L(pe,ue,Ve);n=B.add3H(x,q,be,Ie),i=x|0}({h:n,l:i}=B.add(this.Ah|0,this.Al|0,n|0,i|0)),{h:o,l:a}=B.add(this.Bh|0,this.Bl|0,o|0,a|0),{h:l,l:u}=B.add(this.Ch|0,this.Cl|0,l|0,u|0),{h,l:f}=B.add(this.Dh|0,this.Dl|0,h|0,f|0),{h:p,l:w}=B.add(this.Eh|0,this.El|0,p|0,w|0),{h:g,l:b}=B.add(this.Fh|0,this.Fl|0,g|0,b|0),{h:_,l:R}=B.add(this.Gh|0,this.Gl|0,_|0,R|0),{h:P,l:I}=B.add(this.Hh|0,this.Hl|0,P|0,I|0),this.set(n,i,o,a,l,u,h,f,p,w,g,b,_,R,P,I)}roundClean(){Te.fill(0),Ce.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const ua=js(()=>new aa);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const wr=BigInt(0),$n=BigInt(1),ca=BigInt(2);function mr(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function vr(e){if(!mr(e))throw new Error("Uint8Array expected")}function Qt(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}const fa=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function _r(e){vr(e);let t="";for(let r=0;r<e.length;r++)t+=fa[e[r]];return t}function Hn(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?wr:BigInt("0x"+e)}const _e={_0:48,_9:57,A:65,F:70,a:97,f:102};function tn(e){if(e>=_e._0&&e<=_e._9)return e-_e._0;if(e>=_e.A&&e<=_e.F)return e-(_e.A-10);if(e>=_e.a&&e<=_e.f)return e-(_e.a-10)}function Gn(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let i=0,o=0;i<r;i++,o+=2){const a=tn(e.charCodeAt(o)),l=tn(e.charCodeAt(o+1));if(a===void 0||l===void 0){const u=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+u+'" at index '+o)}n[i]=a*16+l}return n}function la(e){return Hn(_r(e))}function Tt(e){return vr(e),Hn(_r(Uint8Array.from(e).reverse()))}function kn(e,t){return Gn(e.toString(16).padStart(t*2,"0"))}function ur(e,t){return kn(e,t).reverse()}function Ee(e,t,r){let n;if(typeof t=="string")try{n=Gn(t)}catch(o){throw new Error(e+" must be hex string or Uint8Array, cause: "+o)}else if(mr(t))n=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const i=n.length;if(typeof r=="number"&&i!==r)throw new Error(e+" of length "+r+" expected, got "+i);return n}function rn(...e){let t=0;for(let n=0;n<e.length;n++){const i=e[n];vr(i),t+=i.length}const r=new Uint8Array(t);for(let n=0,i=0;n<e.length;n++){const o=e[n];r.set(o,i),i+=o.length}return r}const er=e=>typeof e=="bigint"&&wr<=e;function ha(e,t,r){return er(e)&&er(t)&&er(r)&&t<=e&&e<r}function rt(e,t,r,n){if(!ha(t,r,n))throw new Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}function da(e){let t;for(t=0;e>wr;e>>=$n,t+=1);return t}const pa=e=>(ca<<BigInt(e-1))-$n,ba={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"||mr(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)};function Er(e,t,r={}){const n=(i,o,a)=>{const l=ba[o];if(typeof l!="function")throw new Error("invalid validator function");const u=e[i];if(!(a&&u===void 0)&&!l(u,e))throw new Error("param "+String(i)+" is invalid. Expected "+o+", got "+u)};for(const[i,o]of Object.entries(t))n(i,o,!1);for(const[i,o]of Object.entries(r))n(i,o,!0);return e}function nn(e){const t=new WeakMap;return(r,...n)=>{const i=t.get(r);if(i!==void 0)return i;const o=e(r,...n);return t.set(r,o),o}}const Y=BigInt(0),W=BigInt(1),Ne=BigInt(2),ga=BigInt(3),cr=BigInt(4),on=BigInt(5),sn=BigInt(8);function K(e,t){const r=e%t;return r>=Y?r:t+r}function ya(e,t,r){if(t<Y)throw new Error("invalid exponent, negatives unsupported");if(r<=Y)throw new Error("invalid modulus");if(r===W)return Y;let n=W;for(;t>Y;)t&W&&(n=n*e%r),e=e*e%r,t>>=W;return n}function ye(e,t,r){let n=e;for(;t-- >Y;)n*=n,n%=r;return n}function an(e,t){if(e===Y)throw new Error("invert: expected non-zero number");if(t<=Y)throw new Error("invert: expected positive modulus, got "+t);let r=K(e,t),n=t,i=Y,o=W;for(;r!==Y;){const a=n/r,l=n%r,u=i-o*a;n=r,r=l,i=o,o=u}if(n!==W)throw new Error("invert: does not exist");return K(i,t)}function wa(e){const t=(e-W)/Ne;let r,n,i;for(r=e-W,n=0;r%Ne===Y;r/=Ne,n++);for(i=Ne;i<e&&ya(i,t,e)!==e-W;i++)if(i>1e3)throw new Error("Cannot find square root: likely non-prime P");if(n===1){const a=(e+W)/cr;return function(l,u){const h=l.pow(u,a);if(!l.eql(l.sqr(h),u))throw new Error("Cannot find square root");return h}}const o=(r+W)/Ne;return function(a,l){if(a.pow(l,t)===a.neg(a.ONE))throw new Error("Cannot find square root");let u=n,h=a.pow(a.mul(a.ONE,i),r),f=a.pow(l,o),p=a.pow(l,r);for(;!a.eql(p,a.ONE);){if(a.eql(p,a.ZERO))return a.ZERO;let w=1;for(let b=a.sqr(p);w<u&&!a.eql(b,a.ONE);w++)b=a.sqr(b);const g=a.pow(h,W<<BigInt(u-w-1));h=a.sqr(g),f=a.mul(f,g),p=a.mul(p,h),u=w}return f}}function ma(e){if(e%cr===ga){const t=(e+W)/cr;return function(r,n){const i=r.pow(n,t);if(!r.eql(r.sqr(i),n))throw new Error("Cannot find square root");return i}}if(e%sn===on){const t=(e-on)/sn;return function(r,n){const i=r.mul(n,Ne),o=r.pow(i,t),a=r.mul(n,o),l=r.mul(r.mul(a,Ne),o),u=r.mul(a,r.sub(l,r.ONE));if(!r.eql(r.sqr(u),n))throw new Error("Cannot find square root");return u}}return wa(e)}const va=(e,t)=>(K(e,t)&W)===W,_a=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Ea(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=_a.reduce((n,i)=>(n[i]="function",n),t);return Er(e,r)}function xa(e,t,r){if(r<Y)throw new Error("invalid exponent, negatives unsupported");if(r===Y)return e.ONE;if(r===W)return t;let n=e.ONE,i=t;for(;r>Y;)r&W&&(n=e.mul(n,i)),i=e.sqr(i),r>>=W;return n}function Fa(e,t){const r=new Array(t.length),n=t.reduce((o,a,l)=>e.is0(a)?o:(r[l]=o,e.mul(o,a)),e.ONE),i=e.inv(n);return t.reduceRight((o,a,l)=>e.is0(a)?o:(r[l]=e.mul(o,r[l]),e.mul(o,a)),i),r}function qn(e,t){const r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function Wn(e,t,r=!1,n={}){if(e<=Y)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:i,nByteLength:o}=qn(e,t);if(o>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let a;const l=Object.freeze({ORDER:e,isLE:r,BITS:i,BYTES:o,MASK:pa(i),ZERO:Y,ONE:W,create:u=>K(u,e),isValid:u=>{if(typeof u!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof u);return Y<=u&&u<e},is0:u=>u===Y,isOdd:u=>(u&W)===W,neg:u=>K(-u,e),eql:(u,h)=>u===h,sqr:u=>K(u*u,e),add:(u,h)=>K(u+h,e),sub:(u,h)=>K(u-h,e),mul:(u,h)=>K(u*h,e),pow:(u,h)=>xa(l,u,h),div:(u,h)=>K(u*an(h,e),e),sqrN:u=>u*u,addN:(u,h)=>u+h,subN:(u,h)=>u-h,mulN:(u,h)=>u*h,inv:u=>an(u,e),sqrt:n.sqrt||(u=>(a||(a=ma(e)),a(l,u))),invertBatch:u=>Fa(l,u),cmov:(u,h,f)=>f?h:u,toBytes:u=>r?ur(u,o):kn(u,o),fromBytes:u=>{if(u.length!==o)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+u.length);return r?Tt(u):la(u)}});return Object.freeze(l)}const un=BigInt(0),Bt=BigInt(1);function tr(e,t){const r=t.negate();return e?r:t}function Vn(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function rr(e,t){Vn(e,t);const r=Math.ceil(t/e)+1,n=2**(e-1);return{windows:r,windowSize:n}}function Aa(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((r,n)=>{if(!(r instanceof t))throw new Error("invalid point at index "+n)})}function Sa(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((r,n)=>{if(!t.isValid(r))throw new Error("invalid scalar at index "+n)})}const nr=new WeakMap,Jn=new WeakMap;function ir(e){return Jn.get(e)||1}function Ba(e,t){return{constTimeNegate:tr,hasPrecomputes(r){return ir(r)!==1},unsafeLadder(r,n,i=e.ZERO){let o=r;for(;n>un;)n&Bt&&(i=i.add(o)),o=o.double(),n>>=Bt;return i},precomputeWindow(r,n){const{windows:i,windowSize:o}=rr(n,t),a=[];let l=r,u=l;for(let h=0;h<i;h++){u=l,a.push(u);for(let f=1;f<o;f++)u=u.add(l),a.push(u);l=u.double()}return a},wNAF(r,n,i){const{windows:o,windowSize:a}=rr(r,t);let l=e.ZERO,u=e.BASE;const h=BigInt(2**r-1),f=2**r,p=BigInt(r);for(let w=0;w<o;w++){const g=w*a;let b=Number(i&h);i>>=p,b>a&&(b-=f,i+=Bt);const _=g,R=g+Math.abs(b)-1,P=w%2!==0,I=b<0;b===0?u=u.add(tr(P,n[_])):l=l.add(tr(I,n[R]))}return{p:l,f:u}},wNAFUnsafe(r,n,i,o=e.ZERO){const{windows:a,windowSize:l}=rr(r,t),u=BigInt(2**r-1),h=2**r,f=BigInt(r);for(let p=0;p<a;p++){const w=p*l;if(i===un)break;let g=Number(i&u);if(i>>=f,g>l&&(g-=h,i+=Bt),g===0)continue;let b=n[w+Math.abs(g)-1];g<0&&(b=b.negate()),o=o.add(b)}return o},getPrecomputes(r,n,i){let o=nr.get(n);return o||(o=this.precomputeWindow(n,r),r!==1&&nr.set(n,i(o))),o},wNAFCached(r,n,i){const o=ir(r);return this.wNAF(o,this.getPrecomputes(o,r,i),n)},wNAFCachedUnsafe(r,n,i,o){const a=ir(r);return a===1?this.unsafeLadder(r,n,o):this.wNAFUnsafe(a,this.getPrecomputes(a,r,i),n,o)},setWindowSize(r,n){Vn(n,t),Jn.set(r,n),nr.delete(r)}}}function Oa(e,t,r,n){if(Aa(r,e),Sa(n,t),r.length!==n.length)throw new Error("arrays of points and scalars must have equal length");const i=e.ZERO,o=da(BigInt(r.length)),a=o>12?o-3:o>4?o-2:o?2:1,l=(1<<a)-1,u=new Array(l+1).fill(i),h=Math.floor((t.BITS-1)/a)*a;let f=i;for(let p=h;p>=0;p-=a){u.fill(i);for(let g=0;g<n.length;g++){const b=n[g],_=Number(b>>BigInt(p)&BigInt(l));u[_]=u[_].add(r[g])}let w=i;for(let g=u.length-1,b=i;g>0;g--)b=b.add(u[g]),w=w.add(b);if(f=f.add(w),p!==0)for(let g=0;g<a;g++)f=f.double()}return f}function Ta(e){return Ea(e.Fp),Er(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...qn(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}const he=BigInt(0),ne=BigInt(1),Ot=BigInt(2),Ca=BigInt(8),Ia={zip215:!0};function Ra(e){const t=Ta(e);return Er(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...t})}function La(e){const t=Ra(e),{Fp:r,n,prehash:i,hash:o,randomBytes:a,nByteLength:l,h:u}=t,h=Ot<<BigInt(l*8)-ne,f=r.create,p=Wn(t.n,t.nBitLength),w=t.uvRatio||((x,y)=>{try{return{isValid:!0,value:r.sqrt(x*r.inv(y))}}catch{return{isValid:!1,value:he}}}),g=t.adjustScalarBytes||(x=>x),b=t.domain||((x,y,E)=>{if(Qt("phflag",E),y.length||E)throw new Error("Contexts/pre-hash are not supported");return x});function _(x,y){rt("coordinate "+x,y,he,h)}function R(x){if(!(x instanceof m))throw new Error("ExtendedPoint expected")}const P=nn((x,y)=>{const{ex:E,ey:F,ez:T}=x,C=x.is0();y==null&&(y=C?Ca:r.inv(T));const L=f(E*y),D=f(F*y),j=f(T*y);if(C)return{x:he,y:ne};if(j!==ne)throw new Error("invZ was invalid");return{x:L,y:D}}),I=nn(x=>{const{a:y,d:E}=t;if(x.is0())throw new Error("bad point: ZERO");const{ex:F,ey:T,ez:C,et:L}=x,D=f(F*F),j=f(T*T),M=f(C*C),A=f(M*M),X=f(D*y),ce=f(M*f(X+j)),J=f(A+f(E*f(D*j)));if(ce!==J)throw new Error("bad point: equation left != right (1)");const re=f(F*T),fe=f(C*L);if(re!==fe)throw new Error("bad point: equation left != right (2)");return!0});class m{constructor(y,E,F,T){this.ex=y,this.ey=E,this.ez=F,this.et=T,_("x",y),_("y",E),_("z",F),_("t",T),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(y){if(y instanceof m)throw new Error("extended point not allowed");const{x:E,y:F}=y||{};return _("x",E),_("y",F),new m(E,F,ne,f(E*F))}static normalizeZ(y){const E=r.invertBatch(y.map(F=>F.ez));return y.map((F,T)=>F.toAffine(E[T])).map(m.fromAffine)}static msm(y,E){return Oa(m,p,y,E)}_setWindowSize(y){H.setWindowSize(this,y)}assertValidity(){I(this)}equals(y){R(y);const{ex:E,ey:F,ez:T}=this,{ex:C,ey:L,ez:D}=y,j=f(E*D),M=f(C*T),A=f(F*D),X=f(L*T);return j===M&&A===X}is0(){return this.equals(m.ZERO)}negate(){return new m(f(-this.ex),this.ey,this.ez,f(-this.et))}double(){const{a:y}=t,{ex:E,ey:F,ez:T}=this,C=f(E*E),L=f(F*F),D=f(Ot*f(T*T)),j=f(y*C),M=E+F,A=f(f(M*M)-C-L),X=j+L,ce=X-D,J=j-L,re=f(A*ce),fe=f(X*J),ge=f(A*J),Ae=f(ce*X);return new m(re,fe,Ae,ge)}add(y){R(y);const{a:E,d:F}=t,{ex:T,ey:C,ez:L,et:D}=this,{ex:j,ey:M,ez:A,et:X}=y;if(E===BigInt(-1)){const ft=f((C-T)*(M+j)),lt=f((C+T)*(M-j)),Ze=f(lt-ft);if(Ze===he)return this.double();const ht=f(L*Ot*X),dt=f(D*Ot*A),pt=dt+ht,bt=lt+ft,gt=dt-ht,De=f(pt*Ze),Ye=f(bt*gt),yt=f(pt*gt),oe=f(Ze*bt);return new m(De,Ye,oe,yt)}const ce=f(T*j),J=f(C*M),re=f(D*F*X),fe=f(L*A),ge=f((T+C)*(j+M)-ce-J),Ae=fe-re,Je=fe+re,Ke=f(J-E*ce),Dt=f(ge*Ae),Mt=f(Je*Ke),$t=f(ge*Ke),Ht=f(Ae*Je);return new m(Dt,Mt,Ht,$t)}subtract(y){return this.add(y.negate())}wNAF(y){return H.wNAFCached(this,y,m.normalizeZ)}multiply(y){const E=y;rt("scalar",E,ne,n);const{p:F,f:T}=this.wNAF(E);return m.normalizeZ([F,T])[0]}multiplyUnsafe(y,E=m.ZERO){const F=y;return rt("scalar",F,he,n),F===he?N:this.is0()||F===ne?this:H.wNAFCachedUnsafe(this,F,m.normalizeZ,E)}isSmallOrder(){return this.multiplyUnsafe(u).is0()}isTorsionFree(){return H.unsafeLadder(this,n).is0()}toAffine(y){return P(this,y)}clearCofactor(){const{h:y}=t;return y===ne?this:this.multiplyUnsafe(y)}static fromHex(y,E=!1){const{d:F,a:T}=t,C=r.BYTES;y=Ee("pointHex",y,C),Qt("zip215",E);const L=y.slice(),D=y[C-1];L[C-1]=D&-129;const j=Tt(L),M=E?h:r.ORDER;rt("pointHex.y",j,he,M);const A=f(j*j),X=f(A-ne),ce=f(F*A-T);let{isValid:J,value:re}=w(X,ce);if(!J)throw new Error("Point.fromHex: invalid y coordinate");const fe=(re&ne)===ne,ge=(D&128)!==0;if(!E&&re===he&&ge)throw new Error("Point.fromHex: x=0 and x_0=1");return ge!==fe&&(re=f(-re)),m.fromAffine({x:re,y:j})}static fromPrivateKey(y){return q(y).point}toRawBytes(){const{x:y,y:E}=this.toAffine(),F=ur(E,r.BYTES);return F[F.length-1]|=y&ne?128:0,F}toHex(){return _r(this.toRawBytes())}}m.BASE=new m(t.Gx,t.Gy,ne,f(t.Gx*t.Gy)),m.ZERO=new m(he,ne,ne,he);const{BASE:O,ZERO:N}=m,H=Ba(m,l*8);function k(x){return K(x,n)}function z(x){return k(Tt(x))}function q(x){const y=r.BYTES;x=Ee("private key",x,y);const E=Ee("hashed private key",o(x),2*y),F=g(E.slice(0,y)),T=E.slice(y,2*y),C=z(F),L=O.multiply(C),D=L.toRawBytes();return{head:F,prefix:T,scalar:C,point:L,pointBytes:D}}function pe(x){return q(x).pointBytes}function be(x=new Uint8Array,...y){const E=rn(...y);return z(o(b(E,Ee("context",x),!!i)))}function ue(x,y,E={}){x=Ee("message",x),i&&(x=i(x));const{prefix:F,scalar:T,pointBytes:C}=q(y),L=be(E.context,F,x),D=O.multiply(L).toRawBytes(),j=be(E.context,D,C,x),M=k(L+j*T);rt("signature.s",M,he,n);const A=rn(D,ur(M,r.BYTES));return Ee("result",A,r.BYTES*2)}const Ie=Ia;function Ve(x,y,E,F=Ie){const{context:T,zip215:C}=F,L=r.BYTES;x=Ee("signature",x,2*L),y=Ee("message",y),E=Ee("publicKey",E,L),C!==void 0&&Qt("zip215",C),i&&(y=i(y));const D=Tt(x.slice(L,2*L));let j,M,A;try{j=m.fromHex(E,C),M=m.fromHex(x.slice(0,L),C),A=O.multiplyUnsafe(D)}catch{return!1}if(!C&&j.isSmallOrder())return!1;const X=be(T,M.toRawBytes(),j.toRawBytes(),y);return M.add(j.multiplyUnsafe(X)).subtract(A).clearCofactor().equals(m.ZERO)}return O._setWindowSize(8),{CURVE:t,getPublicKey:pe,sign:ue,verify:Ve,ExtendedPoint:m,utils:{getExtendedPublicKey:q,randomPrivateKey:()=>a(r.BYTES),precompute(x=8,y=m.BASE){return y._setWindowSize(x),y.multiply(BigInt(3)),y}}}}BigInt(0),BigInt(1);const xr=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),cn=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const Pa=BigInt(1),fn=BigInt(2);BigInt(3);const ja=BigInt(5),Ua=BigInt(8);function Na(e){const t=BigInt(10),r=BigInt(20),n=BigInt(40),i=BigInt(80),o=xr,a=e*e%o*e%o,l=ye(a,fn,o)*a%o,u=ye(l,Pa,o)*e%o,h=ye(u,ja,o)*u%o,f=ye(h,t,o)*h%o,p=ye(f,r,o)*f%o,w=ye(p,n,o)*p%o,g=ye(w,i,o)*w%o,b=ye(g,i,o)*w%o,_=ye(b,t,o)*h%o;return{pow_p_5_8:ye(_,fn,o)*e%o,b2:a}}function za(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}function Da(e,t){const r=xr,n=K(t*t*t,r),i=K(n*n*t,r),o=Na(e*i).pow_p_5_8;let a=K(e*n*o,r);const l=K(t*a*a,r),u=a,h=K(a*cn,r),f=l===e,p=l===K(-e,r),w=l===K(-e*cn,r);return f&&(a=u),(p||w)&&(a=h),va(a,r)&&(a=K(-a,r)),{isValid:f||p,value:a}}const Ma=Wn(xr,void 0,!0),$a={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:Ma,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:Ua,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:ua,randomBytes:Dn,adjustScalarBytes:za,uvRatio:Da},Kn=La($a),Ha="EdDSA",Ga="JWT",Rt=".",Ut="base64url",Zn="utf8",Yn="utf8",ka=":",qa="did",Wa="key",ln="base58btc",Va="z",Ja="K36",Ka=32;function Fr(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function Xn(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?Fr(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function Qn(e,t){t||(t=e.reduce((i,o)=>i+o.length,0));const r=Xn(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return Fr(r)}function Za(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),a=o.charCodeAt(0);if(r[a]!==255)throw new TypeError(o+" is ambiguous");r[a]=i}var l=e.length,u=e.charAt(0),h=Math.log(l)/Math.log(256),f=Math.log(256)/Math.log(l);function p(b){if(b instanceof Uint8Array||(ArrayBuffer.isView(b)?b=new Uint8Array(b.buffer,b.byteOffset,b.byteLength):Array.isArray(b)&&(b=Uint8Array.from(b))),!(b instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(b.length===0)return"";for(var _=0,R=0,P=0,I=b.length;P!==I&&b[P]===0;)P++,_++;for(var m=(I-P)*f+1>>>0,O=new Uint8Array(m);P!==I;){for(var N=b[P],H=0,k=m-1;(N!==0||H<R)&&k!==-1;k--,H++)N+=256*O[k]>>>0,O[k]=N%l>>>0,N=N/l>>>0;if(N!==0)throw new Error("Non-zero carry");R=H,P++}for(var z=m-R;z!==m&&O[z]===0;)z++;for(var q=u.repeat(_);z<m;++z)q+=e.charAt(O[z]);return q}function w(b){if(typeof b!="string")throw new TypeError("Expected String");if(b.length===0)return new Uint8Array;var _=0;if(b[_]!==" "){for(var R=0,P=0;b[_]===u;)R++,_++;for(var I=(b.length-_)*h+1>>>0,m=new Uint8Array(I);b[_];){var O=r[b.charCodeAt(_)];if(O===255)return;for(var N=0,H=I-1;(O!==0||N<P)&&H!==-1;H--,N++)O+=l*m[H]>>>0,m[H]=O%256>>>0,O=O/256>>>0;if(O!==0)throw new Error("Non-zero carry");P=N,_++}if(b[_]!==" "){for(var k=I-P;k!==I&&m[k]===0;)k++;for(var z=new Uint8Array(R+(I-k)),q=R;k!==I;)z[q++]=m[k++];return z}}}function g(b){var _=w(b);if(_)return _;throw new Error(`Non-${t} character`)}return{encode:p,decodeUnsafe:w,decode:g}}var Ya=Za,Xa=Ya;const ei=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},Qa=e=>new TextEncoder().encode(e),eu=e=>new TextDecoder().decode(e);class tu{constructor(t,r,n){this.name=t,this.prefix=r,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class ru{constructor(t,r,n){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return ti(this,t)}}class nu{constructor(t){this.decoders=t}or(t){return ti(this,t)}decode(t){const r=t[0],n=this.decoders[r];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const ti=(e,t)=>new nu({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class iu{constructor(t,r,n,i){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new tu(t,r,n),this.decoder=new ru(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const Nt=({name:e,prefix:t,encode:r,decode:n})=>new iu(e,t,r,n),ct=({prefix:e,name:t,alphabet:r})=>{const{encode:n,decode:i}=Xa(r,t);return Nt({prefix:e,name:t,encode:n,decode:o=>ei(i(o))})},ou=(e,t,r,n)=>{const i={};for(let f=0;f<t.length;++f)i[t[f]]=f;let o=e.length;for(;e[o-1]==="=";)--o;const a=new Uint8Array(o*r/8|0);let l=0,u=0,h=0;for(let f=0;f<o;++f){const p=i[e[f]];if(p===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|p,l+=r,l>=8&&(l-=8,a[h++]=255&u>>l)}if(l>=r||255&u<<8-l)throw new SyntaxError("Unexpected end of data");return a},su=(e,t,r)=>{const n=t[t.length-1]==="=",i=(1<<r)-1;let o="",a=0,l=0;for(let u=0;u<e.length;++u)for(l=l<<8|e[u],a+=8;a>r;)a-=r,o+=t[i&l>>a];if(a&&(o+=t[i&l<<r-a]),n)for(;o.length*r&7;)o+="=";return o},ee=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>Nt({prefix:t,name:e,encode(i){return su(i,n,r)},decode(i){return ou(i,n,r,e)}}),au=Nt({prefix:"\0",name:"identity",encode:e=>eu(e),decode:e=>Qa(e)});var uu=Object.freeze({__proto__:null,identity:au});const cu=ee({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var fu=Object.freeze({__proto__:null,base2:cu});const lu=ee({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var hu=Object.freeze({__proto__:null,base8:lu});const du=ct({prefix:"9",name:"base10",alphabet:"0123456789"});var pu=Object.freeze({__proto__:null,base10:du});const bu=ee({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),gu=ee({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var yu=Object.freeze({__proto__:null,base16:bu,base16upper:gu});const wu=ee({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),mu=ee({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),vu=ee({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),_u=ee({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Eu=ee({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),xu=ee({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Fu=ee({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Au=ee({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Su=ee({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Bu=Object.freeze({__proto__:null,base32:wu,base32upper:mu,base32pad:vu,base32padupper:_u,base32hex:Eu,base32hexupper:xu,base32hexpad:Fu,base32hexpadupper:Au,base32z:Su});const Ou=ct({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Tu=ct({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var Cu=Object.freeze({__proto__:null,base36:Ou,base36upper:Tu});const Iu=ct({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Ru=ct({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Lu=Object.freeze({__proto__:null,base58btc:Iu,base58flickr:Ru});const Pu=ee({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),ju=ee({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Uu=ee({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Nu=ee({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var zu=Object.freeze({__proto__:null,base64:Pu,base64pad:ju,base64url:Uu,base64urlpad:Nu});const ri=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),Du=ri.reduce((e,t,r)=>(e[r]=t,e),[]),Mu=ri.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function $u(e){return e.reduce((t,r)=>(t+=Du[r],t),"")}function Hu(e){const t=[];for(const r of e){const n=Mu[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}const Gu=Nt({prefix:"🚀",name:"base256emoji",encode:$u,decode:Hu});var ku=Object.freeze({__proto__:null,base256emoji:Gu}),qu=ni,hn=128,Wu=-128,Vu=Math.pow(2,31);function ni(e,t,r){t=t||[],r=r||0;for(var n=r;e>=Vu;)t[r++]=e&255|hn,e/=128;for(;e&Wu;)t[r++]=e&255|hn,e>>>=7;return t[r]=e|0,ni.bytes=r-n+1,t}var Ju=fr,Ku=128,dn=127;function fr(e,n){var r=0,n=n||0,i=0,o=n,a,l=e.length;do{if(o>=l)throw fr.bytes=0,new RangeError("Could not decode varint");a=e[o++],r+=i<28?(a&dn)<<i:(a&dn)*Math.pow(2,i),i+=7}while(a>=Ku);return fr.bytes=o-n,r}var Zu=Math.pow(2,7),Yu=Math.pow(2,14),Xu=Math.pow(2,21),Qu=Math.pow(2,28),ec=Math.pow(2,35),tc=Math.pow(2,42),rc=Math.pow(2,49),nc=Math.pow(2,56),ic=Math.pow(2,63),oc=function(e){return e<Zu?1:e<Yu?2:e<Xu?3:e<Qu?4:e<ec?5:e<tc?6:e<rc?7:e<nc?8:e<ic?9:10},sc={encode:qu,decode:Ju,encodingLength:oc},ii=sc;const pn=(e,t,r=0)=>(ii.encode(e,t,r),t),bn=e=>ii.encodingLength(e),lr=(e,t)=>{const r=t.byteLength,n=bn(e),i=n+bn(r),o=new Uint8Array(i+r);return pn(e,o,0),pn(r,o,n),o.set(t,i),new ac(e,r,t,o)};class ac{constructor(t,r,n,i){this.code=t,this.size=r,this.digest=n,this.bytes=i}}const oi=({name:e,code:t,encode:r})=>new uc(e,t,r);class uc{constructor(t,r,n){this.name=t,this.code=r,this.encode=n}digest(t){if(t instanceof Uint8Array){const r=this.encode(t);return r instanceof Uint8Array?lr(this.code,r):r.then(n=>lr(this.code,n))}else throw Error("Unknown type, must be binary type")}}const si=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),cc=oi({name:"sha2-256",code:18,encode:si("SHA-256")}),fc=oi({name:"sha2-512",code:19,encode:si("SHA-512")});var lc=Object.freeze({__proto__:null,sha256:cc,sha512:fc});const ai=0,hc="identity",ui=ei,dc=e=>lr(ai,ui(e)),pc={code:ai,name:hc,encode:ui,digest:dc};var bc=Object.freeze({__proto__:null,identity:pc});new TextEncoder,new TextDecoder;const gn={...uu,...fu,...hu,...pu,...yu,...Bu,...Cu,...Lu,...zu,...ku};({...lc,...bc});function ci(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}const yn=ci("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),or=ci("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);const t=Xn(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),fi={utf8:yn,"utf-8":yn,hex:gn.base16,latin1:or,ascii:or,binary:or,...gn};function zt(e,t="utf8"){const r=fi[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);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)}function We(e,t="utf8"){const r=fi[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?Fr(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}function wn(e){return br(zt(We(e,Ut),Zn))}function Lt(e){return zt(We(qe(e),Zn),Ut)}function li(e){const t=We(Ja,ln),r=Va+zt(Qn([t,e]),ln);return[qa,Wa,r].join(ka)}function gc(e){return zt(e,Ut)}function yc(e){return We(e,Ut)}function wc(e){return We([Lt(e.header),Lt(e.payload)].join(Rt),Yn)}function mc(e){return[Lt(e.header),Lt(e.payload),gc(e.signature)].join(Rt)}function vc(e){const t=e.split(Rt),r=wn(t[0]),n=wn(t[1]),i=yc(t[2]),o=We(t.slice(0,2).join(Rt),Yn);return{header:r,payload:n,signature:i,data:o}}function _c(e=Dn(Ka)){const t=Kn.getPublicKey(e);return{secretKey:Qn([e,t]),publicKey:t}}async function Ec(e,t,r,n,i=de.cjs.fromMiliseconds(Date.now())){const o={alg:Ha,typ:Ga},a=li(n.publicKey),l=i+r,u={iss:a,sub:e,aud:t,iat:i,exp:l},h=wc({header:o,payload:u}),f=Kn.sign(h,n.secretKey.slice(0,32));return mc({header:o,payload:u,signature:f})}const xc="PARSE_ERROR",Fc="INVALID_REQUEST",Ac="METHOD_NOT_FOUND",Sc="INVALID_PARAMS",hi="INTERNAL_ERROR",Ar="SERVER_ERROR",Bc=[-32700,-32600,-32601,-32602,-32603],nt={[xc]:{code:-32700,message:"Parse error"},[Fc]:{code:-32600,message:"Invalid Request"},[Ac]:{code:-32601,message:"Method not found"},[Sc]:{code:-32602,message:"Invalid params"},[hi]:{code:-32603,message:"Internal error"},[Ar]:{code:-32e3,message:"Server error"}},di=Ar;function Oc(e){return Bc.includes(e)}function mn(e){return Object.keys(nt).includes(e)?nt[e]:nt[di]}function Tc(e){const t=Object.values(nt).find(r=>r.code===e);return t||nt[di]}function pi(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${t}`):e}var bi={};/*! *****************************************************************************
|
|
1
|
+
"use strict";const de=require("./index-Cjz6EL9G.js"),V=require("./address-DKM11kf_.js"),_o=require("./index-tVbvQzum.js"),kr=require("./browser-ponyfill-UnUv8h3i.js");function Tn(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function Eo(e,t){t||(t=e.reduce((i,o)=>i+o.length,0));const r=Tn(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return r}const qr={...de.identityBase,...de.base2,...de.base8,...de.base10,...de.base16,...de.base32,...de.base36,...de.base58,...de.base64,...de.base256emoji};function Cn(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}const Wr=Cn("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),Kt=Cn("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);const t=Tn(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),In={utf8:Wr,"utf-8":Wr,hex:qr.base16,latin1:Kt,ascii:Kt,binary:Kt,...qr};function xo(e,t="utf8"){const r=In[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}function Fo(e,t="utf8"){const r=In[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);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)}var Vr=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},Ao=function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e}(),So=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=V.dist.process.platform}return e}(),Bo=function(){function e(t,r,n,i){this.name=t,this.version=r,this.os=n,this.bot=i,this.type="bot-device"}return e}(),Oo=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}(),To=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}(),Co=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,Io=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Jr=3,Ro=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",Co]],Kr=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Lo(e){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new To:typeof navigator<"u"?jo(navigator.userAgent):No()}function Po(e){return e!==""&&Ro.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var o=i.exec(e);return!!o&&[n,o]},!1)}function jo(e){var t=Po(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new Oo;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?i.length<Jr&&(i=Vr(Vr([],i,!0),zo(Jr-i.length),!0)):i=[];var o=i.join("."),a=Uo(e),l=Io.exec(e);return l&&l[1]?new Bo(r,o,a,l[1]):new Ao(r,o,a)}function Uo(e){for(var t=0,r=Kr.length;t<r;t++){var n=Kr[t],i=n[0],o=n[1],a=o.exec(e);if(a)return i}return null}function No(){var e=typeof V.dist.process<"u"&&V.dist.process.version;return e?new So(V.dist.process.version.slice(1)):null}function zo(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}const Do={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"}};class Mo{}const $o=/"(?:_|\\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*:/,Ho=/"(?: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*$/;function ko(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){qo(e);return}return t}function qo(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Wo(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Go.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if($o.test(e)||Ho.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,ko)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}function ze(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function Rn(e,t){let r;const n=()=>{if(r)return r;const i=indexedDB.open(e);return i.onupgradeneeded=()=>i.result.createObjectStore(t),r=ze(i),r.then(o=>{o.onclose=()=>r=void 0},()=>{}),r};return(i,o)=>n().then(a=>o(a.transaction(t,i).objectStore(t)))}let Zt;function at(){return Zt||(Zt=Rn("keyval-store","keyval")),Zt}function Vo(e,t=at()){return t("readonly",r=>ze(r.get(e)))}function Jo(e,t,r=at()){return r("readwrite",n=>(n.put(t,e),ze(n.transaction)))}function Ko(e,t=at()){return t("readwrite",r=>(r.delete(e),ze(r.transaction)))}function Zo(e=at()){return e("readwrite",t=>(t.clear(),ze(t.transaction)))}function Yo(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},ze(e.transaction)}function Xo(e=at()){return e("readonly",t=>{if(t.getAllKeys)return ze(t.getAllKeys());const r=[];return Yo(t,n=>r.push(n.key)).then(()=>r)})}const Qo=e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString()+"n":r),es=e=>{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');return JSON.parse(r,(n,i)=>typeof i=="string"&&i.match(/^\d+n$/)?BigInt(i.substring(0,i.length-1)):i)};function br(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return es(e)}catch{return e}}function qe(e){return typeof e=="string"?e:Qo(e)||""}function ts(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}var rs=ns;function ns(e,t,r){var n=r&&r.stringify||ts,i=1;if(typeof e=="object"&&e!==null){var o=t.length+i;if(o===1)return e;var a=new Array(o);a[0]=n(e);for(var l=1;l<o;l++)a[l]=n(t[l]);return a.join(" ")}if(typeof e!="string")return e;var u=t.length;if(u===0)return e;for(var h="",f=1-i,p=-1,w=e&&e.length||0,g=0;g<w;){if(e.charCodeAt(g)===37&&g+1<w){switch(p=p>-1?p:0,e.charCodeAt(g+1)){case 100:case 102:if(f>=u||t[f]==null)break;p<g&&(h+=e.slice(p,g)),h+=Number(t[f]),p=g+2,g++;break;case 105:if(f>=u||t[f]==null)break;p<g&&(h+=e.slice(p,g)),h+=Math.floor(Number(t[f])),p=g+2,g++;break;case 79:case 111:case 106:if(f>=u||t[f]===void 0)break;p<g&&(h+=e.slice(p,g));var b=typeof t[f];if(b==="string"){h+="'"+t[f]+"'",p=g+2,g++;break}if(b==="function"){h+=t[f].name||"<anonymous>",p=g+2,g++;break}h+=n(t[f]),p=g+2,g++;break;case 115:if(f>=u)break;p<g&&(h+=e.slice(p,g)),h+=String(t[f]),p=g+2,g++;break;case 37:p<g&&(h+=e.slice(p,g)),h+="%",p=g+2,g++,f--;break}++f}++g}return p===-1?e:(p<w&&(h+=e.slice(p)),h)}const Zr=rs;var ke=we;const it=ds().console||{},is={mapHttpRequest:At,mapHttpResponse:At,wrapRequestSerializer:Yt,wrapResponseSerializer:Yt,wrapErrorSerializer:Yt,req:At,res:At,err:cs};function os(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function we(e){e=e||{},e.browser=e.browser||{};const t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");const r=e.browser.write||it;e.browser.write&&(e.browser.asObject=!0);const n=e.serializers||{},i=os(e.browser.serialize,n);let o=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(o=!1);const a=["error","fatal","warn","info","debug","trace"];typeof r=="function"&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),e.enabled===!1&&(e.level="silent");const l=e.level||"info",u=Object.create(r);u.log||(u.log=ot),Object.defineProperty(u,"levelVal",{get:f}),Object.defineProperty(u,"level",{get:p,set:w});const h={transmit:t,serialize:i,asObject:e.browser.asObject,levels:a,timestamp:fs(e)};u.levels=we.levels,u.level=l,u.setMaxListeners=u.getMaxListeners=u.emit=u.addListener=u.on=u.prependListener=u.once=u.prependOnceListener=u.removeListener=u.removeAllListeners=u.listeners=u.listenerCount=u.eventNames=u.write=u.flush=ot,u.serializers=n,u._serialize=i,u._stdErrSerialize=o,u.child=g,t&&(u._logEvent=sr());function f(){return this.level==="silent"?1/0:this.levels.values[this.level]}function p(){return this._level}function w(b){if(b!=="silent"&&!this.levels.values[b])throw Error("unknown level "+b);this._level=b,$e(h,u,"error","log"),$e(h,u,"fatal","error"),$e(h,u,"warn","error"),$e(h,u,"info","log"),$e(h,u,"debug","log"),$e(h,u,"trace","log")}function g(b,_){if(!b)throw new Error("missing bindings for child Pino");_=_||{},i&&b.serializers&&(_.serializers=b.serializers);const R=_.serializers;if(i&&R){var P=Object.assign({},n,R),I=e.browser.serialize===!0?Object.keys(P):i;delete b.serializers,jt([b],I,P,this._stdErrSerialize)}function m(O){this._childLevel=(O._childLevel|0)+1,this.error=He(O,b,"error"),this.fatal=He(O,b,"fatal"),this.warn=He(O,b,"warn"),this.info=He(O,b,"info"),this.debug=He(O,b,"debug"),this.trace=He(O,b,"trace"),P&&(this.serializers=P,this._serialize=I),t&&(this._logEvent=sr([].concat(O._logEvent.bindings,b)))}return m.prototype=this,new m(this)}return u}we.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};we.stdSerializers=is;we.stdTimeFunctions=Object.assign({},{nullTime:Ln,epochTime:Pn,unixTime:ls,isoTime:hs});function $e(e,t,r,n){const i=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?ot:i[r]?i[r]:it[r]||it[n]||ot,ss(e,t,r)}function ss(e,t,r){!e.transmit&&t[r]===ot||(t[r]=function(n){return function(){const o=e.timestamp(),a=new Array(arguments.length),l=Object.getPrototypeOf&&Object.getPrototypeOf(this)===it?it:this;for(var u=0;u<a.length;u++)a[u]=arguments[u];if(e.serialize&&!e.asObject&&jt(a,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?n.call(l,as(this,r,a,o)):n.apply(l,a),e.transmit){const h=e.transmit.level||t.level,f=we.levels.values[h],p=we.levels.values[r];if(p<f)return;us(this,{ts:o,methodLevel:r,methodValue:p,transmitValue:we.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},a)}}}(t[r]))}function as(e,t,r,n){e._serialize&&jt(r,e._serialize,e.serializers,e._stdErrSerialize);const i=r.slice();let o=i[0];const a={};n&&(a.time=n),a.level=we.levels.values[t];let l=(e._childLevel|0)+1;if(l<1&&(l=1),o!==null&&typeof o=="object"){for(;l--&&typeof i[0]=="object";)Object.assign(a,i.shift());o=i.length?Zr(i.shift(),i):void 0}else typeof o=="string"&&(o=Zr(i.shift(),i));return o!==void 0&&(a.msg=o),a}function jt(e,t,r,n){for(const i in e)if(n&&e[i]instanceof Error)e[i]=we.stdSerializers.err(e[i]);else if(typeof e[i]=="object"&&!Array.isArray(e[i]))for(const o in e[i])t&&t.indexOf(o)>-1&&o in r&&(e[i][o]=r[o](e[i][o]))}function He(e,t,r){return function(){const n=new Array(1+arguments.length);n[0]=t;for(var i=1;i<n.length;i++)n[i]=arguments[i-1];return e[r].apply(this,n)}}function us(e,t,r){const n=t.send,i=t.ts,o=t.methodLevel,a=t.methodValue,l=t.val,u=e._logEvent.bindings;jt(r,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=r.filter(function(h){return u.indexOf(h)===-1}),e._logEvent.level.label=o,e._logEvent.level.value=a,n(o,e._logEvent,l),e._logEvent=sr(u)}function sr(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function cs(e){const t={type:e.constructor.name,msg:e.message,stack:e.stack};for(const r in e)t[r]===void 0&&(t[r]=e[r]);return t}function fs(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?Ln:Pn}function At(){return{}}function Yt(e){return e}function ot(){}function Ln(){return!1}function Pn(){return Date.now()}function ls(){return Math.round(Date.now()/1e3)}function hs(){return new Date(Date.now()).toISOString()}function ds(){function e(t){return typeof t<"u"&&t}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return e(self)||e(window)||e(this)||{}}}const gr=V.getDefaultExportFromCjs(ke),ps={level:"info"},ut="custom_context",yr=1e3*1024;let bs=class{constructor(t){this.nodeValue=t,this.sizeInBytes=new TextEncoder().encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}},Yr=class{constructor(t){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=t,this.sizeInBytes=0}append(t){const r=new bs(t);if(r.size>this.maxSizeInBytes)throw new Error(`[LinkedList] Value too big to insert into list: ${t} with size ${r.size}`);for(;this.size+r.size>this.maxSizeInBytes;)this.shift();this.head?(this.tail&&(this.tail.next=r),this.tail=r):(this.head=r,this.tail=r),this.lengthInNodes++,this.sizeInBytes+=r.size}shift(){if(!this.head)return;const t=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=t.size}toArray(){const t=[];let r=this.head;for(;r!==null;)t.push(r.value),r=r.next;return t}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let t=this.head;return{next:()=>{if(!t)return{done:!0,value:null};const r=t.value;return t=t.next,{done:!1,value:r}}}}},jn=class{constructor(t,r=yr){this.level=t??"error",this.levelValue=ke.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=r,this.logs=new Yr(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(t,r){r===ke.levels.values.error?console.error(t):r===ke.levels.values.warn?console.warn(t):r===ke.levels.values.debug?console.debug(t):r===ke.levels.values.trace?console.trace(t):console.log(t)}appendToLogs(t){this.logs.append(qe({timestamp:new Date().toISOString(),log:t}));const r=typeof t=="string"?JSON.parse(t).level:t.level;r>=this.levelValue&&this.forwardToConsole(t,r)}getLogs(){return this.logs}clearLogs(){this.logs=new Yr(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(t){const r=this.getLogArray();return r.push(qe({extraMetadata:t})),new Blob(r,{type:"application/json"})}};class gs{constructor(t,r=yr){this.baseChunkLogger=new jn(t,r)}write(t){this.baseChunkLogger.appendToLogs(t)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(t){return this.baseChunkLogger.logsToBlob(t)}downloadLogsBlobInBrowser(t){const r=URL.createObjectURL(this.logsToBlob(t)),n=document.createElement("a");n.href=r,n.download=`walletconnect-logs-${new Date().toISOString()}.txt`,document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r)}}class ys{constructor(t,r=yr){this.baseChunkLogger=new jn(t,r)}write(t){this.baseChunkLogger.appendToLogs(t)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(t){return this.baseChunkLogger.logsToBlob(t)}}var ws=Object.defineProperty,ms=Object.defineProperties,vs=Object.getOwnPropertyDescriptors,Xr=Object.getOwnPropertySymbols,_s=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,Qr=(e,t,r)=>t in e?ws(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ct=(e,t)=>{for(var r in t||(t={}))_s.call(t,r)&&Qr(e,r,t[r]);if(Xr)for(var r of Xr(t))Es.call(t,r)&&Qr(e,r,t[r]);return e},It=(e,t)=>ms(e,vs(t));function xs(e){return It(Ct({},e),{level:(e==null?void 0:e.level)||ps.level})}function Fs(e,t=ut){return e[t]||""}function As(e,t,r=ut){return e[r]=t,e}function Un(e,t=ut){let r="";return typeof e.bindings>"u"?r=Fs(e,t):r=e.bindings().context||"",r}function Ss(e,t,r=ut){const n=Un(e,r);return n.trim()?`${n}/${t}`:t}function Bs(e,t,r=ut){const n=Ss(e,t,r),i=e.child({context:n});return As(i,n,r)}function Os(e){var t,r;const n=new gs((t=e.opts)==null?void 0:t.level,e.maxSizeInBytes);return{logger:gr(It(Ct({},e.opts),{level:"trace",browser:It(Ct({},(r=e.opts)==null?void 0:r.browser),{write:i=>n.write(i)})})),chunkLoggerController:n}}function Ts(e){var t;const r=new ys((t=e.opts)==null?void 0:t.level,e.maxSizeInBytes);return{logger:gr(It(Ct({},e.opts),{level:"trace"}),r),chunkLoggerController:r}}function Cs(e){return typeof e.loggerOverride<"u"&&typeof e.loggerOverride!="string"?{logger:e.loggerOverride,chunkLoggerController:null}:typeof window<"u"?Os(e):Ts(e)}function Is(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Nn(e,...t){if(!Is(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function en(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Rs(e,t){Nn(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}const Ge=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Xt=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);function Ls(e){if(typeof e!="string")throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array(new TextEncoder().encode(e))}function zn(e){return typeof e=="string"&&(e=Ls(e)),Nn(e),e}class Ps{clone(){return this._cloneInto()}}function js(e){const t=n=>e().update(zn(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function Dn(e=32){if(Ge&&typeof Ge.getRandomValues=="function")return Ge.getRandomValues(new Uint8Array(e));if(Ge&&typeof Ge.randomBytes=="function")return Ge.randomBytes(e);throw new Error("crypto.getRandomValues must be defined")}function Us(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const i=BigInt(32),o=BigInt(4294967295),a=Number(r>>i&o),l=Number(r&o),u=n?4:0,h=n?0:4;e.setUint32(t+u,a,n),e.setUint32(t+h,l,n)}class Ns extends Ps{constructor(t,r,n,i){super(),this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=Xt(this.buffer)}update(t){en(this);const{view:r,buffer:n,blockLen:i}=this;t=zn(t);const o=t.length;for(let a=0;a<o;){const l=Math.min(i-this.pos,o-a);if(l===i){const u=Xt(t);for(;i<=o-a;a+=i)this.process(u,a);continue}n.set(t.subarray(a,a+l),this.pos),this.pos+=l,a+=l,this.pos===i&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){en(this),Rs(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:i,isLE:o}=this;let{pos:a}=this;r[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>i-a&&(this.process(n,0),a=0);for(let p=a;p<i;p++)r[p]=0;Us(n,i-8,BigInt(this.length*8),o),this.process(n,0);const l=Xt(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const h=u/4,f=this.get();if(h>f.length)throw new Error("_sha2: outputLen bigger than state");for(let p=0;p<h;p++)l.setUint32(4*p,f[p],o)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:n,length:i,finished:o,destroyed:a,pos:l}=this;return t.length=i,t.pos=l,t.finished=o,t.destroyed=a,i%r&&t.buffer.set(n),t}}const St=BigInt(2**32-1),ar=BigInt(32);function Mn(e,t=!1){return t?{h:Number(e&St),l:Number(e>>ar&St)}:{h:Number(e>>ar&St)|0,l:Number(e&St)|0}}function zs(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){const{h:o,l:a}=Mn(e[i],t);[r[i],n[i]]=[o,a]}return[r,n]}const Ds=(e,t)=>BigInt(e>>>0)<<ar|BigInt(t>>>0),Ms=(e,t,r)=>e>>>r,$s=(e,t,r)=>e<<32-r|t>>>r,Hs=(e,t,r)=>e>>>r|t<<32-r,Gs=(e,t,r)=>e<<32-r|t>>>r,ks=(e,t,r)=>e<<64-r|t>>>r-32,qs=(e,t,r)=>e>>>r-32|t<<64-r,Ws=(e,t)=>t,Vs=(e,t)=>e,Js=(e,t,r)=>e<<r|t>>>32-r,Ks=(e,t,r)=>t<<r|e>>>32-r,Zs=(e,t,r)=>t<<r-32|e>>>64-r,Ys=(e,t,r)=>e<<r-32|t>>>64-r;function Xs(e,t,r,n){const i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:i|0}}const Qs=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),ea=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,ta=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),ra=(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0,na=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0),ia=(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0,B={fromBig:Mn,split:zs,toBig:Ds,shrSH:Ms,shrSL:$s,rotrSH:Hs,rotrSL:Gs,rotrBH:ks,rotrBL:qs,rotr32H:Ws,rotr32L:Vs,rotlSH:Js,rotlSL:Ks,rotlBH:Zs,rotlBL:Ys,add:Xs,add3L:Qs,add3H:ea,add4L:ta,add4H:ra,add5H:ia,add5L:na},[oa,sa]=B.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))),Te=new Uint32Array(80),Ce=new Uint32Array(80);class aa extends Ns{constructor(){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}get(){const{Ah:t,Al:r,Bh:n,Bl:i,Ch:o,Cl:a,Dh:l,Dl:u,Eh:h,El:f,Fh:p,Fl:w,Gh:g,Gl:b,Hh:_,Hl:R}=this;return[t,r,n,i,o,a,l,u,h,f,p,w,g,b,_,R]}set(t,r,n,i,o,a,l,u,h,f,p,w,g,b,_,R){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=i|0,this.Ch=o|0,this.Cl=a|0,this.Dh=l|0,this.Dl=u|0,this.Eh=h|0,this.El=f|0,this.Fh=p|0,this.Fl=w|0,this.Gh=g|0,this.Gl=b|0,this.Hh=_|0,this.Hl=R|0}process(t,r){for(let m=0;m<16;m++,r+=4)Te[m]=t.getUint32(r),Ce[m]=t.getUint32(r+=4);for(let m=16;m<80;m++){const O=Te[m-15]|0,N=Ce[m-15]|0,H=B.rotrSH(O,N,1)^B.rotrSH(O,N,8)^B.shrSH(O,N,7),k=B.rotrSL(O,N,1)^B.rotrSL(O,N,8)^B.shrSL(O,N,7),z=Te[m-2]|0,q=Ce[m-2]|0,pe=B.rotrSH(z,q,19)^B.rotrBH(z,q,61)^B.shrSH(z,q,6),be=B.rotrSL(z,q,19)^B.rotrBL(z,q,61)^B.shrSL(z,q,6),ue=B.add4L(k,be,Ce[m-7],Ce[m-16]),Ie=B.add4H(ue,H,pe,Te[m-7],Te[m-16]);Te[m]=Ie|0,Ce[m]=ue|0}let{Ah:n,Al:i,Bh:o,Bl:a,Ch:l,Cl:u,Dh:h,Dl:f,Eh:p,El:w,Fh:g,Fl:b,Gh:_,Gl:R,Hh:P,Hl:I}=this;for(let m=0;m<80;m++){const O=B.rotrSH(p,w,14)^B.rotrSH(p,w,18)^B.rotrBH(p,w,41),N=B.rotrSL(p,w,14)^B.rotrSL(p,w,18)^B.rotrBL(p,w,41),H=p&g^~p&_,k=w&b^~w&R,z=B.add5L(I,N,k,sa[m],Ce[m]),q=B.add5H(z,P,O,H,oa[m],Te[m]),pe=z|0,be=B.rotrSH(n,i,28)^B.rotrBH(n,i,34)^B.rotrBH(n,i,39),ue=B.rotrSL(n,i,28)^B.rotrBL(n,i,34)^B.rotrBL(n,i,39),Ie=n&o^n&l^o&l,Ve=i&a^i&u^a&u;P=_|0,I=R|0,_=g|0,R=b|0,g=p|0,b=w|0,{h:p,l:w}=B.add(h|0,f|0,q|0,pe|0),h=l|0,f=u|0,l=o|0,u=a|0,o=n|0,a=i|0;const x=B.add3L(pe,ue,Ve);n=B.add3H(x,q,be,Ie),i=x|0}({h:n,l:i}=B.add(this.Ah|0,this.Al|0,n|0,i|0)),{h:o,l:a}=B.add(this.Bh|0,this.Bl|0,o|0,a|0),{h:l,l:u}=B.add(this.Ch|0,this.Cl|0,l|0,u|0),{h,l:f}=B.add(this.Dh|0,this.Dl|0,h|0,f|0),{h:p,l:w}=B.add(this.Eh|0,this.El|0,p|0,w|0),{h:g,l:b}=B.add(this.Fh|0,this.Fl|0,g|0,b|0),{h:_,l:R}=B.add(this.Gh|0,this.Gl|0,_|0,R|0),{h:P,l:I}=B.add(this.Hh|0,this.Hl|0,P|0,I|0),this.set(n,i,o,a,l,u,h,f,p,w,g,b,_,R,P,I)}roundClean(){Te.fill(0),Ce.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const ua=js(()=>new aa);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const wr=BigInt(0),$n=BigInt(1),ca=BigInt(2);function mr(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function vr(e){if(!mr(e))throw new Error("Uint8Array expected")}function Qt(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}const fa=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function _r(e){vr(e);let t="";for(let r=0;r<e.length;r++)t+=fa[e[r]];return t}function Hn(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?wr:BigInt("0x"+e)}const _e={_0:48,_9:57,A:65,F:70,a:97,f:102};function tn(e){if(e>=_e._0&&e<=_e._9)return e-_e._0;if(e>=_e.A&&e<=_e.F)return e-(_e.A-10);if(e>=_e.a&&e<=_e.f)return e-(_e.a-10)}function Gn(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let i=0,o=0;i<r;i++,o+=2){const a=tn(e.charCodeAt(o)),l=tn(e.charCodeAt(o+1));if(a===void 0||l===void 0){const u=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+u+'" at index '+o)}n[i]=a*16+l}return n}function la(e){return Hn(_r(e))}function Tt(e){return vr(e),Hn(_r(Uint8Array.from(e).reverse()))}function kn(e,t){return Gn(e.toString(16).padStart(t*2,"0"))}function ur(e,t){return kn(e,t).reverse()}function Ee(e,t,r){let n;if(typeof t=="string")try{n=Gn(t)}catch(o){throw new Error(e+" must be hex string or Uint8Array, cause: "+o)}else if(mr(t))n=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const i=n.length;if(typeof r=="number"&&i!==r)throw new Error(e+" of length "+r+" expected, got "+i);return n}function rn(...e){let t=0;for(let n=0;n<e.length;n++){const i=e[n];vr(i),t+=i.length}const r=new Uint8Array(t);for(let n=0,i=0;n<e.length;n++){const o=e[n];r.set(o,i),i+=o.length}return r}const er=e=>typeof e=="bigint"&&wr<=e;function ha(e,t,r){return er(e)&&er(t)&&er(r)&&t<=e&&e<r}function rt(e,t,r,n){if(!ha(t,r,n))throw new Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}function da(e){let t;for(t=0;e>wr;e>>=$n,t+=1);return t}const pa=e=>(ca<<BigInt(e-1))-$n,ba={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"||mr(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)};function Er(e,t,r={}){const n=(i,o,a)=>{const l=ba[o];if(typeof l!="function")throw new Error("invalid validator function");const u=e[i];if(!(a&&u===void 0)&&!l(u,e))throw new Error("param "+String(i)+" is invalid. Expected "+o+", got "+u)};for(const[i,o]of Object.entries(t))n(i,o,!1);for(const[i,o]of Object.entries(r))n(i,o,!0);return e}function nn(e){const t=new WeakMap;return(r,...n)=>{const i=t.get(r);if(i!==void 0)return i;const o=e(r,...n);return t.set(r,o),o}}const Y=BigInt(0),W=BigInt(1),Ne=BigInt(2),ga=BigInt(3),cr=BigInt(4),on=BigInt(5),sn=BigInt(8);function K(e,t){const r=e%t;return r>=Y?r:t+r}function ya(e,t,r){if(t<Y)throw new Error("invalid exponent, negatives unsupported");if(r<=Y)throw new Error("invalid modulus");if(r===W)return Y;let n=W;for(;t>Y;)t&W&&(n=n*e%r),e=e*e%r,t>>=W;return n}function ye(e,t,r){let n=e;for(;t-- >Y;)n*=n,n%=r;return n}function an(e,t){if(e===Y)throw new Error("invert: expected non-zero number");if(t<=Y)throw new Error("invert: expected positive modulus, got "+t);let r=K(e,t),n=t,i=Y,o=W;for(;r!==Y;){const a=n/r,l=n%r,u=i-o*a;n=r,r=l,i=o,o=u}if(n!==W)throw new Error("invert: does not exist");return K(i,t)}function wa(e){const t=(e-W)/Ne;let r,n,i;for(r=e-W,n=0;r%Ne===Y;r/=Ne,n++);for(i=Ne;i<e&&ya(i,t,e)!==e-W;i++)if(i>1e3)throw new Error("Cannot find square root: likely non-prime P");if(n===1){const a=(e+W)/cr;return function(l,u){const h=l.pow(u,a);if(!l.eql(l.sqr(h),u))throw new Error("Cannot find square root");return h}}const o=(r+W)/Ne;return function(a,l){if(a.pow(l,t)===a.neg(a.ONE))throw new Error("Cannot find square root");let u=n,h=a.pow(a.mul(a.ONE,i),r),f=a.pow(l,o),p=a.pow(l,r);for(;!a.eql(p,a.ONE);){if(a.eql(p,a.ZERO))return a.ZERO;let w=1;for(let b=a.sqr(p);w<u&&!a.eql(b,a.ONE);w++)b=a.sqr(b);const g=a.pow(h,W<<BigInt(u-w-1));h=a.sqr(g),f=a.mul(f,g),p=a.mul(p,h),u=w}return f}}function ma(e){if(e%cr===ga){const t=(e+W)/cr;return function(r,n){const i=r.pow(n,t);if(!r.eql(r.sqr(i),n))throw new Error("Cannot find square root");return i}}if(e%sn===on){const t=(e-on)/sn;return function(r,n){const i=r.mul(n,Ne),o=r.pow(i,t),a=r.mul(n,o),l=r.mul(r.mul(a,Ne),o),u=r.mul(a,r.sub(l,r.ONE));if(!r.eql(r.sqr(u),n))throw new Error("Cannot find square root");return u}}return wa(e)}const va=(e,t)=>(K(e,t)&W)===W,_a=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Ea(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=_a.reduce((n,i)=>(n[i]="function",n),t);return Er(e,r)}function xa(e,t,r){if(r<Y)throw new Error("invalid exponent, negatives unsupported");if(r===Y)return e.ONE;if(r===W)return t;let n=e.ONE,i=t;for(;r>Y;)r&W&&(n=e.mul(n,i)),i=e.sqr(i),r>>=W;return n}function Fa(e,t){const r=new Array(t.length),n=t.reduce((o,a,l)=>e.is0(a)?o:(r[l]=o,e.mul(o,a)),e.ONE),i=e.inv(n);return t.reduceRight((o,a,l)=>e.is0(a)?o:(r[l]=e.mul(o,r[l]),e.mul(o,a)),i),r}function qn(e,t){const r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function Wn(e,t,r=!1,n={}){if(e<=Y)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:i,nByteLength:o}=qn(e,t);if(o>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let a;const l=Object.freeze({ORDER:e,isLE:r,BITS:i,BYTES:o,MASK:pa(i),ZERO:Y,ONE:W,create:u=>K(u,e),isValid:u=>{if(typeof u!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof u);return Y<=u&&u<e},is0:u=>u===Y,isOdd:u=>(u&W)===W,neg:u=>K(-u,e),eql:(u,h)=>u===h,sqr:u=>K(u*u,e),add:(u,h)=>K(u+h,e),sub:(u,h)=>K(u-h,e),mul:(u,h)=>K(u*h,e),pow:(u,h)=>xa(l,u,h),div:(u,h)=>K(u*an(h,e),e),sqrN:u=>u*u,addN:(u,h)=>u+h,subN:(u,h)=>u-h,mulN:(u,h)=>u*h,inv:u=>an(u,e),sqrt:n.sqrt||(u=>(a||(a=ma(e)),a(l,u))),invertBatch:u=>Fa(l,u),cmov:(u,h,f)=>f?h:u,toBytes:u=>r?ur(u,o):kn(u,o),fromBytes:u=>{if(u.length!==o)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+u.length);return r?Tt(u):la(u)}});return Object.freeze(l)}const un=BigInt(0),Bt=BigInt(1);function tr(e,t){const r=t.negate();return e?r:t}function Vn(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function rr(e,t){Vn(e,t);const r=Math.ceil(t/e)+1,n=2**(e-1);return{windows:r,windowSize:n}}function Aa(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((r,n)=>{if(!(r instanceof t))throw new Error("invalid point at index "+n)})}function Sa(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((r,n)=>{if(!t.isValid(r))throw new Error("invalid scalar at index "+n)})}const nr=new WeakMap,Jn=new WeakMap;function ir(e){return Jn.get(e)||1}function Ba(e,t){return{constTimeNegate:tr,hasPrecomputes(r){return ir(r)!==1},unsafeLadder(r,n,i=e.ZERO){let o=r;for(;n>un;)n&Bt&&(i=i.add(o)),o=o.double(),n>>=Bt;return i},precomputeWindow(r,n){const{windows:i,windowSize:o}=rr(n,t),a=[];let l=r,u=l;for(let h=0;h<i;h++){u=l,a.push(u);for(let f=1;f<o;f++)u=u.add(l),a.push(u);l=u.double()}return a},wNAF(r,n,i){const{windows:o,windowSize:a}=rr(r,t);let l=e.ZERO,u=e.BASE;const h=BigInt(2**r-1),f=2**r,p=BigInt(r);for(let w=0;w<o;w++){const g=w*a;let b=Number(i&h);i>>=p,b>a&&(b-=f,i+=Bt);const _=g,R=g+Math.abs(b)-1,P=w%2!==0,I=b<0;b===0?u=u.add(tr(P,n[_])):l=l.add(tr(I,n[R]))}return{p:l,f:u}},wNAFUnsafe(r,n,i,o=e.ZERO){const{windows:a,windowSize:l}=rr(r,t),u=BigInt(2**r-1),h=2**r,f=BigInt(r);for(let p=0;p<a;p++){const w=p*l;if(i===un)break;let g=Number(i&u);if(i>>=f,g>l&&(g-=h,i+=Bt),g===0)continue;let b=n[w+Math.abs(g)-1];g<0&&(b=b.negate()),o=o.add(b)}return o},getPrecomputes(r,n,i){let o=nr.get(n);return o||(o=this.precomputeWindow(n,r),r!==1&&nr.set(n,i(o))),o},wNAFCached(r,n,i){const o=ir(r);return this.wNAF(o,this.getPrecomputes(o,r,i),n)},wNAFCachedUnsafe(r,n,i,o){const a=ir(r);return a===1?this.unsafeLadder(r,n,o):this.wNAFUnsafe(a,this.getPrecomputes(a,r,i),n,o)},setWindowSize(r,n){Vn(n,t),Jn.set(r,n),nr.delete(r)}}}function Oa(e,t,r,n){if(Aa(r,e),Sa(n,t),r.length!==n.length)throw new Error("arrays of points and scalars must have equal length");const i=e.ZERO,o=da(BigInt(r.length)),a=o>12?o-3:o>4?o-2:o?2:1,l=(1<<a)-1,u=new Array(l+1).fill(i),h=Math.floor((t.BITS-1)/a)*a;let f=i;for(let p=h;p>=0;p-=a){u.fill(i);for(let g=0;g<n.length;g++){const b=n[g],_=Number(b>>BigInt(p)&BigInt(l));u[_]=u[_].add(r[g])}let w=i;for(let g=u.length-1,b=i;g>0;g--)b=b.add(u[g]),w=w.add(b);if(f=f.add(w),p!==0)for(let g=0;g<a;g++)f=f.double()}return f}function Ta(e){return Ea(e.Fp),Er(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...qn(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}const he=BigInt(0),ne=BigInt(1),Ot=BigInt(2),Ca=BigInt(8),Ia={zip215:!0};function Ra(e){const t=Ta(e);return Er(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...t})}function La(e){const t=Ra(e),{Fp:r,n,prehash:i,hash:o,randomBytes:a,nByteLength:l,h:u}=t,h=Ot<<BigInt(l*8)-ne,f=r.create,p=Wn(t.n,t.nBitLength),w=t.uvRatio||((x,y)=>{try{return{isValid:!0,value:r.sqrt(x*r.inv(y))}}catch{return{isValid:!1,value:he}}}),g=t.adjustScalarBytes||(x=>x),b=t.domain||((x,y,E)=>{if(Qt("phflag",E),y.length||E)throw new Error("Contexts/pre-hash are not supported");return x});function _(x,y){rt("coordinate "+x,y,he,h)}function R(x){if(!(x instanceof m))throw new Error("ExtendedPoint expected")}const P=nn((x,y)=>{const{ex:E,ey:F,ez:T}=x,C=x.is0();y==null&&(y=C?Ca:r.inv(T));const L=f(E*y),D=f(F*y),j=f(T*y);if(C)return{x:he,y:ne};if(j!==ne)throw new Error("invZ was invalid");return{x:L,y:D}}),I=nn(x=>{const{a:y,d:E}=t;if(x.is0())throw new Error("bad point: ZERO");const{ex:F,ey:T,ez:C,et:L}=x,D=f(F*F),j=f(T*T),M=f(C*C),A=f(M*M),X=f(D*y),ce=f(M*f(X+j)),J=f(A+f(E*f(D*j)));if(ce!==J)throw new Error("bad point: equation left != right (1)");const re=f(F*T),fe=f(C*L);if(re!==fe)throw new Error("bad point: equation left != right (2)");return!0});class m{constructor(y,E,F,T){this.ex=y,this.ey=E,this.ez=F,this.et=T,_("x",y),_("y",E),_("z",F),_("t",T),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(y){if(y instanceof m)throw new Error("extended point not allowed");const{x:E,y:F}=y||{};return _("x",E),_("y",F),new m(E,F,ne,f(E*F))}static normalizeZ(y){const E=r.invertBatch(y.map(F=>F.ez));return y.map((F,T)=>F.toAffine(E[T])).map(m.fromAffine)}static msm(y,E){return Oa(m,p,y,E)}_setWindowSize(y){H.setWindowSize(this,y)}assertValidity(){I(this)}equals(y){R(y);const{ex:E,ey:F,ez:T}=this,{ex:C,ey:L,ez:D}=y,j=f(E*D),M=f(C*T),A=f(F*D),X=f(L*T);return j===M&&A===X}is0(){return this.equals(m.ZERO)}negate(){return new m(f(-this.ex),this.ey,this.ez,f(-this.et))}double(){const{a:y}=t,{ex:E,ey:F,ez:T}=this,C=f(E*E),L=f(F*F),D=f(Ot*f(T*T)),j=f(y*C),M=E+F,A=f(f(M*M)-C-L),X=j+L,ce=X-D,J=j-L,re=f(A*ce),fe=f(X*J),ge=f(A*J),Ae=f(ce*X);return new m(re,fe,Ae,ge)}add(y){R(y);const{a:E,d:F}=t,{ex:T,ey:C,ez:L,et:D}=this,{ex:j,ey:M,ez:A,et:X}=y;if(E===BigInt(-1)){const ft=f((C-T)*(M+j)),lt=f((C+T)*(M-j)),Ze=f(lt-ft);if(Ze===he)return this.double();const ht=f(L*Ot*X),dt=f(D*Ot*A),pt=dt+ht,bt=lt+ft,gt=dt-ht,De=f(pt*Ze),Ye=f(bt*gt),yt=f(pt*gt),oe=f(Ze*bt);return new m(De,Ye,oe,yt)}const ce=f(T*j),J=f(C*M),re=f(D*F*X),fe=f(L*A),ge=f((T+C)*(j+M)-ce-J),Ae=fe-re,Je=fe+re,Ke=f(J-E*ce),Dt=f(ge*Ae),Mt=f(Je*Ke),$t=f(ge*Ke),Ht=f(Ae*Je);return new m(Dt,Mt,Ht,$t)}subtract(y){return this.add(y.negate())}wNAF(y){return H.wNAFCached(this,y,m.normalizeZ)}multiply(y){const E=y;rt("scalar",E,ne,n);const{p:F,f:T}=this.wNAF(E);return m.normalizeZ([F,T])[0]}multiplyUnsafe(y,E=m.ZERO){const F=y;return rt("scalar",F,he,n),F===he?N:this.is0()||F===ne?this:H.wNAFCachedUnsafe(this,F,m.normalizeZ,E)}isSmallOrder(){return this.multiplyUnsafe(u).is0()}isTorsionFree(){return H.unsafeLadder(this,n).is0()}toAffine(y){return P(this,y)}clearCofactor(){const{h:y}=t;return y===ne?this:this.multiplyUnsafe(y)}static fromHex(y,E=!1){const{d:F,a:T}=t,C=r.BYTES;y=Ee("pointHex",y,C),Qt("zip215",E);const L=y.slice(),D=y[C-1];L[C-1]=D&-129;const j=Tt(L),M=E?h:r.ORDER;rt("pointHex.y",j,he,M);const A=f(j*j),X=f(A-ne),ce=f(F*A-T);let{isValid:J,value:re}=w(X,ce);if(!J)throw new Error("Point.fromHex: invalid y coordinate");const fe=(re&ne)===ne,ge=(D&128)!==0;if(!E&&re===he&&ge)throw new Error("Point.fromHex: x=0 and x_0=1");return ge!==fe&&(re=f(-re)),m.fromAffine({x:re,y:j})}static fromPrivateKey(y){return q(y).point}toRawBytes(){const{x:y,y:E}=this.toAffine(),F=ur(E,r.BYTES);return F[F.length-1]|=y&ne?128:0,F}toHex(){return _r(this.toRawBytes())}}m.BASE=new m(t.Gx,t.Gy,ne,f(t.Gx*t.Gy)),m.ZERO=new m(he,ne,ne,he);const{BASE:O,ZERO:N}=m,H=Ba(m,l*8);function k(x){return K(x,n)}function z(x){return k(Tt(x))}function q(x){const y=r.BYTES;x=Ee("private key",x,y);const E=Ee("hashed private key",o(x),2*y),F=g(E.slice(0,y)),T=E.slice(y,2*y),C=z(F),L=O.multiply(C),D=L.toRawBytes();return{head:F,prefix:T,scalar:C,point:L,pointBytes:D}}function pe(x){return q(x).pointBytes}function be(x=new Uint8Array,...y){const E=rn(...y);return z(o(b(E,Ee("context",x),!!i)))}function ue(x,y,E={}){x=Ee("message",x),i&&(x=i(x));const{prefix:F,scalar:T,pointBytes:C}=q(y),L=be(E.context,F,x),D=O.multiply(L).toRawBytes(),j=be(E.context,D,C,x),M=k(L+j*T);rt("signature.s",M,he,n);const A=rn(D,ur(M,r.BYTES));return Ee("result",A,r.BYTES*2)}const Ie=Ia;function Ve(x,y,E,F=Ie){const{context:T,zip215:C}=F,L=r.BYTES;x=Ee("signature",x,2*L),y=Ee("message",y),E=Ee("publicKey",E,L),C!==void 0&&Qt("zip215",C),i&&(y=i(y));const D=Tt(x.slice(L,2*L));let j,M,A;try{j=m.fromHex(E,C),M=m.fromHex(x.slice(0,L),C),A=O.multiplyUnsafe(D)}catch{return!1}if(!C&&j.isSmallOrder())return!1;const X=be(T,M.toRawBytes(),j.toRawBytes(),y);return M.add(j.multiplyUnsafe(X)).subtract(A).clearCofactor().equals(m.ZERO)}return O._setWindowSize(8),{CURVE:t,getPublicKey:pe,sign:ue,verify:Ve,ExtendedPoint:m,utils:{getExtendedPublicKey:q,randomPrivateKey:()=>a(r.BYTES),precompute(x=8,y=m.BASE){return y._setWindowSize(x),y.multiply(BigInt(3)),y}}}}BigInt(0),BigInt(1);const xr=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),cn=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const Pa=BigInt(1),fn=BigInt(2);BigInt(3);const ja=BigInt(5),Ua=BigInt(8);function Na(e){const t=BigInt(10),r=BigInt(20),n=BigInt(40),i=BigInt(80),o=xr,a=e*e%o*e%o,l=ye(a,fn,o)*a%o,u=ye(l,Pa,o)*e%o,h=ye(u,ja,o)*u%o,f=ye(h,t,o)*h%o,p=ye(f,r,o)*f%o,w=ye(p,n,o)*p%o,g=ye(w,i,o)*w%o,b=ye(g,i,o)*w%o,_=ye(b,t,o)*h%o;return{pow_p_5_8:ye(_,fn,o)*e%o,b2:a}}function za(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}function Da(e,t){const r=xr,n=K(t*t*t,r),i=K(n*n*t,r),o=Na(e*i).pow_p_5_8;let a=K(e*n*o,r);const l=K(t*a*a,r),u=a,h=K(a*cn,r),f=l===e,p=l===K(-e,r),w=l===K(-e*cn,r);return f&&(a=u),(p||w)&&(a=h),va(a,r)&&(a=K(-a,r)),{isValid:f||p,value:a}}const Ma=Wn(xr,void 0,!0),$a={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:Ma,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:Ua,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:ua,randomBytes:Dn,adjustScalarBytes:za,uvRatio:Da},Kn=La($a),Ha="EdDSA",Ga="JWT",Rt=".",Ut="base64url",Zn="utf8",Yn="utf8",ka=":",qa="did",Wa="key",ln="base58btc",Va="z",Ja="K36",Ka=32;function Fr(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function Xn(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?Fr(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function Qn(e,t){t||(t=e.reduce((i,o)=>i+o.length,0));const r=Xn(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return Fr(r)}function Za(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),a=o.charCodeAt(0);if(r[a]!==255)throw new TypeError(o+" is ambiguous");r[a]=i}var l=e.length,u=e.charAt(0),h=Math.log(l)/Math.log(256),f=Math.log(256)/Math.log(l);function p(b){if(b instanceof Uint8Array||(ArrayBuffer.isView(b)?b=new Uint8Array(b.buffer,b.byteOffset,b.byteLength):Array.isArray(b)&&(b=Uint8Array.from(b))),!(b instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(b.length===0)return"";for(var _=0,R=0,P=0,I=b.length;P!==I&&b[P]===0;)P++,_++;for(var m=(I-P)*f+1>>>0,O=new Uint8Array(m);P!==I;){for(var N=b[P],H=0,k=m-1;(N!==0||H<R)&&k!==-1;k--,H++)N+=256*O[k]>>>0,O[k]=N%l>>>0,N=N/l>>>0;if(N!==0)throw new Error("Non-zero carry");R=H,P++}for(var z=m-R;z!==m&&O[z]===0;)z++;for(var q=u.repeat(_);z<m;++z)q+=e.charAt(O[z]);return q}function w(b){if(typeof b!="string")throw new TypeError("Expected String");if(b.length===0)return new Uint8Array;var _=0;if(b[_]!==" "){for(var R=0,P=0;b[_]===u;)R++,_++;for(var I=(b.length-_)*h+1>>>0,m=new Uint8Array(I);b[_];){var O=r[b.charCodeAt(_)];if(O===255)return;for(var N=0,H=I-1;(O!==0||N<P)&&H!==-1;H--,N++)O+=l*m[H]>>>0,m[H]=O%256>>>0,O=O/256>>>0;if(O!==0)throw new Error("Non-zero carry");P=N,_++}if(b[_]!==" "){for(var k=I-P;k!==I&&m[k]===0;)k++;for(var z=new Uint8Array(R+(I-k)),q=R;k!==I;)z[q++]=m[k++];return z}}}function g(b){var _=w(b);if(_)return _;throw new Error(`Non-${t} character`)}return{encode:p,decodeUnsafe:w,decode:g}}var Ya=Za,Xa=Ya;const ei=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},Qa=e=>new TextEncoder().encode(e),eu=e=>new TextDecoder().decode(e);class tu{constructor(t,r,n){this.name=t,this.prefix=r,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class ru{constructor(t,r,n){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return ti(this,t)}}class nu{constructor(t){this.decoders=t}or(t){return ti(this,t)}decode(t){const r=t[0],n=this.decoders[r];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const ti=(e,t)=>new nu({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class iu{constructor(t,r,n,i){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new tu(t,r,n),this.decoder=new ru(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const Nt=({name:e,prefix:t,encode:r,decode:n})=>new iu(e,t,r,n),ct=({prefix:e,name:t,alphabet:r})=>{const{encode:n,decode:i}=Xa(r,t);return Nt({prefix:e,name:t,encode:n,decode:o=>ei(i(o))})},ou=(e,t,r,n)=>{const i={};for(let f=0;f<t.length;++f)i[t[f]]=f;let o=e.length;for(;e[o-1]==="=";)--o;const a=new Uint8Array(o*r/8|0);let l=0,u=0,h=0;for(let f=0;f<o;++f){const p=i[e[f]];if(p===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|p,l+=r,l>=8&&(l-=8,a[h++]=255&u>>l)}if(l>=r||255&u<<8-l)throw new SyntaxError("Unexpected end of data");return a},su=(e,t,r)=>{const n=t[t.length-1]==="=",i=(1<<r)-1;let o="",a=0,l=0;for(let u=0;u<e.length;++u)for(l=l<<8|e[u],a+=8;a>r;)a-=r,o+=t[i&l>>a];if(a&&(o+=t[i&l<<r-a]),n)for(;o.length*r&7;)o+="=";return o},ee=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>Nt({prefix:t,name:e,encode(i){return su(i,n,r)},decode(i){return ou(i,n,r,e)}}),au=Nt({prefix:"\0",name:"identity",encode:e=>eu(e),decode:e=>Qa(e)});var uu=Object.freeze({__proto__:null,identity:au});const cu=ee({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var fu=Object.freeze({__proto__:null,base2:cu});const lu=ee({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var hu=Object.freeze({__proto__:null,base8:lu});const du=ct({prefix:"9",name:"base10",alphabet:"0123456789"});var pu=Object.freeze({__proto__:null,base10:du});const bu=ee({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),gu=ee({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var yu=Object.freeze({__proto__:null,base16:bu,base16upper:gu});const wu=ee({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),mu=ee({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),vu=ee({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),_u=ee({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Eu=ee({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),xu=ee({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Fu=ee({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Au=ee({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Su=ee({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Bu=Object.freeze({__proto__:null,base32:wu,base32upper:mu,base32pad:vu,base32padupper:_u,base32hex:Eu,base32hexupper:xu,base32hexpad:Fu,base32hexpadupper:Au,base32z:Su});const Ou=ct({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Tu=ct({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var Cu=Object.freeze({__proto__:null,base36:Ou,base36upper:Tu});const Iu=ct({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Ru=ct({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Lu=Object.freeze({__proto__:null,base58btc:Iu,base58flickr:Ru});const Pu=ee({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),ju=ee({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Uu=ee({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Nu=ee({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var zu=Object.freeze({__proto__:null,base64:Pu,base64pad:ju,base64url:Uu,base64urlpad:Nu});const ri=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),Du=ri.reduce((e,t,r)=>(e[r]=t,e),[]),Mu=ri.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function $u(e){return e.reduce((t,r)=>(t+=Du[r],t),"")}function Hu(e){const t=[];for(const r of e){const n=Mu[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}const Gu=Nt({prefix:"🚀",name:"base256emoji",encode:$u,decode:Hu});var ku=Object.freeze({__proto__:null,base256emoji:Gu}),qu=ni,hn=128,Wu=-128,Vu=Math.pow(2,31);function ni(e,t,r){t=t||[],r=r||0;for(var n=r;e>=Vu;)t[r++]=e&255|hn,e/=128;for(;e&Wu;)t[r++]=e&255|hn,e>>>=7;return t[r]=e|0,ni.bytes=r-n+1,t}var Ju=fr,Ku=128,dn=127;function fr(e,n){var r=0,n=n||0,i=0,o=n,a,l=e.length;do{if(o>=l)throw fr.bytes=0,new RangeError("Could not decode varint");a=e[o++],r+=i<28?(a&dn)<<i:(a&dn)*Math.pow(2,i),i+=7}while(a>=Ku);return fr.bytes=o-n,r}var Zu=Math.pow(2,7),Yu=Math.pow(2,14),Xu=Math.pow(2,21),Qu=Math.pow(2,28),ec=Math.pow(2,35),tc=Math.pow(2,42),rc=Math.pow(2,49),nc=Math.pow(2,56),ic=Math.pow(2,63),oc=function(e){return e<Zu?1:e<Yu?2:e<Xu?3:e<Qu?4:e<ec?5:e<tc?6:e<rc?7:e<nc?8:e<ic?9:10},sc={encode:qu,decode:Ju,encodingLength:oc},ii=sc;const pn=(e,t,r=0)=>(ii.encode(e,t,r),t),bn=e=>ii.encodingLength(e),lr=(e,t)=>{const r=t.byteLength,n=bn(e),i=n+bn(r),o=new Uint8Array(i+r);return pn(e,o,0),pn(r,o,n),o.set(t,i),new ac(e,r,t,o)};class ac{constructor(t,r,n,i){this.code=t,this.size=r,this.digest=n,this.bytes=i}}const oi=({name:e,code:t,encode:r})=>new uc(e,t,r);class uc{constructor(t,r,n){this.name=t,this.code=r,this.encode=n}digest(t){if(t instanceof Uint8Array){const r=this.encode(t);return r instanceof Uint8Array?lr(this.code,r):r.then(n=>lr(this.code,n))}else throw Error("Unknown type, must be binary type")}}const si=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),cc=oi({name:"sha2-256",code:18,encode:si("SHA-256")}),fc=oi({name:"sha2-512",code:19,encode:si("SHA-512")});var lc=Object.freeze({__proto__:null,sha256:cc,sha512:fc});const ai=0,hc="identity",ui=ei,dc=e=>lr(ai,ui(e)),pc={code:ai,name:hc,encode:ui,digest:dc};var bc=Object.freeze({__proto__:null,identity:pc});new TextEncoder,new TextDecoder;const gn={...uu,...fu,...hu,...pu,...yu,...Bu,...Cu,...Lu,...zu,...ku};({...lc,...bc});function ci(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}const yn=ci("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),or=ci("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);const t=Xn(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),fi={utf8:yn,"utf-8":yn,hex:gn.base16,latin1:or,ascii:or,binary:or,...gn};function zt(e,t="utf8"){const r=fi[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);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)}function We(e,t="utf8"){const r=fi[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?Fr(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}function wn(e){return br(zt(We(e,Ut),Zn))}function Lt(e){return zt(We(qe(e),Zn),Ut)}function li(e){const t=We(Ja,ln),r=Va+zt(Qn([t,e]),ln);return[qa,Wa,r].join(ka)}function gc(e){return zt(e,Ut)}function yc(e){return We(e,Ut)}function wc(e){return We([Lt(e.header),Lt(e.payload)].join(Rt),Yn)}function mc(e){return[Lt(e.header),Lt(e.payload),gc(e.signature)].join(Rt)}function vc(e){const t=e.split(Rt),r=wn(t[0]),n=wn(t[1]),i=yc(t[2]),o=We(t.slice(0,2).join(Rt),Yn);return{header:r,payload:n,signature:i,data:o}}function _c(e=Dn(Ka)){const t=Kn.getPublicKey(e);return{secretKey:Qn([e,t]),publicKey:t}}async function Ec(e,t,r,n,i=de.cjs.fromMiliseconds(Date.now())){const o={alg:Ha,typ:Ga},a=li(n.publicKey),l=i+r,u={iss:a,sub:e,aud:t,iat:i,exp:l},h=wc({header:o,payload:u}),f=Kn.sign(h,n.secretKey.slice(0,32));return mc({header:o,payload:u,signature:f})}const xc="PARSE_ERROR",Fc="INVALID_REQUEST",Ac="METHOD_NOT_FOUND",Sc="INVALID_PARAMS",hi="INTERNAL_ERROR",Ar="SERVER_ERROR",Bc=[-32700,-32600,-32601,-32602,-32603],nt={[xc]:{code:-32700,message:"Parse error"},[Fc]:{code:-32600,message:"Invalid Request"},[Ac]:{code:-32601,message:"Method not found"},[Sc]:{code:-32602,message:"Invalid params"},[hi]:{code:-32603,message:"Internal error"},[Ar]:{code:-32e3,message:"Server error"}},di=Ar;function Oc(e){return Bc.includes(e)}function mn(e){return Object.keys(nt).includes(e)?nt[e]:nt[di]}function Tc(e){const t=Object.values(nt).find(r=>r.code===e);return t||nt[di]}function pi(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${t}`):e}var bi={};/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a8 as po, a9 as bo, aa as go, ab as wo, ac as yo, ad as vo, ae as mo, af as _o, ag as xo, ah as Eo, a3 as Fo } from "./index-
|
|
2
|
-
import { d as Ne, g as Bn, V as Ao, U as ge } from "./address-
|
|
3
|
-
import { e as Bo } from "./index-
|
|
4
|
-
import { o as $r } from "./browser-ponyfill-
|
|
1
|
+
import { a8 as po, a9 as bo, aa as go, ab as wo, ac as yo, ad as vo, ae as mo, af as _o, ag as xo, ah as Eo, a3 as Fo } from "./index-CNWcuxPc.mjs";
|
|
2
|
+
import { d as Ne, g as Bn, V as Ao, U as ge } from "./address-BkeBsCZD.mjs";
|
|
3
|
+
import { e as Bo } from "./index-Dpefdrdb.mjs";
|
|
4
|
+
import { o as $r } from "./browser-ponyfill-B32wgiqZ.mjs";
|
|
5
5
|
function Sn(e = 0) {
|
|
6
6
|
return globalThis.Buffer != null && globalThis.Buffer.allocUnsafe != null ? globalThis.Buffer.allocUnsafe(e) : new Uint8Array(e);
|
|
7
7
|
}
|