@ecency/sdk 2.4.23 → 2.4.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{chunk-RBORSSX5.js → chunk-2JKJ4XWU.js} +2 -2
- package/dist/browser/{chunk-RBORSSX5.js.map → chunk-2JKJ4XWU.js.map} +1 -1
- package/dist/browser/{chunk-HV4BKN6J.js → chunk-2KEJTQE4.js} +2 -2
- package/dist/browser/{chunk-HV4BKN6J.js.map → chunk-2KEJTQE4.js.map} +1 -1
- package/dist/browser/{chunk-4R7PDEUP.js → chunk-32UMQJXQ.js} +2 -2
- package/dist/browser/{chunk-4R7PDEUP.js.map → chunk-32UMQJXQ.js.map} +1 -1
- package/dist/browser/{chunk-C2EISS5O.js → chunk-37K2OPGL.js} +2 -2
- package/dist/browser/{chunk-C2EISS5O.js.map → chunk-37K2OPGL.js.map} +1 -1
- package/dist/browser/{chunk-QV7IOAFD.js → chunk-3XRU3DXW.js} +2 -2
- package/dist/browser/{chunk-QV7IOAFD.js.map → chunk-3XRU3DXW.js.map} +1 -1
- package/dist/browser/{chunk-7N4UF43Y.js → chunk-4C57MZP6.js} +2 -2
- package/dist/browser/{chunk-7N4UF43Y.js.map → chunk-4C57MZP6.js.map} +1 -1
- package/dist/browser/{chunk-BBBMEKXU.js → chunk-4CZFR2OD.js} +2 -2
- package/dist/browser/{chunk-BBBMEKXU.js.map → chunk-4CZFR2OD.js.map} +1 -1
- package/dist/browser/{chunk-C5PSLR7Z.js → chunk-4OOAGHRD.js} +2 -2
- package/dist/browser/{chunk-C5PSLR7Z.js.map → chunk-4OOAGHRD.js.map} +1 -1
- package/dist/browser/{chunk-C6K4OJC4.js → chunk-5X6R7EPZ.js} +2 -2
- package/dist/browser/{chunk-C6K4OJC4.js.map → chunk-5X6R7EPZ.js.map} +1 -1
- package/dist/browser/{chunk-QGLHPALU.js → chunk-65S4AS6C.js} +2 -2
- package/dist/browser/{chunk-QGLHPALU.js.map → chunk-65S4AS6C.js.map} +1 -1
- package/dist/browser/{chunk-RC4MOYY5.js → chunk-6A7YD57H.js} +2 -2
- package/dist/browser/{chunk-RC4MOYY5.js.map → chunk-6A7YD57H.js.map} +1 -1
- package/dist/browser/{chunk-36UTWSH7.js → chunk-6IABT7MJ.js} +2 -2
- package/dist/browser/{chunk-36UTWSH7.js.map → chunk-6IABT7MJ.js.map} +1 -1
- package/dist/browser/{chunk-SAWB4N2Y.js → chunk-7EICUHR3.js} +2 -2
- package/dist/browser/{chunk-SAWB4N2Y.js.map → chunk-7EICUHR3.js.map} +1 -1
- package/dist/browser/{chunk-4EL7BARO.js → chunk-AIDCGQFG.js} +2 -2
- package/dist/browser/{chunk-4EL7BARO.js.map → chunk-AIDCGQFG.js.map} +1 -1
- package/dist/browser/{chunk-E2HXPVGT.js → chunk-APLDSWPX.js} +2 -2
- package/dist/browser/{chunk-E2HXPVGT.js.map → chunk-APLDSWPX.js.map} +1 -1
- package/dist/browser/{chunk-H7HEYDU6.js → chunk-ASSGVHJB.js} +2 -2
- package/dist/browser/{chunk-H7HEYDU6.js.map → chunk-ASSGVHJB.js.map} +1 -1
- package/dist/browser/{chunk-HS6NJH6H.js → chunk-BHMOSSSW.js} +2 -2
- package/dist/browser/{chunk-HS6NJH6H.js.map → chunk-BHMOSSSW.js.map} +1 -1
- package/dist/browser/{chunk-U2AQDDCH.js → chunk-CAOGIMWX.js} +2 -2
- package/dist/browser/{chunk-U2AQDDCH.js.map → chunk-CAOGIMWX.js.map} +1 -1
- package/dist/browser/{chunk-MPGCDOY7.js → chunk-CKHL2O7X.js} +2 -2
- package/dist/browser/{chunk-MPGCDOY7.js.map → chunk-CKHL2O7X.js.map} +1 -1
- package/dist/browser/{chunk-R6OHEJX2.js → chunk-DA6YYF2F.js} +2 -2
- package/dist/browser/{chunk-R6OHEJX2.js.map → chunk-DA6YYF2F.js.map} +1 -1
- package/dist/browser/{chunk-W3TAAAAM.js → chunk-ETHEILN6.js} +2 -2
- package/dist/browser/{chunk-W3TAAAAM.js.map → chunk-ETHEILN6.js.map} +1 -1
- package/dist/browser/{chunk-4VII2U33.js → chunk-FJ5CJPZL.js} +2 -2
- package/dist/browser/{chunk-4VII2U33.js.map → chunk-FJ5CJPZL.js.map} +1 -1
- package/dist/browser/{chunk-JT3FBTE4.js → chunk-FJ6MJL6G.js} +2 -2
- package/dist/browser/{chunk-JT3FBTE4.js.map → chunk-FJ6MJL6G.js.map} +1 -1
- package/dist/browser/chunk-FJXZ5DK2.js +2 -0
- package/dist/browser/chunk-FJXZ5DK2.js.map +1 -0
- package/dist/browser/{chunk-LAXQ3PZ3.js → chunk-FL3ZYHPE.js} +2 -2
- package/dist/browser/{chunk-LAXQ3PZ3.js.map → chunk-FL3ZYHPE.js.map} +1 -1
- package/dist/browser/{chunk-ICLETUUV.js → chunk-FT5QYVCP.js} +2 -2
- package/dist/browser/{chunk-ICLETUUV.js.map → chunk-FT5QYVCP.js.map} +1 -1
- package/dist/browser/{chunk-LPQIHN5Z.js → chunk-GCSYVQXA.js} +2 -2
- package/dist/browser/{chunk-LPQIHN5Z.js.map → chunk-GCSYVQXA.js.map} +1 -1
- package/dist/browser/{chunk-DJWMP2O4.js → chunk-GN3PKAHB.js} +2 -2
- package/dist/browser/{chunk-DJWMP2O4.js.map → chunk-GN3PKAHB.js.map} +1 -1
- package/dist/browser/{chunk-PCUZP45U.js → chunk-HAIUMSGN.js} +2 -2
- package/dist/browser/{chunk-PCUZP45U.js.map → chunk-HAIUMSGN.js.map} +1 -1
- package/dist/browser/{chunk-IOGRMGRX.js → chunk-HOEDGBRX.js} +2 -2
- package/dist/browser/{chunk-IOGRMGRX.js.map → chunk-HOEDGBRX.js.map} +1 -1
- package/dist/browser/{chunk-JM4J2N4W.js → chunk-HQFYXVBS.js} +2 -2
- package/dist/browser/{chunk-JM4J2N4W.js.map → chunk-HQFYXVBS.js.map} +1 -1
- package/dist/browser/chunk-HWUXXAKE.js +2 -0
- package/dist/browser/{chunk-M63I2JJV.js.map → chunk-HWUXXAKE.js.map} +1 -1
- package/dist/browser/{chunk-5ANV6VYI.js → chunk-I77ZLLQJ.js} +2 -2
- package/dist/browser/{chunk-5ANV6VYI.js.map → chunk-I77ZLLQJ.js.map} +1 -1
- package/dist/browser/{chunk-UNKOXV36.js → chunk-IDZVSJHQ.js} +2 -2
- package/dist/browser/{chunk-UNKOXV36.js.map → chunk-IDZVSJHQ.js.map} +1 -1
- package/dist/browser/{chunk-4KTE2S6L.js → chunk-IGKMIJW2.js} +2 -2
- package/dist/browser/{chunk-4KTE2S6L.js.map → chunk-IGKMIJW2.js.map} +1 -1
- package/dist/browser/{chunk-AZZRCIT3.js → chunk-IRITFNBC.js} +2 -2
- package/dist/browser/{chunk-AZZRCIT3.js.map → chunk-IRITFNBC.js.map} +1 -1
- package/dist/browser/{chunk-P6GFUYJZ.js → chunk-K4CHL32C.js} +2 -2
- package/dist/browser/{chunk-P6GFUYJZ.js.map → chunk-K4CHL32C.js.map} +1 -1
- package/dist/browser/{chunk-36XVEJ3I.js → chunk-L362IYM3.js} +2 -2
- package/dist/browser/{chunk-36XVEJ3I.js.map → chunk-L362IYM3.js.map} +1 -1
- package/dist/browser/{chunk-GXSNHTGO.js → chunk-L4LDM3J5.js} +2 -2
- package/dist/browser/{chunk-GXSNHTGO.js.map → chunk-L4LDM3J5.js.map} +1 -1
- package/dist/browser/{chunk-PN4AFXFW.js → chunk-LER3TBTJ.js} +2 -2
- package/dist/browser/{chunk-PN4AFXFW.js.map → chunk-LER3TBTJ.js.map} +1 -1
- package/dist/browser/{chunk-MYMGKU5V.js → chunk-MTL3QUPP.js} +2 -2
- package/dist/browser/{chunk-MYMGKU5V.js.map → chunk-MTL3QUPP.js.map} +1 -1
- package/dist/browser/{chunk-M332H37M.js → chunk-NF4XUXML.js} +2 -2
- package/dist/browser/{chunk-M332H37M.js.map → chunk-NF4XUXML.js.map} +1 -1
- package/dist/browser/{chunk-XLTYBCR5.js → chunk-NIE5XZ45.js} +2 -2
- package/dist/browser/{chunk-XLTYBCR5.js.map → chunk-NIE5XZ45.js.map} +1 -1
- package/dist/browser/chunk-OAOOURDH.js +2 -0
- package/dist/browser/{chunk-Z7R2PK35.js.map → chunk-OAOOURDH.js.map} +1 -1
- package/dist/browser/{chunk-YUTSHZGV.js → chunk-OG6WTNVW.js} +2 -2
- package/dist/browser/{chunk-YUTSHZGV.js.map → chunk-OG6WTNVW.js.map} +1 -1
- package/dist/browser/{chunk-XEB43J5Q.js → chunk-OQA55EE6.js} +2 -2
- package/dist/browser/{chunk-XEB43J5Q.js.map → chunk-OQA55EE6.js.map} +1 -1
- package/dist/browser/{chunk-DSUV7SML.js → chunk-OTDWQRUL.js} +2 -2
- package/dist/browser/{chunk-DSUV7SML.js.map → chunk-OTDWQRUL.js.map} +1 -1
- package/dist/browser/{chunk-VDPNUKQ6.js → chunk-P4XPKFYI.js} +2 -2
- package/dist/browser/{chunk-VDPNUKQ6.js.map → chunk-P4XPKFYI.js.map} +1 -1
- package/dist/browser/{chunk-J2HM6MWA.js → chunk-PFVWZI3W.js} +2 -2
- package/dist/browser/{chunk-J2HM6MWA.js.map → chunk-PFVWZI3W.js.map} +1 -1
- package/dist/browser/{chunk-FRXPHA7Y.js → chunk-PW42FHVU.js} +2 -2
- package/dist/browser/{chunk-FRXPHA7Y.js.map → chunk-PW42FHVU.js.map} +1 -1
- package/dist/browser/{chunk-NS5UVFUZ.js → chunk-R6UPSSYV.js} +2 -2
- package/dist/browser/{chunk-NS5UVFUZ.js.map → chunk-R6UPSSYV.js.map} +1 -1
- package/dist/browser/{chunk-373JQPTA.js → chunk-S3LJG457.js} +2 -2
- package/dist/browser/{chunk-373JQPTA.js.map → chunk-S3LJG457.js.map} +1 -1
- package/dist/browser/{chunk-EHCNEMO7.js → chunk-SB6LDMEP.js} +2 -2
- package/dist/browser/{chunk-EHCNEMO7.js.map → chunk-SB6LDMEP.js.map} +1 -1
- package/dist/browser/{chunk-7JPEXH7J.js → chunk-UGE6ZEXY.js} +2 -2
- package/dist/browser/{chunk-7JPEXH7J.js.map → chunk-UGE6ZEXY.js.map} +1 -1
- package/dist/browser/{chunk-JG7HMCAI.js → chunk-VCYNR26T.js} +2 -2
- package/dist/browser/{chunk-JG7HMCAI.js.map → chunk-VCYNR26T.js.map} +1 -1
- package/dist/browser/{chunk-R3DMLKGZ.js → chunk-W4TAERQX.js} +2 -2
- package/dist/browser/{chunk-R3DMLKGZ.js.map → chunk-W4TAERQX.js.map} +1 -1
- package/dist/browser/{chunk-5E7DWZPN.js → chunk-W6CO2WKX.js} +2 -2
- package/dist/browser/{chunk-5E7DWZPN.js.map → chunk-W6CO2WKX.js.map} +1 -1
- package/dist/browser/{chunk-Q2ACQBL2.js → chunk-WCIDGHGX.js} +2 -2
- package/dist/browser/{chunk-Q2ACQBL2.js.map → chunk-WCIDGHGX.js.map} +1 -1
- package/dist/browser/{chunk-IEAAYAFA.js → chunk-WDWR4RZ6.js} +2 -2
- package/dist/browser/{chunk-IEAAYAFA.js.map → chunk-WDWR4RZ6.js.map} +1 -1
- package/dist/browser/{chunk-IMCYKBDV.js → chunk-WE6EIHC6.js} +2 -2
- package/dist/browser/{chunk-IMCYKBDV.js.map → chunk-WE6EIHC6.js.map} +1 -1
- package/dist/browser/{chunk-CFHER3WM.js → chunk-WGKD2O73.js} +2 -2
- package/dist/browser/{chunk-CFHER3WM.js.map → chunk-WGKD2O73.js.map} +1 -1
- package/dist/browser/{chunk-VOET5ABO.js → chunk-WHH45AA3.js} +2 -2
- package/dist/browser/{chunk-VOET5ABO.js.map → chunk-WHH45AA3.js.map} +1 -1
- package/dist/browser/{chunk-EPPY5SE6.js → chunk-WLHXAS5P.js} +2 -2
- package/dist/browser/{chunk-EPPY5SE6.js.map → chunk-WLHXAS5P.js.map} +1 -1
- package/dist/browser/{chunk-6JEMIQQJ.js → chunk-XBAS5ZUQ.js} +2 -2
- package/dist/browser/{chunk-6JEMIQQJ.js.map → chunk-XBAS5ZUQ.js.map} +1 -1
- package/dist/browser/{chunk-QAXITR2P.js → chunk-XQLIW5VC.js} +2 -2
- package/dist/browser/{chunk-QAXITR2P.js.map → chunk-XQLIW5VC.js.map} +1 -1
- package/dist/browser/{chunk-AU2I7Q6Y.js → chunk-XVW7ZC72.js} +2 -2
- package/dist/browser/{chunk-AU2I7Q6Y.js.map → chunk-XVW7ZC72.js.map} +1 -1
- package/dist/browser/{chunk-6PK5KYS5.js → chunk-XX32ZFT4.js} +2 -2
- package/dist/browser/{chunk-6PK5KYS5.js.map → chunk-XX32ZFT4.js.map} +1 -1
- package/dist/browser/{chunk-VPRG4WZA.js → chunk-XZIXDSRW.js} +2 -2
- package/dist/browser/{chunk-VPRG4WZA.js.map → chunk-XZIXDSRW.js.map} +1 -1
- package/dist/browser/{chunk-SI7S4VLE.js → chunk-Z2HIVTNL.js} +2 -2
- package/dist/browser/{chunk-SI7S4VLE.js.map → chunk-Z2HIVTNL.js.map} +1 -1
- package/dist/browser/chunk-Z3FAL7TO.js +2 -0
- package/dist/browser/{chunk-LRO6EB5Y.js.map → chunk-Z3FAL7TO.js.map} +1 -1
- package/dist/browser/{chunk-DWJJGDRC.js → chunk-ZCURRWT2.js} +2 -2
- package/dist/browser/{chunk-DWJJGDRC.js.map → chunk-ZCURRWT2.js.map} +1 -1
- package/dist/browser/{chunk-BCISRGHL.js → chunk-ZSARKV4B.js} +2 -2
- package/dist/browser/{chunk-BCISRGHL.js.map → chunk-ZSARKV4B.js.map} +1 -1
- package/dist/browser/{chunk-NKALZNPX.js → chunk-ZVICL7AK.js} +2 -2
- package/dist/browser/{chunk-NKALZNPX.js.map → chunk-ZVICL7AK.js.map} +1 -1
- package/dist/browser/hive-tx/Transaction.js +1 -1
- package/dist/browser/hive-tx/helpers/memo.js +1 -1
- package/dist/browser/hive-tx/helpers/serializer.js +1 -1
- package/dist/browser/hive-tx/helpers/utils.js +1 -1
- package/dist/browser/hive-tx/index.js +1 -1
- package/dist/browser/hive.js +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/modules/accounts/index.js +1 -1
- package/dist/browser/modules/accounts/mutations/bookmarks/index.js +1 -1
- package/dist/browser/modules/accounts/mutations/bookmarks/use-account-bookmark-add.js +1 -1
- package/dist/browser/modules/accounts/mutations/bookmarks/use-account-bookmark-delete.js +1 -1
- package/dist/browser/modules/accounts/mutations/favorite-tags/index.js +1 -1
- package/dist/browser/modules/accounts/mutations/favorite-tags/requests.js +1 -1
- package/dist/browser/modules/accounts/mutations/favorite-tags/use-favorite-tag-add.js +1 -1
- package/dist/browser/modules/accounts/mutations/favorite-tags/use-favorite-tag-delete.js +1 -1
- package/dist/browser/modules/accounts/mutations/favorites/index.js +1 -1
- package/dist/browser/modules/accounts/mutations/favorites/use-account-favorite-add.js +1 -1
- package/dist/browser/modules/accounts/mutations/favorites/use-account-favorite-delete.js +1 -1
- package/dist/browser/modules/accounts/mutations/index.js +1 -1
- package/dist/browser/modules/accounts/mutations/use-account-relations-update.js +1 -1
- package/dist/browser/modules/accounts/mutations/use-account-revoke-key.js +1 -1
- package/dist/browser/modules/accounts/mutations/use-account-revoke-posting.js +1 -1
- package/dist/browser/modules/accounts/mutations/use-account-update-key-auths.js +1 -1
- package/dist/browser/modules/accounts/mutations/use-account-update-password.js +1 -1
- package/dist/browser/modules/accounts/mutations/use-account-update-recovery.js +1 -1
- package/dist/browser/modules/accounts/mutations/use-account-update.js +1 -1
- package/dist/browser/modules/accounts/mutations/use-claim-account.js +1 -1
- package/dist/browser/modules/accounts/mutations/use-create-account.js +1 -1
- package/dist/browser/modules/accounts/mutations/use-follow.js +1 -1
- package/dist/browser/modules/accounts/mutations/use-grant-posting-permission.js +1 -1
- package/dist/browser/modules/accounts/mutations/use-unfollow.js +1 -1
- package/dist/browser/modules/accounts/queries/check-favorite-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/check-username-wallets-pending-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-account-full-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-account-pending-recovery-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-account-recoveries-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-account-reputations-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-account-subscriptions-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-account-vote-history-infinite-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-accounts-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-aggregated-balance-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-balance-history-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-bookmarks-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-bots-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-favorite-tag-check-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-favorite-tags-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-favorites-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-follow-count-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-followers-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-following-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-friends-infinite-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-muted-users-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-pro-members-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-profiles-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-referrals-infinite-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-referrals-stats-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-relationship-between-accounts-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-search-friends-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/get-transactions-infinite-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/index.js +1 -1
- package/dist/browser/modules/accounts/queries/lookup-accounts-query-options.js +1 -1
- package/dist/browser/modules/accounts/queries/search-accounts-by-username-query-options.js +1 -1
- package/dist/browser/modules/accounts/utils/account-power.js +1 -1
- package/dist/browser/modules/accounts/utils/index.js +1 -1
- package/dist/browser/modules/ai/index.js +1 -1
- package/dist/browser/modules/ai/mutations/index.js +1 -1
- package/dist/browser/modules/ai/mutations/use-ai-assist.js +1 -1
- package/dist/browser/modules/ai/mutations/use-ai-transcribe.js +1 -1
- package/dist/browser/modules/ai/mutations/use-generate-image.js +1 -1
- package/dist/browser/modules/ai/queries/get-ai-assist-price-query-options.js +1 -1
- package/dist/browser/modules/ai/queries/get-ai-generate-price-query-options.js +1 -1
- package/dist/browser/modules/ai/queries/get-ai-images-query-options.js +1 -1
- package/dist/browser/modules/ai/queries/get-ai-transcribe-price-query-options.js +1 -1
- package/dist/browser/modules/ai/queries/index.js +1 -1
- package/dist/browser/modules/analytics/index.js +1 -1
- package/dist/browser/modules/analytics/mutations/index.js +1 -1
- package/dist/browser/modules/analytics/mutations/use-record-activity.js +1 -1
- package/dist/browser/modules/analytics/queries/get-discover-curation-query-options.js +1 -1
- package/dist/browser/modules/analytics/queries/get-discover-leaderboard-query-options.js +1 -1
- package/dist/browser/modules/analytics/queries/get-page-stats-query-options.js +1 -1
- package/dist/browser/modules/analytics/queries/index.js +1 -1
- package/dist/browser/modules/auth/index.js +1 -1
- package/dist/browser/modules/auth/requests.js +1 -1
- package/dist/browser/modules/bad-actors/index.js +1 -1
- package/dist/browser/modules/bad-actors/queries/get-bad-actors-query-options.js +1 -1
- package/dist/browser/modules/bad-actors/queries/index.js +1 -1
- package/dist/browser/modules/bridge/index.js +1 -1
- package/dist/browser/modules/bridge/requests.js +1 -1
- package/dist/browser/modules/bridge/verify-on-alternate-node.js +1 -1
- package/dist/browser/modules/communities/index.js +1 -1
- package/dist/browser/modules/communities/mutations/index.js +1 -1
- package/dist/browser/modules/communities/mutations/use-mute-post.js +1 -1
- package/dist/browser/modules/communities/mutations/use-pin-post.js +1 -1
- package/dist/browser/modules/communities/mutations/use-register-community-rewards.js +1 -1
- package/dist/browser/modules/communities/mutations/use-set-community-role.js +1 -1
- package/dist/browser/modules/communities/mutations/use-subscribe-community.js +1 -1
- package/dist/browser/modules/communities/mutations/use-unsubscribe-community.js +1 -1
- package/dist/browser/modules/communities/mutations/use-update-community.js +1 -1
- package/dist/browser/modules/communities/queries/get-account-notifications-infinite-query-options.js +1 -1
- package/dist/browser/modules/communities/queries/get-communities-query-options.js +1 -1
- package/dist/browser/modules/communities/queries/get-community-context-query-options.js +1 -1
- package/dist/browser/modules/communities/queries/get-community-query-options.js +1 -1
- package/dist/browser/modules/communities/queries/get-community-subscribers-query-options.js +1 -1
- package/dist/browser/modules/communities/queries/get-rewarded-communities-query-options.js +1 -1
- package/dist/browser/modules/communities/queries/index.js +1 -1
- package/dist/browser/modules/core/config.js +1 -1
- package/dist/browser/modules/core/hive-tx.js +1 -1
- package/dist/browser/modules/core/index.js +1 -1
- package/dist/browser/modules/core/mutations/broadcast-json.js +1 -1
- package/dist/browser/modules/core/mutations/index.js +1 -1
- package/dist/browser/modules/core/mutations/use-broadcast-mutation.js +1 -1
- package/dist/browser/modules/core/queries/get-chain-properties-query-options.js +1 -1
- package/dist/browser/modules/core/queries/get-dynamic-props-query-options.js +1 -1
- package/dist/browser/modules/core/queries/get-reward-fund-query-options.js +1 -1
- package/dist/browser/modules/core/queries/index.js +1 -1
- package/dist/browser/modules/core/queries-manager.js +1 -1
- package/dist/browser/modules/curation/dmca.js +1 -1
- package/dist/browser/modules/curation/index.js +1 -1
- package/dist/browser/modules/curation/mutations/index.js +1 -1
- package/dist/browser/modules/curation/mutations/use-curation-recommend.js +1 -1
- package/dist/browser/modules/curation/queries/get-curation-application-query-options.js +1 -1
- package/dist/browser/modules/curation/queries/get-curation-applications-query-options.js +1 -1
- package/dist/browser/modules/curation/queries/get-curation-feed-infinite-query-options.js +1 -1
- package/dist/browser/modules/curation/queries/get-curation-post-query-options.js +1 -1
- package/dist/browser/modules/curation/queries/get-curation-recommendations-infinite-query-options.js +1 -1
- package/dist/browser/modules/curation/queries/get-curation-recommender-query-options.js +1 -1
- package/dist/browser/modules/curation/queries/get-curation-roster-admin-query-options.js +1 -1
- package/dist/browser/modules/curation/queries/get-curation-roster-query-options.js +1 -1
- package/dist/browser/modules/curation/queries/get-curation-status-query-options.js +1 -1
- package/dist/browser/modules/curation/queries/index.js +1 -1
- package/dist/browser/modules/curation/requests.js +1 -1
- package/dist/browser/modules/games/index.js +1 -1
- package/dist/browser/modules/games/mutations/game-claim.js +1 -1
- package/dist/browser/modules/games/mutations/index.js +1 -1
- package/dist/browser/modules/games/queries/game-status-check-query-options.js +1 -1
- package/dist/browser/modules/games/queries/index.js +1 -1
- package/dist/browser/modules/hive-engine/index.js +1 -1
- package/dist/browser/modules/hive-engine/queries/get-all-hive-engine-tokens-query-options.js +1 -1
- package/dist/browser/modules/hive-engine/queries/get-hive-engine-balances-with-usd-query-options.js +1 -1
- package/dist/browser/modules/hive-engine/queries/get-hive-engine-token-general-info-query-options.js +1 -1
- package/dist/browser/modules/hive-engine/queries/get-hive-engine-token-metrics-query-options.js +1 -1
- package/dist/browser/modules/hive-engine/queries/get-hive-engine-token-transactions-query-options.js +1 -1
- package/dist/browser/modules/hive-engine/queries/get-hive-engine-tokens-balances-query-options.js +1 -1
- package/dist/browser/modules/hive-engine/queries/get-hive-engine-tokens-market-query-options.js +1 -1
- package/dist/browser/modules/hive-engine/queries/get-hive-engine-tokens-metadata-query-options.js +1 -1
- package/dist/browser/modules/hive-engine/queries/get-hive-engine-unclaimed-rewards-query-options.js +1 -1
- package/dist/browser/modules/hive-engine/queries/index.js +1 -1
- package/dist/browser/modules/hive-engine/requests.js +1 -1
- package/dist/browser/modules/integrations/3speak/index.js +1 -1
- package/dist/browser/modules/integrations/3speak/queries/get-account-token-query-options.js +1 -1
- package/dist/browser/modules/integrations/3speak/queries/get-account-videos-query-options.js +1 -1
- package/dist/browser/modules/integrations/3speak/queries/index.js +1 -1
- package/dist/browser/modules/integrations/hiveposh/index.js +1 -1
- package/dist/browser/modules/integrations/hiveposh/queries/get-hiveposh-links-query-options.js +1 -1
- package/dist/browser/modules/integrations/hiveposh/queries/index.js +1 -1
- package/dist/browser/modules/integrations/index.js +1 -1
- package/dist/browser/modules/integrations/plausible/index.js +1 -1
- package/dist/browser/modules/integrations/plausible/queries/get-stats-query-options.js +1 -1
- package/dist/browser/modules/integrations/plausible/queries/index.js +1 -1
- package/dist/browser/modules/market/index.js +1 -1
- package/dist/browser/modules/market/mutations/index.js +1 -1
- package/dist/browser/modules/market/mutations/use-limit-order-cancel.js +1 -1
- package/dist/browser/modules/market/mutations/use-limit-order-create.js +1 -1
- package/dist/browser/modules/market/queries/get-current-median-history-price-query-options.js +1 -1
- package/dist/browser/modules/market/queries/get-feed-history-query-options.js +1 -1
- package/dist/browser/modules/market/queries/get-hive-hbd-stats-query-options.js +1 -1
- package/dist/browser/modules/market/queries/get-market-data-query-options.js +1 -1
- package/dist/browser/modules/market/queries/get-market-history-query-options.js +1 -1
- package/dist/browser/modules/market/queries/get-market-statistics-query-options.js +1 -1
- package/dist/browser/modules/market/queries/get-order-book-query-options.js +1 -1
- package/dist/browser/modules/market/queries/get-trade-history-query-options.js +1 -1
- package/dist/browser/modules/market/queries/index.js +1 -1
- package/dist/browser/modules/market/requests.js +1 -1
- package/dist/browser/modules/newsletter/api.js +1 -1
- package/dist/browser/modules/newsletter/index.js +1 -1
- package/dist/browser/modules/newsletter/mutations/index.js +1 -1
- package/dist/browser/modules/newsletter/mutations/use-leave-digest.js +1 -1
- package/dist/browser/modules/newsletter/mutations/use-send-newsletter-issue.js +1 -1
- package/dist/browser/modules/newsletter/mutations/use-subscribe-digest.js +1 -1
- package/dist/browser/modules/newsletter/mutations/use-unsubscribe-all-digests.js +1 -1
- package/dist/browser/modules/newsletter/queries/get-digest-subscriptions-query-options.js +1 -1
- package/dist/browser/modules/newsletter/queries/get-newsletter-issues-query-options.js +1 -1
- package/dist/browser/modules/newsletter/queries/get-newsletter-posts-query-options.js +1 -1
- package/dist/browser/modules/newsletter/queries/get-newsletter-sender-query-options.js +1 -1
- package/dist/browser/modules/newsletter/queries/index.js +1 -1
- package/dist/browser/modules/notifications/index.js +1 -1
- package/dist/browser/modules/notifications/mutations/index.js +1 -1
- package/dist/browser/modules/notifications/mutations/use-mark-notifications-read.js +1 -1
- package/dist/browser/modules/notifications/mutations/use-set-last-read.js +1 -1
- package/dist/browser/modules/notifications/queries/get-announcements-query-options.js +1 -1
- package/dist/browser/modules/notifications/queries/get-notifications-infinite-query-options.js +1 -1
- package/dist/browser/modules/notifications/queries/get-notifications-settings-query-options.js +1 -1
- package/dist/browser/modules/notifications/queries/get-notifications-unread-count-query-options.js +1 -1
- package/dist/browser/modules/notifications/queries/get-spotlights-query-options.js +1 -1
- package/dist/browser/modules/notifications/queries/index.js +1 -1
- package/dist/browser/modules/operations/index.js +1 -1
- package/dist/browser/modules/operations/mutations/index.js +1 -1
- package/dist/browser/modules/operations/mutations/sign-operation-by-key.js +1 -1
- package/dist/browser/modules/operations/queries/get-chain-properties-query-options.js +1 -1
- package/dist/browser/modules/operations/queries/index.js +1 -1
- package/dist/browser/modules/points/index.js +1 -1
- package/dist/browser/modules/points/mutations/index.js +1 -1
- package/dist/browser/modules/points/mutations/use-claim-points.js +1 -1
- package/dist/browser/modules/points/queries/get-points-asset-general-info-query-options.js +1 -1
- package/dist/browser/modules/points/queries/get-points-asset-transactions-query-options.js +1 -1
- package/dist/browser/modules/points/queries/get-points-query-options.js +1 -1
- package/dist/browser/modules/points/queries/index.js +1 -1
- package/dist/browser/modules/polls/index.js +1 -1
- package/dist/browser/modules/polls/mutations/index.js +1 -1
- package/dist/browser/modules/polls/mutations/use-poll-vote.js +1 -1
- package/dist/browser/modules/polls/queries/get-poll-query-options.js +1 -1
- package/dist/browser/modules/polls/queries/index.js +1 -1
- package/dist/browser/modules/posts/cache/discussions-cache-utils.js +1 -1
- package/dist/browser/modules/posts/cache/entries-cache-management.js +1 -1
- package/dist/browser/modules/posts/cache/index.js +1 -1
- package/dist/browser/modules/posts/index.js +1 -1
- package/dist/browser/modules/posts/mutations/add-fragment.js +1 -1
- package/dist/browser/modules/posts/mutations/edit-fragment.js +1 -1
- package/dist/browser/modules/posts/mutations/index.js +1 -1
- package/dist/browser/modules/posts/mutations/remove-fragment.js +1 -1
- package/dist/browser/modules/posts/mutations/use-add-draft.js +1 -1
- package/dist/browser/modules/posts/mutations/use-add-image.js +1 -1
- package/dist/browser/modules/posts/mutations/use-add-schedule.js +1 -1
- package/dist/browser/modules/posts/mutations/use-comment.js +1 -1
- package/dist/browser/modules/posts/mutations/use-cross-post.js +1 -1
- package/dist/browser/modules/posts/mutations/use-delete-comment.js +1 -1
- package/dist/browser/modules/posts/mutations/use-delete-draft.js +1 -1
- package/dist/browser/modules/posts/mutations/use-delete-image.js +1 -1
- package/dist/browser/modules/posts/mutations/use-delete-schedule.js +1 -1
- package/dist/browser/modules/posts/mutations/use-move-schedule.js +1 -1
- package/dist/browser/modules/posts/mutations/use-promote.js +1 -1
- package/dist/browser/modules/posts/mutations/use-reblog.js +1 -1
- package/dist/browser/modules/posts/mutations/use-update-draft.js +1 -1
- package/dist/browser/modules/posts/mutations/use-update-reply.js +1 -1
- package/dist/browser/modules/posts/mutations/use-upload-image.js +1 -1
- package/dist/browser/modules/posts/mutations/use-vote.js +1 -1
- package/dist/browser/modules/posts/queries/get-account-posts-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-comment-history-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-content-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-content-replies-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-deleted-entry-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-discussions-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-drafts-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-entry-active-votes-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-fragments-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-images-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-normalize-post-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-post-header-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-post-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-post-tips-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-posts-ranked-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-promoted-posts-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-reblogged-by-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-reblogs-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-schedules-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-shorts-feed-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-trending-tags-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-trending-tags-with-stats-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-user-post-vote-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-waves-by-account-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-waves-by-host-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-waves-by-tag-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-waves-feed-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-waves-following-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-waves-trending-authors-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/get-waves-trending-tags-query-options.js +1 -1
- package/dist/browser/modules/posts/queries/index.js +1 -1
- package/dist/browser/modules/posts/utils/filter-dmca-entries.js +1 -1
- package/dist/browser/modules/posts/utils/validate-post-creating.js +1 -1
- package/dist/browser/modules/posts/utils/waves-helpers.js +1 -1
- package/dist/browser/modules/private-api/index.js +1 -1
- package/dist/browser/modules/private-api/requests.js +1 -1
- package/dist/browser/modules/promotions/index.js +1 -1
- package/dist/browser/modules/promotions/mutations/index.js +1 -1
- package/dist/browser/modules/promotions/mutations/use-boost-plus.js +1 -1
- package/dist/browser/modules/promotions/mutations/use-rc-delegation.js +1 -1
- package/dist/browser/modules/promotions/queries/get-boost-plus-account-prices-query-options.js +1 -1
- package/dist/browser/modules/promotions/queries/get-boost-plus-prices-query-options.js +1 -1
- package/dist/browser/modules/promotions/queries/get-promote-price-query-options.js +1 -1
- package/dist/browser/modules/promotions/queries/get-rc-delegation-active-query-options.js +1 -1
- package/dist/browser/modules/promotions/queries/get-rc-delegation-prices-query-options.js +1 -1
- package/dist/browser/modules/promotions/queries/index.js +1 -1
- package/dist/browser/modules/proposals/index.js +1 -1
- package/dist/browser/modules/proposals/mutations/index.js +1 -1
- package/dist/browser/modules/proposals/mutations/use-proposal-create.js +1 -1
- package/dist/browser/modules/proposals/mutations/use-proposal-vote.js +1 -1
- package/dist/browser/modules/proposals/queries/get-proposal-query-options.js +1 -1
- package/dist/browser/modules/proposals/queries/get-proposal-votes-query-options.js +1 -1
- package/dist/browser/modules/proposals/queries/get-proposals-query-options.js +1 -1
- package/dist/browser/modules/proposals/queries/get-user-proposal-votes-query-options.js +1 -1
- package/dist/browser/modules/proposals/queries/index.js +1 -1
- package/dist/browser/modules/quests/index.js +1 -1
- package/dist/browser/modules/quests/mutations/buy-streak-freeze.js +1 -1
- package/dist/browser/modules/quests/mutations/index.js +1 -1
- package/dist/browser/modules/quests/queries/get-quests-query-options.js +1 -1
- package/dist/browser/modules/quests/queries/index.js +1 -1
- package/dist/browser/modules/resource-credits/index.js +1 -1
- package/dist/browser/modules/resource-credits/queries/get-account-rc-query-options.js +1 -1
- package/dist/browser/modules/resource-credits/queries/get-rc-resource-params-query-options.js +1 -1
- package/dist/browser/modules/resource-credits/queries/get-rc-stats-query-options.js +1 -1
- package/dist/browser/modules/resource-credits/queries/index.js +1 -1
- package/dist/browser/modules/resource-credits/utils/estimate-rc-precheck.js +1 -1
- package/dist/browser/modules/resource-credits/utils/index.js +1 -1
- package/dist/browser/modules/search/dmca.js +1 -1
- package/dist/browser/modules/search/index.js +1 -1
- package/dist/browser/modules/search/parse-json-response.js +1 -1
- package/dist/browser/modules/search/queries/get-search-account-query-options.js +1 -1
- package/dist/browser/modules/search/queries/get-search-api-infinite-query-options.js +1 -1
- package/dist/browser/modules/search/queries/get-search-path-query-options.js +1 -1
- package/dist/browser/modules/search/queries/get-search-query-options.js +1 -1
- package/dist/browser/modules/search/queries/get-search-topics-query-options.js +1 -1
- package/dist/browser/modules/search/queries/get-similar-entries-query-options.js +1 -1
- package/dist/browser/modules/search/queries/index.js +1 -1
- package/dist/browser/modules/search/requests.js +1 -1
- package/dist/browser/modules/support/index.js +1 -1
- package/dist/browser/modules/support/mutations/index.js +1 -1
- package/dist/browser/modules/support/mutations/update-support-settings.js +1 -1
- package/dist/browser/modules/support/queries/get-support-settings-query-options.js +1 -1
- package/dist/browser/modules/support/queries/index.js +1 -1
- package/dist/browser/modules/wallet/consts/hive-account-operation-groups.js +1 -1
- package/dist/browser/modules/wallet/consts/hive-operation-list.js +1 -1
- package/dist/browser/modules/wallet/consts/hive-operation-orders.js +1 -1
- package/dist/browser/modules/wallet/consts/index.js +1 -1
- package/dist/browser/modules/wallet/index.js +1 -1
- package/dist/browser/modules/wallet/mutations/index.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-claim-engine-rewards.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-claim-interest.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-claim-rewards.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-convert.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-delegate-engine-token.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-delegate-rc.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-delegate-vesting-shares.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-engine-market-order.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-set-withdraw-vesting-route.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-stake-engine-token.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-transfer-engine-token.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-transfer-from-savings.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-transfer-point.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-transfer-to-savings.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-transfer-to-vesting.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-transfer.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-undelegate-engine-token.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-unstake-engine-token.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-wallet-operation.js +1 -1
- package/dist/browser/modules/wallet/mutations/use-withdraw-vesting.js +1 -1
- package/dist/browser/modules/wallet/queries/get-account-delegations-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-account-wallet-asset-info-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-collateralized-conversion-requests-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-conversion-requests-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-hbd-asset-general-info-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-hbd-asset-transactions-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-hive-asset-general-info-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-hive-asset-metric-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-hive-asset-transactions-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-hive-asset-withdrawal-routes-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-hive-power-asset-general-info-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-hive-power-asset-transactions-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-hive-power-delegates-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-hive-power-delegatings-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-incoming-rc-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-open-orders-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-outgoing-rc-delegations-infinite-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-portfolio-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-received-vesting-shares-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-recurrent-transfers-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-savings-withdraw-from-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-vesting-delegation-expirations-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-vesting-delegations-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/get-withdraw-routes-query-options.js +1 -1
- package/dist/browser/modules/wallet/queries/index.js +1 -1
- package/dist/browser/modules/witnesses/index.js +1 -1
- package/dist/browser/modules/witnesses/mutations/index.js +1 -1
- package/dist/browser/modules/witnesses/mutations/use-witness-proxy.js +1 -1
- package/dist/browser/modules/witnesses/mutations/use-witness-vote.js +1 -1
- package/dist/browser/modules/witnesses/queries/get-witnesses-query-options.js +1 -1
- package/dist/browser/modules/witnesses/queries/index.js +1 -1
- package/dist/node/hive.cjs +2 -2
- package/dist/node/hive.cjs.map +1 -1
- package/dist/node/hive.mjs +2 -2
- package/dist/node/hive.mjs.map +1 -1
- package/dist/node/index.cjs +3 -3
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.mjs +3 -3
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/browser/chunk-LRO6EB5Y.js +0 -2
- package/dist/browser/chunk-M63I2JJV.js +0 -2
- package/dist/browser/chunk-W6TVTSY5.js +0 -2
- package/dist/browser/chunk-W6TVTSY5.js.map +0 -1
- package/dist/browser/chunk-Z7R2PK35.js +0 -2
package/dist/browser/modules/wallet/queries/get-outgoing-rc-delegations-infinite-query-options.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as getOutgoingRcDelegationsInfiniteQueryOptions}from'../../../chunk-VKHEDCJP.js';import'../../../chunk-
|
|
1
|
+
export{a as getOutgoingRcDelegationsInfiniteQueryOptions}from'../../../chunk-VKHEDCJP.js';import'../../../chunk-OQA55EE6.js';import'../../../chunk-PSJ6RBU7.js';import'../../../chunk-L4LDM3J5.js';import'../../../chunk-XX32ZFT4.js';import'../../../chunk-CPEOHI6I.js';import'../../../chunk-R7SWYGIQ.js';import'../../../chunk-W6CLJQB7.js';import'../../../chunk-WE6EIHC6.js';import'../../../chunk-FJXZ5DK2.js';import'../../../chunk-SZZYFGT3.js';import'../../../chunk-RAWKN3XW.js';import'../../../chunk-PQSG5K4Y.js';import'../../../chunk-GLLSYDNK.js';import'../../../chunk-KT7GFFA7.js';import'../../../chunk-S364K442.js';import'../../../chunk-C32KFGFA.js';import'../../../chunk-G27OY2BI.js';import'../../../chunk-OS3FCYZY.js';//# sourceMappingURL=get-outgoing-rc-delegations-infinite-query-options.js.map
|
|
2
2
|
//# sourceMappingURL=get-outgoing-rc-delegations-infinite-query-options.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as getPortfolioQueryOptions}from'../../../chunk-D4CQVW6R.js';import'../../../chunk-CWBPA5DT.js';import'../../../chunk-HYWGW2KG.js';import'../../../chunk-ZOBESNHF.js';import'../../../chunk-SWB5BEBJ.js';import'../../../chunk-PRS4VWQ6.js';import'../../../chunk-7FGO3WVP.js';import'../../../chunk-AZAGIEQM.js';import'../../../chunk-
|
|
1
|
+
export{a as getPortfolioQueryOptions}from'../../../chunk-D4CQVW6R.js';import'../../../chunk-CWBPA5DT.js';import'../../../chunk-HYWGW2KG.js';import'../../../chunk-ZOBESNHF.js';import'../../../chunk-SWB5BEBJ.js';import'../../../chunk-PRS4VWQ6.js';import'../../../chunk-7FGO3WVP.js';import'../../../chunk-AZAGIEQM.js';import'../../../chunk-4OOAGHRD.js';import'../../../chunk-CNB64U7U.js';import'../../../chunk-PFVWZI3W.js';import'../../../chunk-SYDLFCXU.js';import'../../../chunk-M37RR3MH.js';import'../../../chunk-SPR2OKTO.js';import'../../../chunk-ZMMG2HSI.js';import'../../../chunk-QKTP4NPT.js';import'../../../chunk-SEACJS36.js';import'../../../chunk-573LJIGZ.js';import'../../../chunk-W3MCL2F4.js';import'../../../chunk-ASN6FTIA.js';import'../../../chunk-32QJ72HH.js';import'../../../chunk-OQA55EE6.js';import'../../../chunk-POHYQBLL.js';import'../../../chunk-OMSXAN23.js';import'../../../chunk-WTHEQ3M5.js';import'../../../chunk-JKLDB3J3.js';import'../../../chunk-JDGZ4DHM.js';import'../../../chunk-PSJ6RBU7.js';import'../../../chunk-L4LDM3J5.js';import'../../../chunk-XX32ZFT4.js';import'../../../chunk-CPEOHI6I.js';import'../../../chunk-R7SWYGIQ.js';import'../../../chunk-W6CLJQB7.js';import'../../../chunk-WE6EIHC6.js';import'../../../chunk-FJXZ5DK2.js';import'../../../chunk-SZZYFGT3.js';import'../../../chunk-RAWKN3XW.js';import'../../../chunk-PQSG5K4Y.js';import'../../../chunk-GLLSYDNK.js';import'../../../chunk-KT7GFFA7.js';import'../../../chunk-S364K442.js';import'../../../chunk-C32KFGFA.js';import'../../../chunk-G27OY2BI.js';import'../../../chunk-OS3FCYZY.js';//# sourceMappingURL=get-portfolio-query-options.js.map
|
|
2
2
|
//# sourceMappingURL=get-portfolio-query-options.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as getReceivedVestingSharesQueryOptions}from'../../../chunk-JBBGDTGD.js';import'../../../chunk-Z6HCXX2D.js';import'../../../chunk-3E4RUQ7M.js';import'../../../chunk-CWBPA5DT.js';import'../../../chunk-HYWGW2KG.js';import'../../../chunk-ZOBESNHF.js';import'../../../chunk-SWB5BEBJ.js';import'../../../chunk-PRS4VWQ6.js';import'../../../chunk-7FGO3WVP.js';import'../../../chunk-AZAGIEQM.js';import'../../../chunk-
|
|
1
|
+
export{a as getReceivedVestingSharesQueryOptions}from'../../../chunk-JBBGDTGD.js';import'../../../chunk-Z6HCXX2D.js';import'../../../chunk-3E4RUQ7M.js';import'../../../chunk-CWBPA5DT.js';import'../../../chunk-HYWGW2KG.js';import'../../../chunk-ZOBESNHF.js';import'../../../chunk-SWB5BEBJ.js';import'../../../chunk-PRS4VWQ6.js';import'../../../chunk-7FGO3WVP.js';import'../../../chunk-AZAGIEQM.js';import'../../../chunk-4OOAGHRD.js';import'../../../chunk-CNB64U7U.js';import'../../../chunk-PFVWZI3W.js';import'../../../chunk-SYDLFCXU.js';import'../../../chunk-M37RR3MH.js';import'../../../chunk-SPR2OKTO.js';import'../../../chunk-ZMMG2HSI.js';import'../../../chunk-QKTP4NPT.js';import'../../../chunk-SEACJS36.js';import'../../../chunk-573LJIGZ.js';import'../../../chunk-W3MCL2F4.js';import'../../../chunk-ASN6FTIA.js';import'../../../chunk-32QJ72HH.js';import'../../../chunk-OQA55EE6.js';import'../../../chunk-POHYQBLL.js';import'../../../chunk-OMSXAN23.js';import'../../../chunk-WTHEQ3M5.js';import'../../../chunk-JKLDB3J3.js';import'../../../chunk-JDGZ4DHM.js';import'../../../chunk-PSJ6RBU7.js';import'../../../chunk-L4LDM3J5.js';import'../../../chunk-XX32ZFT4.js';import'../../../chunk-CPEOHI6I.js';import'../../../chunk-R7SWYGIQ.js';import'../../../chunk-W6CLJQB7.js';import'../../../chunk-WE6EIHC6.js';import'../../../chunk-FJXZ5DK2.js';import'../../../chunk-SZZYFGT3.js';import'../../../chunk-RAWKN3XW.js';import'../../../chunk-PQSG5K4Y.js';import'../../../chunk-GLLSYDNK.js';import'../../../chunk-KT7GFFA7.js';import'../../../chunk-S364K442.js';import'../../../chunk-C32KFGFA.js';import'../../../chunk-G27OY2BI.js';import'../../../chunk-OS3FCYZY.js';//# sourceMappingURL=get-received-vesting-shares-query-options.js.map
|
|
2
2
|
//# sourceMappingURL=get-received-vesting-shares-query-options.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as getRecurrentTransfersQueryOptions}from'../../../chunk-P424T3CG.js';import'../../../chunk-
|
|
1
|
+
export{a as getRecurrentTransfersQueryOptions}from'../../../chunk-P424T3CG.js';import'../../../chunk-OQA55EE6.js';import'../../../chunk-PSJ6RBU7.js';import'../../../chunk-L4LDM3J5.js';import'../../../chunk-XX32ZFT4.js';import'../../../chunk-CPEOHI6I.js';import'../../../chunk-R7SWYGIQ.js';import'../../../chunk-W6CLJQB7.js';import'../../../chunk-WE6EIHC6.js';import'../../../chunk-FJXZ5DK2.js';import'../../../chunk-SZZYFGT3.js';import'../../../chunk-RAWKN3XW.js';import'../../../chunk-PQSG5K4Y.js';import'../../../chunk-GLLSYDNK.js';import'../../../chunk-KT7GFFA7.js';import'../../../chunk-S364K442.js';import'../../../chunk-C32KFGFA.js';import'../../../chunk-G27OY2BI.js';import'../../../chunk-OS3FCYZY.js';//# sourceMappingURL=get-recurrent-transfers-query-options.js.map
|
|
2
2
|
//# sourceMappingURL=get-recurrent-transfers-query-options.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as getSavingsWithdrawFromQueryOptions}from'../../../chunk-AN3Q4RG4.js';import'../../../chunk-
|
|
1
|
+
export{a as getSavingsWithdrawFromQueryOptions}from'../../../chunk-AN3Q4RG4.js';import'../../../chunk-OQA55EE6.js';import'../../../chunk-PSJ6RBU7.js';import'../../../chunk-L4LDM3J5.js';import'../../../chunk-XX32ZFT4.js';import'../../../chunk-CPEOHI6I.js';import'../../../chunk-R7SWYGIQ.js';import'../../../chunk-W6CLJQB7.js';import'../../../chunk-WE6EIHC6.js';import'../../../chunk-FJXZ5DK2.js';import'../../../chunk-SZZYFGT3.js';import'../../../chunk-RAWKN3XW.js';import'../../../chunk-PQSG5K4Y.js';import'../../../chunk-GLLSYDNK.js';import'../../../chunk-KT7GFFA7.js';import'../../../chunk-S364K442.js';import'../../../chunk-C32KFGFA.js';import'../../../chunk-G27OY2BI.js';import'../../../chunk-OS3FCYZY.js';//# sourceMappingURL=get-savings-withdraw-from-query-options.js.map
|
|
2
2
|
//# sourceMappingURL=get-savings-withdraw-from-query-options.js.map
|
package/dist/browser/modules/wallet/queries/get-vesting-delegation-expirations-query-options.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as getVestingDelegationExpirationsQueryOptions}from'../../../chunk-3LPCW3JS.js';import'../../../chunk-
|
|
1
|
+
export{a as getVestingDelegationExpirationsQueryOptions}from'../../../chunk-3LPCW3JS.js';import'../../../chunk-OQA55EE6.js';import'../../../chunk-PSJ6RBU7.js';import'../../../chunk-L4LDM3J5.js';import'../../../chunk-XX32ZFT4.js';import'../../../chunk-CPEOHI6I.js';import'../../../chunk-R7SWYGIQ.js';import'../../../chunk-W6CLJQB7.js';import'../../../chunk-WE6EIHC6.js';import'../../../chunk-FJXZ5DK2.js';import'../../../chunk-SZZYFGT3.js';import'../../../chunk-RAWKN3XW.js';import'../../../chunk-PQSG5K4Y.js';import'../../../chunk-GLLSYDNK.js';import'../../../chunk-KT7GFFA7.js';import'../../../chunk-S364K442.js';import'../../../chunk-C32KFGFA.js';import'../../../chunk-G27OY2BI.js';import'../../../chunk-OS3FCYZY.js';//# sourceMappingURL=get-vesting-delegation-expirations-query-options.js.map
|
|
2
2
|
//# sourceMappingURL=get-vesting-delegation-expirations-query-options.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as getVestingDelegationsQueryOptions}from'../../../chunk-SQ4FS5QO.js';import'../../../chunk-
|
|
1
|
+
export{a as getVestingDelegationsQueryOptions}from'../../../chunk-SQ4FS5QO.js';import'../../../chunk-OQA55EE6.js';import'../../../chunk-PSJ6RBU7.js';import'../../../chunk-L4LDM3J5.js';import'../../../chunk-XX32ZFT4.js';import'../../../chunk-CPEOHI6I.js';import'../../../chunk-R7SWYGIQ.js';import'../../../chunk-W6CLJQB7.js';import'../../../chunk-WE6EIHC6.js';import'../../../chunk-FJXZ5DK2.js';import'../../../chunk-SZZYFGT3.js';import'../../../chunk-RAWKN3XW.js';import'../../../chunk-PQSG5K4Y.js';import'../../../chunk-GLLSYDNK.js';import'../../../chunk-KT7GFFA7.js';import'../../../chunk-S364K442.js';import'../../../chunk-C32KFGFA.js';import'../../../chunk-G27OY2BI.js';import'../../../chunk-OS3FCYZY.js';//# sourceMappingURL=get-vesting-delegations-query-options.js.map
|
|
2
2
|
//# sourceMappingURL=get-vesting-delegations-query-options.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as getWithdrawRoutesQueryOptions}from'../../../chunk-N6CJRHOG.js';import'../../../chunk-
|
|
1
|
+
export{a as getWithdrawRoutesQueryOptions}from'../../../chunk-N6CJRHOG.js';import'../../../chunk-OQA55EE6.js';import'../../../chunk-PSJ6RBU7.js';import'../../../chunk-L4LDM3J5.js';import'../../../chunk-XX32ZFT4.js';import'../../../chunk-CPEOHI6I.js';import'../../../chunk-R7SWYGIQ.js';import'../../../chunk-W6CLJQB7.js';import'../../../chunk-WE6EIHC6.js';import'../../../chunk-FJXZ5DK2.js';import'../../../chunk-SZZYFGT3.js';import'../../../chunk-RAWKN3XW.js';import'../../../chunk-PQSG5K4Y.js';import'../../../chunk-GLLSYDNK.js';import'../../../chunk-KT7GFFA7.js';import'../../../chunk-S364K442.js';import'../../../chunk-C32KFGFA.js';import'../../../chunk-G27OY2BI.js';import'../../../chunk-OS3FCYZY.js';//# sourceMappingURL=get-withdraw-routes-query-options.js.map
|
|
2
2
|
//# sourceMappingURL=get-withdraw-routes-query-options.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import'../../../chunk-ZO3UVKBD.js';export{a as getSavingsWithdrawFromQueryOptions}from'../../../chunk-AN3Q4RG4.js';export{a as getVestingDelegationExpirationsQueryOptions}from'../../../chunk-3LPCW3JS.js';export{a as getVestingDelegationsQueryOptions}from'../../../chunk-SQ4FS5QO.js';export{a as getWithdrawRoutesQueryOptions}from'../../../chunk-N6CJRHOG.js';export{a as getHivePowerDelegatesInfiniteQueryOptions}from'../../../chunk-RDKIPGB6.js';export{a as getHivePowerDelegatingsQueryOptions}from'../../../chunk-AA4E7UVF.js';export{a as getIncomingRcQueryOptions}from'../../../chunk-5IGYKY4N.js';export{a as getOpenOrdersQueryOptions}from'../../../chunk-YM73GYEL.js';export{a as getOutgoingRcDelegationsInfiniteQueryOptions}from'../../../chunk-VKHEDCJP.js';export{a as getReceivedVestingSharesQueryOptions}from'../../../chunk-JBBGDTGD.js';import'../../../chunk-Z6HCXX2D.js';export{a as getRecurrentTransfersQueryOptions}from'../../../chunk-P424T3CG.js';export{a as getHbdAssetTransactionsQueryOptions}from'../../../chunk-
|
|
1
|
+
import'../../../chunk-ZO3UVKBD.js';export{a as getSavingsWithdrawFromQueryOptions}from'../../../chunk-AN3Q4RG4.js';export{a as getVestingDelegationExpirationsQueryOptions}from'../../../chunk-3LPCW3JS.js';export{a as getVestingDelegationsQueryOptions}from'../../../chunk-SQ4FS5QO.js';export{a as getWithdrawRoutesQueryOptions}from'../../../chunk-N6CJRHOG.js';export{a as getHivePowerDelegatesInfiniteQueryOptions}from'../../../chunk-RDKIPGB6.js';export{a as getHivePowerDelegatingsQueryOptions}from'../../../chunk-AA4E7UVF.js';export{a as getIncomingRcQueryOptions}from'../../../chunk-5IGYKY4N.js';export{a as getOpenOrdersQueryOptions}from'../../../chunk-YM73GYEL.js';export{a as getOutgoingRcDelegationsInfiniteQueryOptions}from'../../../chunk-VKHEDCJP.js';export{a as getReceivedVestingSharesQueryOptions}from'../../../chunk-JBBGDTGD.js';import'../../../chunk-Z6HCXX2D.js';export{a as getRecurrentTransfersQueryOptions}from'../../../chunk-P424T3CG.js';export{a as getHbdAssetTransactionsQueryOptions}from'../../../chunk-XQLIW5VC.js';export{a as getHiveAssetMetricQueryOptions}from'../../../chunk-HHUZSWSZ.js';export{a as getHiveAssetWithdrawalRoutesQueryOptions}from'../../../chunk-M6UCPJG3.js';export{a as getHivePowerAssetTransactionsQueryOptions}from'../../../chunk-2KEJTQE4.js';export{b as collectRequestedOperations,e as getHiveAssetTransactionsQueryOptions,c as getNextAccountHistoryPageParam,d as resolveAccountHistoryLimit,a as resolveHiveOperationFilters}from'../../../chunk-WCIDGHGX.js';export{a as getAccountDelegationsQueryOptions}from'../../../chunk-3E4RUQ7M.js';export{a as getAccountWalletAssetInfoQueryOptions}from'../../../chunk-NF4XUXML.js';export{a as getPortfolioQueryOptions}from'../../../chunk-D4CQVW6R.js';export{a as getHbdAssetGeneralInfoQueryOptions}from'../../../chunk-6IABT7MJ.js';export{a as getHivePowerAssetGeneralInfoQueryOptions}from'../../../chunk-ASSGVHJB.js';export{a as getCollateralizedConversionRequestsQueryOptions}from'../../../chunk-ILOT5CTD.js';export{a as getConversionRequestsQueryOptions}from'../../../chunk-KEHURHQA.js';import'../../../chunk-CBY2JRNI.js';import'../../../chunk-WGKD2O73.js';import'../../../chunk-Z3FAL7TO.js';import'../../../chunk-HWUXXAKE.js';import'../../../chunk-P64NOTUC.js';import'../../../chunk-X37M6C2V.js';import'../../../chunk-Q3P4P3I6.js';import'../../../chunk-KEGMSUZ4.js';import'../../../chunk-2ADXSSFM.js';import'../../../chunk-XRZWBGZ3.js';import'../../../chunk-NCZCTB7U.js';import'../../../chunk-APTNRF3Y.js';import'../../../chunk-PA5KWDNS.js';import'../../../chunk-JW2FMXBH.js';import'../../../chunk-AEYCCH23.js';import'../../../chunk-H6P3JKST.js';import'../../../chunk-CKHL2O7X.js';export{a as getHiveAssetGeneralInfoQueryOptions}from'../../../chunk-6A7YD57H.js';import'../../../chunk-JLMQHYLJ.js';import'../../../chunk-CTPNNB6P.js';import'../../../chunk-AGPT4RZA.js';import'../../../chunk-NW4RHPE6.js';import'../../../chunk-ZAAH7CL5.js';import'../../../chunk-RF65JQ4N.js';import'../../../chunk-QTSBWQN3.js';import'../../../chunk-M2CZN7EZ.js';import'../../../chunk-YKMW43PR.js';import'../../../chunk-KYJBT2B7.js';import'../../../chunk-555IILLE.js';import'../../../chunk-FQC3GOL5.js';import'../../../chunk-XQ3JSYP3.js';import'../../../chunk-CA3ZNFIJ.js';import'../../../chunk-DRBJHZYB.js';import'../../../chunk-ZPA2E7DJ.js';import'../../../chunk-TMD54KD6.js';import'../../../chunk-TN6M52BG.js';import'../../../chunk-5IANTVAI.js';import'../../../chunk-I77ZLLQJ.js';import'../../../chunk-K4CHL32C.js';import'../../../chunk-L4W44CEV.js';import'../../../chunk-2R6DHQ5W.js';import'../../../chunk-6K72STCP.js';import'../../../chunk-M3K5DTGR.js';import'../../../chunk-4GE3TZP3.js';import'../../../chunk-4C57MZP6.js';import'../../../chunk-4WKE2XGF.js';import'../../../chunk-O6NAVQM3.js';import'../../../chunk-YSTL3FQJ.js';import'../../../chunk-UO5T3I3Y.js';import'../../../chunk-RKQJHAN2.js';import'../../../chunk-ZCD2AJ53.js';import'../../../chunk-HJD6VPI2.js';import'../../../chunk-3PKR62CO.js';import'../../../chunk-PYJEM3EP.js';import'../../../chunk-KNLHKJKS.js';import'../../../chunk-VZ3HC27T.js';import'../../../chunk-DMZUW7I3.js';import'../../../chunk-K6KG27QU.js';import'../../../chunk-MXZUXS2T.js';import'../../../chunk-DZJPBPDM.js';import'../../../chunk-Q6RU3KGW.js';import'../../../chunk-4P43NNO2.js';import'../../../chunk-QXZV7SQZ.js';import'../../../chunk-43XPOPPI.js';import'../../../chunk-MG2CUUIU.js';import'../../../chunk-RRM3GFML.js';import'../../../chunk-YCSYCWOU.js';import'../../../chunk-64CXOUJ6.js';import'../../../chunk-FKVFBS2Q.js';import'../../../chunk-MW4KYNU3.js';import'../../../chunk-D2X5EN5N.js';import'../../../chunk-WLHXAS5P.js';import'../../../chunk-7FJQ2VAW.js';import'../../../chunk-E4GC3K2H.js';import'../../../chunk-CVCK6FCN.js';import'../../../chunk-RW7OFBMA.js';import'../../../chunk-S23YZMGE.js';import'../../../chunk-ZHGJLIIS.js';import'../../../chunk-WIK4TMZU.js';import'../../../chunk-IVMIGXLH.js';import'../../../chunk-2TSWUTIX.js';import'../../../chunk-COGC4HII.js';import'../../../chunk-LYN5S3FE.js';import'../../../chunk-V4QGWE6K.js';import'../../../chunk-CNOCBE3I.js';import'../../../chunk-NSTN6NK7.js';import'../../../chunk-AWG24KVR.js';import'../../../chunk-ZDEEGACQ.js';import'../../../chunk-6KQV2AC6.js';import'../../../chunk-NNZ2CJJ6.js';import'../../../chunk-JEYSB5GX.js';import'../../../chunk-J5NBSH3V.js';import'../../../chunk-AZ7VFOZ3.js';import'../../../chunk-2TMZU2SW.js';import'../../../chunk-L5SAOKO6.js';import'../../../chunk-VCJWMCKC.js';import'../../../chunk-PL3T74ID.js';import'../../../chunk-GC2UHHSZ.js';import'../../../chunk-S4G2LVET.js';import'../../../chunk-37K2OPGL.js';import'../../../chunk-XVW7ZC72.js';import'../../../chunk-VCYNR26T.js';import'../../../chunk-ZVICL7AK.js';import'../../../chunk-FJ6MJL6G.js';import'../../../chunk-N6W7RZ3U.js';import'../../../chunk-NT4ZVSWI.js';import'../../../chunk-7LYG3TN4.js';import'../../../chunk-AIDCGQFG.js';import'../../../chunk-UAUQ6LK3.js';import'../../../chunk-AZ7QNEWY.js';import'../../../chunk-BWMECQQM.js';import'../../../chunk-HU5GXRZC.js';import'../../../chunk-YIEREOQK.js';import'../../../chunk-VLMKNIB4.js';import'../../../chunk-KGOV76YL.js';import'../../../chunk-LBWFOS7R.js';import'../../../chunk-HOJJOXGC.js';import'../../../chunk-QMHELPJV.js';import'../../../chunk-GBKMDLAF.js';import'../../../chunk-4V6TQTR2.js';import'../../../chunk-EG6SMIMF.js';import'../../../chunk-7Z22E6GD.js';import'../../../chunk-G3Q4YBD4.js';import'../../../chunk-DD2BPYHC.js';import'../../../chunk-OFT7Z56U.js';import'../../../chunk-P32N774D.js';import'../../../chunk-4QUTBTN2.js';import'../../../chunk-T6IKUQBC.js';import'../../../chunk-U2UL57EH.js';import'../../../chunk-TNGNZSGS.js';import'../../../chunk-NXFYJWG2.js';import'../../../chunk-ZMYRAWYV.js';import'../../../chunk-5PSFBLOC.js';import'../../../chunk-AYEL5IFW.js';import'../../../chunk-PTXUJVAH.js';import'../../../chunk-HNOOL6VU.js';import'../../../chunk-52D3HQDY.js';import'../../../chunk-KBQ6MAP7.js';import'../../../chunk-UIOXS7FU.js';import'../../../chunk-A5AOSB6C.js';import'../../../chunk-HBZ2NQ5P.js';import'../../../chunk-ZSMDZIBE.js';import'../../../chunk-S4YYOQEV.js';import'../../../chunk-RBMIME3V.js';import'../../../chunk-K3X52YJI.js';import'../../../chunk-BQQBJVQK.js';import'../../../chunk-UKK6NLAT.js';import'../../../chunk-QYY3VHLJ.js';import'../../../chunk-OBSTAXZB.js';import'../../../chunk-EOSE4FQA.js';import'../../../chunk-4COFIDSX.js';import'../../../chunk-RZVMZQO7.js';import'../../../chunk-AEIA5MPL.js';import'../../../chunk-K3LA2I7M.js';import'../../../chunk-OLWGQU5G.js';import'../../../chunk-GNB3PCKJ.js';import'../../../chunk-5E5OZMDZ.js';import'../../../chunk-F3FLSSBO.js';import'../../../chunk-CWBPA5DT.js';import'../../../chunk-HYWGW2KG.js';import'../../../chunk-ZOBESNHF.js';import'../../../chunk-SWB5BEBJ.js';import'../../../chunk-PRS4VWQ6.js';import'../../../chunk-7FGO3WVP.js';import'../../../chunk-AZAGIEQM.js';import'../../../chunk-4OOAGHRD.js';import'../../../chunk-CNB64U7U.js';import'../../../chunk-PFVWZI3W.js';import'../../../chunk-SYDLFCXU.js';import'../../../chunk-M37RR3MH.js';import'../../../chunk-SPR2OKTO.js';import'../../../chunk-ZMMG2HSI.js';import'../../../chunk-QKTP4NPT.js';import'../../../chunk-SEACJS36.js';import'../../../chunk-573LJIGZ.js';import'../../../chunk-W3MCL2F4.js';import'../../../chunk-ASN6FTIA.js';import'../../../chunk-32QJ72HH.js';import'../../../chunk-OQA55EE6.js';import'../../../chunk-POHYQBLL.js';import'../../../chunk-OMSXAN23.js';import'../../../chunk-WTHEQ3M5.js';import'../../../chunk-JKLDB3J3.js';import'../../../chunk-JDGZ4DHM.js';import'../../../chunk-PSJ6RBU7.js';import'../../../chunk-L4LDM3J5.js';import'../../../chunk-XX32ZFT4.js';import'../../../chunk-CPEOHI6I.js';import'../../../chunk-R7SWYGIQ.js';import'../../../chunk-W6CLJQB7.js';import'../../../chunk-WE6EIHC6.js';import'../../../chunk-FJXZ5DK2.js';import'../../../chunk-SZZYFGT3.js';import'../../../chunk-RAWKN3XW.js';import'../../../chunk-PQSG5K4Y.js';import'../../../chunk-GLLSYDNK.js';import'../../../chunk-KT7GFFA7.js';import'../../../chunk-S364K442.js';import'../../../chunk-C32KFGFA.js';import'../../../chunk-G27OY2BI.js';import'../../../chunk-OS3FCYZY.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import'../../chunk-DAYFD3PK.js';import'../../chunk-6GIFRNG7.js';export{a as useWitnessProxy}from'../../chunk-
|
|
1
|
+
import'../../chunk-DAYFD3PK.js';import'../../chunk-6GIFRNG7.js';export{a as useWitnessProxy}from'../../chunk-S3LJG457.js';export{a as useWitnessVote}from'../../chunk-5X6R7EPZ.js';import'../../chunk-WJPIEG7L.js';export{c as getWitnessVoterCountQueryOptions,b as getWitnessVotersPageQueryOptions,a as getWitnessesInfiniteQueryOptions}from'../../chunk-WEC4NL7S.js';import'../../chunk-PY4WHRTI.js';import'../../chunk-PALSESGC.js';import'../../chunk-BQQBJVQK.js';import'../../chunk-UKK6NLAT.js';import'../../chunk-QYY3VHLJ.js';import'../../chunk-OBSTAXZB.js';import'../../chunk-EOSE4FQA.js';import'../../chunk-4COFIDSX.js';import'../../chunk-RZVMZQO7.js';import'../../chunk-AEIA5MPL.js';import'../../chunk-K3LA2I7M.js';import'../../chunk-CWBPA5DT.js';import'../../chunk-HYWGW2KG.js';import'../../chunk-ZOBESNHF.js';import'../../chunk-SWB5BEBJ.js';import'../../chunk-PRS4VWQ6.js';import'../../chunk-7FGO3WVP.js';import'../../chunk-AZAGIEQM.js';import'../../chunk-4OOAGHRD.js';import'../../chunk-CNB64U7U.js';import'../../chunk-PFVWZI3W.js';import'../../chunk-SYDLFCXU.js';import'../../chunk-M37RR3MH.js';import'../../chunk-SPR2OKTO.js';import'../../chunk-ZMMG2HSI.js';import'../../chunk-QKTP4NPT.js';import'../../chunk-SEACJS36.js';import'../../chunk-573LJIGZ.js';import'../../chunk-W3MCL2F4.js';import'../../chunk-ASN6FTIA.js';import'../../chunk-32QJ72HH.js';import'../../chunk-OQA55EE6.js';import'../../chunk-POHYQBLL.js';import'../../chunk-OMSXAN23.js';import'../../chunk-WTHEQ3M5.js';import'../../chunk-JKLDB3J3.js';import'../../chunk-JDGZ4DHM.js';import'../../chunk-PSJ6RBU7.js';import'../../chunk-L4LDM3J5.js';import'../../chunk-XX32ZFT4.js';import'../../chunk-CPEOHI6I.js';import'../../chunk-R7SWYGIQ.js';import'../../chunk-W6CLJQB7.js';import'../../chunk-WE6EIHC6.js';import'../../chunk-FJXZ5DK2.js';import'../../chunk-SZZYFGT3.js';import'../../chunk-RAWKN3XW.js';import'../../chunk-PQSG5K4Y.js';import'../../chunk-GLLSYDNK.js';import'../../chunk-KT7GFFA7.js';import'../../chunk-S364K442.js';import'../../chunk-C32KFGFA.js';import'../../chunk-G27OY2BI.js';import'../../chunk-OS3FCYZY.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import'../../../chunk-6GIFRNG7.js';export{a as useWitnessProxy}from'../../../chunk-
|
|
1
|
+
import'../../../chunk-6GIFRNG7.js';export{a as useWitnessProxy}from'../../../chunk-S3LJG457.js';export{a as useWitnessVote}from'../../../chunk-5X6R7EPZ.js';import'../../../chunk-BQQBJVQK.js';import'../../../chunk-UKK6NLAT.js';import'../../../chunk-QYY3VHLJ.js';import'../../../chunk-OBSTAXZB.js';import'../../../chunk-EOSE4FQA.js';import'../../../chunk-4COFIDSX.js';import'../../../chunk-RZVMZQO7.js';import'../../../chunk-AEIA5MPL.js';import'../../../chunk-K3LA2I7M.js';import'../../../chunk-CWBPA5DT.js';import'../../../chunk-HYWGW2KG.js';import'../../../chunk-ZOBESNHF.js';import'../../../chunk-SWB5BEBJ.js';import'../../../chunk-PRS4VWQ6.js';import'../../../chunk-7FGO3WVP.js';import'../../../chunk-AZAGIEQM.js';import'../../../chunk-4OOAGHRD.js';import'../../../chunk-CNB64U7U.js';import'../../../chunk-PFVWZI3W.js';import'../../../chunk-SYDLFCXU.js';import'../../../chunk-M37RR3MH.js';import'../../../chunk-SPR2OKTO.js';import'../../../chunk-ZMMG2HSI.js';import'../../../chunk-QKTP4NPT.js';import'../../../chunk-SEACJS36.js';import'../../../chunk-573LJIGZ.js';import'../../../chunk-W3MCL2F4.js';import'../../../chunk-ASN6FTIA.js';import'../../../chunk-32QJ72HH.js';import'../../../chunk-OQA55EE6.js';import'../../../chunk-POHYQBLL.js';import'../../../chunk-OMSXAN23.js';import'../../../chunk-WTHEQ3M5.js';import'../../../chunk-JKLDB3J3.js';import'../../../chunk-JDGZ4DHM.js';import'../../../chunk-PSJ6RBU7.js';import'../../../chunk-L4LDM3J5.js';import'../../../chunk-XX32ZFT4.js';import'../../../chunk-CPEOHI6I.js';import'../../../chunk-R7SWYGIQ.js';import'../../../chunk-W6CLJQB7.js';import'../../../chunk-WE6EIHC6.js';import'../../../chunk-FJXZ5DK2.js';import'../../../chunk-SZZYFGT3.js';import'../../../chunk-RAWKN3XW.js';import'../../../chunk-PQSG5K4Y.js';import'../../../chunk-GLLSYDNK.js';import'../../../chunk-KT7GFFA7.js';import'../../../chunk-S364K442.js';import'../../../chunk-C32KFGFA.js';import'../../../chunk-G27OY2BI.js';import'../../../chunk-OS3FCYZY.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as useWitnessProxy}from'../../../chunk-
|
|
1
|
+
export{a as useWitnessProxy}from'../../../chunk-S3LJG457.js';import'../../../chunk-BQQBJVQK.js';import'../../../chunk-UKK6NLAT.js';import'../../../chunk-QYY3VHLJ.js';import'../../../chunk-OBSTAXZB.js';import'../../../chunk-EOSE4FQA.js';import'../../../chunk-4COFIDSX.js';import'../../../chunk-RZVMZQO7.js';import'../../../chunk-AEIA5MPL.js';import'../../../chunk-K3LA2I7M.js';import'../../../chunk-CWBPA5DT.js';import'../../../chunk-HYWGW2KG.js';import'../../../chunk-ZOBESNHF.js';import'../../../chunk-SWB5BEBJ.js';import'../../../chunk-PRS4VWQ6.js';import'../../../chunk-7FGO3WVP.js';import'../../../chunk-AZAGIEQM.js';import'../../../chunk-4OOAGHRD.js';import'../../../chunk-CNB64U7U.js';import'../../../chunk-PFVWZI3W.js';import'../../../chunk-SYDLFCXU.js';import'../../../chunk-M37RR3MH.js';import'../../../chunk-SPR2OKTO.js';import'../../../chunk-ZMMG2HSI.js';import'../../../chunk-QKTP4NPT.js';import'../../../chunk-SEACJS36.js';import'../../../chunk-573LJIGZ.js';import'../../../chunk-W3MCL2F4.js';import'../../../chunk-ASN6FTIA.js';import'../../../chunk-32QJ72HH.js';import'../../../chunk-OQA55EE6.js';import'../../../chunk-POHYQBLL.js';import'../../../chunk-OMSXAN23.js';import'../../../chunk-WTHEQ3M5.js';import'../../../chunk-JKLDB3J3.js';import'../../../chunk-JDGZ4DHM.js';import'../../../chunk-PSJ6RBU7.js';import'../../../chunk-L4LDM3J5.js';import'../../../chunk-XX32ZFT4.js';import'../../../chunk-CPEOHI6I.js';import'../../../chunk-R7SWYGIQ.js';import'../../../chunk-W6CLJQB7.js';import'../../../chunk-WE6EIHC6.js';import'../../../chunk-FJXZ5DK2.js';import'../../../chunk-SZZYFGT3.js';import'../../../chunk-RAWKN3XW.js';import'../../../chunk-PQSG5K4Y.js';import'../../../chunk-GLLSYDNK.js';import'../../../chunk-KT7GFFA7.js';import'../../../chunk-S364K442.js';import'../../../chunk-C32KFGFA.js';import'../../../chunk-G27OY2BI.js';import'../../../chunk-OS3FCYZY.js';//# sourceMappingURL=use-witness-proxy.js.map
|
|
2
2
|
//# sourceMappingURL=use-witness-proxy.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as useWitnessVote}from'../../../chunk-
|
|
1
|
+
export{a as useWitnessVote}from'../../../chunk-5X6R7EPZ.js';import'../../../chunk-BQQBJVQK.js';import'../../../chunk-UKK6NLAT.js';import'../../../chunk-QYY3VHLJ.js';import'../../../chunk-OBSTAXZB.js';import'../../../chunk-EOSE4FQA.js';import'../../../chunk-4COFIDSX.js';import'../../../chunk-RZVMZQO7.js';import'../../../chunk-AEIA5MPL.js';import'../../../chunk-K3LA2I7M.js';import'../../../chunk-CWBPA5DT.js';import'../../../chunk-HYWGW2KG.js';import'../../../chunk-ZOBESNHF.js';import'../../../chunk-SWB5BEBJ.js';import'../../../chunk-PRS4VWQ6.js';import'../../../chunk-7FGO3WVP.js';import'../../../chunk-AZAGIEQM.js';import'../../../chunk-4OOAGHRD.js';import'../../../chunk-CNB64U7U.js';import'../../../chunk-PFVWZI3W.js';import'../../../chunk-SYDLFCXU.js';import'../../../chunk-M37RR3MH.js';import'../../../chunk-SPR2OKTO.js';import'../../../chunk-ZMMG2HSI.js';import'../../../chunk-QKTP4NPT.js';import'../../../chunk-SEACJS36.js';import'../../../chunk-573LJIGZ.js';import'../../../chunk-W3MCL2F4.js';import'../../../chunk-ASN6FTIA.js';import'../../../chunk-32QJ72HH.js';import'../../../chunk-OQA55EE6.js';import'../../../chunk-POHYQBLL.js';import'../../../chunk-OMSXAN23.js';import'../../../chunk-WTHEQ3M5.js';import'../../../chunk-JKLDB3J3.js';import'../../../chunk-JDGZ4DHM.js';import'../../../chunk-PSJ6RBU7.js';import'../../../chunk-L4LDM3J5.js';import'../../../chunk-XX32ZFT4.js';import'../../../chunk-CPEOHI6I.js';import'../../../chunk-R7SWYGIQ.js';import'../../../chunk-W6CLJQB7.js';import'../../../chunk-WE6EIHC6.js';import'../../../chunk-FJXZ5DK2.js';import'../../../chunk-SZZYFGT3.js';import'../../../chunk-RAWKN3XW.js';import'../../../chunk-PQSG5K4Y.js';import'../../../chunk-GLLSYDNK.js';import'../../../chunk-KT7GFFA7.js';import'../../../chunk-S364K442.js';import'../../../chunk-C32KFGFA.js';import'../../../chunk-G27OY2BI.js';import'../../../chunk-OS3FCYZY.js';//# sourceMappingURL=use-witness-vote.js.map
|
|
2
2
|
//# sourceMappingURL=use-witness-vote.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{c as getWitnessVoterCountQueryOptions,b as getWitnessVotersPageQueryOptions,a as getWitnessesInfiniteQueryOptions}from'../../../chunk-WEC4NL7S.js';import'../../../chunk-CWBPA5DT.js';import'../../../chunk-HYWGW2KG.js';import'../../../chunk-ZOBESNHF.js';import'../../../chunk-SWB5BEBJ.js';import'../../../chunk-PRS4VWQ6.js';import'../../../chunk-7FGO3WVP.js';import'../../../chunk-AZAGIEQM.js';import'../../../chunk-
|
|
1
|
+
export{c as getWitnessVoterCountQueryOptions,b as getWitnessVotersPageQueryOptions,a as getWitnessesInfiniteQueryOptions}from'../../../chunk-WEC4NL7S.js';import'../../../chunk-CWBPA5DT.js';import'../../../chunk-HYWGW2KG.js';import'../../../chunk-ZOBESNHF.js';import'../../../chunk-SWB5BEBJ.js';import'../../../chunk-PRS4VWQ6.js';import'../../../chunk-7FGO3WVP.js';import'../../../chunk-AZAGIEQM.js';import'../../../chunk-4OOAGHRD.js';import'../../../chunk-CNB64U7U.js';import'../../../chunk-PFVWZI3W.js';import'../../../chunk-SYDLFCXU.js';import'../../../chunk-M37RR3MH.js';import'../../../chunk-SPR2OKTO.js';import'../../../chunk-ZMMG2HSI.js';import'../../../chunk-QKTP4NPT.js';import'../../../chunk-SEACJS36.js';import'../../../chunk-573LJIGZ.js';import'../../../chunk-W3MCL2F4.js';import'../../../chunk-ASN6FTIA.js';import'../../../chunk-32QJ72HH.js';import'../../../chunk-OQA55EE6.js';import'../../../chunk-POHYQBLL.js';import'../../../chunk-OMSXAN23.js';import'../../../chunk-WTHEQ3M5.js';import'../../../chunk-JKLDB3J3.js';import'../../../chunk-JDGZ4DHM.js';import'../../../chunk-PSJ6RBU7.js';import'../../../chunk-L4LDM3J5.js';import'../../../chunk-XX32ZFT4.js';import'../../../chunk-CPEOHI6I.js';import'../../../chunk-R7SWYGIQ.js';import'../../../chunk-W6CLJQB7.js';import'../../../chunk-WE6EIHC6.js';import'../../../chunk-FJXZ5DK2.js';import'../../../chunk-SZZYFGT3.js';import'../../../chunk-RAWKN3XW.js';import'../../../chunk-PQSG5K4Y.js';import'../../../chunk-GLLSYDNK.js';import'../../../chunk-KT7GFFA7.js';import'../../../chunk-S364K442.js';import'../../../chunk-C32KFGFA.js';import'../../../chunk-G27OY2BI.js';import'../../../chunk-OS3FCYZY.js';//# sourceMappingURL=get-witnesses-query-options.js.map
|
|
2
2
|
//# sourceMappingURL=get-witnesses-query-options.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import'../../../chunk-WJPIEG7L.js';export{c as getWitnessVoterCountQueryOptions,b as getWitnessVotersPageQueryOptions,a as getWitnessesInfiniteQueryOptions}from'../../../chunk-WEC4NL7S.js';import'../../../chunk-CWBPA5DT.js';import'../../../chunk-HYWGW2KG.js';import'../../../chunk-ZOBESNHF.js';import'../../../chunk-SWB5BEBJ.js';import'../../../chunk-PRS4VWQ6.js';import'../../../chunk-7FGO3WVP.js';import'../../../chunk-AZAGIEQM.js';import'../../../chunk-
|
|
1
|
+
import'../../../chunk-WJPIEG7L.js';export{c as getWitnessVoterCountQueryOptions,b as getWitnessVotersPageQueryOptions,a as getWitnessesInfiniteQueryOptions}from'../../../chunk-WEC4NL7S.js';import'../../../chunk-CWBPA5DT.js';import'../../../chunk-HYWGW2KG.js';import'../../../chunk-ZOBESNHF.js';import'../../../chunk-SWB5BEBJ.js';import'../../../chunk-PRS4VWQ6.js';import'../../../chunk-7FGO3WVP.js';import'../../../chunk-AZAGIEQM.js';import'../../../chunk-4OOAGHRD.js';import'../../../chunk-CNB64U7U.js';import'../../../chunk-PFVWZI3W.js';import'../../../chunk-SYDLFCXU.js';import'../../../chunk-M37RR3MH.js';import'../../../chunk-SPR2OKTO.js';import'../../../chunk-ZMMG2HSI.js';import'../../../chunk-QKTP4NPT.js';import'../../../chunk-SEACJS36.js';import'../../../chunk-573LJIGZ.js';import'../../../chunk-W3MCL2F4.js';import'../../../chunk-ASN6FTIA.js';import'../../../chunk-32QJ72HH.js';import'../../../chunk-OQA55EE6.js';import'../../../chunk-POHYQBLL.js';import'../../../chunk-OMSXAN23.js';import'../../../chunk-WTHEQ3M5.js';import'../../../chunk-JKLDB3J3.js';import'../../../chunk-JDGZ4DHM.js';import'../../../chunk-PSJ6RBU7.js';import'../../../chunk-L4LDM3J5.js';import'../../../chunk-XX32ZFT4.js';import'../../../chunk-CPEOHI6I.js';import'../../../chunk-R7SWYGIQ.js';import'../../../chunk-W6CLJQB7.js';import'../../../chunk-WE6EIHC6.js';import'../../../chunk-FJXZ5DK2.js';import'../../../chunk-SZZYFGT3.js';import'../../../chunk-RAWKN3XW.js';import'../../../chunk-PQSG5K4Y.js';import'../../../chunk-GLLSYDNK.js';import'../../../chunk-KT7GFFA7.js';import'../../../chunk-S364K442.js';import'../../../chunk-C32KFGFA.js';import'../../../chunk-G27OY2BI.js';import'../../../chunk-OS3FCYZY.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/node/hive.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
'use strict';var utils_js=require('@noble/hashes/utils.js'),legacy_js=require('@noble/hashes/legacy.js'),Je=require('bs58'),secp256k1_js=require('@noble/curves/secp256k1.js'),sha2_js=require('@noble/hashes/sha2.js'),aes_js=require('@noble/ciphers/aes.js');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Je__default=/*#__PURE__*/_interopDefault(Je);var Ft=Object.defineProperty;var Ct=(n,e)=>{for(var t in e)Ft(n,t,{get:e[t],enumerable:true});};var ue=new ArrayBuffer(0),le=null,fe=null;function zt(){return le||(typeof TextEncoder<"u"?le=new TextEncoder:le={encode(n){let e=[];for(let t=0;t<n.length;t++){let r=n.charCodeAt(t);if(r<128)e.push(r);else if(r<2048)e.push(192|r>>6,128|r&63);else if(r>=55296&&r<=56319&&t+1<n.length){let i=n.charCodeAt(++t);r=65536+((r&1023)<<10)+(i&1023),e.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|r&63);}else e.push(224|r>>12,128|r>>6&63,128|r&63);}return new Uint8Array(e)}}),le}function He(){return fe||(typeof TextDecoder<"u"?fe=new TextDecoder:fe={decode(n){let e=n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength),t="";for(let r=0;r<e.length;){let i=e[r],o;i<128?(o=i,r+=1):(i&224)===192?(o=(i&31)<<6|e[r+1]&63,r+=2):(i&240)===224?(o=(i&15)<<12|(e[r+1]&63)<<6|e[r+2]&63,r+=3):(o=(i&7)<<18|(e[r+1]&63)<<12|(e[r+2]&63)<<6|e[r+3]&63,r+=4),o<=65535?t+=String.fromCharCode(o):(o-=65536,t+=String.fromCharCode(55296+(o>>10),56320+(o&1023)));}return t}}),fe}var x=class n{static LITTLE_ENDIAN=true;static BIG_ENDIAN=false;static DEFAULT_CAPACITY=16;static DEFAULT_ENDIAN=n.BIG_ENDIAN;buffer;view;offset;markedOffset;limit;littleEndian;constructor(e=n.DEFAULT_CAPACITY,t=n.DEFAULT_ENDIAN){this.buffer=e===0?ue:new ArrayBuffer(e),this.view=e===0?new DataView(ue):new DataView(this.buffer),this.offset=0,this.markedOffset=-1,this.limit=e,this.littleEndian=t;}static allocate(e,t){return new n(e,t)}static concat(e,t){let r=0;for(let u=0;u<e.length;++u){let c=e[u];if(c instanceof n)r+=c.limit-c.offset;else if(c instanceof Uint8Array)r+=c.length;else if(c instanceof ArrayBuffer)r+=c.byteLength;else if(Array.isArray(c))r+=c.length;else throw TypeError("Illegal buffer")}if(r===0)return new n(0,t);let i=new n(r,t),o=new Uint8Array(i.buffer),a=0;for(let u=0;u<e.length;++u){let c=e[u];c instanceof n?(o.set(new Uint8Array(c.buffer,c.offset,c.limit-c.offset),a),a+=c.limit-c.offset):c instanceof Uint8Array?(o.set(c,a),a+=c.length):c instanceof ArrayBuffer?(o.set(new Uint8Array(c),a),a+=c.byteLength):(o.set(c,a),a+=c.length);}return i.limit=i.offset=a,i.offset=0,i}static wrap(e,t){if(e instanceof n){let i=e.clone();return i.markedOffset=-1,i}let r;if(e instanceof Uint8Array)r=new n(0,t),e.length>0&&(r.buffer=e.buffer,r.offset=e.byteOffset,r.limit=e.byteOffset+e.byteLength,r.view=new DataView(e.buffer));else if(e instanceof ArrayBuffer)r=new n(0,t),e.byteLength>0&&(r.buffer=e,r.offset=0,r.limit=e.byteLength,r.view=e.byteLength>0?new DataView(e):new DataView(ue));else if(Array.isArray(e))r=new n(e.length,t),r.limit=e.length,new Uint8Array(r.buffer).set(e);else throw TypeError("Illegal buffer");return r}writeBytes(e,t){return this.append(e,t)}writeInt8(e,t){let r=typeof t>"u";return r?t=this.offset:t=t,t+1>this.buffer.byteLength&&this.resize(t+1),this.view.setInt8(t,e),r&&(this.offset+=1),this}writeByte(e,t){return this.writeInt8(e,t)}writeUint8(e,t){let r=typeof t>"u";return r?t=this.offset:t=t,t+1>this.buffer.byteLength&&this.resize(t+1),this.view.setUint8(t,e),r&&(this.offset+=1),this}writeUInt8(e,t){return this.writeUint8(e,t)}readUint8(e){let t=typeof e>"u";t?e=this.offset:e=e;let r=this.view.getUint8(e);return t&&(this.offset+=1),r}readUInt8(e){return this.readUint8(e)}writeInt16(e,t){let r=typeof t>"u";return r?t=this.offset:t=t,t+2>this.buffer.byteLength&&this.resize(t+2),this.view.setInt16(t,e,this.littleEndian),r&&(this.offset+=2),this}writeShort(e,t){return this.writeInt16(e,t)}writeUint16(e,t){let r=typeof t>"u";return r?t=this.offset:t=t,t+2>this.buffer.byteLength&&this.resize(t+2),this.view.setUint16(t,e,this.littleEndian),r&&(this.offset+=2),this}writeUInt16(e,t){return this.writeUint16(e,t)}writeInt32(e,t){let r=typeof t>"u";return r?t=this.offset:t=t,t+4>this.buffer.byteLength&&this.resize(t+4),this.view.setInt32(t,e,this.littleEndian),r&&(this.offset+=4),this}writeInt(e,t){return this.writeInt32(e,t)}writeUint32(e,t){let r=typeof t>"u";return r?t=this.offset:t=t,t+4>this.buffer.byteLength&&this.resize(t+4),this.view.setUint32(t,e,this.littleEndian),r&&(this.offset+=4),this}writeUInt32(e,t){return this.writeUint32(e,t)}readUint32(e){let t=typeof e>"u";t?e=this.offset:e=e;let r=this.view.getUint32(e,this.littleEndian);return t&&(this.offset+=4),r}readUInt32=this.readUint32;append(e,t){let r=typeof t>"u";r?t=this.offset:t=t;let i;return e instanceof n?(i=new Uint8Array(e.buffer,e.offset,e.limit-e.offset),e.offset+=i.length):e instanceof Uint8Array?i=e:e instanceof ArrayBuffer?i=new Uint8Array(e):i=new Uint8Array(e),i.length<=0?this:(t+i.length>this.buffer.byteLength&&this.resize(t+i.length),new Uint8Array(this.buffer).set(i,t),r&&(this.offset+=i.length),this)}clone(e){let t=new n(0,this.littleEndian);return e?(t.buffer=new ArrayBuffer(this.buffer.byteLength),new Uint8Array(t.buffer).set(new Uint8Array(this.buffer)),t.view=new DataView(t.buffer)):(t.buffer=this.buffer,t.view=this.view),t.offset=this.offset,t.markedOffset=this.markedOffset,t.limit=this.limit,t}copy(e,t){if(e===void 0&&(e=this.offset),t===void 0&&(t=this.limit),e===t)return new n(0,this.littleEndian);let r=t-e,i=new n(r,this.littleEndian);return i.offset=0,i.limit=r,new Uint8Array(i.buffer).set(new Uint8Array(this.buffer).subarray(e,t),0),i}copyTo(e,t,r,i){let o=typeof t>"u",a=typeof r>"u";t=o?e.offset:t,r=a?this.offset:r,i=i===void 0?this.limit:i;let u=i-r;return u===0?e:(e.ensureCapacity(t+u),new Uint8Array(e.buffer).set(new Uint8Array(this.buffer).subarray(r,i),t),a&&(this.offset+=u),o&&(e.offset+=u),this)}ensureCapacity(e){let t=this.buffer.byteLength;return t<e?this.resize((t*=2)>e?t:e):this}flip(){return this.limit=this.offset,this.offset=0,this}resize(e){if(this.buffer.byteLength<e){let t=new ArrayBuffer(e);new Uint8Array(t).set(new Uint8Array(this.buffer)),this.buffer=t,this.view=new DataView(t);}return this}skip(e){return this.offset+=e,this}writeInt64(e,t){let r=typeof t>"u";return r?t=this.offset:t=t,typeof e=="number"&&(e=BigInt(e)),t+8>this.buffer.byteLength&&this.resize(t+8),this.view.setBigInt64(t,e,this.littleEndian),r&&(this.offset+=8),this}writeLong(e,t){return this.writeInt64(e,t)}readInt64(e){let t=typeof e>"u";t?e=this.offset:e=e;let r=this.view.getBigInt64(e,this.littleEndian);return t&&(this.offset+=8),r}readLong(e){return this.readInt64(e)}writeUint64(e,t){let r=typeof t>"u";return r?t=this.offset:t=t,typeof e=="number"&&(e=BigInt(e)),t+8>this.buffer.byteLength&&this.resize(t+8),this.view.setBigUint64(t,e,this.littleEndian),r&&(this.offset+=8),this}writeUInt64(e,t){return this.writeUint64(e,t)}readUint64(e){let t=typeof e>"u";t?e=this.offset:e=e;let r=this.view.getBigUint64(e,this.littleEndian);return t&&(this.offset+=8),r}readUInt64(e){return this.readUint64(e)}toBuffer(e){let t=this.offset,r=this.limit;return !e&&t===0&&r===this.buffer.byteLength?this.buffer:t===r?ue:this.buffer.slice(t,r)}toArrayBuffer(e){return this.toBuffer(e)}writeVarint32(e,t){let r=typeof t>"u";r?t=this.offset:t=t;let i=this.calculateVarint32(e);for(t+i>this.buffer.byteLength&&this.resize(t+i),e>>>=0;e>=128;)this.view.setUint8(t++,e&127|128),e>>>=7;return this.view.setUint8(t++,e),r?(this.offset=t,this):i}readVarint32(e){let t=typeof e>"u";typeof e>"u"&&(e=this.offset);let r=0,i=0,o;do o=this.view.getUint8(e++),r<5&&(i|=(o&127)<<7*r),++r;while((o&128)!==0);return i|=0,t?(this.offset=e,i):{value:i,length:r}}calculateVarint32(e){return e=e>>>0,e<128?1:e<16384?2:e<1<<21?3:e<1<<28?4:5}writeVString(e,t){let r=typeof t>"u",i=r?this.offset:t,o=zt().encode(e),a=o.length,u=this.calculateVarint32(a);return i+u+a>this.buffer.byteLength&&this.resize(i+u+a),this.writeVarint32(a,i),i+=u,new Uint8Array(this.buffer).set(o,i),i+=a,r?(this.offset=i,this):i-(t||0)}readVString(e){let t=typeof e>"u";t?e=this.offset:e=e;let r=e,i=this.readVarint32(e),o=i.value,a=i.length;e+=a;let u=He().decode(new Uint8Array(this.buffer,e,o));return e+=o,t?(this.offset=e,u):{string:u,length:e-r}}readUTF8String(e,t){let r=typeof t>"u";r?t=this.offset:t=t;let i=He().decode(new Uint8Array(this.buffer,t,e));return r?(this.offset+=e,i):{string:i,length:e}}};var f={nodes:["https://api.hive.blog","https://api.deathwing.me","https://api.openhive.network","https://api.syncad.com","https://rpc.mahdiyari.info"],restNodes:["https://api.hive.blog","https://rpc.mahdiyari.info","https://api.syncad.com","https://hiveapi.actifit.io","https://api.c0ff33a.uk"],restNodesByApi:{hivesense:["https://api.hive.blog","https://api.syncad.com"]},userAgent:"ecency-sdk",chain_id:"beeab0de00000000000000000000000000000000000000000000000000000000",address_prefix:"STM",timeout:5e3,broadcastTimeout:15e3,retry:5,resilience:{adaptiveTimeout:true,adaptiveTimeoutFloorMs:2e3,adaptiveTimeoutFactor:4,hedge:false,hedgeDelayFloorMs:750,hedgeDelayFactor:2,hedgeBucketCapacity:10,hedgeRefillPerSuccess:.1,totalBudgetFactor:2}},Ve=["bridge.get_ranked_posts","bridge.get_account_posts","bridge.get_post","bridge.get_discussion","bridge.get_profile","bridge.get_profiles","bridge.get_community","bridge.list_communities","condenser_api.get_accounts","condenser_api.get_content","condenser_api.get_dynamic_global_properties","condenser_api.get_trending_tags"],de=null,Kt=n=>{if(n===null){de=null;return}if(!n||typeof n!="object")return;let e=typeof n.url=="string"?n.url.trim():"";if(!/^https?:\/\//i.test(e))return;let t={};if(n.headers&&typeof n.headers=="object")for(let[a,u]of Object.entries(n.headers))typeof u=="string"&&u&&!/[\u0000-\u001f\u007f]/.test(u)&&!/[\u0000-\u001f\u007f]/.test(a)&&(t[a]=u);let r=typeof n.timeoutMs=="number"&&Number.isFinite(n.timeoutMs)&&n.timeoutMs>0?n.timeoutMs:2e3,i=n.methods===void 0?[...Ve]:Array.isArray(n.methods)?n.methods.filter(a=>typeof a=="string"&&a.includes(".")):[];if(i.length===0)return;let o=(a,u)=>typeof a=="number"&&Number.isFinite(a)&&a>0?a:u;de={url:e,headers:t,timeoutMs:r,methods:i,failureThreshold:Math.floor(o(n.failureThreshold,3)),cooldownMs:o(n.cooldownMs,1e4),methodSet:new Set(i)};},Se=n=>Array.isArray(n)?[...new Set(n.filter(e=>typeof e=="string").map(e=>e.trim().replace(/\/+$/,"")).filter(e=>e.length>0&&/^https?:\/\/.+/.test(e)))]:[],Ht=n=>{let e=Se(n);e.length&&(f.nodes=e);},Vt=n=>{let e=Se(n);e.length&&(f.restNodes=e);},$t=n=>{if(!n||typeof n!="object")return;let e={...f.restNodesByApi};for(let[t,r]of Object.entries(n)){let i=Se(r);i.length?e[t]=i:delete e[t];}f.restNodesByApi=e;},jt=n=>{if(typeof n!="string")return;let e=n.trim();!e||/[\u0000-\u001f\u007f]/.test(e)||(f.userAgent=e);},qt=n=>{if(!n||typeof n!="object")return;let e=f.resilience,t=i=>typeof i=="boolean",r=i=>typeof i=="number"&&Number.isFinite(i)&&i>0;t(n.adaptiveTimeout)&&(e.adaptiveTimeout=n.adaptiveTimeout),r(n.adaptiveTimeoutFloorMs)&&(e.adaptiveTimeoutFloorMs=Math.max(n.adaptiveTimeoutFloorMs,2e3)),r(n.adaptiveTimeoutFactor)&&(e.adaptiveTimeoutFactor=n.adaptiveTimeoutFactor),t(n.hedge)&&(e.hedge=n.hedge),r(n.hedgeDelayFloorMs)&&(e.hedgeDelayFloorMs=n.hedgeDelayFloorMs),r(n.hedgeDelayFactor)&&(e.hedgeDelayFactor=n.hedgeDelayFactor),r(n.hedgeBucketCapacity)&&(e.hedgeBucketCapacity=n.hedgeBucketCapacity),r(n.hedgeRefillPerSuccess)&&(e.hedgeRefillPerSuccess=Math.min(n.hedgeRefillPerSuccess,1)),r(n.totalBudgetFactor)&&(e.totalBudgetFactor=Math.max(n.totalBudgetFactor,1));};var Y=class n{data;recovery;compressed;constructor(e,t,r){this.data=e,this.recovery=t,this.compressed=r??true;}static from(e){if(typeof e=="string"){let t=utils_js.hexToBytes(e),r=parseInt(utils_js.bytesToHex(t.subarray(0,1)),16)-31,i=true;r<0&&(i=false,r=r+4);let o=t.subarray(1);return new n(o,r,i)}else throw new Error("Expected string for data")}toBuffer(){let e=new Uint8Array(65).fill(0);return this.compressed?e[0]=this.recovery+31&255:e[0]=this.recovery+27&255,e.set(this.data,1),e}customToString(){return utils_js.bytesToHex(this.toBuffer())}toString(){return this.customToString()}getPublicKey(e){if(e instanceof Uint8Array&&e.length!==32||typeof e=="string"&&e.length!==64)throw new Error("Expected a valid sha256 hash as message");typeof e=="string"&&(e=utils_js.hexToBytes(e));let t=secp256k1_js.secp256k1.Signature.fromBytes(this.data,"compact"),r=new secp256k1_js.secp256k1.Signature(t.r,t.s,this.recovery);return new P(r.recoverPublicKey(e).toBytes())}};var P=class n{key;prefix;constructor(e,t){this.key=e,this.prefix=t??f.address_prefix;}static fromString(e){let t=f.address_prefix;if(typeof e!="string"||e.length<=t.length)throw new Error("Invalid public key");let r=e.slice(0,t.length);if(r!==t)throw new Error(`Public key must start with ${t}`);let i;try{i=Je__default.default.decode(e.slice(t.length));}catch{throw new Error("Invalid public key encoding")}if(i.length!==37)throw new Error("Invalid public key length");let o=i.subarray(0,33),a=i.subarray(33,37),u=legacy_js.ripemd160(o).subarray(0,4);if(!Yt(a,u))throw new Error("Public key checksum mismatch");try{secp256k1_js.secp256k1.Point.fromBytes(o);}catch{throw new Error("Invalid public key")}return new n(o,r)}static from(e){return e instanceof n?e:n.fromString(e)}verify(e,t){return typeof t=="string"&&(t=Y.from(t)),secp256k1_js.secp256k1.verify(t.data,e,this.key,{prehash:false,format:"compact"})}toString(){return Wt(this.key,this.prefix)}toJSON(){return this.toString()}inspect(){return `PublicKey: ${this.toString()}`}},Wt=(n,e)=>{let t=legacy_js.ripemd160(n);return e+Je__default.default.encode(new Uint8Array([...n,...t.subarray(0,4)]))},Yt=(n,e)=>{if(n.byteLength!==e.byteLength)return false;for(let t=0;t<n.byteLength;t++)if(n[t]!==e[t])return false;return true};var he=class n{amount;symbol;constructor(e,t){this.amount=e,this.symbol=t==="HIVE"?"STEEM":t==="HBD"?"SBD":t;}static fromString(e,t=null){let[r,i]=e.split(" ");if(["STEEM","VESTS","SBD","TESTS","TBD","HIVE","HBD"].indexOf(i)===-1)throw new Error(`Invalid asset symbol: ${i}`);if(t&&i!==t)throw new Error(`Invalid asset, expected symbol: ${t} got: ${i}`);let o=Number.parseFloat(r);if(!Number.isFinite(o))throw new Error(`Invalid asset amount: ${r}`);return new n(o,i)}static from(e,t){if(e instanceof n){if(t&&e.symbol!==t)throw new Error(`Invalid asset, expected symbol: ${t} got: ${e.symbol}`);return e}else {if(typeof e=="number"&&Number.isFinite(e))return new n(e,t||"STEEM");if(typeof e=="string")return n.fromString(e,t);throw new Error(`Invalid asset '${String(e)}'`)}}getPrecision(){switch(this.symbol){case "TESTS":case "TBD":case "STEEM":case "SBD":case "HBD":case "HIVE":return 3;case "VESTS":return 6;default:return 3}}toString(){return `${this.amount.toFixed(this.getPrecision())} ${this.symbol}`}toJSON(){return this.toString()}};var me=class n{buffer;static from(e){return e instanceof n?e:e instanceof Uint8Array?new n(e):typeof e=="string"?new n(utils_js.hexToBytes(e)):new n(new Uint8Array(e))}constructor(e){this.buffer=e;}toString(){return utils_js.bytesToHex(this.buffer)}toJSON(){return this.toString()}};var h={vote:0,comment:1,transfer:2,transfer_to_vesting:3,withdraw_vesting:4,limit_order_create:5,limit_order_cancel:6,feed_publish:7,convert:8,account_create:9,account_update:10,witness_update:11,account_witness_vote:12,account_witness_proxy:13,custom:15,delete_comment:17,custom_json:18,comment_options:19,set_withdraw_vesting_route:20,limit_order_create2:21,claim_account:22,create_claimed_account:23,request_account_recovery:24,recover_account:25,change_recovery_account:26,escrow_transfer:27,escrow_dispute:28,escrow_release:29,escrow_approve:31,transfer_to_savings:32,transfer_from_savings:33,cancel_transfer_from_savings:34,decline_voting_rights:36,reset_account:37,set_reset_account:38,claim_reward_balance:39,delegate_vesting_shares:40,account_create_with_delegation:41,witness_set_properties:42,account_update2:43,create_proposal:44,update_proposal_votes:45,remove_proposal:46,update_proposal:47,collateralized_convert:48,recurrent_transfer:49},N=()=>{throw new Error("Void can not be serialized")},s=(n,e)=>{n.writeVString(e);},Xt=(n,e)=>{n.writeInt16(e);},Xe=(n,e)=>{n.writeInt64(e);},Ge=(n,e)=>{n.writeUint8(e);},M=(n,e)=>{n.writeUint16(e);},I=(n,e)=>{n.writeUint32(e);},Ze=(n,e)=>{n.writeUint64(e);},K=(n,e)=>{n.writeByte(e?1:0);},Qe=n=>(e,t)=>{let[r,i]=t;e.writeVarint32(r),n[r](e,i);},v=(n,e)=>{let t=he.from(e),r=t.getPrecision();n.writeInt64(Math.round(t.amount*Math.pow(10,r))),n.writeUint8(r);for(let i=0;i<7;i++)n.writeUint8(t.symbol.charCodeAt(i)||0);},$=(n,e)=>{n.writeUint32(Math.floor(new Date(e+"Z").getTime()/1e3));},C=(n,e)=>{e===null||typeof e=="string"&&e.slice(-39)==="1111111111111111111111111111111114T1Anm"?n.append(new Uint8Array(33).fill(0)):n.append(P.from(e).key);},et=(n=null)=>(e,t)=>{t=me.from(t);let r=t.buffer.length;if(n){if(r!==n)throw new Error(`Unable to serialize binary. Expected ${n} bytes, got ${r}`)}else e.writeVarint32(r);e.append(t.buffer);},tt=et(),Te=(n,e)=>(t,r)=>{t.writeVarint32(r.length);for(let[i,o]of r)n(t,i),e(t,o);},T=n=>(e,t)=>{e.writeVarint32(t.length);for(let r of t)n(e,r);},D=n=>(e,t)=>{for(let[r,i]of n)try{i(e,t[r]);}catch(o){throw o.message=`${r}: ${o.message}`,o}},J=n=>(e,t)=>{t!=null?(e.writeByte(1),n(e,t)):e.writeByte(0);},U=D([["weight_threshold",I],["account_auths",Te(s,M)],["key_auths",Te(C,M)]]),Zt=D([["account",s],["weight",M]]),Ee=D([["base",v],["quote",v]]),Qt=D([["account_creation_fee",v],["maximum_block_size",I],["hbd_interest_rate",M]]),m=(n,e)=>{let t=D(e);return (r,i)=>{r.writeVarint32(n),t(r,i);}},d={};d.account_create=m(h.account_create,[["fee",v],["creator",s],["new_account_name",s],["owner",U],["active",U],["posting",U],["memo_key",C],["json_metadata",s]]);d.account_create_with_delegation=m(h.account_create_with_delegation,[["fee",v],["delegation",v],["creator",s],["new_account_name",s],["owner",U],["active",U],["posting",U],["memo_key",C],["json_metadata",s],["extensions",T(N)]]);d.account_update=m(h.account_update,[["account",s],["owner",J(U)],["active",J(U)],["posting",J(U)],["memo_key",C],["json_metadata",s]]);d.account_witness_proxy=m(h.account_witness_proxy,[["account",s],["proxy",s]]);d.account_witness_vote=m(h.account_witness_vote,[["account",s],["witness",s],["approve",K]]);d.cancel_transfer_from_savings=m(h.cancel_transfer_from_savings,[["from",s],["request_id",I]]);d.change_recovery_account=m(h.change_recovery_account,[["account_to_recover",s],["new_recovery_account",s],["extensions",T(N)]]);d.claim_account=m(h.claim_account,[["creator",s],["fee",v],["extensions",T(N)]]);d.claim_reward_balance=m(h.claim_reward_balance,[["account",s],["reward_hive",v],["reward_hbd",v],["reward_vests",v]]);d.comment=m(h.comment,[["parent_author",s],["parent_permlink",s],["author",s],["permlink",s],["title",s],["body",s],["json_metadata",s]]);d.comment_options=m(h.comment_options,[["author",s],["permlink",s],["max_accepted_payout",v],["percent_hbd",M],["allow_votes",K],["allow_curation_rewards",K],["extensions",T(Qe([D([["beneficiaries",T(Zt)]])]))]]);d.convert=m(h.convert,[["owner",s],["requestid",I],["amount",v]]);d.create_claimed_account=m(h.create_claimed_account,[["creator",s],["new_account_name",s],["owner",U],["active",U],["posting",U],["memo_key",C],["json_metadata",s],["extensions",T(N)]]);d.custom=m(h.custom,[["required_auths",T(s)],["id",M],["data",tt]]);d.custom_json=m(h.custom_json,[["required_auths",T(s)],["required_posting_auths",T(s)],["id",s],["json",s]]);d.decline_voting_rights=m(h.decline_voting_rights,[["account",s],["decline",K]]);d.delegate_vesting_shares=m(h.delegate_vesting_shares,[["delegator",s],["delegatee",s],["vesting_shares",v]]);d.delete_comment=m(h.delete_comment,[["author",s],["permlink",s]]);d.escrow_approve=m(h.escrow_approve,[["from",s],["to",s],["agent",s],["who",s],["escrow_id",I],["approve",K]]);d.escrow_dispute=m(h.escrow_dispute,[["from",s],["to",s],["agent",s],["who",s],["escrow_id",I]]);d.escrow_release=m(h.escrow_release,[["from",s],["to",s],["agent",s],["who",s],["receiver",s],["escrow_id",I],["hbd_amount",v],["hive_amount",v]]);d.escrow_transfer=m(h.escrow_transfer,[["from",s],["to",s],["hbd_amount",v],["hive_amount",v],["escrow_id",I],["agent",s],["fee",v],["json_meta",s],["ratification_deadline",$],["escrow_expiration",$]]);d.feed_publish=m(h.feed_publish,[["publisher",s],["exchange_rate",Ee]]);d.limit_order_cancel=m(h.limit_order_cancel,[["owner",s],["orderid",I]]);d.limit_order_create=m(h.limit_order_create,[["owner",s],["orderid",I],["amount_to_sell",v],["min_to_receive",v],["fill_or_kill",K],["expiration",$]]);d.limit_order_create2=m(h.limit_order_create2,[["owner",s],["orderid",I],["amount_to_sell",v],["exchange_rate",Ee],["fill_or_kill",K],["expiration",$]]);d.recover_account=m(h.recover_account,[["account_to_recover",s],["new_owner_authority",U],["recent_owner_authority",U],["extensions",T(N)]]);d.request_account_recovery=m(h.request_account_recovery,[["recovery_account",s],["account_to_recover",s],["new_owner_authority",U],["extensions",T(N)]]);d.reset_account=m(h.reset_account,[["reset_account",s],["account_to_reset",s],["new_owner_authority",U]]);d.set_reset_account=m(h.set_reset_account,[["account",s],["current_reset_account",s],["reset_account",s]]);d.set_withdraw_vesting_route=m(h.set_withdraw_vesting_route,[["from_account",s],["to_account",s],["percent",M],["auto_vest",K]]);d.transfer=m(h.transfer,[["from",s],["to",s],["amount",v],["memo",s]]);d.transfer_from_savings=m(h.transfer_from_savings,[["from",s],["request_id",I],["to",s],["amount",v],["memo",s]]);d.transfer_to_savings=m(h.transfer_to_savings,[["from",s],["to",s],["amount",v],["memo",s]]);d.transfer_to_vesting=m(h.transfer_to_vesting,[["from",s],["to",s],["amount",v]]);d.vote=m(h.vote,[["voter",s],["author",s],["permlink",s],["weight",Xt]]);d.withdraw_vesting=m(h.withdraw_vesting,[["account",s],["vesting_shares",v]]);d.witness_update=m(h.witness_update,[["owner",s],["url",s],["block_signing_key",C],["props",Qt],["fee",v]]);d.witness_set_properties=m(h.witness_set_properties,[["owner",s],["props",Te(s,tt)],["extensions",T(N)]]);d.account_update2=m(h.account_update2,[["account",s],["owner",J(U)],["active",J(U)],["posting",J(U)],["memo_key",J(C)],["json_metadata",s],["posting_json_metadata",s],["extensions",T(N)]]);d.create_proposal=m(h.create_proposal,[["creator",s],["receiver",s],["start_date",$],["end_date",$],["daily_pay",v],["subject",s],["permlink",s],["extensions",T(N)]]);d.update_proposal_votes=m(h.update_proposal_votes,[["voter",s],["proposal_ids",T(Xe)],["approve",K],["extensions",T(N)]]);d.remove_proposal=m(h.remove_proposal,[["proposal_owner",s],["proposal_ids",T(Xe)],["extensions",T(N)]]);var er=D([["end_date",$]]);d.update_proposal=m(h.update_proposal,[["proposal_id",Ze],["creator",s],["daily_pay",v],["subject",s],["permlink",s],["extensions",T(Qe([N,er]))]]);d.collateralized_convert=m(h.collateralized_convert,[["owner",s],["requestid",I],["amount",v]]);d.recurrent_transfer=m(h.recurrent_transfer,[["from",s],["to",s],["amount",v],["memo",s],["recurrence",M],["executions",M],["extensions",T(D([["type",Ge],["value",D([["pair_id",Ge]])]]))]]);var tr=(n,e)=>{let t=d[e[0]];if(!t)throw new Error(`No serializer for operation: ${e[0]}`);try{t(n,e[1]);}catch(r){throw r.message=`${e[0]}: ${r.message}`,r}},rr=D([["ref_block_num",M],["ref_block_prefix",I],["expiration",$],["operations",T(tr)],["extensions",T(s)]]),nr=D([["from",C],["to",C],["nonce",Ze],["check",I],["encrypted",et()]]),O={Asset:v,Memo:nr,Price:Ee,PublicKey:C,String:s,Transaction:rr,UInt16:M,UInt32:I};var ee=n=>new Promise(e=>setTimeout(e,n));var st=(()=>{try{return !(typeof navigator<"u"&&navigator.product==="ReactNative")&&typeof process<"u"&&process.versions!=null&&process.versions.node!=null}catch{return false}})();function Le(){return st?{"User-Agent":f.userAgent}:{}}var X={served:0,fallback:0,skipped:0,fallbackByReason:{status:0,rpcerror:0,timeout:0,transport:0,validate:0,parse:0}},q=class extends Error{constructor(t,r){super(r);this.reason=t;}reason},rt=n=>n instanceof Error?n.message:typeof n=="string"?n:String(n),te=0,Ue=0;function ir(){te=0,Ue=0;}async function or(n,e,t,r,i,o){let a=e.indexOf(".");if(a<=0||a===e.length-1)throw new q("transport",`method without an api prefix: ${e}`);let{signal:u,cleanup:c}=Me(Math.min(n.timeoutMs,r)),{signal:p,cleanup:B}=be(u,i);try{let y;try{y=await fetch(n.url,{method:"POST",body:JSON.stringify({api:e.slice(0,a),method:e.slice(a+1),params:t}),headers:{"Content-Type":"application/json",...Le(),...n.headers},signal:p});}catch(l){throw i?.aborted?l:new q(u.aborted?"timeout":"transport",rt(l))}if(y.status!==200){try{await y.body?.cancel();}catch{}let l=y.status===502&&(y.headers.get("x-ssr-cache")??"").toUpperCase()==="RPCERROR";throw new q(l?"rpcerror":"status",l?"proxy relayed a node error":`proxy answered ${y.status}`)}let g;try{g=await y.json();}catch(l){throw i?.aborted?l:new q(u.aborted?"timeout":"parse",rt(l))}if(o&&!o(g))throw new q("validate","proxy result rejected by validator");return g}finally{c(),B();}}var R=class extends Error{name="RPCError";data;code;stack=void 0;constructor(e){super(e.message),this.code=e.code,"data"in e&&(this.data=e.data);}},W=class extends Error{node;rateLimitMs;isRateLimit;nodeWide;constructor(e,t,r={}){super(t),this.node=e,this.rateLimitMs=r.rateLimitMs??0,this.isRateLimit=r.isRateLimit??false,this.nodeWide=r.nodeWide??false;}};function at(n){if(!n)return 0;let e=Number(n);if(Number.isFinite(e))return e>0?e*1e3:0;let t=Date.parse(n);if(Number.isFinite(t)){let r=t-Date.now();return r>0?r:0}return 0}var sr=["ECONNREFUSED","ENOTFOUND","EHOSTUNREACH","EAI_AGAIN"],ar=["Failed to fetch","NetworkError when attempting to fetch","Load failed","fetch failed"];function cr(n){if(!n)return "";let e=[String(n.name||""),String(n.message||""),String(n.code||"")],t=n.cause;for(let r=0;t&&r<5;r++)e.push(String(t.code||""),String(t.message||"")),t=t.cause;return e.join(" ")}function ur(n){if(!n)return false;if(n instanceof W)return true;if(n instanceof R)return false;let e=cr(n);return !!(sr.some(t=>e.includes(t))||ar.some(t=>e.includes(t))||n instanceof SyntaxError||/Unexpected token|JSON\.parse|Unexpected end of JSON/i.test(e))}function ke(n,e){return !!(n===-32603||n<=-32e3&&n>=-32099||n===-32601||n===-32602&&/unable to parse|endpoint data|internal/i.test(e))}function ct(n){let e=n.indexOf(".");return e>0?n.slice(0,e):n}var lr=1e4,fr=6e4,dr=12e4,nt=2,it=6e4,ot=12e4,hr=30,re=.3,Pe=3,ne=5*6e4,ut=6e4,lt=1e3,ft=2e3,ye=class{health=new Map;getOrCreate(e){let t=this.health.get(e);return t||(t={consecutiveFailures:0,lastFailureTime:0,rateLimitedUntil:0,rateLimitStreak:0,lastRateLimitAt:0,apiFailures:new Map,headBlock:0,headBlockUpdatedAt:0,ewmaLatencyMs:void 0,latencySampleCount:0,latencyUpdatedAt:0,lastProbeAt:Date.now(),apiLatency:new Map},this.health.set(e,t)),t}recordSuccess(e,t,r,i){let o=this.getOrCreate(e);if(o.consecutiveFailures=0,o.rateLimitStreak=0,t){let a=o.apiFailures.get(t);(!a||!(a.defective&&a.cooldownUntil>Date.now()))&&o.apiFailures.delete(t);}typeof r=="number"&&Number.isFinite(r)&&r>=0&&this.recordLatency(o,r,i??t);}recordSlowFailure(e,t,r){!Number.isFinite(t)||t<ft||this.recordLatency(this.getOrCreate(e),t,r);}getUsableLatencyMs(e,t){let r=this.health.get(e);if(!r)return;let i=Date.now();if(t!==void 0){let o=r.apiLatency.get(t);return o&&o.sampleCount>=Pe&&i-o.updatedAt<=ne?o.ewmaMs:void 0}return this.isLatencyUsable(r,i)?r.ewmaLatencyMs:void 0}recordCensoredLatency(e,t,r){!Number.isFinite(t)||t<50||this.recordLatency(this.getOrCreate(e),t,r);}recordLatency(e,t,r){let i=Date.now();if(e.latencyUpdatedAt>0&&i-e.latencyUpdatedAt>ne&&(e.ewmaLatencyMs=void 0,e.latencySampleCount=0,e.apiLatency.clear()),e.ewmaLatencyMs=e.ewmaLatencyMs===void 0?t:re*t+(1-re)*e.ewmaLatencyMs,e.latencySampleCount++,e.latencyUpdatedAt=i,r!==void 0){let o=e.apiLatency.get(r);!o||i-o.updatedAt>ne?e.apiLatency.set(r,{ewmaMs:t,sampleCount:1,updatedAt:i}):(o.ewmaMs=re*t+(1-re)*o.ewmaMs,o.sampleCount++,o.updatedAt=i);}}recordFailure(e,t){let r=this.getOrCreate(e);if(t){let i=Date.now(),o=r.apiFailures.get(t)??{count:0,cooldownUntil:0,lastFailureTime:0};(o.cooldownUntil>0&&o.cooldownUntil<=i||o.lastFailureTime>0&&i-o.lastFailureTime>3e4)&&(o.count=0,o.cooldownUntil=0),o.count++,o.lastFailureTime=i,o.count>=nt&&(o.cooldownUntil=i+it),r.apiFailures.set(t,o);}else r.consecutiveFailures++,r.lastFailureTime=Date.now();}recordDefectiveResponse(e,t){let r=this.getOrCreate(e),i=Date.now(),o=r.apiFailures.get(t)??{count:0,cooldownUntil:0,lastFailureTime:0};o.count=Math.max(o.count+1,nt),o.lastFailureTime=i,o.cooldownUntil=i+it,o.defective=true,r.apiFailures.set(t,o);}recordRateLimit(e,t){let r=this.getOrCreate(e),i=Date.now();r.rateLimitStreak>0&&i-r.lastRateLimitAt>dr&&(r.rateLimitStreak=0);let o=typeof t=="number"&&Number.isFinite(t)&&t>0,a=o?t:Math.min(lr*2**r.rateLimitStreak,fr);o||r.rateLimitStreak++,r.lastRateLimitAt=i,r.rateLimitedUntil=o?i+a:Math.max(r.rateLimitedUntil,i+a),r.consecutiveFailures++,r.lastFailureTime=i;}recordHeadBlock(e,t){if(!t||!Number.isFinite(t))return;let r=this.getOrCreate(e);r.headBlock=t,r.headBlockUpdatedAt=Date.now();}consensusHeadBlock(){let e=Date.now(),t=[];for(let r of this.health.values())r.headBlock>0&&e-r.headBlockUpdatedAt<=ot&&t.push(r.headBlock);return t.length<2?0:(t.sort((r,i)=>r-i),t[Math.floor((t.length-1)/2)])}isNodeHealthy(e,t){let r=this.health.get(e);if(!r)return true;let i=Date.now();if(r.rateLimitedUntil>i||r.consecutiveFailures>=3&&i-r.lastFailureTime<3e4)return false;if(t){let a=r.apiFailures.get(t);if(a&&a.cooldownUntil>i)return false}let o=this.consensusHeadBlock();return !(o>0&&r.headBlock>0&&i-r.headBlockUpdatedAt<=ot&&o-r.headBlock>hr)}getOrderedNodes(e,t){let r=[],i=[];for(let c of e)this.isNodeHealthy(c,t)?r.push(c):i.push(c);if(r.length<=1)return [...r,...i];let o=Date.now(),a=r.map((c,p)=>({node:c,i:p,score:this.scoreNode(c,o)})).sort((c,p)=>c.score-p.score||c.i-p.i).map(c=>c.node),u=this.pickReprobeCandidate(r,o);return u&&a[0]!==u?[u,...a.filter(c=>c!==u),...i]:[...a,...i]}isLatencyUsable(e,t){return !!e&&e.ewmaLatencyMs!==void 0&&e.latencySampleCount>=Pe&&t-e.latencyUpdatedAt<=ne}scoreNode(e,t){let r=this.health.get(e);return this.isLatencyUsable(r,t)?r.ewmaLatencyMs:lt}pickReprobeCandidate(e,t){let r=t-ut,i,o=1/0;for(let a of e){let u=this.getOrCreate(a),c=Math.max(u.latencyUpdatedAt,u.lastProbeAt);c<=r&&c<o&&(i=a,o=c);}return i&&(this.getOrCreate(i).lastProbeAt=t),i}},E=new ye,j=new ye,Ie=class{tokens=f.resilience.hedgeBucketCapacity;trySpend(){return this.clamp(),this.tokens>=1-1e-9?(this.tokens-=1,true):false}refill(){this.clamp(),this.tokens=Math.min(f.resilience.hedgeBucketCapacity,this.tokens+f.resilience.hedgeRefillPerSuccess);}clamp(){this.tokens>f.resilience.hedgeBucketCapacity&&(this.tokens=f.resilience.hedgeBucketCapacity);}get available(){return this.tokens}reset(e=f.resilience.hedgeBucketCapacity){this.tokens=e;}},Re=new Ie;function ge(n,e,t,r,i){let o=f.resilience;if(!o.adaptiveTimeout||i)return r;let a=n.getUsableLatencyMs(e,t);return a===void 0?r:Math.ceil(Math.min(r,Math.max(o.adaptiveTimeoutFloorMs,o.adaptiveTimeoutFactor*a)))}function Ne(n,e,t,r){t instanceof W?t.isRateLimit?n.recordRateLimit(e,t.rateLimitMs||void 0):t.nodeWide?n.recordFailure(e):n.recordFailure(e,r):t instanceof R?n.recordFailure(e,r):n.recordFailure(e);}function dt(n,e,t,r){if(!r||typeof r!="object"||!t.includes("get_dynamic_global_properties"))return;let i=r.head_block_number;typeof i=="number"&&n.recordHeadBlock(e,i);}function mr(){if(typeof DOMException<"u")return new DOMException("The operation was aborted due to timeout","TimeoutError");let n=new Error("The operation was aborted due to timeout");return n.name="TimeoutError",n}function Me(n){if(n=Math.ceil(n),typeof AbortSignal.timeout=="function")return {signal:AbortSignal.timeout(n),cleanup:()=>{}};let e=new AbortController,t=setTimeout(()=>e.abort(mr()),n);return {signal:e.signal,cleanup:()=>clearTimeout(t)}}function be(n,e){if(!e)return {signal:n,cleanup:()=>{}};if(typeof AbortSignal.any=="function")return {signal:AbortSignal.any([n,e]),cleanup:()=>{}};let t=new AbortController;if(n.aborted)return t.abort(n.reason),{signal:t.signal,cleanup:()=>{}};if(e.aborted)return t.abort(e.reason),{signal:t.signal,cleanup:()=>{}};let r=()=>t.abort(n.reason),i=()=>t.abort(e.reason);n.addEventListener("abort",r,{once:true}),e.addEventListener("abort",i,{once:true});let o=()=>{n.removeEventListener("abort",r),e.removeEventListener("abort",i);};return {signal:t.signal,cleanup:o}}var ie=async(n,e,t,r=f.timeout,i=false,o)=>{let a=Math.floor(Math.random()*1e8),u={jsonrpc:"2.0",method:e,params:t,id:a},{signal:c,cleanup:p}=Me(r),{signal:B,cleanup:y}=be(c,o),g=()=>{p(),y();};try{let l=await fetch(n,{method:"POST",body:JSON.stringify(u),headers:{"Content-Type":"application/json",...Le()},signal:B});if(l.status===429)throw new W(n,"HTTP 429 Rate Limited",{rateLimitMs:at(l.headers.get("Retry-After")),isRateLimit:!0});if(l.status>=500&&l.status<600)throw new W(n,`HTTP ${l.status} from ${n}`);let b;if(l.ok)b=await l.json();else {let A;try{A=JSON.parse(await l.text());}catch{A=void 0;}if(A?.jsonrpc!=="2.0"||A?.id!==a)throw new W(n,`HTTP ${l.status} from ${n}`,{nodeWide:!0});b=A;}if(!b||typeof b.id>"u"||b.id!==a||b.jsonrpc!=="2.0")throw new Error("JSONRPC id mismatch");if("result"in b)return b.result;if("error"in b){let A=b.error;throw "message"in A&&"code"in A?new R(A):b.error}throw b}catch(l){if(l instanceof R||l instanceof W||o?.aborted)throw l;if(i)return ie(n,e,t,r,false,o);throw l}finally{g();}};function pe(){return ee(50+Math.random()*50)}function pr(n){let{method:e,params:t,api:r,primary:i,hedgePool:o,callerTimeout:a,explicitTimeout:u,deadlineAt:c,externalSignal:p,onHedgeFired:B,validate:y}=n;return new Promise((g,l)=>{let b=false,A=0,S=false,H=false,_,V,Z=0,G=[],z=k=>{if(!b){b=true,V!==void 0&&(clearTimeout(V),V=void 0);for(let w of G)w.signal.aborted||w.abort();k();}},ce=(k,w)=>{A++;let F=new AbortController;G.push(F);let Q=be(F.signal,p),Ot=ge(E,k,e,a,u),Be=Date.now();w||(Z=Be),ie(k,e,t,Ot,false,Q.signal).then(L=>{if(Q.cleanup(),A--,w||(H=true),!b){if(y&&!y(L)){if(E.recordDefectiveResponse(k,r),_=new Error(`[hive-tx] response validation failed for ${e} from ${k}`),!w&&!S){z(()=>l(_));return}A===0&&z(()=>l(_));return}E.recordSuccess(k,r,Date.now()-Be,e),dt(E,k,e,L),w?H||E.recordCensoredLatency(i,Date.now()-Z,e):S||Re.refill(),z(()=>g(L));}}).catch(L=>{if(Q.cleanup(),A--,w||(H=true),!b){if(p?.aborted){z(()=>l(L));return}if(L instanceof R&&!ke(L.code,L.message)){z(()=>l(L));return}if(Ne(E,k,L,r),E.recordSlowFailure(k,Date.now()-Be,e),_=L,!w&&!S){z(()=>l(L));return}A===0&&z(()=>l(_));}});};ce(i,false);let Ae=E.getUsableLatencyMs(i,e)??0,ve=ge(E,i,e,a,u),xe=Math.min(Math.max(f.resilience.hedgeDelayFloorMs,f.resilience.hedgeDelayFactor*Ae),.8*ve);V=setTimeout(()=>{if(V=void 0,b||p?.aborted||Date.now()>=c)return;let k=o.filter(F=>E.isNodeHealthy(F,r));if(k.length===0)return;let w=k[Math.floor(Math.random()*k.length)];Re.trySpend()&&(S=true,B(w),ce(w,true));},xe);})}var oe=async(n,e=[],t,r=f.retry,i,o)=>{if(!Array.isArray(f.nodes))throw new Error("config.nodes is not an array");if(f.nodes.length===0)throw new Error("config.nodes is empty");let a=t!==void 0,u=t??f.timeout,c=ct(n),p=de;if(p&&st&&p.methodSet.has(n))if(Date.now()<Ue)X.skipped++;else try{let l=await or(p,n,e,u,i,o);return X.served++,te=0,l}catch(l){if(i?.aborted)throw l;X.fallback++;let b=l instanceof q?l.reason:"transport";X.fallbackByReason[b]=(X.fallbackByReason[b]??0)+1,b==="rpcerror"?te=0:++te>=p.failureThreshold&&(Ue=Date.now()+p.cooldownMs,te=0);}let B=Date.now()+f.resilience.totalBudgetFactor*u,y=new Set,g;for(let l=0;l<=r&&!(l>0&&Date.now()>=B);l++){let b=E.getOrderedNodes(f.nodes,c),A=b.find(_=>!y.has(_));A||(y.clear(),A=b[0]),y.add(A);let S=[];if(f.resilience.hedge&&E.getUsableLatencyMs(A,n)!==void 0&&(S=b.filter(_=>!y.has(_)&&E.isNodeHealthy(_,c)).slice(0,3)),S.length>0)try{return await pr({method:n,params:e,api:c,primary:A,hedgePool:S,callerTimeout:u,explicitTimeout:a,deadlineAt:B,externalSignal:i,onHedgeFired:_=>y.add(_),validate:o})}catch(_){if(_ instanceof R&&!ke(_.code,_.message)||i?.aborted)throw _;g=_,l<r&&await pe();continue}let H=Date.now();try{let _=await ie(A,n,e,ge(E,A,n,u,a),!1,i);if(o&&!o(_)){E.recordDefectiveResponse(A,c),g=new Error(`[hive-tx] response validation failed for ${n} from ${A}`),l<r&&await pe();continue}return E.recordSuccess(A,c,Date.now()-H,n),Re.refill(),dt(E,A,n,_),_}catch(_){if(_ instanceof R&&!ke(_.code,_.message)||i?.aborted)throw _;Ne(E,A,_,c),E.recordSlowFailure(A,Date.now()-H,n),g=_,l<r&&await pe();}}throw g},De=async(n,e=[],t=f.broadcastTimeout,r,i={})=>{if(!Array.isArray(f.nodes))throw new Error("config.nodes is not an array");if(f.nodes.length===0)throw new Error("config.nodes is empty");let o=ct(n),a=new Set,u,c;for(let p=0;p<f.nodes.length;p++){if(c&&!(Date.now()<(i.failoverOnTimeoutUntil??0)))throw c;let y=E.getOrderedNodes(f.nodes,o).find(g=>!a.has(g));if(!y)break;if(a.add(y),r?.aborted)throw new Error("Aborted");try{let g=await ie(y,n,e,t,!1,r);return E.recordSuccess(y,o),g}catch(g){if(g instanceof R||r?.aborted)throw g;Ne(E,y,g,o),u=g;let l=g?.name==="TimeoutError"||g?.name==="AbortError",b=l&&i.failoverOnTimeoutUntil!==void 0&&Date.now()<i.failoverOnTimeoutUntil;if(!ur(g)&&!b)throw c??g;l&&(c??=g);}}throw c??u},yr={balance:"/balance-api",hafah:"/hafah-api",hafbe:"/hafbe-api",hivemind:"/hivemind-api",hivesense:"/hivesense-api",reputation:"/reputation-api","nft-tracker":"/nft-tracker-api",hafsql:"/hafsql",status:"/status-api"};async function gr(n,e,t,r,i=f.retry,o){if(!Array.isArray(f.restNodes))throw new Error("config.restNodes is not an array");if(f.restNodes.length===0)throw new Error("config.restNodes is empty");let a=r!==void 0,u=r??f.timeout,c=Date.now()+f.resilience.totalBudgetFactor*u,p=`${n}:${e}`,B=f.restNodesByApi?.[n]?.length?f.restNodesByApi[n]:f.restNodes,y=new Set,g,l=false;for(let b=0;b<=i&&!(b>0&&Date.now()>=c);b++){let A=j.getOrderedNodes(B,n),S=A.find(w=>!y.has(w));S||(y.clear(),S=A[0]),y.add(S);let H=S+yr[n],_=e,V=t||{},Z=new Set;Object.entries(V).forEach(([w,F])=>{_.includes(`{${w}}`)&&(_=_.replace(`{${w}}`,encodeURIComponent(String(F))),Z.add(w));});let G=new URL(H+_);if(Object.entries(V).forEach(([w,F])=>{Z.has(w)||(Array.isArray(F)?F.forEach(Q=>G.searchParams.append(w,String(Q))):G.searchParams.set(w,String(F)));}),o?.aborted)throw new Error("Aborted");l=false;let{signal:z,cleanup:ce}=Me(ge(j,S,p,u,a)),{signal:Ae,cleanup:ve}=be(z,o),xe=()=>{ce(),ve();},k=Date.now();try{let w=await fetch(G.toString(),{signal:Ae,headers:Le()});if(w.status===404)throw new Error("HTTP 404 - Hint: can happen on wrong params");if(w.status===429)throw j.recordRateLimit(S,at(w.headers.get("Retry-After"))||void 0),l=!0,new Error(`HTTP 429 Rate Limited by ${S}`);if(w.status===503)throw j.recordFailure(S,n),l=!0,new Error(`HTTP 503 Service Unavailable from ${S}`);if(!w.ok)throw j.recordFailure(S,n),l=!0,new Error(`HTTP ${w.status} from ${S}`);return j.recordSuccess(S,n,Date.now()-k,p),w.json()}catch(w){if(w?.message?.includes("HTTP 404")||o?.aborted)throw w;l||j.recordFailure(S,n),j.recordSlowFailure(S,Date.now()-k,p),g=w,b<i&&await pe();}finally{xe();}}throw g}var br=async(n,e=[],t=2,r)=>{if(!Array.isArray(f.nodes))throw new Error("config.nodes is not an Array");if(t>f.nodes.length)throw new Error("quorum > config.nodes.length");let o=(c=>{let p=[...c];for(let B=p.length-1;B>0;B--){let y=Math.floor(Math.random()*(B+1));[p[B],p[y]]=[p[y],p[B]];}return p})(f.nodes),a=Math.min(t,o.length),u=[];for(;a>0&&o.length>0;){let c=o.splice(0,a),p=[],B=[];for(let g=0;g<c.length;g++)p.push(ie(c[g],n,e,void 0,true,r).then(l=>B.push(l)).catch(()=>{}));await Promise.all(p),u.push(...B);let y=_r(u,t);if(y)return y;if(a=Math.min(t,o.length),a===0)throw new Error("No more nodes available.")}throw new Error("Couldn't reach quorum.")};function _r(n,e){let t=new Map;for(let i of n){let o=JSON.stringify(i);t.has(o)||t.set(o,[]),t.get(o).push(i);}let r=Array.from(t.values()).find(i=>i.length>=e);return r?r[0]:null}var Ar=utils_js.hexToBytes(f.chain_id),yt=256,gt=64*1024,mt=2*1024*1024,vr=gt-yt,xr=65,_e=class extends Error{size;limit;constructor(e,t){super(`Transaction too large: ${e} bytes. Hive allows up to ${t} bytes.`),this.name="TransactionTooLargeError",this.size=e,this.limit=t;}},Oe=3,bt=async()=>{let n=await oe("condenser_api.get_dynamic_global_properties",[]),e=n.head_block_number,t=n.head_block_id;try{let o=(await oe("condenser_api.get_block_header",[e-Oe+1],3e3,1))?.previous;typeof o=="string"&&/^[0-9a-f]{40}$/.test(o)&&parseInt(o.slice(0,8),16)===e-Oe&&(e-=Oe,t=o);}catch{}let r=utils_js.hexToBytes(t);return {ref_block_num:e&65535,ref_block_prefix:Number(new Uint32Array(r.buffer,r.byteOffset+4,1)[0]),maximum_block_size:n.maximum_block_size}},Fe=class n{transaction;expiration=6e4;maximumBlockSize;txId;constructor(e){e?.transaction&&(e.transaction instanceof n?(this.transaction=e.transaction.transaction,this.expiration=e.transaction.expiration,this.maximumBlockSize=e.transaction.maximumBlockSize):this.transaction=e.transaction,this.transaction&&!Array.isArray(this.transaction.signatures)&&(this.transaction.signatures=[]),this.txId=this.digest().txId),e?.expiration&&(this.expiration=e.expiration);}async addOperation(e,t){this.transaction||await this.createTransaction(this.expiration),this.transaction.operations.push([e,t]);}sign(e){if(!this.transaction)throw new Error("First create a transaction by .addOperation()");if(this.transaction){let{digest:t,txId:r}=this.digest();Array.isArray(e)||(e=[e]),this.assertSize(e.length);for(let i of e){let o=i.sign(t);this.transaction.signatures.push(o.customToString());}return this.txId=r,this.transaction}else throw new Error("No transaction to sign")}async broadcast(e=false){if(!this.transaction)throw new Error("Attempted to broadcast an empty transaction. Add operations by .addOperation()");if(this.transaction.signatures.length===0)throw new Error("Attempted to broadcast a transaction with no signatures. Sign using .sign(keys)");try{await De("condenser_api.broadcast_transaction",[this.transaction],void 0,void 0,{failoverOnTimeoutUntil:Date.parse(this.transaction.expiration+"Z")-f.broadcastTimeout-5e3});}catch(o){if(!(o instanceof R&&o.message.includes("Duplicate transaction check failed")))throw o}if(this.txId||(this.txId=this.digest().txId),!e)return {tx_id:this.txId,status:"unknown"};let t=60;await ee(1e3);let r=await this.checkStatus(),i=1;for(;r?.status!=="within_irreversible_block"&&r?.status!=="expired_irreversible"&&r?.status!=="too_old"&&i<t;)await ee(1e3+i*300),r=await this.checkStatus(),i++;return {tx_id:this.txId,status:r?.status??"unknown"}}digest(){if(!this.transaction)throw new Error("First create a transaction by .addOperation()");let e=this.serialize(),t=utils_js.bytesToHex(sha2_js.sha256(e)).slice(0,40);return {digest:sha2_js.sha256(new Uint8Array([...Ar,...e])),txId:t}}size(e=0){let t=(this.transaction?.signatures.length??0)+e,r=1;for(let i=t;i>=128;i>>>=7)r++;return this.serialize().length+r+t*xr}assertSize(e=0){let t=this.size(e),r=Number(this.maximumBlockSize),o=(r>=gt&&r<=mt?r:mt)-yt;if(t>o)throw new _e(t,o)}serialize(){if(!this.transaction)throw new Error("First create a transaction by .addOperation()");let e=new x(x.DEFAULT_CAPACITY,x.LITTLE_ENDIAN),t={...this.transaction};try{O.Transaction(e,t);}catch(r){throw new Error("Unable to serialize transaction: "+r)}return e.flip(),new Uint8Array(e.toBuffer())}addSignature(e){if(!this.transaction)throw new Error("First create a transaction by .create(operations)");if(typeof e!="string")throw new Error("Signature must be string");if(e.length!==130)throw new Error("Signature must be 130 characters long");return this.transaction.signatures.push(e),this.transaction}async checkStatus(){return this.txId||(this.txId=this.digest().txId),oe("transaction_status_api.find_transaction",{transaction_id:this.txId,expiration:this.transaction?.expiration})}createTransaction=async e=>{let t=await bt(),r=new Date(Date.now()+e).toISOString().slice(0,-5);this.maximumBlockSize=t.maximum_block_size,this.transaction={expiration:r,extensions:[],operations:[],ref_block_num:t.ref_block_num,ref_block_prefix:t.ref_block_prefix,signatures:[]};}};var vt=new Uint8Array([128]),ae=class n{key;constructor(e){this.key=e;try{secp256k1_js.secp256k1.getPublicKey(e);}catch{throw new Error("invalid private key")}}static from(e){return typeof e=="string"?n.fromString(e):new n(e)}static fromString(e){return new n(Er(e).subarray(1))}static fromSeed(e){if(typeof e=="string")if(/^[0-9a-fA-F]+$/.test(e))e=utils_js.hexToBytes(e);else {let r=[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);if(o<128)r.push(o);else if(o<2048)r.push(192|o>>6,128|o&63);else if(o>=55296&&o<=56319&&i+1<e.length){let a=e.charCodeAt(++i);o=65536+((o&1023)<<10)+(a&1023),r.push(240|o>>18,128|o>>12&63,128|o>>6&63,128|o&63);}else r.push(224|o>>12,128|o>>6&63,128|o&63);}e=new Uint8Array(r);}return new n(sha2_js.sha256(e))}static fromLogin(e,t,r="active"){let i=e+r+t;return n.fromSeed(i)}sign(e){let t=secp256k1_js.secp256k1.sign(e,this.key,{extraEntropy:true,format:"recovered",prehash:false}),r=parseInt(utils_js.bytesToHex(t.subarray(0,1)),16);return Y.from((r+31).toString(16)+utils_js.bytesToHex(t.subarray(1)))}createPublic(e){return new P(secp256k1_js.secp256k1.getPublicKey(this.key),e)}toString(){return Tr(new Uint8Array([...vt,...this.key]))}inspect(){let e=this.toString();return `PrivateKey: ${e.slice(0,6)}...${e.slice(-6)}`}getSharedSecret(e){let t=secp256k1_js.secp256k1.getSharedSecret(this.key,e.key);return sha2_js.sha512(t.subarray(1))}static randomKey(){return new n(secp256k1_js.secp256k1.keygen().secretKey)}},xt=n=>sha2_js.sha256(sha2_js.sha256(n)),Tr=n=>{let e=xt(n);return Je__default.default.encode(new Uint8Array([...n,...e.slice(0,4)]))},Er=n=>{let e=Je__default.default.decode(n);if(!wt(e.slice(0,1),vt))throw new Error("Private key network id mismatch");let t=e.slice(-4),r=e.slice(0,-4),i=xt(r).slice(0,4);if(!wt(t,i))throw new Error("Private key checksum mismatch");return r},wt=(n,e)=>{if(n===e)return true;if(n.byteLength!==e.byteLength)return false;let t=n.byteLength,r=0;for(;r<t&&n[r]===e[r];)r++;return r===t};var Et=(n,e,t,r=Ir())=>Ke(n,e,r,t),Ut=(n,e,t,r,i)=>{try{return Ke(n,e,t,r,i).message}catch(o){if(!(o instanceof Error)||o.message!=="Invalid key")throw o;let a=secp256k1_js.secp256k1.getSharedSecret(n.key,e.key).subarray(1),u=0;for(;u<a.length&&a[u]===0;)u++;if(u===0)throw o;try{return Ke(n,e,t,r,i,sha2_js.sha512(a.subarray(u))).message}catch{throw o}}},Ke=(n,e,t,r,i,o=n.getSharedSecret(e))=>{let a=t,u=o,c=new x(x.DEFAULT_CAPACITY,x.LITTLE_ENDIAN);c.writeUint64(a),c.append(u),c.flip();let p=sha2_js.sha512(new Uint8Array(c.toBuffer())),B=p.subarray(32,48),y=p.subarray(0,32),g=sha2_js.sha256(p).subarray(0,4),l=new x(x.DEFAULT_CAPACITY,x.LITTLE_ENDIAN);l.append(g),l.flip();let b=l.readUint32();if(i!==void 0){if(b!==i)throw new Error("Invalid key");r=kr(r,y,B);}else r=Pr(r,y,B);return {nonce:a,message:r,checksum:b}},kr=(n,e,t)=>{let r=n;return r=aes_js.cbc(e,t).decrypt(r),r},Pr=(n,e,t)=>{let r=n;return r=aes_js.cbc(e,t).encrypt(r),r},ze=null,Ir=()=>{if(ze===null){let t=secp256k1_js.secp256k1.utils.randomSecretKey();ze=t[0]<<8|t[1];}let n=BigInt(Date.now()),e=++ze%65536;return n=n<<BigInt(16)|BigInt(e),n};var kt=n=>{let e=Or(n,33);return new P(e)},Lr=n=>n.readUint64(),Nr=n=>n.readUint32(),Mr=n=>{let e=n.readVarint32(),t=n.copy(n.offset,n.offset+e);return n.skip(e),new Uint8Array(t.toBuffer())},Dr=n=>e=>{let t={},r=new x(x.DEFAULT_CAPACITY,x.LITTLE_ENDIAN);r.append(e),r.flip();for(let[i,o]of n)try{t[i]=o(r);}catch(a){throw a.message=`${i}: ${a.message}`,a}return t};function Or(n,e){if(n){let t=n.copy(n.offset,n.offset+e);return n.skip(e),new Uint8Array(t.toBuffer())}else throw Error("No buffer found on first parameter")}var Fr=Dr([["from",kt],["to",kt],["nonce",Lr],["check",Nr],["encrypted",Mr]]),Pt={Memo:Fr};var Rt=(n,e,t,r)=>{if(!t.startsWith("#"))return t;t=t.substring(1),Nt(),n=Mt(n),e=Cr(e);let i=new x(x.DEFAULT_CAPACITY,x.LITTLE_ENDIAN);i.writeVString(t);let o=new Uint8Array(i.copy(0,i.offset).toBuffer()),{nonce:a,message:u,checksum:c}=Et(n,e,o,r),p=new x(x.DEFAULT_CAPACITY,x.LITTLE_ENDIAN);O.Memo(p,{check:c,encrypted:u,from:n.createPublic(),nonce:a,to:e}),p.flip();let B=new Uint8Array(p.toBuffer());return "#"+Je__default.default.encode(B)},Lt=(n,e)=>{if(!e.startsWith("#"))return e;e=e.substring(1),Nt(),n=Mt(n);let t=Pt.Memo(Je__default.default.decode(e)),{from:r,to:i,nonce:o,check:a,encrypted:u}=t,p=n.createPublic().toString()===new P(r.key).toString()?new P(i.key):new P(r.key);t=Ut(n,p,o,u,a);let B=new x(x.DEFAULT_CAPACITY,x.LITTLE_ENDIAN);return B.append(t),B.flip(),"#"+B.readVString()},we,Nt=()=>{if(we===void 0){let n;we=true;try{let e="5JdeC9P7Pbd1uGdFVEsJ41EkEnADbbHGq6p1BwFxm6txNBsQnsw",r=Rt(e,"STM8m5UgaFAAYQRuaNejYdS8FVLVp9Ss3K1qAVk5de6F8s3HnVbvA","#memo\u7231");n=Lt(e,r);}finally{we=n==="#memo\u7231";}}if(we===false)throw new Error("This environment does not support encryption.")},Mt=n=>typeof n=="string"?ae.fromString(n):n,Cr=n=>typeof n=="string"?P.fromString(n):n,zr={decode:Lt,encode:Rt};var Dt={};Ct(Dt,{buildWitnessSetProperties:()=>qr,makeBitMaskFilter:()=>$r,operations:()=>Vr,validateUsername:()=>Hr});var Hr=n=>{let e="Account name should ";if(!n)return e+"not be empty.";let t=n.length;if(t<3)return e+"be longer.";if(t>16)return e+"be shorter.";/\./.test(n)&&(e="Each account segment should ");let r=n.split("."),i=r.length;for(let o=0;o<i;o++){let a=r[o];if(!/^[a-z]/.test(a))return e+"start with a lowercase letter.";if(!/^[a-z0-9-]*$/.test(a))return e+"have only lowercase letters, digits, or dashes.";if(!/[a-z0-9]$/.test(a))return e+"end with a lowercase letter or digit.";if(a.length<3)return e+"be longer."}return null},Vr={vote:0,comment:1,transfer:2,transfer_to_vesting:3,withdraw_vesting:4,limit_order_create:5,limit_order_cancel:6,feed_publish:7,convert:8,account_create:9,account_update:10,witness_update:11,account_witness_vote:12,account_witness_proxy:13,pow:14,custom:15,report_over_production:16,delete_comment:17,custom_json:18,comment_options:19,set_withdraw_vesting_route:20,limit_order_create2:21,claim_account:22,create_claimed_account:23,request_account_recovery:24,recover_account:25,change_recovery_account:26,escrow_transfer:27,escrow_dispute:28,escrow_release:29,pow2:30,escrow_approve:31,transfer_to_savings:32,transfer_from_savings:33,cancel_transfer_from_savings:34,custom_binary:35,decline_voting_rights:36,reset_account:37,set_reset_account:38,claim_reward_balance:39,delegate_vesting_shares:40,account_create_with_delegation:41,witness_set_properties:42,account_update2:43,create_proposal:44,update_proposal_votes:45,remove_proposal:46,update_proposal:47,collateralized_convert:48,recurrent_transfer:49,fill_convert_request:50,author_reward:51,curation_reward:52,comment_reward:53,liquidity_reward:54,interest:55,fill_vesting_withdraw:56,fill_order:57,shutdown_witness:58,fill_transfer_from_savings:59,hardfork:60,comment_payout_update:61,return_vesting_delegation:62,comment_benefactor_reward:63,producer_reward:64,clear_null_account_balance:65,proposal_pay:66,sps_fund:67,hardfork_hive:68,hardfork_hive_restore:69,delayed_voting:70,consolidate_treasury_balance:71,effective_comment_vote:72,ineffective_delete_comment:73,sps_convert:74,expired_account_notification:75,changed_recovery_account:76,transfer_to_vesting_completed:77,pow_reward:78,vesting_shares_split:79,account_created:80,fill_collateralized_convert_request:81,system_warning:82,fill_recurrent_transfer:83,failed_recurrent_transfer:84,limit_order_cancelled:85,producer_missed:86,proposal_fee:87,collateralized_convert_immediate_conversion:88,escrow_approved:89,escrow_rejected:90,proxy_cleared:91,declined_voting_rights:92},$r=n=>n.reduce(jr,[BigInt(0),BigInt(0)]).map(e=>e!==BigInt(0)?e.toString():null),jr=([n,e],t)=>t<64?[n|BigInt(1)<<BigInt(t),e]:[n,e|BigInt(1)<<BigInt(t-64)],qr=(n,e)=>{let t={extensions:[],owner:n,props:[]};for(let r of Object.keys(e)){if(e[r]===void 0)continue;let i;switch(r){case "key":case "new_signing_key":i=O.PublicKey;break;case "account_subsidy_budget":case "account_subsidy_decay":case "maximum_block_size":i=O.UInt32;break;case "hbd_interest_rate":i=O.UInt16;break;case "url":i=O.String;break;case "hbd_exchange_rate":i=O.Price;break;case "account_creation_fee":i=O.Asset;break;default:throw new Error(`Unknown witness prop: ${r}`)}t.props.push([r,Wr(i,e[r])]);}return t.props.sort((r,i)=>r[0].localeCompare(i[0])),["witness_set_properties",t]},Wr=(n,e)=>{let t=new x(x.DEFAULT_CAPACITY,x.LITTLE_ENDIAN);return n(t,e),t.flip(),utils_js.bytesToHex(new Uint8Array(t.toBuffer()))};/**
|
|
1
|
+
'use strict';var utils_js=require('@noble/hashes/utils.js'),legacy_js=require('@noble/hashes/legacy.js'),Je=require('bs58'),secp256k1_js=require('@noble/curves/secp256k1.js'),sha2_js=require('@noble/hashes/sha2.js'),aes_js=require('@noble/ciphers/aes.js');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Je__default=/*#__PURE__*/_interopDefault(Je);var Ct=Object.defineProperty;var zt=(n,e)=>{for(var t in e)Ct(n,t,{get:e[t],enumerable:true});};var ue=new ArrayBuffer(0),le=null,fe=null;function Kt(){return le||(typeof TextEncoder<"u"?le=new TextEncoder:le={encode(n){let e=[];for(let t=0;t<n.length;t++){let r=n.charCodeAt(t);if(r<128)e.push(r);else if(r<2048)e.push(192|r>>6,128|r&63);else if(r>=55296&&r<=56319&&t+1<n.length){let i=n.charCodeAt(++t);r=65536+((r&1023)<<10)+(i&1023),e.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|r&63);}else e.push(224|r>>12,128|r>>6&63,128|r&63);}return new Uint8Array(e)}}),le}function He(){return fe||(typeof TextDecoder<"u"?fe=new TextDecoder:fe={decode(n){let e=n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength),t="";for(let r=0;r<e.length;){let i=e[r],o;i<128?(o=i,r+=1):(i&224)===192?(o=(i&31)<<6|e[r+1]&63,r+=2):(i&240)===224?(o=(i&15)<<12|(e[r+1]&63)<<6|e[r+2]&63,r+=3):(o=(i&7)<<18|(e[r+1]&63)<<12|(e[r+2]&63)<<6|e[r+3]&63,r+=4),o<=65535?t+=String.fromCharCode(o):(o-=65536,t+=String.fromCharCode(55296+(o>>10),56320+(o&1023)));}return t}}),fe}var A=class n{static LITTLE_ENDIAN=true;static BIG_ENDIAN=false;static DEFAULT_CAPACITY=16;static DEFAULT_ENDIAN=n.BIG_ENDIAN;buffer;view;offset;markedOffset;limit;littleEndian;constructor(e=n.DEFAULT_CAPACITY,t=n.DEFAULT_ENDIAN){this.buffer=e===0?ue:new ArrayBuffer(e),this.view=e===0?new DataView(ue):new DataView(this.buffer),this.offset=0,this.markedOffset=-1,this.limit=e,this.littleEndian=t;}static allocate(e,t){return new n(e,t)}static concat(e,t){let r=0;for(let u=0;u<e.length;++u){let c=e[u];if(c instanceof n)r+=c.limit-c.offset;else if(c instanceof Uint8Array)r+=c.length;else if(c instanceof ArrayBuffer)r+=c.byteLength;else if(Array.isArray(c))r+=c.length;else throw TypeError("Illegal buffer")}if(r===0)return new n(0,t);let i=new n(r,t),o=new Uint8Array(i.buffer),a=0;for(let u=0;u<e.length;++u){let c=e[u];c instanceof n?(o.set(new Uint8Array(c.buffer,c.offset,c.limit-c.offset),a),a+=c.limit-c.offset):c instanceof Uint8Array?(o.set(c,a),a+=c.length):c instanceof ArrayBuffer?(o.set(new Uint8Array(c),a),a+=c.byteLength):(o.set(c,a),a+=c.length);}return i.limit=i.offset=a,i.offset=0,i}static wrap(e,t){if(e instanceof n){let i=e.clone();return i.markedOffset=-1,i}let r;if(e instanceof Uint8Array)r=new n(0,t),e.length>0&&(r.buffer=e.buffer,r.offset=e.byteOffset,r.limit=e.byteOffset+e.byteLength,r.view=new DataView(e.buffer));else if(e instanceof ArrayBuffer)r=new n(0,t),e.byteLength>0&&(r.buffer=e,r.offset=0,r.limit=e.byteLength,r.view=e.byteLength>0?new DataView(e):new DataView(ue));else if(Array.isArray(e))r=new n(e.length,t),r.limit=e.length,new Uint8Array(r.buffer).set(e);else throw TypeError("Illegal buffer");return r}writeBytes(e,t){return this.append(e,t)}writeInt8(e,t){let r=typeof t>"u";return r?t=this.offset:t=t,t+1>this.buffer.byteLength&&this.resize(t+1),this.view.setInt8(t,e),r&&(this.offset+=1),this}writeByte(e,t){return this.writeInt8(e,t)}writeUint8(e,t){let r=typeof t>"u";return r?t=this.offset:t=t,t+1>this.buffer.byteLength&&this.resize(t+1),this.view.setUint8(t,e),r&&(this.offset+=1),this}writeUInt8(e,t){return this.writeUint8(e,t)}readUint8(e){let t=typeof e>"u";t?e=this.offset:e=e;let r=this.view.getUint8(e);return t&&(this.offset+=1),r}readUInt8(e){return this.readUint8(e)}writeInt16(e,t){let r=typeof t>"u";return r?t=this.offset:t=t,t+2>this.buffer.byteLength&&this.resize(t+2),this.view.setInt16(t,e,this.littleEndian),r&&(this.offset+=2),this}writeShort(e,t){return this.writeInt16(e,t)}writeUint16(e,t){let r=typeof t>"u";return r?t=this.offset:t=t,t+2>this.buffer.byteLength&&this.resize(t+2),this.view.setUint16(t,e,this.littleEndian),r&&(this.offset+=2),this}writeUInt16(e,t){return this.writeUint16(e,t)}writeInt32(e,t){let r=typeof t>"u";return r?t=this.offset:t=t,t+4>this.buffer.byteLength&&this.resize(t+4),this.view.setInt32(t,e,this.littleEndian),r&&(this.offset+=4),this}writeInt(e,t){return this.writeInt32(e,t)}writeUint32(e,t){let r=typeof t>"u";return r?t=this.offset:t=t,t+4>this.buffer.byteLength&&this.resize(t+4),this.view.setUint32(t,e,this.littleEndian),r&&(this.offset+=4),this}writeUInt32(e,t){return this.writeUint32(e,t)}readUint32(e){let t=typeof e>"u";t?e=this.offset:e=e;let r=this.view.getUint32(e,this.littleEndian);return t&&(this.offset+=4),r}readUInt32=this.readUint32;append(e,t){let r=typeof t>"u";r?t=this.offset:t=t;let i;return e instanceof n?(i=new Uint8Array(e.buffer,e.offset,e.limit-e.offset),e.offset+=i.length):e instanceof Uint8Array?i=e:e instanceof ArrayBuffer?i=new Uint8Array(e):i=new Uint8Array(e),i.length<=0?this:(t+i.length>this.buffer.byteLength&&this.resize(t+i.length),new Uint8Array(this.buffer).set(i,t),r&&(this.offset+=i.length),this)}clone(e){let t=new n(0,this.littleEndian);return e?(t.buffer=new ArrayBuffer(this.buffer.byteLength),new Uint8Array(t.buffer).set(new Uint8Array(this.buffer)),t.view=new DataView(t.buffer)):(t.buffer=this.buffer,t.view=this.view),t.offset=this.offset,t.markedOffset=this.markedOffset,t.limit=this.limit,t}copy(e,t){if(e===void 0&&(e=this.offset),t===void 0&&(t=this.limit),e===t)return new n(0,this.littleEndian);let r=t-e,i=new n(r,this.littleEndian);return i.offset=0,i.limit=r,new Uint8Array(i.buffer).set(new Uint8Array(this.buffer).subarray(e,t),0),i}copyTo(e,t,r,i){let o=typeof t>"u",a=typeof r>"u";t=o?e.offset:t,r=a?this.offset:r,i=i===void 0?this.limit:i;let u=i-r;return u===0?e:(e.ensureCapacity(t+u),new Uint8Array(e.buffer).set(new Uint8Array(this.buffer).subarray(r,i),t),a&&(this.offset+=u),o&&(e.offset+=u),this)}ensureCapacity(e){let t=this.buffer.byteLength;return t<e?this.resize((t*=2)>e?t:e):this}flip(){return this.limit=this.offset,this.offset=0,this}resize(e){if(this.buffer.byteLength<e){let t=new ArrayBuffer(e);new Uint8Array(t).set(new Uint8Array(this.buffer)),this.buffer=t,this.view=new DataView(t);}return this}skip(e){return this.offset+=e,this}writeInt64(e,t){let r=typeof t>"u";return r?t=this.offset:t=t,typeof e=="number"&&(e=BigInt(e)),t+8>this.buffer.byteLength&&this.resize(t+8),this.view.setBigInt64(t,e,this.littleEndian),r&&(this.offset+=8),this}writeLong(e,t){return this.writeInt64(e,t)}readInt64(e){let t=typeof e>"u";t?e=this.offset:e=e;let r=this.view.getBigInt64(e,this.littleEndian);return t&&(this.offset+=8),r}readLong(e){return this.readInt64(e)}writeUint64(e,t){let r=typeof t>"u";return r?t=this.offset:t=t,typeof e=="number"&&(e=BigInt(e)),t+8>this.buffer.byteLength&&this.resize(t+8),this.view.setBigUint64(t,e,this.littleEndian),r&&(this.offset+=8),this}writeUInt64(e,t){return this.writeUint64(e,t)}readUint64(e){let t=typeof e>"u";t?e=this.offset:e=e;let r=this.view.getBigUint64(e,this.littleEndian);return t&&(this.offset+=8),r}readUInt64(e){return this.readUint64(e)}toBuffer(e){let t=this.offset,r=this.limit;return !e&&t===0&&r===this.buffer.byteLength?this.buffer:t===r?ue:this.buffer.slice(t,r)}toArrayBuffer(e){return this.toBuffer(e)}writeVarint32(e,t){let r=typeof t>"u";r?t=this.offset:t=t;let i=this.calculateVarint32(e);for(t+i>this.buffer.byteLength&&this.resize(t+i),e>>>=0;e>=128;)this.view.setUint8(t++,e&127|128),e>>>=7;return this.view.setUint8(t++,e),r?(this.offset=t,this):i}readVarint32(e){let t=typeof e>"u";typeof e>"u"&&(e=this.offset);let r=0,i=0,o;do o=this.view.getUint8(e++),r<5&&(i|=(o&127)<<7*r),++r;while((o&128)!==0);return i|=0,t?(this.offset=e,i):{value:i,length:r}}calculateVarint32(e){return e=e>>>0,e<128?1:e<16384?2:e<1<<21?3:e<1<<28?4:5}writeVString(e,t){let r=typeof t>"u",i=r?this.offset:t,o=Kt().encode(e),a=o.length,u=this.calculateVarint32(a);return i+u+a>this.buffer.byteLength&&this.resize(i+u+a),this.writeVarint32(a,i),i+=u,new Uint8Array(this.buffer).set(o,i),i+=a,r?(this.offset=i,this):i-(t||0)}readVString(e){let t=typeof e>"u";t?e=this.offset:e=e;let r=e,i=this.readVarint32(e),o=i.value,a=i.length;e+=a;let u=He().decode(new Uint8Array(this.buffer,e,o));return e+=o,t?(this.offset=e,u):{string:u,length:e-r}}readUTF8String(e,t){let r=typeof t>"u";r?t=this.offset:t=t;let i=He().decode(new Uint8Array(this.buffer,t,e));return r?(this.offset+=e,i):{string:i,length:e}}};var f={nodes:["https://api.hive.blog","https://api.deathwing.me","https://api.openhive.network","https://api.syncad.com","https://rpc.mahdiyari.info"],restNodes:["https://api.hive.blog","https://rpc.mahdiyari.info","https://api.syncad.com","https://hiveapi.actifit.io","https://api.c0ff33a.uk"],restNodesByApi:{hivesense:["https://api.hive.blog","https://api.syncad.com"]},userAgent:"ecency-sdk",chain_id:"beeab0de00000000000000000000000000000000000000000000000000000000",address_prefix:"STM",timeout:5e3,broadcastTimeout:15e3,retry:5,resilience:{adaptiveTimeout:true,adaptiveTimeoutFloorMs:2e3,adaptiveTimeoutFactor:4,hedge:false,hedgeDelayFloorMs:750,hedgeDelayFactor:2,hedgeBucketCapacity:10,hedgeRefillPerSuccess:.1,totalBudgetFactor:2}},Ve=["bridge.get_ranked_posts","bridge.get_account_posts","bridge.get_post","bridge.get_discussion","bridge.get_profile","bridge.get_profiles","bridge.get_community","bridge.list_communities","condenser_api.get_accounts","condenser_api.get_content","condenser_api.get_dynamic_global_properties","condenser_api.get_trending_tags"],de=null,Ht=n=>{if(n===null){de=null;return}if(!n||typeof n!="object")return;let e=typeof n.url=="string"?n.url.trim():"";if(!/^https?:\/\//i.test(e))return;let t={};if(n.headers&&typeof n.headers=="object")for(let[a,u]of Object.entries(n.headers))typeof u=="string"&&u&&!/[\u0000-\u001f\u007f]/.test(u)&&!/[\u0000-\u001f\u007f]/.test(a)&&(t[a]=u);let r=typeof n.timeoutMs=="number"&&Number.isFinite(n.timeoutMs)&&n.timeoutMs>0?n.timeoutMs:2e3,i=n.methods===void 0?[...Ve]:Array.isArray(n.methods)?n.methods.filter(a=>typeof a=="string"&&a.includes(".")):[];if(i.length===0)return;let o=(a,u)=>typeof a=="number"&&Number.isFinite(a)&&a>0?a:u;de={url:e,headers:t,timeoutMs:r,methods:i,failureThreshold:Math.floor(o(n.failureThreshold,3)),cooldownMs:o(n.cooldownMs,1e4),methodSet:new Set(i)};},Se=n=>Array.isArray(n)?[...new Set(n.filter(e=>typeof e=="string").map(e=>e.trim().replace(/\/+$/,"")).filter(e=>e.length>0&&/^https?:\/\/.+/.test(e)))]:[],Vt=n=>{let e=Se(n);e.length&&(f.nodes=e);},$t=n=>{let e=Se(n);e.length&&(f.restNodes=e);},jt=n=>{if(!n||typeof n!="object")return;let e={...f.restNodesByApi};for(let[t,r]of Object.entries(n)){let i=Se(r);i.length?e[t]=i:delete e[t];}f.restNodesByApi=e;},qt=n=>{if(typeof n!="string")return;let e=n.trim();!e||/[\u0000-\u001f\u007f]/.test(e)||(f.userAgent=e);},Wt=n=>{if(!n||typeof n!="object")return;let e=f.resilience,t=i=>typeof i=="boolean",r=i=>typeof i=="number"&&Number.isFinite(i)&&i>0;t(n.adaptiveTimeout)&&(e.adaptiveTimeout=n.adaptiveTimeout),r(n.adaptiveTimeoutFloorMs)&&(e.adaptiveTimeoutFloorMs=Math.max(n.adaptiveTimeoutFloorMs,2e3)),r(n.adaptiveTimeoutFactor)&&(e.adaptiveTimeoutFactor=n.adaptiveTimeoutFactor),t(n.hedge)&&(e.hedge=n.hedge),r(n.hedgeDelayFloorMs)&&(e.hedgeDelayFloorMs=n.hedgeDelayFloorMs),r(n.hedgeDelayFactor)&&(e.hedgeDelayFactor=n.hedgeDelayFactor),r(n.hedgeBucketCapacity)&&(e.hedgeBucketCapacity=n.hedgeBucketCapacity),r(n.hedgeRefillPerSuccess)&&(e.hedgeRefillPerSuccess=Math.min(n.hedgeRefillPerSuccess,1)),r(n.totalBudgetFactor)&&(e.totalBudgetFactor=Math.max(n.totalBudgetFactor,1));};var Y=class n{data;recovery;compressed;constructor(e,t,r){this.data=e,this.recovery=t,this.compressed=r??true;}static from(e){if(typeof e=="string"){let t=utils_js.hexToBytes(e),r=parseInt(utils_js.bytesToHex(t.subarray(0,1)),16)-31,i=true;r<0&&(i=false,r=r+4);let o=t.subarray(1);return new n(o,r,i)}else throw new Error("Expected string for data")}toBuffer(){let e=new Uint8Array(65).fill(0);return this.compressed?e[0]=this.recovery+31&255:e[0]=this.recovery+27&255,e.set(this.data,1),e}customToString(){return utils_js.bytesToHex(this.toBuffer())}toString(){return this.customToString()}getPublicKey(e){if(e instanceof Uint8Array&&e.length!==32||typeof e=="string"&&e.length!==64)throw new Error("Expected a valid sha256 hash as message");typeof e=="string"&&(e=utils_js.hexToBytes(e));let t=secp256k1_js.secp256k1.Signature.fromBytes(this.data,"compact"),r=new secp256k1_js.secp256k1.Signature(t.r,t.s,this.recovery);return new P(r.recoverPublicKey(e).toBytes())}};var P=class n{key;prefix;constructor(e,t){this.key=e,this.prefix=t??f.address_prefix;}static fromString(e){let t=f.address_prefix;if(typeof e!="string"||e.length<=t.length)throw new Error("Invalid public key");let r=e.slice(0,t.length);if(r!==t)throw new Error(`Public key must start with ${t}`);let i;try{i=Je__default.default.decode(e.slice(t.length));}catch{throw new Error("Invalid public key encoding")}if(i.length!==37)throw new Error("Invalid public key length");let o=i.subarray(0,33),a=i.subarray(33,37),u=legacy_js.ripemd160(o).subarray(0,4);if(!Jt(a,u))throw new Error("Public key checksum mismatch");try{secp256k1_js.secp256k1.Point.fromBytes(o);}catch{throw new Error("Invalid public key")}return new n(o,r)}static from(e){return e instanceof n?e:n.fromString(e)}verify(e,t){return typeof t=="string"&&(t=Y.from(t)),secp256k1_js.secp256k1.verify(t.data,e,this.key,{prehash:false,format:"compact"})}toString(){return Yt(this.key,this.prefix)}toJSON(){return this.toString()}inspect(){return `PublicKey: ${this.toString()}`}},Yt=(n,e)=>{let t=legacy_js.ripemd160(n);return e+Je__default.default.encode(new Uint8Array([...n,...t.subarray(0,4)]))},Jt=(n,e)=>{if(n.byteLength!==e.byteLength)return false;for(let t=0;t<n.byteLength;t++)if(n[t]!==e[t])return false;return true};var he=class n{amount;symbol;constructor(e,t){this.amount=e,this.symbol=t==="HIVE"?"STEEM":t==="HBD"?"SBD":t;}static fromString(e,t=null){let[r,i]=e.split(" ");if(["STEEM","VESTS","SBD","TESTS","TBD","HIVE","HBD"].indexOf(i)===-1)throw new Error(`Invalid asset symbol: ${i}`);if(t&&i!==t)throw new Error(`Invalid asset, expected symbol: ${t} got: ${i}`);let o=Number.parseFloat(r);if(!Number.isFinite(o))throw new Error(`Invalid asset amount: ${r}`);return new n(o,i)}static from(e,t){if(e instanceof n){if(t&&e.symbol!==t)throw new Error(`Invalid asset, expected symbol: ${t} got: ${e.symbol}`);return e}else {if(typeof e=="number"&&Number.isFinite(e))return new n(e,t||"STEEM");if(typeof e=="string")return n.fromString(e,t);throw new Error(`Invalid asset '${String(e)}'`)}}getPrecision(){switch(this.symbol){case "TESTS":case "TBD":case "STEEM":case "SBD":case "HBD":case "HIVE":return 3;case "VESTS":return 6;default:return 3}}toString(){return `${this.amount.toFixed(this.getPrecision())} ${this.symbol}`}toJSON(){return this.toString()}};var me=class n{buffer;static from(e){return e instanceof n?e:e instanceof Uint8Array?new n(e):typeof e=="string"?new n(utils_js.hexToBytes(e)):new n(new Uint8Array(e))}constructor(e){this.buffer=e;}toString(){return utils_js.bytesToHex(this.buffer)}toJSON(){return this.toString()}};var h={vote:0,comment:1,transfer:2,transfer_to_vesting:3,withdraw_vesting:4,limit_order_create:5,limit_order_cancel:6,feed_publish:7,convert:8,account_create:9,account_update:10,witness_update:11,account_witness_vote:12,account_witness_proxy:13,custom:15,delete_comment:17,custom_json:18,comment_options:19,set_withdraw_vesting_route:20,limit_order_create2:21,claim_account:22,create_claimed_account:23,request_account_recovery:24,recover_account:25,change_recovery_account:26,escrow_transfer:27,escrow_dispute:28,escrow_release:29,escrow_approve:31,transfer_to_savings:32,transfer_from_savings:33,cancel_transfer_from_savings:34,decline_voting_rights:36,reset_account:37,set_reset_account:38,claim_reward_balance:39,delegate_vesting_shares:40,account_create_with_delegation:41,witness_set_properties:42,account_update2:43,create_proposal:44,update_proposal_votes:45,remove_proposal:46,update_proposal:47,collateralized_convert:48,recurrent_transfer:49},N=()=>{throw new Error("Void can not be serialized")},s=(n,e)=>{n.writeVString(e);},Zt=(n,e)=>{n.writeInt16(e);},Xe=(n,e)=>{n.writeInt64(e);},Ge=(n,e)=>{n.writeUint8(e);},M=(n,e)=>{n.writeUint16(e);},I=(n,e)=>{n.writeUint32(e);},Ze=(n,e)=>{n.writeUint64(e);},K=(n,e)=>{n.writeByte(e?1:0);},Qe=n=>(e,t)=>{let[r,i]=t;e.writeVarint32(r),n[r](e,i);},x=(n,e)=>{let t=he.from(e),r=t.getPrecision();n.writeInt64(Math.round(t.amount*Math.pow(10,r))),n.writeUint8(r);for(let i=0;i<7;i++)n.writeUint8(t.symbol.charCodeAt(i)||0);},$=(n,e)=>{n.writeUint32(Math.floor(new Date(e+"Z").getTime()/1e3));},D=(n,e)=>{e===null||typeof e=="string"&&e.slice(-39)==="1111111111111111111111111111111114T1Anm"?n.append(new Uint8Array(33).fill(0)):n.append(P.from(e).key);},et=(n=null)=>(e,t)=>{t=me.from(t);let r=t.buffer.length;if(n){if(r!==n)throw new Error(`Unable to serialize binary. Expected ${n} bytes, got ${r}`)}else e.writeVarint32(r);e.append(t.buffer);},tt=et(),Qt=(n,e)=>(t,r)=>{t.writeVarint32(r.length);for(let[i,o]of r)n(t,i),e(t,o);},er=(n,e)=>{let t=Math.min(n.length,e.length);for(let r=0;r<t;r++)if(n[r]!==e[r])return n[r]-e[r];return n.length-e.length},tr=n=>{let e=new A(33,A.LITTLE_ENDIAN);return D(e,n),e.flip(),new Uint8Array(e.toBuffer())},rt=n=>Uint8Array.from(n,e=>e.charCodeAt(0)),Te=(n,e,t)=>{let r=Qt(n,e);return (i,o)=>{let a=o.map(u=>({entry:u,bytes:t(u[0])})).sort((u,c)=>er(u.bytes,c.bytes)).map(({entry:u})=>u);r(i,a);}},T=n=>(e,t)=>{e.writeVarint32(t.length);for(let r of t)n(e,r);},F=n=>(e,t)=>{for(let[r,i]of n)try{i(e,t[r]);}catch(o){throw o.message=`${r}: ${o.message}`,o}},J=n=>(e,t)=>{t!=null?(e.writeByte(1),n(e,t)):e.writeByte(0);},U=F([["weight_threshold",I],["account_auths",Te(s,M,rt)],["key_auths",Te(D,M,tr)]]),rr=F([["account",s],["weight",M]]),Ee=F([["base",x],["quote",x]]),nr=F([["account_creation_fee",x],["maximum_block_size",I],["hbd_interest_rate",M]]),m=(n,e)=>{let t=F(e);return (r,i)=>{r.writeVarint32(n),t(r,i);}},d={};d.account_create=m(h.account_create,[["fee",x],["creator",s],["new_account_name",s],["owner",U],["active",U],["posting",U],["memo_key",D],["json_metadata",s]]);d.account_create_with_delegation=m(h.account_create_with_delegation,[["fee",x],["delegation",x],["creator",s],["new_account_name",s],["owner",U],["active",U],["posting",U],["memo_key",D],["json_metadata",s],["extensions",T(N)]]);d.account_update=m(h.account_update,[["account",s],["owner",J(U)],["active",J(U)],["posting",J(U)],["memo_key",D],["json_metadata",s]]);d.account_witness_proxy=m(h.account_witness_proxy,[["account",s],["proxy",s]]);d.account_witness_vote=m(h.account_witness_vote,[["account",s],["witness",s],["approve",K]]);d.cancel_transfer_from_savings=m(h.cancel_transfer_from_savings,[["from",s],["request_id",I]]);d.change_recovery_account=m(h.change_recovery_account,[["account_to_recover",s],["new_recovery_account",s],["extensions",T(N)]]);d.claim_account=m(h.claim_account,[["creator",s],["fee",x],["extensions",T(N)]]);d.claim_reward_balance=m(h.claim_reward_balance,[["account",s],["reward_hive",x],["reward_hbd",x],["reward_vests",x]]);d.comment=m(h.comment,[["parent_author",s],["parent_permlink",s],["author",s],["permlink",s],["title",s],["body",s],["json_metadata",s]]);d.comment_options=m(h.comment_options,[["author",s],["permlink",s],["max_accepted_payout",x],["percent_hbd",M],["allow_votes",K],["allow_curation_rewards",K],["extensions",T(Qe([F([["beneficiaries",T(rr)]])]))]]);d.convert=m(h.convert,[["owner",s],["requestid",I],["amount",x]]);d.create_claimed_account=m(h.create_claimed_account,[["creator",s],["new_account_name",s],["owner",U],["active",U],["posting",U],["memo_key",D],["json_metadata",s],["extensions",T(N)]]);d.custom=m(h.custom,[["required_auths",T(s)],["id",M],["data",tt]]);d.custom_json=m(h.custom_json,[["required_auths",T(s)],["required_posting_auths",T(s)],["id",s],["json",s]]);d.decline_voting_rights=m(h.decline_voting_rights,[["account",s],["decline",K]]);d.delegate_vesting_shares=m(h.delegate_vesting_shares,[["delegator",s],["delegatee",s],["vesting_shares",x]]);d.delete_comment=m(h.delete_comment,[["author",s],["permlink",s]]);d.escrow_approve=m(h.escrow_approve,[["from",s],["to",s],["agent",s],["who",s],["escrow_id",I],["approve",K]]);d.escrow_dispute=m(h.escrow_dispute,[["from",s],["to",s],["agent",s],["who",s],["escrow_id",I]]);d.escrow_release=m(h.escrow_release,[["from",s],["to",s],["agent",s],["who",s],["receiver",s],["escrow_id",I],["hbd_amount",x],["hive_amount",x]]);d.escrow_transfer=m(h.escrow_transfer,[["from",s],["to",s],["hbd_amount",x],["hive_amount",x],["escrow_id",I],["agent",s],["fee",x],["json_meta",s],["ratification_deadline",$],["escrow_expiration",$]]);d.feed_publish=m(h.feed_publish,[["publisher",s],["exchange_rate",Ee]]);d.limit_order_cancel=m(h.limit_order_cancel,[["owner",s],["orderid",I]]);d.limit_order_create=m(h.limit_order_create,[["owner",s],["orderid",I],["amount_to_sell",x],["min_to_receive",x],["fill_or_kill",K],["expiration",$]]);d.limit_order_create2=m(h.limit_order_create2,[["owner",s],["orderid",I],["amount_to_sell",x],["exchange_rate",Ee],["fill_or_kill",K],["expiration",$]]);d.recover_account=m(h.recover_account,[["account_to_recover",s],["new_owner_authority",U],["recent_owner_authority",U],["extensions",T(N)]]);d.request_account_recovery=m(h.request_account_recovery,[["recovery_account",s],["account_to_recover",s],["new_owner_authority",U],["extensions",T(N)]]);d.reset_account=m(h.reset_account,[["reset_account",s],["account_to_reset",s],["new_owner_authority",U]]);d.set_reset_account=m(h.set_reset_account,[["account",s],["current_reset_account",s],["reset_account",s]]);d.set_withdraw_vesting_route=m(h.set_withdraw_vesting_route,[["from_account",s],["to_account",s],["percent",M],["auto_vest",K]]);d.transfer=m(h.transfer,[["from",s],["to",s],["amount",x],["memo",s]]);d.transfer_from_savings=m(h.transfer_from_savings,[["from",s],["request_id",I],["to",s],["amount",x],["memo",s]]);d.transfer_to_savings=m(h.transfer_to_savings,[["from",s],["to",s],["amount",x],["memo",s]]);d.transfer_to_vesting=m(h.transfer_to_vesting,[["from",s],["to",s],["amount",x]]);d.vote=m(h.vote,[["voter",s],["author",s],["permlink",s],["weight",Zt]]);d.withdraw_vesting=m(h.withdraw_vesting,[["account",s],["vesting_shares",x]]);d.witness_update=m(h.witness_update,[["owner",s],["url",s],["block_signing_key",D],["props",nr],["fee",x]]);d.witness_set_properties=m(h.witness_set_properties,[["owner",s],["props",Te(s,tt,rt)],["extensions",T(N)]]);d.account_update2=m(h.account_update2,[["account",s],["owner",J(U)],["active",J(U)],["posting",J(U)],["memo_key",J(D)],["json_metadata",s],["posting_json_metadata",s],["extensions",T(N)]]);d.create_proposal=m(h.create_proposal,[["creator",s],["receiver",s],["start_date",$],["end_date",$],["daily_pay",x],["subject",s],["permlink",s],["extensions",T(N)]]);d.update_proposal_votes=m(h.update_proposal_votes,[["voter",s],["proposal_ids",T(Xe)],["approve",K],["extensions",T(N)]]);d.remove_proposal=m(h.remove_proposal,[["proposal_owner",s],["proposal_ids",T(Xe)],["extensions",T(N)]]);var ir=F([["end_date",$]]);d.update_proposal=m(h.update_proposal,[["proposal_id",Ze],["creator",s],["daily_pay",x],["subject",s],["permlink",s],["extensions",T(Qe([N,ir]))]]);d.collateralized_convert=m(h.collateralized_convert,[["owner",s],["requestid",I],["amount",x]]);d.recurrent_transfer=m(h.recurrent_transfer,[["from",s],["to",s],["amount",x],["memo",s],["recurrence",M],["executions",M],["extensions",T(F([["type",Ge],["value",F([["pair_id",Ge]])]]))]]);var or=(n,e)=>{let t=d[e[0]];if(!t)throw new Error(`No serializer for operation: ${e[0]}`);try{t(n,e[1]);}catch(r){throw r.message=`${e[0]}: ${r.message}`,r}},sr=F([["ref_block_num",M],["ref_block_prefix",I],["expiration",$],["operations",T(or)],["extensions",T(s)]]),ar=F([["from",D],["to",D],["nonce",Ze],["check",I],["encrypted",et()]]),O={Asset:x,Memo:ar,Price:Ee,PublicKey:D,String:s,Transaction:sr,UInt16:M,UInt32:I};var ee=n=>new Promise(e=>setTimeout(e,n));var at=(()=>{try{return !(typeof navigator<"u"&&navigator.product==="ReactNative")&&typeof process<"u"&&process.versions!=null&&process.versions.node!=null}catch{return false}})();function Le(){return at?{"User-Agent":f.userAgent}:{}}var X={served:0,fallback:0,skipped:0,fallbackByReason:{status:0,rpcerror:0,timeout:0,transport:0,validate:0,parse:0}},q=class extends Error{constructor(t,r){super(r);this.reason=t;}reason},nt=n=>n instanceof Error?n.message:typeof n=="string"?n:String(n),te=0,Ue=0;function cr(){te=0,Ue=0;}async function ur(n,e,t,r,i,o){let a=e.indexOf(".");if(a<=0||a===e.length-1)throw new q("transport",`method without an api prefix: ${e}`);let{signal:u,cleanup:c}=Me(Math.min(n.timeoutMs,r)),{signal:p,cleanup:B}=be(u,i);try{let y;try{y=await fetch(n.url,{method:"POST",body:JSON.stringify({api:e.slice(0,a),method:e.slice(a+1),params:t}),headers:{"Content-Type":"application/json",...Le(),...n.headers},signal:p});}catch(l){throw i?.aborted?l:new q(u.aborted?"timeout":"transport",nt(l))}if(y.status!==200){try{await y.body?.cancel();}catch{}let l=y.status===502&&(y.headers.get("x-ssr-cache")??"").toUpperCase()==="RPCERROR";throw new q(l?"rpcerror":"status",l?"proxy relayed a node error":`proxy answered ${y.status}`)}let g;try{g=await y.json();}catch(l){throw i?.aborted?l:new q(u.aborted?"timeout":"parse",nt(l))}if(o&&!o(g))throw new q("validate","proxy result rejected by validator");return g}finally{c(),B();}}var R=class extends Error{name="RPCError";data;code;stack=void 0;constructor(e){super(e.message),this.code=e.code,"data"in e&&(this.data=e.data);}},W=class extends Error{node;rateLimitMs;isRateLimit;nodeWide;constructor(e,t,r={}){super(t),this.node=e,this.rateLimitMs=r.rateLimitMs??0,this.isRateLimit=r.isRateLimit??false,this.nodeWide=r.nodeWide??false;}};function ct(n){if(!n)return 0;let e=Number(n);if(Number.isFinite(e))return e>0?e*1e3:0;let t=Date.parse(n);if(Number.isFinite(t)){let r=t-Date.now();return r>0?r:0}return 0}var lr=["ECONNREFUSED","ENOTFOUND","EHOSTUNREACH","EAI_AGAIN"],fr=["Failed to fetch","NetworkError when attempting to fetch","Load failed","fetch failed"];function dr(n){if(!n)return "";let e=[String(n.name||""),String(n.message||""),String(n.code||"")],t=n.cause;for(let r=0;t&&r<5;r++)e.push(String(t.code||""),String(t.message||"")),t=t.cause;return e.join(" ")}function hr(n){if(!n)return false;if(n instanceof W)return true;if(n instanceof R)return false;let e=dr(n);return !!(lr.some(t=>e.includes(t))||fr.some(t=>e.includes(t))||n instanceof SyntaxError||/Unexpected token|JSON\.parse|Unexpected end of JSON/i.test(e))}function ke(n,e){return !!(n===-32603||n<=-32e3&&n>=-32099||n===-32601||n===-32602&&/unable to parse|endpoint data|internal/i.test(e))}function ut(n){let e=n.indexOf(".");return e>0?n.slice(0,e):n}var mr=1e4,pr=6e4,yr=12e4,it=2,ot=6e4,st=12e4,gr=30,re=.3,Pe=3,ne=5*6e4,lt=6e4,ft=1e3,dt=2e3,ye=class{health=new Map;getOrCreate(e){let t=this.health.get(e);return t||(t={consecutiveFailures:0,lastFailureTime:0,rateLimitedUntil:0,rateLimitStreak:0,lastRateLimitAt:0,apiFailures:new Map,headBlock:0,headBlockUpdatedAt:0,ewmaLatencyMs:void 0,latencySampleCount:0,latencyUpdatedAt:0,lastProbeAt:Date.now(),apiLatency:new Map},this.health.set(e,t)),t}recordSuccess(e,t,r,i){let o=this.getOrCreate(e);if(o.consecutiveFailures=0,o.rateLimitStreak=0,t){let a=o.apiFailures.get(t);(!a||!(a.defective&&a.cooldownUntil>Date.now()))&&o.apiFailures.delete(t);}typeof r=="number"&&Number.isFinite(r)&&r>=0&&this.recordLatency(o,r,i??t);}recordSlowFailure(e,t,r){!Number.isFinite(t)||t<dt||this.recordLatency(this.getOrCreate(e),t,r);}getUsableLatencyMs(e,t){let r=this.health.get(e);if(!r)return;let i=Date.now();if(t!==void 0){let o=r.apiLatency.get(t);return o&&o.sampleCount>=Pe&&i-o.updatedAt<=ne?o.ewmaMs:void 0}return this.isLatencyUsable(r,i)?r.ewmaLatencyMs:void 0}recordCensoredLatency(e,t,r){!Number.isFinite(t)||t<50||this.recordLatency(this.getOrCreate(e),t,r);}recordLatency(e,t,r){let i=Date.now();if(e.latencyUpdatedAt>0&&i-e.latencyUpdatedAt>ne&&(e.ewmaLatencyMs=void 0,e.latencySampleCount=0,e.apiLatency.clear()),e.ewmaLatencyMs=e.ewmaLatencyMs===void 0?t:re*t+(1-re)*e.ewmaLatencyMs,e.latencySampleCount++,e.latencyUpdatedAt=i,r!==void 0){let o=e.apiLatency.get(r);!o||i-o.updatedAt>ne?e.apiLatency.set(r,{ewmaMs:t,sampleCount:1,updatedAt:i}):(o.ewmaMs=re*t+(1-re)*o.ewmaMs,o.sampleCount++,o.updatedAt=i);}}recordFailure(e,t){let r=this.getOrCreate(e);if(t){let i=Date.now(),o=r.apiFailures.get(t)??{count:0,cooldownUntil:0,lastFailureTime:0};(o.cooldownUntil>0&&o.cooldownUntil<=i||o.lastFailureTime>0&&i-o.lastFailureTime>3e4)&&(o.count=0,o.cooldownUntil=0),o.count++,o.lastFailureTime=i,o.count>=it&&(o.cooldownUntil=i+ot),r.apiFailures.set(t,o);}else r.consecutiveFailures++,r.lastFailureTime=Date.now();}recordDefectiveResponse(e,t){let r=this.getOrCreate(e),i=Date.now(),o=r.apiFailures.get(t)??{count:0,cooldownUntil:0,lastFailureTime:0};o.count=Math.max(o.count+1,it),o.lastFailureTime=i,o.cooldownUntil=i+ot,o.defective=true,r.apiFailures.set(t,o);}recordRateLimit(e,t){let r=this.getOrCreate(e),i=Date.now();r.rateLimitStreak>0&&i-r.lastRateLimitAt>yr&&(r.rateLimitStreak=0);let o=typeof t=="number"&&Number.isFinite(t)&&t>0,a=o?t:Math.min(mr*2**r.rateLimitStreak,pr);o||r.rateLimitStreak++,r.lastRateLimitAt=i,r.rateLimitedUntil=o?i+a:Math.max(r.rateLimitedUntil,i+a),r.consecutiveFailures++,r.lastFailureTime=i;}recordHeadBlock(e,t){if(!t||!Number.isFinite(t))return;let r=this.getOrCreate(e);r.headBlock=t,r.headBlockUpdatedAt=Date.now();}consensusHeadBlock(){let e=Date.now(),t=[];for(let r of this.health.values())r.headBlock>0&&e-r.headBlockUpdatedAt<=st&&t.push(r.headBlock);return t.length<2?0:(t.sort((r,i)=>r-i),t[Math.floor((t.length-1)/2)])}isNodeHealthy(e,t){let r=this.health.get(e);if(!r)return true;let i=Date.now();if(r.rateLimitedUntil>i||r.consecutiveFailures>=3&&i-r.lastFailureTime<3e4)return false;if(t){let a=r.apiFailures.get(t);if(a&&a.cooldownUntil>i)return false}let o=this.consensusHeadBlock();return !(o>0&&r.headBlock>0&&i-r.headBlockUpdatedAt<=st&&o-r.headBlock>gr)}getOrderedNodes(e,t){let r=[],i=[];for(let c of e)this.isNodeHealthy(c,t)?r.push(c):i.push(c);if(r.length<=1)return [...r,...i];let o=Date.now(),a=r.map((c,p)=>({node:c,i:p,score:this.scoreNode(c,o)})).sort((c,p)=>c.score-p.score||c.i-p.i).map(c=>c.node),u=this.pickReprobeCandidate(r,o);return u&&a[0]!==u?[u,...a.filter(c=>c!==u),...i]:[...a,...i]}isLatencyUsable(e,t){return !!e&&e.ewmaLatencyMs!==void 0&&e.latencySampleCount>=Pe&&t-e.latencyUpdatedAt<=ne}scoreNode(e,t){let r=this.health.get(e);return this.isLatencyUsable(r,t)?r.ewmaLatencyMs:ft}pickReprobeCandidate(e,t){let r=t-lt,i,o=1/0;for(let a of e){let u=this.getOrCreate(a),c=Math.max(u.latencyUpdatedAt,u.lastProbeAt);c<=r&&c<o&&(i=a,o=c);}return i&&(this.getOrCreate(i).lastProbeAt=t),i}},E=new ye,j=new ye,Ie=class{tokens=f.resilience.hedgeBucketCapacity;trySpend(){return this.clamp(),this.tokens>=1-1e-9?(this.tokens-=1,true):false}refill(){this.clamp(),this.tokens=Math.min(f.resilience.hedgeBucketCapacity,this.tokens+f.resilience.hedgeRefillPerSuccess);}clamp(){this.tokens>f.resilience.hedgeBucketCapacity&&(this.tokens=f.resilience.hedgeBucketCapacity);}get available(){return this.tokens}reset(e=f.resilience.hedgeBucketCapacity){this.tokens=e;}},Re=new Ie;function ge(n,e,t,r,i){let o=f.resilience;if(!o.adaptiveTimeout||i)return r;let a=n.getUsableLatencyMs(e,t);return a===void 0?r:Math.ceil(Math.min(r,Math.max(o.adaptiveTimeoutFloorMs,o.adaptiveTimeoutFactor*a)))}function Ne(n,e,t,r){t instanceof W?t.isRateLimit?n.recordRateLimit(e,t.rateLimitMs||void 0):t.nodeWide?n.recordFailure(e):n.recordFailure(e,r):t instanceof R?n.recordFailure(e,r):n.recordFailure(e);}function ht(n,e,t,r){if(!r||typeof r!="object"||!t.includes("get_dynamic_global_properties"))return;let i=r.head_block_number;typeof i=="number"&&n.recordHeadBlock(e,i);}function br(){if(typeof DOMException<"u")return new DOMException("The operation was aborted due to timeout","TimeoutError");let n=new Error("The operation was aborted due to timeout");return n.name="TimeoutError",n}function Me(n){if(n=Math.ceil(n),typeof AbortSignal.timeout=="function")return {signal:AbortSignal.timeout(n),cleanup:()=>{}};let e=new AbortController,t=setTimeout(()=>e.abort(br()),n);return {signal:e.signal,cleanup:()=>clearTimeout(t)}}function be(n,e){if(!e)return {signal:n,cleanup:()=>{}};if(typeof AbortSignal.any=="function")return {signal:AbortSignal.any([n,e]),cleanup:()=>{}};let t=new AbortController;if(n.aborted)return t.abort(n.reason),{signal:t.signal,cleanup:()=>{}};if(e.aborted)return t.abort(e.reason),{signal:t.signal,cleanup:()=>{}};let r=()=>t.abort(n.reason),i=()=>t.abort(e.reason);n.addEventListener("abort",r,{once:true}),e.addEventListener("abort",i,{once:true});let o=()=>{n.removeEventListener("abort",r),e.removeEventListener("abort",i);};return {signal:t.signal,cleanup:o}}var ie=async(n,e,t,r=f.timeout,i=false,o)=>{let a=Math.floor(Math.random()*1e8),u={jsonrpc:"2.0",method:e,params:t,id:a},{signal:c,cleanup:p}=Me(r),{signal:B,cleanup:y}=be(c,o),g=()=>{p(),y();};try{let l=await fetch(n,{method:"POST",body:JSON.stringify(u),headers:{"Content-Type":"application/json",...Le()},signal:B});if(l.status===429)throw new W(n,"HTTP 429 Rate Limited",{rateLimitMs:ct(l.headers.get("Retry-After")),isRateLimit:!0});if(l.status>=500&&l.status<600)throw new W(n,`HTTP ${l.status} from ${n}`);let b;if(l.ok)b=await l.json();else {let v;try{v=JSON.parse(await l.text());}catch{v=void 0;}if(v?.jsonrpc!=="2.0"||v?.id!==a)throw new W(n,`HTTP ${l.status} from ${n}`,{nodeWide:!0});b=v;}if(!b||typeof b.id>"u"||b.id!==a||b.jsonrpc!=="2.0")throw new Error("JSONRPC id mismatch");if("result"in b)return b.result;if("error"in b){let v=b.error;throw "message"in v&&"code"in v?new R(v):b.error}throw b}catch(l){if(l instanceof R||l instanceof W||o?.aborted)throw l;if(i)return ie(n,e,t,r,false,o);throw l}finally{g();}};function pe(){return ee(50+Math.random()*50)}function _r(n){let{method:e,params:t,api:r,primary:i,hedgePool:o,callerTimeout:a,explicitTimeout:u,deadlineAt:c,externalSignal:p,onHedgeFired:B,validate:y}=n;return new Promise((g,l)=>{let b=false,v=0,S=false,H=false,_,V,Z=0,G=[],z=k=>{if(!b){b=true,V!==void 0&&(clearTimeout(V),V=void 0);for(let w of G)w.signal.aborted||w.abort();k();}},ce=(k,w)=>{v++;let C=new AbortController;G.push(C);let Q=be(C.signal,p),Ot=ge(E,k,e,a,u),Be=Date.now();w||(Z=Be),ie(k,e,t,Ot,false,Q.signal).then(L=>{if(Q.cleanup(),v--,w||(H=true),!b){if(y&&!y(L)){if(E.recordDefectiveResponse(k,r),_=new Error(`[hive-tx] response validation failed for ${e} from ${k}`),!w&&!S){z(()=>l(_));return}v===0&&z(()=>l(_));return}E.recordSuccess(k,r,Date.now()-Be,e),ht(E,k,e,L),w?H||E.recordCensoredLatency(i,Date.now()-Z,e):S||Re.refill(),z(()=>g(L));}}).catch(L=>{if(Q.cleanup(),v--,w||(H=true),!b){if(p?.aborted){z(()=>l(L));return}if(L instanceof R&&!ke(L.code,L.message)){z(()=>l(L));return}if(Ne(E,k,L,r),E.recordSlowFailure(k,Date.now()-Be,e),_=L,!w&&!S){z(()=>l(L));return}v===0&&z(()=>l(_));}});};ce(i,false);let Ae=E.getUsableLatencyMs(i,e)??0,ve=ge(E,i,e,a,u),xe=Math.min(Math.max(f.resilience.hedgeDelayFloorMs,f.resilience.hedgeDelayFactor*Ae),.8*ve);V=setTimeout(()=>{if(V=void 0,b||p?.aborted||Date.now()>=c)return;let k=o.filter(C=>E.isNodeHealthy(C,r));if(k.length===0)return;let w=k[Math.floor(Math.random()*k.length)];Re.trySpend()&&(S=true,B(w),ce(w,true));},xe);})}var oe=async(n,e=[],t,r=f.retry,i,o)=>{if(!Array.isArray(f.nodes))throw new Error("config.nodes is not an array");if(f.nodes.length===0)throw new Error("config.nodes is empty");let a=t!==void 0,u=t??f.timeout,c=ut(n),p=de;if(p&&at&&p.methodSet.has(n))if(Date.now()<Ue)X.skipped++;else try{let l=await ur(p,n,e,u,i,o);return X.served++,te=0,l}catch(l){if(i?.aborted)throw l;X.fallback++;let b=l instanceof q?l.reason:"transport";X.fallbackByReason[b]=(X.fallbackByReason[b]??0)+1,b==="rpcerror"?te=0:++te>=p.failureThreshold&&(Ue=Date.now()+p.cooldownMs,te=0);}let B=Date.now()+f.resilience.totalBudgetFactor*u,y=new Set,g;for(let l=0;l<=r&&!(l>0&&Date.now()>=B);l++){let b=E.getOrderedNodes(f.nodes,c),v=b.find(_=>!y.has(_));v||(y.clear(),v=b[0]),y.add(v);let S=[];if(f.resilience.hedge&&E.getUsableLatencyMs(v,n)!==void 0&&(S=b.filter(_=>!y.has(_)&&E.isNodeHealthy(_,c)).slice(0,3)),S.length>0)try{return await _r({method:n,params:e,api:c,primary:v,hedgePool:S,callerTimeout:u,explicitTimeout:a,deadlineAt:B,externalSignal:i,onHedgeFired:_=>y.add(_),validate:o})}catch(_){if(_ instanceof R&&!ke(_.code,_.message)||i?.aborted)throw _;g=_,l<r&&await pe();continue}let H=Date.now();try{let _=await ie(v,n,e,ge(E,v,n,u,a),!1,i);if(o&&!o(_)){E.recordDefectiveResponse(v,c),g=new Error(`[hive-tx] response validation failed for ${n} from ${v}`),l<r&&await pe();continue}return E.recordSuccess(v,c,Date.now()-H,n),Re.refill(),ht(E,v,n,_),_}catch(_){if(_ instanceof R&&!ke(_.code,_.message)||i?.aborted)throw _;Ne(E,v,_,c),E.recordSlowFailure(v,Date.now()-H,n),g=_,l<r&&await pe();}}throw g},De=async(n,e=[],t=f.broadcastTimeout,r,i={})=>{if(!Array.isArray(f.nodes))throw new Error("config.nodes is not an array");if(f.nodes.length===0)throw new Error("config.nodes is empty");let o=ut(n),a=new Set,u,c;for(let p=0;p<f.nodes.length;p++){if(c&&!(Date.now()<(i.failoverOnTimeoutUntil??0)))throw c;let y=E.getOrderedNodes(f.nodes,o).find(g=>!a.has(g));if(!y)break;if(a.add(y),r?.aborted)throw new Error("Aborted");try{let g=await ie(y,n,e,t,!1,r);return E.recordSuccess(y,o),g}catch(g){if(g instanceof R||r?.aborted)throw g;Ne(E,y,g,o),u=g;let l=g?.name==="TimeoutError"||g?.name==="AbortError",b=l&&i.failoverOnTimeoutUntil!==void 0&&Date.now()<i.failoverOnTimeoutUntil;if(!hr(g)&&!b)throw c??g;l&&(c??=g);}}throw c??u},wr={balance:"/balance-api",hafah:"/hafah-api",hafbe:"/hafbe-api",hivemind:"/hivemind-api",hivesense:"/hivesense-api",reputation:"/reputation-api","nft-tracker":"/nft-tracker-api",hafsql:"/hafsql",status:"/status-api"};async function Ar(n,e,t,r,i=f.retry,o){if(!Array.isArray(f.restNodes))throw new Error("config.restNodes is not an array");if(f.restNodes.length===0)throw new Error("config.restNodes is empty");let a=r!==void 0,u=r??f.timeout,c=Date.now()+f.resilience.totalBudgetFactor*u,p=`${n}:${e}`,B=f.restNodesByApi?.[n]?.length?f.restNodesByApi[n]:f.restNodes,y=new Set,g,l=false;for(let b=0;b<=i&&!(b>0&&Date.now()>=c);b++){let v=j.getOrderedNodes(B,n),S=v.find(w=>!y.has(w));S||(y.clear(),S=v[0]),y.add(S);let H=S+wr[n],_=e,V=t||{},Z=new Set;Object.entries(V).forEach(([w,C])=>{_.includes(`{${w}}`)&&(_=_.replace(`{${w}}`,encodeURIComponent(String(C))),Z.add(w));});let G=new URL(H+_);if(Object.entries(V).forEach(([w,C])=>{Z.has(w)||(Array.isArray(C)?C.forEach(Q=>G.searchParams.append(w,String(Q))):G.searchParams.set(w,String(C)));}),o?.aborted)throw new Error("Aborted");l=false;let{signal:z,cleanup:ce}=Me(ge(j,S,p,u,a)),{signal:Ae,cleanup:ve}=be(z,o),xe=()=>{ce(),ve();},k=Date.now();try{let w=await fetch(G.toString(),{signal:Ae,headers:Le()});if(w.status===404)throw new Error("HTTP 404 - Hint: can happen on wrong params");if(w.status===429)throw j.recordRateLimit(S,ct(w.headers.get("Retry-After"))||void 0),l=!0,new Error(`HTTP 429 Rate Limited by ${S}`);if(w.status===503)throw j.recordFailure(S,n),l=!0,new Error(`HTTP 503 Service Unavailable from ${S}`);if(!w.ok)throw j.recordFailure(S,n),l=!0,new Error(`HTTP ${w.status} from ${S}`);return j.recordSuccess(S,n,Date.now()-k,p),w.json()}catch(w){if(w?.message?.includes("HTTP 404")||o?.aborted)throw w;l||j.recordFailure(S,n),j.recordSlowFailure(S,Date.now()-k,p),g=w,b<i&&await pe();}finally{xe();}}throw g}var vr=async(n,e=[],t=2,r)=>{if(!Array.isArray(f.nodes))throw new Error("config.nodes is not an Array");if(t>f.nodes.length)throw new Error("quorum > config.nodes.length");let o=(c=>{let p=[...c];for(let B=p.length-1;B>0;B--){let y=Math.floor(Math.random()*(B+1));[p[B],p[y]]=[p[y],p[B]];}return p})(f.nodes),a=Math.min(t,o.length),u=[];for(;a>0&&o.length>0;){let c=o.splice(0,a),p=[],B=[];for(let g=0;g<c.length;g++)p.push(ie(c[g],n,e,void 0,true,r).then(l=>B.push(l)).catch(()=>{}));await Promise.all(p),u.push(...B);let y=xr(u,t);if(y)return y;if(a=Math.min(t,o.length),a===0)throw new Error("No more nodes available.")}throw new Error("Couldn't reach quorum.")};function xr(n,e){let t=new Map;for(let i of n){let o=JSON.stringify(i);t.has(o)||t.set(o,[]),t.get(o).push(i);}let r=Array.from(t.values()).find(i=>i.length>=e);return r?r[0]:null}var Sr=utils_js.hexToBytes(f.chain_id),gt=256,bt=64*1024,pt=2*1024*1024,Tr=bt-gt,Er=65,_e=class extends Error{size;limit;constructor(e,t){super(`Transaction too large: ${e} bytes. Hive allows up to ${t} bytes.`),this.name="TransactionTooLargeError",this.size=e,this.limit=t;}},Fe=3,_t=async()=>{let n=await oe("condenser_api.get_dynamic_global_properties",[]),e=n.head_block_number,t=n.head_block_id;try{let o=(await oe("condenser_api.get_block_header",[e-Fe+1],3e3,1))?.previous;typeof o=="string"&&/^[0-9a-f]{40}$/.test(o)&&parseInt(o.slice(0,8),16)===e-Fe&&(e-=Fe,t=o);}catch{}let r=utils_js.hexToBytes(t);return {ref_block_num:e&65535,ref_block_prefix:Number(new Uint32Array(r.buffer,r.byteOffset+4,1)[0]),maximum_block_size:n.maximum_block_size}},Oe=class n{transaction;expiration=6e4;maximumBlockSize;txId;constructor(e){e?.transaction&&(e.transaction instanceof n?(this.transaction=e.transaction.transaction,this.expiration=e.transaction.expiration,this.maximumBlockSize=e.transaction.maximumBlockSize):this.transaction=e.transaction,this.transaction&&!Array.isArray(this.transaction.signatures)&&(this.transaction.signatures=[]),this.txId=this.digest().txId),e?.expiration&&(this.expiration=e.expiration);}async addOperation(e,t){this.transaction||await this.createTransaction(this.expiration),this.transaction.operations.push([e,t]);}sign(e){if(!this.transaction)throw new Error("First create a transaction by .addOperation()");if(this.transaction){let{digest:t,txId:r}=this.digest();Array.isArray(e)||(e=[e]),this.assertSize(e.length);for(let i of e){let o=i.sign(t);this.transaction.signatures.push(o.customToString());}return this.txId=r,this.transaction}else throw new Error("No transaction to sign")}async broadcast(e=false){if(!this.transaction)throw new Error("Attempted to broadcast an empty transaction. Add operations by .addOperation()");if(this.transaction.signatures.length===0)throw new Error("Attempted to broadcast a transaction with no signatures. Sign using .sign(keys)");try{await De("condenser_api.broadcast_transaction",[this.transaction],void 0,void 0,{failoverOnTimeoutUntil:Date.parse(this.transaction.expiration+"Z")-f.broadcastTimeout-5e3});}catch(o){if(!(o instanceof R&&o.message.includes("Duplicate transaction check failed")))throw o}if(this.txId||(this.txId=this.digest().txId),!e)return {tx_id:this.txId,status:"unknown"};let t=60;await ee(1e3);let r=await this.checkStatus(),i=1;for(;r?.status!=="within_irreversible_block"&&r?.status!=="expired_irreversible"&&r?.status!=="too_old"&&i<t;)await ee(1e3+i*300),r=await this.checkStatus(),i++;return {tx_id:this.txId,status:r?.status??"unknown"}}digest(){if(!this.transaction)throw new Error("First create a transaction by .addOperation()");let e=this.serialize(),t=utils_js.bytesToHex(sha2_js.sha256(e)).slice(0,40);return {digest:sha2_js.sha256(new Uint8Array([...Sr,...e])),txId:t}}size(e=0){let t=(this.transaction?.signatures.length??0)+e,r=1;for(let i=t;i>=128;i>>>=7)r++;return this.serialize().length+r+t*Er}assertSize(e=0){let t=this.size(e),r=Number(this.maximumBlockSize),o=(r>=bt&&r<=pt?r:pt)-gt;if(t>o)throw new _e(t,o)}serialize(){if(!this.transaction)throw new Error("First create a transaction by .addOperation()");let e=new A(A.DEFAULT_CAPACITY,A.LITTLE_ENDIAN),t={...this.transaction};try{O.Transaction(e,t);}catch(r){throw new Error("Unable to serialize transaction: "+r)}return e.flip(),new Uint8Array(e.toBuffer())}addSignature(e){if(!this.transaction)throw new Error("First create a transaction by .create(operations)");if(typeof e!="string")throw new Error("Signature must be string");if(e.length!==130)throw new Error("Signature must be 130 characters long");return this.transaction.signatures.push(e),this.transaction}async checkStatus(){return this.txId||(this.txId=this.digest().txId),oe("transaction_status_api.find_transaction",{transaction_id:this.txId,expiration:this.transaction?.expiration})}createTransaction=async e=>{let t=await _t(),r=new Date(Date.now()+e).toISOString().slice(0,-5);this.maximumBlockSize=t.maximum_block_size,this.transaction={expiration:r,extensions:[],operations:[],ref_block_num:t.ref_block_num,ref_block_prefix:t.ref_block_prefix,signatures:[]};}};var xt=new Uint8Array([128]),ae=class n{key;constructor(e){this.key=e;try{secp256k1_js.secp256k1.getPublicKey(e);}catch{throw new Error("invalid private key")}}static from(e){return typeof e=="string"?n.fromString(e):new n(e)}static fromString(e){return new n(Ir(e).subarray(1))}static fromSeed(e){if(typeof e=="string")if(/^[0-9a-fA-F]+$/.test(e))e=utils_js.hexToBytes(e);else {let r=[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);if(o<128)r.push(o);else if(o<2048)r.push(192|o>>6,128|o&63);else if(o>=55296&&o<=56319&&i+1<e.length){let a=e.charCodeAt(++i);o=65536+((o&1023)<<10)+(a&1023),r.push(240|o>>18,128|o>>12&63,128|o>>6&63,128|o&63);}else r.push(224|o>>12,128|o>>6&63,128|o&63);}e=new Uint8Array(r);}return new n(sha2_js.sha256(e))}static fromLogin(e,t,r="active"){let i=e+r+t;return n.fromSeed(i)}sign(e){let t=secp256k1_js.secp256k1.sign(e,this.key,{extraEntropy:true,format:"recovered",prehash:false}),r=parseInt(utils_js.bytesToHex(t.subarray(0,1)),16);return Y.from((r+31).toString(16)+utils_js.bytesToHex(t.subarray(1)))}createPublic(e){return new P(secp256k1_js.secp256k1.getPublicKey(this.key),e)}toString(){return Pr(new Uint8Array([...xt,...this.key]))}inspect(){let e=this.toString();return `PrivateKey: ${e.slice(0,6)}...${e.slice(-6)}`}getSharedSecret(e){let t=secp256k1_js.secp256k1.getSharedSecret(this.key,e.key);return sha2_js.sha512(t.subarray(1))}static randomKey(){return new n(secp256k1_js.secp256k1.keygen().secretKey)}},Bt=n=>sha2_js.sha256(sha2_js.sha256(n)),Pr=n=>{let e=Bt(n);return Je__default.default.encode(new Uint8Array([...n,...e.slice(0,4)]))},Ir=n=>{let e=Je__default.default.decode(n);if(!At(e.slice(0,1),xt))throw new Error("Private key network id mismatch");let t=e.slice(-4),r=e.slice(0,-4),i=Bt(r).slice(0,4);if(!At(t,i))throw new Error("Private key checksum mismatch");return r},At=(n,e)=>{if(n===e)return true;if(n.byteLength!==e.byteLength)return false;let t=n.byteLength,r=0;for(;r<t&&n[r]===e[r];)r++;return r===t};var Ut=(n,e,t,r=Mr())=>Ke(n,e,r,t),kt=(n,e,t,r,i)=>{try{return Ke(n,e,t,r,i).message}catch(o){if(!(o instanceof Error)||o.message!=="Invalid key")throw o;let a=secp256k1_js.secp256k1.getSharedSecret(n.key,e.key).subarray(1),u=0;for(;u<a.length&&a[u]===0;)u++;if(u===0)throw o;try{return Ke(n,e,t,r,i,sha2_js.sha512(a.subarray(u))).message}catch{throw o}}},Ke=(n,e,t,r,i,o=n.getSharedSecret(e))=>{let a=t,u=o,c=new A(A.DEFAULT_CAPACITY,A.LITTLE_ENDIAN);c.writeUint64(a),c.append(u),c.flip();let p=sha2_js.sha512(new Uint8Array(c.toBuffer())),B=p.subarray(32,48),y=p.subarray(0,32),g=sha2_js.sha256(p).subarray(0,4),l=new A(A.DEFAULT_CAPACITY,A.LITTLE_ENDIAN);l.append(g),l.flip();let b=l.readUint32();if(i!==void 0){if(b!==i)throw new Error("Invalid key");r=Lr(r,y,B);}else r=Nr(r,y,B);return {nonce:a,message:r,checksum:b}},Lr=(n,e,t)=>{let r=n;return r=aes_js.cbc(e,t).decrypt(r),r},Nr=(n,e,t)=>{let r=n;return r=aes_js.cbc(e,t).encrypt(r),r},ze=null,Mr=()=>{if(ze===null){let t=secp256k1_js.secp256k1.utils.randomSecretKey();ze=t[0]<<8|t[1];}let n=BigInt(Date.now()),e=++ze%65536;return n=n<<BigInt(16)|BigInt(e),n};var Pt=n=>{let e=Kr(n,33);return new P(e)},Fr=n=>n.readUint64(),Or=n=>n.readUint32(),Cr=n=>{let e=n.readVarint32(),t=n.copy(n.offset,n.offset+e);return n.skip(e),new Uint8Array(t.toBuffer())},zr=n=>e=>{let t={},r=new A(A.DEFAULT_CAPACITY,A.LITTLE_ENDIAN);r.append(e),r.flip();for(let[i,o]of n)try{t[i]=o(r);}catch(a){throw a.message=`${i}: ${a.message}`,a}return t};function Kr(n,e){if(n){let t=n.copy(n.offset,n.offset+e);return n.skip(e),new Uint8Array(t.toBuffer())}else throw Error("No buffer found on first parameter")}var Hr=zr([["from",Pt],["to",Pt],["nonce",Fr],["check",Or],["encrypted",Cr]]),It={Memo:Hr};var Lt=(n,e,t,r)=>{if(!t.startsWith("#"))return t;t=t.substring(1),Mt(),n=Dt(n),e=Vr(e);let i=new A(A.DEFAULT_CAPACITY,A.LITTLE_ENDIAN);i.writeVString(t);let o=new Uint8Array(i.copy(0,i.offset).toBuffer()),{nonce:a,message:u,checksum:c}=Ut(n,e,o,r),p=new A(A.DEFAULT_CAPACITY,A.LITTLE_ENDIAN);O.Memo(p,{check:c,encrypted:u,from:n.createPublic(),nonce:a,to:e}),p.flip();let B=new Uint8Array(p.toBuffer());return "#"+Je__default.default.encode(B)},Nt=(n,e)=>{if(!e.startsWith("#"))return e;e=e.substring(1),Mt(),n=Dt(n);let t=It.Memo(Je__default.default.decode(e)),{from:r,to:i,nonce:o,check:a,encrypted:u}=t,p=n.createPublic().toString()===new P(r.key).toString()?new P(i.key):new P(r.key);t=kt(n,p,o,u,a);let B=new A(A.DEFAULT_CAPACITY,A.LITTLE_ENDIAN);return B.append(t),B.flip(),"#"+B.readVString()},we,Mt=()=>{if(we===void 0){let n;we=true;try{let e="5JdeC9P7Pbd1uGdFVEsJ41EkEnADbbHGq6p1BwFxm6txNBsQnsw",r=Lt(e,"STM8m5UgaFAAYQRuaNejYdS8FVLVp9Ss3K1qAVk5de6F8s3HnVbvA","#memo\u7231");n=Nt(e,r);}finally{we=n==="#memo\u7231";}}if(we===false)throw new Error("This environment does not support encryption.")},Dt=n=>typeof n=="string"?ae.fromString(n):n,Vr=n=>typeof n=="string"?P.fromString(n):n,$r={decode:Nt,encode:Lt};var Ft={};zt(Ft,{buildWitnessSetProperties:()=>Gr,makeBitMaskFilter:()=>Yr,operations:()=>Wr,validateUsername:()=>qr});var qr=n=>{let e="Account name should ";if(!n)return e+"not be empty.";let t=n.length;if(t<3)return e+"be longer.";if(t>16)return e+"be shorter.";/\./.test(n)&&(e="Each account segment should ");let r=n.split("."),i=r.length;for(let o=0;o<i;o++){let a=r[o];if(!/^[a-z]/.test(a))return e+"start with a lowercase letter.";if(!/^[a-z0-9-]*$/.test(a))return e+"have only lowercase letters, digits, or dashes.";if(!/[a-z0-9]$/.test(a))return e+"end with a lowercase letter or digit.";if(a.length<3)return e+"be longer."}return null},Wr={vote:0,comment:1,transfer:2,transfer_to_vesting:3,withdraw_vesting:4,limit_order_create:5,limit_order_cancel:6,feed_publish:7,convert:8,account_create:9,account_update:10,witness_update:11,account_witness_vote:12,account_witness_proxy:13,pow:14,custom:15,report_over_production:16,delete_comment:17,custom_json:18,comment_options:19,set_withdraw_vesting_route:20,limit_order_create2:21,claim_account:22,create_claimed_account:23,request_account_recovery:24,recover_account:25,change_recovery_account:26,escrow_transfer:27,escrow_dispute:28,escrow_release:29,pow2:30,escrow_approve:31,transfer_to_savings:32,transfer_from_savings:33,cancel_transfer_from_savings:34,custom_binary:35,decline_voting_rights:36,reset_account:37,set_reset_account:38,claim_reward_balance:39,delegate_vesting_shares:40,account_create_with_delegation:41,witness_set_properties:42,account_update2:43,create_proposal:44,update_proposal_votes:45,remove_proposal:46,update_proposal:47,collateralized_convert:48,recurrent_transfer:49,fill_convert_request:50,author_reward:51,curation_reward:52,comment_reward:53,liquidity_reward:54,interest:55,fill_vesting_withdraw:56,fill_order:57,shutdown_witness:58,fill_transfer_from_savings:59,hardfork:60,comment_payout_update:61,return_vesting_delegation:62,comment_benefactor_reward:63,producer_reward:64,clear_null_account_balance:65,proposal_pay:66,sps_fund:67,hardfork_hive:68,hardfork_hive_restore:69,delayed_voting:70,consolidate_treasury_balance:71,effective_comment_vote:72,ineffective_delete_comment:73,sps_convert:74,expired_account_notification:75,changed_recovery_account:76,transfer_to_vesting_completed:77,pow_reward:78,vesting_shares_split:79,account_created:80,fill_collateralized_convert_request:81,system_warning:82,fill_recurrent_transfer:83,failed_recurrent_transfer:84,limit_order_cancelled:85,producer_missed:86,proposal_fee:87,collateralized_convert_immediate_conversion:88,escrow_approved:89,escrow_rejected:90,proxy_cleared:91,declined_voting_rights:92},Yr=n=>n.reduce(Jr,[BigInt(0),BigInt(0)]).map(e=>e!==BigInt(0)?e.toString():null),Jr=([n,e],t)=>t<64?[n|BigInt(1)<<BigInt(t),e]:[n,e|BigInt(1)<<BigInt(t-64)],Gr=(n,e)=>{let t={extensions:[],owner:n,props:[]};for(let r of Object.keys(e)){if(e[r]===void 0)continue;let i;switch(r){case "key":case "new_signing_key":i=O.PublicKey;break;case "account_subsidy_budget":case "account_subsidy_decay":case "maximum_block_size":i=O.UInt32;break;case "hbd_interest_rate":i=O.UInt16;break;case "url":i=O.String;break;case "hbd_exchange_rate":i=O.Price;break;case "account_creation_fee":i=O.Asset;break;default:throw new Error(`Unknown witness prop: ${r}`)}t.props.push([r,Xr(i,e[r])]);}return t.props.sort((r,i)=>r[0].localeCompare(i[0])),["witness_set_properties",t]},Xr=(n,e)=>{let t=new A(A.DEFAULT_CAPACITY,A.LITTLE_ENDIAN);return n(t,e),t.flip(),utils_js.bytesToHex(new Uint8Array(t.toBuffer()))};/**
|
|
2
2
|
* @license bytebuffer.ts (c) 2015 Daniel Wirtz <dcode@dcode.io>
|
|
3
3
|
* Backing buffer: ArrayBuffer, Accessor: DataView
|
|
4
4
|
* Released under the Apache License, Version 2.0
|
|
5
5
|
* see: https://github.com/dcodeIO/bytebuffer.ts for details
|
|
6
6
|
* modified by @xmcl/bytebuffer
|
|
7
7
|
* And customized for hive-tx
|
|
8
|
-
*/exports.DEFAULT_SERVER_RPC_PROXY_METHODS=Ve;exports.MIN_TRANSACTION_SIZE_LIMIT=
|
|
8
|
+
*/exports.DEFAULT_SERVER_RPC_PROXY_METHODS=Ve;exports.MIN_TRANSACTION_SIZE_LIMIT=Tr;exports.Memo=$r;exports.PrivateKey=ae;exports.PublicKey=P;exports.RPCError=R;exports.Signature=Y;exports.Transaction=Oe;exports.TransactionTooLargeError=_e;exports.callREST=Ar;exports.callRPC=oe;exports.callRPCBroadcast=De;exports.callWithQuorum=vr;exports.config=f;exports.getTransactionReference=_t;exports.resetRpcProxyBreaker=cr;exports.rpcProxyStats=X;exports.setNodes=Vt;exports.setResilience=Wt;exports.setRestNodes=$t;exports.setRestNodesByApi=jt;exports.setServerRpcProxy=Ht;exports.setUserAgent=qt;exports.utils=Ft;//# sourceMappingURL=hive.cjs.map
|
|
9
9
|
//# sourceMappingURL=hive.cjs.map
|