@wormhole-foundation/wormhole-connect 0.3.22-beta.6-development → 0.3.23-beta.0-development

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/assets/{ccip-kFE7Egv7.js → ccip-BOQxYwA4.js} +1 -1
  2. package/dist/assets/cosmos-DpJHRy9R.js +38 -0
  3. package/dist/assets/{cosmwasm-K-vi4me_.js → cosmwasm-Dngp91th.js} +3 -3
  4. package/dist/assets/{ens-validation.es6-BaHGKtnQ.js → ens-validation.es6-DY5iRcEw.js} +1 -1
  5. package/dist/assets/{evm-DyQ3Up1i.js → evm-CXBiqSp9.js} +26 -26
  6. package/dist/assets/{index-Dqd4pSig.js → index-BhecnthD.js} +1 -1
  7. package/dist/assets/{index-EkdPNlSn.js → index-BphOrDO3.js} +1 -1
  8. package/dist/assets/index-BqmJ5ps2.js +3 -0
  9. package/dist/assets/{index-6ERMnMWg.js → index-CX56YBaw.js} +1 -1
  10. package/dist/assets/{index-Ci7BRqEw.js → index-DBB96cBs.js} +2 -2
  11. package/dist/assets/{index-BC4s7rDX.js → index-DwWFp7_d.js} +1 -1
  12. package/dist/assets/{index.es-BnzPN21S.js → index.es-BWLyUn8A.js} +2 -2
  13. package/dist/assets/{solana-D0TX7DHf.js → solana-C3hk0iY4.js} +2 -2
  14. package/dist/assets/{solanaEmbed.esm-CBOtlgbY.js → solanaEmbed.esm-Bzvc2Yau.js} +1 -1
  15. package/dist/assets/{unsignedTransaction-CWlZwFZw.js → unsignedTransaction-DhgJ038I.js} +1 -1
  16. package/dist/main.js +9 -9
  17. package/dist/src/utils/wallet/evm.d.ts.map +1 -1
  18. package/lib/{algorand-DjUTtqxk.mjs → algorand-kK-8oojN.mjs} +4 -4
  19. package/lib/{algorand-BgVfTPrs.js → algorand-mZNvVCps.js} +1 -1
  20. package/lib/{aptos-xxNUHC8o.mjs → aptos-C8ttM75J.mjs} +4 -4
  21. package/lib/{aptos-JOeRwo7r.js → aptos-CfDDJUg1.js} +2 -2
  22. package/lib/{aptos-CVVZJ32U.js → aptos-Dct_m6Gg.js} +1 -1
  23. package/lib/{aptos-BmyHkXb6.mjs → aptos-DgRBytsM.mjs} +1 -1
  24. package/lib/{browser-B_2ji4LP.mjs → browser-Bf0arMap.mjs} +2 -2
  25. package/lib/{browser-EzqecQNA.js → browser-DVTB-WO0.js} +1 -1
  26. package/lib/{browser-ponyfill-yx2re7P5.mjs → browser-ponyfill-BBGnYIgf.mjs} +1 -1
  27. package/lib/{browser-ponyfill-DH_DuJjr.js → browser-ponyfill-CtGm2L9z.js} +1 -1
  28. package/lib/{ccip-B2atrHiU.js → ccip-BQ7Z_goB.js} +1 -1
  29. package/lib/{ccip-JjlhOiF-.mjs → ccip-DzflCjUZ.mjs} +1 -1
  30. package/lib/{chain-BE2gm6l5.mjs → chain-D1Ms6bPc.mjs} +1 -1
  31. package/lib/{chain-Ck_2P-B0.js → chain-HMnpkrbl.js} +1 -1
  32. package/lib/{cosmos-BqA6T2gQ.mjs → cosmos-BIzn30Lo.mjs} +6 -6
  33. package/lib/cosmos-DFeWBfwa.js +38 -0
  34. package/lib/{cosmwasm-dpMbVaHd.mjs → cosmwasm-CYZkMUNw.mjs} +6 -6
  35. package/lib/{cosmwasm-D8-LmG14.js → cosmwasm-Cw-jZjyR.js} +2 -2
  36. package/lib/{create-CONoHCNu.js → create-BjUw-7kj.js} +1 -1
  37. package/lib/{create-NSzn0Mjd.mjs → create-D7KM2TbJ.mjs} +1 -1
  38. package/lib/{ens-validation.es6-DQMHfHaf.js → ens-validation.es6-CSendvHo.js} +1 -1
  39. package/lib/{ens-validation.es6-SwNVNlnL.mjs → ens-validation.es6-CtTsD9-1.mjs} +2 -2
  40. package/lib/{evm-BzbkH6iw.mjs → evm-2ARfiEbk.mjs} +6 -6
  41. package/lib/{evm-DQDZ6407.js → evm-CyCIXNVR.js} +22 -22
  42. package/lib/{evm-D7ExbjR0.mjs → evm-WeYh1CwH.mjs} +1588 -1596
  43. package/lib/{evm-CNyEgAvC.js → evm-vq8ExBtp.js} +2 -2
  44. package/lib/{index-BRY7PwCe.mjs → index-4Diyx7dk.mjs} +3 -3
  45. package/lib/{index-CHDQPgcS.mjs → index-6g1GFCCq.mjs} +2 -2
  46. package/lib/{index-Dz2gv_XI.mjs → index-9ZdnzH2d.mjs} +5 -5
  47. package/lib/{index-DzX0K2kv.js → index-B1oIabF3.js} +1 -1
  48. package/lib/{index-BiJV97Xz.js → index-B3xO-Vlp.js} +1 -1
  49. package/lib/{index-BG34ZjNr.mjs → index-B4Wo5ciI.mjs} +4 -4
  50. package/lib/{index-NS46gHyL.js → index-B9iI7y0N.js} +1 -1
  51. package/lib/{index-uwGV-Vn3.js → index-BC9O3q0O.js} +1 -1
  52. package/lib/{index-eFtXd025.mjs → index-BFLX4WxO.mjs} +4 -4
  53. package/lib/{index-gM7Zj76T.js → index-BPsT8R1K.js} +1 -1
  54. package/lib/{index-7ZAqkUlU.mjs → index-BSAsS8RD.mjs} +1 -1
  55. package/lib/{index-CD_ekrEI.mjs → index-BYDoWQJF.mjs} +4 -4
  56. package/lib/{index-XH2z1iXX.mjs → index-BaO4Z093.mjs} +3 -3
  57. package/lib/{index-Bd6oWjRV.mjs → index-BeO_qTcl.mjs} +2 -2
  58. package/lib/{index-wj32vNhH.js → index-BhOoVwl8.js} +1 -1
  59. package/lib/{index-DvQrjwKV.mjs → index-BtObdPhn.mjs} +4 -4
  60. package/lib/{index-DW-MTqZy.mjs → index-BzX2BW_O.mjs} +4 -4
  61. package/lib/{index-BgYENi3t.js → index-C2c8vR42.js} +1 -1
  62. package/lib/{index-6ZiA60gP.js → index-C2oD47lT.js} +1 -1
  63. package/lib/{index-DQR7qDM7.mjs → index-C6mDtHMX.mjs} +86 -88
  64. package/lib/{index-hyVeTz05.js → index-C9SlTWZB.js} +1 -1
  65. package/lib/{index-BYInpg-j.js → index-CHc9Fnxq.js} +1 -1
  66. package/lib/{index-Dh1gwYHK.js → index-CIbWgDdT.js} +1 -1
  67. package/lib/{index-ClJ9xKH_.js → index-CJWNAIq4.js} +1 -1
  68. package/lib/{index-SL51oRv6.mjs → index-CK0z65I9.mjs} +4 -4
  69. package/lib/{index-BNxdQt8p.js → index-CMB6PdWJ.js} +1 -1
  70. package/lib/{index-BozvRZRr.mjs → index-CMxa7eqf.mjs} +5 -5
  71. package/lib/{index-CeTuOmVc.mjs → index-CNSXR9tB.mjs} +5 -5
  72. package/lib/{index-BCRhQQj3.mjs → index-CV1VV-zJ.mjs} +3 -3
  73. package/lib/{index-B3EOWCDT.js → index-CxrhBQyI.js} +1 -1
  74. package/lib/{index-BS-5mncz.mjs → index-CyGeUScn.mjs} +5 -5
  75. package/lib/index-D5ZI8OQ5.js +3 -0
  76. package/lib/{index-DsuNqUD-.mjs → index-DAY2C3ja.mjs} +4 -4
  77. package/lib/{index-Ci2ZLtDV.js → index-DHPvJyI7.js} +1 -1
  78. package/lib/{index-THgGZbp0.js → index-DMbFl-Wn.js} +1 -1
  79. package/lib/{index-DkLEkXih.mjs → index-DVFnDDyZ.mjs} +4 -4
  80. package/lib/{index-DuiRxqsN.js → index-DjAqAqeU.js} +1 -1
  81. package/lib/{index-9m7TBK6v.mjs → index-EqiiaA9-.mjs} +4 -4
  82. package/lib/{index-BRSYiZGo.js → index-GooDQIzI.js} +1 -1
  83. package/lib/{index-BtH96J3O.mjs → index-IQlvm76i.mjs} +72 -72
  84. package/lib/{index-iNOxku8i.js → index-Jgr_mZ4Y.js} +1 -1
  85. package/lib/{index-D4hS9TeC.js → index-L9bSVF77.js} +1 -1
  86. package/lib/{index-Rl2MOwgU.mjs → index-f8fcieOQ.mjs} +4 -4
  87. package/lib/{index-C7tR7eyI.js → index-k5MpmioF.js} +1 -1
  88. package/lib/{index-_YUXIUK8.js → index-nxd7L_DD.js} +1 -1
  89. package/lib/{index-GGqf7rB-.mjs → index-qsqnFs3a.mjs} +2 -2
  90. package/lib/{index-Dh6Zmu7D.js → index-rtZ91I3M.js} +8 -8
  91. package/lib/{index-Fv3-CE1p.mjs → index-yG0Rs8Eb.mjs} +2 -2
  92. package/lib/{index.es-CKpdDKzf.mjs → index.es-CEImaU7l.mjs} +5 -5
  93. package/lib/{index.es-Bj1J4jCu.js → index.es-gwZvea5f.js} +2 -2
  94. package/lib/index.js +1 -1
  95. package/lib/index.mjs +1 -1
  96. package/lib/{libsodium-wrappers-Dta7f8ar.js → libsodium-wrappers-Bez_KKB1.js} +1 -1
  97. package/lib/{libsodium-wrappers-B_H4aRTY.mjs → libsodium-wrappers-Cz0uCBox.mjs} +1 -1
  98. package/lib/{sei-UDsMKtbc.mjs → sei-BYR1KxHW.mjs} +2 -2
  99. package/lib/{sei-DGdkVzbE.js → sei-BrTMqCke.js} +1 -1
  100. package/lib/{solana-CkviJVw5.js → solana-0RqhvUa1.js} +1 -1
  101. package/lib/{solana-DPaJOryR.mjs → solana-BLtdLKKq.mjs} +3 -3
  102. package/lib/{solana-C9YVHn-W.mjs → solana-CRbkLsWk.mjs} +6 -6
  103. package/lib/{solana-BZhGAwx6.js → solana-D3NR_tHO.js} +2 -2
  104. package/lib/{solanaEmbed.esm-DnssMltk.mjs → solanaEmbed.esm-CaR2Md_k.mjs} +2 -2
  105. package/lib/{solanaEmbed.esm-C0UDKbGU.js → solanaEmbed.esm-E-eNJK6U.js} +1 -1
  106. package/lib/src/utils/wallet/evm.d.ts.map +1 -1
  107. package/lib/{sui-8btJKilJ.mjs → sui-BZ_uS8zP.mjs} +1 -1
  108. package/lib/{sui-c83-J_ow.js → sui-CErMMm5A.js} +2 -2
  109. package/lib/{sui-CUfyUGKk.mjs → sui-DeoYmh3N.mjs} +4 -4
  110. package/lib/{sui-6-wJdSqv.js → sui-T81Wy4dP.js} +1 -1
  111. package/lib/{unsignedTransaction-CWjweDuU.js → unsignedTransaction-DCa77QzH.js} +1 -1
  112. package/lib/{unsignedTransaction-C293HA6V.mjs → unsignedTransaction-DJSAg3zT.mjs} +2 -2
  113. package/package.json +1 -1
  114. package/dist/assets/cosmos-BUbSl2Zd.js +0 -38
  115. package/dist/assets/index-5a-xin_S.js +0 -3
  116. package/lib/cosmos-arjQyma2.js +0 -38
  117. package/lib/index-CgyVAtoK.js +0 -3
@@ -1,5 +1,5 @@
1
- const __vite__fileDeps=["assets/index-EkdPNlSn.js","assets/create-8iCA8uMR.js","main.js","main.css","assets/chain-DNXEv05f.js","assets/ens-validation.es6-BaHGKtnQ.js","assets/index-5a-xin_S.js","assets/index-Dqd4pSig.js","assets/unsignedTransaction-CWlZwFZw.js","assets/index-6ERMnMWg.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- var Gf=Object.defineProperty;var Kf=(e,t,n)=>t in e?Gf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var E=(e,t,n)=>(Kf(e,typeof t!="symbol"?t+"":t,n),n);import{bd as Fr,ax as Ps,aw as nc,ay as zf,b5 as rc,be as _n,p as h,a2 as _o,D as Rt,X as Qf,d as U,x as hd,Y as Cf,Z as bd,$ as Yf,a0 as Xf,bf as Zf,a1 as ep,n as vd,bg as is,bh as tp,bi as np,bj as rp,bk as sc,bl as wd,bm as _d,bn as sp,bo as op,am as Sn,an as ip,bp as ap,bq as cp,br as up,bs as lp,bt as dp,bu as oc,bv as mp,bw as fp,bx as pp,by as gp,bz as yp,bA as hp,bB as bp,bC as vp,bD as ic,bE as wp,bF as _p,bG as Sp,bH as Ap,bI as Pp,bJ as kp,bK as Ep,bL as Tp,bM as Op,bN as Ip,bO as Bp,bP as ac,bQ as Np,bR as Mp,bS as Rp,bT as jp,bU as Dp,ao as Up,bV as Sd,bW as Ad,bX as Pd,bY as $p,aq as xp,bZ as Ui,b1 as $i,b6 as Hp,aJ as qp,b_ as Fp,az as Vp,aA as Lp,aB as Wp,aC as xi,aD as Jp,aE as Gp,I as w,L as ue,J as lt,g as Kp,b9 as Ge,y as zs,S as zp,K as Qp,b$ as Cp,c0 as Qs,ag as Yp,c1 as Xp,c2 as Hi,c3 as Xc,c4 as Zc,c5 as eu,c6 as Zp,c7 as eg,_ as qi,aH as tg}from"../main.js";import{C as ng,P as rg}from"./chain-DNXEv05f.js";import{g as sg,s as Sa,a as kd,k as Aa,d as tu}from"./ens-validation.es6-BaHGKtnQ.js";var nu;(function(e){e.Erc20Contract="erc20-contract",e.Peggy="peggy-contract",e.PeggyOld="peggy-old-contract"})(nu||(nu={}));var Pa;(function(e){e.Auction="chain-auction",e.Auth="chain-auth",e.Authz="chain-authz",e.Bank="chain-bank",e.Distribution="chain-distribution",e.Exchange="chain-exchange",e.Gov="chain-gov",e.Ibc="chain-ibc",e.InsuranceFund="chain-insurance",e.Mint="chain-mint",e.Oracle="chain-oracle",e.Peggy="chain-peggy",e.Staking="chain-staking",e.Wasm="chain-wasm",e.WasmX="chain-wasmx",e.Tendermint="chain-tendermint"})(Pa||(Pa={}));var ka;(function(e){e.Account="indexer-account",e.Auction="indexer-auction",e.Derivatives="indexer-derivatives",e.Explorer="indexer-explorer",e.InsuranceFund="indexer-insurance-fund",e.Meta="indexer-meta",e.Mito="indexer-mito",e.Dmm="dmm",e.Oracle="indexer-oracle",e.Portfolio="indexer-portfolio",e.Spot="indexer-spot",e.Transaction="indexer-transaction",e.Trading="indexer-trading",e.ChronosDerivative="indexer-chronos-derivative",e.ChronosSpot="indexer-chronos-spot",e.ChronosMarkets="indexer-chronos-markets",e.Campaign="indexer-campaign"})(ka||(ka={}));var ru;(function(e){e.SignTransaction="sign-transaction",e.SignEthereumTransaction="sign-ethereum-transaction",e.SendTransaction="send-transaction",e.SendEthereumTransaction="send-ethereum-transaction",e.SignArbitrary="sign-arbitrary",e.GetAccounts="get-accounts",e.GetNetworkId="get-network-id",e.GetChainId="get-chain-id",e.GetEthereumTransactionReceipt="get-ethereum-transaction-receipt"})(ru||(ru={}));var su;(function(e){e.Auction="auction",e.CosmosSdk="sdk",e.Staking="staking",e.Bank="bank",e.Distribution="distribution",e.Gov="gov",e.Exchange="exchange",e.Insurance="insurance",e.Ocr="ocr",e.Oracle="oracle",e.Peggy="peggy",e.TokenFactory="tokenfactory",e.Wasmx="wasmx",e.Wasm="wasm",e.AuthZ="authz"})(su||(su={}));var ou;(function(e){e[e.ErrTxDecode=2]="ErrTxDecode",e[e.ErrInvalidSequence=3]="ErrInvalidSequence",e[e.ErrUnauthorized=4]="ErrUnauthorized",e[e.ErrInsufficientFunds=5]="ErrInsufficientFunds",e[e.ErrUnknownRequest=6]="ErrUnknownRequest",e[e.ErrInvalidAddress=7]="ErrInvalidAddress",e[e.ErrInvalidPubKey=8]="ErrInvalidPubKey",e[e.ErrUnknownAddress=9]="ErrUnknownAddress",e[e.ErrInvalidCoins=10]="ErrInvalidCoins",e[e.ErrOutOfGas=11]="ErrOutOfGas",e[e.ErrMemoTooLarge=12]="ErrMemoTooLarge",e[e.ErrInsufficientFee=13]="ErrInsufficientFee",e[e.ErrTooManySignatures=14]="ErrTooManySignatures",e[e.ErrNoSignatures=15]="ErrNoSignatures",e[e.ErrJSONMarshal=16]="ErrJSONMarshal",e[e.ErrJSONUnmarshal=17]="ErrJSONUnmarshal",e[e.ErrInvalidRequest=18]="ErrInvalidRequest",e[e.ErrTxInMempoolCache=19]="ErrTxInMempoolCache",e[e.ErrMempoolIsFull=20]="ErrMempoolIsFull",e[e.ErrTxTooLarge=21]="ErrTxTooLarge",e[e.ErrKeyNotFound=22]="ErrKeyNotFound",e[e.ErrWrongPassword=23]="ErrWrongPassword",e[e.ErrorInvalidSigner=24]="ErrorInvalidSigner",e[e.ErrorInvalidGasAdjustment=25]="ErrorInvalidGasAdjustment",e[e.ErrInvalidHeight=26]="ErrInvalidHeight",e[e.ErrInvalidVersion=27]="ErrInvalidVersion",e[e.ErrInvalidChainID=28]="ErrInvalidChainID",e[e.ErrInvalidType=29]="ErrInvalidType",e[e.ErrTxTimeoutHeight=30]="ErrTxTimeoutHeight",e[e.ErrUnknownExtensionOptions=31]="ErrUnknownExtensionOptions",e[e.ErrWrongSequence=32]="ErrWrongSequence",e[e.ErrPackAny=33]="ErrPackAny",e[e.ErrUnpackAny=34]="ErrUnpackAny",e[e.ErrLogic=35]="ErrLogic",e[e.ErrConflict=36]="ErrConflict",e[e.ErrNotSupported=37]="ErrNotSupported",e[e.ErrNotFound=38]="ErrNotFound",e[e.ErrIO=39]="ErrIO",e[e.ErrAppConfig=40]="ErrAppConfig",e[e.ErrInvalidGasLimit=41]="ErrInvalidGasLimit"})(ou||(ou={}));var iu;(function(e){e[e.ErrOrderInvalid=1]="ErrOrderInvalid",e[e.ErrSpotMarketNotFound=2]="ErrSpotMarketNotFound",e[e.ErrSpotMarketExists=3]="ErrSpotMarketExists",e[e.ErrBadField=4]="ErrBadField",e[e.ErrMarketInvalid=5]="ErrMarketInvalid",e[e.ErrInsufficientDeposit=6]="ErrInsufficientDeposit",e[e.ErrUnrecognizedOrderType=7]="ErrUnrecognizedOrderType",e[e.ErrInsufficientPositionQuantity=8]="ErrInsufficientPositionQuantity",e[e.ErrOrderHashInvalid=9]="ErrOrderHashInvalid",e[e.ErrBadSubaccountID=10]="ErrBadSubaccountID",e[e.ErrInvalidTicker=11]="ErrInvalidTicker",e[e.ErrInvalidBaseDenom=12]="ErrInvalidBaseDenom",e[e.ErrInvalidQuoteDenom=13]="ErrInvalidQuoteDenom",e[e.ErrInvalidOracle=14]="ErrInvalidOracle",e[e.ErrInvalidExpiry=15]="ErrInvalidExpiry",e[e.ErrInvalidPrice=16]="ErrInvalidPrice",e[e.ErrInvalidQuantity=17]="ErrInvalidQuantity",e[e.ErrUnsupportedOracleType=18]="ErrUnsupportedOracleType",e[e.ErrOrderDoesntExist=19]="ErrOrderDoesntExist",e[e.ErrOrderbookFillInvalid=20]="ErrOrderbookFillInvalid",e[e.ErrPerpetualMarketExists=21]="ErrPerpetualMarketExists",e[e.ErrExpiryFuturesMarketExists=22]="ErrExpiryFuturesMarketExists",e[e.ErrExpiryFuturesMarketExpired=23]="ErrExpiryFuturesMarketExpired",e[e.ErrNoLiquidity=24]="ErrNoLiquidity",e[e.ErrSlippageExceedsWorstPrice=25]="ErrSlippageExceedsWorstPrice",e[e.ErrInsufficientOrderMargin=26]="ErrInsufficientOrderMargin",e[e.ErrDerivativeMarketNotFound=27]="ErrDerivativeMarketNotFound",e[e.ErrPositionNotFound=28]="ErrPositionNotFound",e[e.ErrInvalidReduceOnlyPositionDirection=29]="ErrInvalidReduceOnlyPositionDirection",e[e.ErrPriceSurpassesBankruptcyPrice=30]="ErrPriceSurpassesBankruptcyPrice",e[e.ErrPositionNotLiquidable=31]="ErrPositionNotLiquidable",e[e.ErrInvalidTriggerPrice=32]="ErrInvalidTriggerPrice",e[e.ErrInvalidOracleType=33]="ErrInvalidOracleType",e[e.ErrInvalidPriceTickSize=34]="ErrInvalidPriceTickSize",e[e.ErrInvalidQuantityTickSize=35]="ErrInvalidQuantityTickSize",e[e.ErrInvalidMargin=36]="ErrInvalidMargin",e[e.ErrExceedsOrderSideCount=37]="ErrExceedsOrderSideCount",e[e.ErrMarketOrderAlreadyExists=38]="ErrMarketOrderAlreadyExists",e[e.ErrConditionalMarketOrderAlreadyExists=39]="ErrConditionalMarketOrderAlreadyExists",e[e.ErrMarketLaunchProposalAlreadyExists=40]="ErrMarketLaunchProposalAlreadyExists",e[e.ErrInvalidMarketStatus=41]="ErrInvalidMarketStatus",e[e.ErrSameDenoms=42]="ErrSameDenoms",e[e.ErrSameOracles=43]="ErrSameOracles",e[e.ErrFeeRatesRelation=44]="ErrFeeRatesRelation",e[e.ErrMarginsRelation=45]="ErrMarginsRelation",e[e.ErrExceedsMaxOracleScaleFactor=46]="ErrExceedsMaxOracleScaleFactor",e[e.ErrSpotExchangeNotEnabled=47]="ErrSpotExchangeNotEnabled",e[e.ErrDerivativesExchangeNotEnabled=48]="ErrDerivativesExchangeNotEnabled",e[e.ErrOraclePriceDeltaExceedsThreshold=49]="ErrOraclePriceDeltaExceedsThreshold",e[e.ErrInvalidHourlyInterestRate=50]="ErrInvalidHourlyInterestRate",e[e.ErrInvalidHourlyFundingRateCap=51]="ErrInvalidHourlyFundingRateCap",e[e.ErrInvalidMarketFundingParamUpdate=52]="ErrInvalidMarketFundingParamUpdate",e[e.ErrInvalidTradingRewardCampaign=53]="ErrInvalidTradingRewardCampaign",e[e.ErrInvalidFeeDiscountSchedule=54]="ErrInvalidFeeDiscountSchedule",e[e.ErrInvalidLiquidationOrder=55]="ErrInvalidLiquidationOrder",e[e.ErrTradingRewardCampaignDistributionError=56]="ErrTradingRewardCampaignDistributionError",e[e.ErrInvalidTradingRewardsPendingPointsUpdate=57]="ErrInvalidTradingRewardsPendingPointsUpdate",e[e.ErrInvalidBatchMsgUpdate=58]="ErrInvalidBatchMsgUpdate",e[e.ErrExceedsTopOfBookPrice=59]="ErrExceedsTopOfBookPrice",e[e.ErrInvalidOrderTypeForMessage=60]="ErrInvalidOrderTypeForMessage",e[e.ErrInvalidDMMSender=61]="ErrInvalidDMMSender",e[e.ErrAlreadyOptedOutOfRewards=62]="ErrAlreadyOptedOutOfRewards",e[e.ErrInvalidMarginRatio=63]="ErrInvalidMarginRatio",e[e.ErrBelowMinimalContribution=64]="ErrBelowMinimalContribution",e[e.ErrLowPositionMargin=65]="ErrLowPositionMargin",e[e.ErrInvalidTotalSupply=66]="ErrInvalidTotalSupply",e[e.ErrInvalidLpTokenBurnAmount=67]="ErrInvalidLpTokenBurnAmount",e[e.ErrUnsupportedAction=68]="ErrUnsupportedAction",e[e.ErrNegativePositionQuantity=69]="ErrNegativePositionQuantity",e[e.ErrBinaryOptionsMarketExists=70]="ErrBinaryOptionsMarketExists",e[e.ErrBinaryOptionsMarketNotFound=71]="ErrBinaryOptionsMarketNotFound",e[e.ErrInvalidSettlement=72]="ErrInvalidSettlement",e[e.ErrAccountDoesntExist=73]="ErrAccountDoesntExist",e[e.ErrSenderIsNotAnAdmin=74]="ErrSenderIsNotAnAdmin",e[e.ErrMarketAlreadyScheduledToSettle=75]="ErrMarketAlreadyScheduledToSettle",e[e.ErrGenericMarketNotFound=76]="ErrGenericMarketNotFound",e[e.ErrInvalidDenomDecimal=77]="ErrInvalidDenomDecimal",e[e.ErrInvalidState=78]="ErrInvalidState",e[e.ErrTransientOrdersUpToCancelNotSupported=79]="ErrTransientOrdersUpToCancelNotSupported",e[e.ErrInvalidTrade=80]="ErrInvalidTrade",e[e.ErrNoMarginLocked=81]="ErrNoMarginLocked",e[e.ErrInvalidAccessLevel=82]="ErrInvalidAccessLevel",e[e.ErrInvalidAddress=83]="ErrInvalidAddress",e[e.ErrInvalidArgument=84]="ErrInvalidArgument",e[e.ErrInvalidFundsDirection=85]="ErrInvalidFundsDirection",e[e.ErrNoFundsProvided=86]="ErrNoFundsProvided",e[e.ErrInvalidSignature=87]="ErrInvalidSignature",e[e.ErrNoFundsToUnlock=88]="ErrNoFundsToUnlock",e[e.ErrNoMsgsProvided=89]="ErrNoMsgsProvided",e[e.ErrNoMsgProvided=90]="ErrNoMsgProvided",e[e.ErrInvalidAmount=91]="ErrInvalidAmount",e[e.ErrFeatureDisabled=92]="ErrFeatureDisabled",e[e.ErrTooMuchOrderMargin=93]="ErrTooMuchOrderMargin",e[e.ErrBadSubaccountNonce=94]="ErrBadSubaccountNonce",e[e.ErrInsufficientFunds=95]="ErrInsufficientFunds",e[e.ErrPostOnlyMode=96]="ErrPostOnlyMode",e[e.ErrClientOrderIdAlreadyExists=97]="ErrClientOrderIdAlreadyExists",e[e.ErrInvalidCid=98]="ErrInvalidCid"})(iu||(iu={}));var au;(function(e){e[e.ErrBidInvalid=1]="ErrBidInvalid",e[e.ErrBidRound=2]="ErrBidRound"})(au||(au={}));var cu;(function(e){e[e.ErrNoAuthorizationFound=2]="ErrNoAuthorizationFound",e[e.ErrInvalidExpirationTime=3]="ErrInvalidExpirationTime",e[e.ErrUnknownAuthorizationType=4]="ErrUnknownAuthorizationType",e[e.ErrNoGrantKeyFound=5]="ErrNoGrantKeyFound",e[e.ErrAuthorizationExpired=6]="ErrAuthorizationExpired",e[e.ErrGranteeIsGranter=7]="ErrGranteeIsGranter",e[e.ErrAuthorizationNumOfSigners=9]="ErrAuthorizationNumOfSigners",e[e.ErrNegativeMaxTokens=12]="ErrNegativeMaxTokens"})(cu||(cu={}));var uu;(function(e){e[e.ErrInsuranceFundAlreadyExists=1]="ErrInsuranceFundAlreadyExists",e[e.ErrInsuranceFundNotFound=2]="ErrInsuranceFundNotFound",e[e.ErrRedemptionAlreadyExists=3]="ErrRedemptionAlreadyExists",e[e.ErrInvalidDepositAmount=4]="ErrInvalidDepositAmount",e[e.ErrInvalidDepositDenom=5]="ErrInvalidDepositDenom",e[e.ErrPayoutTooLarge=6]="ErrPayoutTooLarge",e[e.ErrInvalidTicker=7]="ErrInvalidTicker",e[e.ErrInvalidQuoteDenom=8]="ErrInvalidQuoteDenom",e[e.ErrInvalidOracle=9]="ErrInvalidOracle",e[e.ErrInvalidExpirationTime=10]="ErrInvalidExpirationTime",e[e.ErrInvalidMarketID=11]="ErrInvalidMarketID",e[e.ErrInvalidShareDenom=12]="ErrInvalidShareDenom"})(uu||(uu={}));var lu;(function(e){e[e.ErrStaleReport=1]="ErrStaleReport",e[e.ErrIncompleteProposal=2]="ErrIncompleteProposal",e[e.ErrRepeatedAddress=3]="ErrRepeatedAddress",e[e.ErrTooManySigners=4]="ErrTooManySigners",e[e.ErrIncorrectConfig=5]="ErrIncorrectConfig",e[e.ErrConfigDigestNotMatch=6]="ErrConfigDigestNotMatch",e[e.ErrWrongNumberOfSignatures=7]="ErrWrongNumberOfSignatures",e[e.ErrIncorrectSignature=8]="ErrIncorrectSignature",e[e.ErrNoTransmitter=9]="ErrNoTransmitter",e[e.ErrIncorrectTransmissionData=10]="ErrIncorrectTransmissionData",e[e.ErrNoTransmissionsFound=11]="ErrNoTransmissionsFound",e[e.ErrMedianValueOutOfBounds=12]="ErrMedianValueOutOfBounds",e[e.ErrIncorrectRewardPoolDenom=13]="ErrIncorrectRewardPoolDenom",e[e.ErrNoRewardPool=14]="ErrNoRewardPool",e[e.ErrInvalidPayees=15]="ErrInvalidPayees",e[e.ErrModuleAdminRestricted=16]="ErrModuleAdminRestricted",e[e.ErrFeedAlreadyExists=17]="ErrFeedAlreadyExists",e[e.ErrFeedDoesntExists=19]="ErrFeedDoesntExists",e[e.ErrAdminRestricted=20]="ErrAdminRestricted",e[e.ErrInsufficientRewardPool=21]="ErrInsufficientRewardPool",e[e.ErrPayeeAlreadySet=22]="ErrPayeeAlreadySet",e[e.ErrPayeeRestricted=23]="ErrPayeeRestricted",e[e.ErrFeedConfigNotFound=24]="ErrFeedConfigNotFound"})(lu||(lu={}));var du;(function(e){e[e.ErrEmptyRelayerAddr=1]="ErrEmptyRelayerAddr",e[e.ErrBadRatesCount=2]="ErrBadRatesCount",e[e.ErrBadResolveTimesCount=3]="ErrBadResolveTimesCount",e[e.ErrBadRequestIDsCount=4]="ErrBadRequestIDsCount",e[e.ErrRelayerNotAuthorized=5]="ErrRelayerNotAuthorized",e[e.ErrBadPriceFeedBaseCount=6]="ErrBadPriceFeedBaseCount",e[e.ErrBadPriceFeedQuoteCount=7]="ErrBadPriceFeedQuoteCount",e[e.ErrUnsupportedOracleType=8]="ErrUnsupportedOracleType",e[e.ErrBadMessagesCount=9]="ErrBadMessagesCount",e[e.ErrBadCoinbaseMessage=10]="ErrBadCoinbaseMessage",e[e.ErrInvalidEthereumSignature=11]="ErrInvalidEthereumSignature",e[e.ErrBadCoinbaseMessageTimestamp=12]="ErrBadCoinbaseMessageTimestamp",e[e.ErrCoinbasePriceNotFound=13]="ErrCoinbasePriceNotFound",e[e.ErrBadPrice=14]="ErrBadPrice",e[e.ErrPriceTooLarge=15]="ErrPriceTooLarge",e[e.ErrInvalidBandIBCRequest=16]="ErrInvalidBandIBCRequest",e[e.ErrSample=17]="ErrSample",e[e.ErrInvalidPacketTimeout=18]="ErrInvalidPacketTimeout",e[e.ErrBadSymbolsCount=19]="ErrBadSymbolsCount",e[e.ErrBadIBCPortBind=20]="ErrBadIBCPortBind",e[e.ErrInvalidPortID=21]="ErrInvalidPortID",e[e.ErrInvalidChannelID=22]="ErrInvalidChannelID",e[e.ErrBadRequestInterval=23]="ErrBadRequestInterval",e[e.ErrInvalidBandIBCUpdateRequest=24]="ErrInvalidBandIBCUpdateRequest",e[e.ErrBandIBCRequestNotFound=25]="ErrBandIBCRequestNotFound",e[e.ErrEmptyBaseInfo=26]="ErrEmptyBaseInfo",e[e.ErrEmptyProvider=27]="ErrEmptyProvider",e[e.ErrInvalidProvider=28]="ErrInvalidProvider",e[e.ErrInvalidSymbol=29]="ErrInvalidSymbol",e[e.ErrRelayerAlreadyExists=30]="ErrRelayerAlreadyExists",e[e.ErrProviderPriceNotFound=31]="ErrProviderPriceNotFound",e[e.ErrInvalidOracleRequest=32]="ErrInvalidOracleRequest",e[e.ErrOraclePriceNotFound=33]="ErrOraclePriceNotFound"})(du||(du={}));var mu;(function(e){e[e.ErrInternal=1]="ErrInternal",e[e.ErrDuplicate=2]="ErrDuplicate",e[e.ErrInvalid=3]="ErrInvalid",e[e.ErrTimeout=4]="ErrTimeout",e[e.ErrUnknown=5]="ErrUnknown",e[e.ErrEmpty=6]="ErrEmpty",e[e.ErrOutdated=7]="ErrOutdated",e[e.ErrUnsupported=8]="ErrUnsupported",e[e.ErrNonContiguousEventNonce=9]="ErrNonContiguousEventNonce",e[e.ErrNoUnbatchedTxsFound=10]="ErrNoUnbatchedTxsFound",e[e.ErrResetDelegateKeys=11]="ErrResetDelegateKeys",e[e.ErrSupplyOverflow=12]="ErrSupplyOverflow",e[e.ErrInvalidEthSender=13]="ErrInvalidEthSender",e[e.ErrInvalidEthDestination=14]="ErrInvalidEthDestination"})(mu||(mu={}));var fu;(function(e){e[e.ErrDenomExists=2]="ErrDenomExists",e[e.ErrUnauthorized=3]="ErrUnauthorized",e[e.ErrInvalidDenom=4]="ErrInvalidDenom",e[e.ErrInvalidCreator=5]="ErrInvalidCreator",e[e.ErrInvalidAuthorityMetadata=6]="ErrInvalidAuthorityMetadata",e[e.ErrInvalidGenesis=7]="ErrInvalidGenesis",e[e.ErrSubdenomTooLong=8]="ErrSubdenomTooLong",e[e.ErrSubdenomTooShort=9]="ErrSubdenomTooShort",e[e.ErrSubdenomNestedTooShort=10]="ErrSubdenomNestedTooShort",e[e.ErrCreatorTooLong=11]="ErrCreatorTooLong",e[e.ErrDenomDoesNotExist=12]="ErrDenomDoesNotExist",e[e.ErrAmountNotPositive=13]="ErrAmountNotPositive"})(fu||(fu={}));var pu;(function(e){e[e.ErrInvalidGasLimit=1]="ErrInvalidGasLimit",e[e.ErrInvalidGasPrice=2]="ErrInvalidGasPrice",e[e.ErrInvalidContractAddress=3]="ErrInvalidContractAddress",e[e.ErrAlreadyRegistered=4]="ErrAlreadyRegistered",e[e.ErrDuplicateContract=5]="ErrDuplicateContract",e[e.ErrNoContractAddresses=6]="ErrNoContractAddresses",e[e.ErrInvalidCodeId=7]="ErrInvalidCodeId"})(pu||(pu={}));var gu;(function(e){e[e.ErrEmptyValidatorAddr=2]="ErrEmptyValidatorAddr",e[e.ErrNoValidatorFound=3]="ErrNoValidatorFound",e[e.ErrValidatorOwnerExists=4]="ErrValidatorOwnerExists",e[e.ErrValidatorPubKeyExists=5]="ErrValidatorPubKeyExists",e[e.ErrValidatorPubKeyTypeNotSupported=6]="ErrValidatorPubKeyTypeNotSupported",e[e.ErrValidatorJailed=7]="ErrValidatorJailed",e[e.ErrBadRemoveValidator=8]="ErrBadRemoveValidator",e[e.ErrCommissionNegative=9]="ErrCommissionNegative",e[e.ErrCommissionHuge=10]="ErrCommissionHuge",e[e.ErrCommissionGTMaxRate=11]="ErrCommissionGTMaxRate",e[e.ErrCommissionUpdateTime=12]="ErrCommissionUpdateTime",e[e.ErrCommissionChangeRateNegative=13]="ErrCommissionChangeRateNegative",e[e.ErrCommissionChangeRateGTMaxRate=14]="ErrCommissionChangeRateGTMaxRate",e[e.ErrCommissionGTMaxChangeRate=15]="ErrCommissionGTMaxChangeRate",e[e.ErrSelfDelegationBelowMinimum=16]="ErrSelfDelegationBelowMinimum",e[e.ErrMinSelfDelegationDecreased=17]="ErrMinSelfDelegationDecreased",e[e.ErrEmptyDelegatorAddr=18]="ErrEmptyDelegatorAddr",e[e.ErrNoDelegation=19]="ErrNoDelegation",e[e.ErrBadDelegatorAddr=20]="ErrBadDelegatorAddr",e[e.ErrNoDelegatorForAddress=21]="ErrNoDelegatorForAddress",e[e.ErrInsufficientShares=22]="ErrInsufficientShares",e[e.ErrDelegationValidatorEmpty=23]="ErrDelegationValidatorEmpty",e[e.ErrNotEnoughDelegationShares=24]="ErrNotEnoughDelegationShares",e[e.ErrNotMature=25]="ErrNotMature",e[e.ErrNoUnbondingDelegation=26]="ErrNoUnbondingDelegation",e[e.ErrMaxUnbondingDelegationEntries=27]="ErrMaxUnbondingDelegationEntries",e[e.ErrNoRedelegation=28]="ErrNoRedelegation",e[e.ErrSelfRedelegation=29]="ErrSelfRedelegation",e[e.ErrTinyRedelegationAmount=30]="ErrTinyRedelegationAmount",e[e.ErrBadRedelegationDst=31]="ErrBadRedelegationDst",e[e.ErrTransitiveRedelegation=32]="ErrTransitiveRedelegation",e[e.ErrMaxRedelegationEntries=33]="ErrMaxRedelegationEntries",e[e.ErrDelegatorShareExRateInvalid=34]="ErrDelegatorShareExRateInvalid",e[e.ErrBothShareMsgsGiven=35]="ErrBothShareMsgsGiven",e[e.ErrNeitherShareMsgsGiven=36]="ErrNeitherShareMsgsGiven",e[e.ErrInvalidHistoricalInfo=37]="ErrInvalidHistoricalInfo",e[e.ErrNoHistoricalInfo=38]="ErrNoHistoricalInfo",e[e.ErrEmptyValidatorPubKey=39]="ErrEmptyValidatorPubKey",e[e.ErrCommissionLTMinRate=40]="ErrCommissionLTMinRate",e[e.ErrUnbondingNotFound=41]="ErrUnbondingNotFound",e[e.ErrUnbondingOnHoldRefCountNegative=42]="ErrUnbondingOnHoldRefCountNegative"})(gu||(gu={}));var yu;(function(e){e[e.ErrUnknownProposal=2]="ErrUnknownProposal",e[e.ErrInactiveProposal=3]="ErrInactiveProposal",e[e.ErrAlreadyActiveProposal=4]="ErrAlreadyActiveProposal",e[e.ErrInvalidProposalContent=5]="ErrInvalidProposalContent",e[e.ErrInvalidProposalType=6]="ErrInvalidProposalType",e[e.ErrInvalidVote=7]="ErrInvalidVote",e[e.ErrInvalidGenesis=8]="ErrInvalidGenesis",e[e.ErrNoProposalHandlerExists=9]="ErrNoProposalHandlerExists",e[e.ErrUnroutableProposalMsg=10]="ErrUnroutableProposalMsg",e[e.ErrNoProposalMsgs=11]="ErrNoProposalMsgs",e[e.ErrInvalidProposalMsg=12]="ErrInvalidProposalMsg",e[e.ErrInvalidSigner=13]="ErrInvalidSigner",e[e.ErrInvalidSignalMsg=14]="ErrInvalidSignalMsg",e[e.ErrMetadataTooLong=15]="ErrMetadataTooLong",e[e.ErrMinDepositTooSmall=16]="ErrMinDepositTooSmall",e[e.ErrProposalNotFound=17]="ErrProposalNotFound",e[e.ErrInvalidProposer=18]="ErrInvalidProposer",e[e.ErrNoDeposits=19]="ErrNoDeposits",e[e.ErrVotingPeriodEnded=20]="ErrVotingPeriodEnded",e[e.ErrInvalidProposal=21]="ErrInvalidProposal"})(yu||(yu={}));var hu;(function(e){e[e.ErrEmptyDelegatorAddr=2]="ErrEmptyDelegatorAddr",e[e.ErrEmptyWithdrawAddr=3]="ErrEmptyWithdrawAddr",e[e.ErrEmptyValidatorAddr=4]="ErrEmptyValidatorAddr",e[e.ErrEmptyDelegationDistInfo=5]="ErrEmptyDelegationDistInfo",e[e.ErrNoValidatorDistInfo=6]="ErrNoValidatorDistInfo",e[e.ErrNoValidatorCommission=7]="ErrNoValidatorCommission",e[e.ErrSetWithdrawAddrDisabled=8]="ErrSetWithdrawAddrDisabled",e[e.ErrBadDistribution=9]="ErrBadDistribution",e[e.ErrInvalidProposalAmount=10]="ErrInvalidProposalAmount",e[e.ErrEmptyProposalRecipient=11]="ErrEmptyProposalRecipient",e[e.ErrNoValidatorExists=12]="ErrNoValidatorExists",e[e.ErrNoDelegationExists=13]="ErrNoDelegationExists"})(hu||(hu={}));var bu;(function(e){e[e.ErrNoInputs=2]="ErrNoInputs",e[e.ErrNoOutputs=3]="ErrNoOutputs",e[e.ErrInputOutputMismatch=4]="ErrInputOutputMismatch",e[e.ErrSendDisabled=5]="ErrSendDisabled",e[e.ErrDenomMetadataNotFound=6]="ErrDenomMetadataNotFound",e[e.ErrInvalidKey=7]="ErrInvalidKey",e[e.ErrDuplicateEntry=8]="ErrDuplicateEntry",e[e.ErrMultipleSenders=9]="ErrMultipleSenders"})(bu||(bu={}));var vu;(function(e){e[e.ErrCreateFailed=2]="ErrCreateFailed",e[e.ErrAccountExists=3]="ErrAccountExists",e[e.ErrInstantiateFailed=4]="ErrInstantiateFailed",e[e.ErrExecuteFailed=5]="ErrExecuteFailed",e[e.ErrGasLimit=6]="ErrGasLimit",e[e.ErrInvalidGenesis=7]="ErrInvalidGenesis",e[e.ErrNotFound=8]="ErrNotFound",e[e.ErrQueryFailed=9]="ErrQueryFailed",e[e.ErrInvalidMsg=10]="ErrInvalidMsg",e[e.ErrMigrationFailed=11]="ErrMigrationFailed",e[e.ErrEmpty=12]="ErrEmpty",e[e.ErrLimit=13]="ErrLimit",e[e.ErrInvalid=14]="ErrInvalid",e[e.ErrDuplicate=15]="ErrDuplicate",e[e.ErrMaxIBCChannels=16]="ErrMaxIBCChannels",e[e.ErrUnsupportedForContract=17]="ErrUnsupportedForContract",e[e.ErrPinContractFailed=18]="ErrPinContractFailed",e[e.ErrUnpinContractFailed=19]="ErrUnpinContractFailed",e[e.ErrUnknownMsg=20]="ErrUnknownMsg",e[e.ErrInvalidEvent=21]="ErrInvalidEvent"})(vu||(vu={}));const gn=-1;sg.grpc.Code.Unavailable;var ct;(function(e){e.Get="GET",e.Post="POST",e.Options="OPTIONS"})(ct||(ct={}));var yn;(function(e){e.Unspecified="unspecified",e.ChainError="chain-error",e.ExecutionError="execution-error",e.NotFoundError="not-found-error",e.ValidationError="validation-error",e.WalletError="wallet-error",e.WalletNotInstalledError="wallet-not-installed-error",e.GrpcUnaryRequest="grpc-unary-request",e.HttpRequest="http-request",e.Web3="web3"})(yn||(yn={}));const Fi=e=>`${e}`.toLowerCase().replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(t,n,r)=>`${n.toUpperCase()+r}`).replace(new RegExp(/\w/),t=>t.toUpperCase());class cc extends Error{constructor(n,r){super(n.message);E(this,"type",yn.Unspecified);E(this,"code",gn);E(this,"name");E(this,"errorClass");E(this,"context");E(this,"contextModule");E(this,"contextCode");E(this,"message","");E(this,"stack","");E(this,"originalMessage","");this.parseError(n),this.parseContext(r),this.parse()}parse(){}parseError(n){this.setName(this.errorClass||this.constructor.name),this.setStack(n.stack||""),this.setMessage(n.message),this.originalMessage=n.message}parseContext(n){const{contextModule:r,type:s,code:o,context:i}=n||{contextModule:"",context:"",code:gn,type:yn.Unspecified};this.context=i,this.contextModule=r,this.type=s||yn.Unspecified,this.code=o||gn}setType(n){this.type=n}setCode(n){this.code=n}setContext(n){this.context=n}setOriginalMessage(n){this.originalMessage=n}setStack(n){try{this.stack=n}catch{}}setName(n){super.name=n,this.name=n,this.errorClass=n}setMessage(n){super.message=n,this.message=n}setContextModule(n){this.contextModule=n}setContextCode(n){this.contextCode=n}toOriginalError(){const n=new Error(this.originalMessage);return n.stack=this.stack,n.name=this.name||"",n}toError(){const n=new Error(this.message);return n.stack=this.stack,n.name=this.name||"",n}toCompactError(){const n=this.name||Fi(this.type),r=new Error(`${this.message} | ${JSON.stringify({originalMessage:this.originalMessage,message:this.message,errorClass:n,code:this.code,type:this.type,context:this.context,contextModule:this.contextModule,contextCode:this.contextCode,stack:(this.stack||"").split(`
1
+ const __vite__fileDeps=["assets/index-BphOrDO3.js","assets/create-8iCA8uMR.js","main.js","main.css","assets/chain-DNXEv05f.js","assets/ens-validation.es6-DY5iRcEw.js","assets/index-BqmJ5ps2.js","assets/index-BhecnthD.js","assets/unsignedTransaction-DhgJ038I.js","assets/index-CX56YBaw.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ var Gf=Object.defineProperty;var Kf=(e,t,n)=>t in e?Gf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var E=(e,t,n)=>(Kf(e,typeof t!="symbol"?t+"":t,n),n);import{bd as Fr,ax as Ps,aw as nc,ay as zf,b5 as rc,be as _n,p as h,a2 as _o,D as Rt,X as Qf,d as U,x as hd,Y as Cf,Z as bd,$ as Yf,a0 as Xf,bf as Zf,a1 as ep,n as vd,bg as is,bh as tp,bi as np,bj as rp,bk as sc,bl as wd,bm as _d,bn as sp,bo as op,am as Sn,an as ip,bp as ap,bq as cp,br as up,bs as lp,bt as dp,bu as oc,bv as mp,bw as fp,bx as pp,by as gp,bz as yp,bA as hp,bB as bp,bC as vp,bD as ic,bE as wp,bF as _p,bG as Sp,bH as Ap,bI as Pp,bJ as kp,bK as Ep,bL as Tp,bM as Op,bN as Ip,bO as Bp,bP as ac,bQ as Np,bR as Mp,bS as Rp,bT as jp,bU as Dp,ao as Up,bV as Sd,bW as Ad,bX as Pd,bY as $p,aq as xp,bZ as Ui,b1 as $i,b6 as Hp,aJ as qp,b_ as Fp,az as Vp,aA as Lp,aB as Wp,aC as xi,aD as Jp,aE as Gp,I as w,L as ue,J as lt,g as Kp,b9 as Ge,y as zs,S as zp,K as Qp,b$ as Cp,c0 as Qs,ag as Yp,c1 as Xp,c2 as Hi,c3 as Xc,c4 as Zc,c5 as eu,c6 as Zp,c7 as eg,_ as qi,aH as tg}from"../main.js";import{C as ng,P as rg}from"./chain-DNXEv05f.js";import{g as sg,s as Sa,a as kd,k as Aa,d as tu}from"./ens-validation.es6-DY5iRcEw.js";var nu;(function(e){e.Erc20Contract="erc20-contract",e.Peggy="peggy-contract",e.PeggyOld="peggy-old-contract"})(nu||(nu={}));var Pa;(function(e){e.Auction="chain-auction",e.Auth="chain-auth",e.Authz="chain-authz",e.Bank="chain-bank",e.Distribution="chain-distribution",e.Exchange="chain-exchange",e.Gov="chain-gov",e.Ibc="chain-ibc",e.InsuranceFund="chain-insurance",e.Mint="chain-mint",e.Oracle="chain-oracle",e.Peggy="chain-peggy",e.Staking="chain-staking",e.Wasm="chain-wasm",e.WasmX="chain-wasmx",e.Tendermint="chain-tendermint"})(Pa||(Pa={}));var ka;(function(e){e.Account="indexer-account",e.Auction="indexer-auction",e.Derivatives="indexer-derivatives",e.Explorer="indexer-explorer",e.InsuranceFund="indexer-insurance-fund",e.Meta="indexer-meta",e.Mito="indexer-mito",e.Dmm="dmm",e.Oracle="indexer-oracle",e.Portfolio="indexer-portfolio",e.Spot="indexer-spot",e.Transaction="indexer-transaction",e.Trading="indexer-trading",e.ChronosDerivative="indexer-chronos-derivative",e.ChronosSpot="indexer-chronos-spot",e.ChronosMarkets="indexer-chronos-markets",e.Campaign="indexer-campaign"})(ka||(ka={}));var ru;(function(e){e.SignTransaction="sign-transaction",e.SignEthereumTransaction="sign-ethereum-transaction",e.SendTransaction="send-transaction",e.SendEthereumTransaction="send-ethereum-transaction",e.SignArbitrary="sign-arbitrary",e.GetAccounts="get-accounts",e.GetNetworkId="get-network-id",e.GetChainId="get-chain-id",e.GetEthereumTransactionReceipt="get-ethereum-transaction-receipt"})(ru||(ru={}));var su;(function(e){e.Auction="auction",e.CosmosSdk="sdk",e.Staking="staking",e.Bank="bank",e.Distribution="distribution",e.Gov="gov",e.Exchange="exchange",e.Insurance="insurance",e.Ocr="ocr",e.Oracle="oracle",e.Peggy="peggy",e.TokenFactory="tokenfactory",e.Wasmx="wasmx",e.Wasm="wasm",e.AuthZ="authz"})(su||(su={}));var ou;(function(e){e[e.ErrTxDecode=2]="ErrTxDecode",e[e.ErrInvalidSequence=3]="ErrInvalidSequence",e[e.ErrUnauthorized=4]="ErrUnauthorized",e[e.ErrInsufficientFunds=5]="ErrInsufficientFunds",e[e.ErrUnknownRequest=6]="ErrUnknownRequest",e[e.ErrInvalidAddress=7]="ErrInvalidAddress",e[e.ErrInvalidPubKey=8]="ErrInvalidPubKey",e[e.ErrUnknownAddress=9]="ErrUnknownAddress",e[e.ErrInvalidCoins=10]="ErrInvalidCoins",e[e.ErrOutOfGas=11]="ErrOutOfGas",e[e.ErrMemoTooLarge=12]="ErrMemoTooLarge",e[e.ErrInsufficientFee=13]="ErrInsufficientFee",e[e.ErrTooManySignatures=14]="ErrTooManySignatures",e[e.ErrNoSignatures=15]="ErrNoSignatures",e[e.ErrJSONMarshal=16]="ErrJSONMarshal",e[e.ErrJSONUnmarshal=17]="ErrJSONUnmarshal",e[e.ErrInvalidRequest=18]="ErrInvalidRequest",e[e.ErrTxInMempoolCache=19]="ErrTxInMempoolCache",e[e.ErrMempoolIsFull=20]="ErrMempoolIsFull",e[e.ErrTxTooLarge=21]="ErrTxTooLarge",e[e.ErrKeyNotFound=22]="ErrKeyNotFound",e[e.ErrWrongPassword=23]="ErrWrongPassword",e[e.ErrorInvalidSigner=24]="ErrorInvalidSigner",e[e.ErrorInvalidGasAdjustment=25]="ErrorInvalidGasAdjustment",e[e.ErrInvalidHeight=26]="ErrInvalidHeight",e[e.ErrInvalidVersion=27]="ErrInvalidVersion",e[e.ErrInvalidChainID=28]="ErrInvalidChainID",e[e.ErrInvalidType=29]="ErrInvalidType",e[e.ErrTxTimeoutHeight=30]="ErrTxTimeoutHeight",e[e.ErrUnknownExtensionOptions=31]="ErrUnknownExtensionOptions",e[e.ErrWrongSequence=32]="ErrWrongSequence",e[e.ErrPackAny=33]="ErrPackAny",e[e.ErrUnpackAny=34]="ErrUnpackAny",e[e.ErrLogic=35]="ErrLogic",e[e.ErrConflict=36]="ErrConflict",e[e.ErrNotSupported=37]="ErrNotSupported",e[e.ErrNotFound=38]="ErrNotFound",e[e.ErrIO=39]="ErrIO",e[e.ErrAppConfig=40]="ErrAppConfig",e[e.ErrInvalidGasLimit=41]="ErrInvalidGasLimit"})(ou||(ou={}));var iu;(function(e){e[e.ErrOrderInvalid=1]="ErrOrderInvalid",e[e.ErrSpotMarketNotFound=2]="ErrSpotMarketNotFound",e[e.ErrSpotMarketExists=3]="ErrSpotMarketExists",e[e.ErrBadField=4]="ErrBadField",e[e.ErrMarketInvalid=5]="ErrMarketInvalid",e[e.ErrInsufficientDeposit=6]="ErrInsufficientDeposit",e[e.ErrUnrecognizedOrderType=7]="ErrUnrecognizedOrderType",e[e.ErrInsufficientPositionQuantity=8]="ErrInsufficientPositionQuantity",e[e.ErrOrderHashInvalid=9]="ErrOrderHashInvalid",e[e.ErrBadSubaccountID=10]="ErrBadSubaccountID",e[e.ErrInvalidTicker=11]="ErrInvalidTicker",e[e.ErrInvalidBaseDenom=12]="ErrInvalidBaseDenom",e[e.ErrInvalidQuoteDenom=13]="ErrInvalidQuoteDenom",e[e.ErrInvalidOracle=14]="ErrInvalidOracle",e[e.ErrInvalidExpiry=15]="ErrInvalidExpiry",e[e.ErrInvalidPrice=16]="ErrInvalidPrice",e[e.ErrInvalidQuantity=17]="ErrInvalidQuantity",e[e.ErrUnsupportedOracleType=18]="ErrUnsupportedOracleType",e[e.ErrOrderDoesntExist=19]="ErrOrderDoesntExist",e[e.ErrOrderbookFillInvalid=20]="ErrOrderbookFillInvalid",e[e.ErrPerpetualMarketExists=21]="ErrPerpetualMarketExists",e[e.ErrExpiryFuturesMarketExists=22]="ErrExpiryFuturesMarketExists",e[e.ErrExpiryFuturesMarketExpired=23]="ErrExpiryFuturesMarketExpired",e[e.ErrNoLiquidity=24]="ErrNoLiquidity",e[e.ErrSlippageExceedsWorstPrice=25]="ErrSlippageExceedsWorstPrice",e[e.ErrInsufficientOrderMargin=26]="ErrInsufficientOrderMargin",e[e.ErrDerivativeMarketNotFound=27]="ErrDerivativeMarketNotFound",e[e.ErrPositionNotFound=28]="ErrPositionNotFound",e[e.ErrInvalidReduceOnlyPositionDirection=29]="ErrInvalidReduceOnlyPositionDirection",e[e.ErrPriceSurpassesBankruptcyPrice=30]="ErrPriceSurpassesBankruptcyPrice",e[e.ErrPositionNotLiquidable=31]="ErrPositionNotLiquidable",e[e.ErrInvalidTriggerPrice=32]="ErrInvalidTriggerPrice",e[e.ErrInvalidOracleType=33]="ErrInvalidOracleType",e[e.ErrInvalidPriceTickSize=34]="ErrInvalidPriceTickSize",e[e.ErrInvalidQuantityTickSize=35]="ErrInvalidQuantityTickSize",e[e.ErrInvalidMargin=36]="ErrInvalidMargin",e[e.ErrExceedsOrderSideCount=37]="ErrExceedsOrderSideCount",e[e.ErrMarketOrderAlreadyExists=38]="ErrMarketOrderAlreadyExists",e[e.ErrConditionalMarketOrderAlreadyExists=39]="ErrConditionalMarketOrderAlreadyExists",e[e.ErrMarketLaunchProposalAlreadyExists=40]="ErrMarketLaunchProposalAlreadyExists",e[e.ErrInvalidMarketStatus=41]="ErrInvalidMarketStatus",e[e.ErrSameDenoms=42]="ErrSameDenoms",e[e.ErrSameOracles=43]="ErrSameOracles",e[e.ErrFeeRatesRelation=44]="ErrFeeRatesRelation",e[e.ErrMarginsRelation=45]="ErrMarginsRelation",e[e.ErrExceedsMaxOracleScaleFactor=46]="ErrExceedsMaxOracleScaleFactor",e[e.ErrSpotExchangeNotEnabled=47]="ErrSpotExchangeNotEnabled",e[e.ErrDerivativesExchangeNotEnabled=48]="ErrDerivativesExchangeNotEnabled",e[e.ErrOraclePriceDeltaExceedsThreshold=49]="ErrOraclePriceDeltaExceedsThreshold",e[e.ErrInvalidHourlyInterestRate=50]="ErrInvalidHourlyInterestRate",e[e.ErrInvalidHourlyFundingRateCap=51]="ErrInvalidHourlyFundingRateCap",e[e.ErrInvalidMarketFundingParamUpdate=52]="ErrInvalidMarketFundingParamUpdate",e[e.ErrInvalidTradingRewardCampaign=53]="ErrInvalidTradingRewardCampaign",e[e.ErrInvalidFeeDiscountSchedule=54]="ErrInvalidFeeDiscountSchedule",e[e.ErrInvalidLiquidationOrder=55]="ErrInvalidLiquidationOrder",e[e.ErrTradingRewardCampaignDistributionError=56]="ErrTradingRewardCampaignDistributionError",e[e.ErrInvalidTradingRewardsPendingPointsUpdate=57]="ErrInvalidTradingRewardsPendingPointsUpdate",e[e.ErrInvalidBatchMsgUpdate=58]="ErrInvalidBatchMsgUpdate",e[e.ErrExceedsTopOfBookPrice=59]="ErrExceedsTopOfBookPrice",e[e.ErrInvalidOrderTypeForMessage=60]="ErrInvalidOrderTypeForMessage",e[e.ErrInvalidDMMSender=61]="ErrInvalidDMMSender",e[e.ErrAlreadyOptedOutOfRewards=62]="ErrAlreadyOptedOutOfRewards",e[e.ErrInvalidMarginRatio=63]="ErrInvalidMarginRatio",e[e.ErrBelowMinimalContribution=64]="ErrBelowMinimalContribution",e[e.ErrLowPositionMargin=65]="ErrLowPositionMargin",e[e.ErrInvalidTotalSupply=66]="ErrInvalidTotalSupply",e[e.ErrInvalidLpTokenBurnAmount=67]="ErrInvalidLpTokenBurnAmount",e[e.ErrUnsupportedAction=68]="ErrUnsupportedAction",e[e.ErrNegativePositionQuantity=69]="ErrNegativePositionQuantity",e[e.ErrBinaryOptionsMarketExists=70]="ErrBinaryOptionsMarketExists",e[e.ErrBinaryOptionsMarketNotFound=71]="ErrBinaryOptionsMarketNotFound",e[e.ErrInvalidSettlement=72]="ErrInvalidSettlement",e[e.ErrAccountDoesntExist=73]="ErrAccountDoesntExist",e[e.ErrSenderIsNotAnAdmin=74]="ErrSenderIsNotAnAdmin",e[e.ErrMarketAlreadyScheduledToSettle=75]="ErrMarketAlreadyScheduledToSettle",e[e.ErrGenericMarketNotFound=76]="ErrGenericMarketNotFound",e[e.ErrInvalidDenomDecimal=77]="ErrInvalidDenomDecimal",e[e.ErrInvalidState=78]="ErrInvalidState",e[e.ErrTransientOrdersUpToCancelNotSupported=79]="ErrTransientOrdersUpToCancelNotSupported",e[e.ErrInvalidTrade=80]="ErrInvalidTrade",e[e.ErrNoMarginLocked=81]="ErrNoMarginLocked",e[e.ErrInvalidAccessLevel=82]="ErrInvalidAccessLevel",e[e.ErrInvalidAddress=83]="ErrInvalidAddress",e[e.ErrInvalidArgument=84]="ErrInvalidArgument",e[e.ErrInvalidFundsDirection=85]="ErrInvalidFundsDirection",e[e.ErrNoFundsProvided=86]="ErrNoFundsProvided",e[e.ErrInvalidSignature=87]="ErrInvalidSignature",e[e.ErrNoFundsToUnlock=88]="ErrNoFundsToUnlock",e[e.ErrNoMsgsProvided=89]="ErrNoMsgsProvided",e[e.ErrNoMsgProvided=90]="ErrNoMsgProvided",e[e.ErrInvalidAmount=91]="ErrInvalidAmount",e[e.ErrFeatureDisabled=92]="ErrFeatureDisabled",e[e.ErrTooMuchOrderMargin=93]="ErrTooMuchOrderMargin",e[e.ErrBadSubaccountNonce=94]="ErrBadSubaccountNonce",e[e.ErrInsufficientFunds=95]="ErrInsufficientFunds",e[e.ErrPostOnlyMode=96]="ErrPostOnlyMode",e[e.ErrClientOrderIdAlreadyExists=97]="ErrClientOrderIdAlreadyExists",e[e.ErrInvalidCid=98]="ErrInvalidCid"})(iu||(iu={}));var au;(function(e){e[e.ErrBidInvalid=1]="ErrBidInvalid",e[e.ErrBidRound=2]="ErrBidRound"})(au||(au={}));var cu;(function(e){e[e.ErrNoAuthorizationFound=2]="ErrNoAuthorizationFound",e[e.ErrInvalidExpirationTime=3]="ErrInvalidExpirationTime",e[e.ErrUnknownAuthorizationType=4]="ErrUnknownAuthorizationType",e[e.ErrNoGrantKeyFound=5]="ErrNoGrantKeyFound",e[e.ErrAuthorizationExpired=6]="ErrAuthorizationExpired",e[e.ErrGranteeIsGranter=7]="ErrGranteeIsGranter",e[e.ErrAuthorizationNumOfSigners=9]="ErrAuthorizationNumOfSigners",e[e.ErrNegativeMaxTokens=12]="ErrNegativeMaxTokens"})(cu||(cu={}));var uu;(function(e){e[e.ErrInsuranceFundAlreadyExists=1]="ErrInsuranceFundAlreadyExists",e[e.ErrInsuranceFundNotFound=2]="ErrInsuranceFundNotFound",e[e.ErrRedemptionAlreadyExists=3]="ErrRedemptionAlreadyExists",e[e.ErrInvalidDepositAmount=4]="ErrInvalidDepositAmount",e[e.ErrInvalidDepositDenom=5]="ErrInvalidDepositDenom",e[e.ErrPayoutTooLarge=6]="ErrPayoutTooLarge",e[e.ErrInvalidTicker=7]="ErrInvalidTicker",e[e.ErrInvalidQuoteDenom=8]="ErrInvalidQuoteDenom",e[e.ErrInvalidOracle=9]="ErrInvalidOracle",e[e.ErrInvalidExpirationTime=10]="ErrInvalidExpirationTime",e[e.ErrInvalidMarketID=11]="ErrInvalidMarketID",e[e.ErrInvalidShareDenom=12]="ErrInvalidShareDenom"})(uu||(uu={}));var lu;(function(e){e[e.ErrStaleReport=1]="ErrStaleReport",e[e.ErrIncompleteProposal=2]="ErrIncompleteProposal",e[e.ErrRepeatedAddress=3]="ErrRepeatedAddress",e[e.ErrTooManySigners=4]="ErrTooManySigners",e[e.ErrIncorrectConfig=5]="ErrIncorrectConfig",e[e.ErrConfigDigestNotMatch=6]="ErrConfigDigestNotMatch",e[e.ErrWrongNumberOfSignatures=7]="ErrWrongNumberOfSignatures",e[e.ErrIncorrectSignature=8]="ErrIncorrectSignature",e[e.ErrNoTransmitter=9]="ErrNoTransmitter",e[e.ErrIncorrectTransmissionData=10]="ErrIncorrectTransmissionData",e[e.ErrNoTransmissionsFound=11]="ErrNoTransmissionsFound",e[e.ErrMedianValueOutOfBounds=12]="ErrMedianValueOutOfBounds",e[e.ErrIncorrectRewardPoolDenom=13]="ErrIncorrectRewardPoolDenom",e[e.ErrNoRewardPool=14]="ErrNoRewardPool",e[e.ErrInvalidPayees=15]="ErrInvalidPayees",e[e.ErrModuleAdminRestricted=16]="ErrModuleAdminRestricted",e[e.ErrFeedAlreadyExists=17]="ErrFeedAlreadyExists",e[e.ErrFeedDoesntExists=19]="ErrFeedDoesntExists",e[e.ErrAdminRestricted=20]="ErrAdminRestricted",e[e.ErrInsufficientRewardPool=21]="ErrInsufficientRewardPool",e[e.ErrPayeeAlreadySet=22]="ErrPayeeAlreadySet",e[e.ErrPayeeRestricted=23]="ErrPayeeRestricted",e[e.ErrFeedConfigNotFound=24]="ErrFeedConfigNotFound"})(lu||(lu={}));var du;(function(e){e[e.ErrEmptyRelayerAddr=1]="ErrEmptyRelayerAddr",e[e.ErrBadRatesCount=2]="ErrBadRatesCount",e[e.ErrBadResolveTimesCount=3]="ErrBadResolveTimesCount",e[e.ErrBadRequestIDsCount=4]="ErrBadRequestIDsCount",e[e.ErrRelayerNotAuthorized=5]="ErrRelayerNotAuthorized",e[e.ErrBadPriceFeedBaseCount=6]="ErrBadPriceFeedBaseCount",e[e.ErrBadPriceFeedQuoteCount=7]="ErrBadPriceFeedQuoteCount",e[e.ErrUnsupportedOracleType=8]="ErrUnsupportedOracleType",e[e.ErrBadMessagesCount=9]="ErrBadMessagesCount",e[e.ErrBadCoinbaseMessage=10]="ErrBadCoinbaseMessage",e[e.ErrInvalidEthereumSignature=11]="ErrInvalidEthereumSignature",e[e.ErrBadCoinbaseMessageTimestamp=12]="ErrBadCoinbaseMessageTimestamp",e[e.ErrCoinbasePriceNotFound=13]="ErrCoinbasePriceNotFound",e[e.ErrBadPrice=14]="ErrBadPrice",e[e.ErrPriceTooLarge=15]="ErrPriceTooLarge",e[e.ErrInvalidBandIBCRequest=16]="ErrInvalidBandIBCRequest",e[e.ErrSample=17]="ErrSample",e[e.ErrInvalidPacketTimeout=18]="ErrInvalidPacketTimeout",e[e.ErrBadSymbolsCount=19]="ErrBadSymbolsCount",e[e.ErrBadIBCPortBind=20]="ErrBadIBCPortBind",e[e.ErrInvalidPortID=21]="ErrInvalidPortID",e[e.ErrInvalidChannelID=22]="ErrInvalidChannelID",e[e.ErrBadRequestInterval=23]="ErrBadRequestInterval",e[e.ErrInvalidBandIBCUpdateRequest=24]="ErrInvalidBandIBCUpdateRequest",e[e.ErrBandIBCRequestNotFound=25]="ErrBandIBCRequestNotFound",e[e.ErrEmptyBaseInfo=26]="ErrEmptyBaseInfo",e[e.ErrEmptyProvider=27]="ErrEmptyProvider",e[e.ErrInvalidProvider=28]="ErrInvalidProvider",e[e.ErrInvalidSymbol=29]="ErrInvalidSymbol",e[e.ErrRelayerAlreadyExists=30]="ErrRelayerAlreadyExists",e[e.ErrProviderPriceNotFound=31]="ErrProviderPriceNotFound",e[e.ErrInvalidOracleRequest=32]="ErrInvalidOracleRequest",e[e.ErrOraclePriceNotFound=33]="ErrOraclePriceNotFound"})(du||(du={}));var mu;(function(e){e[e.ErrInternal=1]="ErrInternal",e[e.ErrDuplicate=2]="ErrDuplicate",e[e.ErrInvalid=3]="ErrInvalid",e[e.ErrTimeout=4]="ErrTimeout",e[e.ErrUnknown=5]="ErrUnknown",e[e.ErrEmpty=6]="ErrEmpty",e[e.ErrOutdated=7]="ErrOutdated",e[e.ErrUnsupported=8]="ErrUnsupported",e[e.ErrNonContiguousEventNonce=9]="ErrNonContiguousEventNonce",e[e.ErrNoUnbatchedTxsFound=10]="ErrNoUnbatchedTxsFound",e[e.ErrResetDelegateKeys=11]="ErrResetDelegateKeys",e[e.ErrSupplyOverflow=12]="ErrSupplyOverflow",e[e.ErrInvalidEthSender=13]="ErrInvalidEthSender",e[e.ErrInvalidEthDestination=14]="ErrInvalidEthDestination"})(mu||(mu={}));var fu;(function(e){e[e.ErrDenomExists=2]="ErrDenomExists",e[e.ErrUnauthorized=3]="ErrUnauthorized",e[e.ErrInvalidDenom=4]="ErrInvalidDenom",e[e.ErrInvalidCreator=5]="ErrInvalidCreator",e[e.ErrInvalidAuthorityMetadata=6]="ErrInvalidAuthorityMetadata",e[e.ErrInvalidGenesis=7]="ErrInvalidGenesis",e[e.ErrSubdenomTooLong=8]="ErrSubdenomTooLong",e[e.ErrSubdenomTooShort=9]="ErrSubdenomTooShort",e[e.ErrSubdenomNestedTooShort=10]="ErrSubdenomNestedTooShort",e[e.ErrCreatorTooLong=11]="ErrCreatorTooLong",e[e.ErrDenomDoesNotExist=12]="ErrDenomDoesNotExist",e[e.ErrAmountNotPositive=13]="ErrAmountNotPositive"})(fu||(fu={}));var pu;(function(e){e[e.ErrInvalidGasLimit=1]="ErrInvalidGasLimit",e[e.ErrInvalidGasPrice=2]="ErrInvalidGasPrice",e[e.ErrInvalidContractAddress=3]="ErrInvalidContractAddress",e[e.ErrAlreadyRegistered=4]="ErrAlreadyRegistered",e[e.ErrDuplicateContract=5]="ErrDuplicateContract",e[e.ErrNoContractAddresses=6]="ErrNoContractAddresses",e[e.ErrInvalidCodeId=7]="ErrInvalidCodeId"})(pu||(pu={}));var gu;(function(e){e[e.ErrEmptyValidatorAddr=2]="ErrEmptyValidatorAddr",e[e.ErrNoValidatorFound=3]="ErrNoValidatorFound",e[e.ErrValidatorOwnerExists=4]="ErrValidatorOwnerExists",e[e.ErrValidatorPubKeyExists=5]="ErrValidatorPubKeyExists",e[e.ErrValidatorPubKeyTypeNotSupported=6]="ErrValidatorPubKeyTypeNotSupported",e[e.ErrValidatorJailed=7]="ErrValidatorJailed",e[e.ErrBadRemoveValidator=8]="ErrBadRemoveValidator",e[e.ErrCommissionNegative=9]="ErrCommissionNegative",e[e.ErrCommissionHuge=10]="ErrCommissionHuge",e[e.ErrCommissionGTMaxRate=11]="ErrCommissionGTMaxRate",e[e.ErrCommissionUpdateTime=12]="ErrCommissionUpdateTime",e[e.ErrCommissionChangeRateNegative=13]="ErrCommissionChangeRateNegative",e[e.ErrCommissionChangeRateGTMaxRate=14]="ErrCommissionChangeRateGTMaxRate",e[e.ErrCommissionGTMaxChangeRate=15]="ErrCommissionGTMaxChangeRate",e[e.ErrSelfDelegationBelowMinimum=16]="ErrSelfDelegationBelowMinimum",e[e.ErrMinSelfDelegationDecreased=17]="ErrMinSelfDelegationDecreased",e[e.ErrEmptyDelegatorAddr=18]="ErrEmptyDelegatorAddr",e[e.ErrNoDelegation=19]="ErrNoDelegation",e[e.ErrBadDelegatorAddr=20]="ErrBadDelegatorAddr",e[e.ErrNoDelegatorForAddress=21]="ErrNoDelegatorForAddress",e[e.ErrInsufficientShares=22]="ErrInsufficientShares",e[e.ErrDelegationValidatorEmpty=23]="ErrDelegationValidatorEmpty",e[e.ErrNotEnoughDelegationShares=24]="ErrNotEnoughDelegationShares",e[e.ErrNotMature=25]="ErrNotMature",e[e.ErrNoUnbondingDelegation=26]="ErrNoUnbondingDelegation",e[e.ErrMaxUnbondingDelegationEntries=27]="ErrMaxUnbondingDelegationEntries",e[e.ErrNoRedelegation=28]="ErrNoRedelegation",e[e.ErrSelfRedelegation=29]="ErrSelfRedelegation",e[e.ErrTinyRedelegationAmount=30]="ErrTinyRedelegationAmount",e[e.ErrBadRedelegationDst=31]="ErrBadRedelegationDst",e[e.ErrTransitiveRedelegation=32]="ErrTransitiveRedelegation",e[e.ErrMaxRedelegationEntries=33]="ErrMaxRedelegationEntries",e[e.ErrDelegatorShareExRateInvalid=34]="ErrDelegatorShareExRateInvalid",e[e.ErrBothShareMsgsGiven=35]="ErrBothShareMsgsGiven",e[e.ErrNeitherShareMsgsGiven=36]="ErrNeitherShareMsgsGiven",e[e.ErrInvalidHistoricalInfo=37]="ErrInvalidHistoricalInfo",e[e.ErrNoHistoricalInfo=38]="ErrNoHistoricalInfo",e[e.ErrEmptyValidatorPubKey=39]="ErrEmptyValidatorPubKey",e[e.ErrCommissionLTMinRate=40]="ErrCommissionLTMinRate",e[e.ErrUnbondingNotFound=41]="ErrUnbondingNotFound",e[e.ErrUnbondingOnHoldRefCountNegative=42]="ErrUnbondingOnHoldRefCountNegative"})(gu||(gu={}));var yu;(function(e){e[e.ErrUnknownProposal=2]="ErrUnknownProposal",e[e.ErrInactiveProposal=3]="ErrInactiveProposal",e[e.ErrAlreadyActiveProposal=4]="ErrAlreadyActiveProposal",e[e.ErrInvalidProposalContent=5]="ErrInvalidProposalContent",e[e.ErrInvalidProposalType=6]="ErrInvalidProposalType",e[e.ErrInvalidVote=7]="ErrInvalidVote",e[e.ErrInvalidGenesis=8]="ErrInvalidGenesis",e[e.ErrNoProposalHandlerExists=9]="ErrNoProposalHandlerExists",e[e.ErrUnroutableProposalMsg=10]="ErrUnroutableProposalMsg",e[e.ErrNoProposalMsgs=11]="ErrNoProposalMsgs",e[e.ErrInvalidProposalMsg=12]="ErrInvalidProposalMsg",e[e.ErrInvalidSigner=13]="ErrInvalidSigner",e[e.ErrInvalidSignalMsg=14]="ErrInvalidSignalMsg",e[e.ErrMetadataTooLong=15]="ErrMetadataTooLong",e[e.ErrMinDepositTooSmall=16]="ErrMinDepositTooSmall",e[e.ErrProposalNotFound=17]="ErrProposalNotFound",e[e.ErrInvalidProposer=18]="ErrInvalidProposer",e[e.ErrNoDeposits=19]="ErrNoDeposits",e[e.ErrVotingPeriodEnded=20]="ErrVotingPeriodEnded",e[e.ErrInvalidProposal=21]="ErrInvalidProposal"})(yu||(yu={}));var hu;(function(e){e[e.ErrEmptyDelegatorAddr=2]="ErrEmptyDelegatorAddr",e[e.ErrEmptyWithdrawAddr=3]="ErrEmptyWithdrawAddr",e[e.ErrEmptyValidatorAddr=4]="ErrEmptyValidatorAddr",e[e.ErrEmptyDelegationDistInfo=5]="ErrEmptyDelegationDistInfo",e[e.ErrNoValidatorDistInfo=6]="ErrNoValidatorDistInfo",e[e.ErrNoValidatorCommission=7]="ErrNoValidatorCommission",e[e.ErrSetWithdrawAddrDisabled=8]="ErrSetWithdrawAddrDisabled",e[e.ErrBadDistribution=9]="ErrBadDistribution",e[e.ErrInvalidProposalAmount=10]="ErrInvalidProposalAmount",e[e.ErrEmptyProposalRecipient=11]="ErrEmptyProposalRecipient",e[e.ErrNoValidatorExists=12]="ErrNoValidatorExists",e[e.ErrNoDelegationExists=13]="ErrNoDelegationExists"})(hu||(hu={}));var bu;(function(e){e[e.ErrNoInputs=2]="ErrNoInputs",e[e.ErrNoOutputs=3]="ErrNoOutputs",e[e.ErrInputOutputMismatch=4]="ErrInputOutputMismatch",e[e.ErrSendDisabled=5]="ErrSendDisabled",e[e.ErrDenomMetadataNotFound=6]="ErrDenomMetadataNotFound",e[e.ErrInvalidKey=7]="ErrInvalidKey",e[e.ErrDuplicateEntry=8]="ErrDuplicateEntry",e[e.ErrMultipleSenders=9]="ErrMultipleSenders"})(bu||(bu={}));var vu;(function(e){e[e.ErrCreateFailed=2]="ErrCreateFailed",e[e.ErrAccountExists=3]="ErrAccountExists",e[e.ErrInstantiateFailed=4]="ErrInstantiateFailed",e[e.ErrExecuteFailed=5]="ErrExecuteFailed",e[e.ErrGasLimit=6]="ErrGasLimit",e[e.ErrInvalidGenesis=7]="ErrInvalidGenesis",e[e.ErrNotFound=8]="ErrNotFound",e[e.ErrQueryFailed=9]="ErrQueryFailed",e[e.ErrInvalidMsg=10]="ErrInvalidMsg",e[e.ErrMigrationFailed=11]="ErrMigrationFailed",e[e.ErrEmpty=12]="ErrEmpty",e[e.ErrLimit=13]="ErrLimit",e[e.ErrInvalid=14]="ErrInvalid",e[e.ErrDuplicate=15]="ErrDuplicate",e[e.ErrMaxIBCChannels=16]="ErrMaxIBCChannels",e[e.ErrUnsupportedForContract=17]="ErrUnsupportedForContract",e[e.ErrPinContractFailed=18]="ErrPinContractFailed",e[e.ErrUnpinContractFailed=19]="ErrUnpinContractFailed",e[e.ErrUnknownMsg=20]="ErrUnknownMsg",e[e.ErrInvalidEvent=21]="ErrInvalidEvent"})(vu||(vu={}));const gn=-1;sg.grpc.Code.Unavailable;var ct;(function(e){e.Get="GET",e.Post="POST",e.Options="OPTIONS"})(ct||(ct={}));var yn;(function(e){e.Unspecified="unspecified",e.ChainError="chain-error",e.ExecutionError="execution-error",e.NotFoundError="not-found-error",e.ValidationError="validation-error",e.WalletError="wallet-error",e.WalletNotInstalledError="wallet-not-installed-error",e.GrpcUnaryRequest="grpc-unary-request",e.HttpRequest="http-request",e.Web3="web3"})(yn||(yn={}));const Fi=e=>`${e}`.toLowerCase().replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(t,n,r)=>`${n.toUpperCase()+r}`).replace(new RegExp(/\w/),t=>t.toUpperCase());class cc extends Error{constructor(n,r){super(n.message);E(this,"type",yn.Unspecified);E(this,"code",gn);E(this,"name");E(this,"errorClass");E(this,"context");E(this,"contextModule");E(this,"contextCode");E(this,"message","");E(this,"stack","");E(this,"originalMessage","");this.parseError(n),this.parseContext(r),this.parse()}parse(){}parseError(n){this.setName(this.errorClass||this.constructor.name),this.setStack(n.stack||""),this.setMessage(n.message),this.originalMessage=n.message}parseContext(n){const{contextModule:r,type:s,code:o,context:i}=n||{contextModule:"",context:"",code:gn,type:yn.Unspecified};this.context=i,this.contextModule=r,this.type=s||yn.Unspecified,this.code=o||gn}setType(n){this.type=n}setCode(n){this.code=n}setContext(n){this.context=n}setOriginalMessage(n){this.originalMessage=n}setStack(n){try{this.stack=n}catch{}}setName(n){super.name=n,this.name=n,this.errorClass=n}setMessage(n){super.message=n,this.message=n}setContextModule(n){this.contextModule=n}setContextCode(n){this.contextCode=n}toOriginalError(){const n=new Error(this.originalMessage);return n.stack=this.stack,n.name=this.name||"",n}toError(){const n=new Error(this.message);return n.stack=this.stack,n.name=this.name||"",n}toCompactError(){const n=this.name||Fi(this.type),r=new Error(`${this.message} | ${JSON.stringify({originalMessage:this.originalMessage,message:this.message,errorClass:n,code:this.code,type:this.type,context:this.context,contextModule:this.contextModule,contextCode:this.contextCode,stack:(this.stack||"").split(`
3
3
  `).map(s=>s.trim())})}`);return r.stack=this.stack,r.name=this.name||Fi(this.type),r}toJson(){return JSON.stringify({error:this.message,stack:this.stack})}toObject(){const n=this.name||Fi(this.type);return{message:this.message,originalMessage:this.originalMessage,errorClass:n,code:this.code,type:this.type,context:this.context,contextModule:this.contextModule,contextCode:this.contextCode,stack:(this.stack||"").split(`
4
4
  `).map(r=>r.trim())}}toString(){return this.message}}E(cc,"errorClass","");class ut extends cc{constructor(n,r){super(n,r);E(this,"errorClass","HttpRequestException");E(this,"method",ct.Get);this.type=yn.HttpRequest,this.method=r&&r.method||ct.Get}}class Vr extends cc{constructor(){super(...arguments);E(this,"errorClass","GeneralException")}}var fn;(function(e){e[e.CONTINUE=100]="CONTINUE",e[e.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",e[e.PROCESSING=102]="PROCESSING",e[e.EARLY_HINTS=103]="EARLY_HINTS",e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.ACCEPTED=202]="ACCEPTED",e[e.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.RESET_CONTENT=205]="RESET_CONTENT",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.MULTI_STATUS=207]="MULTI_STATUS",e[e.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",e[e.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",e[e.MOVED_TEMPORARILY=302]="MOVED_TEMPORARILY",e[e.SEE_OTHER=303]="SEE_OTHER",e[e.NOT_MODIFIED=304]="NOT_MODIFIED",e[e.USE_PROXY=305]="USE_PROXY",e[e.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",e[e.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.GONE=410]="GONE",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.REQUEST_TOO_LONG=413]="REQUEST_TOO_LONG",e[e.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.IM_A_TEAPOT=418]="IM_A_TEAPOT",e[e.INSUFFICIENT_SPACE_ON_RESOURCE=419]="INSUFFICIENT_SPACE_ON_RESOURCE",e[e.METHOD_FAILURE=420]="METHOD_FAILURE",e[e.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.LOCKED=423]="LOCKED",e[e.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",e[e.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",e[e.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",e[e.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED"})(fn||(fn={}));const Zr="Cosmwasm";function wu(e){try{const t=Fr.decodeToBytes(e);return{data:t.bytes,prefix:t.prefix}}catch{}try{return{data:nc.decode(e)}}catch{}try{return{data:rc.decode(e)}}catch{}throw new Error(`Cannot decode: ${e}`)}const ve=class ve{constructor(t){E(this,"platform",Zr);E(this,"address");E(this,"domain");E(this,"denom");E(this,"denomType");if(ve.instanceof(t)){const n=t;this.address=n.address,this.domain=n.domain,this.denom=n.denom,this.denomType=n.denomType;return}if(typeof t=="string"){if(t.length<=8){this.address=new Uint8Array(0),this.denom=t,this.denomType="native";return}if(t.indexOf("/")!==-1){const n=t.split("/");if(n.length>=3){const{data:r,prefix:s}=wu(n[n.length-2]);this.address=r,this.domain=s,this.denom=n[n.length-1],this.denomType=n.slice(0,n.length-2).join("/")}else{const{data:r}=wu(n[1]);this.address=r,this.denomType=n[0]}}else{if(!ve.isValidAddress(t))throw new Error(`Invalid Cosmwasm address: ${t}`);const{bytes:n,prefix:r}=Fr.decodeToBytes(t);this.address=n,this.domain=r}}else if(t instanceof Uint8Array)this.address=t;else if(Ps.instanceof(t))this.address=t.toUint8Array();else throw new Error(`Invalid Cosmwasm address ${t}`);if(!ve.validAddressLength(this.address))throw new Error("Expected 20 or 32 bytes address")}unwrap(){return this.toString()}toString(){return this.denomType!==void 0?this.denomType==="native"?this.denom:this.denomType==="ibc"?`${this.denomType.toLowerCase()}/${nc.encode(this.address).toUpperCase()}`:`${this.denomType}/${ve.encode(this.domain,this.address)}/${this.denom}`:ve.encode(this.domain,this.address)}toNative(){return this}toUint8Array(){return this.address}toUniversalAddress(){const t=new Uint8Array(Ps.byteSize);return t.set(this.address,Ps.byteSize-this.address.length),new Ps(t)}static isValidAddress(t){try{const n=Fr.decodeToBytes(t);return ve.validAddressLength(n.bytes)}catch{}return!1}static encode(t,n){return Fr.encode(t,Fr.toWords(n))}static validAddressLength(t){if(t.length!==ve.contractAddressByteSize&&t.length!==ve.accountAddressByteSize)throw new Error(`Invalid Cosmwasm address, expected ${ve.contractAddressByteSize} or ${ve.accountAddressByteSize} bytes but got ${t.length}`);return!0}static instanceof(t){return t.platform===Zr}equals(t){return ve.instanceof(t)?this.toString()===t.toString():t.equals(this.toUniversalAddress())}};E(ve,"contractAddressByteSize",32),E(ve,"accountAddressByteSize",20);let Te=ve;zf(Zr,Te);const mE=1e6,fE="/cosmwasm.wasm.v1.MsgExecuteContract",pE="/ibc.applications.transfer.v1.MsgTransfer",Ed="transfer",gE="send_packet",yE="recv_packet",hE="packet_dst_channel",bE="packet_src_channel",vE="packet_src_port",wE="packet_dst_port",_E="packet_sequence",SE="packet_data",AE=60*60*1e3,Td=[["Cosmoshub","cosmos"],["Evmos","evmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","osmo"],["Sei","sei"],["Terra","terra"],["Terra2","terra"],["Wormchain","wormhole"],["Xpla","xpla"],["Celestia","celestia"],["Stargaze","stars"],["Dymension","dym"],["Neutron","neutron"],["Seda","seda"],["Provenance","pb"]],Od=_n(Td);_n(Td,[1,[0]]);const Id=[["Mainnet",[["Cosmoshub","uatom"],["Evmos","aevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Terra","luna"],["Terra2","uluna"],["Wormchain","uworm"],["Xpla","uxpla"],["Celestia","utia"],["Dymension","adym"],["Stargaze","ustars"],["Neutron","untrn"],["Provenance","nhash"]]],["Testnet",[["Cosmoshub","uatom"],["Evmos","atevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Terra","luna"],["Terra2","uluna"],["Wormchain","uworm"],["Xpla","uxpla"],["Seda","aseda"]]],["Devnet",[["Cosmoshub","uatom"],["Evmos","atevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Terra","luna"],["Terra2","uluna"],["Wormchain","uworm"],["Xpla","uxpla"]]]],og=_n(Id);_n(Id,[[0,2],[1]]);const ig=[["Mainnet",[["Wormchain",{Osmosis:"channel-3",Evmos:"channel-5",Kujira:"channel-9",Stargaze:"channel-12",Injective:"channel-13",Dymension:"channel-15"}],["Osmosis",{Wormchain:"channel-2186"}],["Evmos",{Wormchain:"channel-94"}],["Kujira",{Wormchain:"channel-113"}],["Injective",{Wormchain:"channel-183"}],["Dymension",{Wormchain:"channel-36"}],["Stargaze",{Wormchain:"channel-278"}]]],["Testnet",[["Wormchain",{Cosmoshub:"channel-5",Osmosis:"channel-9"}],["Cosmoshub",{Wormchain:"channel-3086"}],["Osmosis",{Wormchain:"channel-3906"}]]],["Devnet",[["Wormchain",{Cosmoshub:"channel-1",Osmosis:"channel-2"}],["Cosmoshub",{Wormchain:"channel-1"}],["Osmosis",{Wormchain:"channel-1"}]]]],_u=_n(ig),ag=["Evmos","Injective"],cg=[["Mainnet",[["Injective","https://lcd.injective.network"],["Evmos","https://rest.bd.evmos.org:1317"]]],["Testnet",[["Injective","https://k8s.testnet.lcd.injective.network"],["Evmos","https://rest.bd.evmos.dev:1317"]]],["Devnet",[["Injective","https://localhost:1234"],["Evmos","https://localhost:1233"]]]],ug=_n(cg),lg=[["Mainnet",[["Terra","28.325"],["Terra2","0.015"],["Osmosis","0.025"],["Sei","0.02"],["Cosmoshub","0.025"],["Kujira","0.0051"],["Neutron","0.075"],["Celestia","0.02"],["Stargaze","1.1"],["Injective","700000000"],["Xpla","1147500000000"],["Evmos","25000000000"],["Dymension","5000000000"],["Provenance","2100"]]]],PE=_n(lg);var hn={},as={},se={},So={},dg=h&&h.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(So,"__esModule",{value:!0});So.Decimal=void 0;const it=dg(_o),Su=100;class ne{static fromUserInput(t,n){ne.verifyFractionalDigits(n);const r=t.match(/[^0-9.]/);if(r)throw new Error(`Invalid character at position ${r.index+1}`);let s,o;if(t==="")s="0",o="";else if(t.search(/\./)===-1)s=t,o="";else{const a=t.split(".");switch(a.length){case 0:case 1:throw new Error("Fewer than two elements in split result. This must not happen here.");case 2:if(!a[1])throw new Error("Fractional part missing");s=a[0],o=a[1].replace(/0+$/,"");break;default:throw new Error("More than one separator found")}}if(o.length>n)throw new Error("Got more fractional digits than supported");const i=`${s}${o.padEnd(n,"0")}`;return new ne(i,n)}static fromAtomics(t,n){return ne.verifyFractionalDigits(n),new ne(t,n)}static zero(t){return ne.verifyFractionalDigits(t),new ne("0",t)}static one(t){return ne.verifyFractionalDigits(t),new ne("1"+"0".repeat(t),t)}static verifyFractionalDigits(t){if(!Number.isInteger(t))throw new Error("Fractional digits is not an integer");if(t<0)throw new Error("Fractional digits must not be negative");if(t>Su)throw new Error(`Fractional digits must not exceed ${Su}`)}static compare(t,n){if(t.fractionalDigits!==n.fractionalDigits)throw new Error("Fractional digits do not match");return t.data.atomics.cmp(new it.default(n.atomics))}get atomics(){return this.data.atomics.toString()}get fractionalDigits(){return this.data.fractionalDigits}constructor(t,n){if(!t.match(/^[0-9]+$/))throw new Error("Invalid string format. Only non-negative integers in decimal representation supported.");this.data={atomics:new it.default(t),fractionalDigits:n}}clone(){return new ne(this.atomics,this.fractionalDigits)}floor(){const t=new it.default(10).pow(new it.default(this.data.fractionalDigits)),n=this.data.atomics.div(t);return this.data.atomics.mod(t).isZero()?this.clone():ne.fromAtomics(n.mul(t).toString(),this.fractionalDigits)}ceil(){const t=new it.default(10).pow(new it.default(this.data.fractionalDigits)),n=this.data.atomics.div(t);return this.data.atomics.mod(t).isZero()?this.clone():ne.fromAtomics(n.addn(1).mul(t).toString(),this.fractionalDigits)}toString(){const t=new it.default(10).pow(new it.default(this.data.fractionalDigits)),n=this.data.atomics.div(t),r=this.data.atomics.mod(t);if(r.isZero())return n.toString();{const o=r.toString().padStart(this.data.fractionalDigits,"0").replace(/0+$/,"");return`${n.toString()}.${o}`}}toFloatApproximation(){const t=Number(this.toString());if(Number.isNaN(t))throw new Error("Conversion to number failed");return t}plus(t){if(this.fractionalDigits!==t.fractionalDigits)throw new Error("Fractional digits do not match");const n=this.data.atomics.add(new it.default(t.atomics));return new ne(n.toString(),this.fractionalDigits)}minus(t){if(this.fractionalDigits!==t.fractionalDigits)throw new Error("Fractional digits do not match");const n=this.data.atomics.sub(new it.default(t.atomics));if(n.ltn(0))throw new Error("Difference must not be negative");return new ne(n.toString(),this.fractionalDigits)}multiply(t){const n=this.data.atomics.mul(new it.default(t.toString()));return new ne(n.toString(),this.fractionalDigits)}equals(t){return ne.compare(this,t)===0}isLessThan(t){return ne.compare(this,t)<0}isLessThanOrEqual(t){return ne.compare(this,t)<=0}isGreaterThan(t){return ne.compare(this,t)>0}isGreaterThanOrEqual(t){return ne.compare(this,t)>=0}}So.Decimal=ne;var bt={},mg=h&&h.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bt,"__esModule",{value:!0});bt.Uint64=bt.Uint53=bt.Int53=bt.Uint32=void 0;const Cs=mg(_o),fg=new Cs.default("18446744073709551615",10,"be");class Gr{static fromBigEndianBytes(t){return Gr.fromBytes(t)}static fromBytes(t,n="be"){if(t.length!==4)throw new Error("Invalid input length. Expected 4 bytes.");for(let s=0;s<t.length;++s)if(!Number.isInteger(t[s])||t[s]>255||t[s]<0)throw new Error("Invalid value in byte. Found: "+t[s]);const r=n==="be"?t:Array.from(t).reverse();return new Gr(r[0]*2**24+r[1]*2**16+r[2]*2**8+r[3])}static fromString(t){if(!t.match(/^[0-9]+$/))throw new Error("Invalid string format");return new Gr(Number.parseInt(t,10))}constructor(t){if(Number.isNaN(t))throw new Error("Input is not a number");if(!Number.isInteger(t))throw new Error("Input is not an integer");if(t<0||t>4294967295)throw new Error("Input not in uint32 range: "+t.toString());this.data=t}toBytesBigEndian(){return new Uint8Array([Math.floor(this.data/2**24)&255,Math.floor(this.data/2**16)&255,Math.floor(this.data/2**8)&255,Math.floor(this.data/2**0)&255])}toBytesLittleEndian(){return new Uint8Array([Math.floor(this.data/2**0)&255,Math.floor(this.data/2**8)&255,Math.floor(this.data/2**16)&255,Math.floor(this.data/2**24)&255])}toNumber(){return this.data}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}}bt.Uint32=Gr;class es{static fromString(t){if(!t.match(/^-?[0-9]+$/))throw new Error("Invalid string format");return new es(Number.parseInt(t,10))}constructor(t){if(Number.isNaN(t))throw new Error("Input is not a number");if(!Number.isInteger(t))throw new Error("Input is not an integer");if(t<Number.MIN_SAFE_INTEGER||t>Number.MAX_SAFE_INTEGER)throw new Error("Input not in int53 range: "+t.toString());this.data=t}toNumber(){return this.data}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}}bt.Int53=es;class uc{static fromString(t){const n=es.fromString(t);return new uc(n.toNumber())}constructor(t){const n=new es(t);if(n.toNumber()<0)throw new Error("Input is negative");this.data=n}toNumber(){return this.data.toNumber()}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}}bt.Uint53=uc;class xn{static fromBytesBigEndian(t){return xn.fromBytes(t)}static fromBytes(t,n="be"){if(t.length!==8)throw new Error("Invalid input length. Expected 8 bytes.");for(let s=0;s<t.length;++s)if(!Number.isInteger(t[s])||t[s]>255||t[s]<0)throw new Error("Invalid value in byte. Found: "+t[s]);const r=n==="be"?Array.from(t):Array.from(t).reverse();return new xn(new Cs.default(r))}static fromString(t){if(!t.match(/^[0-9]+$/))throw new Error("Invalid string format");return new xn(new Cs.default(t,10,"be"))}static fromNumber(t){if(Number.isNaN(t))throw new Error("Input is not a number");if(!Number.isInteger(t))throw new Error("Input is not an integer");let n;try{n=new Cs.default(t)}catch{throw new Error("Input is not a safe integer")}return new xn(n)}constructor(t){if(t.isNeg())throw new Error("Input is negative");if(t.gt(fg))throw new Error("Input exceeds uint64 range");this.data=t}toBytesBigEndian(){return Uint8Array.from(this.data.toArray("be",8))}toBytesLittleEndian(){return Uint8Array.from(this.data.toArray("le",8))}toString(){return this.data.toString(10)}toBigInt(){return BigInt(this.toString())}toNumber(){return this.data.toNumber()}}bt.Uint64=xn;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Uint64=e.Uint53=e.Uint32=e.Int53=e.Decimal=void 0;var t=So;Object.defineProperty(e,"Decimal",{enumerable:!0,get:function(){return t.Decimal}});var n=bt;Object.defineProperty(e,"Int53",{enumerable:!0,get:function(){return n.Int53}}),Object.defineProperty(e,"Uint32",{enumerable:!0,get:function(){return n.Uint32}}),Object.defineProperty(e,"Uint53",{enumerable:!0,get:function(){return n.Uint53}}),Object.defineProperty(e,"Uint64",{enumerable:!0,get:function(){return n.Uint64}})})(se);var Et={},Ao={};Object.defineProperty(Ao,"__esModule",{value:!0});Ao.decodeTxRaw=void 0;const Vi=Rt;function pg(e){const t=Vi.TxRaw.decode(e);return{authInfo:Vi.AuthInfo.decode(t.authInfoBytes),body:Vi.TxBody.decode(t.bodyBytes),signatures:t.signatures}}Ao.decodeTxRaw=pg;var Wn={},gt={},qe={},be={},vt={},j={},Jn={};Object.defineProperty(Jn,"__esModule",{value:!0});Jn.fromAscii=Jn.toAscii=void 0;function gg(e){const t=n=>n.split("").map(r=>{const s=r.charCodeAt(0);if(s<32||s>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+s);return s});return Uint8Array.from(t(e))}Jn.toAscii=gg;function yg(e){return(n=>n.map(r=>{if(r<32||r>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+r);return String.fromCharCode(r)}))(Array.from(e)).join("")}Jn.fromAscii=yg;var Gn={},hg=h&&h.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),bg=h&&h.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),vg=h&&h.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&hg(t,e,n);return bg(t,e),t};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.fromBase64=Gn.toBase64=void 0;const Bd=vg(Qf);function wg(e){return Bd.fromByteArray(e)}Gn.toBase64=wg;function _g(e){if(!e.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return Bd.toByteArray(e)}Gn.fromBase64=_g;var Ht={},ro="qpzry9x8gf2tvdw0s3jn54khce6mua7l",Ea={};for(var ks=0;ks<ro.length;ks++){var Li=ro.charAt(ks);if(Ea[Li]!==void 0)throw new TypeError(Li+" is ambiguous");Ea[Li]=ks}function Ln(e){var t=e>>25;return(e&33554431)<<5^-(t>>0&1)&996825010^-(t>>1&1)&642813549^-(t>>2&1)&513874426^-(t>>3&1)&1027748829^-(t>>4&1)&705979059}function Nd(e){for(var t=1,n=0;n<e.length;++n){var r=e.charCodeAt(n);if(r<33||r>126)return"Invalid prefix ("+e+")";t=Ln(t)^r>>5}for(t=Ln(t),n=0;n<e.length;++n){var s=e.charCodeAt(n);t=Ln(t)^s&31}return t}function Sg(e,t,n){if(n=n||90,e.length+7+t.length>n)throw new TypeError("Exceeds length limit");e=e.toLowerCase();var r=Nd(e);if(typeof r=="string")throw new Error(r);for(var s=e+"1",o=0;o<t.length;++o){var i=t[o];if(i>>5)throw new Error("Non 5-bit word");r=Ln(r)^i,s+=ro.charAt(i)}for(o=0;o<6;++o)r=Ln(r);for(r^=1,o=0;o<6;++o){var a=r>>(5-o)*5&31;s+=ro.charAt(a)}return s}function Md(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var n=e.toLowerCase(),r=e.toUpperCase();if(e!==n&&e!==r)return"Mixed-case string "+e;e=n;var s=e.lastIndexOf("1");if(s===-1)return"No separator character for "+e;if(s===0)return"Missing prefix for "+e;var o=e.slice(0,s),i=e.slice(s+1);if(i.length<6)return"Data too short";var a=Nd(o);if(typeof a=="string")return a;for(var c=[],u=0;u<i.length;++u){var l=i.charAt(u),d=Ea[l];if(d===void 0)return"Unknown character "+l;a=Ln(a)^d,!(u+6>=i.length)&&c.push(d)}return a!==1?"Invalid checksum for "+e:{prefix:o,words:c}}function Ag(){var e=Md.apply(null,arguments);if(typeof e=="object")return e}function Pg(e){var t=Md.apply(null,arguments);if(typeof t=="object")return t;throw new Error(t)}function Po(e,t,n,r){for(var s=0,o=0,i=(1<<n)-1,a=[],c=0;c<e.length;++c)for(s=s<<t|e[c],o+=t;o>=n;)o-=n,a.push(s>>o&i);if(r)o>0&&a.push(s<<n-o&i);else{if(o>=t)return"Excess padding";if(s<<n-o&i)return"Non-zero padding"}return a}function kg(e){var t=Po(e,8,5,!0);if(Array.isArray(t))return t}function Eg(e){var t=Po(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)}function Tg(e){var t=Po(e,5,8,!1);if(Array.isArray(t))return t}function Og(e){var t=Po(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}var Ig={decodeUnsafe:Ag,decode:Pg,encode:Sg,toWordsUnsafe:kg,toWords:Eg,fromWordsUnsafe:Tg,fromWords:Og},Bg=h&&h.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Ng=h&&h.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Mg=h&&h.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Bg(t,e,n);return Ng(t,e),t};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.normalizeBech32=Ht.fromBech32=Ht.toBech32=void 0;const so=Mg(Ig);function Rd(e,t,n){return so.encode(e,so.toWords(t),n)}Ht.toBech32=Rd;function jd(e,t=1/0){const n=so.decode(e,t);return{prefix:n.prefix,data:new Uint8Array(so.fromWords(n.words))}}Ht.fromBech32=jd;function Rg(e){const{prefix:t,data:n}=jd(e);return Rd(t,n)}Ht.normalizeBech32=Rg;var Kn={};Object.defineProperty(Kn,"__esModule",{value:!0});Kn.fromHex=Kn.toHex=void 0;function jg(e){let t="";for(const n of e)t+=("0"+n.toString(16)).slice(-2);return t}Kn.toHex=jg;function Dg(e){if(e.length%2!==0)throw new Error("hex string length must be a multiple of 2");const t=new Uint8Array(e.length/2);for(let n=0;n<t.length;n++){const r=2*n,s=e.slice(r,r+2);if(!s.match(/[0-9a-f]{2}/i))throw new Error("hex string contains invalid characters");t[n]=parseInt(s,16)}return t}Kn.fromHex=Dg;var zn={};Object.defineProperty(zn,"__esModule",{value:!0});zn.toRfc3339=zn.fromRfc3339=void 0;const Ug=/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/;function Tn(e,t=2){return e.toString().padStart(t,"0")}function $g(e){const t=Ug.exec(e);if(!t)throw new Error("Date string is not in RFC3339 format");const n=+t[1],r=+t[2],s=+t[3],o=+t[4],i=+t[5],a=+t[6],c=t[7]?Math.floor(+t[7]*1e3):0;let u,l,d;t[8]==="Z"?(u=1,l=0,d=0):(u=t[8].substring(0,1)==="-"?-1:1,l=+t[8].substring(1,3),d=+t[8].substring(4,6));const b=u*(l*60+d)*60,y=new Date;return y.setUTCFullYear(n,r-1,s),y.setUTCHours(o,i,a,c),new Date(y.getTime()-b*1e3)}zn.fromRfc3339=$g;function xg(e){const t=e.getUTCFullYear(),n=Tn(e.getUTCMonth()+1),r=Tn(e.getUTCDate()),s=Tn(e.getUTCHours()),o=Tn(e.getUTCMinutes()),i=Tn(e.getUTCSeconds()),a=Tn(e.getUTCMilliseconds(),3);return`${t}-${n}-${r}T${s}:${o}:${i}.${a}Z`}zn.toRfc3339=xg;var Qn={};Object.defineProperty(Qn,"__esModule",{value:!0});Qn.fromUtf8=Qn.toUtf8=void 0;function Hg(e){return new TextEncoder().encode(e)}Qn.toUtf8=Hg;function qg(e,t=!1){const n=!t;return new TextDecoder("utf-8",{fatal:n}).decode(e)}Qn.fromUtf8=qg;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toUtf8=e.fromUtf8=e.toRfc3339=e.fromRfc3339=e.toHex=e.fromHex=e.toBech32=e.normalizeBech32=e.fromBech32=e.toBase64=e.fromBase64=e.toAscii=e.fromAscii=void 0;var t=Jn;Object.defineProperty(e,"fromAscii",{enumerable:!0,get:function(){return t.fromAscii}}),Object.defineProperty(e,"toAscii",{enumerable:!0,get:function(){return t.toAscii}});var n=Gn;Object.defineProperty(e,"fromBase64",{enumerable:!0,get:function(){return n.fromBase64}}),Object.defineProperty(e,"toBase64",{enumerable:!0,get:function(){return n.toBase64}});var r=Ht;Object.defineProperty(e,"fromBech32",{enumerable:!0,get:function(){return r.fromBech32}}),Object.defineProperty(e,"normalizeBech32",{enumerable:!0,get:function(){return r.normalizeBech32}}),Object.defineProperty(e,"toBech32",{enumerable:!0,get:function(){return r.toBech32}});var s=Kn;Object.defineProperty(e,"fromHex",{enumerable:!0,get:function(){return s.fromHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return s.toHex}});var o=zn;Object.defineProperty(e,"fromRfc3339",{enumerable:!0,get:function(){return o.fromRfc3339}}),Object.defineProperty(e,"toRfc3339",{enumerable:!0,get:function(){return o.toRfc3339}});var i=Qn;Object.defineProperty(e,"fromUtf8",{enumerable:!0,get:function(){return i.fromUtf8}}),Object.defineProperty(e,"toUtf8",{enumerable:!0,get:function(){return i.toUtf8}})})(j);var Oe={},te={},Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.arrayContentStartsWith=Cn.arrayContentEquals=void 0;function Fg(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}Cn.arrayContentEquals=Fg;function Vg(e,t){if(e.length<t.length)return!1;for(let n=0;n<t.length;++n)if(e[n]!==t[n])return!1;return!0}Cn.arrayContentStartsWith=Vg;var qt={};Object.defineProperty(qt,"__esModule",{value:!0});qt.assertDefinedAndNotNull=qt.assertDefined=qt.assert=void 0;function Lg(e,t){if(!e)throw new Error(t||"condition is not truthy")}qt.assert=Lg;function Wg(e,t){if(e===void 0)throw new Error(t??"value is undefined")}qt.assertDefined=Wg;function Jg(e,t){if(e==null)throw new Error(t??"value is undefined or null")}qt.assertDefinedAndNotNull=Jg;var ko={};Object.defineProperty(ko,"__esModule",{value:!0});ko.sleep=void 0;async function Gg(e){return new Promise(t=>setTimeout(t,e))}ko.sleep=Gg;var Ft={};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.isDefined=Ft.isUint8Array=Ft.isNonNullObject=void 0;function Dd(e){return typeof e=="object"&&e!==null}Ft.isNonNullObject=Dd;function Kg(e){return!(!Dd(e)||Object.prototype.toString.call(e)!=="[object Uint8Array]"||typeof U.Buffer<"u"&&typeof U.Buffer.isBuffer<"u"&&U.Buffer.isBuffer(e))}Ft.isUint8Array=Kg;function zg(e){return e!==void 0}Ft.isDefined=zg;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isUint8Array=e.isNonNullObject=e.isDefined=e.sleep=e.assertDefinedAndNotNull=e.assertDefined=e.assert=e.arrayContentStartsWith=e.arrayContentEquals=void 0;var t=Cn;Object.defineProperty(e,"arrayContentEquals",{enumerable:!0,get:function(){return t.arrayContentEquals}}),Object.defineProperty(e,"arrayContentStartsWith",{enumerable:!0,get:function(){return t.arrayContentStartsWith}});var n=qt;Object.defineProperty(e,"assert",{enumerable:!0,get:function(){return n.assert}}),Object.defineProperty(e,"assertDefined",{enumerable:!0,get:function(){return n.assertDefined}}),Object.defineProperty(e,"assertDefinedAndNotNull",{enumerable:!0,get:function(){return n.assertDefinedAndNotNull}});var r=ko;Object.defineProperty(e,"sleep",{enumerable:!0,get:function(){return r.sleep}});var s=Ft;Object.defineProperty(e,"isDefined",{enumerable:!0,get:function(){return s.isDefined}}),Object.defineProperty(e,"isNonNullObject",{enumerable:!0,get:function(){return s.isNonNullObject}}),Object.defineProperty(e,"isUint8Array",{enumerable:!0,get:function(){return s.isUint8Array}})})(te);var Qg=h&&h.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Cg=h&&h.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Yg=h&&h.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Qg(t,e,n);return Cg(t,e),t};Object.defineProperty(Oe,"__esModule",{value:!0});Oe.pbkdf2Sha512=Oe.pbkdf2Sha512Noble=Oe.pbkdf2Sha512NodeCrypto=Oe.pbkdf2Sha512Subtle=Oe.getSubtle=Oe.getNodeCrypto=void 0;const pn=te,Xg=Cf,Zg=bd;async function Ud(){try{const e=await Promise.resolve().then(()=>Yg(hd()));return typeof e=="object"&&Object.keys(e).length<=1?void 0:e}catch{return}}Oe.getNodeCrypto=Ud;async function $d(){var t,n,r;let e=(t=globalThis==null?void 0:globalThis.crypto)==null?void 0:t.subtle;return e||(e=(r=(n=globalThis==null?void 0:globalThis.crypto)==null?void 0:n.webcrypto)==null?void 0:r.subtle),e}Oe.getSubtle=$d;async function xd(e,t,n,r,s){return(0,pn.assert)(e,"Argument subtle is falsy"),(0,pn.assert)(typeof e=="object","Argument subtle is not of type object"),(0,pn.assert)(typeof e.importKey=="function","subtle.importKey is not a function"),(0,pn.assert)(typeof e.deriveBits=="function","subtle.deriveBits is not a function"),e.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(o=>e.deriveBits({name:"PBKDF2",salt:n,iterations:r,hash:{name:"SHA-512"}},o,s*8).then(i=>new Uint8Array(i)))}Oe.pbkdf2Sha512Subtle=xd;async function Hd(e,t,n,r,s){return(0,pn.assert)(e,"Argument nodeCrypto is falsy"),(0,pn.assert)(typeof e=="object","Argument nodeCrypto is not of type object"),(0,pn.assert)(typeof e.pbkdf2=="function","nodeCrypto.pbkdf2 is not a function"),new Promise((o,i)=>{e.pbkdf2(t,n,r,s,"sha512",(a,c)=>{a?i(a):o(Uint8Array.from(c))})})}Oe.pbkdf2Sha512NodeCrypto=Hd;async function qd(e,t,n,r){return(0,Xg.pbkdf2Async)(Zg.sha512,e,t,{c:n,dkLen:r})}Oe.pbkdf2Sha512Noble=qd;async function ey(e,t,n,r){const s=await $d();if(s)return xd(s,e,t,n,r);{const o=await Ud();return o?Hd(o,e,t,n,r):qd(e,t,n,r)}}Oe.pbkdf2Sha512=ey;var st={},Pr={};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.toRealUint8Array=void 0;function ty(e){return e instanceof Uint8Array?e:Uint8Array.from(e)}Pr.toRealUint8Array=ty;Object.defineProperty(st,"__esModule",{value:!0});st.sha512=st.Sha512=st.sha256=st.Sha256=void 0;const ny=Yf,ry=bd,Fd=Pr;class Vd{constructor(t){this.blockSize=512/8,this.impl=ny.sha256.create(),t&&this.update(t)}update(t){return this.impl.update((0,Fd.toRealUint8Array)(t)),this}digest(){return this.impl.digest()}}st.Sha256=Vd;function sy(e){return new Vd(e).digest()}st.sha256=sy;class Ld{constructor(t){this.blockSize=1024/8,this.impl=ry.sha512.create(),t&&this.update(t)}update(t){return this.impl.update((0,Fd.toRealUint8Array)(t)),this}digest(){return this.impl.digest()}}st.Sha512=Ld;function oy(e){return new Ld(e).digest()}st.sha512=oy;Object.defineProperty(vt,"__esModule",{value:!0});vt.Bip39=vt.EnglishMnemonic=vt.mnemonicToEntropy=vt.entropyToMnemonic=void 0;const Au=j,iy=Oe,ay=st,lc=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];function Wd(e){return Array.from(e).map(t=>t.toString(2).padStart(8,"0")).join("")}function Jd(e){const n=e.length*8/32,r=(0,ay.sha256)(e);return Wd(r).slice(0,n)}function Gd(e){return parseInt(e,2)}const cy=[16,20,24,28,32],uy=[12,15,18,21,24];function Kd(e){if(cy.indexOf(e.length)===-1)throw new Error("invalid input length");const t=Wd(e),n=Jd(e);return(t+n).match(/(.{11})/g).map(i=>{const a=Gd(i);return lc[a]}).join(" ")}vt.entropyToMnemonic=Kd;const ly="Invalid number of words",dy="Found word that is not in the wordlist",my="Invalid entropy",fy="Invalid mnemonic checksum";function Ta(e){return e.normalize("NFKD")}function dc(e){const t=Ta(e).split(" ");if(!uy.includes(t.length))throw new Error(ly);const n=t.map(u=>{const l=lc.indexOf(u);if(l===-1)throw new Error(dy);return l.toString(2).padStart(11,"0")}).join(""),r=Math.floor(n.length/33)*32,s=n.slice(0,r),o=n.slice(r),i=s.match(/(.{1,8})/g).map(Gd);if(i.length<16||i.length>32||i.length%4!==0)throw new Error(my);const a=Uint8Array.from(i);if(Jd(a)!==o)throw new Error(fy);return a}vt.mnemonicToEntropy=dc;class bn{constructor(t){if(!bn.mnemonicMatcher.test(t))throw new Error("Invalid mnemonic format");const n=t.split(" "),r=[12,15,18,21,24];if(r.indexOf(n.length)===-1)throw new Error(`Invalid word count in mnemonic (allowed: ${r} got: ${n.length})`);for(const s of n)if(bn.wordlist.indexOf(s)===-1)throw new Error("Mnemonic contains invalid word");dc(t),this.data=t}toString(){return this.data}}vt.EnglishMnemonic=bn;bn.wordlist=lc;bn.mnemonicMatcher=/^[a-z]+( [a-z]+)*$/;class py{static encode(t){return new bn(Kd(t))}static decode(t){return dc(t.toString())}static async mnemonicToSeed(t,n){const r=(0,Au.toUtf8)(Ta(t.toString())),s="mnemonic"+(n?Ta(n):""),o=(0,Au.toUtf8)(s);return(0,iy.pbkdf2Sha512)(r,o,2048,64)}}vt.Bip39=py;var cs={};Object.defineProperty(cs,"__esModule",{value:!0});cs.Hmac=void 0;class gy{constructor(t,n){const r=new t().blockSize;this.hash=o=>new t().update(o).digest();let s=n;if(s.length>r&&(s=this.hash(s)),s.length<r){const o=new Uint8Array(r-s.length);s=new Uint8Array([...s,...o])}this.oKeyPad=s.map(o=>o^92),this.iKeyPad=s.map(o=>o^54),this.messageHasher=new t,this.blockSize=r,this.update(this.iKeyPad)}update(t){return this.messageHasher.update(t),this}digest(){const t=this.messageHasher.digest();return this.hash(new Uint8Array([...this.oKeyPad,...t]))}}cs.Hmac=gy;var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.keccak256=Yn.Keccak256=void 0;const yy=Xf,hy=Pr;class zd{constructor(t){this.blockSize=512/8,this.impl=yy.keccak_256.create(),t&&this.update(t)}update(t){return this.impl.update((0,hy.toRealUint8Array)(t)),this}digest(){return this.impl.digest()}}Yn.Keccak256=zd;function by(e){return new zd(e).digest()}Yn.keccak256=by;var Ie={},vy=h&&h.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.Xchacha20poly1305Ietf=Ie.xchacha20NonceLength=Ie.Ed25519=Ie.Ed25519Keypair=Ie.Argon2id=Ie.isArgon2idOptions=void 0;const wy=te,xe=vy(Zf);function _y(e){return!(!(0,wy.isNonNullObject)(e)||typeof e.outputLength!="number"||typeof e.opsLimit!="number"||typeof e.memLimitKib!="number")}Ie.isArgon2idOptions=_y;class Sy{static async execute(t,n,r){return await xe.default.ready,xe.default.crypto_pwhash(r.outputLength,t,n,r.opsLimit,r.memLimitKib*1024,xe.default.crypto_pwhash_ALG_ARGON2ID13)}}Ie.Argon2id=Sy;class Eo{static fromLibsodiumPrivkey(t){if(t.length!==64)throw new Error(`Unexpected key length ${t.length}. Must be 64.`);return new Eo(t.slice(0,32),t.slice(32,64))}constructor(t,n){this.privkey=t,this.pubkey=n}toLibsodiumPrivkey(){return new Uint8Array([...this.privkey,...this.pubkey])}}Ie.Ed25519Keypair=Eo;class Ay{static async makeKeypair(t){await xe.default.ready;const n=xe.default.crypto_sign_seed_keypair(t);return Eo.fromLibsodiumPrivkey(n.privateKey)}static async createSignature(t,n){return await xe.default.ready,xe.default.crypto_sign_detached(t,n.toLibsodiumPrivkey())}static async verifySignature(t,n,r){return await xe.default.ready,xe.default.crypto_sign_verify_detached(t,n,r)}}Ie.Ed25519=Ay;Ie.xchacha20NonceLength=24;class Py{static async encrypt(t,n,r){return await xe.default.ready,xe.default.crypto_aead_xchacha20poly1305_ietf_encrypt(t,null,null,r,n)}static async decrypt(t,n,r){return await xe.default.ready,xe.default.crypto_aead_xchacha20poly1305_ietf_decrypt(null,t,null,r,n)}}Ie.Xchacha20poly1305Ietf=Py;var To={};Object.defineProperty(To,"__esModule",{value:!0});To.Random=void 0;class ky{static getBytes(t){try{const n=typeof window=="object"?window:self,r=typeof n.crypto<"u"?n.crypto:n.msCrypto,s=new Uint8Array(t);return r.getRandomValues(s),s}catch{try{const n=hd();return new Uint8Array([...n.randomBytes(t)])}catch{throw new Error("No secure random number generator found")}}}}To.Random=ky;var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.ripemd160=Xn.Ripemd160=void 0;const Ey=ep,Ty=Pr;class Qd{constructor(t){this.blockSize=512/8,this.impl=Ey.ripemd160.create(),t&&this.update(t)}update(t){return this.impl.update((0,Ty.toRealUint8Array)(t)),this}digest(){return this.impl.digest()}}Xn.Ripemd160=Qd;function Oy(e){return new Qd(e).digest()}Xn.ripemd160=Oy;var Oo={},vn={};Object.defineProperty(vn,"__esModule",{value:!0});vn.ExtendedSecp256k1Signature=vn.Secp256k1Signature=void 0;function Hn(e){let t=0;for(const n of e)if(n===0)t++;else break;return e.slice(t)}const Es=2;class ts{static fromFixedLength(t){if(t.length!==64)throw new Error(`Got invalid data length: ${t.length}. Expected 2x 32 bytes for the pair (r, s)`);return new ts(Hn(t.slice(0,32)),Hn(t.slice(32,64)))}static fromDer(t){let n=0;if(t[n++]!==48)throw new Error("Prefix 0x30 expected");const r=t[n++];if(t.length-n!==r)throw new Error("Data length mismatch detected");if(t[n++]!==Es)throw new Error("INTEGER tag expected");const o=t[n++];if(o>=128)throw new Error("Decoding length values above 127 not supported");const i=t.slice(n,n+o);if(n+=o,t[n++]!==Es)throw new Error("INTEGER tag expected");const c=t[n++];if(c>=128)throw new Error("Decoding length values above 127 not supported");const u=t.slice(n,n+c);return n+=c,new ts(Hn(i),Hn(u))}constructor(t,n){if(t.length>32||t.length===0||t[0]===0)throw new Error("Unsigned integer r must be encoded as unpadded big endian.");if(n.length>32||n.length===0||n[0]===0)throw new Error("Unsigned integer s must be encoded as unpadded big endian.");this.data={r:t,s:n}}r(t){if(t===void 0)return this.data.r;{const n=t-this.data.r.length;if(n<0)throw new Error("Length too small to hold parameter r");const r=new Uint8Array(n);return new Uint8Array([...r,...this.data.r])}}s(t){if(t===void 0)return this.data.s;{const n=t-this.data.s.length;if(n<0)throw new Error("Length too small to hold parameter s");const r=new Uint8Array(n);return new Uint8Array([...r,...this.data.s])}}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32)])}toDer(){const t=this.data.r[0]>=128?new Uint8Array([0,...this.data.r]):this.data.r,n=this.data.s[0]>=128?new Uint8Array([0,...this.data.s]):this.data.s,r=t.length,s=n.length,o=new Uint8Array([Es,r,...t,Es,s,...n]);return new Uint8Array([48,o.length,...o])}}vn.Secp256k1Signature=ts;class mc extends ts{static fromFixedLength(t){if(t.length!==65)throw new Error(`Got invalid data length ${t.length}. Expected 32 + 32 + 1`);return new mc(Hn(t.slice(0,32)),Hn(t.slice(32,64)),t[64])}constructor(t,n,r){if(super(t,n),!Number.isInteger(r))throw new Error("The recovery parameter must be an integer.");if(r<0||r>4)throw new Error("The recovery parameter must be one of 0, 1, 2, 3.");this.recovery=r}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32),this.recovery])}}vn.ExtendedSecp256k1Signature=mc;var Cd=h&&h.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Oo,"__esModule",{value:!0});Oo.Secp256k1=void 0;const Ts=j,Yd=Cd(_o),Iy=Cd(vd()),By=vn,Qt=new Iy.default.ec("secp256k1"),Ny=new Yd.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","hex");class My{static async makeKeypair(t){if(t.length!==32)throw new Error("input data is not a valid secp256k1 private key");const n=Qt.keyFromPrivate(t);if(n.validate().result!==!0)throw new Error("input data is not a valid secp256k1 private key");if(new Yd.default(t).gte(Ny))throw new Error("input data is not a valid secp256k1 private key");return{privkey:(0,Ts.fromHex)(n.getPrivate("hex")),pubkey:Uint8Array.from(n.getPublic("array"))}}static async createSignature(t,n){if(t.length===0)throw new Error("Message hash must not be empty");if(t.length>32)throw new Error("Message hash length must not exceed 32 bytes");const r=Qt.keyFromPrivate(n),{r:s,s:o,recoveryParam:i}=r.sign(t,{canonical:!0});if(typeof i!="number")throw new Error("Recovery param missing");return new By.ExtendedSecp256k1Signature(Uint8Array.from(s.toArray()),Uint8Array.from(o.toArray()),i)}static async verifySignature(t,n,r){if(n.length===0)throw new Error("Message hash must not be empty");if(n.length>32)throw new Error("Message hash length must not exceed 32 bytes");const s=Qt.keyFromPublic(r);try{return s.verify(n,t.toDer())}catch{return!1}}static recoverPubkey(t,n){const r={r:(0,Ts.toHex)(t.r()),s:(0,Ts.toHex)(t.s())},s=Qt.recoverPubKey(n,r,t.recovery),o=Qt.keyFromPublic(s);return(0,Ts.fromHex)(o.getPublic(!1,"hex"))}static compressPubkey(t){switch(t.length){case 33:return t;case 65:return Uint8Array.from(Qt.keyFromPublic(t).getPublic(!0,"array"));default:throw new Error("Invalid pubkey length")}}static uncompressPubkey(t){switch(t.length){case 33:return Uint8Array.from(Qt.keyFromPublic(t).getPublic(!1,"array"));case 65:return t;default:throw new Error("Invalid pubkey length")}}static trimRecoveryByte(t){switch(t.length){case 64:return t;case 65:return t.slice(0,64);default:throw new Error("Invalid signature length")}}}Oo.Secp256k1=My;var Xd={};(function(e){var t=h&&h.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.stringToPath=e.pathToString=e.Slip10=e.Slip10RawIndex=e.slip10CurveFromString=e.Slip10Curve=void 0;const n=j,r=se,s=t(_o),o=t(vd()),i=cs,a=st;var c;(function(v){v.Secp256k1="Bitcoin seed",v.Ed25519="ed25519 seed"})(c=e.Slip10Curve||(e.Slip10Curve={}));function u(v){switch(v){case c.Ed25519:return c.Ed25519;case c.Secp256k1:return c.Secp256k1;default:throw new Error(`Unknown curve string: '${v}'`)}}e.slip10CurveFromString=u;class l extends r.Uint32{static hardened(m){return new l(m+2**31)}static normal(m){return new l(m)}isHardened(){return this.data>=2**31}}e.Slip10RawIndex=l;const d=new o.default.ec("secp256k1");class b{static derivePath(m,S,D){let N=this.master(m,S);for(const Y of D)N=this.child(m,N.privkey,N.chainCode,Y);return N}static master(m,S){const D=new i.Hmac(a.Sha512,(0,n.toAscii)(m)).update(S).digest(),N=D.slice(0,32),Y=D.slice(32,64);return m!==c.Ed25519&&(this.isZero(N)||this.isGteN(m,N))?this.master(m,D):{chainCode:Y,privkey:N}}static child(m,S,D,N){let Y;if(N.isHardened()){const _=new Uint8Array([0,...S,...N.toBytesBigEndian()]);Y=new i.Hmac(a.Sha512,D).update(_).digest()}else{if(m===c.Ed25519)throw new Error("Normal keys are not allowed with ed25519");{const _=new Uint8Array([...b.serializedPoint(m,new s.default(S)),...N.toBytesBigEndian()]);Y=new i.Hmac(a.Sha512,D).update(_).digest()}}return this.childImpl(m,S,D,N,Y)}static serializedPoint(m,S){switch(m){case c.Secp256k1:return(0,n.fromHex)(d.g.mul(S).encodeCompressed("hex"));default:throw new Error("curve not supported")}}static childImpl(m,S,D,N,Y){const _=Y.slice(0,32),k=Y.slice(32,64),A=k;if(m===c.Ed25519)return{chainCode:A,privkey:_};const $=this.n(m),W=new s.default(_).add(new s.default(S)).mod($),J=Uint8Array.from(W.toArray("be",32));if(this.isGteN(m,_)||this.isZero(J)){const G=new i.Hmac(a.Sha512,D).update(new Uint8Array([1,...k,...N.toBytesBigEndian()])).digest();return this.childImpl(m,S,D,N,G)}return{chainCode:A,privkey:J}}static isZero(m){return m.every(S=>S===0)}static isGteN(m,S){return new s.default(S).gte(this.n(m))}static n(m){switch(m){case c.Secp256k1:return new s.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",16);default:throw new Error("curve not supported")}}}e.Slip10=b;function y(v){return v.reduce((m,S)=>{const D=S.isHardened()?`${S.toNumber()-2147483648}'`:S.toString();return m+"/"+D},"m")}e.pathToString=y;function P(v){if(!v.startsWith("m"))throw new Error("Path string must start with 'm'");let m=v.slice(1);const S=new Array;for(;m;){const D=m.match(/^\/([0-9]+)('?)/);if(!D)throw new Error("Syntax error while reading path component");const[N,Y,_]=D,k=r.Uint53.fromString(Y).toNumber();if(k>=2**31)throw new Error("Component value too high. Must not exceed 2**31-1.");_?S.push(l.hardened(k)):S.push(l.normal(k)),m=m.slice(N.length)}return S}e.stringToPath=P})(Xd);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringToPath=e.Slip10RawIndex=e.slip10CurveFromString=e.Slip10Curve=e.Slip10=e.pathToString=e.sha512=e.Sha512=e.sha256=e.Sha256=e.Secp256k1Signature=e.ExtendedSecp256k1Signature=e.Secp256k1=e.ripemd160=e.Ripemd160=e.Random=e.Xchacha20poly1305Ietf=e.xchacha20NonceLength=e.isArgon2idOptions=e.Ed25519Keypair=e.Ed25519=e.Argon2id=e.keccak256=e.Keccak256=e.Hmac=e.EnglishMnemonic=e.Bip39=void 0;var t=vt;Object.defineProperty(e,"Bip39",{enumerable:!0,get:function(){return t.Bip39}}),Object.defineProperty(e,"EnglishMnemonic",{enumerable:!0,get:function(){return t.EnglishMnemonic}});var n=cs;Object.defineProperty(e,"Hmac",{enumerable:!0,get:function(){return n.Hmac}});var r=Yn;Object.defineProperty(e,"Keccak256",{enumerable:!0,get:function(){return r.Keccak256}}),Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return r.keccak256}});var s=Ie;Object.defineProperty(e,"Argon2id",{enumerable:!0,get:function(){return s.Argon2id}}),Object.defineProperty(e,"Ed25519",{enumerable:!0,get:function(){return s.Ed25519}}),Object.defineProperty(e,"Ed25519Keypair",{enumerable:!0,get:function(){return s.Ed25519Keypair}}),Object.defineProperty(e,"isArgon2idOptions",{enumerable:!0,get:function(){return s.isArgon2idOptions}}),Object.defineProperty(e,"xchacha20NonceLength",{enumerable:!0,get:function(){return s.xchacha20NonceLength}}),Object.defineProperty(e,"Xchacha20poly1305Ietf",{enumerable:!0,get:function(){return s.Xchacha20poly1305Ietf}});var o=To;Object.defineProperty(e,"Random",{enumerable:!0,get:function(){return o.Random}});var i=Xn;Object.defineProperty(e,"Ripemd160",{enumerable:!0,get:function(){return i.Ripemd160}}),Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return i.ripemd160}});var a=Oo;Object.defineProperty(e,"Secp256k1",{enumerable:!0,get:function(){return a.Secp256k1}});var c=vn;Object.defineProperty(e,"ExtendedSecp256k1Signature",{enumerable:!0,get:function(){return c.ExtendedSecp256k1Signature}}),Object.defineProperty(e,"Secp256k1Signature",{enumerable:!0,get:function(){return c.Secp256k1Signature}});var u=st;Object.defineProperty(e,"Sha256",{enumerable:!0,get:function(){return u.Sha256}}),Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return u.sha256}}),Object.defineProperty(e,"Sha512",{enumerable:!0,get:function(){return u.Sha512}}),Object.defineProperty(e,"sha512",{enumerable:!0,get:function(){return u.sha512}});var l=Xd;Object.defineProperty(e,"pathToString",{enumerable:!0,get:function(){return l.pathToString}}),Object.defineProperty(e,"Slip10",{enumerable:!0,get:function(){return l.Slip10}}),Object.defineProperty(e,"Slip10Curve",{enumerable:!0,get:function(){return l.Slip10Curve}}),Object.defineProperty(e,"slip10CurveFromString",{enumerable:!0,get:function(){return l.slip10CurveFromString}}),Object.defineProperty(e,"Slip10RawIndex",{enumerable:!0,get:function(){return l.Slip10RawIndex}}),Object.defineProperty(e,"stringToPath",{enumerable:!0,get:function(){return l.stringToPath}})})(be);var he={},us={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isMultisigThresholdPubkey=e.isSinglePubkey=e.pubkeyType=e.isSecp256k1Pubkey=e.isEd25519Pubkey=void 0;function t(o){return o.type==="tendermint/PubKeyEd25519"}e.isEd25519Pubkey=t;function n(o){return o.type==="tendermint/PubKeySecp256k1"}e.isSecp256k1Pubkey=n,e.pubkeyType={secp256k1:"tendermint/PubKeySecp256k1",ed25519:"tendermint/PubKeyEd25519",sr25519:"tendermint/PubKeySr25519",multisigThreshold:"tendermint/PubKeyMultisigThreshold"};function r(o){return[e.pubkeyType.ed25519,e.pubkeyType.secp256k1,e.pubkeyType.sr25519].includes(o.type)}e.isSinglePubkey=r;function s(o){return o.type==="tendermint/PubKeyMultisigThreshold"}e.isMultisigThresholdPubkey=s})(us);Object.defineProperty(he,"__esModule",{value:!0});he.encodeBech32Pubkey=he.encodeAminoPubkey=he.decodeBech32Pubkey=he.decodeAminoPubkey=he.encodeEd25519Pubkey=he.encodeSecp256k1Pubkey=void 0;const Me=j,Ry=se,Lr=te,Bt=us;function jy(e){if(e.length!==33||e[0]!==2&&e[0]!==3)throw new Error("Public key must be compressed secp256k1, i.e. 33 bytes starting with 0x02 or 0x03");return{type:Bt.pubkeyType.secp256k1,value:(0,Me.toBase64)(e)}}he.encodeSecp256k1Pubkey=jy;function Dy(e){if(e.length!==32)throw new Error("Ed25519 public key must be 32 bytes long");return{type:Bt.pubkeyType.ed25519,value:(0,Me.toBase64)(e)}}he.encodeEd25519Pubkey=Dy;const Oa=(0,Me.fromHex)("eb5ae98721"),Ia=(0,Me.fromHex)("1624de6420"),Pu=(0,Me.fromHex)("0dfb100520"),oo=(0,Me.fromHex)("22c1f7e2");function fc(e){if((0,Lr.arrayContentStartsWith)(e,Oa)){const t=e.slice(Oa.length);if(t.length!==33)throw new Error("Invalid rest data length. Expected 33 bytes (compressed secp256k1 pubkey).");return{type:Bt.pubkeyType.secp256k1,value:(0,Me.toBase64)(t)}}else if((0,Lr.arrayContentStartsWith)(e,Ia)){const t=e.slice(Ia.length);if(t.length!==32)throw new Error("Invalid rest data length. Expected 32 bytes (Ed25519 pubkey).");return{type:Bt.pubkeyType.ed25519,value:(0,Me.toBase64)(t)}}else if((0,Lr.arrayContentStartsWith)(e,Pu)){const t=e.slice(Pu.length);if(t.length!==32)throw new Error("Invalid rest data length. Expected 32 bytes (Sr25519 pubkey).");return{type:Bt.pubkeyType.sr25519,value:(0,Me.toBase64)(t)}}else{if((0,Lr.arrayContentStartsWith)(e,oo))return $y(e);throw new Error("Unsupported public key type. Amino data starts with: "+(0,Me.toHex)(e.slice(0,5)))}}he.decodeAminoPubkey=fc;function Uy(e){const{data:t}=(0,Me.fromBech32)(e);return fc(t)}he.decodeBech32Pubkey=Uy;function ku(e){if(e.length<1)throw new Error("Can't decode varint. EOF");if(e[0]>127)throw new Error("Decoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.Varint implementation from the Go standard library and write some tests.");return[e[0],1]}function $y(e){const t=Array.from(e),n=t.splice(0,oo.length);if(!(0,Lr.arrayContentStartsWith)(n,oo))throw new Error("Invalid multisig prefix.");if(t.shift()!=8)throw new Error("Invalid multisig data. Expecting 0x08 prefix before threshold.");const[r,s]=ku(t);t.splice(0,s);const o=[];for(;t.length>0;){if(t.shift()!=18)throw new Error("Invalid multisig data. Expecting 0x12 prefix before participant pubkey length.");const[i,a]=ku(t);if(t.splice(0,a),t.length<i)throw new Error("Invalid multisig data length.");const c=t.splice(0,i),u=fc(Uint8Array.from(c));o.push(u)}return{type:Bt.pubkeyType.multisigThreshold,value:{threshold:r.toString(),pubkeys:o}}}function Eu(e){const t=Ry.Uint53.fromString(e.toString()).toNumber();if(t>127)throw new Error("Encoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.PutUvarint implementation from the Go standard library and write some tests.");return[t]}function pc(e){if((0,Bt.isMultisigThresholdPubkey)(e)){const t=Array.from(oo);t.push(8),t.push(...Eu(e.value.threshold));for(const n of e.value.pubkeys.map(r=>pc(r)))t.push(18),t.push(...Eu(n.length)),t.push(...n);return new Uint8Array(t)}else{if((0,Bt.isEd25519Pubkey)(e))return new Uint8Array([...Ia,...(0,Me.fromBase64)(e.value)]);if((0,Bt.isSecp256k1Pubkey)(e))return new Uint8Array([...Oa,...(0,Me.fromBase64)(e.value)]);throw new Error("Unsupported pubkey type")}}he.encodeAminoPubkey=pc;function xy(e,t){return(0,Me.toBech32)(t,pc(e))}he.encodeBech32Pubkey=xy;Object.defineProperty(qe,"__esModule",{value:!0});qe.pubkeyToAddress=qe.pubkeyToRawAddress=qe.rawSecp256k1PubkeyToRawAddress=qe.rawEd25519PubkeyToRawAddress=void 0;const io=be,Ba=j,Hy=he,Wi=us;function Zd(e){if(e.length!==32)throw new Error(`Invalid Ed25519 pubkey length: ${e.length}`);return(0,io.sha256)(e).slice(0,20)}qe.rawEd25519PubkeyToRawAddress=Zd;function em(e){if(e.length!==33)throw new Error(`Invalid Secp256k1 pubkey length (compressed): ${e.length}`);return(0,io.ripemd160)((0,io.sha256)(e))}qe.rawSecp256k1PubkeyToRawAddress=em;function tm(e){if((0,Wi.isSecp256k1Pubkey)(e)){const t=(0,Ba.fromBase64)(e.value);return em(t)}else if((0,Wi.isEd25519Pubkey)(e)){const t=(0,Ba.fromBase64)(e.value);return Zd(t)}else if((0,Wi.isMultisigThresholdPubkey)(e)){const t=(0,Hy.encodeAminoPubkey)(e);return(0,io.sha256)(t).slice(0,20)}else throw new Error("Unsupported public key type")}qe.pubkeyToRawAddress=tm;function qy(e,t){return(0,Ba.toBech32)(t,tm(e))}qe.pubkeyToAddress=qy;var wt={};Object.defineProperty(wt,"__esModule",{value:!0});wt.addCoins=wt.parseCoins=wt.coins=wt.coin=void 0;const Na=se;function nm(e,t){let n;if(typeof e=="number")try{n=new Na.Uint53(e).toString()}catch{throw new Error("Given amount is not a safe integer. Consider using a string instead to overcome the limitations of JS numbers.")}else{if(!e.match(/^[0-9]+$/))throw new Error("Invalid unsigned integer string format");n=e.replace(/^0*/,"")||"0"}return{amount:n,denom:t}}wt.coin=nm;function Fy(e,t){return[nm(e,t)]}wt.coins=Fy;function Vy(e){return e.replace(/\s/g,"").split(",").filter(Boolean).map(t=>{const n=t.match(/^([0-9]+)([a-zA-Z][a-zA-Z0-9/]{2,127})$/);if(!n)throw new Error("Got an invalid coin string");return{amount:n[1].replace(/^0+/,"")||"0",denom:n[2]}})}wt.parseCoins=Vy;function Ly(e,t){if(e.denom!==t.denom)throw new Error("Trying to add two coins with different denoms");return{amount:Na.Decimal.fromAtomics(e.amount,0).plus(Na.Decimal.fromAtomics(t.amount,0)).atomics,denom:e.denom}}wt.addCoins=Ly;var Zn={};Object.defineProperty(Zn,"__esModule",{value:!0});Zn.createMultisigThresholdPubkey=Zn.compareArrays=void 0;const Tu=j,Wy=se,Ou=qe;function rm(e,t){const n=(0,Tu.toHex)(e),r=(0,Tu.toHex)(t);return n===r?0:n<r?-1:1}Zn.compareArrays=rm;function Jy(e,t,n=!1){const r=new Wy.Uint53(t);if(r.toNumber()>e.length)throw new Error(`Threshold k = ${r.toNumber()} exceeds number of keys n = ${e.length}`);const s=n?e:Array.from(e).sort((o,i)=>{const a=(0,Ou.pubkeyToRawAddress)(o),c=(0,Ou.pubkeyToRawAddress)(i);return rm(a,c)});return{type:"tendermint/PubKeyMultisigThreshold",value:{threshold:r.toString(),pubkeys:s}}}Zn.createMultisigThresholdPubkey=Jy;var Io={};Object.defineProperty(Io,"__esModule",{value:!0});Io.omitDefault=void 0;function Gy(e){switch(typeof e){case"string":return e===""?void 0:e;case"number":return e===0?void 0:e;case"bigint":return e===BigInt(0)?void 0:e;case"boolean":return e||void 0;default:throw new Error(`Got unsupported type '${typeof e}'`)}}Io.omitDefault=Gy;var ls={};Object.defineProperty(ls,"__esModule",{value:!0});ls.makeCosmoshubPath=void 0;const Tr=be;function Ky(e){return[Tr.Slip10RawIndex.hardened(44),Tr.Slip10RawIndex.hardened(118),Tr.Slip10RawIndex.hardened(0),Tr.Slip10RawIndex.normal(0),Tr.Slip10RawIndex.normal(e)]}ls.makeCosmoshubPath=Ky;var er={},zt={};Object.defineProperty(zt,"__esModule",{value:!0});zt.decodeSignature=zt.encodeSecp256k1Signature=void 0;const Ma=j,zy=he,Qy=us;function Cy(e,t){if(t.length!==64)throw new Error("Signature must be 64 bytes long. Cosmos SDK uses a 2x32 byte fixed length encoding for the secp256k1 signature integers r and s.");return{pub_key:(0,zy.encodeSecp256k1Pubkey)(e),signature:(0,Ma.toBase64)(t)}}zt.encodeSecp256k1Signature=Cy;function Yy(e){switch(e.pub_key.type){case Qy.pubkeyType.secp256k1:return{pubkey:(0,Ma.fromBase64)(e.pub_key.value),signature:(0,Ma.fromBase64)(e.signature)};default:throw new Error("Unsupported pubkey type")}}zt.decodeSignature=Yy;var ot={};Object.defineProperty(ot,"__esModule",{value:!0});ot.serializeSignDoc=ot.escapeCharacters=ot.makeSignDoc=ot.sortedJsonStringify=void 0;const Xy=j,Iu=se;function Ra(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(Ra);const t=Object.keys(e).sort(),n={};return t.forEach(r=>{n[r]=Ra(e[r])}),n}function sm(e){return JSON.stringify(Ra(e))}ot.sortedJsonStringify=sm;function Zy(e,t,n,r,s,o,i){return{chain_id:n,account_number:Iu.Uint53.fromString(s.toString()).toString(),sequence:Iu.Uint53.fromString(o.toString()).toString(),fee:t,msgs:e,memo:r||"",...i&&{timeout_height:i.toString()}}}ot.makeSignDoc=Zy;function om(e){const t=/&/g,n=/</g,r=/>/g;return e.replace(t,"\\u0026").replace(n,"\\u003c").replace(r,"\\u003e")}ot.escapeCharacters=om;function eh(e){const t=om(sm(e));return(0,Xy.toUtf8)(t)}ot.serializeSignDoc=eh;var gc={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decrypt=e.encrypt=e.supportedAlgorithms=e.executeKdf=e.cosmjsSalt=void 0;const t=be,n=j;e.cosmjsSalt=(0,n.toAscii)("The CosmJS salt.");async function r(i,a){switch(a.algorithm){case"argon2id":{const c=a.params;if(!(0,t.isArgon2idOptions)(c))throw new Error("Invalid format of argon2id params");return t.Argon2id.execute(i,e.cosmjsSalt,c)}default:throw new Error("Unsupported KDF algorithm")}}e.executeKdf=r,e.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"};async function s(i,a,c){switch(c.algorithm){case e.supportedAlgorithms.xchacha20poly1305Ietf:{const u=t.Random.getBytes(t.xchacha20NonceLength);return new Uint8Array([...u,...await t.Xchacha20poly1305Ietf.encrypt(i,a,u)])}default:throw new Error(`Unsupported encryption algorithm: '${c.algorithm}'`)}}e.encrypt=s;async function o(i,a,c){switch(c.algorithm){case e.supportedAlgorithms.xchacha20poly1305Ietf:{const u=i.slice(0,t.xchacha20NonceLength);return t.Xchacha20poly1305Ietf.decrypt(i.slice(t.xchacha20NonceLength),a,u)}default:throw new Error(`Unsupported encryption algorithm: '${c.algorithm}'`)}}e.decrypt=o})(gc);Object.defineProperty(er,"__esModule",{value:!0});er.Secp256k1HdWallet=er.extractKdfConfiguration=void 0;const Le=be,Or=j,qn=te,th=qe,nh=ls,rh=zt,sh=ot,Ir=gc,Ys="secp256k1wallet-v1",oh={algorithm:"argon2id",params:{outputLength:32,opsLimit:24,memLimitKib:12*1024}};function ih(e){return!(!(0,qn.isNonNullObject)(e)||typeof e.hdPath!="string"||typeof e.prefix!="string")}function ah(e){return e.kdf}function ch(e){const t=JSON.parse(e);if(!(0,qn.isNonNullObject)(t))throw new Error("Root document is not an object.");switch(t.type){case Ys:return ah(t);default:throw new Error("Unsupported serialization type")}}er.extractKdfConfiguration=ch;const Bu={bip39Password:"",hdPaths:[(0,nh.makeCosmoshubPath)(0)],prefix:"cosmos"};class on{static async fromMnemonic(t,n={}){const r=new Le.EnglishMnemonic(t),s=await Le.Bip39.mnemonicToSeed(r,n.bip39Password);return new on(r,{...n,seed:s})}static async generate(t=12,n={}){const r=4*Math.floor(11*t/33),s=Le.Random.getBytes(r),o=Le.Bip39.encode(s);return on.fromMnemonic(o.toString(),n)}static async deserialize(t,n){const r=JSON.parse(t);if(!(0,qn.isNonNullObject)(r))throw new Error("Root document is not an object.");switch(r.type){case Ys:return on.deserializeTypeV1(t,n);default:throw new Error("Unsupported serialization type")}}static async deserializeWithEncryptionKey(t,n){const r=JSON.parse(t);if(!(0,qn.isNonNullObject)(r))throw new Error("Root document is not an object.");const s=r;switch(s.type){case Ys:{const o=await(0,Ir.decrypt)((0,Or.fromBase64)(s.data),n,s.encryption),i=JSON.parse((0,Or.fromUtf8)(o)),{mnemonic:a,accounts:c}=i;if((0,qn.assert)(typeof a=="string"),!Array.isArray(c))throw new Error("Property 'accounts' is not an array");if(!c.every(d=>ih(d)))throw new Error("Account is not in the correct format.");const u=c[0].prefix;if(!c.every(({prefix:d})=>d===u))throw new Error("Accounts do not all have the same prefix");const l=c.map(({hdPath:d})=>(0,Le.stringToPath)(d));return on.fromMnemonic(a,{hdPaths:l,prefix:u})}default:throw new Error("Unsupported serialization type")}}static async deserializeTypeV1(t,n){const r=JSON.parse(t);if(!(0,qn.isNonNullObject)(r))throw new Error("Root document is not an object.");const s=await(0,Ir.executeKdf)(n,r.kdf);return on.deserializeWithEncryptionKey(t,s)}constructor(t,n){const r=n.hdPaths??Bu.hdPaths,s=n.prefix??Bu.prefix;this.secret=t,this.seed=n.seed,this.accounts=r.map(o=>({hdPath:o,prefix:s}))}get mnemonic(){return this.secret.toString()}async getAccounts(){return(await this.getAccountsWithPrivkeys()).map(({algo:n,pubkey:r,address:s})=>({algo:n,pubkey:r,address:s}))}async signAmino(t,n){const s=(await this.getAccountsWithPrivkeys()).find(({address:l})=>l===t);if(s===void 0)throw new Error(`Address ${t} not found in wallet`);const{privkey:o,pubkey:i}=s,a=(0,Le.sha256)((0,sh.serializeSignDoc)(n)),c=await Le.Secp256k1.createSignature(a,o),u=new Uint8Array([...c.r(32),...c.s(32)]);return{signed:n,signature:(0,rh.encodeSecp256k1Signature)(i,u)}}async serialize(t){const n=oh,r=await(0,Ir.executeKdf)(t,n);return this.serializeWithEncryptionKey(r,n)}async serializeWithEncryptionKey(t,n){const r={mnemonic:this.mnemonic,accounts:this.accounts.map(({hdPath:c,prefix:u})=>({hdPath:(0,Le.pathToString)(c),prefix:u}))},s=(0,Or.toUtf8)(JSON.stringify(r)),o={algorithm:Ir.supportedAlgorithms.xchacha20poly1305Ietf},i=await(0,Ir.encrypt)(s,t,o),a={type:Ys,kdf:n,encryption:o,data:(0,Or.toBase64)(i)};return JSON.stringify(a)}async getKeyPair(t){const{privkey:n}=Le.Slip10.derivePath(Le.Slip10Curve.Secp256k1,this.seed,t),{pubkey:r}=await Le.Secp256k1.makeKeypair(n);return{privkey:n,pubkey:Le.Secp256k1.compressPubkey(r)}}async getAccountsWithPrivkeys(){return Promise.all(this.accounts.map(async({hdPath:t,prefix:n})=>{const{privkey:r,pubkey:s}=await this.getKeyPair(t),o=(0,Or.toBech32)(n,(0,th.rawSecp256k1PubkeyToRawAddress)(s));return{algo:"secp256k1",privkey:r,pubkey:s,address:o}}))}}er.Secp256k1HdWallet=on;var Bo={};Object.defineProperty(Bo,"__esModule",{value:!0});Bo.Secp256k1Wallet=void 0;const Os=be,uh=j,lh=qe,dh=zt,mh=ot;class yc{static async fromKey(t,n="cosmos"){const r=(await Os.Secp256k1.makeKeypair(t)).pubkey;return new yc(t,Os.Secp256k1.compressPubkey(r),n)}constructor(t,n,r){this.privkey=t,this.pubkey=n,this.prefix=r}get address(){return(0,uh.toBech32)(this.prefix,(0,lh.rawSecp256k1PubkeyToRawAddress)(this.pubkey))}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signAmino(t,n){if(t!==this.address)throw new Error(`Address ${t} not found in wallet`);const r=new Os.Sha256((0,mh.serializeSignDoc)(n)).digest(),s=await Os.Secp256k1.createSignature(r,this.privkey),o=new Uint8Array([...s.r(32),...s.s(32)]);return{signed:n,signature:(0,dh.encodeSecp256k1Signature)(this.pubkey,o)}}}Bo.Secp256k1Wallet=yc;var tr={};Object.defineProperty(tr,"__esModule",{value:!0});tr.makeStdTx=tr.isStdTx=void 0;function fh(e){const{memo:t,msg:n,fee:r,signatures:s}=e;return typeof t=="string"&&Array.isArray(n)&&typeof r=="object"&&Array.isArray(s)}tr.isStdTx=fh;function ph(e,t){return{msg:e.msgs,fee:e.fee,memo:e.memo,signatures:Array.isArray(t)?t:[t]}}tr.makeStdTx=ph;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.executeKdf=e.makeStdTx=e.isStdTx=e.serializeSignDoc=e.makeSignDoc=e.encodeSecp256k1Signature=e.decodeSignature=e.Secp256k1Wallet=e.Secp256k1HdWallet=e.extractKdfConfiguration=e.pubkeyType=e.isSinglePubkey=e.isSecp256k1Pubkey=e.isMultisigThresholdPubkey=e.isEd25519Pubkey=e.makeCosmoshubPath=e.omitDefault=e.createMultisigThresholdPubkey=e.encodeSecp256k1Pubkey=e.encodeEd25519Pubkey=e.encodeBech32Pubkey=e.encodeAminoPubkey=e.decodeBech32Pubkey=e.decodeAminoPubkey=e.parseCoins=e.coins=e.coin=e.addCoins=e.rawSecp256k1PubkeyToRawAddress=e.rawEd25519PubkeyToRawAddress=e.pubkeyToRawAddress=e.pubkeyToAddress=void 0;var t=qe;Object.defineProperty(e,"pubkeyToAddress",{enumerable:!0,get:function(){return t.pubkeyToAddress}}),Object.defineProperty(e,"pubkeyToRawAddress",{enumerable:!0,get:function(){return t.pubkeyToRawAddress}}),Object.defineProperty(e,"rawEd25519PubkeyToRawAddress",{enumerable:!0,get:function(){return t.rawEd25519PubkeyToRawAddress}}),Object.defineProperty(e,"rawSecp256k1PubkeyToRawAddress",{enumerable:!0,get:function(){return t.rawSecp256k1PubkeyToRawAddress}});var n=wt;Object.defineProperty(e,"addCoins",{enumerable:!0,get:function(){return n.addCoins}}),Object.defineProperty(e,"coin",{enumerable:!0,get:function(){return n.coin}}),Object.defineProperty(e,"coins",{enumerable:!0,get:function(){return n.coins}}),Object.defineProperty(e,"parseCoins",{enumerable:!0,get:function(){return n.parseCoins}});var r=he;Object.defineProperty(e,"decodeAminoPubkey",{enumerable:!0,get:function(){return r.decodeAminoPubkey}}),Object.defineProperty(e,"decodeBech32Pubkey",{enumerable:!0,get:function(){return r.decodeBech32Pubkey}}),Object.defineProperty(e,"encodeAminoPubkey",{enumerable:!0,get:function(){return r.encodeAminoPubkey}}),Object.defineProperty(e,"encodeBech32Pubkey",{enumerable:!0,get:function(){return r.encodeBech32Pubkey}}),Object.defineProperty(e,"encodeEd25519Pubkey",{enumerable:!0,get:function(){return r.encodeEd25519Pubkey}}),Object.defineProperty(e,"encodeSecp256k1Pubkey",{enumerable:!0,get:function(){return r.encodeSecp256k1Pubkey}});var s=Zn;Object.defineProperty(e,"createMultisigThresholdPubkey",{enumerable:!0,get:function(){return s.createMultisigThresholdPubkey}});var o=Io;Object.defineProperty(e,"omitDefault",{enumerable:!0,get:function(){return o.omitDefault}});var i=ls;Object.defineProperty(e,"makeCosmoshubPath",{enumerable:!0,get:function(){return i.makeCosmoshubPath}});var a=us;Object.defineProperty(e,"isEd25519Pubkey",{enumerable:!0,get:function(){return a.isEd25519Pubkey}}),Object.defineProperty(e,"isMultisigThresholdPubkey",{enumerable:!0,get:function(){return a.isMultisigThresholdPubkey}}),Object.defineProperty(e,"isSecp256k1Pubkey",{enumerable:!0,get:function(){return a.isSecp256k1Pubkey}}),Object.defineProperty(e,"isSinglePubkey",{enumerable:!0,get:function(){return a.isSinglePubkey}}),Object.defineProperty(e,"pubkeyType",{enumerable:!0,get:function(){return a.pubkeyType}});var c=er;Object.defineProperty(e,"extractKdfConfiguration",{enumerable:!0,get:function(){return c.extractKdfConfiguration}}),Object.defineProperty(e,"Secp256k1HdWallet",{enumerable:!0,get:function(){return c.Secp256k1HdWallet}});var u=Bo;Object.defineProperty(e,"Secp256k1Wallet",{enumerable:!0,get:function(){return u.Secp256k1Wallet}});var l=zt;Object.defineProperty(e,"decodeSignature",{enumerable:!0,get:function(){return l.decodeSignature}}),Object.defineProperty(e,"encodeSecp256k1Signature",{enumerable:!0,get:function(){return l.encodeSecp256k1Signature}});var d=ot;Object.defineProperty(e,"makeSignDoc",{enumerable:!0,get:function(){return d.makeSignDoc}}),Object.defineProperty(e,"serializeSignDoc",{enumerable:!0,get:function(){return d.serializeSignDoc}});var b=tr;Object.defineProperty(e,"isStdTx",{enumerable:!0,get:function(){return b.isStdTx}}),Object.defineProperty(e,"makeStdTx",{enumerable:!0,get:function(){return b.makeStdTx}});var y=gc;Object.defineProperty(e,"executeKdf",{enumerable:!0,get:function(){return y.executeKdf}})})(gt);var kt={};Object.defineProperty(kt,"__esModule",{value:!0});kt.makeSignBytes=kt.makeSignDoc=kt.makeAuthInfoBytes=void 0;const Nu=te,gh=is,ao=Rt;function yh(e,t){return e.map(({pubkey:n,sequence:r})=>({publicKey:n,modeInfo:{single:{mode:t}},sequence:BigInt(r)}))}function hh(e,t,n,r,s,o=gh.SignMode.SIGN_MODE_DIRECT){(0,Nu.assert)(r===void 0||typeof r=="string","feeGranter must be undefined or string"),(0,Nu.assert)(s===void 0||typeof s=="string","feePayer must be undefined or string");const i=ao.AuthInfo.fromPartial({signerInfos:yh(e,o),fee:{amount:[...t],gasLimit:BigInt(n),granter:r,payer:s}});return ao.AuthInfo.encode(i).finish()}kt.makeAuthInfoBytes=hh;function bh(e,t,n,r){return{bodyBytes:e,authInfoBytes:t,chainId:n,accountNumber:BigInt(r)}}kt.makeSignDoc=bh;function vh({accountNumber:e,authInfoBytes:t,bodyBytes:n,chainId:r}){const s=ao.SignDoc.fromPartial({accountNumber:e,authInfoBytes:t,bodyBytes:n,chainId:r});return ao.SignDoc.encode(s).finish()}kt.makeSignBytes=vh;var hc={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decrypt=e.encrypt=e.supportedAlgorithms=e.executeKdf=e.cosmjsSalt=void 0;const t=be,n=j;e.cosmjsSalt=(0,n.toAscii)("The CosmJS salt.");async function r(i,a){switch(a.algorithm){case"argon2id":{const c=a.params;if(!(0,t.isArgon2idOptions)(c))throw new Error("Invalid format of argon2id params");return t.Argon2id.execute(i,e.cosmjsSalt,c)}default:throw new Error("Unsupported KDF algorithm")}}e.executeKdf=r,e.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"};async function s(i,a,c){switch(c.algorithm){case e.supportedAlgorithms.xchacha20poly1305Ietf:{const u=t.Random.getBytes(t.xchacha20NonceLength);return new Uint8Array([...u,...await t.Xchacha20poly1305Ietf.encrypt(i,a,u)])}default:throw new Error(`Unsupported encryption algorithm: '${c.algorithm}'`)}}e.encrypt=s;async function o(i,a,c){switch(c.algorithm){case e.supportedAlgorithms.xchacha20poly1305Ietf:{const u=i.slice(0,t.xchacha20NonceLength);return t.Xchacha20poly1305Ietf.decrypt(i.slice(t.xchacha20NonceLength),a,u)}default:throw new Error(`Unsupported encryption algorithm: '${c.algorithm}'`)}}e.decrypt=o})(hc);Object.defineProperty(Wn,"__esModule",{value:!0});Wn.DirectSecp256k1HdWallet=Wn.extractKdfConfiguration=void 0;const ja=gt,We=be,Br=j,Fn=te,wh=kt,Nr=hc,Xs="directsecp256k1hdwallet-v1",_h={algorithm:"argon2id",params:{outputLength:32,opsLimit:24,memLimitKib:12*1024}};function Sh(e){return!(!(0,Fn.isNonNullObject)(e)||typeof e.hdPath!="string"||typeof e.prefix!="string")}function Ah(e){return e.kdf}function Ph(e){const t=JSON.parse(e);if(!(0,Fn.isNonNullObject)(t))throw new Error("Root document is not an object.");switch(t.type){case Xs:return Ah(t);default:throw new Error("Unsupported serialization type")}}Wn.extractKdfConfiguration=Ph;const Mu={bip39Password:"",hdPaths:[(0,ja.makeCosmoshubPath)(0)],prefix:"cosmos"};class an{static async fromMnemonic(t,n={}){const r=new We.EnglishMnemonic(t),s=await We.Bip39.mnemonicToSeed(r,n.bip39Password);return new an(r,{...n,seed:s})}static async generate(t=12,n={}){const r=4*Math.floor(11*t/33),s=We.Random.getBytes(r),o=We.Bip39.encode(s);return an.fromMnemonic(o.toString(),n)}static async deserialize(t,n){const r=JSON.parse(t);if(!(0,Fn.isNonNullObject)(r))throw new Error("Root document is not an object.");switch(r.type){case Xs:return an.deserializeTypeV1(t,n);default:throw new Error("Unsupported serialization type")}}static async deserializeWithEncryptionKey(t,n){const r=JSON.parse(t);if(!(0,Fn.isNonNullObject)(r))throw new Error("Root document is not an object.");const s=r;switch(s.type){case Xs:{const o=await(0,Nr.decrypt)((0,Br.fromBase64)(s.data),n,s.encryption),i=JSON.parse((0,Br.fromUtf8)(o)),{mnemonic:a,accounts:c}=i;if((0,Fn.assert)(typeof a=="string"),!Array.isArray(c))throw new Error("Property 'accounts' is not an array");if(!c.every(d=>Sh(d)))throw new Error("Account is not in the correct format.");const u=c[0].prefix;if(!c.every(({prefix:d})=>d===u))throw new Error("Accounts do not all have the same prefix");const l=c.map(({hdPath:d})=>(0,We.stringToPath)(d));return an.fromMnemonic(a,{hdPaths:l,prefix:u})}default:throw new Error("Unsupported serialization type")}}static async deserializeTypeV1(t,n){const r=JSON.parse(t);if(!(0,Fn.isNonNullObject)(r))throw new Error("Root document is not an object.");const s=await(0,Nr.executeKdf)(n,r.kdf);return an.deserializeWithEncryptionKey(t,s)}constructor(t,n){const r=n.prefix??Mu.prefix,s=n.hdPaths??Mu.hdPaths;this.secret=t,this.seed=n.seed,this.accounts=s.map(o=>({hdPath:o,prefix:r}))}get mnemonic(){return this.secret.toString()}async getAccounts(){return(await this.getAccountsWithPrivkeys()).map(({algo:n,pubkey:r,address:s})=>({algo:n,pubkey:r,address:s}))}async signDirect(t,n){const s=(await this.getAccountsWithPrivkeys()).find(({address:b})=>b===t);if(s===void 0)throw new Error(`Address ${t} not found in wallet`);const{privkey:o,pubkey:i}=s,a=(0,wh.makeSignBytes)(n),c=(0,We.sha256)(a),u=await We.Secp256k1.createSignature(c,o),l=new Uint8Array([...u.r(32),...u.s(32)]),d=(0,ja.encodeSecp256k1Signature)(i,l);return{signed:n,signature:d}}async serialize(t){const n=_h,r=await(0,Nr.executeKdf)(t,n);return this.serializeWithEncryptionKey(r,n)}async serializeWithEncryptionKey(t,n){const r={mnemonic:this.mnemonic,accounts:this.accounts.map(({hdPath:c,prefix:u})=>({hdPath:(0,We.pathToString)(c),prefix:u}))},s=(0,Br.toUtf8)(JSON.stringify(r)),o={algorithm:Nr.supportedAlgorithms.xchacha20poly1305Ietf},i=await(0,Nr.encrypt)(s,t,o),a={type:Xs,kdf:n,encryption:o,data:(0,Br.toBase64)(i)};return JSON.stringify(a)}async getKeyPair(t){const{privkey:n}=We.Slip10.derivePath(We.Slip10Curve.Secp256k1,this.seed,t),{pubkey:r}=await We.Secp256k1.makeKeypair(n);return{privkey:n,pubkey:We.Secp256k1.compressPubkey(r)}}async getAccountsWithPrivkeys(){return Promise.all(this.accounts.map(async({hdPath:t,prefix:n})=>{const{privkey:r,pubkey:s}=await this.getKeyPair(t),o=(0,Br.toBech32)(n,(0,ja.rawSecp256k1PubkeyToRawAddress)(s));return{algo:"secp256k1",privkey:r,pubkey:s,address:o}}))}}Wn.DirectSecp256k1HdWallet=an;var No={};Object.defineProperty(No,"__esModule",{value:!0});No.DirectSecp256k1Wallet=void 0;const Ru=gt,Is=be,kh=j,Eh=kt;class bc{static async fromKey(t,n="cosmos"){const r=(await Is.Secp256k1.makeKeypair(t)).pubkey;return new bc(t,Is.Secp256k1.compressPubkey(r),n)}constructor(t,n,r){this.privkey=t,this.pubkey=n,this.prefix=r}get address(){return(0,kh.toBech32)(this.prefix,(0,Ru.rawSecp256k1PubkeyToRawAddress)(this.pubkey))}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signDirect(t,n){const r=(0,Eh.makeSignBytes)(n);if(t!==this.address)throw new Error(`Address ${t} not found in wallet`);const s=(0,Is.sha256)(r),o=await Is.Secp256k1.createSignature(s,this.privkey),i=new Uint8Array([...o.r(32),...o.s(32)]),a=(0,Ru.encodeSecp256k1Signature)(this.pubkey,i);return{signed:n,signature:a}}}No.DirectSecp256k1Wallet=bc;var Mo={};Object.defineProperty(Mo,"__esModule",{value:!0});Mo.makeCosmoshubPath=void 0;const Mr=be;function Th(e){return[Mr.Slip10RawIndex.hardened(44),Mr.Slip10RawIndex.hardened(118),Mr.Slip10RawIndex.hardened(0),Mr.Slip10RawIndex.normal(0),Mr.Slip10RawIndex.normal(e)]}Mo.makeCosmoshubPath=Th;var _t={};Object.defineProperty(_t,"__esModule",{value:!0});_t.decodeOptionalPubkey=_t.decodePubkey=_t.anyToSinglePubkey=_t.encodePubkey=void 0;const Kr=gt,ju=j,Oh=se,Da=tp,Ua=np,$a=rp,Ji=sc;function im(e){if((0,Kr.isSecp256k1Pubkey)(e)){const t=$a.PubKey.fromPartial({key:(0,ju.fromBase64)(e.value)});return Ji.Any.fromPartial({typeUrl:"/cosmos.crypto.secp256k1.PubKey",value:Uint8Array.from($a.PubKey.encode(t).finish())})}else if((0,Kr.isEd25519Pubkey)(e)){const t=Da.PubKey.fromPartial({key:(0,ju.fromBase64)(e.value)});return Ji.Any.fromPartial({typeUrl:"/cosmos.crypto.ed25519.PubKey",value:Uint8Array.from(Da.PubKey.encode(t).finish())})}else if((0,Kr.isMultisigThresholdPubkey)(e)){const t=Ua.LegacyAminoPubKey.fromPartial({threshold:Oh.Uint53.fromString(e.value.threshold).toNumber(),publicKeys:e.value.pubkeys.map(im)});return Ji.Any.fromPartial({typeUrl:"/cosmos.crypto.multisig.LegacyAminoPubKey",value:Uint8Array.from(Ua.LegacyAminoPubKey.encode(t).finish())})}else throw new Error(`Pubkey type ${e.type} not recognized`)}_t.encodePubkey=im;function xa(e){switch(e.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":{const{key:t}=$a.PubKey.decode(e.value);return(0,Kr.encodeSecp256k1Pubkey)(t)}case"/cosmos.crypto.ed25519.PubKey":{const{key:t}=Da.PubKey.decode(e.value);return(0,Kr.encodeEd25519Pubkey)(t)}default:throw new Error(`Pubkey type_url ${e.typeUrl} not recognized as single public key type`)}}_t.anyToSinglePubkey=xa;function am(e){switch(e.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":case"/cosmos.crypto.ed25519.PubKey":return xa(e);case"/cosmos.crypto.multisig.LegacyAminoPubKey":{const{threshold:t,publicKeys:n}=Ua.LegacyAminoPubKey.decode(e.value);return{type:"tendermint/PubKeyMultisigThreshold",value:{threshold:t.toString(),pubkeys:n.map(xa)}}}default:throw new Error(`Pubkey type URL '${e.typeUrl}' not recognized`)}}_t.decodePubkey=am;function Ih(e){if(!e)return null;if(e.typeUrl){if(e.value.length)return am(e);throw new Error(`Pubkey is an Any with type URL '${e.typeUrl}' but an empty value`)}else{if(e.value.length)throw new Error("Pubkey is an Any with an empty type URL but a value set");return null}}_t.decodeOptionalPubkey=Ih;var ze={};Object.defineProperty(ze,"__esModule",{value:!0});ze.Registry=ze.isTxBodyEncodeObject=ze.isPbjsGeneratedType=ze.isTsProtoGeneratedType=ze.isTelescopeGeneratedType=void 0;const Bh=wd,Nh=_d,Gi=Rt,Mh=sc;function cm(e){const t=e;return typeof t.fromPartial=="function"&&typeof t.typeUrl=="string"}ze.isTelescopeGeneratedType=cm;function vc(e){return typeof e.fromPartial=="function"}ze.isTsProtoGeneratedType=vc;function Rh(e){return!vc(e)}ze.isPbjsGeneratedType=Rh;const Du={cosmosCoin:"/cosmos.base.v1beta1.Coin",cosmosMsgSend:"/cosmos.bank.v1beta1.MsgSend",cosmosTxBody:"/cosmos.tx.v1beta1.TxBody",googleAny:"/google.protobuf.Any"};function um(e){return e.typeUrl==="/cosmos.tx.v1beta1.TxBody"}ze.isTxBodyEncodeObject=um;class jh{constructor(t){const{cosmosCoin:n,cosmosMsgSend:r}=Du;this.types=t?new Map([...t]):new Map([[n,Nh.Coin],[r,Bh.MsgSend]])}register(t,n){this.types.set(t,n)}lookupType(t){return this.types.get(t)}lookupTypeWithError(t){const n=this.lookupType(t);if(!n)throw new Error(`Unregistered type url: ${t}`);return n}encode(t){const{value:n,typeUrl:r}=t;if(um(t))return this.encodeTxBody(n);const s=this.lookupTypeWithError(r),o=cm(s)||vc(s)?s.fromPartial(n):s.create(n);return s.encode(o).finish()}encodeAsAny(t){const n=this.encode(t);return Mh.Any.fromPartial({typeUrl:t.typeUrl,value:n})}encodeTxBody(t){var s;const n=t.messages.map(o=>this.encodeAsAny(o)),r=Gi.TxBody.fromPartial({...t,timeoutHeight:BigInt(((s=t.timeoutHeight)==null?void 0:s.toString())??"0"),messages:n});return Gi.TxBody.encode(r).finish()}decode({typeUrl:t,value:n}){if(t===Du.cosmosTxBody)return this.decodeTxBody(n);const s=this.lookupTypeWithError(t).decode(n);return Object.entries(s).forEach(([o,i])=>{typeof U.Buffer<"u"&&typeof U.Buffer.isBuffer<"u"&&U.Buffer.isBuffer(i)&&(s[o]=Uint8Array.from(i))}),s}decodeTxBody(t){const n=Gi.TxBody.decode(t);return{...n,messages:n.messages.map(({typeUrl:r,value:s})=>{if(!r)throw new Error("Missing type_url in Any");if(!s)throw new Error("Missing value in Any");return this.decode({typeUrl:r,value:s})})}}}ze.Registry=jh;var Ro={};Object.defineProperty(Ro,"__esModule",{value:!0});Ro.isOfflineDirectSigner=void 0;function Dh(e){return e.signDirect!==void 0}Ro.isOfflineDirectSigner=Dh;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.parseCoins=e.coins=e.coin=e.executeKdf=e.makeSignDoc=e.makeSignBytes=e.makeAuthInfoBytes=e.isOfflineDirectSigner=e.Registry=e.isTxBodyEncodeObject=e.isTsProtoGeneratedType=e.isPbjsGeneratedType=e.encodePubkey=e.decodePubkey=e.decodeOptionalPubkey=e.anyToSinglePubkey=e.makeCosmoshubPath=e.DirectSecp256k1Wallet=e.extractKdfConfiguration=e.DirectSecp256k1HdWallet=e.decodeTxRaw=void 0;var t=Ao;Object.defineProperty(e,"decodeTxRaw",{enumerable:!0,get:function(){return t.decodeTxRaw}});var n=Wn;Object.defineProperty(e,"DirectSecp256k1HdWallet",{enumerable:!0,get:function(){return n.DirectSecp256k1HdWallet}}),Object.defineProperty(e,"extractKdfConfiguration",{enumerable:!0,get:function(){return n.extractKdfConfiguration}});var r=No;Object.defineProperty(e,"DirectSecp256k1Wallet",{enumerable:!0,get:function(){return r.DirectSecp256k1Wallet}});var s=Mo;Object.defineProperty(e,"makeCosmoshubPath",{enumerable:!0,get:function(){return s.makeCosmoshubPath}});var o=_t;Object.defineProperty(e,"anyToSinglePubkey",{enumerable:!0,get:function(){return o.anyToSinglePubkey}}),Object.defineProperty(e,"decodeOptionalPubkey",{enumerable:!0,get:function(){return o.decodeOptionalPubkey}}),Object.defineProperty(e,"decodePubkey",{enumerable:!0,get:function(){return o.decodePubkey}}),Object.defineProperty(e,"encodePubkey",{enumerable:!0,get:function(){return o.encodePubkey}});var i=ze;Object.defineProperty(e,"isPbjsGeneratedType",{enumerable:!0,get:function(){return i.isPbjsGeneratedType}}),Object.defineProperty(e,"isTsProtoGeneratedType",{enumerable:!0,get:function(){return i.isTsProtoGeneratedType}}),Object.defineProperty(e,"isTxBodyEncodeObject",{enumerable:!0,get:function(){return i.isTxBodyEncodeObject}}),Object.defineProperty(e,"Registry",{enumerable:!0,get:function(){return i.Registry}});var a=Ro;Object.defineProperty(e,"isOfflineDirectSigner",{enumerable:!0,get:function(){return a.isOfflineDirectSigner}});var c=kt;Object.defineProperty(e,"makeAuthInfoBytes",{enumerable:!0,get:function(){return c.makeAuthInfoBytes}}),Object.defineProperty(e,"makeSignBytes",{enumerable:!0,get:function(){return c.makeSignBytes}}),Object.defineProperty(e,"makeSignDoc",{enumerable:!0,get:function(){return c.makeSignDoc}});var u=hc;Object.defineProperty(e,"executeKdf",{enumerable:!0,get:function(){return u.executeKdf}});var l=gt;Object.defineProperty(e,"coin",{enumerable:!0,get:function(){return l.coin}}),Object.defineProperty(e,"coins",{enumerable:!0,get:function(){return l.coins}}),Object.defineProperty(e,"parseCoins",{enumerable:!0,get:function(){return l.parseCoins}})})(Et);Object.defineProperty(as,"__esModule",{value:!0});as.accountFromAny=void 0;const Uh=se,$h=Et,Rr=te,Uu=sp,Bs=op;function $u(e){return Uh.Uint64.fromString(e.toString())}function On(e){const{address:t,pubKey:n,accountNumber:r,sequence:s}=e,o=(0,$h.decodeOptionalPubkey)(n);return{address:t,pubkey:o,accountNumber:$u(r).toNumber(),sequence:$u(s).toNumber()}}function xh(e){var r,s,o,i,a,c,u;const{typeUrl:t,value:n}=e;switch(t){case"/cosmos.auth.v1beta1.BaseAccount":return On(Uu.BaseAccount.decode(n));case"/cosmos.auth.v1beta1.ModuleAccount":{const l=Uu.ModuleAccount.decode(n).baseAccount;return(0,Rr.assert)(l),On(l)}case"/cosmos.vesting.v1beta1.BaseVestingAccount":{const l=(r=Bs.BaseVestingAccount.decode(n))==null?void 0:r.baseAccount;return(0,Rr.assert)(l),On(l)}case"/cosmos.vesting.v1beta1.ContinuousVestingAccount":{const l=(o=(s=Bs.ContinuousVestingAccount.decode(n))==null?void 0:s.baseVestingAccount)==null?void 0:o.baseAccount;return(0,Rr.assert)(l),On(l)}case"/cosmos.vesting.v1beta1.DelayedVestingAccount":{const l=(a=(i=Bs.DelayedVestingAccount.decode(n))==null?void 0:i.baseVestingAccount)==null?void 0:a.baseAccount;return(0,Rr.assert)(l),On(l)}case"/cosmos.vesting.v1beta1.PeriodicVestingAccount":{const l=(u=(c=Bs.PeriodicVestingAccount.decode(n))==null?void 0:c.baseVestingAccount)==null?void 0:u.baseAccount;return(0,Rr.assert)(l),On(l)}default:throw new Error(`Unsupported type: '${t}'`)}}as.accountFromAny=xh;var ds={};Object.defineProperty(ds,"__esModule",{value:!0});ds.AminoTypes=void 0;class Hh{constructor(t){this.register=t}toAmino({typeUrl:t,value:n}){const r=this.register[t];if(!r)throw new Error(`Type URL '${t}' does not exist in the Amino message type register. If you need support for this message type, you can pass in additional entries to the AminoTypes constructor. If you think this message type should be included by default, please open an issue at https://github.com/cosmos/cosmjs/issues.`);return{type:r.aminoType,value:r.toAmino(n)}}fromAmino({type:t,value:n}){const r=Object.entries(this.register).filter(([s,{aminoType:o}])=>o===t);switch(r.length){case 0:throw new Error(`Amino type identifier '${t}' does not exist in the Amino message type register. If you need support for this message type, you can pass in additional entries to the AminoTypes constructor. If you think this message type should be included by default, please open an issue at https://github.com/cosmos/cosmjs/issues.`);case 1:{const[s,o]=r[0];return{typeUrl:s,value:o.fromAmino(n)}}default:throw new Error(`Multiple types are registered with Amino type identifier '${t}': '`+r.map(([s,o])=>s).sort().join("', '")+"'. Thus fromAmino cannot be performed.")}}}ds.AminoTypes=Hh;var ms={};Object.defineProperty(ms,"__esModule",{value:!0});ms.fromTendermintEvent=void 0;const xu=j;function qh(e){return{type:e.type,attributes:e.attributes.map(t=>({key:typeof t.key=="string"?t.key:(0,xu.fromUtf8)(t.key,!0),value:typeof t.value=="string"?t.value:(0,xu.fromUtf8)(t.value,!0)}))}}ms.fromTendermintEvent=qh;var wn={};Object.defineProperty(wn,"__esModule",{value:!0});wn.calculateFee=wn.GasPrice=void 0;const lm=se,Fh=Et;function Vh(e){if(e.length<3||e.length>128)throw new Error("Denom must be between 3 and 128 characters")}class jo{constructor(t,n){this.amount=t,this.denom=n}static fromString(t){const n=t.match(/^([0-9.]+)([a-zA-Z][a-zA-Z0-9/:._-]*)$/);if(!n)throw new Error("Invalid gas price string");const[r,s,o]=n;Vh(o);const a=lm.Decimal.fromUserInput(s,18);return new jo(a,o)}toString(){return this.amount.toString()+this.denom}}wn.GasPrice=jo;function Lh(e,t){const n=typeof t=="string"?jo.fromString(t):t,{denom:r,amount:s}=n,o=s.multiply(new lm.Uint53(e)).ceil().toString();return{amount:(0,Fh.coins)(o,r),gas:e.toString()}}wn.calculateFee=Lh;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});Be.findAttribute=Be.parseRawLog=Be.parseLogs=Be.parseLog=Be.parseEvent=Be.parseAttribute=void 0;const wc=te;function dm(e){if(!(0,wc.isNonNullObject)(e))throw new Error("Attribute must be a non-null object");const{key:t,value:n}=e;if(typeof t!="string"||!t)throw new Error("Attribute's key must be a non-empty string");if(typeof n!="string"&&typeof n<"u")throw new Error("Attribute's value must be a string or unset");return{key:t,value:n||""}}Be.parseAttribute=dm;function mm(e){if(!(0,wc.isNonNullObject)(e))throw new Error("Event must be a non-null object");const{type:t,attributes:n}=e;if(typeof t!="string"||t==="")throw new Error("Event type must be a non-empty string");if(!Array.isArray(n))throw new Error("Event's attributes must be an array");return{type:t,attributes:n.map(dm)}}Be.parseEvent=mm;function fm(e){if(!(0,wc.isNonNullObject)(e))throw new Error("Log must be a non-null object");const{msg_index:t,log:n,events:r}=e;if(typeof t!="number")throw new Error("Log's msg_index must be a number");if(typeof n!="string")throw new Error("Log's log must be a string");if(!Array.isArray(r))throw new Error("Log's events must be an array");return{msg_index:t,log:n,events:r.map(mm)}}Be.parseLog=fm;function pm(e){if(!Array.isArray(e))throw new Error("Logs must be an array");return e.map(fm)}Be.parseLogs=pm;function Wh(e){if(!e)return[];const t=JSON.parse(e).map(({events:n},r)=>({msg_index:r,events:n,log:""}));return pm(t)}Be.parseRawLog=Wh;function Jh(e,t,n){var o;const r=e.find(()=>!0),s=(o=r==null?void 0:r.events.find(i=>i.type===t))==null?void 0:o.attributes.find(i=>i.key===n);if(!s)throw new Error(`Could not find attribute '${n}' in first event of type '${t}' in first log.`);return s}Be.findAttribute=Jh;var ns={},Do={},_e={},Uo={},fs={},$o={};Object.defineProperty($o,"__esModule",{value:!0});$o.concat=void 0;const Gh=Sn;function Kh(...e){const t=new Array,n=new Array,r=new Set;let s=0;function o(){for(;t.length>0;)t.shift().unsubscribe();n.length=0,r.clear(),s=0}const i={start:a=>{e.forEach(l=>n.push([]));function c(l){for(;;){const d=n[l].shift();if(d===void 0)return;a.next(d)}}function u(){return s>=e.length}if(u()){a.complete();return}e.forEach((l,d)=>{t.push(l.subscribe({next:b=>{d===s?a.next(b):n[d].push(b)},complete:()=>{for(r.add(d);r.has(s);)c(s),s++;u()?a.complete():c(s)},error:b=>{a.error(b),o()}}))})},stop:()=>{o()}};return Gh.Stream.create(i)}$o.concat=Kh;var xo={};Object.defineProperty(xo,"__esModule",{value:!0});xo.DefaultValueProducer=void 0;class zh{get value(){return this.internalValue}constructor(t,n){this.callbacks=n,this.internalValue=t}update(t){this.internalValue=t,this.listener&&this.listener.next(t)}error(t){this.listener&&this.listener.error(t)}start(t){this.listener=t,t.next(this.internalValue),this.callbacks&&this.callbacks.onStarted()}stop(){this.callbacks&&this.callbacks.onStop(),this.listener=void 0}}xo.DefaultValueProducer=zh;var Ho={};Object.defineProperty(Ho,"__esModule",{value:!0});Ho.dropDuplicates=void 0;function Qh(e){return n=>{const r=new Set;return n.filter(o=>!r.has(e(o))).debug(o=>r.add(e(o)))}}Ho.dropDuplicates=Qh;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.firstEvent=Vt.toListPromise=Vt.fromListPromise=void 0;const Ch=Sn;function Yh(e){const t={start:n=>{e.then(r=>{for(const s of r)n.next(s);n.complete()}).catch(r=>n.error(r))},stop:()=>{}};return Ch.Stream.create(t)}Vt.fromListPromise=Yh;async function gm(e,t){return new Promise((n,r)=>{if(t===0){n([]);return}const s=new Array;e.take(t).subscribe({next:o=>{s.push(o),s.length===t&&n(s)},complete:()=>{r(`Stream completed before all events could be collected. Collected ${s.length}, expected ${t}`)},error:o=>r(o)})})}Vt.toListPromise=gm;async function Xh(e){return(await gm(e,1))[0]}Vt.firstEvent=Xh;var St={};Object.defineProperty(St,"__esModule",{value:!0});St.lastValue=St.asArray=St.countStream=St.Reducer=void 0;class qo{constructor(t,n,r){this.stream=t,this.reducer=n,this.state=r,this.completed=new Promise((s,o)=>{const i=this.stream.subscribe({next:a=>{this.state=this.reducer(this.state,a)},complete:()=>{s(),i.unsubscribe()},error:a=>{o(a),i.unsubscribe()}})})}value(){return this.state}async finished(){return this.completed}}St.Reducer=qo;function Zh(e,t){return e+1}function eb(e){return new qo(e,Zh,0)}St.countStream=eb;function tb(e,t){return[...e,t]}function nb(e){return new qo(e,tb,[])}St.asArray=nb;function rb(e,t){return t}function sb(e){return new qo(e,rb,void 0)}St.lastValue=sb;var Fo={};Object.defineProperty(Fo,"__esModule",{value:!0});Fo.ValueAndUpdates=void 0;const ob=Sn;class ib{get value(){return this.producer.value}constructor(t){this.producer=t,this.updates=ob.MemoryStream.createWithMemory(this.producer)}async waitFor(t){const n=typeof t=="function"?t:r=>r===t;return new Promise((r,s)=>{const o=this.updates.subscribe({next:i=>{n(i)&&(r(i),setTimeout(()=>o.unsubscribe(),0))},complete:()=>{o.unsubscribe(),s("Update stream completed without expected value")},error:i=>{s(i)}})})}}Fo.ValueAndUpdates=ib;(function(e){var t=h&&h.__createBinding||(Object.create?function(c,u,l,d){d===void 0&&(d=l);var b=Object.getOwnPropertyDescriptor(u,l);(!b||("get"in b?!u.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return u[l]}}),Object.defineProperty(c,d,b)}:function(c,u,l,d){d===void 0&&(d=l),c[d]=u[l]}),n=h&&h.__exportStar||function(c,u){for(var l in c)l!=="default"&&!Object.prototype.hasOwnProperty.call(u,l)&&t(u,c,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.ValueAndUpdates=e.toListPromise=e.fromListPromise=e.firstEvent=e.dropDuplicates=e.DefaultValueProducer=e.concat=void 0;var r=$o;Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return r.concat}});var s=xo;Object.defineProperty(e,"DefaultValueProducer",{enumerable:!0,get:function(){return s.DefaultValueProducer}});var o=Ho;Object.defineProperty(e,"dropDuplicates",{enumerable:!0,get:function(){return o.dropDuplicates}});var i=Vt;Object.defineProperty(e,"firstEvent",{enumerable:!0,get:function(){return i.firstEvent}}),Object.defineProperty(e,"fromListPromise",{enumerable:!0,get:function(){return i.fromListPromise}}),Object.defineProperty(e,"toListPromise",{enumerable:!0,get:function(){return i.toListPromise}}),n(St,e);var a=Fo;Object.defineProperty(e,"ValueAndUpdates",{enumerable:!0,get:function(){return a.ValueAndUpdates}})})(fs);Object.defineProperty(Uo,"__esModule",{value:!0});Uo.QueryClient=void 0;const rn=ip,cn=j,ab=fs,Ee=te;function Ns(e,t,n){if(e.type!==t)throw new Error(`Op expected to be ${t}, got "${e.type}`);if(!(0,Ee.arrayContentEquals)(n,e.key))throw new Error(`Proven key different than queried key.
5
5
  Query: ${(0,cn.toHex)(n)}
@@ -39,4 +39,4 @@ Proven: ${(0,cn.toHex)(e.key)}`);return rn.ics23.CommitmentProof.decode(e.data)}
39
39
  blockHeight
40
40
  }
41
41
  }
42
- `;w.util.Long!==ue&&(w.util.Long=ue,w.configure());var tE=(()=>{if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof U.global<"u")return U.global;throw"Unable to locate global object"})();w.util.Long!==ue&&(w.util.Long=ue,w.configure());class BE extends tE.Error{constructor(t,n,r){super(t),this.code=n,this.metadata=r}}class Xr{constructor(t,n){E(this,"type");E(this,"key");this.key=t,this.type=n||"/injective.crypto.v1beta1.ethsecp256k1.PubKey"}static fromBase64(t){return new Xr(U.Buffer.from(t,"base64"))}static fromBytes(t){return new Xr(t)}static fromHex(t){const r=typeof t=="string"&&t.startsWith("0x")?t.slice(2):t,s=U.Buffer.from(r.toString(),"hex"),o=Qs.publicKeyCreate(s,!0),i="/injective.crypto.v1beta1.ethsecp256k1.PubKey";return new Xr(o,i)}toPubKeyBytes(){return this.key}toBase64(){return U.Buffer.from(this.toPubKeyBytes()).toString("base64")}toHex(){return U.Buffer.from(this.toPubKeyBytes()).toString("hex")}toBech32(){return Ge.encode(jk,Ge.toWords(U.Buffer.from(this.toHex(),"hex")))}toAddress(){const t=this.toHex(),n=Fk(t),r=U.Buffer.from(Yp.keccak256(zs.toBuffer(n.startsWith("0x")?n:"0x"+n)),"hex").subarray(-20);return Ar.fromHex(U.Buffer.from(r).toString("hex").toLowerCase())}toProto(){const t=Qa.create();return t.key=this.key,t}toAny(){const t=this.toProto(),n=C.create();return n.typeUrl=this.type,n.value=U.Buffer.from(Qa.encode(t).finish()),n}}class Vn{constructor(t){E(this,"wallet");this.wallet=t}static generate(){const t=Xp.generateMnemonic();return{privateKey:Vn.fromMnemonic(t),mnemonic:t}}static fromMnemonic(t,n=$k){return new Vn(Hi.fromMnemonic(t,n))}static fromPrivateKey(t){return new Vn(new Hi(t))}static fromHex(t){const n=typeof t=="string",r=n&&t.startsWith("0x")?t.slice(2):t,s=n?U.Buffer.from(r.toString(),"hex"):t;return new Vn(new Hi(s))}toPrivateKeyHex(){return this.wallet.privateKey.startsWith("0x")?this.wallet.privateKey:`0x${this.wallet.privateKey}`}toPublicKey(){return Xr.fromHex(this.wallet.privateKey)}toHex(){return this.wallet.address.startsWith("0x")?this.wallet.address:`0x${this.wallet.address}`}toAddress(){return Ar.fromHex(this.toHex())}toBech32(){return Ar.fromHex(this.toHex()).toBech32()}async sign(t){const{wallet:n}=this,r=Aa(t),s=await n._signingKey().signDigest(r),o=Xc(s);return Zc(eu([o.r,o.s]))}async signEcda(t){const{wallet:n}=this,r=Aa(t),s=n.privateKey.startsWith("0x")?n.privateKey.slice(2):n.privateKey,o=Uint8Array.from(U.Buffer.from(s,"hex")),{signature:i}=Qs.ecdsaSign(r,o);return i}async signHashed(t){const{wallet:n}=this,r=await n._signingKey().signDigest(t),s=Xc(r);return Zc(eu([s.r,s.s]))}async signHashedEcda(t){const{wallet:n}=this,r=n.privateKey.startsWith("0x")?n.privateKey.slice(2):n.privateKey,s=Uint8Array.from(U.Buffer.from(r,"hex")),{signature:o}=Qs.ecdsaSign(t,s);return o}async signTypedData(t){const{wallet:n}=this,r=n.privateKey.startsWith("0x")?n.privateKey.slice(2):n.privateKey,s=tu.signTypedData({privateKey:U.Buffer.from(r,"hex"),data:t,version:tu.SignTypedDataVersion.V4});return U.Buffer.from(s.replace("0x",""),"hex")}async signHashedTypedData(t){const{wallet:n}=this,r=n.privateKey.startsWith("0x")?n.privateKey.slice(2):n.privateKey,s=Uint8Array.from(U.Buffer.from(r,"hex")),{signature:o}=Qs.ecdsaSign(t,s);return o}}const nE=({signers:e,chainId:t,message:n,timeoutHeight:r,memo:s="",fee:o=Vf,signMode:i=Wk})=>{const a=Array.isArray(e)?e:[e],[c]=a,u=Gk({message:n,memo:s,timeoutHeight:r}),l=typeof o=="string"?Ek(o):o,d=Kk({fee:l.amount[0],payer:l.payer,granter:l.granter,gasLimit:parseInt(l.gas,10)}),b=zk({chainId:t,mode:i,signers:a}),y=Ck({signerInfo:b,fee:d}),P=Vc.encode(u).finish(),v=Lc.encode(y).finish(),m=Yk({chainId:t,bodyBytes:P,authInfoBytes:v,accountNumber:c.accountNumber}),S=Fc.encode(m).finish(),D=U.Buffer.from(S),N=Aa(U.Buffer.from(S)),Y=bo.create();return Y.authInfoBytes=v,Y.bodyBytes=P,{txRaw:Y,signDoc:m,signers:e,signer:c,signBytes:D,signHashedBytes:N,bodyBytes:P,authInfoBytes:v}},rE=e=>nE({...e,signers:{pubKey:e.pubKey,accountNumber:e.accountNumber,sequence:e.sequence}});async function sE(e,t){const[n,r]=await Sr.chainFromRpc(e);if(ag.includes(r))return new iE(r,n,t);const s=await Et.DirectSecp256k1HdWallet.fromMnemonic(t,{prefix:Od(r)}),o=(await s.getAccounts())[0],i=await Hc.SigningCosmWasmClient.connectWithSigner(Zp(n,r),s);return new oE(r,i,o.address)}class oE{constructor(t,n,r,s){E(this,"_chain");E(this,"_signer");E(this,"_account");E(this,"_debug");this._chain=t,this._signer=n,this._account=r,this._debug=s}chain(){return this._chain}address(){return this._account}async sign(t){const n=[];for(const r of t){const{description:s,transaction:o}=r;this._debug&&(console.log(`Signing: ${s} for ${this.address()}`),console.log(o.msgs,o.fee,o.memo));const i=await this._signer.sign(this.address(),o.msgs,o.fee,o.memo),a=Rt.TxRaw.encode(i).finish();n.push(a)}return n}}class iE{constructor(t,n,r){E(this,"_chain");E(this,"_chainId");E(this,"key");E(this,"prefix");E(this,"_rpc");this._chain=t,this._rpc=new Zk(ug(n,t)),this._chainId=eg.get(n,t),this.prefix=Od(t),this.key=Vn.fromMnemonic(r)}chain(){return this._chain}address(){return this.key.toAddress().toBech32(this.prefix)}async sign(t){const n=this.key.toPublicKey().toBase64(),{sequence:r,accountNumber:s}=await this.getSignerData(),o=[];for(const i of t){const{description:a,transaction:c}=i;console.log(`Signing ${a} for ${this.address()}`);const{signBytes:u,txRaw:l}=rE({message:c.msgs.map(d=>Qc.fromJSON({port:d.value.sourcePort,amount:d.value.token,memo:d.value.memo,sender:d.value.sender,receiver:d.value.receiver,channelId:d.value.sourceChannel,timeout:d.value.timeoutTimestamp,height:d.value.timeoutHeight})),pubKey:n,sequence:r,accountNumber:s,chainId:this._chainId,memo:c.memo,fee:c.fee});l.signatures=[await this.key.sign(u)],o.push(rc.decode(Cc.encode(l)))}return o}async getSignerData(){const t=this.address(),{account:n}=await this._rpc.fetchAccount(t),r=parseInt(n.base_account.account_number,10),s=parseInt(n.base_account.sequence,10);return{address:t,sequence:s,accountNumber:r}}}const aE={Address:Te,Platform:Sr,getSigner:sE,protocols:{WormholeCore:()=>qi(()=>import("./index-EkdPNlSn.js"),__vite__mapDeps([0,1,2,3,4,5,6])),TokenBridge:()=>qi(()=>import("./index-Dqd4pSig.js"),__vite__mapDeps([7,0,1,2,3,4,5,6,8])),IbcBridge:()=>qi(()=>import("./index-6ERMnMWg.js"),__vite__mapDeps([9,2,3,0,1,4,5,6,8]))},getChain:(e,t,n)=>new qc(t,new Sr(e,tg(e,Zr,{[t]:n})))},NE=Object.freeze(Object.defineProperty({__proto__:null,default:aE},Symbol.toStringTag,{value:"Module"}));export{Sr as C,mE as D,za as G,pE as I,fE as M,Zr as _,Te as a,PE as b,hn as c,Ed as d,gE as e,yE as f,hE as g,bE as h,vE as i,wE as j,_E as k,SE as l,AE as m,_u as n,NE as o};
42
+ `;w.util.Long!==ue&&(w.util.Long=ue,w.configure());var tE=(()=>{if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof U.global<"u")return U.global;throw"Unable to locate global object"})();w.util.Long!==ue&&(w.util.Long=ue,w.configure());class BE extends tE.Error{constructor(t,n,r){super(t),this.code=n,this.metadata=r}}class Xr{constructor(t,n){E(this,"type");E(this,"key");this.key=t,this.type=n||"/injective.crypto.v1beta1.ethsecp256k1.PubKey"}static fromBase64(t){return new Xr(U.Buffer.from(t,"base64"))}static fromBytes(t){return new Xr(t)}static fromHex(t){const r=typeof t=="string"&&t.startsWith("0x")?t.slice(2):t,s=U.Buffer.from(r.toString(),"hex"),o=Qs.publicKeyCreate(s,!0),i="/injective.crypto.v1beta1.ethsecp256k1.PubKey";return new Xr(o,i)}toPubKeyBytes(){return this.key}toBase64(){return U.Buffer.from(this.toPubKeyBytes()).toString("base64")}toHex(){return U.Buffer.from(this.toPubKeyBytes()).toString("hex")}toBech32(){return Ge.encode(jk,Ge.toWords(U.Buffer.from(this.toHex(),"hex")))}toAddress(){const t=this.toHex(),n=Fk(t),r=U.Buffer.from(Yp.keccak256(zs.toBuffer(n.startsWith("0x")?n:"0x"+n)),"hex").subarray(-20);return Ar.fromHex(U.Buffer.from(r).toString("hex").toLowerCase())}toProto(){const t=Qa.create();return t.key=this.key,t}toAny(){const t=this.toProto(),n=C.create();return n.typeUrl=this.type,n.value=U.Buffer.from(Qa.encode(t).finish()),n}}class Vn{constructor(t){E(this,"wallet");this.wallet=t}static generate(){const t=Xp.generateMnemonic();return{privateKey:Vn.fromMnemonic(t),mnemonic:t}}static fromMnemonic(t,n=$k){return new Vn(Hi.fromMnemonic(t,n))}static fromPrivateKey(t){return new Vn(new Hi(t))}static fromHex(t){const n=typeof t=="string",r=n&&t.startsWith("0x")?t.slice(2):t,s=n?U.Buffer.from(r.toString(),"hex"):t;return new Vn(new Hi(s))}toPrivateKeyHex(){return this.wallet.privateKey.startsWith("0x")?this.wallet.privateKey:`0x${this.wallet.privateKey}`}toPublicKey(){return Xr.fromHex(this.wallet.privateKey)}toHex(){return this.wallet.address.startsWith("0x")?this.wallet.address:`0x${this.wallet.address}`}toAddress(){return Ar.fromHex(this.toHex())}toBech32(){return Ar.fromHex(this.toHex()).toBech32()}async sign(t){const{wallet:n}=this,r=Aa(t),s=await n._signingKey().signDigest(r),o=Xc(s);return Zc(eu([o.r,o.s]))}async signEcda(t){const{wallet:n}=this,r=Aa(t),s=n.privateKey.startsWith("0x")?n.privateKey.slice(2):n.privateKey,o=Uint8Array.from(U.Buffer.from(s,"hex")),{signature:i}=Qs.ecdsaSign(r,o);return i}async signHashed(t){const{wallet:n}=this,r=await n._signingKey().signDigest(t),s=Xc(r);return Zc(eu([s.r,s.s]))}async signHashedEcda(t){const{wallet:n}=this,r=n.privateKey.startsWith("0x")?n.privateKey.slice(2):n.privateKey,s=Uint8Array.from(U.Buffer.from(r,"hex")),{signature:o}=Qs.ecdsaSign(t,s);return o}async signTypedData(t){const{wallet:n}=this,r=n.privateKey.startsWith("0x")?n.privateKey.slice(2):n.privateKey,s=tu.signTypedData({privateKey:U.Buffer.from(r,"hex"),data:t,version:tu.SignTypedDataVersion.V4});return U.Buffer.from(s.replace("0x",""),"hex")}async signHashedTypedData(t){const{wallet:n}=this,r=n.privateKey.startsWith("0x")?n.privateKey.slice(2):n.privateKey,s=Uint8Array.from(U.Buffer.from(r,"hex")),{signature:o}=Qs.ecdsaSign(t,s);return o}}const nE=({signers:e,chainId:t,message:n,timeoutHeight:r,memo:s="",fee:o=Vf,signMode:i=Wk})=>{const a=Array.isArray(e)?e:[e],[c]=a,u=Gk({message:n,memo:s,timeoutHeight:r}),l=typeof o=="string"?Ek(o):o,d=Kk({fee:l.amount[0],payer:l.payer,granter:l.granter,gasLimit:parseInt(l.gas,10)}),b=zk({chainId:t,mode:i,signers:a}),y=Ck({signerInfo:b,fee:d}),P=Vc.encode(u).finish(),v=Lc.encode(y).finish(),m=Yk({chainId:t,bodyBytes:P,authInfoBytes:v,accountNumber:c.accountNumber}),S=Fc.encode(m).finish(),D=U.Buffer.from(S),N=Aa(U.Buffer.from(S)),Y=bo.create();return Y.authInfoBytes=v,Y.bodyBytes=P,{txRaw:Y,signDoc:m,signers:e,signer:c,signBytes:D,signHashedBytes:N,bodyBytes:P,authInfoBytes:v}},rE=e=>nE({...e,signers:{pubKey:e.pubKey,accountNumber:e.accountNumber,sequence:e.sequence}});async function sE(e,t){const[n,r]=await Sr.chainFromRpc(e);if(ag.includes(r))return new iE(r,n,t);const s=await Et.DirectSecp256k1HdWallet.fromMnemonic(t,{prefix:Od(r)}),o=(await s.getAccounts())[0],i=await Hc.SigningCosmWasmClient.connectWithSigner(Zp(n,r),s);return new oE(r,i,o.address)}class oE{constructor(t,n,r,s){E(this,"_chain");E(this,"_signer");E(this,"_account");E(this,"_debug");this._chain=t,this._signer=n,this._account=r,this._debug=s}chain(){return this._chain}address(){return this._account}async sign(t){const n=[];for(const r of t){const{description:s,transaction:o}=r;this._debug&&(console.log(`Signing: ${s} for ${this.address()}`),console.log(o.msgs,o.fee,o.memo));const i=await this._signer.sign(this.address(),o.msgs,o.fee,o.memo),a=Rt.TxRaw.encode(i).finish();n.push(a)}return n}}class iE{constructor(t,n,r){E(this,"_chain");E(this,"_chainId");E(this,"key");E(this,"prefix");E(this,"_rpc");this._chain=t,this._rpc=new Zk(ug(n,t)),this._chainId=eg.get(n,t),this.prefix=Od(t),this.key=Vn.fromMnemonic(r)}chain(){return this._chain}address(){return this.key.toAddress().toBech32(this.prefix)}async sign(t){const n=this.key.toPublicKey().toBase64(),{sequence:r,accountNumber:s}=await this.getSignerData(),o=[];for(const i of t){const{description:a,transaction:c}=i;console.log(`Signing ${a} for ${this.address()}`);const{signBytes:u,txRaw:l}=rE({message:c.msgs.map(d=>Qc.fromJSON({port:d.value.sourcePort,amount:d.value.token,memo:d.value.memo,sender:d.value.sender,receiver:d.value.receiver,channelId:d.value.sourceChannel,timeout:d.value.timeoutTimestamp,height:d.value.timeoutHeight})),pubKey:n,sequence:r,accountNumber:s,chainId:this._chainId,memo:c.memo,fee:c.fee});l.signatures=[await this.key.sign(u)],o.push(rc.decode(Cc.encode(l)))}return o}async getSignerData(){const t=this.address(),{account:n}=await this._rpc.fetchAccount(t),r=parseInt(n.base_account.account_number,10),s=parseInt(n.base_account.sequence,10);return{address:t,sequence:s,accountNumber:r}}}const aE={Address:Te,Platform:Sr,getSigner:sE,protocols:{WormholeCore:()=>qi(()=>import("./index-BphOrDO3.js"),__vite__mapDeps([0,1,2,3,4,5,6])),TokenBridge:()=>qi(()=>import("./index-BhecnthD.js"),__vite__mapDeps([7,0,1,2,3,4,5,6,8])),IbcBridge:()=>qi(()=>import("./index-CX56YBaw.js"),__vite__mapDeps([9,2,3,0,1,4,5,6,8]))},getChain:(e,t,n)=>new qc(t,new Sr(e,tg(e,Zr,{[t]:n})))},NE=Object.freeze(Object.defineProperty({__proto__:null,default:aE},Symbol.toStringTag,{value:"Module"}));export{Sr as C,mE as D,za as G,pE as I,fE as M,Zr as _,Te as a,PE as b,hn as c,Ed as d,gE as e,yE as f,hE as g,bE as h,vE as i,wE as j,_E as k,SE as l,AE as m,_u as n,NE as o};