@antseed/gateway-console 0.0.0-stage → 0.1.1
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/LICENSE +674 -0
- package/dist/assets/Activity-aMw4GLn_.js +1 -0
- package/dist/assets/Arc-VDBY7LNS-BChRXCXW.js +1 -0
- package/dist/assets/Audit-CCre2vZ2.js +1 -0
- package/dist/assets/Brave-BRAKJXDS-mq-Xo37j.js +1 -0
- package/dist/assets/Browser-76IHF3Y2-BMhRaC5Z.js +1 -0
- package/dist/assets/ChainGate-rOjMTVIg.js +1 -0
- package/dist/assets/ChannelClose-DkQxS0-Z.js +1 -0
- package/dist/assets/Charts-NmIMcccv.js +1 -0
- package/dist/assets/Chrome-65Q5P54Y-DR9MQEVr.js +1 -0
- package/dist/assets/ConnectWallet-QN7kfDQq.js +1 -0
- package/dist/assets/DataTable-D2QIQ-gI.js +1 -0
- package/dist/assets/Disclosure-h1MJg5Wn.js +1 -0
- package/dist/assets/Edge-XSPUTORV-DEoZslQE.js +1 -0
- package/dist/assets/Firefox-AAHGJQIP-Bp_Hm04m.js +1 -0
- package/dist/assets/KeyHolder-DUhCBfBH.js +1 -0
- package/dist/assets/Keys-DIlH-qns.js +1 -0
- package/dist/assets/Linux-OO4TNCLJ-B0aw93n9.js +1 -0
- package/dist/assets/Logs-BPrDGUHL.js +1 -0
- package/dist/assets/Macos-MW4AE7LN-Vvm8Drw3.js +1 -0
- package/dist/assets/Members-Cud9TWBJ.js +1 -0
- package/dist/assets/Migrate-DEIQ12oJ.js +1 -0
- package/dist/assets/Models-DXI7RYae.js +1 -0
- package/dist/assets/Opera-KQZLSACL-Cwv5MDFy.js +1 -0
- package/dist/assets/OperatorActions-BC74iRfA.js +1 -0
- package/dist/assets/OperatorGateAlert-CIQwPW1h.js +1 -0
- package/dist/assets/Overview-ipvNEEut.js +1 -0
- package/dist/assets/PolicyEditor-CRhTwGq0.js +1 -0
- package/dist/assets/PolicyField-0xAOIP4-.js +1 -0
- package/dist/assets/Presets-DrJ48O3s.js +4 -0
- package/dist/assets/Providers-CcIj0C5E.js +1 -0
- package/dist/assets/RequestLog-CBZWWnHo.js +1 -0
- package/dist/assets/Rewards-CUru480X.js +2 -0
- package/dist/assets/RewardsClaim-BjwCidx5.js +1 -0
- package/dist/assets/Routing-BO7JFJGH.js +1 -0
- package/dist/assets/Safari-ZPL37GXR-C4Ggg6rz.js +1 -0
- package/dist/assets/Segmented-BJmgB5-Y.js +1 -0
- package/dist/assets/SelectField-D_BPTzpT.js +1 -0
- package/dist/assets/Settings-qFQk36WV.js +7 -0
- package/dist/assets/Switch-JCyfy3G5.js +1 -0
- package/dist/assets/Tabs-CGI9v1OW.js +1 -0
- package/dist/assets/TextAreaField-4JuDDT4k.js +1 -0
- package/dist/assets/UsageByModel-jvNkVE4M.js +1 -0
- package/dist/assets/Wallet-tlCKFe2Q.js +9 -0
- package/dist/assets/WalletConfirm-Dz6gVYW9.js +1 -0
- package/dist/assets/WalletFunding-NSKzSiY5.js +1 -0
- package/dist/assets/WalletSignIn-Bs_yxjak.js +1 -0
- package/dist/assets/Windows-PPTHQER6-BlyV2p7Y.js +1 -0
- package/dist/assets/Workspaces-C79eSjJK.js +1 -0
- package/dist/assets/abap-BdImnpbu.js +1 -0
- package/dist/assets/actionscript-3-B3316cI-.js +1 -0
- package/dist/assets/ada-BIOnG6TC.js +1 -0
- package/dist/assets/add-CxYxphqt.js +15 -0
- package/dist/assets/ahk-BrbAagtO.js +1 -0
- package/dist/assets/ahk2-8Zs4aa1G.js +1 -0
- package/dist/assets/all-wallets-BSHfFrwc.js +6 -0
- package/dist/assets/andromeeda-C4gqWexZ.js +1 -0
- package/dist/assets/angular-html-D_SYSyRt.js +1 -0
- package/dist/assets/angular-ts-DGq0tZX5.js +1 -0
- package/dist/assets/ant-icon-zZhiTevn.svg +25 -0
- package/dist/assets/ants-B38m9Phv.js +1 -0
- package/dist/assets/antseed-mark-3TDLhfuw.svg +21 -0
- package/dist/assets/apache-Pmp26Uib.js +1 -0
- package/dist/assets/apechain-SX5YFU6N-q5qBv-mp.js +1 -0
- package/dist/assets/apex-DhZFqWV2.js +1 -0
- package/dist/assets/apl-ChzvTHjC.js +1 -0
- package/dist/assets/app-store-DzDsfjeG.js +17 -0
- package/dist/assets/apple-N_ET94Rt.js +18 -0
- package/dist/assets/applescript-Co6uUVPk.js +1 -0
- package/dist/assets/ar_AR-44JUQ6EW-BMX-am0v.js +1487 -0
- package/dist/assets/ara-BRHolxvo.js +1 -0
- package/dist/assets/arbitrum-WURIBY6W-CqVkHBr5.js +1 -0
- package/dist/assets/arrow-bottom-U6RBQjWC.js +8 -0
- package/dist/assets/arrow-bottom-circle-tDeqZ1Ky.js +11 -0
- package/dist/assets/arrow-left-BShNPqIx.js +8 -0
- package/dist/assets/arrow-right-CNSfQOzD.js +8 -0
- package/dist/assets/arrow-top-DV_peLyo.js +8 -0
- package/dist/assets/asciidoc-CSVQ5wI8.js +1 -0
- package/dist/assets/asm-D_Q5rh1f.js +1 -0
- package/dist/assets/assets-Q6ZU7ZJ5-P8HioiAD.js +1 -0
- package/dist/assets/astro-DTjqU0_L.js +1 -0
- package/dist/assets/aurora-x-D-2ljcwZ.js +1 -0
- package/dist/assets/avalanche-KOMJD3XY-Dsn_JPR4.js +1 -0
- package/dist/assets/awk-DMzUqQB5.js +1 -0
- package/dist/assets/ayu-dark-DYE7WIF3.js +1 -0
- package/dist/assets/ayu-light-BA47KaF1.js +1 -0
- package/dist/assets/ayu-mirage-32ctXXKs.js +1 -0
- package/dist/assets/ballerina-BFfxhgS-.js +1 -0
- package/dist/assets/bank-CBIxfTrG.js +14 -0
- package/dist/assets/base-OAXLRA4F-CoYTVIiL.js +1 -0
- package/dist/assets/baseAccount-44UITRK7-CsjdbWCf.js +1 -0
- package/dist/assets/basic-N6vekuGx.js +2128 -0
- package/dist/assets/bat-CickPsom.js +1 -0
- package/dist/assets/beancount-BgSHGh8x.js +1 -0
- package/dist/assets/berachain-NJECWIVC-DumxnFvf.js +1 -0
- package/dist/assets/berry-uYugtg8r.js +1 -0
- package/dist/assets/bibtex-CHM0blh-.js +1 -0
- package/dist/assets/bicep-Bmn6On1c.js +1 -0
- package/dist/assets/bird2-Bx8U0n9b.js +1 -0
- package/dist/assets/blade-k33SngOZ.js +1 -0
- package/dist/assets/blast-V555OVXZ-BbhJh1tj.js +1 -0
- package/dist/assets/browser-CSb6b6iQ.js +14 -0
- package/dist/assets/bsc-N647EYR2-B2nLKXWV.js +1 -0
- package/dist/assets/bsl-DlhNcFeZ.js +1 -0
- package/dist/assets/c-BIGW1oBm.js +1 -0
- package/dist/assets/c3-Dp5svz6Z.js +1 -0
- package/dist/assets/cadence-Bv_4Rxtq.js +1 -0
- package/dist/assets/cairo-KRGpt6FW.js +1 -0
- package/dist/assets/card-DrFIu-YX.js +14 -0
- package/dist/assets/catppuccin-frappe-CZL1YF0i.js +1 -0
- package/dist/assets/catppuccin-latte-DH-8KZSZ.js +1 -0
- package/dist/assets/catppuccin-macchiato-B7yYVSCf.js +1 -0
- package/dist/assets/catppuccin-mocha-Ct7hS0mc.js +1 -0
- package/dist/assets/ccip-kqAjTfpP.js +1 -0
- package/dist/assets/celo-GEP4TUHG-CenIBYLU.js +1 -0
- package/dist/assets/chapel-DTp_pixX.js +1 -0
- package/dist/assets/checkmark-CjzmzCYU.js +11 -0
- package/dist/assets/checkmark-bold-B66sPzPs.js +8 -0
- package/dist/assets/chevron-bottom--JM7vIl_.js +8 -0
- package/dist/assets/chevron-left-CPo0GZiC.js +8 -0
- package/dist/assets/chevron-right-BgXTpiHp.js +8 -0
- package/dist/assets/chevron-top-BDxNAlrf.js +8 -0
- package/dist/assets/chrome-store-BCPQdBXr.js +61 -0
- package/dist/assets/clarity-Dn5IMItf.js +1 -0
- package/dist/assets/clock-B7Udw_0s.js +8 -0
- package/dist/assets/clojure-P80f7IUj.js +1 -0
- package/dist/assets/close-ClhMnzas.js +8 -0
- package/dist/assets/clsx-B-dksMZM.js +1 -0
- package/dist/assets/cmake-D1j8_8rp.js +1 -0
- package/dist/assets/cobol-BBKr1ja6.js +1 -0
- package/dist/assets/codeowners-Bp6g37R7.js +1 -0
- package/dist/assets/codeql-DsOJ9woJ.js +1 -0
- package/dist/assets/coffee-Ch7k5sss.js +1 -0
- package/dist/assets/coinPlaceholder-Bsvaf8UD.js +8 -0
- package/dist/assets/common-lisp-Cg-RD9OK.js +1 -0
- package/dist/assets/compass-CtgRkLwG.js +8 -0
- package/dist/assets/connect-UA7M4XW6-IY3X6Bmr.js +1 -0
- package/dist/assets/copy-Cju_aL0g.js +15 -0
- package/dist/assets/coq-BqXF5kFF.js +1 -0
- package/dist/assets/core-Dv4ivRNs.js +908 -0
- package/dist/assets/cpp-BMRokrvK.js +1 -0
- package/dist/assets/create-FASO7PVG-D_rvSpre.js +1 -0
- package/dist/assets/cronos-HJPAQTAE-BEOvlOC4.js +1 -0
- package/dist/assets/crystal-LUwhHfY5.js +1 -0
- package/dist/assets/csharp-B_TYUkTI.js +1 -0
- package/dist/assets/css-Z72CF80r.js +1 -0
- package/dist/assets/csv-fuZLfV_i.js +1 -0
- package/dist/assets/cue-D82EKSYY.js +1 -0
- package/dist/assets/cursor-D3NwpSI9.js +3 -0
- package/dist/assets/cursor-transparent-A0O6SzCH.js +12 -0
- package/dist/assets/cypher-COkxafJQ.js +1 -0
- package/dist/assets/d-85-TOEBH.js +1 -0
- package/dist/assets/dark-plus-C3mMm8J8.js +1 -0
- package/dist/assets/dart-CtKP3W-j.js +1 -0
- package/dist/assets/dates-Pi3-Ywng.js +1 -0
- package/dist/assets/dax-CEL-wOlO.js +1 -0
- package/dist/assets/de_DE-PYAO5YD6-BWlqPWgO.js +1487 -0
- package/dist/assets/degen-FQQ4XGHB-CeHTs88l.js +1 -0
- package/dist/assets/desktop-BmXAJ9_W.js +1 -0
- package/dist/assets/desktop-CuYleYi9.js +9 -0
- package/dist/assets/diff-D97Zzqfu.js +1 -0
- package/dist/assets/dijkstra-COg3n3zL.js +1 -0
- package/dist/assets/disconnect-UdfoNj_d.js +8 -0
- package/dist/assets/discord-CBP0IyFM.js +17 -0
- package/dist/assets/docker-BcOcwvcX.js +1 -0
- package/dist/assets/dotenv-De0Btta0.js +1 -0
- package/dist/assets/dracula-BzJJZx-M.js +1 -0
- package/dist/assets/dracula-soft-BXkSAIEj.js +1 -0
- package/dist/assets/dream-maker-BtqSS_iP.js +1 -0
- package/dist/assets/edge-CJaD-t2L.js +1 -0
- package/dist/assets/elixir-DkJLSxtU.js +1 -0
- package/dist/assets/elm-DbKCFpqz.js +1 -0
- package/dist/assets/emacs-lisp-DaIrSCgJ.js +1 -0
- package/dist/assets/en_US-Y4ZOVFV4-3vDquI1C.js +1651 -0
- package/dist/assets/en_US-Y4ZOVFV4-CcVPgXVa.css +1 -0
- package/dist/assets/erb-CSMaCouu.js +1 -0
- package/dist/assets/erlang-DsQrWhSR.js +1 -0
- package/dist/assets/es_419-HRGOJ6VT-D-qzxUM-.js +1487 -0
- package/dist/assets/ethereum-RGGVA4PY-SWGOlkuk.js +1 -0
- package/dist/assets/etherscan-PHAlrHol.js +6 -0
- package/dist/assets/events-DQ172AOg.js +1 -0
- package/dist/assets/everforest-dark-BgDCqdQA.js +1 -0
- package/dist/assets/everforest-light-C8M2exoo.js +1 -0
- package/dist/assets/exclamation-triangle-udtYedHZ.js +4 -0
- package/dist/assets/extension-BSfnWZTn.js +8 -0
- package/dist/assets/external-link-BhINeBf6.js +8 -0
- package/dist/assets/facebook-DPMSywQV.js +26 -0
- package/dist/assets/farcaster-BgZocY3-.js +12 -0
- package/dist/assets/fennel-BYunw83y.js +1 -0
- package/dist/assets/filters-H_ETj-7w.js +8 -0
- package/dist/assets/fish-BvzEVeQv.js +1 -0
- package/dist/assets/flow-5FQJFCTK-CUie2reO.js +1 -0
- package/dist/assets/fluent-C4IJs8-o.js +1 -0
- package/dist/assets/fortran-fixed-form-CkoXwp7k.js +1 -0
- package/dist/assets/fortran-free-form-BxgE0vQu.js +1 -0
- package/dist/assets/fr_FR-IGGVC6RM-D8LpUM75.js +1487 -0
- package/dist/assets/fsharp-CXgrBDvD.js +1 -0
- package/dist/assets/gdresource-TyuKm33G.js +1 -0
- package/dist/assets/gdscript-DqcFQ5yU.js +1 -0
- package/dist/assets/gdshader-DkwncUOv.js +1 -0
- package/dist/assets/genie-D0YGMca9.js +1 -0
- package/dist/assets/gherkin-DyxjwDmM.js +1 -0
- package/dist/assets/git-commit-F4YmCXRG.js +1 -0
- package/dist/assets/git-rebase-r7XF79zn.js +1 -0
- package/dist/assets/github-Dnt_pb3p.js +18 -0
- package/dist/assets/github-dark-DHJKELXO.js +1 -0
- package/dist/assets/github-dark-default-Cuk6v7N8.js +1 -0
- package/dist/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
- package/dist/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
- package/dist/assets/github-light-DAi9KRSo.js +1 -0
- package/dist/assets/github-light-default-D7oLnXFd.js +1 -0
- package/dist/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
- package/dist/assets/gleam-BspZqrRM.js +1 -0
- package/dist/assets/glimmer-js-Drrc9bTt.js +1 -0
- package/dist/assets/glimmer-ts-zeybXsvi.js +1 -0
- package/dist/assets/glsl-DplSGwfg.js +1 -0
- package/dist/assets/gn-8iBmfbXw.js +1 -0
- package/dist/assets/gnosis-37ZC4RBL-B137OtHZ.js +1 -0
- package/dist/assets/gnuplot-DdkO51Og.js +1 -0
- package/dist/assets/go-C27-OAKa.js +1 -0
- package/dist/assets/google-Mu_8pwD-.js +18 -0
- package/dist/assets/graphql-ChdNCCLP.js +1 -0
- package/dist/assets/gravity-J5YQHTYH-Bj6B0uod.js +1 -0
- package/dist/assets/groovy-gcz8RCvz.js +1 -0
- package/dist/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
- package/dist/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
- package/dist/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
- package/dist/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
- package/dist/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
- package/dist/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
- package/dist/assets/hack-Ck6-gGSS.js +1 -0
- package/dist/assets/haml-GN_XdMnF.js +1 -0
- package/dist/assets/handlebars-DPT5vKgj.js +1 -0
- package/dist/assets/hardhat-TX56IT5N-CV1FY-wE.js +1 -0
- package/dist/assets/haskell-Df6bDoY_.js +1 -0
- package/dist/assets/haxe-CfZj7gIn.js +1 -0
- package/dist/assets/hcl-BWvSN4gD.js +1 -0
- package/dist/assets/help-circle-DRVJ-8K8.js +12 -0
- package/dist/assets/hi_IN-XSKAA3MF-C3QUpWyP.js +1487 -0
- package/dist/assets/highlighted-body-KQOG7T2V-ClwcaYX1.js +1 -0
- package/dist/assets/hjson-D5-asLiD.js +1 -0
- package/dist/assets/hlsl-D3lLCCz7.js +1 -0
- package/dist/assets/horizon-BUw7H-hv.js +1 -0
- package/dist/assets/horizon-bright-CUuTKBJd.js +1 -0
- package/dist/assets/houston-DnULxvSX.js +1 -0
- package/dist/assets/html-BlS82ilI.js +1 -0
- package/dist/assets/html-derivative-DZhk3IEZ.js +1 -0
- package/dist/assets/http-jrhK8wxY.js +1 -0
- package/dist/assets/hurl-irOxFIW8.js +1 -0
- package/dist/assets/hxml-2-FPmUDs.js +1 -0
- package/dist/assets/hy-DFXneXwc.js +1 -0
- package/dist/assets/hyperevm-VKPAA4SA-CHwraEsx.js +1 -0
- package/dist/assets/id-DXjcfKMm.js +12 -0
- package/dist/assets/id_ID-KUOB4UAL-K9y-nRWm.js +1487 -0
- package/dist/assets/image-Bhqm-9NV.js +4 -0
- package/dist/assets/imba-DGztddWO.js +1 -0
- package/dist/assets/index-BrcuwiCz.js +47 -0
- package/dist/assets/index-BwpQbdIU.js +1 -0
- package/dist/assets/index-C21bvTBH.js +91 -0
- package/dist/assets/index-C9wUwD4n.js +395 -0
- package/dist/assets/index-CR02SnS1.js +1 -0
- package/dist/assets/index-DNA9wtqn.js +16 -0
- package/dist/assets/index-DqHGr8d4.js +1 -0
- package/dist/assets/index-U4U6E7fq.css +1 -0
- package/dist/assets/index-kzlEvkEN.js +1 -0
- package/dist/assets/index.es-DX2eegnP.js +39 -0
- package/dist/assets/info-BaRtFUwf.js +3 -0
- package/dist/assets/info-circle-Bsl8G0Ii.js +12 -0
- package/dist/assets/ini-BEwlwnbL.js +1 -0
- package/dist/assets/ink-FZMYZWHG-62p-5IK5.js +1 -0
- package/dist/assets/ja_JP-4WRQ63RX-Ct5pF4ug.js +1487 -0
- package/dist/assets/java-CylS5w8V.js +1 -0
- package/dist/assets/javascript-wDzz0qaB.js +1 -0
- package/dist/assets/jinja-DFQZVq3b.js +1 -0
- package/dist/assets/jison-wvAkD_A8.js +1 -0
- package/dist/assets/json-Cp-IABpG.js +1 -0
- package/dist/assets/json5-C9tS-k6U.js +1 -0
- package/dist/assets/jsonc-Des-eS-w.js +1 -0
- package/dist/assets/jsonl-DcaNXYhu.js +1 -0
- package/dist/assets/jsonnet-DFQXde-d.js +1 -0
- package/dist/assets/jssm-C2t-YnRu.js +1 -0
- package/dist/assets/jsx-g9-lgVsj.js +1 -0
- package/dist/assets/julia-Cu79e8SL.js +1 -0
- package/dist/assets/just-CMxyWJJc.js +1 -0
- package/dist/assets/kaia-65D2U3PU-JmuLQ4gC.js +1 -0
- package/dist/assets/kanagawa-dragon-BuwD2xS4.js +1 -0
- package/dist/assets/kanagawa-lotus-C3DzagqV.js +1 -0
- package/dist/assets/kanagawa-wave-DFGoQZhC.js +1 -0
- package/dist/assets/kdl-DV7GczEv.js +1 -0
- package/dist/assets/ko_KR-I2K7AIEP-B5gw8Mwb.js +1487 -0
- package/dist/assets/kotlin-BdnUsdx6.js +1 -0
- package/dist/assets/kusto-wEQ09or8.js +1 -0
- package/dist/assets/laserwave-DUszq2jm.js +1 -0
- package/dist/assets/latex-DJVikpzR.js +1 -0
- package/dist/assets/lean-BZvkOJ9d.js +1 -0
- package/dist/assets/less-B1dDrJ26.js +1 -0
- package/dist/assets/light-plus-B7mTdjB0.js +1 -0
- package/dist/assets/lightbulb-BlV4kI0m.js +3 -0
- package/dist/assets/limits-D_C7APR_.js +1 -0
- package/dist/assets/linea-QRMVQ5DY-DuI3vv0d.js +1 -0
- package/dist/assets/liquid-B-duXHXw.js +1 -0
- package/dist/assets/llvm-BZoOZj88.js +1 -0
- package/dist/assets/log-2UxHyX5q.js +1 -0
- package/dist/assets/login-UP3DZBGS-Db_wM5oQ.js +1 -0
- package/dist/assets/logo-BtOb2qkB.js +1 -0
- package/dist/assets/lua-BaeVxFsk.js +1 -0
- package/dist/assets/luau-nOZpfvQi.js +1 -0
- package/dist/assets/mail-BPcY_N8f.js +8 -0
- package/dist/assets/make-CHLpvVh8.js +1 -0
- package/dist/assets/manta-SI27YFEJ-CpVOKa06.js +1 -0
- package/dist/assets/mantle-CKIUT334-DR2WgqzU.js +1 -0
- package/dist/assets/markdown-Cvjx9yec.js +1 -0
- package/dist/assets/marko-BYgDmDgU.js +1 -0
- package/dist/assets/material-theme-D5KoaKCx.js +1 -0
- package/dist/assets/material-theme-darker-BfHTSMKl.js +1 -0
- package/dist/assets/material-theme-lighter-B0m2ddpp.js +1 -0
- package/dist/assets/material-theme-ocean-CyktbL80.js +1 -0
- package/dist/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
- package/dist/assets/matlab-D7o27uSR.js +1 -0
- package/dist/assets/mdc-DF4WjDMn.js +1 -0
- package/dist/assets/mdx-Cmh6b_Ma.js +1 -0
- package/dist/assets/mermaid-CQcHuHx7.js +1 -0
- package/dist/assets/mermaid-MCJ5UELQ-BFJCTi2D.css +1 -0
- package/dist/assets/mermaid-MCJ5UELQ-DAirhLo4.js +793 -0
- package/dist/assets/metaMaskWallet-SITXT2FV-BlemcphV.js +1 -0
- package/dist/assets/metamask-sdk-B0WxSi8v.js +542 -0
- package/dist/assets/min-dark-CafNBF8u.js +1 -0
- package/dist/assets/min-light-CTRr51gU.js +1 -0
- package/dist/assets/mipsasm-CKIfxQSi.js +1 -0
- package/dist/assets/mobile-9_L4G6Kz.js +9 -0
- package/dist/assets/models-BpLCh6Fr.js +1 -0
- package/dist/assets/mojo-DJz3ZmWd.js +1 -0
- package/dist/assets/monad-4KWC6TSS-DVXSkpiz.js +1 -0
- package/dist/assets/monokai-CR4piiQ-.js +1 -0
- package/dist/assets/moonbit-Bag4Rp_g.js +1 -0
- package/dist/assets/more-BMrrxkhZ.js +11 -0
- package/dist/assets/move-el3G9tDJ.js +1 -0
- package/dist/assets/ms_MY-6VZW6Q3Z-BtFD07hR.js +1487 -0
- package/dist/assets/narrat-DRg8JJMk.js +1 -0
- package/dist/assets/network-placeholder-CYXkxcyL.js +14 -0
- package/dist/assets/nextflow-BCxp2Aob.js +1 -0
- package/dist/assets/nextflow-groovy-CedDknKX.js +1 -0
- package/dist/assets/nftPlaceholder-CfIu_Ovu.js +8 -0
- package/dist/assets/nginx-BpAMiNFr.js +1 -0
- package/dist/assets/night-owl-C39BiMTA.js +1 -0
- package/dist/assets/night-owl-light-CMTm3GFP.js +1 -0
- package/dist/assets/nim-nV83PyhX.js +1 -0
- package/dist/assets/nix-CwoSXNpI.js +1 -0
- package/dist/assets/nord-Ddv68eIx.js +1 -0
- package/dist/assets/nsis-BlV79W_Q.js +1 -0
- package/dist/assets/nushell-BXD5iret.js +1 -0
- package/dist/assets/objective-c-DXmwc3jG.js +1 -0
- package/dist/assets/objective-cpp-CLxacb5B.js +1 -0
- package/dist/assets/ocaml-C0hk2d4L.js +1 -0
- package/dist/assets/odin-BBf5iR-q.js +1 -0
- package/dist/assets/off-BpqSEfQB.js +8 -0
- package/dist/assets/one-dark-pro-CxGP3dtY.js +1 -0
- package/dist/assets/one-light-C3Wv6jpd.js +1 -0
- package/dist/assets/openscad-C4EeE6gA.js +1 -0
- package/dist/assets/optimism-HAF2GUT7-ec6Nqxs9.js +1 -0
- package/dist/assets/org-6a7ccXN_.js +1 -0
- package/dist/assets/pascal-D93ZcfNL.js +1 -0
- package/dist/assets/perl-5klg-GXX.js +1 -0
- package/dist/assets/php-DoruYMF0.js +1 -0
- package/dist/assets/pkl-u5AG7uiY.js +1 -0
- package/dist/assets/plastic-3e1v2bzS.js +1 -0
- package/dist/assets/play-store-BKqBXU1V.js +32 -0
- package/dist/assets/plsql-ChMvpjG-.js +1 -0
- package/dist/assets/plus-CSgT3KZh.js +13 -0
- package/dist/assets/po-BTJTHyun.js +1 -0
- package/dist/assets/poimandres-CS3Unz2-.js +1 -0
- package/dist/assets/polar-C0HS_06l.js +1 -0
- package/dist/assets/polygon-WW6ZI7PM-DXlmm4L1.js +1 -0
- package/dist/assets/postcss-CXtECtnM.js +1 -0
- package/dist/assets/powerquery-CEu0bR-o.js +1 -0
- package/dist/assets/powershell-Dd0kTxKP.js +1 -0
- package/dist/assets/prisma-Vru482bI.js +1 -0
- package/dist/assets/prolog-CbFg5uaA.js +1 -0
- package/dist/assets/proto-C7zT0LnQ.js +1 -0
- package/dist/assets/pt_BR-N3XOZ4SV-CvVpfsHb.js +1487 -0
- package/dist/assets/pug-BtYPkAgq.js +1 -0
- package/dist/assets/puppet-BMWR74SV.js +1 -0
- package/dist/assets/purescript-CklMAg4u.js +1 -0
- package/dist/assets/python-B6aJPvgy.js +1 -0
- package/dist/assets/qml-3beO22l8.js +1 -0
- package/dist/assets/qmldir-C8lEn-DE.js +1 -0
- package/dist/assets/qr-code-edbLJ8Gf.js +6 -0
- package/dist/assets/qss-IeuSbFQv.js +1 -0
- package/dist/assets/r-Cf5RLm7j.js +1 -0
- package/dist/assets/racket-BqYA7rlc.js +1 -0
- package/dist/assets/rainbowWallet-O26YNBMX-DUhYus-9.js +1 -0
- package/dist/assets/raku-DXvB9xmW.js +1 -0
- package/dist/assets/razor-CyjPwjZj.js +1 -0
- package/dist/assets/rbs-CpoqiR4B.js +1 -0
- package/dist/assets/recycle-horizontal-CuX0JB4-.js +9 -0
- package/dist/assets/red-DMbB5_pp.js +1 -0
- package/dist/assets/refresh-Dq45LHYF.js +8 -0
- package/dist/assets/refresh-S4T5V5GX-CwqIaaxK.js +1 -0
- package/dist/assets/reg-C-SQnVFl.js +1 -0
- package/dist/assets/regexp-CDVJQ6XC.js +1 -0
- package/dist/assets/rel-C3B-1QV4.js +1 -0
- package/dist/assets/reown-logo-CRobwYXY.js +12 -0
- package/dist/assets/riscv-BM1_JUlF.js +1 -0
- package/dist/assets/ron-D8l8udqQ.js +1 -0
- package/dist/assets/ronin-EMCPYXZT-N-QBHZdV.js +1 -0
- package/dist/assets/rose-pine-5qJOZa0Y.js +1 -0
- package/dist/assets/rose-pine-dawn-zx0QlTCp.js +1 -0
- package/dist/assets/rose-pine-moon-C9pEdX9L.js +1 -0
- package/dist/assets/rosmsg-BJDFO7_C.js +1 -0
- package/dist/assets/roving-DkptacxO.js +1 -0
- package/dist/assets/rst-CVOjT0e7.js +1 -0
- package/dist/assets/ru_RU-IITAPRET-DOj6Jzj7.js +1487 -0
- package/dist/assets/ruby-C8rp0wew.js +1 -0
- package/dist/assets/rust-DPvrY3IQ.js +1 -0
- package/dist/assets/safeWallet-5MNKTR5Z-D-5imDLD.js +1 -0
- package/dist/assets/sanko-RHQYXGM5-OX010CbN.js +1 -0
- package/dist/assets/sas-BGn39htG.js +1 -0
- package/dist/assets/sass-Cj5Yp3dK.js +1 -0
- package/dist/assets/scala-CqE71os6.js +1 -0
- package/dist/assets/scan-4UYSQ56Q-CjMz6-XC.js +1 -0
- package/dist/assets/scheme-C98Dy4si.js +1 -0
- package/dist/assets/scroll-5OBGQVOV-DJFECiai.js +1 -0
- package/dist/assets/scss-Cw6XMfVs.js +1 -0
- package/dist/assets/sdbl-DVxCFoDh.js +1 -0
- package/dist/assets/search-gYoog0zk.js +8 -0
- package/dist/assets/secp256k1-Cb4vPU9D.js +1 -0
- package/dist/assets/secp256k1-uRM0t8uf.js +1 -0
- package/dist/assets/send-Pm4IO0Hs.js +15 -0
- package/dist/assets/shaderlab-Dg9Lc6iA.js +1 -0
- package/dist/assets/shellscript-Yzrsuije.js +1 -0
- package/dist/assets/shellsession-BADoaaVG.js +1 -0
- package/dist/assets/sign-A7IJEUT5-CGsRnPrd.js +1 -0
- package/dist/assets/slack-dark-BthQWCQV.js +1 -0
- package/dist/assets/slack-ochin-DqwNpetd.js +1 -0
- package/dist/assets/smalltalk-BOQMe2GC.js +1 -0
- package/dist/assets/smithy-cds9vsN8.js +1 -0
- package/dist/assets/snazzy-light-Bw305WKR.js +1 -0
- package/dist/assets/solarized-dark-UcubFVte.js +1 -0
- package/dist/assets/solarized-light-DCG28T6R.js +1 -0
- package/dist/assets/solidity-DijEV5ha.js +1 -0
- package/dist/assets/soy-zscZBeg6.js +1 -0
- package/dist/assets/sparql-rVzFXLq3.js +1 -0
- package/dist/assets/splunk-BtCnVYZw.js +1 -0
- package/dist/assets/sql-DkvoVjww.js +1 -0
- package/dist/assets/ssh-config-_ykCGR6B.js +1 -0
- package/dist/assets/stata-DACIj5bg.js +1 -0
- package/dist/assets/stylus-BEDo0Tqx.js +1 -0
- package/dist/assets/superposition-HG6MMR2Y-bRkgatRO.js +1 -0
- package/dist/assets/surrealql-Cjom0U5J.js +1 -0
- package/dist/assets/svelte-D84K1R2Q.js +1 -0
- package/dist/assets/swapHorizontal-DhCZ210V.js +8 -0
- package/dist/assets/swapHorizontalBold-DHO5cxVU.js +8 -0
- package/dist/assets/swapHorizontalMedium-VGtbzLgi.js +16 -0
- package/dist/assets/swapHorizontalRoundedBold-6HTAC2Np.js +8 -0
- package/dist/assets/swapVertical-Dg6bMEa-.js +8 -0
- package/dist/assets/swift-C2oV4EkX.js +1 -0
- package/dist/assets/synthwave-84-CbfX1IO0.js +1 -0
- package/dist/assets/system-verilog-0hqHdDBg.js +1 -0
- package/dist/assets/systemd-4A_iFExJ.js +1 -0
- package/dist/assets/talonscript-CkByrt1z.js +1 -0
- package/dist/assets/tasl-QIJgUcNo.js +1 -0
- package/dist/assets/tcl-dwOrl1Do.js +1 -0
- package/dist/assets/telegram-CHXgC-Jw.js +16 -0
- package/dist/assets/templ-Vpw5XpSW.js +1 -0
- package/dist/assets/terraform-BETggiCN.js +1 -0
- package/dist/assets/tex-D96PA37w.js +1 -0
- package/dist/assets/th_TH-3ZQCKCQE-BcHUN2Q4.js +1487 -0
- package/dist/assets/three-dots-MixBEg-b.js +5 -0
- package/dist/assets/tokyo-night-hegEt444.js +1 -0
- package/dist/assets/toml-vGWfd6FD.js +1 -0
- package/dist/assets/tr_TR-QUPUGMUF-CwpF6ZFn.js +1487 -0
- package/dist/assets/ts-tags-Ls60c9xG.js +1 -0
- package/dist/assets/tsv-B_m7g4N7.js +1 -0
- package/dist/assets/tsx-COt5Ahok.js +1 -0
- package/dist/assets/turtle-BsS91CYL.js +1 -0
- package/dist/assets/twig-D9-LOF2p.js +1 -0
- package/dist/assets/twitch-CWrx7ZD7.js +18 -0
- package/dist/assets/twitterIcon-Vrp2iWQv.js +6 -0
- package/dist/assets/typescript-BPQ3VLAy.js +1 -0
- package/dist/assets/typespec-ClX509-Q.js +1 -0
- package/dist/assets/typst-DamkJZ1Q.js +1 -0
- package/dist/assets/uk_UA-SSN6SV5E-IlYYyRC6.js +1487 -0
- package/dist/assets/unichain-C5BWO2ZY-BfguYsnu.js +1 -0
- package/dist/assets/usage-MPZYg7D2.js +1 -0
- package/dist/assets/useInfiniteQuery-Bpu8bc5A.js +1 -0
- package/dist/assets/useTx-Cp52G7Yo.js +1 -0
- package/dist/assets/v-BGw2Nkan.js +1 -0
- package/dist/assets/vala-CsfeWuGM.js +1 -0
- package/dist/assets/vb-Cu-pLBUe.js +1 -0
- package/dist/assets/verify-Cv1Ie02p.js +8 -0
- package/dist/assets/verify-filled-D4Of1TFY.js +8 -0
- package/dist/assets/verilog-nZwndyjY.js +1 -0
- package/dist/assets/vesper-DRje8inN.js +1 -0
- package/dist/assets/vhdl-CeAyd5Ju.js +1 -0
- package/dist/assets/vi_VN-7BUVRNYY-CZ9S75qZ.js +1487 -0
- package/dist/assets/viml-CJc9bBzg.js +1 -0
- package/dist/assets/vitesse-black-Bkuqu6BP.js +1 -0
- package/dist/assets/vitesse-dark-D0r3Knsf.js +1 -0
- package/dist/assets/vitesse-light-CVO1_9PV.js +1 -0
- package/dist/assets/vue-DSqPwMUe.js +1 -0
- package/dist/assets/vue-html-AaS7Mt5G.js +1 -0
- package/dist/assets/vue-vine-C0RcJ6UU.js +1 -0
- package/dist/assets/vyper-CDx5xZoG.js +1 -0
- package/dist/assets/w3m-modal-B8kvY5hN.js +642 -0
- package/dist/assets/wallet-placeholder-C-l2svWA.js +14 -0
- package/dist/assets/wallet-uxpqh3A6.js +8 -0
- package/dist/assets/walletConnectWallet-YHWKVTDY-D3lyiczV.js +1 -0
- package/dist/assets/walletconnect-0CplSxZT.js +30 -0
- package/dist/assets/warning-circle-gLBXgr6A.js +12 -0
- package/dist/assets/wasm-CG6Dc4jp.js +1 -0
- package/dist/assets/wasm-MzD3tlZU.js +1 -0
- package/dist/assets/wenyan-BV7otONQ.js +1 -0
- package/dist/assets/wgsl-Dx-B1_4e.js +1 -0
- package/dist/assets/wikitext-BhOHFoWU.js +1 -0
- package/dist/assets/wit-5i3qLPDT.js +1 -0
- package/dist/assets/wolfram-lXgVvXCa.js +1 -0
- package/dist/assets/x-C17dW4I6.js +12 -0
- package/dist/assets/xdc-KJ3TDBYO-DNV6zchh.js +1 -0
- package/dist/assets/xml-sdJ4AIDG.js +1 -0
- package/dist/assets/xsl-CtQFsRM5.js +1 -0
- package/dist/assets/yaml-Buea-lGh.js +1 -0
- package/dist/assets/zenscript-DVFEvuxE.js +1 -0
- package/dist/assets/zetachain-TLDS5IPW-Udhyw16T.js +1 -0
- package/dist/assets/zh_CN-HJBN674C-Baf0GEeT.js +1487 -0
- package/dist/assets/zh_HK-JW3WLRKE-VztJKXL5.js +1487 -0
- package/dist/assets/zh_TW-VNNRNXY7-aWfg7Qp4.js +1487 -0
- package/dist/assets/zig-VOosw3JB.js +1 -0
- package/dist/assets/zksync-DH7HK5U4-Dt4usFw6.js +1 -0
- package/dist/assets/zora-FYL5H3IO-iB4wygST.js +1 -0
- package/dist/index.html +16 -0
- package/index.d.ts +2 -0
- package/index.js +4 -0
- package/package.json +55 -3
- package/README.md +0 -3
|
@@ -0,0 +1,1651 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ccip-kqAjTfpP.js","assets/index-C21bvTBH.js","assets/index-U4U6E7fq.css","assets/clsx-B-dksMZM.js","assets/index-DqHGr8d4.js","assets/index-BwpQbdIU.js","assets/index-DNA9wtqn.js","assets/metamask-sdk-B0WxSi8v.js","assets/index-CR02SnS1.js","assets/index-kzlEvkEN.js","assets/index-BrcuwiCz.js","assets/events-DQ172AOg.js","assets/index.es-DX2eegnP.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Lp=Object.defineProperty;var Up=(e,t,n)=>t in e?Lp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Lt=(e,t,n)=>Up(e,typeof t!="symbol"?t+"":t,n);import{_ as L,c3 as zp,r as B,cl as dd,bF as Wp,d as fd,bf as ss,cm as $p,cn as qp,co as Hp,cp as Sn,cq as Vp,cr as Gp,cs as Qp,ct as Kp,cu as Jp,cv as Yp,j as ce,cw as b,cx as Zp}from"./index-C21bvTBH.js";import{c as hd}from"./clsx-B-dksMZM.js";import{r as Xp}from"./index-DqHGr8d4.js";import{A as e1,a as Qc,B as t1}from"./index-BwpQbdIU.js";const Ln=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{name:"addr",type:"address"}],name:"getEthBalance",outputs:[{name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],Ti=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],pd=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],md=[...pd,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],n1=[...pd,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],Kc=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],Jc=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],bd=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],Yc=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}];function nt(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new b1(e.type);return`${e.name}(${is(e.inputs,{includeName:t})})`}function is(e,{includeName:t=!1}={}){return e?e.map(n=>r1(n,{includeName:t})).join(t?", ":","):""}function r1(e,{includeName:t}){return e.type.startsWith("tuple")?`(${is(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}function bt(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function ae(e){return bt(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const gd="2.47.12";let sr={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${gd}`},M=class Oi extends Error{constructor(t,n={}){var a;const r=(()=>{var c;return n.cause instanceof Oi?n.cause.details:(c=n.cause)!=null&&c.message?n.cause.message:n.details})(),o=n.cause instanceof Oi&&n.cause.docsPath||n.docsPath,s=(a=sr.getDocsUrl)==null?void 0:a.call(sr,{...n,docsPath:o}),i=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...r?[`Details: ${r}`]:[],...sr.version?[`Version: ${sr.version}`]:[]].join(`
|
|
3
|
+
`);super(i,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=t,this.version=gd}walk(t){return yd(this,t)}};function yd(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?yd(e.cause,t):t?null:e}class o1 extends M{constructor({docsPath:t}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
|
|
4
|
+
`),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class Zc extends M{constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
|
|
5
|
+
`),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}class wd extends M{constructor({data:t,params:n,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join(`
|
|
6
|
+
`),{metaMessages:[`Params: (${is(n,{includeName:!0})})`,`Data: ${t} (${r} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=n,this.size=r}}class Yr extends M{constructor({cause:t}={}){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError",cause:t})}}class s1 extends M{constructor({expectedLength:t,givenLength:n,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${t}`,`Given length: ${n}`].join(`
|
|
7
|
+
`),{name:"AbiEncodingArrayLengthMismatchError"})}}class i1 extends M{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${ae(n)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class a1 extends M{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${n}`].join(`
|
|
8
|
+
`),{name:"AbiEncodingLengthMismatchError"})}}class c1 extends M{constructor(t,{docsPath:n}){super([`Arguments (\`args\`) were provided to "${t}", but "${t}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join(`
|
|
9
|
+
`),{docsPath:n,name:"AbiErrorInputsNotFoundError"})}}class Xc extends M{constructor(t,{docsPath:n}={}){super([`Error ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(`
|
|
10
|
+
`),{docsPath:n,name:"AbiErrorNotFoundError"})}}class vd extends M{constructor(t,{docsPath:n,cause:r}){super([`Encoded error signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`
|
|
11
|
+
`),{docsPath:n,name:"AbiErrorSignatureNotFoundError",cause:r}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class l1 extends M{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t,name:"AbiEventSignatureEmptyTopicsError"})}}class u1 extends M{constructor(t,{docsPath:n}){super([`Encoded event signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`
|
|
12
|
+
`),{docsPath:n,name:"AbiEventSignatureNotFoundError"})}}class el extends M{constructor(t,{docsPath:n}={}){super([`Event ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(`
|
|
13
|
+
`),{docsPath:n,name:"AbiEventNotFoundError"})}}class Un extends M{constructor(t,{docsPath:n}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
|
|
14
|
+
`),{docsPath:n,name:"AbiFunctionNotFoundError"})}}class xd extends M{constructor(t,{docsPath:n}){super([`Function "${t}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join(`
|
|
15
|
+
`),{docsPath:n,name:"AbiFunctionOutputsNotFoundError"})}}class d1 extends M{constructor(t,{docsPath:n}){super([`Encoded function signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`
|
|
16
|
+
`),{docsPath:n,name:"AbiFunctionSignatureNotFoundError"})}}class f1 extends M{constructor(t,n){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${nt(t.abiItem)}\`, and`,`\`${n.type}\` in \`${nt(n.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}let h1=class extends M{constructor({expectedSize:t,givenSize:n}){super(`Expected bytes${t}, got bytes${n}.`,{name:"BytesSizeMismatchError"})}};class zo extends M{constructor({abiItem:t,data:n,params:r,size:o}){super([`Data size of ${o} bytes is too small for non-indexed event parameters.`].join(`
|
|
17
|
+
`),{metaMessages:[`Params: (${is(r,{includeName:!0})})`,`Data: ${n} (${o} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=n,this.params=r,this.size=o}}class ka extends M{constructor({abiItem:t,param:n}){super([`Expected a topic for indexed event parameter${n.name?` "${n.name}"`:""} on event "${nt(t,{includeName:!0})}".`].join(`
|
|
18
|
+
`),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class p1 extends M{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
|
|
19
|
+
`),{docsPath:n,name:"InvalidAbiEncodingType"})}}class m1 extends M{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
|
|
20
|
+
`),{docsPath:n,name:"InvalidAbiDecodingType"})}}let Cd=class extends M{constructor(t){super([`Value "${t}" is not a valid array.`].join(`
|
|
21
|
+
`),{name:"InvalidArrayError"})}};class b1 extends M{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
|
|
22
|
+
`),{name:"InvalidDefinitionTypeError"})}}class hA extends M{constructor(t){super(`Type "${t}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}let Se=class extends M{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}},Ad=class extends M{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}},Ed=class extends M{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${t}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}};class tl extends M{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${n} ${r} long, but is ${t} ${r} long.`,{name:"InvalidBytesLengthError"})}}function Qn(e,{dir:t,size:n=32}={}){return typeof e=="string"?Ht(e,{dir:t,size:n}):g1(e,{dir:t,size:n})}function Ht(e,{dir:t,size:n=32}={}){if(n===null)return e;const r=e.replace("0x","");if(r.length>n*2)throw new Ed({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r[t==="right"?"padEnd":"padStart"](n*2,"0")}`}function g1(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new Ed({size:e.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let o=0;o<n;o++){const s=t==="right";r[s?o:n-o-1]=e[s?o:e.length-o-1]}return r}let Ba=class extends M{constructor({max:t,min:n,signed:r,size:o,value:s}){super(`Number "${s}" is not in safe ${o?`${o*8}-bit ${r?"signed":"unsigned"} `:""}integer range ${t?`(${n} to ${t})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}},y1=class extends M{constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}};class w1 extends M{constructor(t){super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}let v1=class extends M{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}};function qe(e,{dir:t="left"}={}){let n=typeof e=="string"?e.replace("0x",""):e,r=0;for(let o=0;o<n.length-1&&n[t==="left"?o:n.length-o-1].toString()==="0";o++)r++;return n=t==="left"?n.slice(r):n.slice(0,n.length-r),typeof e=="string"?(n.length===1&&t==="right"&&(n=`${n}0`),`0x${n.length%2===1?`0${n}`:n}`):n}function Ye(e,{size:t}){if(ae(e)>t)throw new v1({givenSize:ae(e),maxSize:t})}function ke(e,t={}){const{signed:n}=t;t.size&&Ye(e,{size:t.size});const r=BigInt(e);if(!n)return r;const o=(e.length-2)/2,s=(1n<<BigInt(o)*8n-1n)-1n;return r<=s?r:r-BigInt(`0x${"f".padStart(o*2,"f")}`)-1n}function x1(e,t={}){let n=e;if(t.size&&(Ye(n,{size:t.size}),n=qe(n)),qe(n)==="0x00")return!1;if(qe(n)==="0x01")return!0;throw new w1(n)}function rt(e,t={}){const n=ke(e,t),r=Number(n);if(!Number.isSafeInteger(r))throw new Ba({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${n}n`});return r}function C1(e,t={}){let n=ot(e);return t.size&&(Ye(n,{size:t.size}),n=qe(n,{dir:"right"})),new TextDecoder().decode(n)}const A1=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Re(e,t={}){return typeof e=="number"||typeof e=="bigint"?D(e,t):typeof e=="string"?zn(e,t):typeof e=="boolean"?Id(e,t):de(e,t)}function Id(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(Ye(n,{size:t.size}),Qn(n,{size:t.size})):n}function de(e,t={}){let n="";for(let o=0;o<e.length;o++)n+=A1[e[o]];const r=`0x${n}`;return typeof t.size=="number"?(Ye(r,{size:t.size}),Qn(r,{dir:"right",size:t.size})):r}function D(e,t={}){const{signed:n,size:r}=t,o=BigInt(e);let s;r?n?s=(1n<<BigInt(r)*8n-1n)-1n:s=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(s=BigInt(Number.MAX_SAFE_INTEGER));const i=typeof s=="bigint"&&n?-s-1n:0;if(s&&o>s||o<i){const c=typeof e=="bigint"?"n":"";throw new Ba({max:s?`${s}${c}`:void 0,min:`${i}${c}`,signed:n,size:r,value:`${e}${c}`})}const a=`0x${(n&&o<0?(1n<<BigInt(r*8))+BigInt(o):o).toString(16)}`;return r?Qn(a,{size:r}):a}const E1=new TextEncoder;function zn(e,t={}){const n=E1.encode(e);return de(n,t)}const I1=new TextEncoder;function Kn(e,t={}){return typeof e=="number"||typeof e=="bigint"?B1(e,t):typeof e=="boolean"?k1(e,t):bt(e)?ot(e,t):ln(e,t)}function k1(e,t={}){const n=new Uint8Array(1);return n[0]=Number(e),typeof t.size=="number"?(Ye(n,{size:t.size}),Qn(n,{size:t.size})):n}const At={zero:48,nine:57,A:65,F:70,a:97,f:102};function nl(e){if(e>=At.zero&&e<=At.nine)return e-At.zero;if(e>=At.A&&e<=At.F)return e-(At.A-10);if(e>=At.a&&e<=At.f)return e-(At.a-10)}function ot(e,t={}){let n=e;t.size&&(Ye(n,{size:t.size}),n=Qn(n,{dir:"right",size:t.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const o=r.length/2,s=new Uint8Array(o);for(let i=0,a=0;i<o;i++){const c=nl(r.charCodeAt(a++)),l=nl(r.charCodeAt(a++));if(c===void 0||l===void 0)throw new M(`Invalid byte sequence ("${r[a-2]}${r[a-1]}" in "${r}").`);s[i]=c*16+l}return s}function B1(e,t){const n=D(e,t);return ot(n)}function ln(e,t={}){const n=I1.encode(e);return typeof t.size=="number"?(Ye(n,{size:t.size}),Qn(n,{dir:"right",size:t.size})):n}const wo=BigInt(2**32-1),rl=BigInt(32);function j1(e,t=!1){return t?{h:Number(e&wo),l:Number(e>>rl&wo)}:{h:Number(e>>rl&wo)|0,l:Number(e&wo)|0}}function kd(e,t=!1){const n=e.length;let r=new Uint32Array(n),o=new Uint32Array(n);for(let s=0;s<n;s++){const{h:i,l:a}=j1(e[s],t);[r[s],o[s]]=[i,a]}return[r,o]}const ol=(e,t,n)=>e>>>n,sl=(e,t,n)=>e<<32-n|t>>>n,Cn=(e,t,n)=>e>>>n|t<<32-n,An=(e,t,n)=>e<<32-n|t>>>n,vo=(e,t,n)=>e<<64-n|t>>>n-32,xo=(e,t,n)=>e>>>n-32|t<<64-n,S1=(e,t,n)=>e<<n|t>>>32-n,_1=(e,t,n)=>t<<n|e>>>32-n,P1=(e,t,n)=>t<<n-32|e>>>64-n,T1=(e,t,n)=>e<<n-32|t>>>64-n;function Et(e,t,n,r){const o=(t>>>0)+(r>>>0);return{h:e+n+(o/2**32|0)|0,l:o|0}}const O1=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),R1=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,M1=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),N1=(e,t,n,r,o)=>t+n+r+o+(e/2**32|0)|0,D1=(e,t,n,r,o)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(o>>>0),F1=(e,t,n,r,o,s)=>t+n+r+o+s+(e/2**32|0)|0,En=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function L1(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function wr(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Vt(e,...t){if(!L1(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function U1(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");wr(e.outputLen),wr(e.blockLen)}function Wn(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Bd(e,t){Vt(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function z1(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function Gt(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Ls(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function dt(e,t){return e<<32-t|e>>>t}const W1=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function $1(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function q1(e){for(let t=0;t<e.length;t++)e[t]=$1(e[t]);return e}const il=W1?e=>e:q1,jd=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",H1=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function vA(e){if(Vt(e),jd)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=H1[e[n]];return t}const It={_0:48,_9:57,A:65,F:70,a:97,f:102};function al(e){if(e>=It._0&&e<=It._9)return e-It._0;if(e>=It.A&&e<=It.F)return e-(It.A-10);if(e>=It.a&&e<=It.f)return e-(It.a-10)}function xA(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(jd)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let o=0,s=0;o<n;o++,s+=2){const i=al(e.charCodeAt(s)),a=al(e.charCodeAt(s+1));if(i===void 0||a===void 0){const c=e[s]+e[s+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+s)}r[o]=i*16+a}return r}function V1(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function as(e){return typeof e=="string"&&(e=V1(e)),Vt(e),e}function G1(...e){let t=0;for(let r=0;r<e.length;r++){const o=e[r];Vt(o),t+=o.length}const n=new Uint8Array(t);for(let r=0,o=0;r<e.length;r++){const s=e[r];n.set(s,o),o+=s.length}return n}class ja{}function cs(e){const t=r=>e().update(as(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Q1(e=32){if(En&&typeof En.getRandomValues=="function")return En.getRandomValues(new Uint8Array(e));if(En&&typeof En.randomBytes=="function")return Uint8Array.from(En.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}const K1=BigInt(0),ir=BigInt(1),J1=BigInt(2),Y1=BigInt(7),Z1=BigInt(256),X1=BigInt(113),Sd=[],_d=[],Pd=[];for(let e=0,t=ir,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],Sd.push(2*(5*r+n)),_d.push((e+1)*(e+2)/2%64);let o=K1;for(let s=0;s<7;s++)t=(t<<ir^(t>>Y1)*X1)%Z1,t&J1&&(o^=ir<<(ir<<BigInt(s))-ir);Pd.push(o)}const Td=kd(Pd,!0),em=Td[0],tm=Td[1],cl=(e,t,n)=>n>32?P1(e,t,n):S1(e,t,n),ll=(e,t,n)=>n>32?T1(e,t,n):_1(e,t,n);function nm(e,t=24){const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let i=0;i<10;i++)n[i]=e[i]^e[i+10]^e[i+20]^e[i+30]^e[i+40];for(let i=0;i<10;i+=2){const a=(i+8)%10,c=(i+2)%10,l=n[c],u=n[c+1],d=cl(l,u,1)^n[a],f=ll(l,u,1)^n[a+1];for(let h=0;h<50;h+=10)e[i+h]^=d,e[i+h+1]^=f}let o=e[2],s=e[3];for(let i=0;i<24;i++){const a=_d[i],c=cl(o,s,a),l=ll(o,s,a),u=Sd[i];o=e[u],s=e[u+1],e[u]=c,e[u+1]=l}for(let i=0;i<50;i+=10){for(let a=0;a<10;a++)n[a]=e[i+a];for(let a=0;a<10;a++)e[i+a]^=~n[(a+2)%10]&n[(a+4)%10]}e[0]^=em[r],e[1]^=tm[r]}Gt(n)}class Sa extends ja{constructor(t,n,r,o=!1,s=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=o,this.rounds=s,wr(r),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=z1(this.state)}clone(){return this._cloneInto()}keccak(){il(this.state32),nm(this.state32,this.rounds),il(this.state32),this.posOut=0,this.pos=0}update(t){Wn(this),t=as(t),Vt(t);const{blockLen:n,state:r}=this,o=t.length;for(let s=0;s<o;){const i=Math.min(n-this.pos,o-s);for(let a=0;a<i;a++)r[this.pos++]^=t[s++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:n,pos:r,blockLen:o}=this;t[r]^=n,(n&128)!==0&&r===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){Wn(this,!1),Vt(t),this.finish();const n=this.state,{blockLen:r}=this;for(let o=0,s=t.length;o<s;){this.posOut>=r&&this.keccak();const i=Math.min(r-this.posOut,s-o);t.set(n.subarray(this.posOut,this.posOut+i),o),this.posOut+=i,o+=i}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return wr(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(Bd(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Gt(this.state)}_cloneInto(t){const{blockLen:n,suffix:r,outputLen:o,rounds:s,enableXOF:i}=this;return t||(t=new Sa(n,r,o,i,s)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=s,t.suffix=r,t.outputLen=o,t.enableXOF=i,t.destroyed=this.destroyed,t}}const rm=(e,t,n)=>cs(()=>new Sa(t,e,n)),Od=rm(1,136,256/8);function we(e,t){const n=t||"hex",r=Od(bt(e,{strict:!1})?Kn(e):e);return n==="bytes"?r:Re(r)}let ls=class extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&(super.delete(t),super.set(t,n)),n}set(t,n){if(super.has(t)&&super.delete(t),super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=super.keys().next().value;r!==void 0&&super.delete(r)}return this}};const om=/^0x[a-fA-F0-9]{40}$/,Us=new ls(8192);function fe(e,t){const{strict:n=!0}=t??{},r=`${e}.${n}`;if(Us.has(r))return Us.get(r);const o=om.test(e)?e.toLowerCase()===e?!0:n?us(e)===e:!0:!1;return Us.set(r,o),o}const zs=new ls(8192);function us(e,t){if(zs.has(`${e}.${t}`))return zs.get(`${e}.${t}`);const n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=we(ln(n),"bytes"),o=(t?n.substring(`${t}0x`.length):n).split("");for(let i=0;i<40;i+=2)r[i>>1]>>4>=8&&o[i]&&(o[i]=o[i].toUpperCase()),(r[i>>1]&15)>=8&&o[i+1]&&(o[i+1]=o[i+1].toUpperCase());const s=`0x${o.join("")}`;return zs.set(`${e}.${t}`,s),s}function me(e,t){if(!fe(e,{strict:!1}))throw new Se({address:e});return us(e,t)}let ul=class extends M{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}},Rd=class extends M{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}},sm=class extends M{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}};const im={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new sm({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new Rd({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new ul({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new ul({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function _a(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(im);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}function Qt(e,t,n,{strict:r}={}){return bt(e,{strict:!1})?am(e,t,n,{strict:r}):Dd(e,t,n,{strict:r})}function Md(e,t){if(typeof t=="number"&&t>0&&t>ae(e)-1)throw new Ad({offset:t,position:"start",size:ae(e)})}function Nd(e,t,n){if(typeof t=="number"&&typeof n=="number"&&ae(e)!==n-t)throw new Ad({offset:n,position:"end",size:ae(e)})}function Dd(e,t,n,{strict:r}={}){Md(e,t);const o=e.slice(t,n);return r&&Nd(o,t,n),o}function am(e,t,n,{strict:r}={}){Md(e,t);const o=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&Nd(o,t,n),o}function cm(e,t={}){typeof t.size<"u"&&Ye(e,{size:t.size});const n=de(e,t);return ke(n,t)}function lm(e,t={}){let n=e;if(typeof t.size<"u"&&(Ye(n,{size:t.size}),n=qe(n)),n.length>1||n[0]>1)throw new y1(n);return!!n[0]}function Pt(e,t={}){typeof t.size<"u"&&Ye(e,{size:t.size});const n=de(e,t);return rt(n,t)}function um(e,t={}){let n=e;return typeof t.size<"u"&&(Ye(n,{size:t.size}),n=qe(n,{dir:"right"})),new TextDecoder().decode(n)}function gt(e){return typeof e[0]=="string"?at(e):dm(e)}function dm(e){let t=0;for(const o of e)t+=o.length;const n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function at(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}const kA=/^(.*)\[([0-9]*)\]$/,fm=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Fd=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function yn(e,t){if(e.length!==t.length)throw new a1({expectedLength:e.length,givenLength:t.length});const n=hm({params:e,values:t}),r=Ta(n);return r.length===0?"0x":r}function hm({params:e,values:t}){const n=[];for(let r=0;r<e.length;r++)n.push(Pa({param:e[r],value:t[r]}));return n}function Pa({param:e,value:t}){const n=Oa(e.type);if(n){const[r,o]=n;return mm(t,{length:r,param:{...e,type:o}})}if(e.type==="tuple")return vm(t,{param:e});if(e.type==="address")return pm(t);if(e.type==="bool")return gm(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const r=e.type.startsWith("int"),[,,o="256"]=Fd.exec(e.type)??[];return ym(t,{signed:r,size:Number(o)})}if(e.type.startsWith("bytes"))return bm(t,{param:e});if(e.type==="string")return wm(t);throw new p1(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function Ta(e){let t=0;for(let s=0;s<e.length;s++){const{dynamic:i,encoded:a}=e[s];i?t+=32:t+=ae(a)}const n=[],r=[];let o=0;for(let s=0;s<e.length;s++){const{dynamic:i,encoded:a}=e[s];i?(n.push(D(t+o,{size:32})),r.push(a),o+=ae(a)):n.push(a)}return gt([...n,...r])}function pm(e){if(!fe(e))throw new Se({address:e});return{dynamic:!1,encoded:Ht(e.toLowerCase())}}function mm(e,{length:t,param:n}){const r=t===null;if(!Array.isArray(e))throw new Cd(e);if(!r&&e.length!==t)throw new s1({expectedLength:t,givenLength:e.length,type:`${n.type}[${t}]`});let o=!1;const s=[];for(let i=0;i<e.length;i++){const a=Pa({param:n,value:e[i]});a.dynamic&&(o=!0),s.push(a)}if(r||o){const i=Ta(s);if(r){const a=D(s.length,{size:32});return{dynamic:!0,encoded:s.length>0?gt([a,i]):a}}if(o)return{dynamic:!0,encoded:i}}return{dynamic:!1,encoded:gt(s.map(({encoded:i})=>i))}}function bm(e,{param:t}){const[,n]=t.type.split("bytes"),r=ae(e);if(!n){let o=e;return r%32!==0&&(o=Ht(o,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:gt([Ht(D(r,{size:32})),o])}}if(r!==Number.parseInt(n,10))throw new i1({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:Ht(e,{dir:"right"})}}function gm(e){if(typeof e!="boolean")throw new M(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Ht(Id(e))}}function ym(e,{signed:t,size:n=256}){if(typeof n=="number"){const r=2n**(BigInt(n)-(t?1n:0n))-1n,o=t?-r-1n:0n;if(e>r||e<o)throw new Ba({max:r.toString(),min:o.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:D(e,{size:32,signed:t})}}function wm(e){const t=zn(e),n=Math.ceil(ae(t)/32),r=[];for(let o=0;o<n;o++)r.push(Ht(Qt(t,o*32,(o+1)*32),{dir:"right"}));return{dynamic:!0,encoded:gt([Ht(D(ae(t),{size:32})),...r])}}function vm(e,{param:t}){let n=!1;const r=[];for(let o=0;o<t.components.length;o++){const s=t.components[o],i=Array.isArray(e)?o:s.name,a=Pa({param:s,value:e[i]});r.push(a),a.dynamic&&(n=!0)}return{dynamic:n,encoded:n?Ta(r):gt(r.map(({encoded:o})=>o))}}function Oa(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function Zr(e,t){const n=typeof t=="string"?ot(t):t,r=_a(n);if(ae(n)===0&&e.length>0)throw new Yr;if(ae(t)&&ae(t)<32)throw new wd({data:typeof t=="string"?t:de(t),params:e,size:ae(t)});let o=0;const s=[];for(let i=0;i<e.length;++i){const a=e[i];r.setPosition(o);const[c,l]=Mn(r,a,{staticPosition:0});o+=l,s.push(c)}return s}function Mn(e,t,{staticPosition:n}){const r=Oa(t.type);if(r){const[o,s]=r;return Cm(e,{...t,type:s},{length:o,staticPosition:n})}if(t.type==="tuple")return km(e,t,{staticPosition:n});if(t.type==="address")return xm(e);if(t.type==="bool")return Am(e);if(t.type.startsWith("bytes"))return Em(e,t,{staticPosition:n});if(t.type.startsWith("uint")||t.type.startsWith("int"))return Im(e,t);if(t.type==="string")return Bm(e,{staticPosition:n});throw new m1(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const dl=32,Ri=32;function xm(e){const t=e.readBytes(32);return[us(de(Dd(t,-20))),32]}function Cm(e,t,{length:n,staticPosition:r}){if(!n){const i=Pt(e.readBytes(Ri)),a=r+i,c=a+dl;e.setPosition(a);const l=Pt(e.readBytes(dl)),u=vr(t);let d=0;const f=[];for(let h=0;h<l;++h){e.setPosition(c+(u?h*32:d));const[p,m]=Mn(e,t,{staticPosition:c});d+=m,f.push(p)}return e.setPosition(r+32),[f,32]}if(vr(t)){const i=Pt(e.readBytes(Ri)),a=r+i,c=[];for(let l=0;l<n;++l){e.setPosition(a+l*32);const[u]=Mn(e,t,{staticPosition:a});c.push(u)}return e.setPosition(r+32),[c,32]}let o=0;const s=[];for(let i=0;i<n;++i){const[a,c]=Mn(e,t,{staticPosition:r+o});o+=c,s.push(a)}return[s,o]}function Am(e){return[lm(e.readBytes(32),{size:32}),32]}function Em(e,t,{staticPosition:n}){const[r,o]=t.type.split("bytes");if(!o){const i=Pt(e.readBytes(32));e.setPosition(n+i);const a=Pt(e.readBytes(32));if(a===0)return e.setPosition(n+32),["0x",32];const c=e.readBytes(a);return e.setPosition(n+32),[de(c),32]}return[de(e.readBytes(Number.parseInt(o,10),32)),32]}function Im(e,t){const n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256",10),o=e.readBytes(32);return[r>48?cm(o,{signed:n}):Pt(o,{signed:n}),32]}function km(e,t,{staticPosition:n}){const r=t.components.length===0||t.components.some(({name:i})=>!i),o=r?[]:{};let s=0;if(vr(t)){const i=Pt(e.readBytes(Ri)),a=n+i;for(let c=0;c<t.components.length;++c){const l=t.components[c];e.setPosition(a+s);const[u,d]=Mn(e,l,{staticPosition:a});s+=d,o[r?c:l==null?void 0:l.name]=u}return e.setPosition(n+32),[o,32]}for(let i=0;i<t.components.length;++i){const a=t.components[i],[c,l]=Mn(e,a,{staticPosition:n});o[r?i:a==null?void 0:a.name]=c,s+=l}return[o,s]}function Bm(e,{staticPosition:t}){const n=Pt(e.readBytes(32)),r=t+n;e.setPosition(r);const o=Pt(e.readBytes(32));if(o===0)return e.setPosition(t+32),["",32];const s=e.readBytes(o,32),i=um(qe(s));return e.setPosition(t+32),[i,32]}function vr(e){var r;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(r=e.components)==null?void 0:r.some(vr);const n=Oa(e.type);return!!(n&&vr({...e,type:n[1]}))}const jm=e=>we(Kn(e));function Sm(e){return jm(e)}const _m="1.2.3";let De=class Mi extends Error{constructor(t,n={}){var i;const r=n.cause instanceof Mi?n.cause.details:(i=n.cause)!=null&&i.message?n.cause.message:n.details,o=n.cause instanceof Mi&&n.cause.docsPath||n.docsPath,s=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${_m}`].join(`
|
|
23
|
+
`);super(s),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}};function Mt(e,t){const n=e.exec(t);return n==null?void 0:n.groups}const Ld=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Ud=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,zd=/^\(.+?\).*?$/,fl=/^tuple(?<array>(\[(\d*)\])*)$/;function Ni(e){let t=e.type;if(fl.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let o=0;o<n;o++){const s=e.components[o];t+=Ni(s),o<n-1&&(t+=", ")}const r=Mt(fl,e.type);return t+=`)${(r==null?void 0:r.array)||""}`,Ni({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function _n(e){let t="";const n=e.length;for(let r=0;r<n;r++){const o=e[r];t+=Ni(o),r!==n-1&&(t+=", ")}return t}function Wo(e){var t;return e.type==="function"?`function ${e.name}(${_n(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${(t=e.outputs)!=null&&t.length?` returns (${_n(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${_n(e.inputs)})`:e.type==="error"?`error ${e.name}(${_n(e.inputs)})`:e.type==="constructor"?`constructor(${_n(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}const Wd=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function Pm(e){return Wd.test(e)}function Tm(e){return Mt(Wd,e)}const $d=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function Om(e){return $d.test(e)}function Rm(e){return Mt($d,e)}const qd=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function Mm(e){return qd.test(e)}function Nm(e){return Mt(qd,e)}const Hd=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function ds(e){return Hd.test(e)}function Dm(e){return Mt(Hd,e)}const Vd=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function Fm(e){return Vd.test(e)}function Lm(e){return Mt(Vd,e)}const Gd=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function Um(e){return Gd.test(e)}function zm(e){return Mt(Gd,e)}const Wm=/^receive\(\) external payable$/;function $m(e){return Wm.test(e)}const hl=new Set(["memory","indexed","storage","calldata"]),qm=new Set(["indexed"]),Di=new Set(["calldata","memory","storage"]);class Hm extends De{constructor({signature:t}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class Vm extends De{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class Gm extends De{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class Qm extends De{constructor({params:t}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class Km extends De{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class Jm extends De{constructor({param:t,name:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${n}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class Ym extends De{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class Zm extends De{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class Xm extends De{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class Jn extends De{constructor({signature:t,type:n}){super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class eb extends De{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class tb extends De{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class nb extends De{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class rb extends De{constructor({current:t,depth:n}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${n>0?"opening":"closing"} parentheses.`],details:`Depth "${n}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}function ob(e,t,n){let r="";if(n)for(const o of Object.entries(n)){if(!o)continue;let s="";for(const i of o[1])s+=`[${i.type}${i.name?`:${i.name}`:""}]`;r+=`(${o[0]}{${s}})`}return t?`${t}:${e}${r}`:`${e}${r}`}const Ws=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function Fi(e,t={}){if(Mm(e))return sb(e,t);if(Om(e))return ib(e,t);if(Pm(e))return ab(e,t);if(Fm(e))return cb(e,t);if(Um(e))return lb(e);if($m(e))return{type:"receive",stateMutability:"payable"};throw new eb({signature:e})}function sb(e,t={}){const n=Nm(e);if(!n)throw new Jn({signature:e,type:"function"});const r=$e(n.parameters),o=[],s=r.length;for(let a=0;a<s;a++)o.push(Rt(r[a],{modifiers:Di,structs:t,type:"function"}));const i=[];if(n.returns){const a=$e(n.returns),c=a.length;for(let l=0;l<c;l++)i.push(Rt(a[l],{modifiers:Di,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:o,outputs:i}}function ib(e,t={}){const n=Rm(e);if(!n)throw new Jn({signature:e,type:"event"});const r=$e(n.parameters),o=[],s=r.length;for(let i=0;i<s;i++)o.push(Rt(r[i],{modifiers:qm,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:o}}function ab(e,t={}){const n=Tm(e);if(!n)throw new Jn({signature:e,type:"error"});const r=$e(n.parameters),o=[],s=r.length;for(let i=0;i<s;i++)o.push(Rt(r[i],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:o}}function cb(e,t={}){const n=Lm(e);if(!n)throw new Jn({signature:e,type:"constructor"});const r=$e(n.parameters),o=[],s=r.length;for(let i=0;i<s;i++)o.push(Rt(r[i],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:o}}function lb(e){const t=zm(e);if(!t)throw new Jn({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}const ub=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,db=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,fb=/^u?int$/;function Rt(e,t){var d,f;const n=ob(e,t==null?void 0:t.type,t==null?void 0:t.structs);if(Ws.has(n))return Ws.get(n);const r=zd.test(e),o=Mt(r?db:ub,e);if(!o)throw new Km({param:e});if(o.name&&pb(o.name))throw new Jm({param:e,name:o.name});const s=o.name?{name:o.name}:{},i=o.modifier==="indexed"?{indexed:!0}:{},a=(t==null?void 0:t.structs)??{};let c,l={};if(r){c="tuple";const h=$e(o.type),p=[],m=h.length;for(let g=0;g<m;g++)p.push(Rt(h[g],{structs:a}));l={components:p}}else if(o.type in a)c="tuple",l={components:a[o.type]};else if(fb.test(o.type))c=`${o.type}256`;else if(o.type==="address payable")c="address";else if(c=o.type,(t==null?void 0:t.type)!=="struct"&&!Qd(c))throw new Gm({type:c});if(o.modifier){if(!((f=(d=t==null?void 0:t.modifiers)==null?void 0:d.has)!=null&&f.call(d,o.modifier)))throw new Ym({param:e,type:t==null?void 0:t.type,modifier:o.modifier});if(Di.has(o.modifier)&&!mb(c,!!o.array))throw new Zm({param:e,type:t==null?void 0:t.type,modifier:o.modifier})}const u={type:`${c}${o.array??""}`,...s,...i,...l};return Ws.set(n,u),u}function $e(e,t=[],n="",r=0){const o=e.trim().length;for(let s=0;s<o;s++){const i=e[s],a=e.slice(s+1);switch(i){case",":return r===0?$e(a,[...t,n.trim()]):$e(a,t,`${n}${i}`,r);case"(":return $e(a,t,`${n}${i}`,r+1);case")":return $e(a,t,`${n}${i}`,r-1);default:return $e(a,t,`${n}${i}`,r)}}if(n==="")return t;if(r!==0)throw new rb({current:n,depth:r});return t.push(n.trim()),t}function Qd(e){return e==="address"||e==="bool"||e==="function"||e==="string"||Ld.test(e)||Ud.test(e)}const hb=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function pb(e){return e==="address"||e==="bool"||e==="function"||e==="string"||e==="tuple"||Ld.test(e)||Ud.test(e)||hb.test(e)}function mb(e,t){return t||e==="bytes"||e==="string"||e==="tuple"}function Ra(e){const t={},n=e.length;for(let i=0;i<n;i++){const a=e[i];if(!ds(a))continue;const c=Dm(a);if(!c)throw new Jn({signature:a,type:"struct"});const l=c.properties.split(";"),u=[],d=l.length;for(let f=0;f<d;f++){const p=l[f].trim();if(!p)continue;const m=Rt(p,{type:"struct"});u.push(m)}if(!u.length)throw new tb({signature:a});t[c.name]=u}const r={},o=Object.entries(t),s=o.length;for(let i=0;i<s;i++){const[a,c]=o[i];r[a]=Kd(c,t)}return r}const bb=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function Kd(e=[],t={},n=new Set){const r=[],o=e.length;for(let s=0;s<o;s++){const i=e[s];if(zd.test(i.type))r.push(i);else{const c=Mt(bb,i.type);if(!(c!=null&&c.type))throw new Xm({abiParameter:i});const{array:l,type:u}=c;if(u in t){if(n.has(u))throw new nb({type:u});r.push({...i,type:`tuple${l??""}`,components:Kd(t[u],t,new Set([...n,u]))})}else if(Qd(u))r.push(i);else throw new Vm({type:u})}}return r}function Jd(e){const t=Ra(e),n=[],r=e.length;for(let o=0;o<r;o++){const s=e[o];ds(s)||n.push(Fi(s,t))}return n}function pl(e){let t;if(typeof e=="string")t=Fi(e);else{const n=Ra(e),r=e.length;for(let o=0;o<r;o++){const s=e[o];if(!ds(s)){t=Fi(s,n);break}}}if(!t)throw new Hm({signature:e});return t}function ml(e){const t=[];if(typeof e=="string"){const n=$e(e),r=n.length;for(let o=0;o<r;o++)t.push(Rt(n[o],{modifiers:hl}))}else{const n=Ra(e),r=e.length;for(let o=0;o<r;o++){const s=e[o];if(ds(s))continue;const i=$e(s),a=i.length;for(let c=0;c<a;c++)t.push(Rt(i[c],{modifiers:hl,structs:n}))}}if(t.length===0)throw new Qm({params:e});return t}function gb(e){let t=!0,n="",r=0,o="",s=!1;for(let i=0;i<e.length;i++){const a=e[i];if(["(",")",","].includes(a)&&(t=!0),a==="("&&r++,a===")"&&r--,!!t){if(r===0){if(a===" "&&["event","function",""].includes(o))o="";else if(o+=a,a===")"){s=!0;break}continue}if(a===" "){e[i-1]!==","&&n!==","&&n!==",("&&(n="",t=!1);continue}o+=a,n+=a}}if(!s)throw new M("Unable to normalize signature.");return o}const yb=e=>{const t=typeof e=="string"?e:Wo(e);return gb(t)};function Yd(e){return Sm(yb(e))}const fs=Yd,Xr=e=>Qt(Yd(e),0,4);function wn(e){const{abi:t,args:n=[],name:r}=e,o=bt(r,{strict:!1}),s=t.filter(a=>o?a.type==="function"?Xr(a)===r:a.type==="event"?fs(a)===r:!1:"name"in a&&a.name===r);if(s.length===0)return;if(s.length===1)return s[0];let i;for(const a of s){if(!("inputs"in a))continue;if(!n||n.length===0){if(!a.inputs||a.inputs.length===0)return a;continue}if(!a.inputs||a.inputs.length===0||a.inputs.length!==n.length)continue;if(n.every((l,u)=>{const d="inputs"in a&&a.inputs[u];return d?Li(l,d):!1})){if(i&&"inputs"in i&&i.inputs){const l=Zd(a.inputs,i.inputs,n);if(l)throw new f1({abiItem:a,type:l[0]},{abiItem:i,type:l[1]})}i=a}}return i||s[0]}function Li(e,t){const n=typeof e,r=t.type;switch(r){case"address":return fe(e,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return r==="tuple"&&"components"in t?Object.values(t.components).every((o,s)=>n==="object"&&Li(Object.values(e)[s],o)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)?Array.isArray(e)&&e.every(o=>Li(o,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function Zd(e,t,n){for(const r in e){const o=e[r],s=t[r];if(o.type==="tuple"&&s.type==="tuple"&&"components"in o&&"components"in s)return Zd(o.components,s.components,n[r]);const i=[o.type,s.type];if(i.includes("address")&&i.includes("bytes20")?!0:i.includes("address")&&i.includes("string")?fe(n[r],{strict:!1}):i.includes("address")&&i.includes("bytes")?fe(n[r],{strict:!1}):!1)return i}}const $s="/docs/contract/decodeFunctionResult";function Xt(e){const{abi:t,args:n,functionName:r,data:o}=e;let s=t[0];if(r){const a=wn({abi:t,args:n,name:r});if(!a)throw new Un(r,{docsPath:$s});s=a}if(s.type!=="function")throw new Un(void 0,{docsPath:$s});if(!s.outputs)throw new xd(s.name,{docsPath:$s});const i=Zr(s.outputs,o);if(i&&i.length>1)return i;if(i&&i.length===1)return i[0]}const bl="/docs/contract/encodeFunctionData";function wb(e){const{abi:t,args:n,functionName:r}=e;let o=t[0];if(r){const s=wn({abi:t,args:n,name:r});if(!s)throw new Un(r,{docsPath:bl});o=s}if(o.type!=="function")throw new Un(void 0,{docsPath:bl});return{abi:[o],functionName:Xr(nt(o))}}function Ze(e){const{args:t}=e,{abi:n,functionName:r}=(()=>{var a;return e.abi.length===1&&((a=e.functionName)!=null&&a.startsWith("0x"))?e:wb(e)})(),o=n[0],s=r,i="inputs"in o&&o.inputs?yn(o.inputs,t??[]):void 0;return at([s,i??"0x"])}class Ui extends M{constructor({blockNumber:t,chain:n,contract:r}){super(`Chain "${n.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...t&&r.blockCreated&&r.blockCreated>t?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class BA extends M{constructor({chain:t,currentChainId:n}){super(`The current chain of the wallet (id: ${n}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`,{metaMessages:[`Current Chain ID: ${n}`,`Expected Chain ID: ${t.id} – ${t.name}`],name:"ChainMismatchError"})}}class jA extends M{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(`
|
|
24
|
+
`),{name:"ChainNotFoundError"})}}class Xd extends M{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class hs extends M{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}function Yn({blockNumber:e,chain:t,contract:n}){var o;const r=(o=t==null?void 0:t.contracts)==null?void 0:o[n];if(!r)throw new Ui({chain:t,contract:{name:n}});if(e&&r.blockCreated&&r.blockCreated>e)throw new Ui({blockNumber:e,chain:t,contract:{name:n,blockCreated:r.blockCreated}});return r.address}function _e(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}const vb={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},ef={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},xb={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function Cb(e){const{abi:t,data:n,cause:r}=e,o=Qt(n,0,4);if(o==="0x")throw new Yr({cause:r});const i=[...t||[],ef,xb].find(a=>a.type==="error"&&o===Xr(nt(a)));if(!i)throw new vd(o,{docsPath:"/docs/contract/decodeErrorResult",cause:r});return{abiItem:i,args:"inputs"in i&&i.inputs&&i.inputs.length>0?Zr(i.inputs,Qt(n,4)):void 0,errorName:i.name}}const ve=(e,t,n)=>JSON.stringify(e,(r,o)=>typeof o=="bigint"?o.toString():o,n);function tf({abiItem:e,args:t,includeFunctionName:n=!0,includeName:r=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((o,s)=>`${r&&o.name?`${o.name}: `:""}${typeof t[s]=="object"?ve(t[s]):t[s]}`).join(", ")})`}const Ab={gwei:9,wei:18},Eb={ether:-9,wei:9},Ib={ether:-18,gwei:-9};function ps(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[o,s]=[n.slice(0,n.length-t),n.slice(n.length-t)];return s=s.replace(/(0+)$/,""),`${r?"-":""}${o||"0"}${s?`.${s}`:""}`}function Ma(e,t="wei"){return ps(e,Ab[t])}function Me(e,t="wei"){return ps(e,Eb[t])}class kb extends M{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}}class Bb extends M{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function gl(e){return e.reduce((t,{slot:n,value:r})=>`${t} ${n}: ${r}
|
|
25
|
+
`,"")}function jb(e){return e.reduce((t,{address:n,...r})=>{let o=`${t} ${n}:
|
|
26
|
+
`;return r.nonce&&(o+=` nonce: ${r.nonce}
|
|
27
|
+
`),r.balance&&(o+=` balance: ${r.balance}
|
|
28
|
+
`),r.code&&(o+=` code: ${r.code}
|
|
29
|
+
`),r.state&&(o+=` state:
|
|
30
|
+
`,o+=gl(r.state)),r.stateDiff&&(o+=` stateDiff:
|
|
31
|
+
`,o+=gl(r.stateDiff)),o},` State Override:
|
|
32
|
+
`).slice(0,-1)}function eo(e){const t=Object.entries(e).map(([r,o])=>o===void 0||o===!1?null:[r,o]).filter(Boolean),n=t.reduce((r,[o])=>Math.max(r,o.length),0);return t.map(([r,o])=>` ${`${r}:`.padEnd(n+1)} ${o}`).join(`
|
|
33
|
+
`)}class Sb extends M{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class _b extends M{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",eo(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class Pb extends M{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class Tb extends M{constructor(t,{account:n,docsPath:r,chain:o,data:s,gas:i,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var p;const h=eo({chain:o&&`${o==null?void 0:o.name} (id: ${o==null?void 0:o.id})`,from:n==null?void 0:n.address,to:d,value:typeof f<"u"&&`${Ma(f)} ${((p=o==null?void 0:o.nativeCurrency)==null?void 0:p.symbol)||"ETH"}`,data:s,gas:i,gasPrice:typeof a<"u"&&`${Me(a)} gwei`,maxFeePerGas:typeof c<"u"&&`${Me(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${Me(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",h].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class nf extends M{constructor({blockHash:t,blockNumber:n,blockTag:r,hash:o,index:s}){let i="Transaction";r&&s!==void 0&&(i=`Transaction at block time "${r}" at index "${s}"`),t&&s!==void 0&&(i=`Transaction at block hash "${t}" at index "${s}"`),n&&s!==void 0&&(i=`Transaction at block number "${n}" at index "${s}"`),o&&(i=`Transaction with hash "${o}"`),super(`${i} could not be found.`,{name:"TransactionNotFoundError"})}}class rf extends M{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class Ob extends M{constructor({receipt:t}){super(`Transaction with hash "${t.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=t}}class Rb extends M{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}const Mb=e=>e,Na=e=>e;class of extends M{constructor(t,{account:n,docsPath:r,chain:o,data:s,gas:i,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f,stateOverride:h}){var g;const p=n?_e(n):void 0;let m=eo({from:p==null?void 0:p.address,to:d,value:typeof f<"u"&&`${Ma(f)} ${((g=o==null?void 0:o.nativeCurrency)==null?void 0:g.symbol)||"ETH"}`,data:s,gas:i,gasPrice:typeof a<"u"&&`${Me(a)} gwei`,maxFeePerGas:typeof c<"u"&&`${Me(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${Me(l)} gwei`,nonce:u});h&&(m+=`
|
|
34
|
+
${jb(h)}`),super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",m].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class Da extends M{constructor(t,{abi:n,args:r,contractAddress:o,docsPath:s,functionName:i,sender:a}){const c=wn({abi:n,args:r,name:i}),l=c?tf({abiItem:c,args:r,includeFunctionName:!1,includeName:!1}):void 0,u=c?nt(c,{includeName:!0}):void 0,d=eo({address:o&&Mb(o),function:u,args:l&&l!=="()"&&`${[...Array((i==null?void 0:i.length)??0).keys()].map(()=>" ").join("")}${l}`,sender:a});super(t.shortMessage||`An unknown error occurred while executing the contract function "${i}".`,{cause:t,docsPath:s,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],d&&"Contract Call:",d].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=n,this.args=r,this.cause=t,this.contractAddress=o,this.functionName=i,this.sender=a}}class zi extends M{constructor({abi:t,data:n,functionName:r,message:o,cause:s}){let i,a,c,l;if(n&&n!=="0x")try{a=Cb({abi:t,data:n,cause:s});const{abiItem:d,errorName:f,args:h}=a;if(f==="Error")l=h[0];else if(f==="Panic"){const[p]=h;l=vb[p]}else{const p=d?nt(d,{includeName:!0}):void 0,m=d&&h?tf({abiItem:d,args:h,includeFunctionName:!1,includeName:!1}):void 0;c=[p?`Error: ${p}`:"",m&&m!=="()"?` ${[...Array((f==null?void 0:f.length)??0).keys()].map(()=>" ").join("")}${m}`:""]}}catch(d){i=d}else o&&(l=o);let u;i instanceof vd&&(u=i.signature,c=[`Unable to decode signature "${u}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${u}.`]),super(l&&l!=="execution reverted"||u?[`The contract function "${r}" reverted with the following ${u?"signature":"reason"}:`,l||u].join(`
|
|
35
|
+
`):`The contract function "${r}" reverted.`,{cause:i??s,metaMessages:c,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=a,this.raw=n,this.reason=l,this.signature=u}}class Nb extends M{constructor({functionName:t,cause:n}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError",cause:n})}}class Db extends M{constructor({factory:t}){super(`Deployment for counterfactual contract call failed${t?` for factory "${t}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class ms extends M{constructor({data:t,message:n}){super(n||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}function Fa(e){var n,r,o,s,i,a;if(!(e instanceof M))return!1;const t=e.walk(c=>c instanceof zi);return t instanceof zi?((n=t.data)==null?void 0:n.errorName)==="HttpError"||((r=t.data)==null?void 0:r.errorName)==="ResolverError"||((o=t.data)==null?void 0:o.errorName)==="ResolverNotContract"||((s=t.data)==null?void 0:s.errorName)==="ResolverNotFound"||((i=t.data)==null?void 0:i.errorName)==="ReverseAddressMismatch"||((a=t.data)==null?void 0:a.errorName)==="UnsupportedResolverProfile":!1}function Fb(e){const{abi:t,data:n}=e,r=Qt(n,0,4),o=t.find(s=>s.type==="function"&&r===Xr(nt(s)));if(!o)throw new d1(r,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:o.name,args:"inputs"in o&&o.inputs&&o.inputs.length>0?Zr(o.inputs,Qt(n,4)):void 0}}const qs="/docs/contract/encodeErrorResult";function yl(e){const{abi:t,errorName:n,args:r}=e;let o=t[0];if(n){const c=wn({abi:t,args:r,name:n});if(!c)throw new Xc(n,{docsPath:qs});o=c}if(o.type!=="error")throw new Xc(void 0,{docsPath:qs});const s=nt(o),i=Xr(s);let a="0x";if(r&&r.length>0){if(!o.inputs)throw new c1(o.name,{docsPath:qs});a=yn(o.inputs,r)}return at([i,a])}const Hs="/docs/contract/encodeFunctionResult";function Lb(e){const{abi:t,functionName:n,result:r}=e;let o=t[0];if(n){const i=wn({abi:t,name:n});if(!i)throw new Un(n,{docsPath:Hs});o=i}if(o.type!=="function")throw new Un(void 0,{docsPath:Hs});if(!o.outputs)throw new xd(o.name,{docsPath:Hs});const s=(()=>{if(o.outputs.length===0)return[];if(o.outputs.length===1)return[r];if(Array.isArray(r))return r;throw new Cd(r)})();return yn(o.outputs,s)}const bs="x-batch-gateway:true";async function Ub(e){const{data:t,ccipRequest:n}=e,{args:[r]}=Fb({abi:Ti,data:t}),o=[],s=[];return await Promise.all(r.map(async(i,a)=>{try{s[a]=i.urls.includes(bs)?await Ub({data:i.data,ccipRequest:n}):await n(i),o[a]=!1}catch(c){o[a]=!0,s[a]=zb(c)}})),Lb({abi:Ti,functionName:"query",result:[o,s]})}function zb(e){return e.name==="HttpRequestError"&&e.status?yl({abi:Ti,errorName:"HttpError",args:[e.status,e.shortMessage]}):yl({abi:[ef],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}function sf(e){if(e.length!==66||e.indexOf("[")!==0||e.indexOf("]")!==65)return null;const t=`0x${e.slice(1,65)}`;return bt(t)?t:null}function Wi(e){let t=new Uint8Array(32).fill(0);if(!e)return de(t);const n=e.split(".");for(let r=n.length-1;r>=0;r-=1){const o=sf(n[r]),s=o?Kn(o):we(ln(n[r]),"bytes");t=we(gt([t,s]),"bytes")}return de(t)}function Wb(e){return`[${e.slice(2)}]`}function $b(e){const t=new Uint8Array(32).fill(0);return e?sf(e)||we(ln(e)):de(t)}function La(e){const t=e.replace(/^\.|\.$/gm,"");if(t.length===0)return new Uint8Array(1);const n=new Uint8Array(ln(t).byteLength+2);let r=0;const o=t.split(".");for(let s=0;s<o.length;s++){let i=ln(o[s]);i.byteLength>255&&(i=ln(Wb($b(o[s])))),n[r]=i.length,n.set(i,r+1),r+=i.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}function G(e,t,n){const r=e[t.name];if(typeof r=="function")return r;const o=e[n];return typeof o=="function"?o:s=>t(e,s)}class br extends M{constructor({body:t,cause:n,details:r,headers:o,status:s,url:i}){super("HTTP request failed.",{cause:n,details:r,metaMessages:[s&&`Status: ${s}`,`URL: ${Na(i)}`,t&&`Request body: ${ve(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=o,this.status=s,this.url=i}}class Ua extends M{constructor({body:t,error:n,url:r}){super("RPC Request failed.",{cause:n,details:n.message,metaMessages:[`URL: ${Na(r)}`,`Request body: ${ve(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code,this.data=n.data,this.url=r}}class wl extends M{constructor({body:t,url:n}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${Na(n)}`,`Request body: ${ve(t)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=n}}const qb=-1;class Fe extends M{constructor(t,{code:n,docsPath:r,metaMessages:o,name:s,shortMessage:i}){super(i,{cause:t,docsPath:r,metaMessages:o||(t==null?void 0:t.metaMessages),name:s||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=s||t.name,this.code=t instanceof Ua?t.code:n??qb}}class Le extends Fe{constructor(t,n){super(t,n),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n.data}}class xr extends Fe{constructor(t){super(t,{code:xr.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(xr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class Cr extends Fe{constructor(t){super(t,{code:Cr.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(Cr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class Ar extends Fe{constructor(t,{method:n}={}){super(t,{code:Ar.code,name:"MethodNotFoundRpcError",shortMessage:`The method${n?` "${n}"`:""} does not exist / is not available.`})}}Object.defineProperty(Ar,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class Er extends Fe{constructor(t){super(t,{code:Er.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
|
|
36
|
+
`)})}}Object.defineProperty(Er,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class dn extends Fe{constructor(t){super(t,{code:dn.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(dn,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class Kt extends Fe{constructor(t){super(t,{code:Kt.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
|
|
37
|
+
`)})}}Object.defineProperty(Kt,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class Ir extends Fe{constructor(t){super(t,{code:Ir.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(Ir,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class pt extends Fe{constructor(t){super(t,{code:pt.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(pt,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class kr extends Fe{constructor(t){super(t,{code:kr.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(kr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class sn extends Fe{constructor(t,{method:n}={}){super(t,{code:sn.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${n?` "${n}"`:""} is not supported.`})}}Object.defineProperty(sn,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class $n extends Fe{constructor(t){super(t,{code:$n.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty($n,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class Br extends Fe{constructor(t){super(t,{code:Br.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(Br,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class oe extends Le{constructor(t){super(t,{code:oe.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(oe,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class jr extends Le{constructor(t){super(t,{code:jr.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(jr,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class Sr extends Le{constructor(t,{method:n}={}){super(t,{code:Sr.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${n?` " ${n}"`:""}.`})}}Object.defineProperty(Sr,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class _r extends Le{constructor(t){super(t,{code:_r.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(_r,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class Pr extends Le{constructor(t){super(t,{code:Pr.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(Pr,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class He extends Le{constructor(t){super(t,{code:He.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(He,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class Tr extends Le{constructor(t){super(t,{code:Tr.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(Tr,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class Or extends Le{constructor(t){super(t,{code:Or.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(Or,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class Rr extends Le{constructor(t){super(t,{code:Rr.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(Rr,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class Mr extends Le{constructor(t){super(t,{code:Mr.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(Mr,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class Nr extends Le{constructor(t){super(t,{code:Nr.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(Nr,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class Dr extends Le{constructor(t){super(t,{code:Dr.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(Dr,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class Fr extends Le{constructor(t){super(t,{code:Fr.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(Fr,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class Lr extends Le{constructor(t){super(t,{code:Lr.code,name:"WalletConnectSessionSettlementError",shortMessage:"WalletConnect session settlement failed."})}}Object.defineProperty(Lr,"code",{enumerable:!0,configurable:!0,writable:!0,value:7e3});class Hb extends Fe{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const Vb=3;function qn(e,{abi:t,address:n,args:r,docsPath:o,functionName:s,sender:i}){const a=e instanceof ms?e:e instanceof M?e.walk(p=>"data"in p)||e.walk():{},{code:c,data:l,details:u,message:d,shortMessage:f}=a,h=e instanceof Yr?new Nb({functionName:s,cause:e}):[Vb,dn.code].includes(c)&&(l||u||d||f)||c===Kt.code&&u==="execution reverted"&&l?new zi({abi:t,data:typeof l=="object"?l.data:l,functionName:s,message:a instanceof Ua?u:f??d,cause:e}):e;return new Da(h,{abi:t,args:r,contractAddress:n,docsPath:o,functionName:s,sender:i})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const za=BigInt(0),$i=BigInt(1);function to(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Wa(e){if(!to(e))throw new Error("Uint8Array expected")}function Ur(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function Co(e){const t=e.toString(16);return t.length&1?"0"+t:t}function af(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?za:BigInt("0x"+e)}const cf=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Gb=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function zr(e){if(Wa(e),cf)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=Gb[e[n]];return t}const kt={_0:48,_9:57,A:65,F:70,a:97,f:102};function vl(e){if(e>=kt._0&&e<=kt._9)return e-kt._0;if(e>=kt.A&&e<=kt.F)return e-(kt.A-10);if(e>=kt.a&&e<=kt.f)return e-(kt.a-10)}function $o(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(cf)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let o=0,s=0;o<n;o++,s+=2){const i=vl(e.charCodeAt(s)),a=vl(e.charCodeAt(s+1));if(i===void 0||a===void 0){const c=e[s]+e[s+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+s)}r[o]=i*16+a}return r}function un(e){return af(zr(e))}function lf(e){return Wa(e),af(zr(Uint8Array.from(e).reverse()))}function no(e,t){return $o(e.toString(16).padStart(t*2,"0"))}function uf(e,t){return no(e,t).reverse()}function Qe(e,t,n){let r;if(typeof t=="string")try{r=$o(t)}catch(s){throw new Error(e+" must be hex string or Uint8Array, cause: "+s)}else if(to(t))r=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const o=r.length;if(typeof n=="number"&&o!==n)throw new Error(e+" of length "+n+" expected, got "+o);return r}function qo(...e){let t=0;for(let r=0;r<e.length;r++){const o=e[r];Wa(o),t+=o.length}const n=new Uint8Array(t);for(let r=0,o=0;r<e.length;r++){const s=e[r];n.set(s,o),o+=s.length}return n}const Vs=e=>typeof e=="bigint"&&za<=e;function $a(e,t,n){return Vs(e)&&Vs(t)&&Vs(n)&&t<=e&&e<n}function Nn(e,t,n,r){if(!$a(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function Qb(e){let t;for(t=0;e>za;e>>=$i,t+=1);return t}const gs=e=>($i<<BigInt(e))-$i,Gs=e=>new Uint8Array(e),xl=e=>Uint8Array.from(e);function Kb(e,t,n){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let r=Gs(e),o=Gs(e),s=0;const i=()=>{r.fill(1),o.fill(0),s=0},a=(...d)=>n(o,r,...d),c=(d=Gs(0))=>{o=a(xl([0]),d),r=a(),d.length!==0&&(o=a(xl([1]),d),r=a())},l=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const f=[];for(;d<t;){r=a();const h=r.slice();f.push(h),d+=r.length}return qo(...f)};return(d,f)=>{i(),c(d);let h;for(;!(h=f(l()));)c();return i(),h}}const Jb={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||to(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function ys(e,t,n={}){const r=(o,s,i)=>{const a=Jb[s];if(typeof a!="function")throw new Error("invalid validator function");const c=e[o];if(!(i&&c===void 0)&&!a(c,e))throw new Error("param "+String(o)+" is invalid. Expected "+s+", got "+c)};for(const[o,s]of Object.entries(t))r(o,s,!1);for(const[o,s]of Object.entries(n))r(o,s,!0);return e}function Cl(e){const t=new WeakMap;return(n,...r)=>{const o=t.get(n);if(o!==void 0)return o;const s=e(n,...r);return t.set(n,s),s}}const Yb="0.1.1";function Zb(){return Yb}let Y=class jt extends Error{static setStaticOptions(t){jt.prototype.docsOrigin=t.docsOrigin,jt.prototype.showVersion=t.showVersion,jt.prototype.version=t.version}constructor(t,n={}){const r=(()=>{var u;if(n.cause instanceof jt){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&"details"in n.cause&&typeof n.cause.details=="string"?n.cause.details:(u=n.cause)!=null&&u.message?n.cause.message:n.details})(),o=n.cause instanceof jt&&n.cause.docsPath||n.docsPath,s=n.docsOrigin??jt.prototype.docsOrigin,i=`${s}${o??""}`,a=!!(n.version??jt.prototype.showVersion),c=n.version??jt.prototype.version,l=[t||"An error occurred.",...n.metaMessages?["",...n.metaMessages]:[],...r||o||a?["",r?`Details: ${r}`:void 0,o?`See: ${i}`:void 0,a?`Version: ${c}`:void 0]:[]].filter(u=>typeof u=="string").join(`
|
|
38
|
+
`);super(l,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=n.cause,this.details=r,this.docs=i,this.docsOrigin=s,this.docsPath=o,this.shortMessage=t,this.showVersion=a,this.version=c}walk(t){return df(this,t)}};Object.defineProperty(Y,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:`ox@${Zb()}`}});Y.setStaticOptions(Y.defaultStaticOptions);function df(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?df(e.cause,t):t?null:e}function ro(e,t){if(Tn(e)>t)throw new mg({givenSize:Tn(e),maxSize:t})}const Bt={zero:48,nine:57,A:65,F:70,a:97,f:102};function Al(e){if(e>=Bt.zero&&e<=Bt.nine)return e-Bt.zero;if(e>=Bt.A&&e<=Bt.F)return e-(Bt.A-10);if(e>=Bt.a&&e<=Bt.f)return e-(Bt.a-10)}function Xb(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;if(e.length>r)throw new bg({size:e.length,targetSize:r,type:"Bytes"});const o=new Uint8Array(r);for(let s=0;s<r;s++){const i=n==="right";o[i?s:r-s-1]=e[i?s:e.length-s-1]}return o}function ff(e,t={}){const{dir:n="left"}=t;let r=e,o=0;for(let s=0;s<r.length-1&&r[n==="left"?s:r.length-s-1].toString()==="0";s++)o++;return r=n==="left"?r.slice(o):r.slice(0,r.length-o),r}function ws(e,t){if(Ve(e)>t)throw new Cg({givenSize:Ve(e),maxSize:t})}function eg(e,t){if(typeof t=="number"&&t>0&&t>Ve(e)-1)throw new xf({offset:t,position:"start",size:Ve(e)})}function tg(e,t,n){if(typeof t=="number"&&typeof n=="number"&&Ve(e)!==n-t)throw new xf({offset:n,position:"end",size:Ve(e)})}function hf(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;const o=e.replace("0x","");if(o.length>r*2)throw new Ag({size:Math.ceil(o.length/2),targetSize:r,type:"Hex"});return`0x${o[n==="right"?"padEnd":"padStart"](r*2,"0")}`}const ng="#__bigint";function pf(e,t,n){return JSON.stringify(e,(r,o)=>typeof o=="bigint"?o.toString()+ng:o,n)}const rg=new TextDecoder,og=new TextEncoder;function sg(e){return e instanceof Uint8Array?e:typeof e=="string"?mf(e):ig(e)}function ig(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function mf(e,t={}){const{size:n}=t;let r=e;n&&(ws(e,n),r=hn(e,n));let o=r.slice(2);o.length%2&&(o=`0${o}`);const s=o.length/2,i=new Uint8Array(s);for(let a=0,c=0;a<s;a++){const l=Al(o.charCodeAt(c++)),u=Al(o.charCodeAt(c++));if(l===void 0||u===void 0)throw new Y(`Invalid byte sequence ("${o[c-2]}${o[c-1]}" in "${o}").`);i[a]=l<<4|u}return i}function ag(e,t={}){const{size:n}=t,r=og.encode(e);return typeof n=="number"?(ro(r,n),cg(r,n)):r}function cg(e,t){return Xb(e,{dir:"right",size:t})}function Tn(e){return e.length}function lg(e,t,n,r={}){const{strict:o}=r;return e.slice(t,n)}function ug(e,t={}){const{size:n}=t;typeof n<"u"&&ro(e,n);const r=it(e,t);return yf(r,t)}function dg(e,t={}){const{size:n}=t;let r=e;if(typeof n<"u"&&(ro(r,n),r=bf(r)),r.length>1||r[0]>1)throw new pg(r);return!!r[0]}function Tt(e,t={}){const{size:n}=t;typeof n<"u"&&ro(e,n);const r=it(e,t);return wf(r,t)}function fg(e,t={}){const{size:n}=t;let r=e;return typeof n<"u"&&(ro(r,n),r=hg(r)),rg.decode(r)}function bf(e){return ff(e,{dir:"left"})}function hg(e){return ff(e,{dir:"right"})}class pg extends Y{constructor(t){super(`Bytes value \`${t}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}let mg=class extends Y{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},bg=class extends Y{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}};const gg=new TextEncoder,yg=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function wg(e,t={}){const{strict:n=!1}=t;if(!e)throw new El(e);if(typeof e!="string")throw new El(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e))throw new Il(e);if(!e.startsWith("0x"))throw new Il(e)}function st(...e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}function vg(e){return e instanceof Uint8Array?it(e):Array.isArray(e)?it(new Uint8Array(e)):e}function gf(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(ws(n,t.size),fn(n,t.size)):n}function it(e,t={}){let n="";for(let o=0;o<e.length;o++)n+=yg[e[o]];const r=`0x${n}`;return typeof t.size=="number"?(ws(r,t.size),hn(r,t.size)):r}function Ie(e,t={}){const{signed:n,size:r}=t,o=BigInt(e);let s;r?n?s=(1n<<BigInt(r)*8n-1n)-1n:s=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(s=BigInt(Number.MAX_SAFE_INTEGER));const i=typeof s=="bigint"&&n?-s-1n:0;if(s&&o>s||o<i){const l=typeof e=="bigint"?"n":"";throw new vf({max:s?`${s}${l}`:void 0,min:`${i}${l}`,signed:n,size:r,value:`${e}${l}`})}const c=`0x${(n&&o<0?BigInt.asUintN(r*8,BigInt(o)):o).toString(16)}`;return r?fn(c,r):c}function qa(e,t={}){return it(gg.encode(e),t)}function fn(e,t){return hf(e,{dir:"left",size:t})}function hn(e,t){return hf(e,{dir:"right",size:t})}function mt(e,t,n,r={}){const{strict:o}=r;eg(e,t);const s=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return o&&tg(s,t,n),s}function Ve(e){return Math.ceil((e.length-2)/2)}function yf(e,t={}){const{signed:n}=t;t.size&&ws(e,t.size);const r=BigInt(e);if(!n)return r;const o=(e.length-2)/2,s=(1n<<BigInt(o)*8n)-1n,i=s>>1n;return r<=i?r:r-s-1n}function wf(e,t={}){const{signed:n,size:r}=t;return Number(!n&&!r?e:yf(e,t))}function xg(e,t={}){const{strict:n=!1}=t;try{return wg(e,{strict:n}),!0}catch{return!1}}class vf extends Y{constructor({max:t,min:n,signed:r,size:o,value:s}){super(`Number \`${s}\` is not in safe${o?` ${o*8}-bit`:""}${r?" signed":" unsigned"} integer range ${t?`(\`${n}\` to \`${t}\`)`:`(above \`${n}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class El extends Y{constructor(t){super(`Value \`${typeof t=="object"?pf(t):t}\` of type \`${typeof t}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class Il extends Y{constructor(t){super(`Value \`${t}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class Cg extends Y{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class xf extends Y{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class Ag extends Y{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function Eg(e){return{address:e.address,amount:Ie(e.amount),index:Ie(e.index),validatorIndex:Ie(e.validatorIndex)}}function Cf(e){return{...typeof e.baseFeePerGas=="bigint"&&{baseFeePerGas:Ie(e.baseFeePerGas)},...typeof e.blobBaseFee=="bigint"&&{blobBaseFee:Ie(e.blobBaseFee)},...typeof e.feeRecipient=="string"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit=="bigint"&&{gasLimit:Ie(e.gasLimit)},...typeof e.number=="bigint"&&{number:Ie(e.number)},...typeof e.prevRandao=="bigint"&&{prevRandao:Ie(e.prevRandao)},...typeof e.time=="bigint"&&{time:Ie(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(Eg)}}}const Ig="0x82ad56cb",Af="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",kg="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",Bg="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",Ha="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033",Qs="/docs/contract/encodeDeployData";function Va(e){const{abi:t,args:n,bytecode:r}=e;if(!n||n.length===0)return r;const o=t.find(i=>"type"in i&&i.type==="constructor");if(!o)throw new o1({docsPath:Qs});if(!("inputs"in o))throw new Zc({docsPath:Qs});if(!o.inputs||o.inputs.length===0)throw new Zc({docsPath:Qs});const s=yn(o.inputs,n);return at([r,s])}class On extends M{constructor({cause:t,message:n}={}){var o;const r=(o=n==null?void 0:n.replace("execution reverted: ",""))==null?void 0:o.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}}Object.defineProperty(On,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(On,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class pn extends M{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${Me(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(pn,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class qi extends M{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${Me(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(qi,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class Hi extends M{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(Hi,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class Vi extends M{constructor({cause:t,nonce:n}={}){super([`Nonce provided for the transaction ${n?`(${n}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
|
|
39
|
+
`),{cause:t,name:"NonceTooLowError"})}}Object.defineProperty(Vi,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Gi extends M{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(Gi,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Qi extends M{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
|
|
40
|
+
`),{cause:t,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(Qi,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class Ki extends M{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(Ki,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Ji extends M{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(Ji,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class Yi extends M{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(Yi,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class Wr extends M{constructor({cause:t,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${Me(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${Me(r)} gwei`:""}).`].join(`
|
|
41
|
+
`),{cause:t,name:"TipAboveFeeCapError"})}}Object.defineProperty(Wr,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class oo extends M{constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}function vs(e,t){const n=(e.details||"").toLowerCase(),r=e instanceof M?e.walk(o=>(o==null?void 0:o.code)===On.code):e;return r instanceof M?new On({cause:e,message:r.details}):On.nodeMessage.test(n)?new On({cause:e,message:e.details}):pn.nodeMessage.test(n)?new pn({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):qi.nodeMessage.test(n)?new qi({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):Hi.nodeMessage.test(n)?new Hi({cause:e,nonce:t==null?void 0:t.nonce}):Vi.nodeMessage.test(n)?new Vi({cause:e,nonce:t==null?void 0:t.nonce}):Gi.nodeMessage.test(n)?new Gi({cause:e,nonce:t==null?void 0:t.nonce}):Qi.nodeMessage.test(n)?new Qi({cause:e}):Ki.nodeMessage.test(n)?new Ki({cause:e,gas:t==null?void 0:t.gas}):Ji.nodeMessage.test(n)?new Ji({cause:e,gas:t==null?void 0:t.gas}):Yi.nodeMessage.test(n)?new Yi({cause:e}):Wr.nodeMessage.test(n)?new Wr({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new oo({cause:e})}function Ef(e,{docsPath:t,...n}){const r=(()=>{const o=vs(e,n);return o instanceof oo?e:o})();return new of(r,{docsPath:t,...n})}function xs(e,{format:t}){if(!t)return{};const n={};function r(s){const i=Object.keys(s);for(const a of i)a in e&&(n[a]=e[a]),s[a]&&typeof s[a]=="object"&&!Array.isArray(s[a])&&r(s[a])}const o=t(e||{});return r(o),n}function Ga(e,t){return({exclude:n,format:r})=>({exclude:n,format:(o,s)=>{const i=t(o,s);if(n)for(const a of n)delete i[a];return{...i,...r(o,s)}},type:e})}const jg={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function so(e,t){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=Sg(e.authorizationList)),typeof e.accessList<"u"&&(n.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(n.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?n.blobs=e.blobs.map(r=>de(r)):n.blobs=e.blobs),typeof e.data<"u"&&(n.data=e.data),e.account&&(n.from=e.account.address),typeof e.from<"u"&&(n.from=e.from),typeof e.gas<"u"&&(n.gas=D(e.gas)),typeof e.gasPrice<"u"&&(n.gasPrice=D(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(n.maxFeePerBlobGas=D(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(n.maxFeePerGas=D(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(n.maxPriorityFeePerGas=D(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(n.nonce=D(e.nonce)),typeof e.to<"u"&&(n.to=e.to),typeof e.type<"u"&&(n.type=jg[e.type]),typeof e.value<"u"&&(n.value=D(e.value)),n}function Sg(e){return e.map(t=>({address:t.address,r:t.r?D(BigInt(t.r)):t.r,s:t.s?D(BigInt(t.s)):t.s,chainId:D(t.chainId),nonce:D(t.nonce),...typeof t.yParity<"u"?{yParity:D(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:D(t.v)}:{}}))}function If(){let e=()=>{},t=()=>{};return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}const Ks=new Map;function kf({fn:e,id:t,shouldSplitBatch:n,wait:r=0,sort:o}){const s=async()=>{const u=c();i();const d=u.map(({args:f})=>f);d.length!==0&&e(d).then(f=>{o&&Array.isArray(f)&&f.sort(o);for(let h=0;h<u.length;h++){const{resolve:p}=u[h];p==null||p([f[h],f])}}).catch(f=>{for(let h=0;h<u.length;h++){const{reject:p}=u[h];p==null||p(f)}})},i=()=>Ks.delete(t),a=()=>c().map(({args:u})=>u),c=()=>Ks.get(t)||[],l=u=>Ks.set(t,[...c(),u]);return{flush:i,async schedule(u){const{promise:d,resolve:f,reject:h}=If();return(n==null?void 0:n([...a(),u]))&&s(),c().length>0?(l({args:u,resolve:f,reject:h}),d):(l({args:u,resolve:f,reject:h}),setTimeout(s,r),d)}}}function kl(e){if(!(!e||e.length===0))return e.reduce((t,{slot:n,value:r})=>{if(n.length!==66)throw new tl({size:n.length,targetSize:66,type:"hex"});if(r.length!==66)throw new tl({size:r.length,targetSize:66,type:"hex"});return t[n]=r,t},{})}function _g(e){const{balance:t,nonce:n,state:r,stateDiff:o,code:s}=e,i={};if(s!==void 0&&(i.code=s),t!==void 0&&(i.balance=D(t)),n!==void 0&&(i.nonce=D(n)),r!==void 0&&(i.state=kl(r)),o!==void 0){if(i.state)throw new Bb;i.stateDiff=kl(o)}return i}function Qa(e){if(!e)return;const t={};for(const{address:n,...r}of e){if(!fe(n,{strict:!1}))throw new Se({address:n});if(t[n])throw new kb({address:n});t[n]=_g(r)}return t}const Cs=2n**256n-1n;function Zn(e){const{account:t,maxFeePerGas:n,maxPriorityFeePerGas:r,to:o}=e,s=t?_e(t):void 0;if(s&&!fe(s.address))throw new Se({address:s.address});if(o&&!fe(o))throw new Se({address:o});if(n&&n>Cs)throw new pn({maxFeePerGas:n});if(r&&n&&r>n)throw new Wr({maxFeePerGas:n,maxPriorityFeePerGas:r})}async function io(e,t){var P,$,S,N;const{account:n=e.account,authorizationList:r,batch:o=!!((P=e.batch)!=null&&P.multicall),blockNumber:s,blockTag:i=e.experimental_blockTag??"latest",accessList:a,blobs:c,blockOverrides:l,code:u,data:d,factory:f,factoryData:h,gas:p,gasPrice:m,maxFeePerBlobGas:g,maxFeePerGas:y,maxPriorityFeePerGas:C,nonce:w,to:v,value:x,stateOverride:E,...A}=t,k=n?_e(n):void 0;if(u&&(f||h))throw new M("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(u&&v)throw new M("Cannot provide both `code` & `to` as parameters.");const j=u&&d,O=f&&h&&v&&d,_=j||O,R=j?Bf({code:u,data:d}):O?Og({data:d,factory:f,factoryData:h,to:v}):d;try{Zn(t);const T=(typeof s=="bigint"?D(s):void 0)||i,U=l?Cf(l):void 0,z=Qa(E),Q=(N=(S=($=e.chain)==null?void 0:$.formatters)==null?void 0:S.transactionRequest)==null?void 0:N.format,le=(Q||so)({...xs(A,{format:Q}),accessList:a,account:k,authorizationList:r,blobs:c,data:R,gas:p,gasPrice:m,maxFeePerBlobGas:g,maxFeePerGas:y,maxPriorityFeePerGas:C,nonce:w,to:_?void 0:v,value:x},"call");if(o&&Pg({request:le})&&!z&&!U)try{return await Tg(e,{...le,blockNumber:s,blockTag:i})}catch(Z){if(!(Z instanceof Xd)&&!(Z instanceof Ui))throw Z}const q=(()=>{const Z=[le,T];return z&&U?[...Z,z,U]:z?[...Z,z]:U?[...Z,{},U]:Z})(),H=await e.request({method:"eth_call",params:q});return H==="0x"?{data:void 0}:{data:H}}catch(F){const T=Rg(F),{offchainLookup:U,offchainLookupSignature:z}=await L(async()=>{const{offchainLookup:Q,offchainLookupSignature:se}=await import("./ccip-kqAjTfpP.js");return{offchainLookup:Q,offchainLookupSignature:se}},__vite__mapDeps([0,1,2,3,4,5]));if(e.ccipRead!==!1&&(T==null?void 0:T.slice(0,10))===z&&v)return{data:await U(e,{data:T,to:v})};throw _&&(T==null?void 0:T.slice(0,10))==="0x101bb98d"?new Db({factory:f}):Ef(F,{...t,account:k,chain:e.chain})}}function Pg({request:e}){const{data:t,to:n,...r}=e;return!(!t||t.startsWith(Ig)||!n||Object.values(r).filter(o=>typeof o<"u").length>0)}async function Tg(e,t){var m;const{batchSize:n=1024,deployless:r=!1,wait:o=0}=typeof((m=e.batch)==null?void 0:m.multicall)=="object"?e.batch.multicall:{},{blockNumber:s,blockTag:i=e.experimental_blockTag??"latest",data:a,to:c}=t,l=(()=>{if(r)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return Yn({blockNumber:s,chain:e.chain,contract:"multicall3"});throw new Xd})(),d=(typeof s=="bigint"?D(s):void 0)||i,{schedule:f}=kf({id:`${e.uid}.${d}`,wait:o,shouldSplitBatch(g){return g.reduce((C,{data:w})=>C+(w.length-2),0)>n*2},fn:async g=>{const y=g.map(v=>({allowFailure:!0,callData:v.data,target:v.to})),C=Ze({abi:Ln,args:[y],functionName:"aggregate3"}),w=await e.request({method:"eth_call",params:[{...l===null?{data:Bf({code:Ha,data:C})}:{to:l,data:C}},d]});return Xt({abi:Ln,args:[y],functionName:"aggregate3",data:w||"0x"})}}),[{returnData:h,success:p}]=await f({data:a,to:c});if(!p)throw new ms({data:h});return h==="0x"?{data:void 0}:{data:h}}function Bf(e){const{code:t,data:n}=e;return Va({abi:Jd(["constructor(bytes, bytes)"]),bytecode:Af,args:[t,n]})}function Og(e){const{data:t,factory:n,factoryData:r,to:o}=e;return Va({abi:Jd(["constructor(address, bytes, address, bytes)"]),bytecode:kg,args:[o,t,n,r]})}function Rg(e){var n;if(!(e instanceof M))return;const t=e.walk();return typeof(t==null?void 0:t.data)=="object"?(n=t.data)==null?void 0:n.data:t.data}async function Je(e,t){const{abi:n,address:r,args:o,functionName:s,...i}=t,a=Ze({abi:n,args:o,functionName:s});try{const{data:c}=await G(e,io,"call")({...i,data:a,to:r});return Xt({abi:n,args:o,functionName:s,data:c||"0x"})}catch(c){throw qn(c,{abi:n,address:r,args:o,docsPath:"/docs/contract/readContract",functionName:s})}}async function Mg(e,t){const{blockNumber:n,blockTag:r,coinType:o,name:s,gatewayUrls:i,strict:a}=t,{chain:c}=e,l=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return Yn({blockNumber:n,chain:c,contract:"ensUniversalResolver"})})(),u=c==null?void 0:c.ensTlds;if(u&&!u.some(f=>s.endsWith(f)))return null;const d=o!=null?[Wi(s),BigInt(o)]:[Wi(s)];try{const f=Ze({abi:Jc,functionName:"addr",args:d}),h={address:l,abi:md,functionName:"resolveWithGateways",args:[Re(La(s)),f,i??[bs]],blockNumber:n,blockTag:r},m=await G(e,Je,"readContract")(h);if(m[0]==="0x")return null;const g=Xt({abi:Jc,args:d,functionName:"addr",data:m[0]});return g==="0x"||qe(g)==="0x00"?null:g}catch(f){if(a)throw f;if(Fa(f))return null;throw f}}class Ng extends M{constructor({data:t}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(t)}`],name:"EnsAvatarInvalidMetadataError"})}}class ar extends M{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:"EnsAvatarInvalidNftUriError"})}}class Ka extends M{constructor({uri:t}){super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class Dg extends M{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}const Fg=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,Lg=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,Ug=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,zg=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function Wg(e){try{const t=await fetch(e,{method:"HEAD"});if(t.status===200){const n=t.headers.get("content-type");return n==null?void 0:n.startsWith("image/")}return!1}catch(t){return typeof t=="object"&&typeof t.response<"u"||!Object.hasOwn(globalThis,"Image")?!1:new Promise(n=>{const r=new Image;r.onload=()=>{n(!0)},r.onerror=()=>{n(!1)},r.src=e})}}function Bl(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function jf({uri:e,gatewayUrls:t}){const n=Ug.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};const r=Bl(t==null?void 0:t.ipfs,"https://ipfs.io"),o=Bl(t==null?void 0:t.arweave,"https://arweave.net"),s=e.match(Fg),{protocol:i,subpath:a,target:c,subtarget:l=""}=(s==null?void 0:s.groups)||{},u=i==="ipns:/"||a==="ipns/",d=i==="ipfs:/"||a==="ipfs/"||Lg.test(e);if(e.startsWith("http")&&!u&&!d){let h=e;return t!=null&&t.arweave&&(h=e.replace(/https:\/\/arweave.net/g,t==null?void 0:t.arweave)),{uri:h,isOnChain:!1,isEncoded:!1}}if((u||d)&&c)return{uri:`${r}/${u?"ipns":"ipfs"}/${c}${l}`,isOnChain:!1,isEncoded:!1};if(i==="ar:/"&&c)return{uri:`${o}/${c}${l||""}`,isOnChain:!1,isEncoded:!1};let f=e.replace(zg,"");if(f.startsWith("<svg")&&(f=`data:image/svg+xml;base64,${btoa(f)}`),f.startsWith("data:")||f.startsWith("{"))return{uri:f,isOnChain:!0,isEncoded:!1};throw new Ka({uri:e})}function Sf(e){if(typeof e!="object"||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new Ng({data:e});return e.image||e.image_url||e.image_data}async function $g({gatewayUrls:e,uri:t}){try{const n=await fetch(t).then(o=>o.json());return await Ja({gatewayUrls:e,uri:Sf(n)})}catch{throw new Ka({uri:t})}}async function Ja({gatewayUrls:e,uri:t}){const{uri:n,isOnChain:r}=jf({uri:t,gatewayUrls:e});if(r||await Wg(n))return n;throw new Ka({uri:t})}function qg(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[n,r,o]=t.split("/"),[s,i]=n.split(":"),[a,c]=r.split(":");if(!s||s.toLowerCase()!=="eip155")throw new ar({reason:"Only EIP-155 supported"});if(!i)throw new ar({reason:"Chain ID not found"});if(!c)throw new ar({reason:"Contract address not found"});if(!o)throw new ar({reason:"Token ID not found"});if(!a)throw new ar({reason:"ERC namespace not found"});return{chainID:Number.parseInt(i,10),namespace:a.toLowerCase(),contractAddress:c,tokenID:o}}async function Hg(e,{nft:t}){if(t.namespace==="erc721")return Je(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if(t.namespace==="erc1155")return Je(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new Dg({namespace:t.namespace})}async function Vg(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?Gg(e,{gatewayUrls:t,record:n}):Ja({uri:n,gatewayUrls:t})}async function Gg(e,{gatewayUrls:t,record:n}){const r=qg(n),o=await Hg(e,{nft:r}),{uri:s,isOnChain:i,isEncoded:a}=jf({uri:o,gatewayUrls:t});if(i&&(s.includes("data:application/json;base64,")||s.startsWith("{"))){const l=a?atob(s.replace("data:application/json;base64,","")):s,u=JSON.parse(l);return Ja({uri:Sf(u),gatewayUrls:t})}let c=r.tokenID;return r.namespace==="erc1155"&&(c=c.replace("0x","").padStart(64,"0")),$g({gatewayUrls:t,uri:s.replace(/(?:0x)?{id}/,c)})}async function _f(e,t){const{blockNumber:n,blockTag:r,key:o,name:s,gatewayUrls:i,strict:a}=t,{chain:c}=e,l=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return Yn({blockNumber:n,chain:c,contract:"ensUniversalResolver"})})(),u=c==null?void 0:c.ensTlds;if(u&&!u.some(d=>s.endsWith(d)))return null;try{const d={address:l,abi:md,args:[Re(La(s)),Ze({abi:Kc,functionName:"text",args:[Wi(s),o]}),i??[bs]],functionName:"resolveWithGateways",blockNumber:n,blockTag:r},h=await G(e,Je,"readContract")(d);if(h[0]==="0x")return null;const p=Xt({abi:Kc,functionName:"text",data:h[0]});return p===""?null:p}catch(d){if(a)throw d;if(Fa(d))return null;throw d}}async function Pf(e,{blockNumber:t,blockTag:n,assetGatewayUrls:r,name:o,gatewayUrls:s,strict:i,universalResolverAddress:a}){const c=await G(e,_f,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:o,universalResolverAddress:a,gatewayUrls:s,strict:i});if(!c)return null;try{return await Vg(e,{record:c,gatewayUrls:r})}catch{return null}}async function Tf(e,t){const{address:n,blockNumber:r,blockTag:o,coinType:s=60n,gatewayUrls:i,strict:a}=t,{chain:c}=e,l=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return Yn({blockNumber:r,chain:c,contract:"ensUniversalResolver"})})();try{const u={address:l,abi:n1,args:[n,s,i??[bs]],functionName:"reverseWithGateways",blockNumber:r,blockTag:o},d=G(e,Je,"readContract"),[f]=await d(u);return f||null}catch(u){if(a)throw u;if(Fa(u))return null;throw u}}async function Qg(e,t){const{blockNumber:n,blockTag:r,name:o}=t,{chain:s}=e,i=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!s)throw new Error("client chain not configured. universalResolverAddress is required.");return Yn({blockNumber:n,chain:s,contract:"ensUniversalResolver"})})(),a=s==null?void 0:s.ensTlds;if(a&&!a.some(l=>o.endsWith(l)))throw new Error(`${o} is not a valid ENS TLD (${a==null?void 0:a.join(", ")}) for chain "${s.name}" (id: ${s.id}).`);const[c]=await G(e,Je,"readContract")({address:i,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[Re(La(o))],blockNumber:n,blockTag:r});return c}async function Of(e,t){var g,y,C;const{account:n=e.account,blockNumber:r,blockTag:o="latest",blobs:s,data:i,gas:a,gasPrice:c,maxFeePerBlobGas:l,maxFeePerGas:u,maxPriorityFeePerGas:d,to:f,value:h,...p}=t,m=n?_e(n):void 0;try{Zn(t);const v=(typeof r=="bigint"?D(r):void 0)||o,x=(C=(y=(g=e.chain)==null?void 0:g.formatters)==null?void 0:y.transactionRequest)==null?void 0:C.format,A=(x||so)({...xs(p,{format:x}),account:m,blobs:s,data:i,gas:a,gasPrice:c,maxFeePerBlobGas:l,maxFeePerGas:u,maxPriorityFeePerGas:d,to:f,value:h},"createAccessList"),k=await e.request({method:"eth_createAccessList",params:[A,v]});return{accessList:k.accessList,gasUsed:BigInt(k.gasUsed)}}catch(w){throw Ef(w,{...t,account:m,chain:e.chain})}}function As(e,{method:t}){var r,o;const n={};return e.transport.type==="fallback"&&((o=(r=e.transport).onResponse)==null||o.call(r,({method:s,response:i,status:a,transport:c})=>{a==="success"&&t===s&&(n[i]=c.request)})),(s=>n[s]||e.request)}async function Kg(e){const t=As(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}class Jg extends M{constructor(t){super(`Filter type "${t}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}const jl="/docs/contract/encodeEventTopics";function ao(e){var c;const{abi:t,eventName:n,args:r}=e;let o=t[0];if(n){const l=wn({abi:t,name:n});if(!l)throw new el(n,{docsPath:jl});o=l}if(o.type!=="event")throw new el(void 0,{docsPath:jl});const s=nt(o),i=fs(s);let a=[];if(r&&"inputs"in o){const l=(c=o.inputs)==null?void 0:c.filter(d=>"indexed"in d&&d.indexed),u=Array.isArray(r)?r:Object.values(r).length>0?(l==null?void 0:l.map(d=>r[d.name]))??[]:[];u.length>0&&(a=(l==null?void 0:l.map((d,f)=>Array.isArray(u[f])?u[f].map((h,p)=>Sl({param:d,value:u[f][p]})):typeof u[f]<"u"&&u[f]!==null?Sl({param:d,value:u[f]}):null))??[])}return[i,...a]}function Sl({param:e,value:t}){if(e.type==="string"||e.type==="bytes")return we(Kn(t));if(e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/))throw new Jg(e.type);return yn([e],[t])}async function Rf(e,t){const{address:n,abi:r,args:o,eventName:s,fromBlock:i,strict:a,toBlock:c}=t,l=As(e,{method:"eth_newFilter"}),u=s?ao({abi:r,args:o,eventName:s}):void 0,d=await e.request({method:"eth_newFilter",params:[{address:n,fromBlock:typeof i=="bigint"?D(i):i,toBlock:typeof c=="bigint"?D(c):c,topics:u}]});return{abi:r,args:o,eventName:s,id:d,request:l(d),strict:!!a,type:"event"}}async function Mf(e,{address:t,args:n,event:r,events:o,fromBlock:s,strict:i,toBlock:a}={}){const c=o??(r?[r]:void 0),l=As(e,{method:"eth_newFilter"});let u=[];c&&(u=[c.flatMap(h=>ao({abi:[h],eventName:h.name,args:n}))],r&&(u=u[0]));const d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof s=="bigint"?D(s):s,toBlock:typeof a=="bigint"?D(a):a,...u.length?{topics:u}:{}}]});return{abi:c,args:n,eventName:r?r.name:void 0,fromBlock:s,id:d,request:l(d),strict:!!i,toBlock:a,type:"event"}}async function Nf(e){const t=As(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}function Yg(e){const t=we(`0x${e.substring(4)}`).substring(26);return us(`0x${t}`)}async function Zg({hash:e,signature:t}){const n=bt(e)?e:Re(e),{secp256k1:r}=await L(async()=>{const{secp256k1:i}=await Promise.resolve().then(()=>Cw);return{secp256k1:i}},void 0);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:l,s:u,v:d,yParity:f}=t,h=Number(f??d),p=_l(h);return new r.Signature(ke(l),ke(u)).addRecoveryBit(p)}const i=bt(t)?t:Re(t);if(ae(i)!==65)throw new Error("invalid signature length");const a=rt(`0x${i.slice(130)}`),c=_l(a);return r.Signature.fromCompact(i.substring(2,130)).addRecoveryBit(c)})().recoverPublicKey(n.substring(2)).toHex(!1)}`}function _l(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}async function Zi({hash:e,signature:t}){return Yg(await Zg({hash:e,signature:t}))}function Jt(e,t="hex"){const n=Df(e),r=_a(new Uint8Array(n.length));return n.encode(r),t==="hex"?de(r.bytes):r.bytes}function Df(e){return Array.isArray(e)?Xg(e.map(t=>Df(t))):e6(e)}function Xg(e){const t=e.reduce((o,s)=>o+s.length,0),n=Ff(t);return{length:t<=55?1+t:1+n+t,encode(o){t<=55?o.pushByte(192+t):(o.pushByte(247+n),n===1?o.pushUint8(t):n===2?o.pushUint16(t):n===3?o.pushUint24(t):o.pushUint32(t));for(const{encode:s}of e)s(o)}}}function e6(e){const t=typeof e=="string"?ot(e):e,n=Ff(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(o){t.length===1&&t[0]<128?o.pushBytes(t):t.length<=55?(o.pushByte(128+t.length),o.pushBytes(t)):(o.pushByte(183+n),n===1?o.pushUint8(t.length):n===2?o.pushUint16(t.length):n===3?o.pushUint24(t.length):o.pushUint32(t.length),o.pushBytes(t))}}}function Ff(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new M("Length is too large.")}function t6(e){const{chainId:t,nonce:n,to:r}=e,o=e.contractAddress??e.address,s=we(at(["0x05",Jt([t?D(t):"0x",o,n?D(n):"0x"])]));return r==="bytes"?ot(s):s}async function Lf(e){const{authorization:t,signature:n}=e;return Zi({hash:t6(t),signature:n??t})}class n6 extends M{constructor(t,{account:n,docsPath:r,chain:o,data:s,gas:i,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var p;const h=eo({from:n==null?void 0:n.address,to:d,value:typeof f<"u"&&`${Ma(f)} ${((p=o==null?void 0:o.nativeCurrency)==null?void 0:p.symbol)||"ETH"}`,data:s,gas:i,gasPrice:typeof a<"u"&&`${Me(a)} gwei`,maxFeePerGas:typeof c<"u"&&`${Me(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${Me(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",h].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}function r6(e,{docsPath:t,...n}){const r=(()=>{const o=vs(e,n);return o instanceof oo?e:o})();return new n6(r,{docsPath:t,...n})}class Uf extends M{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class Ya extends M{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class o6 extends M{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${Me(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class zf extends M{constructor({blockHash:t,blockNumber:n}){let r="Block";t&&(r=`Block at hash "${t}"`),n&&(r=`Block at number "${n}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}const Wf={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function co(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?rt(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?rt(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Wf[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=i6(e.authorizationList)),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof n.v=="bigint"){if(n.v===0n||n.v===27n)return 0;if(n.v===1n||n.v===28n)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),n.type==="legacy"&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),n.type==="eip2930"&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),n.type==="eip1559"&&delete n.maxFeePerBlobGas,n}const s6=Ga("transaction",co);function i6(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function Za(e,t){const n=(e.transactions??[]).map(r=>typeof r=="string"?r:co(r));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const a6=Ga("block",Za);async function tt(e,{blockHash:t,blockNumber:n,blockTag:r=e.experimental_blockTag??"latest",includeTransactions:o}={}){var l,u,d;const s=o??!1,i=n!==void 0?D(n):void 0;let a=null;if(t?a=await e.request({method:"eth_getBlockByHash",params:[t,s]},{dedupe:!0}):a=await e.request({method:"eth_getBlockByNumber",params:[i||r,s]},{dedupe:!!i}),!a)throw new zf({blockHash:t,blockNumber:n});return(((d=(u=(l=e.chain)==null?void 0:l.formatters)==null?void 0:u.block)==null?void 0:d.format)||Za)(a,"getBlock")}async function Xa(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function c6(e,t){return $f(e,t)}async function $f(e,t){var s,i;const{block:n,chain:r=e.chain,request:o}=t||{};try{const a=((s=r==null?void 0:r.fees)==null?void 0:s.maxPriorityFeePerGas)??((i=r==null?void 0:r.fees)==null?void 0:i.defaultPriorityFee);if(typeof a=="function"){const l=n||await G(e,tt,"getBlock")({}),u=await a({block:l,client:e,request:o});if(u===null)throw new Error;return u}if(typeof a<"u")return a;const c=await e.request({method:"eth_maxPriorityFeePerGas"});return ke(c)}catch{const[a,c]=await Promise.all([n?Promise.resolve(n):G(e,tt,"getBlock")({}),G(e,Xa,"getGasPrice")({})]);if(typeof a.baseFeePerGas!="bigint")throw new Ya;const l=c-a.baseFeePerGas;return l<0n?0n:l}}async function l6(e,t){return Xi(e,t)}async function Xi(e,t){var f,h;const{block:n,chain:r=e.chain,request:o,type:s="eip1559"}=t||{},i=await(async()=>{var p,m;return typeof((p=r==null?void 0:r.fees)==null?void 0:p.baseFeeMultiplier)=="function"?r.fees.baseFeeMultiplier({block:n,client:e,request:o}):((m=r==null?void 0:r.fees)==null?void 0:m.baseFeeMultiplier)??1.2})();if(i<1)throw new Uf;const c=10**(((f=i.toString().split(".")[1])==null?void 0:f.length)??0),l=p=>p*BigInt(Math.ceil(i*c))/BigInt(c),u=n||await G(e,tt,"getBlock")({});if(typeof((h=r==null?void 0:r.fees)==null?void 0:h.estimateFeesPerGas)=="function"){const p=await r.fees.estimateFeesPerGas({block:n,client:e,multiply:l,request:o,type:s});if(p!==null)return p}if(s==="eip1559"){if(typeof u.baseFeePerGas!="bigint")throw new Ya;const p=typeof(o==null?void 0:o.maxPriorityFeePerGas)=="bigint"?o.maxPriorityFeePerGas:await $f(e,{block:u,chain:r,request:o}),m=l(u.baseFeePerGas);return{maxFeePerGas:(o==null?void 0:o.maxFeePerGas)??m+p,maxPriorityFeePerGas:p}}return{gasPrice:(o==null?void 0:o.gasPrice)??l(await G(e,Xa,"getGasPrice")({}))}}async function qf(e,{address:t,blockTag:n="latest",blockNumber:r}){const o=await e.request({method:"eth_getTransactionCount",params:[t,typeof r=="bigint"?D(r):n]},{dedupe:!!r});return rt(o)}function ec(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),r=typeof e.blobs[0]=="string"?e.blobs.map(s=>ot(s)):e.blobs,o=[];for(const s of r)o.push(Uint8Array.from(t.blobToKzgCommitment(s)));return n==="bytes"?o:o.map(s=>de(s))}function tc(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),r=typeof e.blobs[0]=="string"?e.blobs.map(i=>ot(i)):e.blobs,o=typeof e.commitments[0]=="string"?e.commitments.map(i=>ot(i)):e.commitments,s=[];for(let i=0;i<r.length;i++){const a=r[i],c=o[i];s.push(Uint8Array.from(t.computeBlobKzgProof(a,c)))}return n==="bytes"?s:s.map(i=>de(i))}function u6(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const o=BigInt(32),s=BigInt(4294967295),i=Number(n>>o&s),a=Number(n&s),c=r?4:0,l=r?0:4;e.setUint32(t+c,i,r),e.setUint32(t+l,a,r)}function d6(e,t,n){return e&t^~e&n}function f6(e,t,n){return e&t^e&n^t&n}class Hf extends ja{constructor(t,n,r,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.buffer=new Uint8Array(t),this.view=Ls(this.buffer)}update(t){Wn(this),t=as(t),Vt(t);const{view:n,buffer:r,blockLen:o}=this,s=t.length;for(let i=0;i<s;){const a=Math.min(o-this.pos,s-i);if(a===o){const c=Ls(t);for(;o<=s-i;i+=o)this.process(c,i);continue}r.set(t.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Wn(this),Bd(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:s}=this;let{pos:i}=this;n[i++]=128,Gt(this.buffer.subarray(i)),this.padOffset>o-i&&(this.process(r,0),i=0);for(let d=i;d<o;d++)n[d]=0;u6(r,o-8,BigInt(this.length*8),s),this.process(r,0);const a=Ls(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,u=this.get();if(l>u.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;d<l;d++)a.setUint32(4*d,u[d],s)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:o,finished:s,destroyed:i,pos:a}=this;return t.destroyed=i,t.finished=s,t.length=o,t.pos=a,o%n&&t.buffer.set(r),t}clone(){return this._cloneInto()}}const Ut=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),xe=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),Ce=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),h6=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),zt=new Uint32Array(64);class p6 extends Hf{constructor(t=32){super(64,t,8,!1),this.A=Ut[0]|0,this.B=Ut[1]|0,this.C=Ut[2]|0,this.D=Ut[3]|0,this.E=Ut[4]|0,this.F=Ut[5]|0,this.G=Ut[6]|0,this.H=Ut[7]|0}get(){const{A:t,B:n,C:r,D:o,E:s,F:i,G:a,H:c}=this;return[t,n,r,o,s,i,a,c]}set(t,n,r,o,s,i,a,c){this.A=t|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=i|0,this.G=a|0,this.H=c|0}process(t,n){for(let d=0;d<16;d++,n+=4)zt[d]=t.getUint32(n,!1);for(let d=16;d<64;d++){const f=zt[d-15],h=zt[d-2],p=dt(f,7)^dt(f,18)^f>>>3,m=dt(h,17)^dt(h,19)^h>>>10;zt[d]=m+zt[d-7]+p+zt[d-16]|0}let{A:r,B:o,C:s,D:i,E:a,F:c,G:l,H:u}=this;for(let d=0;d<64;d++){const f=dt(a,6)^dt(a,11)^dt(a,25),h=u+f+d6(a,c,l)+h6[d]+zt[d]|0,m=(dt(r,2)^dt(r,13)^dt(r,22))+f6(r,o,s)|0;u=l,l=c,c=a,a=i+h|0,i=s,s=o,o=r,r=h+m|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,i=i+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(r,o,s,i,a,c,l,u)}roundClean(){Gt(zt)}destroy(){this.set(0,0,0,0,0,0,0,0),Gt(this.buffer)}}const Vf=kd(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),m6=Vf[0],b6=Vf[1],Wt=new Uint32Array(80),$t=new Uint32Array(80);class Gf extends Hf{constructor(t=64){super(128,t,16,!1),this.Ah=Ce[0]|0,this.Al=Ce[1]|0,this.Bh=Ce[2]|0,this.Bl=Ce[3]|0,this.Ch=Ce[4]|0,this.Cl=Ce[5]|0,this.Dh=Ce[6]|0,this.Dl=Ce[7]|0,this.Eh=Ce[8]|0,this.El=Ce[9]|0,this.Fh=Ce[10]|0,this.Fl=Ce[11]|0,this.Gh=Ce[12]|0,this.Gl=Ce[13]|0,this.Hh=Ce[14]|0,this.Hl=Ce[15]|0}get(){const{Ah:t,Al:n,Bh:r,Bl:o,Ch:s,Cl:i,Dh:a,Dl:c,Eh:l,El:u,Fh:d,Fl:f,Gh:h,Gl:p,Hh:m,Hl:g}=this;return[t,n,r,o,s,i,a,c,l,u,d,f,h,p,m,g]}set(t,n,r,o,s,i,a,c,l,u,d,f,h,p,m,g){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=o|0,this.Ch=s|0,this.Cl=i|0,this.Dh=a|0,this.Dl=c|0,this.Eh=l|0,this.El=u|0,this.Fh=d|0,this.Fl=f|0,this.Gh=h|0,this.Gl=p|0,this.Hh=m|0,this.Hl=g|0}process(t,n){for(let w=0;w<16;w++,n+=4)Wt[w]=t.getUint32(n),$t[w]=t.getUint32(n+=4);for(let w=16;w<80;w++){const v=Wt[w-15]|0,x=$t[w-15]|0,E=Cn(v,x,1)^Cn(v,x,8)^ol(v,x,7),A=An(v,x,1)^An(v,x,8)^sl(v,x,7),k=Wt[w-2]|0,j=$t[w-2]|0,O=Cn(k,j,19)^vo(k,j,61)^ol(k,j,6),_=An(k,j,19)^xo(k,j,61)^sl(k,j,6),R=M1(A,_,$t[w-7],$t[w-16]),P=N1(R,E,O,Wt[w-7],Wt[w-16]);Wt[w]=P|0,$t[w]=R|0}let{Ah:r,Al:o,Bh:s,Bl:i,Ch:a,Cl:c,Dh:l,Dl:u,Eh:d,El:f,Fh:h,Fl:p,Gh:m,Gl:g,Hh:y,Hl:C}=this;for(let w=0;w<80;w++){const v=Cn(d,f,14)^Cn(d,f,18)^vo(d,f,41),x=An(d,f,14)^An(d,f,18)^xo(d,f,41),E=d&h^~d&m,A=f&p^~f&g,k=D1(C,x,A,b6[w],$t[w]),j=F1(k,y,v,E,m6[w],Wt[w]),O=k|0,_=Cn(r,o,28)^vo(r,o,34)^vo(r,o,39),R=An(r,o,28)^xo(r,o,34)^xo(r,o,39),P=r&s^r&a^s&a,$=o&i^o&c^i&c;y=m|0,C=g|0,m=h|0,g=p|0,h=d|0,p=f|0,{h:d,l:f}=Et(l|0,u|0,j|0,O|0),l=a|0,u=c|0,a=s|0,c=i|0,s=r|0,i=o|0;const S=O1(O,R,$);r=R1(S,j,_,P),o=S|0}({h:r,l:o}=Et(this.Ah|0,this.Al|0,r|0,o|0)),{h:s,l:i}=Et(this.Bh|0,this.Bl|0,s|0,i|0),{h:a,l:c}=Et(this.Ch|0,this.Cl|0,a|0,c|0),{h:l,l:u}=Et(this.Dh|0,this.Dl|0,l|0,u|0),{h:d,l:f}=Et(this.Eh|0,this.El|0,d|0,f|0),{h,l:p}=Et(this.Fh|0,this.Fl|0,h|0,p|0),{h:m,l:g}=Et(this.Gh|0,this.Gl|0,m|0,g|0),{h:y,l:C}=Et(this.Hh|0,this.Hl|0,y|0,C|0),this.set(r,o,s,i,a,c,l,u,d,f,h,p,m,g,y,C)}roundClean(){Gt(Wt,$t)}destroy(){Gt(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class g6 extends Gf{constructor(){super(48),this.Ah=xe[0]|0,this.Al=xe[1]|0,this.Bh=xe[2]|0,this.Bl=xe[3]|0,this.Ch=xe[4]|0,this.Cl=xe[5]|0,this.Dh=xe[6]|0,this.Dl=xe[7]|0,this.Eh=xe[8]|0,this.El=xe[9]|0,this.Fh=xe[10]|0,this.Fl=xe[11]|0,this.Gh=xe[12]|0,this.Gl=xe[13]|0,this.Hh=xe[14]|0,this.Hl=xe[15]|0}}const Qf=cs(()=>new p6),PA=cs(()=>new Gf),TA=cs(()=>new g6),y6=Qf;function w6(e,t){return y6(bt(e,{strict:!1})?Kn(e):e)}function v6(e){const{commitment:t,version:n=1}=e,r=e.to??(typeof t=="string"?"hex":"bytes"),o=w6(t);return o.set([n],0),r==="bytes"?o:de(o)}function Kf(e){const{commitments:t,version:n}=e,r=e.to??(typeof t[0]=="string"?"hex":"bytes"),o=[];for(const s of t)o.push(v6({commitment:s,to:r,version:n}));return o}const Pl=6,Jf=32,nc=4096,Yf=Jf*nc,Tl=Yf*Pl-1-1*nc*Pl,Zf=1;class x6 extends M{constructor({maxSize:t,size:n}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${n} bytes`],name:"BlobSizeTooLargeError"})}}class Xf extends M{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class C6 extends M{constructor({hash:t,size:n}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${n}`],name:"InvalidVersionedHashSizeError"})}}class A6 extends M{constructor({hash:t,version:n}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${Zf}`,`Received: ${n}`],name:"InvalidVersionedHashVersionError"})}}function E6(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),n=typeof e.data=="string"?ot(e.data):e.data,r=ae(n);if(!r)throw new Xf;if(r>Tl)throw new x6({maxSize:Tl,size:r});const o=[];let s=!0,i=0;for(;s;){const a=_a(new Uint8Array(Yf));let c=0;for(;c<nc;){const l=n.slice(i,i+(Jf-1));if(a.pushByte(0),a.pushBytes(l),l.length<31){a.pushByte(128),s=!1;break}c++,i+=31}o.push(a)}return t==="bytes"?o.map(a=>a.bytes):o.map(a=>de(a.bytes))}function e0(e){const{data:t,kzg:n,to:r}=e,o=e.blobs??E6({data:t,to:r}),s=e.commitments??ec({blobs:o,kzg:n,to:r}),i=e.proofs??tc({blobs:o,commitments:s,kzg:n,to:r}),a=[];for(let c=0;c<o.length;c++)a.push({blob:o[c],commitment:s[c],proof:i[c]});return a}function t0(e){if(e.type)return e.type;if(typeof e.authorizationList<"u")return"eip7702";if(typeof e.blobs<"u"||typeof e.blobVersionedHashes<"u"||typeof e.maxFeePerBlobGas<"u"||typeof e.sidecars<"u")return"eip4844";if(typeof e.maxFeePerGas<"u"||typeof e.maxPriorityFeePerGas<"u")return"eip1559";if(typeof e.gasPrice<"u")return typeof e.accessList<"u"?"eip2930":"legacy";throw new _b({transaction:e})}function I6(e,{docsPath:t,...n}){const r=(()=>{const o=vs(e,n);return o instanceof oo?e:o})();return new Tb(r,{docsPath:t,...n})}async function rc(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return rt(t)}async function n0(e,t){var k,j,O,_,R;const{account:n=e.account,accessList:r,authorizationList:o,chain:s=e.chain,blobVersionedHashes:i,blobs:a,data:c,gas:l,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:f,maxPriorityFeePerGas:h,nonce:p,nonceManager:m,to:g,type:y,value:C,...w}=t,v=await(async()=>{if(!n||!m||typeof p<"u")return p;const P=_e(n),$=s?s.id:await G(e,rc,"getChainId")({});return await m.consume({address:P.address,chainId:$,client:e})})();Zn(t);const x=(j=(k=s==null?void 0:s.formatters)==null?void 0:k.transactionRequest)==null?void 0:j.format,A=(x||so)({...xs(w,{format:x}),account:n?_e(n):void 0,accessList:r,authorizationList:o,blobs:a,blobVersionedHashes:i,data:c,gas:l,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:f,maxPriorityFeePerGas:h,nonce:v,to:g,type:y,value:C},"fillTransaction");try{const P=await e.request({method:"eth_fillTransaction",params:[A]}),S=(((_=(O=s==null?void 0:s.formatters)==null?void 0:O.transaction)==null?void 0:_.format)||co)(P.tx);delete S.blockHash,delete S.blockNumber,delete S.r,delete S.s,delete S.transactionIndex,delete S.v,delete S.yParity,S.data=S.input,S.gas&&(S.gas=t.gas??S.gas),S.gasPrice&&(S.gasPrice=t.gasPrice??S.gasPrice),S.maxFeePerBlobGas&&(S.maxFeePerBlobGas=t.maxFeePerBlobGas??S.maxFeePerBlobGas),S.maxFeePerGas&&(S.maxFeePerGas=t.maxFeePerGas??S.maxFeePerGas),S.maxPriorityFeePerGas&&(S.maxPriorityFeePerGas=t.maxPriorityFeePerGas??S.maxPriorityFeePerGas),S.nonce&&(S.nonce=t.nonce??S.nonce);const N=await(async()=>{var z,Q;if(typeof((z=s==null?void 0:s.fees)==null?void 0:z.baseFeeMultiplier)=="function"){const se=await G(e,tt,"getBlock")({});return s.fees.baseFeeMultiplier({block:se,client:e,request:t})}return((Q=s==null?void 0:s.fees)==null?void 0:Q.baseFeeMultiplier)??1.2})();if(N<1)throw new Uf;const T=10**(((R=N.toString().split(".")[1])==null?void 0:R.length)??0),U=z=>z*BigInt(Math.ceil(N*T))/BigInt(T);return S.maxFeePerGas&&!t.maxFeePerGas&&(S.maxFeePerGas=U(S.maxFeePerGas)),S.gasPrice&&!t.gasPrice&&(S.gasPrice=U(S.gasPrice)),{raw:P.raw,transaction:{from:A.from,...S}}}catch(P){throw I6(P,{...t,chain:e.chain})}}const k6=["blobVersionedHashes","chainId","fees","gas","nonce","type"],Ol=new Map,Js=new ls(128);async function r0(e,t){var v,x,E;let n=t;n.account??(n.account=e.account),n.parameters??(n.parameters=k6);const{account:r,chain:o=e.chain,nonceManager:s,parameters:i}=n,a=(()=>{if(typeof(o==null?void 0:o.prepareTransactionRequest)=="function")return{fn:o.prepareTransactionRequest,runAt:["beforeFillTransaction"]};if(Array.isArray(o==null?void 0:o.prepareTransactionRequest))return{fn:o.prepareTransactionRequest[0],runAt:o.prepareTransactionRequest[1].runAt}})();let c;async function l(){return c||(typeof n.chainId<"u"?n.chainId:o?o.id:(c=await G(e,rc,"getChainId")({}),c))}const u=r&&_e(r);let d=n.nonce;if(i.includes("nonce")&&typeof d>"u"&&u&&s){const A=await l();d=await s.consume({address:u.address,chainId:A,client:e})}a!=null&&a.fn&&((v=a.runAt)!=null&&v.includes("beforeFillTransaction"))&&(n=await a.fn({...n,chain:o},{phase:"beforeFillTransaction"}),d??(d=n.nonce));const h=((i.includes("blobVersionedHashes")||i.includes("sidecars"))&&n.kzg&&n.blobs||Js.get(e.uid)===!1||!["fees","gas"].some(k=>i.includes(k))?!1:!!(i.includes("chainId")&&typeof n.chainId!="number"||i.includes("nonce")&&typeof d!="number"||i.includes("fees")&&typeof n.gasPrice!="bigint"&&(typeof n.maxFeePerGas!="bigint"||typeof n.maxPriorityFeePerGas!="bigint")||i.includes("gas")&&typeof n.gas!="bigint"))?await G(e,n0,"fillTransaction")({...n,nonce:d}).then(A=>{const{chainId:k,from:j,gas:O,gasPrice:_,nonce:R,maxFeePerBlobGas:P,maxFeePerGas:$,maxPriorityFeePerGas:S,type:N,...F}=A.transaction;return Js.set(e.uid,!0),{...n,...j?{from:j}:{},...N&&!n.type?{type:N}:{},...typeof k<"u"?{chainId:k}:{},...typeof O<"u"?{gas:O}:{},...typeof _<"u"?{gasPrice:_}:{},...typeof R<"u"?{nonce:R}:{},...typeof P<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxFeePerBlobGas:P}:{},...typeof $<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxFeePerGas:$}:{},...typeof S<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxPriorityFeePerGas:S}:{},..."nonceKey"in F&&typeof F.nonceKey<"u"?{nonceKey:F.nonceKey}:{},..."keyAuthorization"in F&&typeof F.keyAuthorization<"u"&&F.keyAuthorization!==null&&!("keyAuthorization"in n)?{keyAuthorization:F.keyAuthorization}:{},..."feePayerSignature"in F&&typeof F.feePayerSignature<"u"&&F.feePayerSignature!==null?{feePayerSignature:F.feePayerSignature}:{}}}).catch(A=>{var _,R;const k=A;if(k.name!=="TransactionExecutionError")return n;if((_=k.walk)==null?void 0:_.call(k,P=>P.name==="ExecutionRevertedError"))throw A;return((R=k.walk)==null?void 0:R.call(k,P=>{var S;const $=P;return $.name==="MethodNotFoundRpcError"||$.name==="MethodNotSupportedRpcError"||((S=$.message)==null?void 0:S.includes("eth_fillTransaction is not available"))}))&&Js.set(e.uid,!1),n}):n;d??(d=h.nonce),n={...h,...u?{from:u==null?void 0:u.address}:{},...d?{nonce:d}:{}};const{blobs:p,gas:m,kzg:g,type:y}=n;a!=null&&a.fn&&((x=a.runAt)!=null&&x.includes("beforeFillParameters"))&&(n=await a.fn({...n,chain:o},{phase:"beforeFillParameters"}));let C;async function w(){return C||(C=await G(e,tt,"getBlock")({blockTag:"latest"}),C)}if(i.includes("nonce")&&typeof d>"u"&&u&&!s&&(n.nonce=await G(e,qf,"getTransactionCount")({address:u.address,blockTag:"pending"})),(i.includes("blobVersionedHashes")||i.includes("sidecars"))&&p&&g){const A=ec({blobs:p,kzg:g});if(i.includes("blobVersionedHashes")){const k=Kf({commitments:A,to:"hex"});n.blobVersionedHashes=k}if(i.includes("sidecars")){const k=tc({blobs:p,commitments:A,kzg:g}),j=e0({blobs:p,commitments:A,proofs:k,to:"hex"});n.sidecars=j}}if(i.includes("chainId")&&(n.chainId=await l()),(i.includes("fees")||i.includes("type"))&&typeof y>"u")try{n.type=t0(n)}catch{let A=Ol.get(e.uid);if(typeof A>"u"){const k=await w();A=typeof(k==null?void 0:k.baseFeePerGas)=="bigint",Ol.set(e.uid,A)}n.type=A?"eip1559":"legacy"}if(i.includes("fees"))if(n.type!=="legacy"&&n.type!=="eip2930"){if(typeof n.maxFeePerGas>"u"||typeof n.maxPriorityFeePerGas>"u"){const A=await w(),{maxFeePerGas:k,maxPriorityFeePerGas:j}=await Xi(e,{block:A,chain:o,request:n});if(typeof n.maxPriorityFeePerGas>"u"&&n.maxFeePerGas&&n.maxFeePerGas<j)throw new o6({maxPriorityFeePerGas:j});n.maxPriorityFeePerGas=j,n.maxFeePerGas=k}}else{if(typeof n.maxFeePerGas<"u"||typeof n.maxPriorityFeePerGas<"u")throw new Ya;if(typeof n.gasPrice>"u"){const A=await w(),{gasPrice:k}=await Xi(e,{block:A,chain:o,request:n,type:"legacy"});n.gasPrice=k}}return i.includes("gas")&&typeof m>"u"&&(n.gas=await G(e,oc,"estimateGas")({...n,account:u,prepare:(u==null?void 0:u.type)==="local"?[]:["blobVersionedHashes"]})),a!=null&&a.fn&&((E=a.runAt)!=null&&E.includes("afterFillParameters"))&&(n=await a.fn({...n,chain:o},{phase:"afterFillParameters"})),Zn(n),delete n.parameters,n}async function oc(e,t){var i,a,c;const{account:n=e.account,prepare:r=!0}=t,o=n?_e(n):void 0,s=(()=>{if(Array.isArray(r))return r;if((o==null?void 0:o.type)!=="local")return["blobVersionedHashes"]})();try{const l=await(async()=>{if(t.to)return t.to;if(t.authorizationList&&t.authorizationList.length>0)return await Lf({authorization:t.authorizationList[0]}).catch(()=>{throw new M("`to` is required. Could not infer from `authorizationList`")})})(),{accessList:u,authorizationList:d,blobs:f,blobVersionedHashes:h,blockNumber:p,blockTag:m,data:g,gas:y,gasPrice:C,maxFeePerBlobGas:w,maxFeePerGas:v,maxPriorityFeePerGas:x,nonce:E,value:A,stateOverride:k,...j}=r?await r0(e,{...t,parameters:s,to:l}):t;if(y&&t.gas!==y)return y;const _=(typeof p=="bigint"?D(p):void 0)||m,R=Qa(k);Zn(t);const P=(c=(a=(i=e.chain)==null?void 0:i.formatters)==null?void 0:a.transactionRequest)==null?void 0:c.format,S=(P||so)({...xs(j,{format:P}),account:o,accessList:u,authorizationList:d,blobs:f,blobVersionedHashes:h,data:g,gasPrice:C,maxFeePerBlobGas:w,maxFeePerGas:v,maxPriorityFeePerGas:x,nonce:E,to:l,value:A},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:R?[S,_??e.experimental_blockTag??"latest",R]:_?[S,_]:[S]}))}catch(l){throw r6(l,{...t,account:o,chain:e.chain})}}async function B6(e,t){var l;const{abi:n,address:r,args:o,functionName:s,dataSuffix:i=typeof e.dataSuffix=="string"?e.dataSuffix:(l=e.dataSuffix)==null?void 0:l.value,...a}=t,c=Ze({abi:n,args:o,functionName:s});try{return await G(e,oc,"estimateGas")({data:`${c}${i?i.replace("0x",""):""}`,to:r,...a})}catch(u){const d=a.account?_e(a.account):void 0;throw qn(u,{abi:n,address:r,args:o,docsPath:"/docs/contract/estimateContractGas",functionName:s,sender:d==null?void 0:d.address})}}async function o0(e,{address:t,blockNumber:n,blockTag:r=e.experimental_blockTag??"latest"}){var i,a,c;if((i=e.batch)!=null&&i.multicall&&((c=(a=e.chain)==null?void 0:a.contracts)!=null&&c.multicall3)){const l=e.chain.contracts.multicall3.address,u=Ze({abi:Ln,functionName:"getEthBalance",args:[t]}),{data:d}=await G(e,io,"call")({to:l,data:u,blockNumber:n,blockTag:r});return Xt({abi:Ln,functionName:"getEthBalance",args:[t],data:d||"0x"})}const o=typeof n=="bigint"?D(n):void 0,s=await e.request({method:"eth_getBalance",params:[t,o||r]});return BigInt(s)}async function j6(e){const t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}const S6=new Map,_6=new Map;function P6(e){const t=(o,s)=>({clear:()=>s.delete(o),get:()=>s.get(o),set:i=>s.set(o,i)}),n=t(e,S6),r=t(e,_6);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}async function T6(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){const r=P6(t),o=r.response.get();if(o&&n>0&&Date.now()-o.created.getTime()<n)return o.data;let s=r.promise.get();s||(s=e(),r.promise.set(s));try{const i=await s;return r.response.set({created:new Date,data:i}),i}finally{r.promise.clear()}}const O6=e=>`blockNumber.${e}`;async function lo(e,{cacheTime:t=e.cacheTime}={}){const n=await T6(()=>e.request({method:"eth_blockNumber"}),{cacheKey:O6(e.uid),cacheTime:t});return BigInt(n)}async function R6(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){const o=n!==void 0?D(n):void 0;let s;return t?s=await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):s=await e.request({method:"eth_getBlockTransactionCountByNumber",params:[o||r]},{dedupe:!!o}),rt(s)}async function Ho(e,{address:t,blockNumber:n,blockTag:r="latest"}){const o=n!==void 0?D(n):void 0,s=await e.request({method:"eth_getCode",params:[t,o||r]},{dedupe:!!o});if(s!=="0x")return s}function $r(e,t){if(!fe(e,{strict:!1}))throw new Se({address:e});if(!fe(t,{strict:!1}))throw new Se({address:t});return e.toLowerCase()===t.toLowerCase()}function yt(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):e.blockTimestamp===null?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}const Rl="/docs/contract/decodeEventLog";function Vo(e){const{abi:t,data:n,strict:r,topics:o}=e,s=r??!0,[i,...a]=o;if(!i)throw new l1({docsPath:Rl});const c=t.find(y=>y.type==="event"&&i===fs(nt(y)));if(!(c&&"name"in c)||c.type!=="event")throw new u1(i,{docsPath:Rl});const{name:l,inputs:u}=c,d=u==null?void 0:u.some(y=>!("name"in y&&y.name)),f=d?[]:{},h=u.map((y,C)=>[y,C]).filter(([y])=>"indexed"in y&&y.indexed),p=[];for(let y=0;y<h.length;y++){const[C,w]=h[y],v=a[y];if(!v){if(s)throw new ka({abiItem:c,param:C});p.push([C,w]);continue}f[d?w:C.name||w]=M6({param:C,value:v})}const m=u.filter(y=>!("indexed"in y&&y.indexed)),g=s?m:[...p.map(([y])=>y),...m];if(g.length>0){if(n&&n!=="0x")try{const y=Zr(g,n);if(y){let C=0;if(!s)for(const[w,v]of p)f[d?v:w.name||v]=y[C++];if(d)for(let w=0;w<u.length;w++)f[w]===void 0&&C<y.length&&(f[w]=y[C++]);else for(let w=0;w<m.length;w++)f[m[w].name]=y[C++]}}catch(y){if(s)throw y instanceof wd||y instanceof Rd?new zo({abiItem:c,data:n,params:g,size:ae(n)}):y}else if(s)throw new zo({abiItem:c,data:"0x",params:g,size:0})}return{eventName:l,args:Object.values(f).length>0?f:void 0}}function M6({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:(Zr([e],t)||[])[0]}function sc(e){const{abi:t,args:n,logs:r,strict:o=!0}=e,s=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})(),i=t.filter(a=>a.type==="event").map(a=>({abi:a,selector:fs(a)}));return r.map(a=>{var f;const c=typeof a.blockNumber=="string"?yt(a):a,l=i.filter(h=>c.topics[0]===h.selector);if(l.length===0)return null;let u,d;for(const h of l)try{u=Vo({...c,abi:[h.abi],strict:!0}),d=h;break}catch{}if(!u&&!o){d=l[0];try{u=Vo({data:c.data,topics:c.topics,abi:[d.abi],strict:!1})}catch{const h=(f=d.abi.inputs)==null?void 0:f.some(p=>!("name"in p&&p.name));return{...c,args:h?[]:{},eventName:d.abi.name}}}return!u||!d||s&&!s.includes(u.eventName)||!N6({args:u.args,inputs:d.abi.inputs,matchArgs:n})?null:{...u,...c}}).filter(Boolean)}function N6(e){const{args:t,inputs:n,matchArgs:r}=e;if(!r)return!0;if(!t)return!1;function o(s,i,a){try{return s.type==="address"?$r(i,a):s.type==="string"||s.type==="bytes"?we(Kn(i))===a:i===a}catch{return!1}}return Array.isArray(t)&&Array.isArray(r)?r.every((s,i)=>{if(s==null)return!0;const a=n[i];return a?(Array.isArray(s)?s:[s]).some(l=>o(a,l,t[i])):!1}):typeof t=="object"&&!Array.isArray(t)&&typeof r=="object"&&!Array.isArray(r)?Object.entries(r).every(([s,i])=>{if(i==null)return!0;const a=n.find(l=>l.name===s);return a?(Array.isArray(i)?i:[i]).some(l=>o(a,l,t[s])):!1}):!1}async function ic(e,{address:t,blockHash:n,fromBlock:r,toBlock:o,event:s,events:i,args:a,strict:c}={}){const l=c??!1,u=i??(s?[s]:void 0);let d=[];u&&(d=[u.flatMap(m=>ao({abi:[m],eventName:m.name,args:i?void 0:a}))],s&&(d=d[0]));let f;n?f=await e.request({method:"eth_getLogs",params:[{address:t,topics:d,blockHash:n}]}):f=await e.request({method:"eth_getLogs",params:[{address:t,topics:d,fromBlock:typeof r=="bigint"?D(r):r,toBlock:typeof o=="bigint"?D(o):o}]});const h=f.map(p=>yt(p));return u?sc({abi:u,args:a,logs:h,strict:l}):h}async function s0(e,t){const{abi:n,address:r,args:o,blockHash:s,eventName:i,fromBlock:a,toBlock:c,strict:l}=t,u=i?wn({abi:n,name:i}):void 0,d=u?void 0:n.filter(f=>f.type==="event");return G(e,ic,"getLogs")({address:r,args:o,blockHash:s,event:u,events:d,fromBlock:a,toBlock:c,strict:l})}async function D6(e,{address:t,blockNumber:n,blockTag:r="latest"}){const o=await Ho(e,{address:t,...n!==void 0?{blockNumber:n}:{blockTag:r}});if(o&&ae(o)===23&&o.startsWith("0xef0100"))return me(Qt(o,3,23))}class F6 extends M{constructor({address:t}){super(`No EIP-712 domain found on contract "${t}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${t}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}async function L6(e,t){const{address:n,factory:r,factoryData:o}=t;try{const[s,i,a,c,l,u,d]=await G(e,Je,"readContract")({abi:U6,address:n,functionName:"eip712Domain",factory:r,factoryData:o});return{domain:{name:i,version:a,chainId:Number(c),verifyingContract:l,salt:u},extensions:d,fields:s}}catch(s){const i=s;throw i.name==="ContractFunctionExecutionError"&&i.cause.name==="ContractFunctionZeroDataError"?new F6({address:n}):i}}const U6=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];function z6(e){var t;return{baseFeePerGas:e.baseFeePerGas.map(n=>BigInt(n)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:(t=e.reward)==null?void 0:t.map(n=>n.map(r=>BigInt(r)))}}async function W6(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:o}){const s=typeof n=="bigint"?D(n):void 0,i=await e.request({method:"eth_feeHistory",params:[D(t),s||r,o]},{dedupe:!!s});return z6(i)}async function Es(e,{filter:t}){const n="strict"in t&&t.strict,r=await t.request({method:"eth_getFilterChanges",params:[t.id]});if(typeof r[0]=="string")return r;const o=r.map(s=>yt(s));return!("abi"in t)||!t.abi?o:sc({abi:t.abi,logs:o,strict:n})}async function $6(e,{filter:t}){const n=t.strict??!1,o=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(s=>yt(s));return t.abi?sc({abi:t.abi,logs:o,strict:n}):o}function q6(e){const{authorizationList:t}=e;if(t)for(const n of t){const{chainId:r}=n,o=n.address;if(!fe(o))throw new Se({address:o});if(r<0)throw new hs({chainId:r})}ac(e)}function H6(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new Xf;for(const n of t){const r=ae(n),o=rt(Qt(n,0,1));if(r!==32)throw new C6({hash:n,size:r});if(o!==Zf)throw new A6({hash:n,version:o})}}ac(e)}function ac(e){const{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:r,to:o}=e;if(t<=0)throw new hs({chainId:t});if(o&&!fe(o))throw new Se({address:o});if(r&&r>Cs)throw new pn({maxFeePerGas:r});if(n&&r&&n>r)throw new Wr({maxFeePerGas:r,maxPriorityFeePerGas:n})}function V6(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:s}=e;if(t<=0)throw new hs({chainId:t});if(s&&!fe(s))throw new Se({address:s});if(n||o)throw new M("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>Cs)throw new pn({maxFeePerGas:r})}function G6(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:s}=e;if(s&&!fe(s))throw new Se({address:s});if(typeof t<"u"&&t<=0)throw new hs({chainId:t});if(n||o)throw new M("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>Cs)throw new pn({maxFeePerGas:r})}function Is(e){if(!e||e.length===0)return[];const t=[];for(let n=0;n<e.length;n++){const{address:r,storageKeys:o}=e[n];for(let s=0;s<o.length;s++)if(o[s].length-2!==64)throw new Pb({storageKey:o[s]});if(!fe(r,{strict:!1}))throw new Se({address:r});t.push([r,o])}return t}function Q6(e,t){const n=t0(e);return n==="eip1559"?Y6(e,t):n==="eip2930"?Z6(e,t):n==="eip4844"?J6(e,t):n==="eip7702"?K6(e,t):X6(e,t)}function K6(e,t){const{authorizationList:n,chainId:r,gas:o,nonce:s,to:i,value:a,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:u,data:d}=e;q6(e);const f=Is(u),h=ey(n);return at(["0x04",Jt([D(r),s?D(s):"0x",l?D(l):"0x",c?D(c):"0x",o?D(o):"0x",i??"0x",a?D(a):"0x",d??"0x",f,h,...uo(e,t)])])}function J6(e,t){const{chainId:n,gas:r,nonce:o,to:s,value:i,maxFeePerBlobGas:a,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:u,data:d}=e;H6(e);let f=e.blobVersionedHashes,h=e.sidecars;if(e.blobs&&(typeof f>"u"||typeof h>"u")){const w=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(E=>de(E)),v=e.kzg,x=ec({blobs:w,kzg:v});if(typeof f>"u"&&(f=Kf({commitments:x})),typeof h>"u"){const E=tc({blobs:w,commitments:x,kzg:v});h=e0({blobs:w,commitments:x,proofs:E})}}const p=Is(u),m=[D(n),o?D(o):"0x",l?D(l):"0x",c?D(c):"0x",r?D(r):"0x",s??"0x",i?D(i):"0x",d??"0x",p,a?D(a):"0x",f??[],...uo(e,t)],g=[],y=[],C=[];if(h)for(let w=0;w<h.length;w++){const{blob:v,commitment:x,proof:E}=h[w];g.push(v),y.push(x),C.push(E)}return at(["0x03",Jt(h?[m,g,y,C]:m)])}function Y6(e,t){const{chainId:n,gas:r,nonce:o,to:s,value:i,maxFeePerGas:a,maxPriorityFeePerGas:c,accessList:l,data:u}=e;ac(e);const d=Is(l),f=[D(n),o?D(o):"0x",c?D(c):"0x",a?D(a):"0x",r?D(r):"0x",s??"0x",i?D(i):"0x",u??"0x",d,...uo(e,t)];return at(["0x02",Jt(f)])}function Z6(e,t){const{chainId:n,gas:r,data:o,nonce:s,to:i,value:a,accessList:c,gasPrice:l}=e;V6(e);const u=Is(c),d=[D(n),s?D(s):"0x",l?D(l):"0x",r?D(r):"0x",i??"0x",a?D(a):"0x",o??"0x",u,...uo(e,t)];return at(["0x01",Jt(d)])}function X6(e,t){const{chainId:n=0,gas:r,data:o,nonce:s,to:i,value:a,gasPrice:c}=e;G6(e);let l=[s?D(s):"0x",c?D(c):"0x",r?D(r):"0x",i??"0x",a?D(a):"0x",o??"0x"];if(t){const u=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);if(n>0)return BigInt(n*2)+BigInt(35n+t.v-27n);const h=27n+(t.v===27n?0n:1n);if(t.v!==h)throw new Sb({v:t.v});return h})(),d=qe(t.r),f=qe(t.s);l=[...l,D(u),d==="0x00"?"0x":d,f==="0x00"?"0x":f]}else n>0&&(l=[...l,D(n),"0x","0x"]);return Jt(l)}function uo(e,t){const n=t??e,{v:r,yParity:o}=n;if(typeof n.r>"u")return[];if(typeof n.s>"u")return[];if(typeof r>"u"&&typeof o>"u")return[];const s=qe(n.r),i=qe(n.s);return[typeof o=="number"?o?D(1):"0x":r===0n?"0x":r===1n?D(1):r===27n?"0x":D(1),s==="0x00"?"0x":s,i==="0x00"?"0x":i]}function ey(e){if(!e||e.length===0)return[];const t=[];for(const n of e){const{chainId:r,nonce:o,...s}=n,i=n.address;t.push([r?Re(r):"0x",i,o?Re(o):"0x",...uo({},s)])}return t}async function ty({address:e,authorization:t,signature:n}){return $r(me(e),await Lf({authorization:t,signature:n}))}const Ao=new ls(8192);function ny(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(Ao.get(n))return Ao.get(n);const r=e().finally(()=>Ao.delete(n));return Ao.set(n,r),r}async function ea(e){return new Promise(t=>setTimeout(t,e))}function Hn(e,{delay:t=100,retryCount:n=2,shouldRetry:r=()=>!0}={}){return new Promise((o,s)=>{const i=async({count:a=0}={})=>{const c=async({error:l})=>{const u=typeof t=="function"?t({count:a,error:l}):t;u&&await ea(u),i({count:a+1})};try{const l=await e();o(l)}catch(l){if(a<n&&await r({count:a,error:l}))return c({error:l});s(l)}};i()})}function ry(e,t={}){return async(n,r={})=>{var d;const{dedupe:o=!1,methods:s,retryDelay:i=150,retryCount:a=3,uid:c}={...t,...r},{method:l}=n;if((d=s==null?void 0:s.exclude)!=null&&d.includes(l))throw new sn(new Error("method not supported"),{method:l});if(s!=null&&s.include&&!s.include.includes(l))throw new sn(new Error("method not supported"),{method:l});const u=o?zn(`${c}.${ve(n)}`):void 0;return ny(()=>Hn(async()=>{try{return await e(n)}catch(f){const h=f;switch(h.code){case xr.code:throw new xr(h);case Cr.code:throw new Cr(h);case Ar.code:throw new Ar(h,{method:n.method});case Er.code:throw new Er(h);case dn.code:throw new dn(h);case Kt.code:throw new Kt(h);case Ir.code:throw new Ir(h);case pt.code:throw new pt(h);case kr.code:throw new kr(h);case sn.code:throw new sn(h,{method:n.method});case $n.code:throw new $n(h);case Br.code:throw new Br(h);case oe.code:throw new oe(h);case jr.code:throw new jr(h);case Sr.code:throw new Sr(h);case _r.code:throw new _r(h);case Pr.code:throw new Pr(h);case He.code:throw new He(h);case Tr.code:throw new Tr(h);case Or.code:throw new Or(h);case Rr.code:throw new Rr(h);case Mr.code:throw new Mr(h);case Nr.code:throw new Nr(h);case Dr.code:throw new Dr(h);case Fr.code:throw new Fr(h);case 5e3:throw new oe(h);case Lr.code:throw new Lr(h);default:throw f instanceof M?f:new Hb(h)}}},{delay:({count:f,error:h})=>{var p;if(h&&h instanceof br){const m=(p=h==null?void 0:h.headers)==null?void 0:p.get("Retry-After");if(m!=null&&m.match(/\d/))return Number.parseInt(m,10)*1e3}return~~(1<<f)*i},retryCount:a,shouldRetry:({error:f})=>oy(f)}),{enabled:o,id:u})}}function oy(e){return"code"in e&&typeof e.code=="number"?e.code===-1||e.code===$n.code||e.code===dn.code||e.code===429:e instanceof br&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}function Xn(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};function n(r){return o=>{const s=typeof o=="function"?o(r):o,i={...r,...s};return Object.assign(i,{extend:n(i)})}}return Object.assign(t,{extend:n(t)})}const sy={"0x0":"reverted","0x1":"success"};function cc(e,t){const n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(r=>yt(r)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?rt(e.transactionIndex):null,status:e.status?sy[e.status]:null,type:e.type?Wf[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const iy=Ga("transactionReceipt",cc);function ks(e,{errorInstance:t=new Error("timed out"),timeout:n,signal:r}){return new Promise((o,s)=>{(async()=>{let i;try{const a=new AbortController;n>0&&(i=setTimeout(()=>{r?a.abort():s(t)},n)),o(await e({signal:(a==null?void 0:a.signal)||null}))}catch(a){(a==null?void 0:a.name)==="AbortError"&&s(t),s(a)}finally{clearTimeout(i)}})()})}function ay(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const Ml=ay();function cy(e,t={}){const{url:n,headers:r}=ly(e);return{async request(o){var p,m,g;const{body:s,fetchFn:i=t.fetchFn??fetch,onRequest:a=t.onRequest,onResponse:c=t.onResponse,timeout:l=t.timeout??1e4}=o,u={...t.fetchOptions??{},...o.fetchOptions??{}},{headers:d,method:f,signal:h}=u;try{const y=await ks(async({signal:w})=>{const v={...u,body:Array.isArray(s)?ve(s.map(k=>({jsonrpc:"2.0",id:k.id??Ml.take(),...k}))):ve({jsonrpc:"2.0",id:s.id??Ml.take(),...s}),headers:{...r,"Content-Type":"application/json",...d},method:f||"POST",signal:h||(l>0?w:null)},x=new Request(n,v),E=await(a==null?void 0:a(x,v))??{...v,url:n};return await i(E.url??n,E)},{errorInstance:new wl({body:s,url:n}),timeout:l,signal:!0});c&&await c(y);let C;if((p=y.headers.get("Content-Type"))!=null&&p.startsWith("application/json"))C=await y.json();else{C=await y.text();try{C=JSON.parse(C||"{}")}catch(w){if(y.ok)throw w;C={error:C}}}if(!y.ok){if(typeof((m=C.error)==null?void 0:m.code)=="number"&&typeof((g=C.error)==null?void 0:g.message)=="string")return C;throw new br({body:s,details:ve(C.error)||y.statusText,headers:y.headers,status:y.status,url:n})}return C}catch(y){throw y instanceof br||y instanceof wl?y:new br({body:s,cause:y,url:n})}}}}function ly(e){try{const t=new URL(e),n=(()=>{if(t.username){const r=`${decodeURIComponent(t.username)}:${decodeURIComponent(t.password)}`;return t.username="",t.password="",{url:t.toString(),headers:{Authorization:`Basic ${btoa(r)}`}}}})();return{url:t.toString(),...n}}catch{return{url:e}}}const uy=`Ethereum Signed Message:
|
|
42
|
+
`;function dy(e){const t=typeof e=="string"?zn(e):typeof e.raw=="string"?e.raw:de(e.raw),n=zn(`${uy}${ae(t)}`);return gt([n,t])}function i0(e,t){return we(dy(e),t)}class fy extends M{constructor({domain:t}){super(`Invalid domain "${ve(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class hy extends M{constructor({primaryType:t,types:n}){super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(n))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class py extends M{constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function my(e){const{domain:t,message:n,primaryType:r,types:o}=e,s=(i,a)=>{for(const c of i){const{name:l,type:u}=c,d=a[l],f=u.match(Fd);if(f&&(typeof d=="number"||typeof d=="bigint")){const[m,g,y]=f;D(d,{signed:g==="int",size:Number.parseInt(y,10)/8})}if(u==="address"&&typeof d=="string"&&!fe(d))throw new Se({address:d});const h=u.match(fm);if(h){const[m,g]=h;if(g&&ae(d)!==Number.parseInt(g,10))throw new h1({expectedSize:Number.parseInt(g,10),givenSize:ae(d)})}const p=o[u];p&&(gy(u),s(p,d))}};if(o.EIP712Domain&&t){if(typeof t!="object")throw new fy({domain:t});s(o.EIP712Domain,t)}if(r!=="EIP712Domain")if(o[r])s(o[r],n);else throw new hy({primaryType:r,types:o})}function by({domain:e}){return[typeof(e==null?void 0:e.name)=="string"&&{name:"name",type:"string"},(e==null?void 0:e.version)&&{name:"version",type:"string"},(typeof(e==null?void 0:e.chainId)=="number"||typeof(e==null?void 0:e.chainId)=="bigint")&&{name:"chainId",type:"uint256"},(e==null?void 0:e.verifyingContract)&&{name:"verifyingContract",type:"address"},(e==null?void 0:e.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function gy(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new py({type:e})}function yy(e){const{domain:t={},message:n,primaryType:r}=e,o={EIP712Domain:by({domain:t}),...e.types};my({domain:t,message:n,primaryType:r,types:o});const s=["0x1901"];return t&&s.push(wy({domain:t,types:o})),r!=="EIP712Domain"&&s.push(a0({data:n,primaryType:r,types:o})),we(gt(s))}function wy({domain:e,types:t}){return a0({data:e,primaryType:"EIP712Domain",types:t})}function a0({data:e,primaryType:t,types:n}){const r=c0({data:e,primaryType:t,types:n});return we(r)}function c0({data:e,primaryType:t,types:n}){const r=[{type:"bytes32"}],o=[vy({primaryType:t,types:n})];for(const s of n[t]){const[i,a]=u0({types:n,name:s.name,type:s.type,value:e[s.name]});r.push(i),o.push(a)}return yn(r,o)}function vy({primaryType:e,types:t}){const n=Re(xy({primaryType:e,types:t}));return we(n)}function xy({primaryType:e,types:t}){let n="";const r=l0({primaryType:e,types:t});r.delete(e);const o=[e,...Array.from(r).sort()];for(const s of o)n+=`${s}(${t[s].map(({name:i,type:a})=>`${a} ${i}`).join(",")})`;return n}function l0({primaryType:e,types:t},n=new Set){const r=e.match(/^\w*/u),o=r==null?void 0:r[0];if(n.has(o)||t[o]===void 0)return n;n.add(o);for(const s of t[o])l0({primaryType:s.type,types:t},n);return n}function u0({types:e,name:t,type:n,value:r}){if(e[n]!==void 0)return[{type:"bytes32"},we(c0({data:r,primaryType:n,types:e}))];if(n==="bytes")return[{type:"bytes32"},we(r)];if(n==="string")return[{type:"bytes32"},we(Re(r))];if(n.lastIndexOf("]")===n.length-1){const o=n.slice(0,n.lastIndexOf("[")),s=r.map(i=>u0({name:t,type:o,types:e,value:i}));return[{type:"bytes32"},we(yn(s.map(([i])=>i),s.map(([,i])=>i)))]}return[{type:n},r]}class Cy extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=this.keys().next().value;r&&this.delete(r)}return this}}const Ay={checksum:new Cy(8192)},Ys=Ay.checksum;class d0 extends ja{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,U1(t);const r=as(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,s=new Uint8Array(o);s.set(r.length>o?t.create().update(r).digest():r);for(let i=0;i<s.length;i++)s[i]^=54;this.iHash.update(s),this.oHash=t.create();for(let i=0;i<s.length;i++)s[i]^=106;this.oHash.update(s),Gt(s)}update(t){return Wn(this),this.iHash.update(t),this}digestInto(t){Wn(this),Vt(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:r,finished:o,destroyed:s,blockLen:i,outputLen:a}=this;return t=t,t.finished=o,t.destroyed=s,t.blockLen=i,t.outputLen=a,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const f0=(e,t,n)=>new d0(e,t).update(n).digest();f0.create=(e,t)=>new d0(e,t);function h0(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,r=Od(sg(e));return n==="Bytes"?r:it(r)}const Ey=/^0x[a-fA-F0-9]{40}$/;function Bs(e,t={}){const{strict:n=!0}=t;if(!Ey.test(e))throw new Nl({address:e,cause:new Iy});if(n){if(e.toLowerCase()===e)return;if(p0(e)!==e)throw new Nl({address:e,cause:new ky})}}function p0(e){if(Ys.has(e))return Ys.get(e);Bs(e,{strict:!1});const t=e.substring(2).toLowerCase(),n=h0(ag(t),{as:"Bytes"}),r=t.split("");for(let s=0;s<40;s+=2)n[s>>1]>>4>=8&&r[s]&&(r[s]=r[s].toUpperCase()),(n[s>>1]&15)>=8&&r[s+1]&&(r[s+1]=r[s+1].toUpperCase());const o=`0x${r.join("")}`;return Ys.set(e,o),o}function ta(e,t={}){const{strict:n=!0}=t??{};try{return Bs(e,{strict:n}),!0}catch{return!1}}class Nl extends Y{constructor({address:t,cause:n}){super(`Address "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class Iy extends Y{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class ky extends Y{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}const By=/^(.*)\[([0-9]*)\]$/,jy=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,m0=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,Dl=2n**256n-1n;function Dn(e,t,n){const{checksumAddress:r,staticPosition:o}=n,s=dc(t.type);if(s){const[i,a]=s;return _y(e,{...t,type:a},{checksumAddress:r,length:i,staticPosition:o})}if(t.type==="tuple")return Ry(e,t,{checksumAddress:r,staticPosition:o});if(t.type==="address")return Sy(e,{checksum:r});if(t.type==="bool")return Py(e);if(t.type.startsWith("bytes"))return Ty(e,t,{staticPosition:o});if(t.type.startsWith("uint")||t.type.startsWith("int"))return Oy(e,t);if(t.type==="string")return My(e,{staticPosition:o});throw new hc(t.type)}const Fl=32,na=32;function Sy(e,t={}){const{checksum:n=!1}=t,r=e.readBytes(32);return[(s=>n?p0(s):s)(it(lg(r,-20))),32]}function _y(e,t,n){const{checksumAddress:r,length:o,staticPosition:s}=n;if(!o){const c=Tt(e.readBytes(na)),l=s+c,u=l+Fl;e.setPosition(l);const d=Tt(e.readBytes(Fl)),f=qr(t);let h=0;const p=[];for(let m=0;m<d;++m){e.setPosition(u+(f?m*32:h));const[g,y]=Dn(e,t,{checksumAddress:r,staticPosition:u});h+=y,p.push(g)}return e.setPosition(s+32),[p,32]}if(qr(t)){const c=Tt(e.readBytes(na)),l=s+c,u=[];for(let d=0;d<o;++d){e.setPosition(l+d*32);const[f]=Dn(e,t,{checksumAddress:r,staticPosition:l});u.push(f)}return e.setPosition(s+32),[u,32]}let i=0;const a=[];for(let c=0;c<o;++c){const[l,u]=Dn(e,t,{checksumAddress:r,staticPosition:s+i});i+=u,a.push(l)}return[a,i]}function Py(e){return[dg(e.readBytes(32),{size:32}),32]}function Ty(e,t,{staticPosition:n}){const[r,o]=t.type.split("bytes");if(!o){const i=Tt(e.readBytes(32));e.setPosition(n+i);const a=Tt(e.readBytes(32));if(a===0)return e.setPosition(n+32),["0x",32];const c=e.readBytes(a);return e.setPosition(n+32),[it(c),32]}return[it(e.readBytes(Number.parseInt(o,10),32)),32]}function Oy(e,t){const n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256",10),o=e.readBytes(32);return[r>48?ug(o,{signed:n}):Tt(o,{signed:n}),32]}function Ry(e,t,n){const{checksumAddress:r,staticPosition:o}=n,s=t.components.length===0||t.components.some(({name:c})=>!c),i=s?[]:{};let a=0;if(qr(t)){const c=Tt(e.readBytes(na)),l=o+c;for(let u=0;u<t.components.length;++u){const d=t.components[u];e.setPosition(l+a);const[f,h]=Dn(e,d,{checksumAddress:r,staticPosition:l});a+=h,i[s?u:d==null?void 0:d.name]=f}return e.setPosition(o+32),[i,32]}for(let c=0;c<t.components.length;++c){const l=t.components[c],[u,d]=Dn(e,l,{checksumAddress:r,staticPosition:o});i[s?c:l==null?void 0:l.name]=u,a+=d}return[i,a]}function My(e,{staticPosition:t}){const n=Tt(e.readBytes(32)),r=t+n;e.setPosition(r);const o=Tt(e.readBytes(32));if(o===0)return e.setPosition(t+32),["",32];const s=e.readBytes(o,32),i=fg(bf(s));return e.setPosition(t+32),[i,32]}function Ny({checksumAddress:e,parameters:t,values:n}){const r=[];for(let o=0;o<t.length;o++)r.push(lc({checksumAddress:e,parameter:t[o],value:n[o]}));return r}function lc({checksumAddress:e=!1,parameter:t,value:n}){const r=t,o=dc(r.type);if(o){const[s,i]=o;return Fy(n,{checksumAddress:e,length:s,parameter:{...r,type:i}})}if(r.type==="tuple")return $y(n,{checksumAddress:e,parameter:r});if(r.type==="address")return Dy(n,{checksum:e});if(r.type==="bool")return Uy(n);if(r.type.startsWith("uint")||r.type.startsWith("int")){const s=r.type.startsWith("int"),[,,i="256"]=m0.exec(r.type)??[];return zy(n,{signed:s,size:Number(i)})}if(r.type.startsWith("bytes"))return Ly(n,{type:r.type});if(r.type==="string")return Wy(n);throw new hc(r.type)}function uc(e){let t=0;for(let s=0;s<e.length;s++){const{dynamic:i,encoded:a}=e[s];i?t+=32:t+=Ve(a)}const n=[],r=[];let o=0;for(let s=0;s<e.length;s++){const{dynamic:i,encoded:a}=e[s];i?(n.push(Ie(t+o,{size:32})),r.push(a),o+=Ve(a)):n.push(a)}return st(...n,...r)}function Dy(e,t){const{checksum:n=!1}=t;return Bs(e,{strict:n}),{dynamic:!1,encoded:fn(e.toLowerCase())}}function Fy(e,t){const{checksumAddress:n,length:r,parameter:o}=t,s=r===null;if(!Array.isArray(e))throw new Zy(e);if(!s&&e.length!==r)throw new Yy({expectedLength:r,givenLength:e.length,type:`${o.type}[${r}]`});let i=!1;const a=[];for(let c=0;c<e.length;c++){const l=lc({checksumAddress:n,parameter:o,value:e[c]});l.dynamic&&(i=!0),a.push(l)}if(s||i){const c=uc(a);if(s){const l=Ie(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?st(l,c):l}}if(i)return{dynamic:!0,encoded:c}}return{dynamic:!1,encoded:st(...a.map(({encoded:c})=>c))}}function Ly(e,{type:t}){const[,n]=t.split("bytes"),r=Ve(e);if(!n){let o=e;return r%32!==0&&(o=hn(o,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:st(fn(Ie(r,{size:32})),o)}}if(r!==Number.parseInt(n,10))throw new g0({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:hn(e)}}function Uy(e){if(typeof e!="boolean")throw new Y(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:fn(gf(e))}}function zy(e,{signed:t,size:n}){if(typeof n=="number"){const r=2n**(BigInt(n)-(t?1n:0n))-1n,o=t?-r-1n:0n;if(e>r||e<o)throw new vf({max:r.toString(),min:o.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:Ie(e,{size:32,signed:t})}}function Wy(e){const t=qa(e),n=Math.ceil(Ve(t)/32),r=[];for(let o=0;o<n;o++)r.push(hn(mt(t,o*32,(o+1)*32)));return{dynamic:!0,encoded:st(hn(Ie(Ve(t),{size:32})),...r)}}function $y(e,t){const{checksumAddress:n,parameter:r}=t;let o=!1;const s=[];for(let i=0;i<r.components.length;i++){const a=r.components[i],c=Array.isArray(e)?i:a.name,l=lc({checksumAddress:n,parameter:a,value:e[c]});s.push(l),l.dynamic&&(o=!0)}return{dynamic:o,encoded:o?uc(s):st(...s.map(({encoded:i})=>i))}}function dc(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function qr(e){var r;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(r=e.components)==null?void 0:r.some(qr);const n=dc(e.type);return!!(n&&qr({...e,type:n[1]}))}const qy={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new Gy({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new Vy({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new Ll({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new Ll({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function Hy(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(qy);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}class Ll extends Y{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class Vy extends Y{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class Gy extends Y{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function Qy(e,t,n={}){const{as:r="Array",checksumAddress:o=!1}=n,s=typeof t=="string"?mf(t):t,i=Hy(s);if(Tn(s)===0&&e.length>0)throw new Jy;if(Tn(s)&&Tn(s)<32)throw new Ky({data:typeof t=="string"?t:it(t),parameters:e,size:Tn(s)});let a=0;const c=r==="Array"?[]:{};for(let l=0;l<e.length;++l){const u=e[l];i.setPosition(a);const[d,f]=Dn(i,u,{checksumAddress:o,staticPosition:0});a+=f,r==="Array"?c.push(d):c[u.name??l]=d}return c}function fc(e,t,n){const{checksumAddress:r=!1}={};if(e.length!==t.length)throw new y0({expectedLength:e.length,givenLength:t.length});const o=Ny({checksumAddress:r,parameters:e,values:t}),s=uc(o);return s.length===0?"0x":s}function ra(e,t){if(e.length!==t.length)throw new y0({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;r<e.length;r++){const o=e[r],s=t[r];n.push(ra.encode(o,s))}return st(...n)}(function(e){function t(n,r,o=!1){if(n==="address"){const c=r;return Bs(c),fn(c.toLowerCase(),o?32:0)}if(n==="string")return qa(r);if(n==="bytes")return r;if(n==="bool")return fn(gf(r),o?32:1);const s=n.match(m0);if(s){const[c,l,u="256"]=s,d=Number.parseInt(u,10)/8;return Ie(r,{size:o?32:d,signed:l==="int"})}const i=n.match(jy);if(i){const[c,l]=i;if(Number.parseInt(l,10)!==(r.length-2)/2)throw new g0({expectedSize:Number.parseInt(l,10),value:r});return hn(r,o?32:0)}const a=n.match(By);if(a&&Array.isArray(r)){const[c,l]=a,u=[];for(let d=0;d<r.length;d++)u.push(t(l,r[d],!0));return u.length===0?"0x":st(...u)}throw new hc(n)}e.encode=t})(ra||(ra={}));function b0(e){return Array.isArray(e)&&typeof e[0]=="string"||typeof e=="string"?ml(e):e}class Ky extends Y{constructor({data:t,parameters:n,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${_n(n)})`,`Data: ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class Jy extends Y{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class Yy extends Y{constructor({expectedLength:t,givenLength:n,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${t}\`. Given: \`${n}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class g0 extends Y{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${Ve(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class y0 extends Y{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${n}`].join(`
|
|
43
|
+
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class Zy extends Y{constructor(t){super(`Value \`${t}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class hc extends Y{constructor(t){super(`Type \`${t}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Oe=BigInt(0),Be=BigInt(1),an=BigInt(2),Xy=BigInt(3),w0=BigInt(4),v0=BigInt(5),x0=BigInt(8);function Te(e,t){const n=e%t;return n>=Oe?n:t+n}function Ge(e,t,n){let r=e;for(;t-- >Oe;)r*=r,r%=n;return r}function oa(e,t){if(e===Oe)throw new Error("invert: expected non-zero number");if(t<=Oe)throw new Error("invert: expected positive modulus, got "+t);let n=Te(e,t),r=t,o=Oe,s=Be;for(;n!==Oe;){const a=r/n,c=r%n,l=o-s*a;r=n,n=c,o=s,s=l}if(r!==Be)throw new Error("invert: does not exist");return Te(o,t)}function C0(e,t){const n=(e.ORDER+Be)/w0,r=e.pow(t,n);if(!e.eql(e.sqr(r),t))throw new Error("Cannot find square root");return r}function ew(e,t){const n=(e.ORDER-v0)/x0,r=e.mul(t,an),o=e.pow(r,n),s=e.mul(t,o),i=e.mul(e.mul(s,an),o),a=e.mul(s,e.sub(i,e.ONE));if(!e.eql(e.sqr(a),t))throw new Error("Cannot find square root");return a}function tw(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-Be,n=0;for(;t%an===Oe;)t/=an,n++;let r=an;const o=pc(e);for(;Ul(o,r)===1;)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(n===1)return C0;let s=o.pow(r,t);const i=(t+Be)/an;return function(c,l){if(c.is0(l))return l;if(Ul(c,l)!==1)throw new Error("Cannot find square root");let u=n,d=c.mul(c.ONE,s),f=c.pow(l,t),h=c.pow(l,i);for(;!c.eql(f,c.ONE);){if(c.is0(f))return c.ZERO;let p=1,m=c.sqr(f);for(;!c.eql(m,c.ONE);)if(p++,m=c.sqr(m),p===u)throw new Error("Cannot find square root");const g=Be<<BigInt(u-p-1),y=c.pow(d,g);u=p,d=c.sqr(y),f=c.mul(f,d),h=c.mul(h,y)}return h}}function nw(e){return e%w0===Xy?C0:e%x0===v0?ew:tw(e)}const rw=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ow(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},n=rw.reduce((r,o)=>(r[o]="function",r),t);return ys(e,n)}function sw(e,t,n){if(n<Oe)throw new Error("invalid exponent, negatives unsupported");if(n===Oe)return e.ONE;if(n===Be)return t;let r=e.ONE,o=t;for(;n>Oe;)n&Be&&(r=e.mul(r,o)),o=e.sqr(o),n>>=Be;return r}function A0(e,t,n=!1){const r=new Array(t.length).fill(n?e.ZERO:void 0),o=t.reduce((i,a,c)=>e.is0(a)?i:(r[c]=i,e.mul(i,a)),e.ONE),s=e.inv(o);return t.reduceRight((i,a,c)=>e.is0(a)?i:(r[c]=e.mul(i,r[c]),e.mul(i,a)),s),r}function Ul(e,t){const n=(e.ORDER-Be)/an,r=e.pow(t,n),o=e.eql(r,e.ONE),s=e.eql(r,e.ZERO),i=e.eql(r,e.neg(e.ONE));if(!o&&!s&&!i)throw new Error("invalid Legendre symbol result");return o?1:s?0:-1}function E0(e,t){t!==void 0&&wr(t);const n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function pc(e,t,n=!1,r={}){if(e<=Oe)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:o,nByteLength:s}=E0(e,t);if(s>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let i;const a=Object.freeze({ORDER:e,isLE:n,BITS:o,BYTES:s,MASK:gs(o),ZERO:Oe,ONE:Be,create:c=>Te(c,e),isValid:c=>{if(typeof c!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof c);return Oe<=c&&c<e},is0:c=>c===Oe,isOdd:c=>(c&Be)===Be,neg:c=>Te(-c,e),eql:(c,l)=>c===l,sqr:c=>Te(c*c,e),add:(c,l)=>Te(c+l,e),sub:(c,l)=>Te(c-l,e),mul:(c,l)=>Te(c*l,e),pow:(c,l)=>sw(a,c,l),div:(c,l)=>Te(c*oa(l,e),e),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>oa(c,e),sqrt:r.sqrt||(c=>(i||(i=nw(e)),i(a,c))),toBytes:c=>n?uf(c,s):no(c,s),fromBytes:c=>{if(c.length!==s)throw new Error("Field.fromBytes: expected "+s+" bytes, got "+c.length);return n?lf(c):un(c)},invertBatch:c=>A0(a,c),cmov:(c,l,u)=>u?l:c});return Object.freeze(a)}function I0(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function k0(e){const t=I0(e);return t+Math.ceil(t/2)}function iw(e,t,n=!1){const r=e.length,o=I0(t),s=k0(t);if(r<16||r<s||r>1024)throw new Error("expected "+s+"-1024 bytes of input, got "+r);const i=n?lf(e):un(e),a=Te(i,t-Be)+Be;return n?uf(a,o):no(a,o)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const zl=BigInt(0),sa=BigInt(1);function Zs(e,t){const n=t.negate();return e?n:t}function B0(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function Xs(e,t){B0(e,t);const n=Math.ceil(t/e)+1,r=2**(e-1),o=2**e,s=gs(e),i=BigInt(e);return{windows:n,windowSize:r,mask:s,maxNumber:o,shiftBy:i}}function Wl(e,t,n){const{windowSize:r,mask:o,maxNumber:s,shiftBy:i}=n;let a=Number(e&o),c=e>>i;a>r&&(a-=s,c+=sa);const l=t*r,u=l+Math.abs(a)-1,d=a===0,f=a<0,h=t%2!==0;return{nextN:c,offset:u,isZero:d,isNeg:f,isNegF:h,offsetF:l}}function aw(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((n,r)=>{if(!(n instanceof t))throw new Error("invalid point at index "+r)})}function cw(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((n,r)=>{if(!t.isValid(n))throw new Error("invalid scalar at index "+r)})}const ei=new WeakMap,j0=new WeakMap;function ti(e){return j0.get(e)||1}function lw(e,t){return{constTimeNegate:Zs,hasPrecomputes(n){return ti(n)!==1},unsafeLadder(n,r,o=e.ZERO){let s=n;for(;r>zl;)r&sa&&(o=o.add(s)),s=s.double(),r>>=sa;return o},precomputeWindow(n,r){const{windows:o,windowSize:s}=Xs(r,t),i=[];let a=n,c=a;for(let l=0;l<o;l++){c=a,i.push(c);for(let u=1;u<s;u++)c=c.add(a),i.push(c);a=c.double()}return i},wNAF(n,r,o){let s=e.ZERO,i=e.BASE;const a=Xs(n,t);for(let c=0;c<a.windows;c++){const{nextN:l,offset:u,isZero:d,isNeg:f,isNegF:h,offsetF:p}=Wl(o,c,a);o=l,d?i=i.add(Zs(h,r[p])):s=s.add(Zs(f,r[u]))}return{p:s,f:i}},wNAFUnsafe(n,r,o,s=e.ZERO){const i=Xs(n,t);for(let a=0;a<i.windows&&o!==zl;a++){const{nextN:c,offset:l,isZero:u,isNeg:d}=Wl(o,a,i);if(o=c,!u){const f=r[l];s=s.add(d?f.negate():f)}}return s},getPrecomputes(n,r,o){let s=ei.get(r);return s||(s=this.precomputeWindow(r,n),n!==1&&ei.set(r,o(s))),s},wNAFCached(n,r,o){const s=ti(n);return this.wNAF(s,this.getPrecomputes(s,n,o),r)},wNAFCachedUnsafe(n,r,o,s){const i=ti(n);return i===1?this.unsafeLadder(n,r,s):this.wNAFUnsafe(i,this.getPrecomputes(i,n,o),r,s)},setWindowSize(n,r){B0(r,t),j0.set(n,r),ei.delete(n)}}}function uw(e,t,n,r){aw(n,e),cw(r,t);const o=n.length,s=r.length;if(o!==s)throw new Error("arrays of points and scalars must have equal length");const i=e.ZERO,a=Qb(BigInt(o));let c=1;a>12?c=a-3:a>4?c=a-2:a>0&&(c=2);const l=gs(c),u=new Array(Number(l)+1).fill(i),d=Math.floor((t.BITS-1)/c)*c;let f=i;for(let h=d;h>=0;h-=c){u.fill(i);for(let m=0;m<s;m++){const g=r[m],y=Number(g>>BigInt(h)&l);u[y]=u[y].add(n[m])}let p=i;for(let m=u.length-1,g=i;m>0;m--)g=g.add(u[m]),p=p.add(g);if(f=f.add(p),h!==0)for(let m=0;m<c;m++)f=f.double()}return f}function S0(e){return ow(e.Fp),ys(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...E0(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function $l(e){e.lowS!==void 0&&Ur("lowS",e.lowS),e.prehash!==void 0&&Ur("prehash",e.prehash)}function dw(e){const t=S0(e);ys(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:n,Fp:r,a:o}=t;if(n){if(!r.eql(o,r.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}class fw extends Error{constructor(t=""){super(t)}}const St={Err:fw,_tlv:{encode:(e,t)=>{const{Err:n}=St;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length&1)throw new n("tlv.encode: unpadded data");const r=t.length/2,o=Co(r);if(o.length/2&128)throw new n("tlv.encode: long form length too big");const s=r>127?Co(o.length/2|128):"";return Co(e)+s+o+t},decode(e,t){const{Err:n}=St;let r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");const o=t[r++],s=!!(o&128);let i=0;if(!s)i=o;else{const c=o&127;if(!c)throw new n("tlv.decode(long): indefinite length not supported");if(c>4)throw new n("tlv.decode(long): byte length is too big");const l=t.subarray(r,r+c);if(l.length!==c)throw new n("tlv.decode: length bytes not complete");if(l[0]===0)throw new n("tlv.decode(long): zero leftmost byte");for(const u of l)i=i<<8|u;if(r+=c,i<128)throw new n("tlv.decode(long): not minimal encoding")}const a=t.subarray(r,r+i);if(a.length!==i)throw new n("tlv.decode: wrong value length");return{v:a,l:t.subarray(r+i)}}},_int:{encode(e){const{Err:t}=St;if(e<_t)throw new t("integer: negative integers are not allowed");let n=Co(e);if(Number.parseInt(n[0],16)&8&&(n="00"+n),n.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=St;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return un(e)}},toSig(e){const{Err:t,_int:n,_tlv:r}=St,o=Qe("signature",e),{v:s,l:i}=r.decode(48,o);if(i.length)throw new t("invalid signature: left bytes after parsing");const{v:a,l:c}=r.decode(2,s),{v:l,l:u}=r.decode(2,c);if(u.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(a),s:n.decode(l)}},hexFromSig(e){const{_tlv:t,_int:n}=St,r=t.encode(2,n.encode(e.r)),o=t.encode(2,n.encode(e.s)),s=r+o;return t.encode(48,s)}};function ni(e,t){return zr(no(e,t))}const _t=BigInt(0),be=BigInt(1);BigInt(2);const ri=BigInt(3),hw=BigInt(4);function pw(e){const t=dw(e),{Fp:n}=t,r=pc(t.n,t.nBitLength),o=t.toBytes||((w,v,x)=>{const E=v.toAffine();return qo(Uint8Array.from([4]),n.toBytes(E.x),n.toBytes(E.y))}),s=t.fromBytes||(w=>{const v=w.subarray(1),x=n.fromBytes(v.subarray(0,n.BYTES)),E=n.fromBytes(v.subarray(n.BYTES,2*n.BYTES));return{x,y:E}});function i(w){const{a:v,b:x}=t,E=n.sqr(w),A=n.mul(E,w);return n.add(n.add(A,n.mul(w,v)),x)}function a(w,v){const x=n.sqr(v),E=i(w);return n.eql(x,E)}if(!a(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const c=n.mul(n.pow(t.a,ri),hw),l=n.mul(n.sqr(t.b),BigInt(27));if(n.is0(n.add(c,l)))throw new Error("bad curve params: a or b");function u(w){return $a(w,be,t.n)}function d(w){const{allowedPrivateKeyLengths:v,nByteLength:x,wrapPrivateKey:E,n:A}=t;if(v&&typeof w!="bigint"){if(to(w)&&(w=zr(w)),typeof w!="string"||!v.includes(w.length))throw new Error("invalid private key");w=w.padStart(x*2,"0")}let k;try{k=typeof w=="bigint"?w:un(Qe("private key",w,x))}catch{throw new Error("invalid private key, expected hex or "+x+" bytes, got "+typeof w)}return E&&(k=Te(k,A)),Nn("private key",k,be,A),k}function f(w){if(!(w instanceof m))throw new Error("ProjectivePoint expected")}const h=Cl((w,v)=>{const{px:x,py:E,pz:A}=w;if(n.eql(A,n.ONE))return{x,y:E};const k=w.is0();v==null&&(v=k?n.ONE:n.inv(A));const j=n.mul(x,v),O=n.mul(E,v),_=n.mul(A,v);if(k)return{x:n.ZERO,y:n.ZERO};if(!n.eql(_,n.ONE))throw new Error("invZ was invalid");return{x:j,y:O}}),p=Cl(w=>{if(w.is0()){if(t.allowInfinityPoint&&!n.is0(w.py))return;throw new Error("bad point: ZERO")}const{x:v,y:x}=w.toAffine();if(!n.isValid(v)||!n.isValid(x))throw new Error("bad point: x or y not FE");if(!a(v,x))throw new Error("bad point: equation left != right");if(!w.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class m{constructor(v,x,E){if(v==null||!n.isValid(v))throw new Error("x required");if(x==null||!n.isValid(x)||n.is0(x))throw new Error("y required");if(E==null||!n.isValid(E))throw new Error("z required");this.px=v,this.py=x,this.pz=E,Object.freeze(this)}static fromAffine(v){const{x,y:E}=v||{};if(!v||!n.isValid(x)||!n.isValid(E))throw new Error("invalid affine point");if(v instanceof m)throw new Error("projective point not allowed");const A=k=>n.eql(k,n.ZERO);return A(x)&&A(E)?m.ZERO:new m(x,E,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(v){const x=A0(n,v.map(E=>E.pz));return v.map((E,A)=>E.toAffine(x[A])).map(m.fromAffine)}static fromHex(v){const x=m.fromAffine(s(Qe("pointHex",v)));return x.assertValidity(),x}static fromPrivateKey(v){return m.BASE.multiply(d(v))}static msm(v,x){return uw(m,r,v,x)}_setWindowSize(v){C.setWindowSize(this,v)}assertValidity(){p(this)}hasEvenY(){const{y:v}=this.toAffine();if(n.isOdd)return!n.isOdd(v);throw new Error("Field doesn't support isOdd")}equals(v){f(v);const{px:x,py:E,pz:A}=this,{px:k,py:j,pz:O}=v,_=n.eql(n.mul(x,O),n.mul(k,A)),R=n.eql(n.mul(E,O),n.mul(j,A));return _&&R}negate(){return new m(this.px,n.neg(this.py),this.pz)}double(){const{a:v,b:x}=t,E=n.mul(x,ri),{px:A,py:k,pz:j}=this;let O=n.ZERO,_=n.ZERO,R=n.ZERO,P=n.mul(A,A),$=n.mul(k,k),S=n.mul(j,j),N=n.mul(A,k);return N=n.add(N,N),R=n.mul(A,j),R=n.add(R,R),O=n.mul(v,R),_=n.mul(E,S),_=n.add(O,_),O=n.sub($,_),_=n.add($,_),_=n.mul(O,_),O=n.mul(N,O),R=n.mul(E,R),S=n.mul(v,S),N=n.sub(P,S),N=n.mul(v,N),N=n.add(N,R),R=n.add(P,P),P=n.add(R,P),P=n.add(P,S),P=n.mul(P,N),_=n.add(_,P),S=n.mul(k,j),S=n.add(S,S),P=n.mul(S,N),O=n.sub(O,P),R=n.mul(S,$),R=n.add(R,R),R=n.add(R,R),new m(O,_,R)}add(v){f(v);const{px:x,py:E,pz:A}=this,{px:k,py:j,pz:O}=v;let _=n.ZERO,R=n.ZERO,P=n.ZERO;const $=t.a,S=n.mul(t.b,ri);let N=n.mul(x,k),F=n.mul(E,j),T=n.mul(A,O),U=n.add(x,E),z=n.add(k,j);U=n.mul(U,z),z=n.add(N,F),U=n.sub(U,z),z=n.add(x,A);let Q=n.add(k,O);return z=n.mul(z,Q),Q=n.add(N,T),z=n.sub(z,Q),Q=n.add(E,A),_=n.add(j,O),Q=n.mul(Q,_),_=n.add(F,T),Q=n.sub(Q,_),P=n.mul($,z),_=n.mul(S,T),P=n.add(_,P),_=n.sub(F,P),P=n.add(F,P),R=n.mul(_,P),F=n.add(N,N),F=n.add(F,N),T=n.mul($,T),z=n.mul(S,z),F=n.add(F,T),T=n.sub(N,T),T=n.mul($,T),z=n.add(z,T),N=n.mul(F,z),R=n.add(R,N),N=n.mul(Q,z),_=n.mul(U,_),_=n.sub(_,N),N=n.mul(U,F),P=n.mul(Q,P),P=n.add(P,N),new m(_,R,P)}subtract(v){return this.add(v.negate())}is0(){return this.equals(m.ZERO)}wNAF(v){return C.wNAFCached(this,v,m.normalizeZ)}multiplyUnsafe(v){const{endo:x,n:E}=t;Nn("scalar",v,_t,E);const A=m.ZERO;if(v===_t)return A;if(this.is0()||v===be)return this;if(!x||C.hasPrecomputes(this))return C.wNAFCachedUnsafe(this,v,m.normalizeZ);let{k1neg:k,k1:j,k2neg:O,k2:_}=x.splitScalar(v),R=A,P=A,$=this;for(;j>_t||_>_t;)j&be&&(R=R.add($)),_&be&&(P=P.add($)),$=$.double(),j>>=be,_>>=be;return k&&(R=R.negate()),O&&(P=P.negate()),P=new m(n.mul(P.px,x.beta),P.py,P.pz),R.add(P)}multiply(v){const{endo:x,n:E}=t;Nn("scalar",v,be,E);let A,k;if(x){const{k1neg:j,k1:O,k2neg:_,k2:R}=x.splitScalar(v);let{p:P,f:$}=this.wNAF(O),{p:S,f:N}=this.wNAF(R);P=C.constTimeNegate(j,P),S=C.constTimeNegate(_,S),S=new m(n.mul(S.px,x.beta),S.py,S.pz),A=P.add(S),k=$.add(N)}else{const{p:j,f:O}=this.wNAF(v);A=j,k=O}return m.normalizeZ([A,k])[0]}multiplyAndAddUnsafe(v,x,E){const A=m.BASE,k=(O,_)=>_===_t||_===be||!O.equals(A)?O.multiplyUnsafe(_):O.multiply(_),j=k(this,x).add(k(v,E));return j.is0()?void 0:j}toAffine(v){return h(this,v)}isTorsionFree(){const{h:v,isTorsionFree:x}=t;if(v===be)return!0;if(x)return x(m,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:v,clearCofactor:x}=t;return v===be?this:x?x(m,this):this.multiplyUnsafe(t.h)}toRawBytes(v=!0){return Ur("isCompressed",v),this.assertValidity(),o(m,this,v)}toHex(v=!0){return Ur("isCompressed",v),zr(this.toRawBytes(v))}}m.BASE=new m(t.Gx,t.Gy,n.ONE),m.ZERO=new m(n.ZERO,n.ONE,n.ZERO);const{endo:g,nBitLength:y}=t,C=lw(m,g?Math.ceil(y/2):y);return{CURVE:t,ProjectivePoint:m,normPrivateKeyToScalar:d,weierstrassEquation:i,isWithinCurveOrder:u}}function mw(e){const t=S0(e);return ys(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function bw(e){const t=mw(e),{Fp:n,n:r,nByteLength:o,nBitLength:s}=t,i=n.BYTES+1,a=2*n.BYTES+1;function c(S){return Te(S,r)}function l(S){return oa(S,r)}const{ProjectivePoint:u,normPrivateKeyToScalar:d,weierstrassEquation:f,isWithinCurveOrder:h}=pw({...t,toBytes(S,N,F){const T=N.toAffine(),U=n.toBytes(T.x),z=qo;return Ur("isCompressed",F),F?z(Uint8Array.from([N.hasEvenY()?2:3]),U):z(Uint8Array.from([4]),U,n.toBytes(T.y))},fromBytes(S){const N=S.length,F=S[0],T=S.subarray(1);if(N===i&&(F===2||F===3)){const U=un(T);if(!$a(U,be,n.ORDER))throw new Error("Point is not on curve");const z=f(U);let Q;try{Q=n.sqrt(z)}catch(q){const H=q instanceof Error?": "+q.message:"";throw new Error("Point is not on curve"+H)}const se=(Q&be)===be;return(F&1)===1!==se&&(Q=n.neg(Q)),{x:U,y:Q}}else if(N===a&&F===4){const U=n.fromBytes(T.subarray(0,n.BYTES)),z=n.fromBytes(T.subarray(n.BYTES,2*n.BYTES));return{x:U,y:z}}else{const U=i,z=a;throw new Error("invalid Point, expected length of "+U+", or uncompressed "+z+", got "+N)}}});function p(S){const N=r>>be;return S>N}function m(S){return p(S)?c(-S):S}const g=(S,N,F)=>un(S.slice(N,F));class y{constructor(N,F,T){Nn("r",N,be,r),Nn("s",F,be,r),this.r=N,this.s=F,T!=null&&(this.recovery=T),Object.freeze(this)}static fromCompact(N){const F=o;return N=Qe("compactSignature",N,F*2),new y(g(N,0,F),g(N,F,2*F))}static fromDER(N){const{r:F,s:T}=St.toSig(Qe("DER",N));return new y(F,T)}assertValidity(){}addRecoveryBit(N){return new y(this.r,this.s,N)}recoverPublicKey(N){const{r:F,s:T,recovery:U}=this,z=A(Qe("msgHash",N));if(U==null||![0,1,2,3].includes(U))throw new Error("recovery id invalid");const Q=U===2||U===3?F+t.n:F;if(Q>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const se=(U&1)===0?"02":"03",le=u.fromHex(se+ni(Q,n.BYTES)),q=l(Q),H=c(-z*q),Z=c(T*q),te=u.BASE.multiplyAndAddUnsafe(le,H,Z);if(!te)throw new Error("point at infinify");return te.assertValidity(),te}hasHighS(){return p(this.s)}normalizeS(){return this.hasHighS()?new y(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return $o(this.toDERHex())}toDERHex(){return St.hexFromSig(this)}toCompactRawBytes(){return $o(this.toCompactHex())}toCompactHex(){const N=o;return ni(this.r,N)+ni(this.s,N)}}const C={isValidPrivateKey(S){try{return d(S),!0}catch{return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const S=k0(t.n);return iw(t.randomBytes(S),t.n)},precompute(S=8,N=u.BASE){return N._setWindowSize(S),N.multiply(BigInt(3)),N}};function w(S,N=!0){return u.fromPrivateKey(S).toRawBytes(N)}function v(S){if(typeof S=="bigint")return!1;if(S instanceof u)return!0;const F=Qe("key",S).length,T=n.BYTES,U=T+1,z=2*T+1;if(!(t.allowedPrivateKeyLengths||o===U))return F===U||F===z}function x(S,N,F=!0){if(v(S)===!0)throw new Error("first arg must be private key");if(v(N)===!1)throw new Error("second arg must be public key");return u.fromHex(N).multiply(d(S)).toRawBytes(F)}const E=t.bits2int||function(S){if(S.length>8192)throw new Error("input is too large");const N=un(S),F=S.length*8-s;return F>0?N>>BigInt(F):N},A=t.bits2int_modN||function(S){return c(E(S))},k=gs(s);function j(S){return Nn("num < 2^"+s,S,_t,k),no(S,o)}function O(S,N,F=_){if(["recovered","canonical"].some(ze=>ze in F))throw new Error("sign() legacy options not supported");const{hash:T,randomBytes:U}=t;let{lowS:z,prehash:Q,extraEntropy:se}=F;z==null&&(z=!0),S=Qe("msgHash",S),$l(F),Q&&(S=Qe("prehashed msgHash",T(S)));const le=A(S),q=d(N),H=[j(q),j(le)];if(se!=null&&se!==!1){const ze=se===!0?U(n.BYTES):se;H.push(Qe("extraEntropy",ze))}const Z=qo(...H),te=le;function Ue(ze){const Pe=E(ze);if(!h(Pe))return;const en=l(Pe),vt=u.BASE.multiply(Pe).toAffine(),ct=c(vt.x);if(ct===_t)return;const Dt=c(en*c(te+ct*q));if(Dt===_t)return;let Ft=(vt.x===ct?0:2)|Number(vt.y&be),xt=Dt;return z&&p(Dt)&&(xt=m(Dt),Ft^=1),new y(ct,xt,Ft)}return{seed:Z,k2sig:Ue}}const _={lowS:t.lowS,prehash:!1},R={lowS:t.lowS,prehash:!1};function P(S,N,F=_){const{seed:T,k2sig:U}=O(S,N,F),z=t;return Kb(z.hash.outputLen,z.nByteLength,z.hmac)(T,U)}u.BASE._setWindowSize(8);function $(S,N,F,T=R){var Ft;const U=S;N=Qe("msgHash",N),F=Qe("publicKey",F);const{lowS:z,prehash:Q,format:se}=T;if($l(T),"strict"in T)throw new Error("options.strict was renamed to lowS");if(se!==void 0&&se!=="compact"&&se!=="der")throw new Error("format must be compact or der");const le=typeof U=="string"||to(U),q=!le&&!se&&typeof U=="object"&&U!==null&&typeof U.r=="bigint"&&typeof U.s=="bigint";if(!le&&!q)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let H,Z;try{if(q&&(H=new y(U.r,U.s)),le){try{se!=="compact"&&(H=y.fromDER(U))}catch(xt){if(!(xt instanceof St.Err))throw xt}!H&&se!=="der"&&(H=y.fromCompact(U))}Z=u.fromHex(F)}catch{return!1}if(!H||z&&H.hasHighS())return!1;Q&&(N=t.hash(N));const{r:te,s:Ue}=H,ze=A(N),Pe=l(Ue),en=c(ze*Pe),vt=c(te*Pe),ct=(Ft=u.BASE.multiplyAndAddUnsafe(Z,en,vt))==null?void 0:Ft.toAffine();return ct?c(ct.x)===te:!1}return{CURVE:t,getPublicKey:w,getSharedSecret:x,sign:P,verify:$,ProjectivePoint:u,Signature:y,utils:C}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function gw(e){return{hash:e,hmac:(t,...n)=>f0(e,t,G1(...n)),randomBytes:Q1}}function yw(e,t){const n=r=>bw({...e,...gw(r)});return{...n(t),create:n}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),ql=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),ww=BigInt(0),vw=BigInt(1),ia=BigInt(2),Hl=(e,t)=>(e+t/ia)/t;function xw(e){const t=_0,n=BigInt(3),r=BigInt(6),o=BigInt(11),s=BigInt(22),i=BigInt(23),a=BigInt(44),c=BigInt(88),l=e*e*e%t,u=l*l*e%t,d=Ge(u,n,t)*u%t,f=Ge(d,n,t)*u%t,h=Ge(f,ia,t)*l%t,p=Ge(h,o,t)*h%t,m=Ge(p,s,t)*p%t,g=Ge(m,a,t)*m%t,y=Ge(g,c,t)*g%t,C=Ge(y,a,t)*m%t,w=Ge(C,n,t)*u%t,v=Ge(w,i,t)*p%t,x=Ge(v,r,t)*l%t,E=Ge(x,ia,t);if(!aa.eql(aa.sqr(E),e))throw new Error("Cannot find square root");return E}const aa=pc(_0,void 0,void 0,{sqrt:xw}),P0=yw({a:ww,b:BigInt(7),Fp:aa,n:ql,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=ql,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-vw*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=n,i=BigInt("0x100000000000000000000000000000000"),a=Hl(s*e,t),c=Hl(-r*e,t);let l=Te(e-a*n-c*o,t),u=Te(-a*r-c*s,t);const d=l>i,f=u>i;if(d&&(l=t-l),f&&(u=t-u),l>i||u>i)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:d,k1:l,k2neg:f,k2:u}}}},Qf),Cw=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:P0},Symbol.toStringTag,{value:"Module"}));function T0(e,t={}){const{recovered:n}=t;if(typeof e.r>"u")throw new oi({signature:e});if(typeof e.s>"u")throw new oi({signature:e});if(n&&typeof e.yParity>"u")throw new oi({signature:e});if(e.r<0n||e.r>Dl)throw new Sw({value:e.r});if(e.s<0n||e.s>Dl)throw new _w({value:e.s});if(typeof e.yParity=="number"&&e.yParity!==0&&e.yParity!==1)throw new bc({value:e.yParity})}function Aw(e){return O0(it(e))}function O0(e){if(e.length!==130&&e.length!==132)throw new jw({signature:e});const t=BigInt(mt(e,0,32)),n=BigInt(mt(e,32,64)),r=(()=>{const o=+`0x${e.slice(130)}`;if(!Number.isNaN(o))try{return mc(o)}catch{throw new bc({value:o})}})();return typeof r>"u"?{r:t,s:n}:{r:t,s:n,yParity:r}}function Ew(e){if(!(typeof e.r>"u")&&!(typeof e.s>"u"))return Iw(e)}function Iw(e){const t=typeof e=="string"?O0(e):e instanceof Uint8Array?Aw(e):typeof e.r=="string"?Bw(e):e.v?kw(e):{r:e.r,s:e.s,...typeof e.yParity<"u"?{yParity:e.yParity}:{}};return T0(t),t}function kw(e){return{r:e.r,s:e.s,yParity:mc(e.v)}}function Bw(e){const t=(()=>{const n=e.v?Number(e.v):void 0;let r=e.yParity?Number(e.yParity):void 0;if(typeof n=="number"&&typeof r!="number"&&(r=mc(n)),typeof r!="number")throw new bc({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function mc(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new Pw({value:e})}class jw extends Y{constructor({signature:t}){super(`Value \`${t}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${Ve(vg(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class oi extends Y{constructor({signature:t}){super(`Signature \`${pf(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class Sw extends Y{constructor({value:t}){super(`Value \`${t}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class _w extends Y{constructor({value:t}){super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class bc extends Y{constructor({value:t}){super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class Pw extends Y{constructor({value:t}){super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}function Tw(e,t={}){return typeof e.chainId=="string"?Ow(e):{...e,...t.signature}}function Ow(e){const{address:t,chainId:n,nonce:r}=e,o=Ew(e);return{address:t,chainId:Number(n),nonce:BigInt(r),...o}}const Rw="0x8010801080108010801080108010801080108010801080108010801080108010",Mw=b0("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function R0(e){if(typeof e=="string"){if(mt(e,-32)!==Rw)throw new Fw(e)}else T0(e.authorization)}function Nw(e){R0(e);const t=wf(mt(e,-64,-32)),n=mt(e,-t-64,-64),r=mt(e,0,-t-64),[o,s,i]=Qy(Mw,n);return{authorization:Tw({address:o.delegation,chainId:Number(o.chainId),nonce:o.nonce,yParity:o.yParity,r:o.r,s:o.s}),signature:r,...i&&i!=="0x"?{data:i,to:s}:{}}}function Dw(e){try{return R0(e),!0}catch{return!1}}let Fw=class extends Y{constructor(t){super(`Value \`${t}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}};function Lw(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function Uw(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?rt(e.nonce):void 0,storageProof:e.storageProof?Lw(e.storageProof):void 0}}async function zw(e,{address:t,blockNumber:n,blockTag:r,storageKeys:o}){const s=r??"latest",i=n!==void 0?D(n):void 0,a=await e.request({method:"eth_getProof",params:[t,o,i||s]});return Uw(a)}async function Ww(e,{address:t,blockNumber:n,blockTag:r="latest",slot:o}){const s=n!==void 0?D(n):void 0;return await e.request({method:"eth_getStorageAt",params:[t,o,s||r]})}async function gc(e,{blockHash:t,blockNumber:n,blockTag:r,hash:o,index:s,sender:i,nonce:a}){var f,h,p;const c=r||"latest",l=n!==void 0?D(n):void 0;let u=null;if(o?u=await e.request({method:"eth_getTransactionByHash",params:[o]},{dedupe:!0}):t?u=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,D(s)]},{dedupe:!0}):typeof s=="number"?u=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[l||c,D(s)]},{dedupe:!!l}):i&&typeof a=="number"&&(u=await e.request({method:"eth_getTransactionBySenderAndNonce",params:[i,D(a)]},{dedupe:!0})),!u)throw new nf({blockHash:t,blockNumber:n,blockTag:c,hash:o,index:s});return(((p=(h=(f=e.chain)==null?void 0:f.formatters)==null?void 0:h.transaction)==null?void 0:p.format)||co)(u,"getTransaction")}async function $w(e,{hash:t,transactionReceipt:n}){const[r,o]=await Promise.all([G(e,lo,"getBlockNumber")({}),t?G(e,gc,"getTransaction")({hash:t}):void 0]),s=(n==null?void 0:n.blockNumber)||(o==null?void 0:o.blockNumber);return s?r-s+1n:0n}async function Mo(e,{hash:t}){var o,s,i;const n=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!n)throw new rf({hash:t});return(((i=(s=(o=e.chain)==null?void 0:o.formatters)==null?void 0:s.transactionReceipt)==null?void 0:i.format)||cc)(n,"getTransactionReceipt")}async function M0(e,t){var C;const{account:n,authorizationList:r,allowFailure:o=!0,blockNumber:s,blockOverrides:i,blockTag:a,stateOverride:c}=t,l=t.contracts,{batchSize:u=t.batchSize??1024,deployless:d=t.deployless??!1}=typeof((C=e.batch)==null?void 0:C.multicall)=="object"?e.batch.multicall:{},f=(()=>{if(t.multicallAddress)return t.multicallAddress;if(d)return null;if(e.chain)return Yn({blockNumber:s,chain:e.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),h=[[]];let p=0,m=0;for(let w=0;w<l.length;w++){const{abi:v,address:x,args:E,functionName:A}=l[w];try{const k=Ze({abi:v,args:E,functionName:A});m+=(k.length-2)/2,u>0&&m>u&&h[p].length>0&&(p++,m=(k.length-2)/2,h[p]=[]),h[p]=[...h[p],{allowFailure:!0,callData:k,target:x}]}catch(k){const j=qn(k,{abi:v,address:x,args:E,docsPath:"/docs/contract/multicall",functionName:A,sender:n});if(!o)throw j;h[p]=[...h[p],{allowFailure:!0,callData:"0x",target:x}]}}const g=await Promise.allSettled(h.map(w=>G(e,Je,"readContract")({...f===null?{code:Ha}:{address:f},abi:Ln,account:n,args:[w],authorizationList:r,blockNumber:s,blockOverrides:i,blockTag:a,functionName:"aggregate3",stateOverride:c}))),y=[];for(let w=0;w<g.length;w++){const v=g[w];if(v.status==="rejected"){if(!o)throw v.reason;for(let E=0;E<h[w].length;E++)y.push({status:"failure",error:v.reason,result:void 0});continue}const x=v.value;for(let E=0;E<x.length;E++){const{returnData:A,success:k}=x[E],{callData:j}=h[w][E],{abi:O,address:_,functionName:R,args:P}=l[y.length];try{if(j==="0x")throw new Yr;if(!k)throw new ms({data:A});const $=Xt({abi:O,args:P,data:A,functionName:R});y.push(o?{result:$,status:"success"}:$)}catch($){const S=qn($,{abi:O,address:_,args:P,docsPath:"/docs/contract/multicall",functionName:R});if(!o)throw S;y.push({error:S,result:void 0,status:"failure"})}}}if(y.length!==l.length)throw new M("multicall results mismatch");return y}async function ca(e,t){const{blockNumber:n,blockTag:r=e.experimental_blockTag??"latest",blocks:o,returnFullTransactions:s,traceTransfers:i,validation:a}=t;try{const c=[];for(const f of o){const h=f.blockOverrides?Cf(f.blockOverrides):void 0,p=f.calls.map(g=>{const y=g,C=y.account?_e(y.account):void 0,w=y.abi?Ze(y):y.data,v={...y,account:C,data:y.dataSuffix?gt([w||"0x",y.dataSuffix]):w,from:y.from??(C==null?void 0:C.address)};return Zn(v),so(v)}),m=f.stateOverrides?Qa(f.stateOverrides):void 0;c.push({blockOverrides:h,calls:p,stateOverrides:m})}const u=(typeof n=="bigint"?D(n):void 0)||r;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:c,returnFullTransactions:s,traceTransfers:i,validation:a},u]})).map((f,h)=>({...Za(f),calls:f.calls.map((p,m)=>{var O,_;const{abi:g,args:y,functionName:C,to:w}=o[h].calls[m],v=((O=p.error)==null?void 0:O.data)??p.returnData,x=BigInt(p.gasUsed),E=(_=p.logs)==null?void 0:_.map(R=>yt(R)),A=p.status==="0x1"?"success":"failure",k=g&&A==="success"&&v!=="0x"?Xt({abi:g,data:v,functionName:C}):null,j=(()=>{if(A==="success")return;let R;if(v==="0x"?R=new Yr:v&&(R=new ms({data:v})),!!R)return qn(R,{abi:g??[],address:w??"0x",args:y,functionName:C??"<unknown>"})})();return{data:v,gasUsed:x,logs:E,status:A,...A==="success"?{result:k}:{error:j}}})}))}catch(c){const l=c,u=vs(l,{});throw u instanceof oo?l:u}}function la(e){let t=!0,n="",r=0,o="",s=!1;for(let i=0;i<e.length;i++){const a=e[i];if(["(",")",","].includes(a)&&(t=!0),a==="("&&r++,a===")"&&r--,!!t){if(r===0){if(a===" "&&["event","function","error",""].includes(o))o="";else if(o+=a,a===")"){s=!0;break}continue}if(a===" "){e[i-1]!==","&&n!==","&&n!==",("&&(n="",t=!1);continue}o+=a,n+=a}}if(!s)throw new Y("Unable to normalize signature.");return o}function ua(e,t){const n=typeof e,r=t.type;switch(r){case"address":return ta(e,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return r==="tuple"&&"components"in t?Object.values(t.components).every((o,s)=>ua(Object.values(e)[s],o)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)?Array.isArray(e)&&e.every(o=>ua(o,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function N0(e,t,n){for(const r in e){const o=e[r],s=t[r];if(o.type==="tuple"&&s.type==="tuple"&&"components"in o&&"components"in s)return N0(o.components,s.components,n[r]);const i=[o.type,s.type];if(i.includes("address")&&i.includes("bytes20")?!0:i.includes("address")&&i.includes("string")?ta(n[r],{strict:!1}):i.includes("address")&&i.includes("bytes")?ta(n[r],{strict:!1}):!1)return i}}function D0(e,t={}){const{prepare:n=!0}=t,r=Array.isArray(e)||typeof e=="string"?pl(e):e;return{...r,...n?{hash:Rn(r)}:{}}}function js(e,t,n){const{args:r=[],prepare:o=!0}=n??{},s=xg(t,{strict:!1}),i=e.filter(l=>s?l.type==="function"||l.type==="error"?F0(l)===mt(t,0,4):l.type==="event"?Rn(l)===t:!1:"name"in l&&l.name===t);if(i.length===0)throw new Go({name:t});if(i.length===1)return{...i[0],...o?{hash:Rn(i[0])}:{}};let a;for(const l of i){if(!("inputs"in l))continue;if(!r||r.length===0){if(!l.inputs||l.inputs.length===0)return{...l,...o?{hash:Rn(l)}:{}};continue}if(!l.inputs||l.inputs.length===0||l.inputs.length!==r.length)continue;if(r.every((d,f)=>{const h="inputs"in l&&l.inputs[f];return h?ua(d,h):!1})){if(a&&"inputs"in a&&a.inputs){const d=N0(l.inputs,a.inputs,r);if(d)throw new Hw({abiItem:l,type:d[0]},{abiItem:a,type:d[1]})}a=l}}const c=(()=>{if(a)return a;const[l,...u]=i;return{...l,overloads:u}})();if(!c)throw new Go({name:t});return{...c,...o?{hash:Rn(c)}:{}}}function F0(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,r]=e;return js(n,r)}return e[0]})();return mt(Rn(t),0,4)}function qw(...e){const t=(()=>{if(Array.isArray(e[0])){const[r,o]=e;return js(r,o)}return e[0]})(),n=typeof t=="string"?t:Wo(t);return la(n)}function Rn(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,r]=e;return js(n,r)}return e[0]})();return typeof t!="string"&&"hash"in t&&t.hash?t.hash:h0(qa(qw(t)))}class Hw extends Y{constructor(t,n){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${la(Wo(t.abiItem))}\`, and`,`\`${n.type}\` in \`${la(Wo(n.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class Go extends Y{constructor({name:t,data:n,type:r="item"}){const o=t?` with name "${t}"`:n?` with data "${n}"`:"";super(`ABI ${r}${o} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}function Vw(...e){var s;const[t,n]=(()=>{if(Array.isArray(e[0])){const[i,a]=e;return[Qw(i),a]}return e})(),{bytecode:r,args:o}=n;return st(r,(s=t.inputs)!=null&&s.length&&(o!=null&&o.length)?fc(t.inputs,o):"0x")}function Gw(e){return D0(e)}function Qw(e){const t=e.find(n=>n.type==="constructor");if(!t)throw new Go({name:"constructor"});return t}function Kw(...e){const[t,n=[]]=(()=>{if(Array.isArray(e[0])){const[l,u,d]=e;return[Vl(l,u,{args:d}),d]}const[a,c]=e;return[a,c]})(),{overloads:r}=t,o=r?Vl([t,...r],t.name,{args:n}):t,s=Jw(o),i=n.length>0?fc(o.inputs,n):void 0;return i?st(s,i):s}function In(e,t={}){return D0(e,t)}function Vl(e,t,n){const r=js(e,t,n);if(r.type!=="function")throw new Go({name:t,type:"function"});return r}function Jw(e){return F0(e)}const Yw="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",et="0x0000000000000000000000000000000000000000",Zw="0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";async function Xw(e,t){const{blockNumber:n,blockTag:r,calls:o,stateOverrides:s,traceAssetChanges:i,traceTransfers:a,validation:c}=t,l=t.account?_e(t.account):void 0;if(i&&!l)throw new M("`account` is required when `traceAssetChanges` is true");const u=l?Vw(Gw("constructor(bytes, bytes)"),{bytecode:Af,args:[Zw,Kw(In("function getBalance(address)"),[l.address])]}):void 0,d=i?await Promise.all(t.calls.map(async T=>{if(!T.data&&!T.abi)return;const{accessList:U}=await Of(e,{account:l.address,...T,data:T.abi?Ze(T):T.data});return U.map(({address:z,storageKeys:Q})=>Q.length>0?z:null)})).then(T=>T.flat().filter(Boolean)):[],f=await ca(e,{blockNumber:n,blockTag:r,blocks:[...i?[{calls:[{data:u}],stateOverrides:s},{calls:d.map((T,U)=>({abi:[In("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[l.address],to:T,from:et,nonce:U})),stateOverrides:[{address:et,nonce:0}]}]:[],{calls:[...o,{to:et}].map(T=>({...T,from:l==null?void 0:l.address})),stateOverrides:s},...i?[{calls:[{data:u}]},{calls:d.map((T,U)=>({abi:[In("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[l.address],to:T,from:et,nonce:U})),stateOverrides:[{address:et,nonce:0}]},{calls:d.map((T,U)=>({to:T,abi:[In("function decimals() returns (uint256)")],functionName:"decimals",from:et,nonce:U})),stateOverrides:[{address:et,nonce:0}]},{calls:d.map((T,U)=>({to:T,abi:[In("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:et,nonce:U})),stateOverrides:[{address:et,nonce:0}]},{calls:d.map((T,U)=>({to:T,abi:[In("function symbol() returns (string)")],functionName:"symbol",from:et,nonce:U})),stateOverrides:[{address:et,nonce:0}]}]:[]],traceTransfers:a,validation:c}),h=i?f[2]:f[0],[p,m,,g,y,C,w,v]=i?f:[],{calls:x,...E}=h,A=x.slice(0,-1)??[],k=(p==null?void 0:p.calls)??[],j=(m==null?void 0:m.calls)??[],O=[...k,...j].map(T=>T.status==="success"?ke(T.data):null),_=(g==null?void 0:g.calls)??[],R=(y==null?void 0:y.calls)??[],P=[..._,...R].map(T=>T.status==="success"?ke(T.data):null),$=((C==null?void 0:C.calls)??[]).map(T=>T.status==="success"?T.result:null),S=((v==null?void 0:v.calls)??[]).map(T=>T.status==="success"?T.result:null),N=((w==null?void 0:w.calls)??[]).map(T=>T.status==="success"?T.result:null),F=[];for(const[T,U]of P.entries()){const z=O[T];if(typeof U!="bigint"||typeof z!="bigint")continue;const Q=$[T-1],se=S[T-1],le=N[T-1],q=T===0?{address:Yw,decimals:18,symbol:"ETH"}:{address:d[T-1],decimals:le||Q?Number(Q??1):void 0,symbol:se??void 0};F.some(H=>H.token.address===q.address)||F.push({token:q,value:{pre:z,post:U,diff:U-z}})}return{assetChanges:F,block:E,results:A}}async function ev(e,t){var u;const{abi:n,address:r,args:o,functionName:s,dataSuffix:i=typeof e.dataSuffix=="string"?e.dataSuffix:(u=e.dataSuffix)==null?void 0:u.value,...a}=t,c=a.account?_e(a.account):e.account,l=Ze({abi:n,args:o,functionName:s});try{const{data:d}=await G(e,io,"call")({batch:!1,data:`${l}${i?i.replace("0x",""):""}`,to:r,...a,account:c}),f=Xt({abi:n,args:o,functionName:s,data:d||"0x"}),h=n.filter(p=>"name"in p&&p.name===t.functionName);return{result:f,request:{abi:h,address:r,args:o,dataSuffix:i,functionName:s,...a,account:c}}}catch(d){throw qn(d,{abi:n,address:r,args:o,docsPath:"/docs/contract/simulateContract",functionName:s,sender:c==null?void 0:c.address})}}async function Ss(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}const L0="0x6492649264926492649264926492649264926492649264926492649264926492";function tv(e){if(mt(e,-32)!==L0)throw new ov(e)}function nv(e){const{data:t,signature:n,to:r}=e;return st(fc(b0("address, bytes, bytes"),[r,t,n]),L0)}function rv(e){try{return tv(e),!0}catch{return!1}}class ov extends Y{constructor(t){super(`Value \`${t}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}function sv({r:e,s:t,to:n="hex",v:r,yParity:o}){const s=(()=>{if(o===0||o===1)return o;if(r&&(r===27n||r===28n||r>=35n))return r%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),i=`0x${new P0.Signature(ke(e),ke(t)).toCompactHex()}${s===0?"1b":"1c"}`;return n==="hex"?i:ot(i)}async function _s(e,t){var l,u,d,f;const{address:n,chain:r=e.chain,hash:o,erc6492VerifierAddress:s=t.universalSignatureVerifierAddress??((u=(l=r==null?void 0:r.contracts)==null?void 0:l.erc6492Verifier)==null?void 0:u.address),multicallAddress:i=t.multicallAddress??((f=(d=r==null?void 0:r.contracts)==null?void 0:d.multicall3)==null?void 0:f.address),mode:a="auto"}=t;if(r!=null&&r.verifyHash)return await r.verifyHash(e,t);const c=(()=>{const h=t.signature;return bt(h)?h:typeof h=="object"&&"r"in h&&"s"in h?sv(h):de(h)})();try{if(a==="eoa")try{if($r(me(n),await Zi({hash:o,signature:c})))return!0}catch{}return Dw(c)?await iv(e,{...t,multicallAddress:i,signature:c}):await av(e,{...t,verifierAddress:s,signature:c})}catch(h){if(a!=="eoa")try{if($r(me(n),await Zi({hash:o,signature:c})))return!0}catch{}if(h instanceof mn)return!1;throw h}}async function iv(e,t){var g;const{address:n,blockNumber:r,blockTag:o,hash:s,multicallAddress:i}=t,{authorization:a,data:c,signature:l,to:u}=Nw(t.signature);if(await Ho(e,{address:n,blockNumber:r,blockTag:o})===at(["0xef0100",a.address]))return await cv(e,{address:n,blockNumber:r,blockTag:o,hash:s,signature:l});const f={address:a.address,chainId:Number(a.chainId),nonce:Number(a.nonce),r:D(a.r,{size:32}),s:D(a.s,{size:32}),yParity:a.yParity};if(!await ty({address:n,authorization:f}))throw new mn;const p=await G(e,Je,"readContract")({...i?{address:i}:{code:Ha},authorizationList:[f],abi:Ln,blockNumber:r,blockTag:"pending",functionName:"aggregate3",args:[[...c?[{allowFailure:!0,target:u??n,callData:c}]:[],{allowFailure:!0,target:n,callData:Ze({abi:bd,functionName:"isValidSignature",args:[s,l]})}]]}),m=(g=p[p.length-1])==null?void 0:g.returnData;if(m!=null&&m.startsWith("0x1626ba7e"))return!0;throw new mn}async function av(e,t){const{address:n,factory:r,factoryData:o,hash:s,signature:i,verifierAddress:a,...c}=t,l=await(async()=>!r&&!o||rv(i)?i:nv({data:o,signature:i,to:r}))(),u=a?{to:a,data:Ze({abi:Yc,functionName:"isValidSig",args:[n,s,l]}),...c}:{data:Va({abi:Yc,args:[n,s,l],bytecode:Bg}),...c},{data:d}=await G(e,io,"call")(u).catch(f=>{throw f instanceof of?new mn:f});if(x1(d??"0x0"))return!0;throw new mn}async function cv(e,t){const{address:n,blockNumber:r,blockTag:o,hash:s,signature:i}=t;if((await G(e,Je,"readContract")({address:n,abi:bd,args:[s,i],blockNumber:r,blockTag:o,functionName:"isValidSignature"}).catch(c=>{throw c instanceof Da?new mn:c})).startsWith("0x1626ba7e"))return!0;throw new mn}class mn extends Error{}async function lv(e,{address:t,message:n,factory:r,factoryData:o,signature:s,...i}){const a=i0(n);return G(e,_s,"verifyHash")({address:t,factory:r,factoryData:o,hash:a,signature:s,...i})}async function uv(e,t){const{address:n,factory:r,factoryData:o,signature:s,message:i,primaryType:a,types:c,domain:l,...u}=t,d=yy({message:i,primaryType:a,types:c,domain:l});return G(e,_s,"verifyHash")({address:n,factory:r,factoryData:o,hash:d,signature:s,...u})}const si=new Map,Gl=new Map;let dv=0;function Yt(e,t,n){const r=++dv,o=()=>si.get(e)||[],s=()=>{const u=o();si.set(e,u.filter(d=>d.id!==r))},i=()=>{const u=o();if(!u.some(f=>f.id===r))return;const d=Gl.get(e);if(u.length===1&&d){const f=d();f instanceof Promise&&f.catch(()=>{})}s()},a=o();if(si.set(e,[...a,{id:r,fns:t}]),a&&a.length>0)return i;const c={};for(const u in t)c[u]=((...d)=>{var h,p;const f=o();if(f.length!==0)for(const m of f)(p=(h=m.fns)[u])==null||p.call(h,...d)});const l=n(c);return typeof l=="function"&&Gl.set(e,l),i}function fo(e,{emitOnBegin:t,initialWaitTime:n,interval:r}){let o=!0;const s=()=>o=!1;return(async()=>{let a;t&&(a=await e({unpoll:s}));const c=await(n==null?void 0:n(a))??r;await ea(c);const l=async()=>{o&&(await e({unpoll:s}),await ea(r),l())};l()})(),s}function U0(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:r,onError:o,poll:s,pollingInterval:i=e.pollingInterval}){const a=typeof s<"u"?s:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc"));let c;return a?(()=>{const d=ve(["watchBlockNumber",e.uid,t,n,i]);return Yt(d,{onBlockNumber:r,onError:o},f=>fo(async()=>{var h;try{const p=await G(e,lo,"getBlockNumber")({cacheTime:0});if(c!==void 0){if(p===c)return;if(p-c>1&&n)for(let m=c+1n;m<p;m++)f.onBlockNumber(m,c),c=m}(c===void 0||p>c)&&(f.onBlockNumber(p,c),c=p)}catch(p){(h=f.onError)==null||h.call(f,p)}},{emitOnBegin:t,interval:i}))})():(()=>{const d=ve(["watchBlockNumber",e.uid,t,n]);return Yt(d,{onBlockNumber:r,onError:o},f=>{let h=!0,p=()=>h=!1;return(async()=>{try{const m=(()=>{if(e.transport.type==="fallback"){const y=e.transport.transports.find(C=>C.config.type==="webSocket"||C.config.type==="ipc");return y?y.value:e.transport}return e.transport})(),{unsubscribe:g}=await m.subscribe({params:["newHeads"],onData(y){var w;if(!h)return;const C=ke((w=y.result)==null?void 0:w.number);f.onBlockNumber(C,c),c=C},onError(y){var C;(C=f.onError)==null||C.call(f,y)}});p=g,h||p()}catch(m){o==null||o(m)}})(),()=>p()})})()}async function fv(e,t){const{checkReplacement:n=!0,confirmations:r=1,hash:o,onReplaced:s,retryCount:i=6,retryDelay:a=({count:x})=>~~(1<<x)*200,timeout:c=18e4}=t,l=ve(["waitForTransactionReceipt",e.uid,o]),u=(()=>{var x;return t.pollingInterval?t.pollingInterval:(x=e.chain)!=null&&x.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval})();let d,f,h,p=!1,m,g;const{promise:y,resolve:C,reject:w}=If(),v=c?setTimeout(()=>{g==null||g(),m==null||m(),w(new Rb({hash:o}))},c):void 0;return m=Yt(l,{onReplaced:s,resolve:C,reject:w},async x=>{if(h=await G(e,Mo,"getTransactionReceipt")({hash:o}).catch(()=>{}),h&&r<=1){clearTimeout(v),x.resolve(h),m==null||m();return}g=G(e,U0,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:u,async onBlockNumber(E){const A=j=>{clearTimeout(v),g==null||g(),j(),m==null||m()};let k=E;if(!p)try{if(h){if(r>1&&(!h.blockNumber||k-h.blockNumber+1n<r))return;A(()=>x.resolve(h));return}if(n&&!d&&(p=!0,await Hn(async()=>{d=await G(e,gc,"getTransaction")({hash:o}),d.blockNumber&&(k=d.blockNumber)},{delay:a,retryCount:i}),p=!1),h=await G(e,Mo,"getTransactionReceipt")({hash:o}),r>1&&(!h.blockNumber||k-h.blockNumber+1n<r))return;A(()=>x.resolve(h))}catch(j){if(j instanceof nf||j instanceof rf){if(!d){p=!1;return}try{f=d,p=!0;const O=await Hn(()=>G(e,tt,"getBlock")({blockNumber:k,includeTransactions:!0}),{delay:a,retryCount:i,shouldRetry:({error:P})=>P instanceof zf});p=!1;const _=O.transactions.find(({from:P,nonce:$})=>P===f.from&&$===f.nonce);if(!_||(h=await G(e,Mo,"getTransactionReceipt")({hash:_.hash}),r>1&&(!h.blockNumber||k-h.blockNumber+1n<r)))return;let R="replaced";_.to===f.to&&_.value===f.value&&_.input===f.input?R="repriced":_.from===_.to&&_.value===0n&&(R="cancelled"),A(()=>{var P;(P=x.onReplaced)==null||P.call(x,{reason:R,replacedTransaction:f,transaction:_,transactionReceipt:h}),x.resolve(h)})}catch(O){A(()=>x.reject(O))}}else A(()=>x.reject(j))}}})}),y}function hv(e,{blockTag:t=e.experimental_blockTag??"latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:o,onError:s,includeTransactions:i,poll:a,pollingInterval:c=e.pollingInterval}){const l=typeof a<"u"?a:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),u=i??!1;let d;return l?(()=>{const p=ve(["watchBlocks",e.uid,t,n,r,u,c]);return Yt(p,{onBlock:o,onError:s},m=>fo(async()=>{var g;try{const y=await G(e,tt,"getBlock")({blockTag:t,includeTransactions:u});if(y.number!==null&&(d==null?void 0:d.number)!=null){if(y.number===d.number)return;if(y.number-d.number>1&&n)for(let C=(d==null?void 0:d.number)+1n;C<y.number;C++){const w=await G(e,tt,"getBlock")({blockNumber:C,includeTransactions:u});m.onBlock(w,d),d=w}}((d==null?void 0:d.number)==null||t==="pending"&&(y==null?void 0:y.number)==null||y.number!==null&&y.number>d.number)&&(m.onBlock(y,d),d=y)}catch(y){(g=m.onError)==null||g.call(m,y)}},{emitOnBegin:r,interval:c}))})():(()=>{let p=!0,m=!0,g=()=>p=!1;return(async()=>{try{r&&G(e,tt,"getBlock")({blockTag:t,includeTransactions:u}).then(w=>{p&&m&&(o(w,void 0),m=!1)}).catch(s);const y=(()=>{if(e.transport.type==="fallback"){const w=e.transport.transports.find(v=>v.config.type==="webSocket"||v.config.type==="ipc");return w?w.value:e.transport}return e.transport})(),{unsubscribe:C}=await y.subscribe({params:["newHeads"],async onData(w){var x;if(!p)return;const v=await G(e,tt,"getBlock")({blockNumber:(x=w.result)==null?void 0:x.number,includeTransactions:u}).catch(()=>{});p&&(o(v,d),m=!1,d=v)},onError(w){s==null||s(w)}});g=C,p||g()}catch(y){s==null||s(y)}})(),()=>g()})()}function pv(e,t){const{abi:n,address:r,args:o,batch:s=!0,eventName:i,fromBlock:a,onError:c,onLogs:l,poll:u,pollingInterval:d=e.pollingInterval,strict:f}=t;return(typeof u<"u"?u:typeof a=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")))?(()=>{const g=f??!1,y=ve(["watchContractEvent",r,o,s,e.uid,i,d,g,a]);return Yt(y,{onLogs:l,onError:c},C=>{let w;a!==void 0&&(w=a-1n);let v,x=!1;const E=fo(async()=>{var A;if(!x){try{v=await G(e,Rf,"createContractEventFilter")({abi:n,address:r,args:o,eventName:i,strict:g,fromBlock:a})}catch{}x=!0;return}try{let k;if(v)k=await G(e,Es,"getFilterChanges")({filter:v});else{const j=await G(e,lo,"getBlockNumber")({});w&&w<j?k=await G(e,s0,"getContractEvents")({abi:n,address:r,args:o,eventName:i,fromBlock:w+1n,toBlock:j,strict:g}):k=[],w=j}if(k.length===0)return;if(s)C.onLogs(k);else for(const j of k)C.onLogs([j])}catch(k){v&&k instanceof Kt&&(x=!1),(A=C.onError)==null||A.call(C,k)}},{emitOnBegin:!0,interval:d});return async()=>{v&&await G(e,Ss,"uninstallFilter")({filter:v}),E()}})})():(()=>{const g=f??!1,y=ve(["watchContractEvent",r,o,s,e.uid,i,d,g]);let C=!0,w=()=>C=!1;return Yt(y,{onLogs:l,onError:c},v=>((async()=>{try{const x=(()=>{if(e.transport.type==="fallback"){const k=e.transport.transports.find(j=>j.config.type==="webSocket"||j.config.type==="ipc");return k?k.value:e.transport}return e.transport})(),E=i?ao({abi:n,eventName:i,args:o}):[],{unsubscribe:A}=await x.subscribe({params:["logs",{address:r,topics:E}],onData(k){var O;if(!C)return;const j=k.result;try{const{eventName:_,args:R}=Vo({abi:n,data:j.data,topics:j.topics,strict:f}),P=yt(j,{args:R,eventName:_});v.onLogs([P])}catch(_){let R,P;if(_ instanceof zo||_ instanceof ka){if(f)return;R=_.abiItem.name,P=(O=_.abiItem.inputs)==null?void 0:O.some(S=>!("name"in S&&S.name))}const $=yt(j,{args:P?[]:{},eventName:R});v.onLogs([$])}},onError(k){var j;(j=v.onError)==null||j.call(v,k)}});w=A,C||w()}catch(x){c==null||c(x)}})(),()=>w()))})()}function mv(e,{address:t,args:n,batch:r=!0,event:o,events:s,fromBlock:i,onError:a,onLogs:c,poll:l,pollingInterval:u=e.pollingInterval,strict:d}){const f=typeof l<"u"?l:typeof i=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),h=d??!1;return f?(()=>{const g=ve(["watchEvent",t,n,r,e.uid,o,u,i]);return Yt(g,{onLogs:c,onError:a},y=>{let C;i!==void 0&&(C=i-1n);let w,v=!1;const x=fo(async()=>{var E;if(!v){try{w=await G(e,Mf,"createEventFilter")({address:t,args:n,event:o,events:s,strict:h,fromBlock:i})}catch{}v=!0;return}try{let A;if(w)A=await G(e,Es,"getFilterChanges")({filter:w});else{const k=await G(e,lo,"getBlockNumber")({});C&&C!==k?A=await G(e,ic,"getLogs")({address:t,args:n,event:o,events:s,fromBlock:C+1n,toBlock:k}):A=[],C=k}if(A.length===0)return;if(r)y.onLogs(A);else for(const k of A)y.onLogs([k])}catch(A){w&&A instanceof Kt&&(v=!1),(E=y.onError)==null||E.call(y,A)}},{emitOnBegin:!0,interval:u});return async()=>{w&&await G(e,Ss,"uninstallFilter")({filter:w}),x()}})})():(()=>{let g=!0,y=()=>g=!1;return(async()=>{try{const C=(()=>{if(e.transport.type==="fallback"){const E=e.transport.transports.find(A=>A.config.type==="webSocket"||A.config.type==="ipc");return E?E.value:e.transport}return e.transport})(),w=s??(o?[o]:void 0);let v=[];w&&(v=[w.flatMap(A=>ao({abi:[A],eventName:A.name,args:n}))],o&&(v=v[0]));const{unsubscribe:x}=await C.subscribe({params:["logs",{address:t,topics:v}],onData(E){var k;if(!g)return;const A=E.result;try{const{eventName:j,args:O}=Vo({abi:w??[],data:A.data,topics:A.topics,strict:h}),_=yt(A,{args:O,eventName:j});c([_])}catch(j){let O,_;if(j instanceof zo||j instanceof ka){if(d)return;O=j.abiItem.name,_=(k=j.abiItem.inputs)==null?void 0:k.some(P=>!("name"in P&&P.name))}const R=yt(A,{args:_?[]:{},eventName:O});c([R])}},onError(E){a==null||a(E)}});y=x,g||y()}catch(C){a==null||a(C)}})(),()=>y()})()}function bv(e,{batch:t=!0,onError:n,onTransactions:r,poll:o,pollingInterval:s=e.pollingInterval}){return(typeof o<"u"?o:e.transport.type!=="webSocket"&&e.transport.type!=="ipc")?(()=>{const l=ve(["watchPendingTransactions",e.uid,t,s]);return Yt(l,{onTransactions:r,onError:n},u=>{let d;const f=fo(async()=>{var h;try{if(!d)try{d=await G(e,Nf,"createPendingTransactionFilter")({});return}catch(m){throw f(),m}const p=await G(e,Es,"getFilterChanges")({filter:d});if(p.length===0)return;if(t)u.onTransactions(p);else for(const m of p)u.onTransactions([m])}catch(p){(h=u.onError)==null||h.call(u,p)}},{emitOnBegin:!0,interval:s});return async()=>{d&&await G(e,Ss,"uninstallFilter")({filter:d}),f()}})})():(()=>{let l=!0,u=()=>l=!1;return(async()=>{try{const{unsubscribe:d}=await e.transport.subscribe({params:["newPendingTransactions"],onData(f){if(!l)return;const h=f.result;r([h])},onError(f){n==null||n(f)}});u=d,l||u()}catch(d){n==null||n(d)}})(),()=>u()})()}class gv extends M{constructor({docsPath:t}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`
|
|
44
|
+
`),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class RA extends M{constructor({docsPath:t,metaMessages:n,type:r}){super(`Account type "${r}" is not supported.`,{docsPath:t,metaMessages:n,name:"AccountTypeNotSupportedError"})}}async function yv(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}async function wv(e,{serializedTransaction:t,throwOnReceiptRevert:n,timeout:r}){var a,c,l;const o=await e.request({method:"eth_sendRawTransactionSync",params:r?[t,r]:[t]},{retryCount:0}),i=(((l=(c=(a=e.chain)==null?void 0:a.formatters)==null?void 0:c.transactionReceipt)==null?void 0:l.format)||cc)(o);if(i.status==="reverted"&&n)throw new Ob({receipt:i});return i}async function vv(e,{account:t=e.account,message:n}){if(!t)throw new gv({docsPath:"/docs/actions/wallet/signMessage"});const r=_e(t);if(r.signMessage)return r.signMessage({message:n});const o=typeof n=="string"?zn(n):n.raw instanceof Uint8Array?Re(n.raw):n.raw;return e.request({method:"personal_sign",params:[o,r.address]},{retryCount:0})}function er(e,t,n){const r=e[t.name];if(typeof r=="function")return r;const o=e[n];return typeof o=="function"?o:s=>t(e,s)}const No="2.22.1",xv=()=>`@wagmi/core@${No}`;var z0=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Qo,W0;let Nt=class da extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return xv()}constructor(t,n={}){var s;super(),Qo.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});const r=n.cause instanceof da?n.cause.details:(s=n.cause)!=null&&s.message?n.cause.message:n.details,o=n.cause instanceof da&&n.cause.docsPath||n.docsPath;this.message=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: ${this.docsBaseUrl}${o}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join(`
|
|
45
|
+
`),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}walk(t){return z0(this,Qo,"m",W0).call(this,this,t)}};Qo=new WeakSet,W0=function e(t,n){return n!=null&&n(t)?t:t.cause?z0(this,Qo,"m",e).call(this,t.cause,n):t};class Zt extends Nt{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class Cv extends Nt{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class Av extends Nt{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class Ev extends Nt{constructor({address:t,connector:n}){super(`Account "${t}" not found for connector "${n.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class Iv extends Nt{constructor({connectionChainId:t,connectorChainId:n}){super(`The current chain of the connector (id: ${n}) does not match the connection's chain (id: ${t}).`,{metaMessages:[`Current Chain ID: ${n}`,`Expected Chain ID: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class kv extends Nt{constructor({connector:t}){super(`Connector "${t.name}" unavailable while reconnecting.`,{details:["During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`.","All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored.","This error commonly occurs for connectors that asynchronously inject after reconnection has already started."].join(" ")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}async function Bv(e,t){var r;let n;if(typeof t.connector=="function"?n=e._internal.connectors.setup(t.connector):n=t.connector,n.uid===e.state.current)throw new Cv;try{e.setState(a=>({...a,status:"connecting"})),n.emitter.emit("message",{type:"connecting"});const{connector:o,...s}=t,i=await n.connect(s);return n.emitter.off("connect",e._internal.events.connect),n.emitter.on("change",e._internal.events.change),n.emitter.on("disconnect",e._internal.events.disconnect),await((r=e.storage)==null?void 0:r.setItem("recentConnectorId",n.id)),e.setState(a=>({...a,connections:new Map(a.connections).set(n.uid,{accounts:s.withCapabilities?i.accounts.map(c=>typeof c=="object"?c.address:c):i.accounts,chainId:i.chainId,connector:n}),current:n.uid,status:"connected"})),{accounts:s.withCapabilities?i.accounts.map(a=>typeof a=="object"?a:{address:a,capabilities:{}}):i.accounts,chainId:i.chainId}}catch(o){throw e.setState(s=>({...s,status:s.current?"connected":"disconnected"})),o}}const fa=256;let Eo=fa,Io;function $0(e=11){if(!Io||Eo+e>fa*2){Io="",Eo=0;for(let t=0;t<fa;t++)Io+=(256+Math.random()*256|0).toString(16).substring(1)}return Io.substring(Eo,Eo+++e)}function q0(e){const{batch:t,chain:n,ccipRead:r,dataSuffix:o,key:s="base",name:i="Base Client",type:a="base"}=e,c=e.experimental_blockTag??(typeof(n==null?void 0:n.experimental_preconfirmationTime)=="number"?"pending":void 0),l=(n==null?void 0:n.blockTime)??12e3,u=Math.min(Math.max(Math.floor(l/2),500),4e3),d=e.pollingInterval??u,f=e.cacheTime??d,h=e.account?_e(e.account):void 0,{config:p,request:m,value:g}=e.transport({account:h,chain:n,pollingInterval:d}),y={...p,...g},C={account:h,batch:t,cacheTime:f,ccipRead:r,chain:n,dataSuffix:o,key:s,name:i,pollingInterval:d,request:m,transport:y,type:a,uid:$0(),...c?{experimental_blockTag:c}:{}};function w(v){return x=>{const E=x(v);for(const k in C)delete E[k];const A={...v,...E};return Object.assign(A,{extend:w(A)})}}return Object.assign(C,{extend:w(C)})}function jv(e){var d,f,h;const{scheme:t,statement:n,...r}=((d=e.match(Sv))==null?void 0:d.groups)??{},{chainId:o,expirationTime:s,issuedAt:i,notBefore:a,requestId:c,...l}=((f=e.match(_v))==null?void 0:f.groups)??{},u=(h=e.split("Resources:")[1])==null?void 0:h.split(`
|
|
46
|
+
- `).slice(1);return{...r,...l,...o?{chainId:Number(o)}:{},...s?{expirationTime:new Date(s)}:{},...i?{issuedAt:new Date(i)}:{},...a?{notBefore:new Date(a)}:{},...c?{requestId:c}:{},...u?{resources:u}:{},...t?{scheme:t}:{},...n?{statement:n}:{}}}const Sv=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,_v=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;function Pv(e){const{address:t,domain:n,message:r,nonce:o,scheme:s,time:i=new Date}=e;if(n&&r.domain!==n||o&&r.nonce!==o||s&&r.scheme!==s||r.expirationTime&&i>=r.expirationTime||r.notBefore&&i<r.notBefore)return!1;try{if(!r.address||!fe(r.address,{strict:!1})||t&&!$r(r.address,t))return!1}catch{return!1}return!0}async function Tv(e,t){const{address:n,domain:r,message:o,nonce:s,scheme:i,signature:a,time:c=new Date,...l}=t,u=jv(o);if(!u.address||!Pv({address:n,domain:r,message:u,nonce:s,scheme:i,time:c}))return!1;const f=i0(o);return _s(e,{address:u.address,hash:f,signature:a,...l})}function Ov(e){return{call:t=>io(e,t),createAccessList:t=>Of(e,t),createBlockFilter:()=>Kg(e),createContractEventFilter:t=>Rf(e,t),createEventFilter:t=>Mf(e,t),createPendingTransactionFilter:()=>Nf(e),estimateContractGas:t=>B6(e,t),estimateGas:t=>oc(e,t),getBalance:t=>o0(e,t),getBlobBaseFee:()=>j6(e),getBlock:t=>tt(e,t),getBlockNumber:t=>lo(e,t),getBlockTransactionCount:t=>R6(e,t),getBytecode:t=>Ho(e,t),getChainId:()=>rc(e),getCode:t=>Ho(e,t),getContractEvents:t=>s0(e,t),getDelegation:t=>D6(e,t),getEip712Domain:t=>L6(e,t),getEnsAddress:t=>Mg(e,t),getEnsAvatar:t=>Pf(e,t),getEnsName:t=>Tf(e,t),getEnsResolver:t=>Qg(e,t),getEnsText:t=>_f(e,t),getFeeHistory:t=>W6(e,t),estimateFeesPerGas:t=>l6(e,t),getFilterChanges:t=>Es(e,t),getFilterLogs:t=>$6(e,t),getGasPrice:()=>Xa(e),getLogs:t=>ic(e,t),getProof:t=>zw(e,t),estimateMaxPriorityFeePerGas:t=>c6(e,t),fillTransaction:t=>n0(e,t),getStorageAt:t=>Ww(e,t),getTransaction:t=>gc(e,t),getTransactionConfirmations:t=>$w(e,t),getTransactionCount:t=>qf(e,t),getTransactionReceipt:t=>Mo(e,t),multicall:t=>M0(e,t),prepareTransactionRequest:t=>r0(e,t),readContract:t=>Je(e,t),sendRawTransaction:t=>yv(e,t),sendRawTransactionSync:t=>wv(e,t),simulate:t=>ca(e,t),simulateBlocks:t=>ca(e,t),simulateCalls:t=>Xw(e,t),simulateContract:t=>ev(e,t),verifyHash:t=>_s(e,t),verifyMessage:t=>lv(e,t),verifySiweMessage:t=>Tv(e,t),verifyTypedData:t=>uv(e,t),uninstallFilter:t=>Ss(e,t),waitForTransactionReceipt:t=>fv(e,t),watchBlocks:t=>hv(e,t),watchBlockNumber:t=>U0(e,t),watchContractEvent:t=>pv(e,t),watchEvent:t=>mv(e,t),watchPendingTransactions:t=>bv(e,t)}}function H0({key:e,methods:t,name:n,request:r,retryCount:o=3,retryDelay:s=150,timeout:i,type:a},c){const l=$0();return{config:{key:e,methods:t,name:n,request:r,retryCount:o,retryDelay:s,timeout:i,type:a},request:ry(r,{methods:t,retryCount:o,retryDelay:s,uid:l}),value:c}}function Rv(e,t={}){const{key:n="custom",methods:r,name:o="Custom Provider",retryDelay:s}=t;return({retryCount:i})=>H0({key:n,methods:r,name:o,request:e.request.bind(e),retryCount:t.retryCount??i,retryDelay:s,type:"custom"})}class Mv extends M{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function V0(e,t={}){const{batch:n,fetchFn:r,fetchOptions:o,key:s="http",methods:i,name:a="HTTP JSON-RPC",onFetchRequest:c,onFetchResponse:l,retryDelay:u,raw:d}=t;return({chain:f,retryCount:h,timeout:p})=>{const{batchSize:m=1e3,wait:g=0}=typeof n=="object"?n:{},y=t.retryCount??h,C=p??t.timeout??1e4,w=e||(f==null?void 0:f.rpcUrls.default.http[0]);if(!w)throw new Mv;const v=cy(w,{fetchFn:r,fetchOptions:o,onRequest:c,onResponse:l,timeout:C});return H0({key:s,methods:i,name:a,async request({method:x,params:E}){const A={method:x,params:E},{schedule:k}=kf({id:w,wait:g,shouldSplitBatch(R){return R.length>m},fn:R=>v.request({body:R}),sort:(R,P)=>R.id-P.id}),j=async R=>n?k(R):[await v.request({body:R})],[{error:O,result:_}]=await j(A);if(d)return{error:O,result:_};if(O)throw new Ua({body:A,error:O,url:w});return _},retryCount:y,retryDelay:u,timeout:C,type:"http"},{fetchOptions:o,url:w})}}async function Nv(e,t={}){const{assertChainId:n=!0}=t;let r;if(t.connector){const{connector:u}=t;if(e.state.status==="reconnecting"&&!u.getAccounts&&!u.getChainId)throw new kv({connector:u});const[d,f]=await Promise.all([u.getAccounts().catch(h=>{if(t.account===null)return[];throw h}),u.getChainId()]);r={accounts:d,chainId:f,connector:u}}else r=e.state.connections.get(e.state.current);if(!r)throw new Av;const o=t.chainId??r.chainId,s=await r.connector.getChainId();if(n&&s!==o)throw new Iv({connectionChainId:o,connectorChainId:s});const i=r.connector;if(i.getClient)return i.getClient({chainId:o});const a=_e(t.account??r.accounts[0]);if(a&&(a.address=me(a.address)),t.account&&!r.accounts.some(u=>u.toLowerCase()===a.address.toLowerCase()))throw new Ev({address:a.address,connector:i});const c=e.chains.find(u=>u.id===o),l=await r.connector.getProvider({chainId:o});return q0({account:a,chain:c,name:"Connector Client",transport:u=>Rv(l)({...u,retryCount:0})})}async function Dv(e,t={}){var o,s;let n;if(t.connector)n=t.connector;else{const{connections:i,current:a}=e.state,c=i.get(a);n=c==null?void 0:c.connector}const r=e.state.connections;n&&(await n.disconnect(),n.emitter.off("change",e._internal.events.change),n.emitter.off("disconnect",e._internal.events.disconnect),n.emitter.on("connect",e._internal.events.connect),r.delete(n.uid)),e.setState(i=>{if(r.size===0)return{...i,connections:new Map,current:null,status:"disconnected"};const a=r.values().next().value;return{...i,connections:new Map(r),current:a.connector.uid}});{const i=e.state.current;if(!i)return;const a=(o=e.state.connections.get(i))==null?void 0:o.connector;if(!a)return;await((s=e.storage)==null?void 0:s.setItem("recentConnectorId",a.id))}}function G0(e){return typeof e=="number"?e:e==="wei"?0:Math.abs(Ib[e])}function Q0(e){const t=e.state.current,n=e.state.connections.get(t),r=n==null?void 0:n.accounts,o=r==null?void 0:r[0],s=e.chains.find(a=>a.id===(n==null?void 0:n.chainId)),i=e.state.status;switch(i){case"connected":return{address:o,addresses:r,chain:s,chainId:n==null?void 0:n.chainId,connector:n==null?void 0:n.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:i};case"reconnecting":return{address:o,addresses:r,chain:s,chainId:n==null?void 0:n.chainId,connector:n==null?void 0:n.connector,isConnected:!!o,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:i};case"connecting":return{address:o,addresses:r,chain:s,chainId:n==null?void 0:n.chainId,connector:n==null?void 0:n.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:i};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:i}}}async function Fv(e,t){const{allowFailure:n=!0,chainId:r,contracts:o,...s}=t,i=e.getClient({chainId:r});return er(i,M0,"multicall")({allowFailure:n,contracts:o,...s})}function Lv(e,t){const{chainId:n,...r}=t,o=e.getClient({chainId:n});return er(o,Je,"readContract")(r)}async function Uv(e,t){var a;const{allowFailure:n=!0,blockNumber:r,blockTag:o,...s}=t,i=t.contracts;try{const c={};for(const[f,h]of i.entries()){const p=h.chainId??e.state.chainId;c[p]||(c[p]=[]),(a=c[p])==null||a.push({contract:h,index:f})}const l=()=>Object.entries(c).map(([f,h])=>Fv(e,{...s,allowFailure:n,blockNumber:r,blockTag:o,chainId:Number.parseInt(f,10),contracts:h.map(({contract:p})=>p)})),u=(await Promise.all(l())).flat(),d=Object.values(c).flatMap(f=>f.map(({index:h})=>h));return u.reduce((f,h,p)=>(f&&(f[d[p]]=h),f),[])}catch(c){if(c instanceof Da)throw c;const l=()=>i.map(u=>Lv(e,{...u,blockNumber:r,blockTag:o}));return n?(await Promise.allSettled(l())).map(u=>u.status==="fulfilled"?{result:u.value,status:"success"}:{error:u.reason,result:void 0,status:"failure"}):await Promise.all(l())}}async function zv(e,t){const{address:n,blockNumber:r,blockTag:o,chainId:s,token:i,unit:a="ether"}=t;if(i)try{return await Ql(e,{balanceAddress:n,chainId:s,symbolType:"string",tokenAddress:i})}catch(f){if(f.name==="ContractFunctionExecutionError"){const h=await Ql(e,{balanceAddress:n,chainId:s,symbolType:"bytes32",tokenAddress:i}),p=C1(qe(h.symbol,{dir:"right"}));return{...h,symbol:p}}throw f}const c=e.getClient({chainId:s}),u=await er(c,o0,"getBalance")(r?{address:n,blockNumber:r}:{address:n,blockTag:o}),d=e.chains.find(f=>f.id===s)??c.chain;return{decimals:d.nativeCurrency.decimals,formatted:ps(u,G0(a)),symbol:d.nativeCurrency.symbol,value:u}}async function Ql(e,t){const{balanceAddress:n,chainId:r,symbolType:o,tokenAddress:s,unit:i}=t,a={abi:[{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:o}]}],address:s},[c,l,u]=await Uv(e,{allowFailure:!1,contracts:[{...a,functionName:"balanceOf",args:[n],chainId:r},{...a,functionName:"decimals",chainId:r},{...a,functionName:"symbol",chainId:r}]}),d=ps(c??"0",G0(i??l));return{decimals:l,formatted:d,symbol:u,value:c}}function Kl(e){return e.state.chainId}function bn(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let n,r;if(Array.isArray(e)&&Array.isArray(t)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!bn(e[r],t[r]))return!1;return!0}if(typeof e.valueOf=="function"&&e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(typeof e.toString=="function"&&e.toString!==Object.prototype.toString)return e.toString()===t.toString();const o=Object.keys(e);if(n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.hasOwn(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(s&&!bn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}let ii=[];function Jl(e){const t=e.chains;return bn(ii,t)?ii:(ii=t,t)}function Wv(e,t={}){try{return e.getClient(t)}catch{return}}let ko=[];function ha(e){const t=[...e.state.connections.values()];return e.state.status==="reconnecting"||bn(ko,t)?ko:(ko=t,t)}let Bo=[];function Yl(e){const t=e.connectors;return Bo.length===t.length&&Bo.every((n,r)=>n===t[r])?Bo:(Bo=t,t)}function $v(e,t){const{chainId:n,...r}=t,o=e.getClient({chainId:n});return er(o,Pf,"getEnsAvatar")(r)}function qv(e,t){const{chainId:n,...r}=t,o=e.getClient({chainId:n});return er(o,Tf,"getEnsName")(r)}function pa(e,t={}){const n=Wv(e,t);return n==null?void 0:n.extend(Ov)}let ai=!1;async function Hv(e,t={}){var l,u;if(ai)return[];ai=!0,e.setState(d=>({...d,status:d.current?"reconnecting":"connecting"}));const n=[];if((l=t.connectors)!=null&&l.length)for(const d of t.connectors){let f;typeof d=="function"?f=e._internal.connectors.setup(d):f=d,n.push(f)}else n.push(...e.connectors);let r;try{r=await((u=e.storage)==null?void 0:u.getItem("recentConnectorId"))}catch{}const o={};for(const[,d]of e.state.connections)o[d.connector.id]=1;r&&(o[r]=0);const s=Object.keys(o).length>0?[...n].sort((d,f)=>(o[d.id]??10)-(o[f.id]??10)):n;let i=!1;const a=[],c=[];for(const d of s){const f=await d.getProvider().catch(()=>{});if(!f||c.some(m=>m===f)||!await d.isAuthorized())continue;const p=await d.connect({isReconnecting:!0}).catch(()=>null);p&&(d.emitter.off("connect",e._internal.events.connect),d.emitter.on("change",e._internal.events.change),d.emitter.on("disconnect",e._internal.events.disconnect),e.setState(m=>{const g=new Map(i?m.connections:new Map).set(d.uid,{accounts:p.accounts,chainId:p.chainId,connector:d});return{...m,current:i?m.current:d.uid,connections:g}}),a.push({accounts:p.accounts,chainId:p.chainId,connector:d}),c.push(f),i=!0)}return(e.state.status==="reconnecting"||e.state.status==="connecting")&&(i?e.setState(d=>({...d,status:"connected"})):e.setState(d=>({...d,connections:new Map,current:null,status:"disconnected"}))),ai=!1,a}async function Vv(e,t){const{account:n,connector:r,...o}=t;let s;return typeof n=="object"&&n.type==="local"?s=e.getClient():s=await Nv(e,{account:n,connector:r}),er(s,vv,"signMessage")({...o,...n?{account:n}:{}})}class We extends Nt{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class Gv extends Nt{constructor({connector:t}){super(`"${t.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}async function Qv(e,t){var i;const{addEthereumChainParameter:n,chainId:r}=t,o=e.state.connections.get(((i=t.connector)==null?void 0:i.uid)??e.state.current);if(o){const a=o.connector;if(!a.switchChain)throw new Gv({connector:a});return await a.switchChain({addEthereumChainParameter:n,chainId:r})}const s=e.chains.find(a=>a.id===r);if(!s)throw new Zt;return e.setState(a=>({...a,chainId:r})),s}function K0(e,t){const{onChange:n}=t;return e.subscribe(()=>Q0(e),n,{equalityFn(r,o){const{connector:s,...i}=r,{connector:a,...c}=o;return bn(i,c)&&(s==null?void 0:s.id)===(a==null?void 0:a.id)&&(s==null?void 0:s.uid)===(a==null?void 0:a.uid)}})}function Kv(e,t){const{onChange:n}=t;return e.subscribe(r=>r.chainId,n)}function Jv(e,t){const{onChange:n}=t;return e.subscribe(()=>ha(e),n,{equalityFn:bn})}function Yv(e,t){const{onChange:n}=t;return e._internal.connectors.subscribe((r,o)=>{n(Object.values(r),o)})}function Zv(e,t){const{onChange:n}=t;return e.subscribe(()=>pa(e),n,{equalityFn(r,o){return(r==null?void 0:r.uid)===(o==null?void 0:o.uid)}})}Ps.type="injected";function Ps(e={}){const{shimDisconnect:t=!0,unstable_shimAsyncInject:n}=e;function r(){const c=e.target;if(typeof c=="function"){const l=c();if(l)return l}return typeof c=="object"?c:typeof c=="string"?{...Xv[c]??{id:c,name:`${c[0].toUpperCase()}${c.slice(1)}`,provider:`is${c[0].toUpperCase()}${c.slice(1)}`}}:{id:"injected",name:"Injected",provider(l){return l==null?void 0:l.ethereum}}}let o,s,i,a;return c=>({get icon(){return r().icon},get id(){return r().id},get name(){return r().name},get supportsSimulation(){return!0},type:Ps.type,async setup(){const l=await this.getProvider();l!=null&&l.on&&e.target&&(i||(i=this.onConnect.bind(this),l.on("connect",i)),o||(o=this.onAccountsChanged.bind(this),l.on("accountsChanged",o)))},async connect({chainId:l,isReconnecting:u,withCapabilities:d}={}){var p,m,g,y,C,w;const f=await this.getProvider();if(!f)throw new We;let h=[];if(u)h=await this.getAccounts().catch(()=>[]);else if(t)try{h=(y=(g=(m=(p=(await f.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}))[0])==null?void 0:p.caveats)==null?void 0:m[0])==null?void 0:g.value)==null?void 0:y.map(x=>me(x)),h.length>0&&(h=await this.getAccounts())}catch(v){const x=v;if(x.code===oe.code)throw new oe(x);if(x.code===pt.code)throw x}try{!(h!=null&&h.length)&&!u&&(h=(await f.request({method:"eth_requestAccounts"})).map(E=>me(E))),i&&(f.removeListener("connect",i),i=void 0),o||(o=this.onAccountsChanged.bind(this),f.on("accountsChanged",o)),s||(s=this.onChainChanged.bind(this),f.on("chainChanged",s)),a||(a=this.onDisconnect.bind(this),f.on("disconnect",a));let v=await this.getChainId();if(l&&v!==l){const x=await this.switchChain({chainId:l}).catch(E=>{if(E.code===oe.code)throw E;return{id:v}});v=(x==null?void 0:x.id)??v}return t&&await((C=c.storage)==null?void 0:C.removeItem(`${this.id}.disconnected`)),e.target||await((w=c.storage)==null?void 0:w.setItem("injected.connected",!0)),{accounts:d?h.map(x=>({address:x,capabilities:{}})):h,chainId:v}}catch(v){const x=v;throw x.code===oe.code?new oe(x):x.code===pt.code?new pt(x):x}},async disconnect(){var u,d;const l=await this.getProvider();if(!l)throw new We;s&&(l.removeListener("chainChanged",s),s=void 0),a&&(l.removeListener("disconnect",a),a=void 0),i||(i=this.onConnect.bind(this),l.on("connect",i));try{await ks(()=>l.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}t&&await((u=c.storage)==null?void 0:u.setItem(`${this.id}.disconnected`,!0)),e.target||await((d=c.storage)==null?void 0:d.removeItem("injected.connected"))},async getAccounts(){const l=await this.getProvider();if(!l)throw new We;return(await l.request({method:"eth_accounts"})).map(d=>me(d))},async getChainId(){const l=await this.getProvider();if(!l)throw new We;const u=await l.request({method:"eth_chainId"});return Number(u)},async getProvider(){if(typeof window>"u")return;let l;const u=r();return typeof u.provider=="function"?l=u.provider(window):typeof u.provider=="string"?l=Do(window,u.provider):l=u.provider,l&&!l.removeListener&&("off"in l&&typeof l.off=="function"?l.removeListener=l.off:l.removeListener=()=>{}),l},async isAuthorized(){var l,u;try{if(t&&await((l=c.storage)==null?void 0:l.getItem(`${this.id}.disconnected`))||!e.target&&!await((u=c.storage)==null?void 0:u.getItem("injected.connected")))return!1;if(!await this.getProvider()){if(n!==void 0&&n!==!1){const p=async()=>(typeof window<"u"&&window.removeEventListener("ethereum#initialized",p),!!await this.getProvider()),m=typeof n=="number"?n:1e3;if(await Promise.race([...typeof window<"u"?[new Promise(y=>window.addEventListener("ethereum#initialized",()=>y(p()),{once:!0}))]:[],new Promise(y=>setTimeout(()=>y(p()),m))]))return!0}throw new We}return!!(await Hn(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:l,chainId:u}){var p,m,g,y;const d=await this.getProvider();if(!d)throw new We;const f=c.chains.find(C=>C.id===u);if(!f)throw new He(new Zt);const h=new Promise(C=>{const w=(v=>{"chainId"in v&&v.chainId===u&&(c.emitter.off("change",w),C())});c.emitter.on("change",w)});try{return await Promise.all([d.request({method:"wallet_switchEthereumChain",params:[{chainId:D(u)}]}).then(async()=>{await this.getChainId()===u&&c.emitter.emit("change",{chainId:u})}),h]),f}catch(C){const w=C;if(w.code===4902||((m=(p=w==null?void 0:w.data)==null?void 0:p.originalError)==null?void 0:m.code)===4902)try{const{default:v,...x}=f.blockExplorers??{};let E;l!=null&&l.blockExplorerUrls?E=l.blockExplorerUrls:v&&(E=[v.url,...Object.values(x).map(j=>j.url)]);let A;(g=l==null?void 0:l.rpcUrls)!=null&&g.length?A=l.rpcUrls:A=[((y=f.rpcUrls.default)==null?void 0:y.http[0])??""];const k={blockExplorerUrls:E,chainId:D(u),chainName:(l==null?void 0:l.chainName)??f.name,iconUrls:l==null?void 0:l.iconUrls,nativeCurrency:(l==null?void 0:l.nativeCurrency)??f.nativeCurrency,rpcUrls:A};return await Promise.all([d.request({method:"wallet_addEthereumChain",params:[k]}).then(async()=>{if(await this.getChainId()===u)c.emitter.emit("change",{chainId:u});else throw new oe(new Error("User rejected switch after adding network."))}),h]),f}catch(v){throw new oe(v)}throw w.code===oe.code?new oe(w):new He(w)}},async onAccountsChanged(l){var u;if(l.length===0)this.onDisconnect();else if(c.emitter.listenerCount("connect")){const d=(await this.getChainId()).toString();this.onConnect({chainId:d}),t&&await((u=c.storage)==null?void 0:u.removeItem(`${this.id}.disconnected`))}else c.emitter.emit("change",{accounts:l.map(d=>me(d))})},onChainChanged(l){const u=Number(l);c.emitter.emit("change",{chainId:u})},async onConnect(l){const u=await this.getAccounts();if(u.length===0)return;const d=Number(l.chainId);c.emitter.emit("connect",{accounts:u,chainId:d});const f=await this.getProvider();f&&(i&&(f.removeListener("connect",i),i=void 0),o||(o=this.onAccountsChanged.bind(this),f.on("accountsChanged",o)),s||(s=this.onChainChanged.bind(this),f.on("chainChanged",s)),a||(a=this.onDisconnect.bind(this),f.on("disconnect",a)))},async onDisconnect(l){const u=await this.getProvider();l&&l.code===1013&&u&&(await this.getAccounts()).length||(c.emitter.emit("disconnect"),u&&(s&&(u.removeListener("chainChanged",s),s=void 0),a&&(u.removeListener("disconnect",a),a=void 0),i||(i=this.onConnect.bind(this),u.on("connect",i))))}})}const Xv={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider(e){return e!=null&&e.coinbaseWalletExtension?e.coinbaseWalletExtension:Do(e,"isCoinbaseWallet")}},metaMask:{id:"metaMask",name:"MetaMask",provider(e){return Do(e,t=>{if(!t.isMetaMask||t.isBraveWallet&&!t._events&&!t._state)return!1;const n=["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"];for(const r of n)if(t[r])return!1;return!0})}},phantom:{id:"phantom",name:"Phantom",provider(e){var t,n;return(t=e==null?void 0:e.phantom)!=null&&t.ethereum?(n=e.phantom)==null?void 0:n.ethereum:Do(e,"isPhantom")}}};function Do(e,t){function n(o){return typeof t=="function"?t(o):typeof t=="string"?o[t]:!0}const r=e.ethereum;if(r!=null&&r.providers)return r.providers.find(o=>n(o));if(r&&n(r))return r}function e5(e){if(typeof window>"u")return;const t=n=>e(n.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)}function t5(){const e=new Set;let t=[];const n=()=>e5(o=>{t.some(({info:s})=>s.uuid===o.info.uuid)||(t=[...t,o],e.forEach(s=>s(t,{added:[o]})))});let r=n();return{_listeners(){return e},clear(){e.forEach(o=>o([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),r==null||r()},findProvider({rdns:o}){return t.find(s=>s.info.rdns===o)},getProviders(){return t},reset(){this.clear(),r==null||r(),r=n()},subscribe(o,{emitImmediately:s}={}){return e.add(o),s&&o(t,{added:t}),()=>e.delete(o)}}}const n5=e=>(t,n,r)=>{const o=r.subscribe;return r.subscribe=(i,a,c)=>{let l=i;if(a){const u=(c==null?void 0:c.equalityFn)||Object.is;let d=i(r.getState());l=f=>{const h=i(f);if(!u(d,h)){const p=d;a(d=h,p)}},c!=null&&c.fireImmediately&&a(d,d)}return o(l)},e(t,n,r)},r5=n5;function o5(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var s;const i=c=>c===null?null:JSON.parse(c,void 0),a=(s=n.getItem(o))!=null?s:null;return a instanceof Promise?a.then(i):i(a)},setItem:(o,s)=>n.setItem(o,JSON.stringify(s,void 0)),removeItem:o=>n.removeItem(o)}}const ma=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return ma(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return ma(r)(n)}}}},s5=(e,t)=>(n,r,o)=>{let s={storage:o5(()=>localStorage),partialize:m=>m,version:0,merge:(m,g)=>({...g,...m}),...t},i=!1;const a=new Set,c=new Set;let l=s.storage;if(!l)return e((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...m)},r,o);const u=()=>{const m=s.partialize({...r()});return l.setItem(s.name,{state:m,version:s.version})},d=o.setState;o.setState=(m,g)=>{d(m,g),u()};const f=e((...m)=>{n(...m),u()},r,o);o.getInitialState=()=>f;let h;const p=()=>{var m,g;if(!l)return;i=!1,a.forEach(C=>{var w;return C((w=r())!=null?w:f)});const y=((g=s.onRehydrateStorage)==null?void 0:g.call(s,(m=r())!=null?m:f))||void 0;return ma(l.getItem.bind(l))(s.name).then(C=>{if(C)if(typeof C.version=="number"&&C.version!==s.version){if(s.migrate)return[!0,s.migrate(C.state,C.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,C.state];return[!1,void 0]}).then(C=>{var w;const[v,x]=C;if(h=s.merge(x,(w=r())!=null?w:f),n(h,!0),v)return u()}).then(()=>{y==null||y(h,void 0),h=r(),i=!0,c.forEach(C=>C(h))}).catch(C=>{y==null||y(void 0,C)})};return o.persist={setOptions:m=>{s={...s,...m},m.storage&&(l=m.storage)},clearStorage:()=>{l==null||l.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>p(),hasHydrated:()=>i,onHydrate:m=>(a.add(m),()=>{a.delete(m)}),onFinishHydration:m=>(c.add(m),()=>{c.delete(m)})},s.skipHydration||p(),h||f},i5=s5,Zl=e=>{let t;const n=new Set,r=(l,u)=>{const d=typeof l=="function"?l(t):l;if(!Object.is(d,t)){const f=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(h=>h(t,f))}},o=()=>t,a={setState:r,getState:o,getInitialState:()=>c,subscribe:l=>(n.add(l),()=>n.delete(l))},c=t=e(r,o,a);return a},ci=e=>e?Zl(e):Zl;var li={exports:{}},Xl;function a5(){return Xl||(Xl=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(c,l,u){this.fn=c,this.context=l,this.once=u||!1}function s(c,l,u,d,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new o(u,d||c,f),p=n?n+l:l;return c._events[p]?c._events[p].fn?c._events[p]=[c._events[p],h]:c._events[p].push(h):(c._events[p]=h,c._eventsCount++),c}function i(c,l){--c._eventsCount===0?c._events=new r:delete c._events[l]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var l=[],u,d;if(this._eventsCount===0)return l;for(d in u=this._events)t.call(u,d)&&l.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},a.prototype.listeners=function(l){var u=n?n+l:l,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,h=d.length,p=new Array(h);f<h;f++)p[f]=d[f].fn;return p},a.prototype.listenerCount=function(l){var u=n?n+l:l,d=this._events[u];return d?d.fn?1:d.length:0},a.prototype.emit=function(l,u,d,f,h,p){var m=n?n+l:l;if(!this._events[m])return!1;var g=this._events[m],y=arguments.length,C,w;if(g.fn){switch(g.once&&this.removeListener(l,g.fn,void 0,!0),y){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,u),!0;case 3:return g.fn.call(g.context,u,d),!0;case 4:return g.fn.call(g.context,u,d,f),!0;case 5:return g.fn.call(g.context,u,d,f,h),!0;case 6:return g.fn.call(g.context,u,d,f,h,p),!0}for(w=1,C=new Array(y-1);w<y;w++)C[w-1]=arguments[w];g.fn.apply(g.context,C)}else{var v=g.length,x;for(w=0;w<v;w++)switch(g[w].once&&this.removeListener(l,g[w].fn,void 0,!0),y){case 1:g[w].fn.call(g[w].context);break;case 2:g[w].fn.call(g[w].context,u);break;case 3:g[w].fn.call(g[w].context,u,d);break;case 4:g[w].fn.call(g[w].context,u,d,f);break;default:if(!C)for(x=1,C=new Array(y-1);x<y;x++)C[x-1]=arguments[x];g[w].fn.apply(g[w].context,C)}}return!0},a.prototype.on=function(l,u,d){return s(this,l,u,d,!1)},a.prototype.once=function(l,u,d){return s(this,l,u,d,!0)},a.prototype.removeListener=function(l,u,d,f){var h=n?n+l:l;if(!this._events[h])return this;if(!u)return i(this,h),this;var p=this._events[h];if(p.fn)p.fn===u&&(!f||p.once)&&(!d||p.context===d)&&i(this,h);else{for(var m=0,g=[],y=p.length;m<y;m++)(p[m].fn!==u||f&&!p[m].once||d&&p[m].context!==d)&&g.push(p[m]);g.length?this._events[h]=g.length===1?g[0]:g:i(this,h)}return this},a.prototype.removeAllListeners=function(l){var u;return l?(u=n?n+l:l,this._events[u]&&i(this,u)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a})(li)),li.exports}var c5=a5();const l5=zp(c5);class u5{constructor(t){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new l5})}on(t,n){this._emitter.on(t,n)}once(t,n){this._emitter.once(t,n)}off(t,n){this._emitter.off(t,n)}emit(t,...n){const r=n[0];this._emitter.emit(t,{uid:this.uid,...r})}listenerCount(t){return this._emitter.listenerCount(t)}}function d5(e){return new u5(e)}function f5(e,t){return JSON.parse(e,(n,r)=>{let o=r;return(o==null?void 0:o.__type)==="bigint"&&(o=BigInt(o.value)),(o==null?void 0:o.__type)==="Map"&&(o=new Map(o.value)),(t==null?void 0:t(n,o))??o})}function eu(e,t){return e.slice(0,t).join(".")||"."}function tu(e,t){const{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function h5(e,t){const n=typeof e=="function",r=typeof t=="function",o=[],s=[];return function(a,c){if(typeof c=="object")if(o.length){const l=tu(o,this);l===0?o[o.length]=this:(o.splice(l),s.splice(l)),s[s.length]=a;const u=tu(o,c);if(u!==0)return r?t.call(this,a,c,eu(s,u)):`[ref=${eu(s,u)}]`}else o[0]=c,s[0]=a;return n?e.call(this,a,c):c}}function p5(e,t,n,r){return JSON.stringify(e,h5((o,s)=>{let i=s;return typeof i=="bigint"&&(i={__type:"bigint",value:s.toString()}),i instanceof Map&&(i={__type:"Map",value:Array.from(s.entries())}),(t==null?void 0:t(o,i))??i},r),n??void 0)}function m5(e){const{deserialize:t=f5,key:n="wagmi",serialize:r=p5,storage:o=J0}=e;function s(i){return i instanceof Promise?i.then(a=>a).catch(()=>null):i}return{...o,key:n,async getItem(i,a){const c=o.getItem(`${n}.${i}`),l=await s(c);return l?t(l)??null:a??null},async setItem(i,a){const c=`${n}.${i}`;a===null?await s(o.removeItem(c)):await s(o.setItem(c,r(a)))},async removeItem(i){await s(o.removeItem(`${n}.${i}`))}}}const J0={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function b5(){const e=typeof window<"u"&&window.localStorage?window.localStorage:J0;return{getItem(t){return e.getItem(t)},removeItem(t){e.removeItem(t)},setItem(t,n){try{e.setItem(t,n)}catch{}}}}const ba=256;let jo=ba,So;function g5(e=11){if(!So||jo+e>ba*2){So="",jo=0;for(let t=0;t<ba;t++)So+=(256+Math.random()*256|0).toString(16).substring(1)}return So.substring(jo,jo+++e)}function y5(e){const{multiInjectedProviderDiscovery:t=!0,storage:n=m5({storage:b5()}),syncConnectedChain:r=!0,ssr:o=!1,...s}=e,i=typeof window<"u"&&t?t5():void 0,a=ci(()=>s.chains),c=ci(()=>{const x=[],E=new Set;for(const A of s.connectors??[]){const k=l(A);if(x.push(k),!o&&k.rdns){const j=typeof k.rdns=="string"?[k.rdns]:k.rdns;for(const O of j)E.add(O)}}if(!o&&i){const A=i.getProviders();for(const k of A)E.has(k.info.rdns)||x.push(l(u(k)))}return x});function l(x){var k;const E=d5(g5()),A={...x({emitter:E,chains:a.getState(),storage:n,transports:s.transports}),emitter:E,uid:E.uid};return E.on("connect",w),(k=A.setup)==null||k.call(A),A}function u(x){const{info:E}=x,A=x.provider;return Ps({target:{...E,id:E.rdns,provider:A}})}const d=new Map;function f(x={}){const E=x.chainId??g.getState().chainId,A=a.getState().find(j=>j.id===E);if(x.chainId&&!A)throw new Zt;{const j=d.get(g.getState().chainId);if(j&&!A)return j;if(!A)throw new Zt}{const j=d.get(E);if(j)return j}let k;if(s.client)k=s.client({chain:A});else{const j=A.id,O=a.getState().map(P=>P.id),_={},R=Object.entries(s);for(const[P,$]of R)if(!(P==="chains"||P==="client"||P==="connectors"||P==="transports"))if(typeof $=="object")if(j in $)_[P]=$[j];else{if(O.some(N=>N in $))continue;_[P]=$}else _[P]=$;k=q0({..._,chain:A,batch:_.batch??{multicall:!0},transport:P=>s.transports[j]({...P,connectors:c})})}return d.set(E,k),k}function h(){return{chainId:a.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let p;const m="0.0.0-canary-";No.startsWith(m)?p=Number.parseInt(No.replace(m,""),10):p=Number.parseInt(No.split(".")[0]??"0",10);const g=ci(r5(n?i5(h,{migrate(x,E){if(E===p)return x;const A=h(),k=y(x,A.chainId);return{...A,chainId:k}},name:"store",partialize(x){return{connections:{__type:"Map",value:Array.from(x.connections.entries()).map(([E,A])=>{const{id:k,name:j,type:O,uid:_}=A.connector;return[E,{...A,connector:{id:k,name:j,type:O,uid:_}}]})},chainId:x.chainId,current:x.current}},merge(x,E){typeof x=="object"&&x&&"status"in x&&delete x.status;const A=y(x,E.chainId);return{...E,...x,chainId:A}},skipHydration:o,storage:n,version:p}):h));g.setState(h());function y(x,E){return x&&typeof x=="object"&&"chainId"in x&&typeof x.chainId=="number"&&a.getState().some(A=>A.id===x.chainId)?x.chainId:E}r&&g.subscribe(({connections:x,current:E})=>{var A;return E?(A=x.get(E))==null?void 0:A.chainId:void 0},x=>{if(a.getState().some(A=>A.id===x))return g.setState(A=>({...A,chainId:x??A.chainId}))}),i==null||i.subscribe(x=>{const E=new Set,A=new Set;for(const j of c.getState())if(E.add(j.id),j.rdns){const O=typeof j.rdns=="string"?[j.rdns]:j.rdns;for(const _ of O)A.add(_)}const k=[];for(const j of x){if(A.has(j.info.rdns))continue;const O=l(u(j));E.has(O.id)||k.push(O)}n&&!g.persist.hasHydrated()||c.setState(j=>[...j,...k],!0)});function C(x){g.setState(E=>{const A=E.connections.get(x.uid);return A?{...E,connections:new Map(E.connections).set(x.uid,{accounts:x.accounts??A.accounts,chainId:x.chainId??A.chainId,connector:A.connector})}:E})}function w(x){g.getState().status==="connecting"||g.getState().status==="reconnecting"||g.setState(E=>{const A=c.getState().find(k=>k.uid===x.uid);return A?(A.emitter.listenerCount("connect")&&A.emitter.off("connect",C),A.emitter.listenerCount("change")||A.emitter.on("change",C),A.emitter.listenerCount("disconnect")||A.emitter.on("disconnect",v),{...E,connections:new Map(E.connections).set(x.uid,{accounts:x.accounts,chainId:x.chainId,connector:A}),current:x.uid,status:"connected"}):E})}function v(x){g.setState(E=>{const A=E.connections.get(x.uid);if(A){const j=A.connector;j.emitter.listenerCount("change")&&A.connector.emitter.off("change",C),j.emitter.listenerCount("disconnect")&&A.connector.emitter.off("disconnect",v),j.emitter.listenerCount("connect")||A.connector.emitter.on("connect",w)}if(E.connections.delete(x.uid),E.connections.size===0)return{...E,connections:new Map,current:null,status:"disconnected"};const k=E.connections.values().next().value;return{...E,connections:new Map(E.connections),current:k.connector.uid}})}return{get chains(){return a.getState()},get connectors(){return c.getState()},storage:n,getClient:f,get state(){return g.getState()},setState(x){let E;typeof x=="function"?E=x(g.getState()):E=x;const A=h();typeof E!="object"&&(E=A),Object.keys(A).some(j=>!(j in E))&&(E=A),g.setState(E,!0)},subscribe(x,E,A){return g.subscribe(x,E,A?{...A,fireImmediately:A.emitImmediately}:void 0)},_internal:{mipd:i,async revalidate(){const x=g.getState(),E=x.connections;let A=x.current;for(const[,k]of E){const j=k.connector;j.isAuthorized&&await j.isAuthorized()||(E.delete(j.uid),A===j.uid&&(A=null))}g.setState(k=>({...k,connections:E,current:A}))},store:g,ssr:!!o,syncConnectedChain:r,transports:s.transports,chains:{setState(x){const E=typeof x=="function"?x(a.getState()):x;if(E.length!==0)return a.setState(E,!0)},subscribe(x){return a.subscribe(x)}},connectors:{providerDetailToConnector:u,setup:l,setState(x){return c.setState(typeof x=="function"?x(c.getState()):x,!0)},subscribe(x){return c.subscribe(x)}},events:{change:C,connect:w,disconnect:v}}}}function w5(e,t){const{initialState:n,reconnectOnMount:r}=t;return n&&!e._internal.store.persist.hasHydrated()&&e.setState({...n,chainId:e.chains.some(o=>o.id===n.chainId)?n.chainId:e.chains[0].id,connections:r?n.connections:new Map,status:r?"reconnecting":"disconnected"}),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(o=>{var c;const s=new Set;for(const l of o??[])if(l.rdns){const u=Array.isArray(l.rdns)?l.rdns:[l.rdns];for(const d of u)s.add(d)}const i=[],a=((c=e._internal.mipd)==null?void 0:c.getProviders())??[];for(const l of a){if(s.has(l.info.rdns))continue;const u=e._internal.connectors.providerDetailToConnector(l),d=e._internal.connectors.setup(u);i.push(d)}return[...o,...i]})),r?Hv(e):e.storage&&e.setState(o=>({...o,connections:new Map}))}}}function Y0(e){var s,i,a;const{chain:t}=e,n=t.rpcUrls.default.http[0];if(!e.transports)return[n];const r=(i=(s=e.transports)==null?void 0:s[t.id])==null?void 0:i.call(s,{chain:t});return(((a=r==null?void 0:r.value)==null?void 0:a.transports)||[r]).map(({value:c})=>(c==null?void 0:c.url)||n)}function v5(e){const{children:t,config:n,initialState:r,reconnectOnMount:o=!0}=e,{onMount:s}=w5(n,{initialState:r,reconnectOnMount:o});n._internal.ssr||s();const i=B.useRef(!0);return B.useEffect(()=>{if(i.current&&n._internal.ssr)return s(),()=>{i.current=!1}},[]),t}const Z0=B.createContext(void 0);function x5(e){const{children:t,config:n}=e,r={value:n};return B.createElement(v5,e,B.createElement(Z0.Provider,r,t))}const C5="2.19.5",A5=()=>`wagmi@${C5}`;class E5 extends Nt{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return A5()}}class I5 extends E5{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function ye(e={}){const t=e.config??B.useContext(Z0);if(!t)throw new I5;return t}function k5(e,t){const{onChange:n}=t;return e._internal.chains.subscribe((r,o)=>{n(r,o)})}var ui={exports:{}},di={},fi={exports:{}},hi={};/**
|
|
47
|
+
* @license React
|
|
48
|
+
* use-sync-external-store-shim.production.js
|
|
49
|
+
*
|
|
50
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the MIT license found in the
|
|
53
|
+
* LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/var nu;function B5(){if(nu)return hi;nu=1;var e=dd();function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function a(d,f){var h=f(),p=r({inst:{value:h,getSnapshot:f}}),m=p[0].inst,g=p[1];return s(function(){m.value=h,m.getSnapshot=f,c(m)&&g({inst:m})},[d,h,f]),o(function(){return c(m)&&g({inst:m}),d(function(){c(m)&&g({inst:m})})},[d]),i(h),h}function c(d){var f=d.getSnapshot;d=d.value;try{var h=f();return!n(d,h)}catch{return!0}}function l(d,f){return f()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:a;return hi.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,hi}var ru;function j5(){return ru||(ru=1,fi.exports=B5()),fi.exports}/**
|
|
55
|
+
* @license React
|
|
56
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
57
|
+
*
|
|
58
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
59
|
+
*
|
|
60
|
+
* This source code is licensed under the MIT license found in the
|
|
61
|
+
* LICENSE file in the root directory of this source tree.
|
|
62
|
+
*/var ou;function S5(){if(ou)return di;ou=1;var e=dd(),t=j5();function n(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,s=e.useRef,i=e.useEffect,a=e.useMemo,c=e.useDebugValue;return di.useSyncExternalStoreWithSelector=function(l,u,d,f,h){var p=s(null);if(p.current===null){var m={hasValue:!1,value:null};p.current=m}else m=p.current;p=a(function(){function y(E){if(!C){if(C=!0,w=E,E=f(E),h!==void 0&&m.hasValue){var A=m.value;if(h(A,E))return v=A}return v=E}if(A=v,r(w,E))return A;var k=f(E);return h!==void 0&&h(A,k)?(w=E,A):(w=E,v=k)}var C=!1,w,v,x=d===void 0?null:d;return[function(){return y(u())},x===null?void 0:function(){return y(x())}]},[u,d,f,h]);var g=o(l,p[0],p[1]);return i(function(){m.hasValue=!0,m.value=g},[g]),c(g),g},di}var su;function _5(){return su||(su=1,ui.exports=S5()),ui.exports}var X0=_5();const pi=e=>typeof e=="object"&&!Array.isArray(e);function P5(e,t,n=t,r=bn){const o=B.useRef([]),s=X0.useSyncExternalStoreWithSelector(e,t,n,i=>i,(i,a)=>{if(pi(i)&&pi(a)&&o.current.length){for(const c of o.current)if(!r(i[c],a[c]))return!1;return!0}return r(i,a)});return B.useMemo(()=>{if(pi(s)){const i={...s};let a={};for(const[c,l]of Object.entries(i))a={...a,[c]:{configurable:!1,enumerable:!0,get:()=>(o.current.includes(c)||o.current.push(c),l)}};return Object.defineProperties(i,a),i}return s},[s])}function Ne(e={}){const t=ye(e);return P5(n=>K0(t,{onChange:n}),()=>Q0(t))}function eh(e={}){const{onConnect:t,onDisconnect:n}=e,r=ye(e);B.useEffect(()=>K0(r,{onChange(o,s){if((s.status==="reconnecting"||s.status==="connecting"&&s.address===void 0)&&o.status==="connected"){const{address:i,addresses:a,chain:c,chainId:l,connector:u}=o,d=s.status==="reconnecting"||s.status===void 0;t==null||t({address:i,addresses:a,chain:c,chainId:l,connector:u,isReconnected:d})}else s.status==="connected"&&o.status==="disconnected"&&(n==null||n())}}),[r,t,n])}function MA(e,t){return Wp(e,t)}function T5(e){return JSON.stringify(e,(t,n)=>O5(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):typeof n=="bigint"?n.toString():n)}function O5(e){if(!iu(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!iu(n)||!n.hasOwnProperty("isPrototypeOf"))}function iu(e){return Object.prototype.toString.call(e)==="[object Object]"}function yc(e){const{_defaulted:t,behavior:n,gcTime:r,initialData:o,initialDataUpdatedAt:s,maxPages:i,meta:a,networkMode:c,queryFn:l,queryHash:u,queryKey:d,queryKeyHashFn:f,retry:h,retryDelay:p,structuralSharing:m,getPreviousPageParam:g,getNextPageParam:y,initialPageParam:C,_optimisticResults:w,enabled:v,notifyOnChangeProps:x,placeholderData:E,refetchInterval:A,refetchIntervalInBackground:k,refetchOnMount:j,refetchOnReconnect:O,refetchOnWindowFocus:_,retryOnMount:R,select:P,staleTime:$,suspense:S,throwOnError:N,config:F,connector:T,query:U,...z}=e;return z}function R5(e){return{mutationFn(t){return Bv(e,t)},mutationKey:["connect"]}}function M5(e){return{mutationFn(t){return Dv(e,t)},mutationKey:["disconnect"]}}function N5(e,t={}){return{async queryFn({queryKey:n}){const{address:r,scopeKey:o,...s}=n[1];if(!r)throw new Error("address is required");return await zv(e,{...s,address:r})??null},queryKey:D5(t)}}function D5(e={}){return["balance",yc(e)]}function F5(e,t={}){return{async queryFn({queryKey:n}){const{name:r,scopeKey:o,...s}=n[1];if(!r)throw new Error("name is required");return $v(e,{...s,name:r})},queryKey:L5(t)}}function L5(e={}){return["ensAvatar",yc(e)]}function U5(e,t={}){return{async queryFn({queryKey:n}){const{address:r,scopeKey:o,...s}=n[1];if(!r)throw new Error("address is required");return qv(e,{...s,address:r})},queryKey:z5(t)}}function z5(e={}){return["ensName",yc(e)]}function W5(e){return{mutationFn(t){return Vv(e,t)},mutationKey:["signMessage"]}}function $5(e){return{mutationFn(t){return Qv(e,t)},mutationKey:["switchChain"]}}function wc(e){const t=fd({...e,queryKeyHashFn:T5});return t.queryKey=e.queryKey,t}function vc(e={}){const t=ye(e);return B.useSyncExternalStore(n=>Kv(t,{onChange:n}),()=>Kl(t),()=>Kl(t))}function th(e={}){const{address:t,query:n={}}=e,r=ye(e),o=vc({config:r}),s=N5(r,{...e,chainId:e.chainId??o}),i=!!(t&&(n.enabled??!0));return wc({...n,...s,enabled:i})}function q5(e={}){const t=ye(e);return B.useSyncExternalStore(n=>k5(t,{onChange:n}),()=>Jl(t),()=>Jl(t))}function H5(e={}){const t=ye(e);return B.useSyncExternalStore(n=>Yv(t,{onChange:n}),()=>Yl(t),()=>Yl(t))}function V5(e={}){const{mutation:t}=e,n=ye(e),r=R5(n),{mutate:o,mutateAsync:s,...i}=ss({...t,...r});return B.useEffect(()=>n.subscribe(({status:a})=>a,(a,c)=>{c==="connected"&&a==="disconnected"&&i.reset()}),[n,i.reset]),{...i,connect:o,connectAsync:s,connectors:H5({config:n})}}function G5(e={}){const t=ye(e);return B.useSyncExternalStore(n=>Jv(t,{onChange:n}),()=>ha(t),()=>ha(t))}function xc(e={}){const{mutation:t}=e,n=ye(e),r=M5(n),{mutate:o,mutateAsync:s,...i}=ss({...t,...r});return{...i,connectors:G5({config:n}).map(a=>a.connector),disconnect:o,disconnectAsync:s}}function Q5(e={}){const{name:t,query:n={}}=e,r=ye(e),o=vc({config:r}),s=F5(r,{...e,chainId:e.chainId??o}),i=!!(t&&(n.enabled??!0));return wc({...n,...s,enabled:i})}function K5(e={}){const{address:t,query:n={}}=e,r=ye(e),o=vc({config:r}),s=U5(r,{...e,chainId:e.chainId??o}),i=!!(t&&(n.enabled??!0));return wc({...n,...s,enabled:i})}function J5(e={}){const t=ye(e);return X0.useSyncExternalStoreWithSelector(n=>Zv(t,{onChange:n}),()=>pa(t,e),()=>pa(t,e),n=>n,(n,r)=>(n==null?void 0:n.uid)===(r==null?void 0:r.uid))}function Y5(e={}){const{mutation:t}=e,n=ye(e),r=W5(n),{mutate:o,mutateAsync:s,...i}=ss({...t,...r});return{...i,signMessage:o,signMessageAsync:s}}function Z5(e={}){const{mutation:t}=e,n=ye(e),r=$5(n),{mutate:o,mutateAsync:s,...i}=ss({...t,...r});return{...i,chains:q5({config:n}),switchChain:o,switchChainAsync:s}}var au='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',X5={rounded:`SFRounded, ui-rounded, "SF Pro Rounded", ${au}`,system:au},cr={large:{actionButton:"9999px",connectButton:"12px",modal:"24px",modalMobile:"28px"},medium:{actionButton:"10px",connectButton:"8px",modal:"16px",modalMobile:"18px"},none:{actionButton:"0px",connectButton:"0px",modal:"0px",modalMobile:"0px"},small:{actionButton:"4px",connectButton:"4px",modal:"8px",modalMobile:"8px"}},e2={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},nh=({borderRadius:e="large",fontStack:t="rounded",overlayBlur:n="none"})=>({blurs:{modalOverlay:e2[n].modalOverlay},fonts:{body:X5[t]},radii:{actionButton:cr[e].actionButton,connectButton:cr[e].connectButton,menuButton:cr[e].connectButton,modal:cr[e].modal,modalMobile:cr[e].modalMobile}}),Fo="#1A1B1F",rh={blue:{accentColor:"#3898FF",accentColorForeground:"#FFF"},green:{accentColor:"#4BD166",accentColorForeground:Fo},orange:{accentColor:"#FF983D",accentColorForeground:Fo},pink:{accentColor:"#FF7AB8",accentColorForeground:Fo},purple:{accentColor:"#7A70FF",accentColorForeground:"#FFF"},red:{accentColor:"#FF6257",accentColorForeground:"#FFF"}},cu=rh.blue,oh=({accentColor:e=cu.accentColor,accentColorForeground:t=cu.accentColorForeground,...n}={})=>({...nh(n),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(255, 255, 255, 0.04)",actionButtonBorderMobile:"rgba(255, 255, 255, 0.08)",actionButtonSecondaryBackground:"rgba(255, 255, 255, 0.08)",closeButton:"rgba(224, 232, 255, 0.6)",closeButtonBackground:"rgba(255, 255, 255, 0.08)",connectButtonBackground:Fo,connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.15))",connectButtonText:"#FFF",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(0, 0, 0, 0) 9.49%, rgba(120, 120, 120, 0.2) 71.04%), #1A1B1F",downloadTopCardBackground:"linear-gradient(126deg, rgba(120, 120, 120, 0.2) 9.49%, rgba(0, 0, 0, 0) 71.04%), #1A1B1F",error:"#FF494A",generalBorder:"rgba(255, 255, 255, 0.08)",generalBorderDim:"rgba(255, 255, 255, 0.04)",menuItemBackground:"rgba(224, 232, 255, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.5)",modalBackground:"#1A1B1F",modalBorder:"rgba(255, 255, 255, 0.08)",modalText:"#FFF",modalTextDim:"rgba(224, 232, 255, 0.3)",modalTextSecondary:"rgba(255, 255, 255, 0.6)",profileAction:"rgba(224, 232, 255, 0.1)",profileActionHover:"rgba(224, 232, 255, 0.2)",profileForeground:"rgba(224, 232, 255, 0.05)",selectedOptionBorder:"rgba(224, 232, 255, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.24)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}});oh.accentColors=rh;var sh={blue:{accentColor:"#0E76FD",accentColorForeground:"#FFF"},green:{accentColor:"#1DB847",accentColorForeground:"#FFF"},orange:{accentColor:"#FF801F",accentColorForeground:"#FFF"},pink:{accentColor:"#FF5CA0",accentColorForeground:"#FFF"},purple:{accentColor:"#5F5AFA",accentColorForeground:"#FFF"},red:{accentColor:"#FA423C",accentColorForeground:"#FFF"}},lu=sh.blue,Cc=({accentColor:e=lu.accentColor,accentColorForeground:t=lu.accentColorForeground,...n}={})=>({...nh(n),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(0, 0, 0, 0.04)",actionButtonBorderMobile:"rgba(0, 0, 0, 0.06)",actionButtonSecondaryBackground:"rgba(0, 0, 0, 0.06)",closeButton:"rgba(60, 66, 66, 0.8)",closeButtonBackground:"rgba(0, 0, 0, 0.06)",connectButtonBackground:"#FFF",connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06))",connectButtonText:"#25292E",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(255, 255, 255, 0) 9.49%, rgba(171, 171, 171, 0.04) 71.04%), #FFFFFF",downloadTopCardBackground:"linear-gradient(126deg, rgba(171, 171, 171, 0.2) 9.49%, rgba(255, 255, 255, 0) 71.04%), #FFFFFF",error:"#FF494A",generalBorder:"rgba(0, 0, 0, 0.06)",generalBorderDim:"rgba(0, 0, 0, 0.03)",menuItemBackground:"rgba(60, 66, 66, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.3)",modalBackground:"#FFF",modalBorder:"transparent",modalText:"#25292E",modalTextDim:"rgba(60, 66, 66, 0.3)",modalTextSecondary:"rgba(60, 66, 66, 0.6)",profileAction:"#FFF",profileActionHover:"rgba(255, 255, 255, 0.5)",profileForeground:"rgba(60, 66, 66, 0.06)",selectedOptionBorder:"rgba(60, 66, 66, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.12)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}});Cc.accentColors=sh;var ga=`{
|
|
63
|
+
"connect_wallet": {
|
|
64
|
+
"label": "Connect Wallet",
|
|
65
|
+
"wrong_network": {
|
|
66
|
+
"label": "Wrong network"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
"intro": {
|
|
71
|
+
"title": "What is a Wallet?",
|
|
72
|
+
"description": "A wallet is used to send, receive, store, and display digital assets. It's also a new way to log in, without needing to create new accounts and passwords on every website.",
|
|
73
|
+
"digital_asset": {
|
|
74
|
+
"title": "A Home for your Digital Assets",
|
|
75
|
+
"description": "Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs."
|
|
76
|
+
},
|
|
77
|
+
"login": {
|
|
78
|
+
"title": "A New Way to Log In",
|
|
79
|
+
"description": "Instead of creating new accounts and passwords on every website, just connect your wallet."
|
|
80
|
+
},
|
|
81
|
+
"get": {
|
|
82
|
+
"label": "Get a Wallet"
|
|
83
|
+
},
|
|
84
|
+
"learn_more": {
|
|
85
|
+
"label": "Learn More"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
"sign_in": {
|
|
90
|
+
"label": "Verify your account",
|
|
91
|
+
"description": "To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account.",
|
|
92
|
+
"message": {
|
|
93
|
+
"send": "Sign message",
|
|
94
|
+
"preparing": "Preparing message...",
|
|
95
|
+
"cancel": "Cancel",
|
|
96
|
+
"preparing_error": "Error preparing message, please retry!"
|
|
97
|
+
},
|
|
98
|
+
"signature": {
|
|
99
|
+
"waiting": "Waiting for signature...",
|
|
100
|
+
"verifying": "Verifying signature...",
|
|
101
|
+
"signing_error": "Error signing message, please retry!",
|
|
102
|
+
"verifying_error": "Error verifying signature, please retry!",
|
|
103
|
+
"oops_error": "Oops, something went wrong!"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
"connect": {
|
|
108
|
+
"label": "Connect",
|
|
109
|
+
"title": "Connect a Wallet",
|
|
110
|
+
"new_to_ethereum": {
|
|
111
|
+
"description": "New to Ethereum wallets?",
|
|
112
|
+
"learn_more": {
|
|
113
|
+
"label": "Learn More"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"learn_more": {
|
|
117
|
+
"label": "Learn more"
|
|
118
|
+
},
|
|
119
|
+
"recent": "Recent",
|
|
120
|
+
"status": {
|
|
121
|
+
"opening": "Opening %{wallet}...",
|
|
122
|
+
"connecting": "Connecting",
|
|
123
|
+
"connect_mobile": "Continue in %{wallet}",
|
|
124
|
+
"not_installed": "%{wallet} is not installed",
|
|
125
|
+
"not_available": "%{wallet} is not available",
|
|
126
|
+
"confirm": "Confirm connection in the extension",
|
|
127
|
+
"confirm_mobile": "Accept connection request in the wallet"
|
|
128
|
+
},
|
|
129
|
+
"secondary_action": {
|
|
130
|
+
"get": {
|
|
131
|
+
"description": "Don't have %{wallet}?",
|
|
132
|
+
"label": "GET"
|
|
133
|
+
},
|
|
134
|
+
"install": {
|
|
135
|
+
"label": "INSTALL"
|
|
136
|
+
},
|
|
137
|
+
"retry": {
|
|
138
|
+
"label": "RETRY"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"walletconnect": {
|
|
142
|
+
"description": {
|
|
143
|
+
"full": "Need the official WalletConnect modal?",
|
|
144
|
+
"compact": "Need the WalletConnect modal?"
|
|
145
|
+
},
|
|
146
|
+
"open": {
|
|
147
|
+
"label": "OPEN"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
|
|
152
|
+
"connect_scan": {
|
|
153
|
+
"title": "Scan with %{wallet}",
|
|
154
|
+
"fallback_title": "Scan with your phone"
|
|
155
|
+
},
|
|
156
|
+
|
|
157
|
+
"connector_group": {
|
|
158
|
+
"installed": "Installed",
|
|
159
|
+
"recommended": "Recommended",
|
|
160
|
+
"other": "Other",
|
|
161
|
+
"popular": "Popular",
|
|
162
|
+
"more": "More",
|
|
163
|
+
"others": "Others"
|
|
164
|
+
},
|
|
165
|
+
|
|
166
|
+
"get": {
|
|
167
|
+
"title": "Get a Wallet",
|
|
168
|
+
"action": {
|
|
169
|
+
"label": "GET"
|
|
170
|
+
},
|
|
171
|
+
"mobile": {
|
|
172
|
+
"description": "Mobile Wallet"
|
|
173
|
+
},
|
|
174
|
+
"extension": {
|
|
175
|
+
"description": "Browser Extension"
|
|
176
|
+
},
|
|
177
|
+
"mobile_and_extension": {
|
|
178
|
+
"description": "Mobile Wallet and Extension"
|
|
179
|
+
},
|
|
180
|
+
"mobile_and_desktop": {
|
|
181
|
+
"description": "Mobile and Desktop Wallet"
|
|
182
|
+
},
|
|
183
|
+
"looking_for": {
|
|
184
|
+
"title": "Not what you're looking for?",
|
|
185
|
+
"mobile": {
|
|
186
|
+
"description": "Select a wallet on the main screen to get started with a different wallet provider."
|
|
187
|
+
},
|
|
188
|
+
"desktop": {
|
|
189
|
+
"compact_description": "Select a wallet on the main screen to get started with a different wallet provider.",
|
|
190
|
+
"wide_description": "Select a wallet on the left to get started with a different wallet provider."
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
|
|
195
|
+
"get_options": {
|
|
196
|
+
"title": "Get started with %{wallet}",
|
|
197
|
+
"short_title": "Get %{wallet}",
|
|
198
|
+
"mobile": {
|
|
199
|
+
"title": "%{wallet} for Mobile",
|
|
200
|
+
"description": "Use the mobile wallet to explore the world of Ethereum.",
|
|
201
|
+
"download": {
|
|
202
|
+
"label": "Get the app"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"extension": {
|
|
206
|
+
"title": "%{wallet} for %{browser}",
|
|
207
|
+
"description": "Access your wallet right from your favorite web browser.",
|
|
208
|
+
"download": {
|
|
209
|
+
"label": "Add to %{browser}"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"desktop": {
|
|
213
|
+
"title": "%{wallet} for %{platform}",
|
|
214
|
+
"description": "Access your wallet natively from your powerful desktop.",
|
|
215
|
+
"download": {
|
|
216
|
+
"label": "Add to %{platform}"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
|
|
221
|
+
"get_mobile": {
|
|
222
|
+
"title": "Install %{wallet}",
|
|
223
|
+
"description": "Scan with your phone to download on iOS or Android",
|
|
224
|
+
"continue": {
|
|
225
|
+
"label": "Continue"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
|
|
229
|
+
"get_instructions": {
|
|
230
|
+
"mobile": {
|
|
231
|
+
"connect": {
|
|
232
|
+
"label": "Connect"
|
|
233
|
+
},
|
|
234
|
+
"learn_more": {
|
|
235
|
+
"label": "Learn More"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"extension": {
|
|
239
|
+
"refresh": {
|
|
240
|
+
"label": "Refresh"
|
|
241
|
+
},
|
|
242
|
+
"learn_more": {
|
|
243
|
+
"label": "Learn More"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"desktop": {
|
|
247
|
+
"connect": {
|
|
248
|
+
"label": "Connect"
|
|
249
|
+
},
|
|
250
|
+
"learn_more": {
|
|
251
|
+
"label": "Learn More"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
|
|
256
|
+
"chains": {
|
|
257
|
+
"title": "Switch Networks",
|
|
258
|
+
"wrong_network": "Wrong network detected, switch or disconnect to continue.",
|
|
259
|
+
"confirm": "Confirm in Wallet",
|
|
260
|
+
"switching_not_supported": "Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.",
|
|
261
|
+
"switching_not_supported_fallback": "Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.",
|
|
262
|
+
"disconnect": "Disconnect",
|
|
263
|
+
"connected": "Connected"
|
|
264
|
+
},
|
|
265
|
+
|
|
266
|
+
"profile": {
|
|
267
|
+
"disconnect": {
|
|
268
|
+
"label": "Disconnect"
|
|
269
|
+
},
|
|
270
|
+
"copy_address": {
|
|
271
|
+
"label": "Copy Address",
|
|
272
|
+
"copied": "Copied!"
|
|
273
|
+
},
|
|
274
|
+
"explorer": {
|
|
275
|
+
"label": "View more on explorer"
|
|
276
|
+
},
|
|
277
|
+
"transactions": {
|
|
278
|
+
"description": "%{appName} transactions will appear here...",
|
|
279
|
+
"description_fallback": "Your transactions will appear here...",
|
|
280
|
+
"recent": {
|
|
281
|
+
"title": "Recent Transactions"
|
|
282
|
+
},
|
|
283
|
+
"clear": {
|
|
284
|
+
"label": "Clear All"
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
|
|
289
|
+
"wallet_connectors": {
|
|
290
|
+
"ready": {
|
|
291
|
+
"qr_code": {
|
|
292
|
+
"step1": {
|
|
293
|
+
"description": "Add Ready to your home screen for faster access to your wallet.",
|
|
294
|
+
"title": "Open the Ready app"
|
|
295
|
+
},
|
|
296
|
+
"step2": {
|
|
297
|
+
"description": "Create a wallet and username, or import an existing wallet.",
|
|
298
|
+
"title": "Create or Import a Wallet"
|
|
299
|
+
},
|
|
300
|
+
"step3": {
|
|
301
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
302
|
+
"title": "Tap the Scan QR button"
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
|
|
307
|
+
"berasig": {
|
|
308
|
+
"extension": {
|
|
309
|
+
"step1": {
|
|
310
|
+
"title": "Install the BeraSig extension",
|
|
311
|
+
"description": "We recommend pinning BeraSig to your taskbar for easier access to your wallet."
|
|
312
|
+
},
|
|
313
|
+
"step2": {
|
|
314
|
+
"title": "Create a Wallet",
|
|
315
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
316
|
+
},
|
|
317
|
+
"step3": {
|
|
318
|
+
"title": "Refresh your browser",
|
|
319
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
|
|
324
|
+
"best": {
|
|
325
|
+
"qr_code": {
|
|
326
|
+
"step1": {
|
|
327
|
+
"title": "Open the Best Wallet app",
|
|
328
|
+
"description": "Add Best Wallet to your home screen for faster access to your wallet."
|
|
329
|
+
},
|
|
330
|
+
"step2": {
|
|
331
|
+
"title": "Create or Import a Wallet",
|
|
332
|
+
"description": "Create a new wallet or import an existing one."
|
|
333
|
+
},
|
|
334
|
+
"step3": {
|
|
335
|
+
"title": "Tap the QR icon and scan",
|
|
336
|
+
"description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
|
|
341
|
+
"bifrost": {
|
|
342
|
+
"qr_code": {
|
|
343
|
+
"step1": {
|
|
344
|
+
"description": "We recommend putting Bifrost Wallet on your home screen for quicker access.",
|
|
345
|
+
"title": "Open the Bifrost Wallet app"
|
|
346
|
+
},
|
|
347
|
+
"step2": {
|
|
348
|
+
"description": "Create or import a wallet using your recovery phrase.",
|
|
349
|
+
"title": "Create or Import a Wallet"
|
|
350
|
+
},
|
|
351
|
+
"step3": {
|
|
352
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
353
|
+
"title": "Tap the scan button"
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
|
|
358
|
+
"bitget": {
|
|
359
|
+
"qr_code": {
|
|
360
|
+
"step1": {
|
|
361
|
+
"description": "We recommend putting Bitget Wallet on your home screen for quicker access.",
|
|
362
|
+
"title": "Open the Bitget Wallet app"
|
|
363
|
+
},
|
|
364
|
+
"step2": {
|
|
365
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
366
|
+
"title": "Create or Import a Wallet"
|
|
367
|
+
},
|
|
368
|
+
"step3": {
|
|
369
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
370
|
+
"title": "Tap the scan button"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
|
|
374
|
+
"extension": {
|
|
375
|
+
"step1": {
|
|
376
|
+
"description": "We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.",
|
|
377
|
+
"title": "Install the Bitget Wallet extension"
|
|
378
|
+
},
|
|
379
|
+
"step2": {
|
|
380
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
381
|
+
"title": "Create or Import a Wallet"
|
|
382
|
+
},
|
|
383
|
+
"step3": {
|
|
384
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
385
|
+
"title": "Refresh your browser"
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
|
|
390
|
+
"bitski": {
|
|
391
|
+
"extension": {
|
|
392
|
+
"step1": {
|
|
393
|
+
"description": "We recommend pinning Bitski to your taskbar for quicker access to your wallet.",
|
|
394
|
+
"title": "Install the Bitski extension"
|
|
395
|
+
},
|
|
396
|
+
"step2": {
|
|
397
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
398
|
+
"title": "Create or Import a Wallet"
|
|
399
|
+
},
|
|
400
|
+
"step3": {
|
|
401
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
402
|
+
"title": "Refresh your browser"
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
|
|
407
|
+
"bitverse": {
|
|
408
|
+
"qr_code": {
|
|
409
|
+
"step1": {
|
|
410
|
+
"title": "Open the Bitverse Wallet app",
|
|
411
|
+
"description": "Add Bitverse Wallet to your home screen for faster access to your wallet."
|
|
412
|
+
},
|
|
413
|
+
"step2": {
|
|
414
|
+
"title": "Create or Import a Wallet",
|
|
415
|
+
"description": "Create a new wallet or import an existing one."
|
|
416
|
+
},
|
|
417
|
+
"step3": {
|
|
418
|
+
"title": "Tap the QR icon and scan",
|
|
419
|
+
"description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
|
|
424
|
+
"bloom": {
|
|
425
|
+
"desktop": {
|
|
426
|
+
"step1": {
|
|
427
|
+
"title": "Open the Bloom Wallet app",
|
|
428
|
+
"description": "We recommend putting Bloom Wallet on your home screen for quicker access."
|
|
429
|
+
},
|
|
430
|
+
"step2": {
|
|
431
|
+
"description": "Create or import a wallet using your recovery phrase.",
|
|
432
|
+
"title": "Create or Import a Wallet"
|
|
433
|
+
},
|
|
434
|
+
"step3": {
|
|
435
|
+
"description": "After you have a wallet, click on Connect to connect via Bloom. A connection prompt in the app will appear for you to confirm the connection.",
|
|
436
|
+
"title": "Click on Connect"
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
|
|
441
|
+
"bybit": {
|
|
442
|
+
"qr_code": {
|
|
443
|
+
"step1": {
|
|
444
|
+
"description": "We recommend putting Bybit on your home screen for faster access to your wallet.",
|
|
445
|
+
"title": "Open the Bybit app"
|
|
446
|
+
},
|
|
447
|
+
"step2": {
|
|
448
|
+
"description": "You can easily backup your wallet using our backup feature on your phone.",
|
|
449
|
+
"title": "Create or Import a Wallet"
|
|
450
|
+
},
|
|
451
|
+
"step3": {
|
|
452
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
453
|
+
"title": "Tap the scan button"
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
|
|
457
|
+
"extension": {
|
|
458
|
+
"step1": {
|
|
459
|
+
"description": "Click at the top right of your browser and pin Bybit Wallet for easy access.",
|
|
460
|
+
"title": "Install the Bybit Wallet extension"
|
|
461
|
+
},
|
|
462
|
+
"step2": {
|
|
463
|
+
"description": "Create a new wallet or import an existing one.",
|
|
464
|
+
"title": "Create or Import a wallet"
|
|
465
|
+
},
|
|
466
|
+
"step3": {
|
|
467
|
+
"description": "Once you set up Bybit Wallet, click below to refresh the browser and load up the extension.",
|
|
468
|
+
"title": "Refresh your browser"
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
|
|
473
|
+
"binance": {
|
|
474
|
+
"qr_code": {
|
|
475
|
+
"step1": {
|
|
476
|
+
"description": "We recommend putting Binance on your home screen for faster access to your wallet.",
|
|
477
|
+
"title": "Open the Binance app"
|
|
478
|
+
},
|
|
479
|
+
"step2": {
|
|
480
|
+
"description": "You can easily backup your wallet using our backup feature on your phone.",
|
|
481
|
+
"title": "Create or Import a Wallet"
|
|
482
|
+
},
|
|
483
|
+
"step3": {
|
|
484
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
485
|
+
"title": "Tap the WalletConnect button"
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
"extension": {
|
|
489
|
+
"step1": {
|
|
490
|
+
"title": "Install the Binance Wallet extension",
|
|
491
|
+
"description": "We recommend pinning Binance Wallet to your taskbar for quicker access to your wallet."
|
|
492
|
+
},
|
|
493
|
+
"step2": {
|
|
494
|
+
"title": "Create or Import a Wallet",
|
|
495
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
496
|
+
},
|
|
497
|
+
"step3": {
|
|
498
|
+
"title": "Refresh your browser",
|
|
499
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
|
|
504
|
+
"coin98": {
|
|
505
|
+
"qr_code": {
|
|
506
|
+
"step1": {
|
|
507
|
+
"description": "We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.",
|
|
508
|
+
"title": "Open the Coin98 Wallet app"
|
|
509
|
+
},
|
|
510
|
+
"step2": {
|
|
511
|
+
"description": "You can easily backup your wallet using our backup feature on your phone.",
|
|
512
|
+
"title": "Create or Import a Wallet"
|
|
513
|
+
},
|
|
514
|
+
"step3": {
|
|
515
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
516
|
+
"title": "Tap the WalletConnect button"
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
|
|
520
|
+
"extension": {
|
|
521
|
+
"step1": {
|
|
522
|
+
"description": "Click at the top right of your browser and pin Coin98 Wallet for easy access.",
|
|
523
|
+
"title": "Install the Coin98 Wallet extension"
|
|
524
|
+
},
|
|
525
|
+
"step2": {
|
|
526
|
+
"description": "Create a new wallet or import an existing one.",
|
|
527
|
+
"title": "Create or Import a wallet"
|
|
528
|
+
},
|
|
529
|
+
"step3": {
|
|
530
|
+
"description": "Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.",
|
|
531
|
+
"title": "Refresh your browser"
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
|
|
536
|
+
"coinbase": {
|
|
537
|
+
"qr_code": {
|
|
538
|
+
"step1": {
|
|
539
|
+
"description": "We recommend putting Coinbase Wallet on your home screen for quicker access.",
|
|
540
|
+
"title": "Open the Coinbase Wallet app"
|
|
541
|
+
},
|
|
542
|
+
"step2": {
|
|
543
|
+
"description": "You can easily backup your wallet using the cloud backup feature.",
|
|
544
|
+
"title": "Create or Import a Wallet"
|
|
545
|
+
},
|
|
546
|
+
"step3": {
|
|
547
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
548
|
+
"title": "Tap the scan button"
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
|
|
552
|
+
"extension": {
|
|
553
|
+
"step1": {
|
|
554
|
+
"description": "We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.",
|
|
555
|
+
"title": "Install the Coinbase Wallet extension"
|
|
556
|
+
},
|
|
557
|
+
"step2": {
|
|
558
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
559
|
+
"title": "Create or Import a Wallet"
|
|
560
|
+
},
|
|
561
|
+
"step3": {
|
|
562
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
563
|
+
"title": "Refresh your browser"
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
|
|
568
|
+
"compass": {
|
|
569
|
+
"extension": {
|
|
570
|
+
"step1": {
|
|
571
|
+
"description": "We recommend pinning Compass Wallet to your taskbar for quicker access to your wallet.",
|
|
572
|
+
"title": "Install the Compass Wallet extension"
|
|
573
|
+
},
|
|
574
|
+
"step2": {
|
|
575
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
576
|
+
"title": "Create or Import a Wallet"
|
|
577
|
+
},
|
|
578
|
+
"step3": {
|
|
579
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
580
|
+
"title": "Refresh your browser"
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
|
|
585
|
+
"core": {
|
|
586
|
+
"qr_code": {
|
|
587
|
+
"step1": {
|
|
588
|
+
"description": "We recommend putting Core on your home screen for faster access to your wallet.",
|
|
589
|
+
"title": "Open the Core app"
|
|
590
|
+
},
|
|
591
|
+
"step2": {
|
|
592
|
+
"description": "You can easily backup your wallet using our backup feature on your phone.",
|
|
593
|
+
"title": "Create or Import a Wallet"
|
|
594
|
+
},
|
|
595
|
+
"step3": {
|
|
596
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
597
|
+
"title": "Tap the WalletConnect button"
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
|
|
601
|
+
"extension": {
|
|
602
|
+
"step1": {
|
|
603
|
+
"description": "We recommend pinning Core to your taskbar for quicker access to your wallet.",
|
|
604
|
+
"title": "Install the Core extension"
|
|
605
|
+
},
|
|
606
|
+
"step2": {
|
|
607
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
608
|
+
"title": "Create or Import a Wallet"
|
|
609
|
+
},
|
|
610
|
+
"step3": {
|
|
611
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
612
|
+
"title": "Refresh your browser"
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
|
|
617
|
+
"fox": {
|
|
618
|
+
"qr_code": {
|
|
619
|
+
"step1": {
|
|
620
|
+
"description": "We recommend putting FoxWallet on your home screen for quicker access.",
|
|
621
|
+
"title": "Open the FoxWallet app"
|
|
622
|
+
},
|
|
623
|
+
"step2": {
|
|
624
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
625
|
+
"title": "Create or Import a Wallet"
|
|
626
|
+
},
|
|
627
|
+
"step3": {
|
|
628
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
629
|
+
"title": "Tap the scan button"
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
|
|
634
|
+
"frontier": {
|
|
635
|
+
"qr_code": {
|
|
636
|
+
"step1": {
|
|
637
|
+
"description": "We recommend putting Frontier Wallet on your home screen for quicker access.",
|
|
638
|
+
"title": "Open the Frontier Wallet app"
|
|
639
|
+
},
|
|
640
|
+
"step2": {
|
|
641
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
642
|
+
"title": "Create or Import a Wallet"
|
|
643
|
+
},
|
|
644
|
+
"step3": {
|
|
645
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
646
|
+
"title": "Tap the scan button"
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
|
|
650
|
+
"extension": {
|
|
651
|
+
"step1": {
|
|
652
|
+
"description": "We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.",
|
|
653
|
+
"title": "Install the Frontier Wallet extension"
|
|
654
|
+
},
|
|
655
|
+
"step2": {
|
|
656
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
657
|
+
"title": "Create or Import a Wallet"
|
|
658
|
+
},
|
|
659
|
+
"step3": {
|
|
660
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
661
|
+
"title": "Refresh your browser"
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
|
|
666
|
+
"im_token": {
|
|
667
|
+
"qr_code": {
|
|
668
|
+
"step1": {
|
|
669
|
+
"title": "Open the imToken app",
|
|
670
|
+
"description": "Put imToken app on your home screen for faster access to your wallet."
|
|
671
|
+
},
|
|
672
|
+
"step2": {
|
|
673
|
+
"title": "Create or Import a Wallet",
|
|
674
|
+
"description": "Create a new wallet or import an existing one."
|
|
675
|
+
},
|
|
676
|
+
"step3": {
|
|
677
|
+
"title": "Tap Scanner Icon in top right corner",
|
|
678
|
+
"description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
},
|
|
682
|
+
|
|
683
|
+
"iopay": {
|
|
684
|
+
"qr_code": {
|
|
685
|
+
"step1": {
|
|
686
|
+
"description": "We recommend putting ioPay on your home screen for faster access to your wallet.",
|
|
687
|
+
"title": "Open the ioPay app"
|
|
688
|
+
},
|
|
689
|
+
"step2": {
|
|
690
|
+
"description": "You can easily backup your wallet using our backup feature on your phone.",
|
|
691
|
+
"title": "Create or Import a Wallet"
|
|
692
|
+
},
|
|
693
|
+
"step3": {
|
|
694
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
695
|
+
"title": "Tap the WalletConnect button"
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
},
|
|
699
|
+
|
|
700
|
+
"kaikas": {
|
|
701
|
+
"extension": {
|
|
702
|
+
"step1": {
|
|
703
|
+
"description": "We recommend pinning Kaikas to your taskbar for quicker access to your wallet.",
|
|
704
|
+
"title": "Install the Kaikas extension"
|
|
705
|
+
},
|
|
706
|
+
"step2": {
|
|
707
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
708
|
+
"title": "Create or Import a Wallet"
|
|
709
|
+
},
|
|
710
|
+
"step3": {
|
|
711
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
712
|
+
"title": "Refresh your browser"
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
"qr_code": {
|
|
716
|
+
"step1": {
|
|
717
|
+
"title": "Open the Kaikas app",
|
|
718
|
+
"description": "Put Kaikas app on your home screen for faster access to your wallet."
|
|
719
|
+
},
|
|
720
|
+
"step2": {
|
|
721
|
+
"title": "Create or Import a Wallet",
|
|
722
|
+
"description": "Create a new wallet or import an existing one."
|
|
723
|
+
},
|
|
724
|
+
"step3": {
|
|
725
|
+
"title": "Tap Scanner Icon in top right corner",
|
|
726
|
+
"description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
|
|
731
|
+
"kaia": {
|
|
732
|
+
"extension": {
|
|
733
|
+
"step1": {
|
|
734
|
+
"description": "We recommend pinning Kaia to your taskbar for quicker access to your wallet.",
|
|
735
|
+
"title": "Install the Kaia extension"
|
|
736
|
+
},
|
|
737
|
+
"step2": {
|
|
738
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
739
|
+
"title": "Create or Import a Wallet"
|
|
740
|
+
},
|
|
741
|
+
"step3": {
|
|
742
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
743
|
+
"title": "Refresh your browser"
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
"qr_code": {
|
|
747
|
+
"step1": {
|
|
748
|
+
"title": "Open the Kaia app",
|
|
749
|
+
"description": "Put Kaia app on your home screen for faster access to your wallet."
|
|
750
|
+
},
|
|
751
|
+
"step2": {
|
|
752
|
+
"title": "Create or Import a Wallet",
|
|
753
|
+
"description": "Create a new wallet or import an existing one."
|
|
754
|
+
},
|
|
755
|
+
"step3": {
|
|
756
|
+
"title": "Tap Scanner Icon in top right corner",
|
|
757
|
+
"description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
},
|
|
761
|
+
|
|
762
|
+
"kraken": {
|
|
763
|
+
"qr_code": {
|
|
764
|
+
"step1": {
|
|
765
|
+
"title": "Open the Kraken Wallet app",
|
|
766
|
+
"description": "Add Kraken Wallet to your home screen for faster access to your wallet."
|
|
767
|
+
},
|
|
768
|
+
"step2": {
|
|
769
|
+
"title": "Create or Import a Wallet",
|
|
770
|
+
"description": "Create a new wallet or import an existing one."
|
|
771
|
+
},
|
|
772
|
+
"step3": {
|
|
773
|
+
"title": "Tap the QR icon and scan",
|
|
774
|
+
"description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
|
|
779
|
+
"kresus": {
|
|
780
|
+
"qr_code": {
|
|
781
|
+
"step1": {
|
|
782
|
+
"title": "Open the Kresus Wallet app",
|
|
783
|
+
"description": "Add Kresus Wallet to your home screen for faster access to your wallet."
|
|
784
|
+
},
|
|
785
|
+
"step2": {
|
|
786
|
+
"title": "Create or Import a Wallet",
|
|
787
|
+
"description": "Create a new wallet or import an existing one."
|
|
788
|
+
},
|
|
789
|
+
"step3": {
|
|
790
|
+
"title": "Tap the QR icon and scan",
|
|
791
|
+
"description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
},
|
|
795
|
+
|
|
796
|
+
"magicEden": {
|
|
797
|
+
"extension": {
|
|
798
|
+
"step1": {
|
|
799
|
+
"title": "Install the Magic Eden extension",
|
|
800
|
+
"description": "We recommend pinning Magic Eden to your taskbar for easier access to your wallet."
|
|
801
|
+
},
|
|
802
|
+
"step2": {
|
|
803
|
+
"title": "Create or Import a Wallet",
|
|
804
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."
|
|
805
|
+
},
|
|
806
|
+
"step3": {
|
|
807
|
+
"title": "Refresh your browser",
|
|
808
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
|
|
813
|
+
"metamask": {
|
|
814
|
+
"qr_code": {
|
|
815
|
+
"step1": {
|
|
816
|
+
"title": "Open the MetaMask app",
|
|
817
|
+
"description": "We recommend putting MetaMask on your home screen for quicker access."
|
|
818
|
+
},
|
|
819
|
+
"step2": {
|
|
820
|
+
"title": "Create or Import a Wallet",
|
|
821
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
822
|
+
},
|
|
823
|
+
"step3": {
|
|
824
|
+
"title": "Tap the scan button",
|
|
825
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
|
|
829
|
+
"extension": {
|
|
830
|
+
"step1": {
|
|
831
|
+
"title": "Install the MetaMask extension",
|
|
832
|
+
"description": "We recommend pinning MetaMask to your taskbar for quicker access to your wallet."
|
|
833
|
+
},
|
|
834
|
+
"step2": {
|
|
835
|
+
"title": "Create or Import a Wallet",
|
|
836
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
837
|
+
},
|
|
838
|
+
"step3": {
|
|
839
|
+
"title": "Refresh your browser",
|
|
840
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
|
|
845
|
+
"nestwallet": {
|
|
846
|
+
"extension": {
|
|
847
|
+
"step1": {
|
|
848
|
+
"title": "Install the NestWallet extension",
|
|
849
|
+
"description": "We recommend pinning NestWallet to your taskbar for quicker access to your wallet."
|
|
850
|
+
},
|
|
851
|
+
"step2": {
|
|
852
|
+
"title": "Create or Import a Wallet",
|
|
853
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
854
|
+
},
|
|
855
|
+
"step3": {
|
|
856
|
+
"title": "Refresh your browser",
|
|
857
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
},
|
|
861
|
+
|
|
862
|
+
"okx": {
|
|
863
|
+
"qr_code": {
|
|
864
|
+
"step1": {
|
|
865
|
+
"title": "Open the OKX Wallet app",
|
|
866
|
+
"description": "We recommend putting OKX Wallet on your home screen for quicker access."
|
|
867
|
+
},
|
|
868
|
+
"step2": {
|
|
869
|
+
"title": "Create or Import a Wallet",
|
|
870
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
871
|
+
},
|
|
872
|
+
"step3": {
|
|
873
|
+
"title": "Tap the scan button",
|
|
874
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
875
|
+
}
|
|
876
|
+
},
|
|
877
|
+
|
|
878
|
+
"extension": {
|
|
879
|
+
"step1": {
|
|
880
|
+
"title": "Install the OKX Wallet extension",
|
|
881
|
+
"description": "We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet."
|
|
882
|
+
},
|
|
883
|
+
"step2": {
|
|
884
|
+
"title": "Create or Import a Wallet",
|
|
885
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
886
|
+
},
|
|
887
|
+
"step3": {
|
|
888
|
+
"title": "Refresh your browser",
|
|
889
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
},
|
|
893
|
+
|
|
894
|
+
"omni": {
|
|
895
|
+
"qr_code": {
|
|
896
|
+
"step1": {
|
|
897
|
+
"title": "Open the Omni app",
|
|
898
|
+
"description": "Add Omni to your home screen for faster access to your wallet."
|
|
899
|
+
},
|
|
900
|
+
"step2": {
|
|
901
|
+
"title": "Create or Import a Wallet",
|
|
902
|
+
"description": "Create a new wallet or import an existing one."
|
|
903
|
+
},
|
|
904
|
+
"step3": {
|
|
905
|
+
"title": "Tap the QR icon and scan",
|
|
906
|
+
"description": "Tap the QR icon on your home screen, scan the code and confirm the prompt to connect."
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
},
|
|
910
|
+
|
|
911
|
+
"1inch": {
|
|
912
|
+
"qr_code": {
|
|
913
|
+
"step1": {
|
|
914
|
+
"description": "Put 1inch Wallet on your home screen for faster access to your wallet.",
|
|
915
|
+
"title": "Open the 1inch Wallet app"
|
|
916
|
+
},
|
|
917
|
+
"step2": {
|
|
918
|
+
"description": "Create a wallet and username, or import an existing wallet.",
|
|
919
|
+
"title": "Create or Import a Wallet"
|
|
920
|
+
},
|
|
921
|
+
"step3": {
|
|
922
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
923
|
+
"title": "Tap the Scan QR button"
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
|
|
928
|
+
"token_pocket": {
|
|
929
|
+
"qr_code": {
|
|
930
|
+
"step1": {
|
|
931
|
+
"title": "Open the TokenPocket app",
|
|
932
|
+
"description": "We recommend putting TokenPocket on your home screen for quicker access."
|
|
933
|
+
},
|
|
934
|
+
"step2": {
|
|
935
|
+
"title": "Create or Import a Wallet",
|
|
936
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
937
|
+
},
|
|
938
|
+
"step3": {
|
|
939
|
+
"title": "Tap the scan button",
|
|
940
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
941
|
+
}
|
|
942
|
+
},
|
|
943
|
+
|
|
944
|
+
"extension": {
|
|
945
|
+
"step1": {
|
|
946
|
+
"title": "Install the TokenPocket extension",
|
|
947
|
+
"description": "We recommend pinning TokenPocket to your taskbar for quicker access to your wallet."
|
|
948
|
+
},
|
|
949
|
+
"step2": {
|
|
950
|
+
"title": "Create or Import a Wallet",
|
|
951
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
952
|
+
},
|
|
953
|
+
"step3": {
|
|
954
|
+
"title": "Refresh your browser",
|
|
955
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
},
|
|
959
|
+
|
|
960
|
+
"trust": {
|
|
961
|
+
"qr_code": {
|
|
962
|
+
"step1": {
|
|
963
|
+
"title": "Open the Trust Wallet app",
|
|
964
|
+
"description": "Put Trust Wallet on your home screen for faster access to your wallet."
|
|
965
|
+
},
|
|
966
|
+
"step2": {
|
|
967
|
+
"title": "Create or Import a Wallet",
|
|
968
|
+
"description": "Create a new wallet or import an existing one."
|
|
969
|
+
},
|
|
970
|
+
"step3": {
|
|
971
|
+
"title": "Tap WalletConnect in Settings",
|
|
972
|
+
"description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
|
|
973
|
+
}
|
|
974
|
+
},
|
|
975
|
+
|
|
976
|
+
"extension": {
|
|
977
|
+
"step1": {
|
|
978
|
+
"title": "Install the Trust Wallet extension",
|
|
979
|
+
"description": "Click at the top right of your browser and pin Trust Wallet for easy access."
|
|
980
|
+
},
|
|
981
|
+
"step2": {
|
|
982
|
+
"title": "Create or Import a wallet",
|
|
983
|
+
"description": "Create a new wallet or import an existing one."
|
|
984
|
+
},
|
|
985
|
+
"step3": {
|
|
986
|
+
"title": "Refresh your browser",
|
|
987
|
+
"description": "Once you set up Trust Wallet, click below to refresh the browser and load up the extension."
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
},
|
|
991
|
+
|
|
992
|
+
"uniswap": {
|
|
993
|
+
"qr_code": {
|
|
994
|
+
"step1": {
|
|
995
|
+
"title": "Open the Uniswap app",
|
|
996
|
+
"description": "Add Uniswap Wallet to your home screen for faster access to your wallet."
|
|
997
|
+
},
|
|
998
|
+
"step2": {
|
|
999
|
+
"title": "Create or Import a Wallet",
|
|
1000
|
+
"description": "Create a new wallet or import an existing one."
|
|
1001
|
+
},
|
|
1002
|
+
"step3": {
|
|
1003
|
+
"title": "Tap the QR icon and scan",
|
|
1004
|
+
"description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
},
|
|
1008
|
+
|
|
1009
|
+
"zerion": {
|
|
1010
|
+
"qr_code": {
|
|
1011
|
+
"step1": {
|
|
1012
|
+
"title": "Open the Zerion app",
|
|
1013
|
+
"description": "We recommend putting Zerion on your home screen for quicker access."
|
|
1014
|
+
},
|
|
1015
|
+
"step2": {
|
|
1016
|
+
"title": "Create or Import a Wallet",
|
|
1017
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1018
|
+
},
|
|
1019
|
+
"step3": {
|
|
1020
|
+
"title": "Tap the scan button",
|
|
1021
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
1022
|
+
}
|
|
1023
|
+
},
|
|
1024
|
+
|
|
1025
|
+
"extension": {
|
|
1026
|
+
"step1": {
|
|
1027
|
+
"title": "Install the Zerion extension",
|
|
1028
|
+
"description": "We recommend pinning Zerion to your taskbar for quicker access to your wallet."
|
|
1029
|
+
},
|
|
1030
|
+
"step2": {
|
|
1031
|
+
"title": "Create or Import a Wallet",
|
|
1032
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1033
|
+
},
|
|
1034
|
+
"step3": {
|
|
1035
|
+
"title": "Refresh your browser",
|
|
1036
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
},
|
|
1040
|
+
|
|
1041
|
+
"rainbow": {
|
|
1042
|
+
"qr_code": {
|
|
1043
|
+
"step1": {
|
|
1044
|
+
"title": "Open the Rainbow app",
|
|
1045
|
+
"description": "We recommend putting Rainbow on your home screen for faster access to your wallet."
|
|
1046
|
+
},
|
|
1047
|
+
"step2": {
|
|
1048
|
+
"title": "Create or Import a Wallet",
|
|
1049
|
+
"description": "You can easily backup your wallet using our backup feature on your phone."
|
|
1050
|
+
},
|
|
1051
|
+
"step3": {
|
|
1052
|
+
"title": "Tap the scan button",
|
|
1053
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
},
|
|
1057
|
+
|
|
1058
|
+
"enkrypt": {
|
|
1059
|
+
"extension": {
|
|
1060
|
+
"step1": {
|
|
1061
|
+
"description": "We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.",
|
|
1062
|
+
"title": "Install the Enkrypt Wallet extension"
|
|
1063
|
+
},
|
|
1064
|
+
"step2": {
|
|
1065
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
1066
|
+
"title": "Create or Import a Wallet"
|
|
1067
|
+
},
|
|
1068
|
+
"step3": {
|
|
1069
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
1070
|
+
"title": "Refresh your browser"
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
},
|
|
1074
|
+
|
|
1075
|
+
"frame": {
|
|
1076
|
+
"extension": {
|
|
1077
|
+
"step1": {
|
|
1078
|
+
"description": "We recommend pinning Frame to your taskbar for quicker access to your wallet.",
|
|
1079
|
+
"title": "Install Frame & the companion extension"
|
|
1080
|
+
},
|
|
1081
|
+
"step2": {
|
|
1082
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
1083
|
+
"title": "Create or Import a Wallet"
|
|
1084
|
+
},
|
|
1085
|
+
"step3": {
|
|
1086
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
1087
|
+
"title": "Refresh your browser"
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
},
|
|
1091
|
+
|
|
1092
|
+
"one_key": {
|
|
1093
|
+
"extension": {
|
|
1094
|
+
"step1": {
|
|
1095
|
+
"title": "Install the OneKey Wallet extension",
|
|
1096
|
+
"description": "We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet."
|
|
1097
|
+
},
|
|
1098
|
+
"step2": {
|
|
1099
|
+
"title": "Create or Import a Wallet",
|
|
1100
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1101
|
+
},
|
|
1102
|
+
"step3": {
|
|
1103
|
+
"title": "Refresh your browser",
|
|
1104
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
},
|
|
1108
|
+
|
|
1109
|
+
"paraswap": {
|
|
1110
|
+
"qr_code": {
|
|
1111
|
+
"step1": {
|
|
1112
|
+
"title": "Open the ParaSwap app",
|
|
1113
|
+
"description": "Add ParaSwap Wallet to your home screen for faster access to your wallet."
|
|
1114
|
+
},
|
|
1115
|
+
"step2": {
|
|
1116
|
+
"title": "Create or Import a Wallet",
|
|
1117
|
+
"description": "Create a new wallet or import an existing one."
|
|
1118
|
+
},
|
|
1119
|
+
"step3": {
|
|
1120
|
+
"title": "Tap the QR icon and scan",
|
|
1121
|
+
"description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
},
|
|
1125
|
+
|
|
1126
|
+
"phantom": {
|
|
1127
|
+
"extension": {
|
|
1128
|
+
"step1": {
|
|
1129
|
+
"title": "Install the Phantom extension",
|
|
1130
|
+
"description": "We recommend pinning Phantom to your taskbar for easier access to your wallet."
|
|
1131
|
+
},
|
|
1132
|
+
"step2": {
|
|
1133
|
+
"title": "Create or Import a Wallet",
|
|
1134
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."
|
|
1135
|
+
},
|
|
1136
|
+
"step3": {
|
|
1137
|
+
"title": "Refresh your browser",
|
|
1138
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
},
|
|
1142
|
+
|
|
1143
|
+
"rabby": {
|
|
1144
|
+
"extension": {
|
|
1145
|
+
"step1": {
|
|
1146
|
+
"title": "Install the Rabby extension",
|
|
1147
|
+
"description": "We recommend pinning Rabby to your taskbar for quicker access to your wallet."
|
|
1148
|
+
},
|
|
1149
|
+
"step2": {
|
|
1150
|
+
"title": "Create or Import a Wallet",
|
|
1151
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1152
|
+
},
|
|
1153
|
+
"step3": {
|
|
1154
|
+
"title": "Refresh your browser",
|
|
1155
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
},
|
|
1159
|
+
|
|
1160
|
+
"ronin": {
|
|
1161
|
+
"qr_code": {
|
|
1162
|
+
"step1": {
|
|
1163
|
+
"description": "We recommend putting Ronin Wallet on your home screen for quicker access.",
|
|
1164
|
+
"title": "Open the Ronin Wallet app"
|
|
1165
|
+
},
|
|
1166
|
+
"step2": {
|
|
1167
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
1168
|
+
"title": "Create or Import a Wallet"
|
|
1169
|
+
},
|
|
1170
|
+
"step3": {
|
|
1171
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
1172
|
+
"title": "Tap the scan button"
|
|
1173
|
+
}
|
|
1174
|
+
},
|
|
1175
|
+
|
|
1176
|
+
"extension": {
|
|
1177
|
+
"step1": {
|
|
1178
|
+
"description": "We recommend pinning Ronin Wallet to your taskbar for quicker access to your wallet.",
|
|
1179
|
+
"title": "Install the Ronin Wallet extension"
|
|
1180
|
+
},
|
|
1181
|
+
"step2": {
|
|
1182
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
1183
|
+
"title": "Create or Import a Wallet"
|
|
1184
|
+
},
|
|
1185
|
+
"step3": {
|
|
1186
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
1187
|
+
"title": "Refresh your browser"
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
},
|
|
1191
|
+
|
|
1192
|
+
"ramper": {
|
|
1193
|
+
"extension": {
|
|
1194
|
+
"step1": {
|
|
1195
|
+
"title": "Install the Ramper extension",
|
|
1196
|
+
"description": "We recommend pinning Ramper to your taskbar for easier access to your wallet."
|
|
1197
|
+
},
|
|
1198
|
+
"step2": {
|
|
1199
|
+
"title": "Create a Wallet",
|
|
1200
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1201
|
+
},
|
|
1202
|
+
"step3": {
|
|
1203
|
+
"title": "Refresh your browser",
|
|
1204
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
},
|
|
1208
|
+
|
|
1209
|
+
"safeheron": {
|
|
1210
|
+
"extension": {
|
|
1211
|
+
"step1": {
|
|
1212
|
+
"title": "Install the Core extension",
|
|
1213
|
+
"description": "We recommend pinning Safeheron to your taskbar for quicker access to your wallet."
|
|
1214
|
+
},
|
|
1215
|
+
"step2": {
|
|
1216
|
+
"title": "Create or Import a Wallet",
|
|
1217
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1218
|
+
},
|
|
1219
|
+
"step3": {
|
|
1220
|
+
"title": "Refresh your browser",
|
|
1221
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
},
|
|
1225
|
+
|
|
1226
|
+
"taho": {
|
|
1227
|
+
"extension": {
|
|
1228
|
+
"step1": {
|
|
1229
|
+
"title": "Install the Taho extension",
|
|
1230
|
+
"description": "We recommend pinning Taho to your taskbar for quicker access to your wallet."
|
|
1231
|
+
},
|
|
1232
|
+
"step2": {
|
|
1233
|
+
"title": "Create or Import a Wallet",
|
|
1234
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1235
|
+
},
|
|
1236
|
+
"step3": {
|
|
1237
|
+
"title": "Refresh your browser",
|
|
1238
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
},
|
|
1242
|
+
|
|
1243
|
+
"wigwam": {
|
|
1244
|
+
"extension": {
|
|
1245
|
+
"step1": {
|
|
1246
|
+
"title": "Install the Wigwam extension",
|
|
1247
|
+
"description": "We recommend pinning Wigwam to your taskbar for quicker access to your wallet."
|
|
1248
|
+
},
|
|
1249
|
+
"step2": {
|
|
1250
|
+
"title": "Create or Import a Wallet",
|
|
1251
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1252
|
+
},
|
|
1253
|
+
"step3": {
|
|
1254
|
+
"title": "Refresh your browser",
|
|
1255
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
},
|
|
1259
|
+
|
|
1260
|
+
"talisman": {
|
|
1261
|
+
"extension": {
|
|
1262
|
+
"step1": {
|
|
1263
|
+
"title": "Install the Talisman extension",
|
|
1264
|
+
"description": "We recommend pinning Talisman to your taskbar for quicker access to your wallet."
|
|
1265
|
+
},
|
|
1266
|
+
"step2": {
|
|
1267
|
+
"title": "Create or Import an Ethereum Wallet",
|
|
1268
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."
|
|
1269
|
+
},
|
|
1270
|
+
"step3": {
|
|
1271
|
+
"title": "Refresh your browser",
|
|
1272
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
},
|
|
1276
|
+
|
|
1277
|
+
"ctrl": {
|
|
1278
|
+
"extension": {
|
|
1279
|
+
"step1": {
|
|
1280
|
+
"title": "Install the CTRL Wallet extension",
|
|
1281
|
+
"description": "We recommend pinning CTRL Wallet to your taskbar for quicker access to your wallet."
|
|
1282
|
+
},
|
|
1283
|
+
"step2": {
|
|
1284
|
+
"title": "Create or Import a Wallet",
|
|
1285
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1286
|
+
},
|
|
1287
|
+
"step3": {
|
|
1288
|
+
"title": "Refresh your browser",
|
|
1289
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
|
|
1294
|
+
"zeal": {
|
|
1295
|
+
"qr_code": {
|
|
1296
|
+
"step1": {
|
|
1297
|
+
"title": "Open the Zeal app",
|
|
1298
|
+
"description": "Add Zeal Wallet to your home screen for faster access to your wallet."
|
|
1299
|
+
},
|
|
1300
|
+
"step2": {
|
|
1301
|
+
"title": "Create or Import a Wallet",
|
|
1302
|
+
"description": "Create a new wallet or import an existing one."
|
|
1303
|
+
},
|
|
1304
|
+
"step3": {
|
|
1305
|
+
"title": "Tap the QR icon and scan",
|
|
1306
|
+
"description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
|
|
1307
|
+
}
|
|
1308
|
+
},
|
|
1309
|
+
"extension": {
|
|
1310
|
+
"step1": {
|
|
1311
|
+
"title": "Install the Zeal extension",
|
|
1312
|
+
"description": "We recommend pinning Zeal to your taskbar for quicker access to your wallet."
|
|
1313
|
+
},
|
|
1314
|
+
"step2": {
|
|
1315
|
+
"title": "Create or Import a Wallet",
|
|
1316
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1317
|
+
},
|
|
1318
|
+
"step3": {
|
|
1319
|
+
"title": "Refresh your browser",
|
|
1320
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
},
|
|
1324
|
+
|
|
1325
|
+
"safepal": {
|
|
1326
|
+
"extension": {
|
|
1327
|
+
"step1": {
|
|
1328
|
+
"title": "Install the SafePal Wallet extension",
|
|
1329
|
+
"description": "Click at the top right of your browser and pin SafePal Wallet for easy access."
|
|
1330
|
+
},
|
|
1331
|
+
"step2": {
|
|
1332
|
+
"title": "Create or Import a wallet",
|
|
1333
|
+
"description": "Create a new wallet or import an existing one."
|
|
1334
|
+
},
|
|
1335
|
+
"step3": {
|
|
1336
|
+
"title": "Refresh your browser",
|
|
1337
|
+
"description": "Once you set up SafePal Wallet, click below to refresh the browser and load up the extension."
|
|
1338
|
+
}
|
|
1339
|
+
},
|
|
1340
|
+
"qr_code": {
|
|
1341
|
+
"step1": {
|
|
1342
|
+
"title": "Open the SafePal Wallet app",
|
|
1343
|
+
"description": "Put SafePal Wallet on your home screen for faster access to your wallet."
|
|
1344
|
+
},
|
|
1345
|
+
"step2": {
|
|
1346
|
+
"title": "Create or Import a Wallet",
|
|
1347
|
+
"description": "Create a new wallet or import an existing one."
|
|
1348
|
+
},
|
|
1349
|
+
"step3": {
|
|
1350
|
+
"title": "Tap WalletConnect in Settings",
|
|
1351
|
+
"description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
},
|
|
1355
|
+
|
|
1356
|
+
"desig": {
|
|
1357
|
+
"extension": {
|
|
1358
|
+
"step1": {
|
|
1359
|
+
"title": "Install the Desig extension",
|
|
1360
|
+
"description": "We recommend pinning Desig to your taskbar for easier access to your wallet."
|
|
1361
|
+
},
|
|
1362
|
+
"step2": {
|
|
1363
|
+
"title": "Create a Wallet",
|
|
1364
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1365
|
+
},
|
|
1366
|
+
"step3": {
|
|
1367
|
+
"title": "Refresh your browser",
|
|
1368
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
},
|
|
1372
|
+
|
|
1373
|
+
"subwallet": {
|
|
1374
|
+
"extension": {
|
|
1375
|
+
"step1": {
|
|
1376
|
+
"title": "Install the SubWallet extension",
|
|
1377
|
+
"description": "We recommend pinning SubWallet to your taskbar for quicker access to your wallet."
|
|
1378
|
+
},
|
|
1379
|
+
"step2": {
|
|
1380
|
+
"title": "Create or Import a Wallet",
|
|
1381
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."
|
|
1382
|
+
},
|
|
1383
|
+
"step3": {
|
|
1384
|
+
"title": "Refresh your browser",
|
|
1385
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1386
|
+
}
|
|
1387
|
+
},
|
|
1388
|
+
"qr_code": {
|
|
1389
|
+
"step1": {
|
|
1390
|
+
"title": "Open the SubWallet app",
|
|
1391
|
+
"description": "We recommend putting SubWallet on your home screen for quicker access."
|
|
1392
|
+
},
|
|
1393
|
+
"step2": {
|
|
1394
|
+
"title": "Create or Import a Wallet",
|
|
1395
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1396
|
+
},
|
|
1397
|
+
"step3": {
|
|
1398
|
+
"title": "Tap the scan button",
|
|
1399
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
},
|
|
1403
|
+
|
|
1404
|
+
"clv": {
|
|
1405
|
+
"extension": {
|
|
1406
|
+
"step1": {
|
|
1407
|
+
"title": "Install the CLV Wallet extension",
|
|
1408
|
+
"description": "We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet."
|
|
1409
|
+
},
|
|
1410
|
+
"step2": {
|
|
1411
|
+
"title": "Create or Import a Wallet",
|
|
1412
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1413
|
+
},
|
|
1414
|
+
"step3": {
|
|
1415
|
+
"title": "Refresh your browser",
|
|
1416
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1417
|
+
}
|
|
1418
|
+
},
|
|
1419
|
+
"qr_code": {
|
|
1420
|
+
"step1": {
|
|
1421
|
+
"title": "Open the CLV Wallet app",
|
|
1422
|
+
"description": "We recommend putting CLV Wallet on your home screen for quicker access."
|
|
1423
|
+
},
|
|
1424
|
+
"step2": {
|
|
1425
|
+
"title": "Create or Import a Wallet",
|
|
1426
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1427
|
+
},
|
|
1428
|
+
"step3": {
|
|
1429
|
+
"title": "Tap the scan button",
|
|
1430
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
},
|
|
1434
|
+
|
|
1435
|
+
"okto": {
|
|
1436
|
+
"qr_code": {
|
|
1437
|
+
"step1": {
|
|
1438
|
+
"title": "Open the Okto app",
|
|
1439
|
+
"description": "Add Okto to your home screen for quick access"
|
|
1440
|
+
},
|
|
1441
|
+
"step2": {
|
|
1442
|
+
"title": "Create an MPC Wallet",
|
|
1443
|
+
"description": "Create an account and generate a wallet"
|
|
1444
|
+
},
|
|
1445
|
+
"step3": {
|
|
1446
|
+
"title": "Tap WalletConnect in Settings",
|
|
1447
|
+
"description": "Tap the Scan QR icon at the top right and confirm the prompt to connect."
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
},
|
|
1451
|
+
|
|
1452
|
+
"ledger": {
|
|
1453
|
+
"desktop": {
|
|
1454
|
+
"step1": {
|
|
1455
|
+
"title": "Open the Ledger Live app",
|
|
1456
|
+
"description": "We recommend putting Ledger Live on your home screen for quicker access."
|
|
1457
|
+
},
|
|
1458
|
+
"step2": {
|
|
1459
|
+
"title": "Set up your Ledger",
|
|
1460
|
+
"description": "Set up a new Ledger or connect to an existing one."
|
|
1461
|
+
},
|
|
1462
|
+
"step3": {
|
|
1463
|
+
"title": "Connect",
|
|
1464
|
+
"description": "A connection prompt will appear for you to connect your wallet."
|
|
1465
|
+
}
|
|
1466
|
+
},
|
|
1467
|
+
"qr_code": {
|
|
1468
|
+
"step1": {
|
|
1469
|
+
"title": "Open the Ledger Live app",
|
|
1470
|
+
"description": "We recommend putting Ledger Live on your home screen for quicker access."
|
|
1471
|
+
},
|
|
1472
|
+
"step2": {
|
|
1473
|
+
"title": "Set up your Ledger",
|
|
1474
|
+
"description": "You can either sync with the desktop app or connect your Ledger."
|
|
1475
|
+
},
|
|
1476
|
+
"step3": {
|
|
1477
|
+
"title": "Scan the code",
|
|
1478
|
+
"description": "Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet."
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
},
|
|
1482
|
+
|
|
1483
|
+
"valora": {
|
|
1484
|
+
"qr_code": {
|
|
1485
|
+
"step1": {
|
|
1486
|
+
"title": "Open the Valora app",
|
|
1487
|
+
"description": "We recommend putting Valora on your home screen for quicker access."
|
|
1488
|
+
},
|
|
1489
|
+
"step2": {
|
|
1490
|
+
"title": "Create or import a wallet",
|
|
1491
|
+
"description": "Create a new wallet or import an existing one."
|
|
1492
|
+
},
|
|
1493
|
+
"step3": {
|
|
1494
|
+
"title": "Tap the scan button",
|
|
1495
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
},
|
|
1499
|
+
|
|
1500
|
+
"gate": {
|
|
1501
|
+
"qr_code": {
|
|
1502
|
+
"step1": {
|
|
1503
|
+
"title": "Open the Gate app",
|
|
1504
|
+
"description": "We recommend putting Gate on your home screen for quicker access."
|
|
1505
|
+
},
|
|
1506
|
+
"step2": {
|
|
1507
|
+
"title": "Create or Import a Wallet",
|
|
1508
|
+
"description": "Create a new wallet or import an existing one."
|
|
1509
|
+
},
|
|
1510
|
+
"step3": {
|
|
1511
|
+
"title": "Tap the scan button",
|
|
1512
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
1513
|
+
}
|
|
1514
|
+
},
|
|
1515
|
+
"extension": {
|
|
1516
|
+
"step1": {
|
|
1517
|
+
"title": "Install the Gate extension",
|
|
1518
|
+
"description": "We recommend pinning Gate to your taskbar for easier access to your wallet."
|
|
1519
|
+
},
|
|
1520
|
+
"step2": {
|
|
1521
|
+
"title": "Create or Import a Wallet",
|
|
1522
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."
|
|
1523
|
+
},
|
|
1524
|
+
"step3": {
|
|
1525
|
+
"title": "Refresh your browser",
|
|
1526
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
1530
|
+
|
|
1531
|
+
"gemini": {
|
|
1532
|
+
"qr_code": {
|
|
1533
|
+
"step1": {
|
|
1534
|
+
"title": "Open keys.gemini.com",
|
|
1535
|
+
"description": "Visit keys.gemini.com on your mobile browser - no app download required."
|
|
1536
|
+
},
|
|
1537
|
+
"step2": {
|
|
1538
|
+
"title": "Create Your Wallet Instantly",
|
|
1539
|
+
"description": "Set up your smart wallet in seconds using your device's built-in authentication."
|
|
1540
|
+
},
|
|
1541
|
+
"step3": {
|
|
1542
|
+
"title": "Scan to Connect",
|
|
1543
|
+
"description": "Scan the QR code to instantly connect your wallet - it just works."
|
|
1544
|
+
}
|
|
1545
|
+
},
|
|
1546
|
+
"extension": {
|
|
1547
|
+
"step1": {
|
|
1548
|
+
"title": "Go to keys.gemini.com",
|
|
1549
|
+
"description": "No extensions or downloads needed - your wallet lives securely in the browser."
|
|
1550
|
+
},
|
|
1551
|
+
"step2": {
|
|
1552
|
+
"title": "One-Click Setup",
|
|
1553
|
+
"description": "Create your smart wallet instantly with passkey authentication - easier than any wallet out there."
|
|
1554
|
+
},
|
|
1555
|
+
"step3": {
|
|
1556
|
+
"title": "Connect and Go",
|
|
1557
|
+
"description": "Approve the connection and you're ready - the unopinionated wallet that just works."
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
},
|
|
1561
|
+
|
|
1562
|
+
"xportal": {
|
|
1563
|
+
"qr_code": {
|
|
1564
|
+
"step1": {
|
|
1565
|
+
"description": "Put xPortal on your home screen for faster access to your wallet.",
|
|
1566
|
+
"title": "Open the xPortal app"
|
|
1567
|
+
},
|
|
1568
|
+
"step2": {
|
|
1569
|
+
"description": "Create a wallet or import an existing one.",
|
|
1570
|
+
"title": "Create or Import a Wallet"
|
|
1571
|
+
},
|
|
1572
|
+
"step3": {
|
|
1573
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
1574
|
+
"title": "Tap the Scan QR button"
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
},
|
|
1578
|
+
|
|
1579
|
+
"mew": {
|
|
1580
|
+
"qr_code": {
|
|
1581
|
+
"step1": {
|
|
1582
|
+
"description": "We recommend putting MEW Wallet on your home screen for quicker access.",
|
|
1583
|
+
"title": "Open the MEW Wallet app"
|
|
1584
|
+
},
|
|
1585
|
+
"step2": {
|
|
1586
|
+
"description": "You can easily backup your wallet using the cloud backup feature.",
|
|
1587
|
+
"title": "Create or Import a Wallet"
|
|
1588
|
+
},
|
|
1589
|
+
"step3": {
|
|
1590
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
1591
|
+
"title": "Tap the scan button"
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
},
|
|
1595
|
+
|
|
1596
|
+
"zilpay": {
|
|
1597
|
+
"qr_code": {
|
|
1598
|
+
"step1": {
|
|
1599
|
+
"title": "Open the ZilPay app",
|
|
1600
|
+
"description": "Add ZilPay to your home screen for faster access to your wallet."
|
|
1601
|
+
},
|
|
1602
|
+
"step2": {
|
|
1603
|
+
"title": "Create or Import a Wallet",
|
|
1604
|
+
"description": "Create a new wallet or import an existing one."
|
|
1605
|
+
},
|
|
1606
|
+
"step3": {
|
|
1607
|
+
"title": "Tap the scan button",
|
|
1608
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
},
|
|
1612
|
+
|
|
1613
|
+
"nova": {
|
|
1614
|
+
"qr_code": {
|
|
1615
|
+
"step1": {
|
|
1616
|
+
"title": "Open the Nova Wallet app",
|
|
1617
|
+
"description": "Add Nova Wallet to your home screen for faster access to your wallet."
|
|
1618
|
+
},
|
|
1619
|
+
"step2": {
|
|
1620
|
+
"title": "Create or Import a Wallet",
|
|
1621
|
+
"description": "Create a new wallet or import an existing one."
|
|
1622
|
+
},
|
|
1623
|
+
"step3": {
|
|
1624
|
+
"title": "Tap the scan button",
|
|
1625
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
`;function t2(e,t){return Object.defineProperty(e,"__recipe__",{value:t,writable:!1}),e}var ih=t2;function ah(e){var{conditions:t}=e;if(!t)throw new Error("Styles have no conditions");function n(r){if(typeof r=="string"||typeof r=="number"||typeof r=="boolean"){if(!t.defaultCondition)throw new Error("No default condition");return{[t.defaultCondition]:r}}if(Array.isArray(r)){if(!("responsiveArray"in t))throw new Error("Responsive arrays are not supported");var o={};for(var s in t.responsiveArray)r[s]!=null&&(o[t.responsiveArray[s]]=r[s]);return o}return r}return ih(n,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:e.conditions}]})}function n2(e){var{conditions:t}=e;if(!t)throw new Error("Styles have no conditions");var n=ah(e);function r(o,s){if(typeof o=="string"||typeof o=="number"||typeof o=="boolean"){if(!t.defaultCondition)throw new Error("No default condition");return s(o,t.defaultCondition)}var i=Array.isArray(o)?n(o):o,a={};for(var c in i)i[c]!=null&&(a[c]=s(i[c],c));return a}return ih(r,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:e.conditions}]})}function r2(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o2(e){var t=r2(e,"string");return typeof t=="symbol"?t:String(t)}function s2(e,t,n){return t=o2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function mi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uu(Object(n),!0).forEach(function(r){s2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var i2=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Object.assign({},...n.map(c=>c.styles)),s=Object.keys(o),i=s.filter(c=>"mappings"in o[c]),a=c=>{var l=[],u={},d=mi({},c),f=!1;for(var h of i){var p=c[h];if(p!=null){var m=o[h];f=!0;for(var g of m.mappings)u[g]=p,d[g]==null&&delete d[g]}}var y=f?mi(mi({},u),d):c,C=function(){var x=y[w],E=o[w];try{if(E.mappings)return 1;if(typeof x=="string"||typeof x=="number")l.push(E.values[x].defaultClass);else if(Array.isArray(x))for(var A=0;A<x.length;A++){var k=x[A];if(k!=null){var j=E.responsiveArray[A];l.push(E.values[k].conditions[j])}}else for(var O in x){var _=x[O];_!=null&&l.push(E.values[_].conditions[O])}}catch(R){throw R}};for(var w in y)C();return e(l.join(" "))};return Object.assign(a,{properties:new Set(s)})},a2=e=>e,c2=function(){return i2(a2)(...arguments)},l2="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";const du=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),fu=4;function u2(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),o=1,s=[0,1];for(let x=1;x<r;x++)s.push(o+=n());let i=n(),a=t;t+=i;let c=0,l=0;function u(){return c==0&&(l=l<<8|e[t++],c=8),l>>--c&1}const d=31,f=2**d,h=f>>>1,p=h>>1,m=f-1;let g=0;for(let x=0;x<d;x++)g=g<<1|u();let y=[],C=0,w=f;for(;;){let x=Math.floor(((g-C+1)*o-1)/w),E=0,A=r;for(;A-E>1;){let O=E+A>>>1;x<s[O]?A=O:E=O}if(E==0)break;y.push(E);let k=C+Math.floor(w*s[E]/o),j=C+Math.floor(w*s[E+1]/o)-1;for(;((k^j)&h)==0;)g=g<<1&m|u(),k=k<<1&m,j=j<<1&m|1;for(;k&~j&p;)g=g&h|g<<1&m>>>1|u(),k=k<<1^h,j=(j^h)<<1|h|1;C=k,w=1+j-k}let v=r-4;return y.map(x=>{switch(x-v){case 3:return v+65792+(e[a++]<<16|e[a++]<<8|e[a++]);case 2:return v+256+(e[a++]<<8|e[a++]);case 1:return v+e[a++];default:return x-1}})}function d2(e){let t=0;return()=>e[t++]}function ch(e){return d2(u2(f2(e)))}function f2(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((o,s)=>t[o.charCodeAt(0)]=s);let n=e.length,r=new Uint8Array(6*n>>3);for(let o=0,s=0,i=0,a=0;o<n;o++)a=a<<6|t[e.charCodeAt(o)],i+=6,i>=8&&(r[s++]=a>>(i-=8));return r}function h2(e){return e&1?~e>>1:e>>1}function p2(e,t){let n=Array(e);for(let r=0,o=0;r<e;r++)n[r]=o+=h2(t());return n}function Hr(e,t=0){let n=[];for(;;){let r=e(),o=e();if(!o)break;t+=r;for(let s=0;s<o;s++)n.push(t+s);t+=o+1}return n}function lh(e){return Vr(()=>{let t=Hr(e);if(t.length)return t})}function uh(e){let t=[];for(;;){let n=e();if(n==0)break;t.push(m2(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(b2(n,e))}return t.flat()}function Vr(e){let t=[];for(;;){let n=e(t.length);if(!n)break;t.push(n)}return t}function dh(e,t,n){let r=Array(e).fill().map(()=>[]);for(let o=0;o<t;o++)p2(e,n).forEach((s,i)=>r[i].push(s));return r}function m2(e,t){let n=1+t(),r=t(),o=Vr(t);return dh(o.length,1+e,t).flatMap((i,a)=>{let[c,...l]=i;return Array(o[a]).fill().map((u,d)=>{let f=d*r;return[c+d*n,l.map(h=>h+f)]})})}function b2(e,t){let n=1+t();return dh(n,1+e,t).map(o=>[o[0],o.slice(1)])}function g2(e){let t=[],n=Hr(e);return o(r([]),[]),t;function r(s){let i=e(),a=Vr(()=>{let c=Hr(e).map(l=>n[l]);if(c.length)return r(c)});return{S:i,B:a,Q:s}}function o({S:s,B:i},a,c){if(!(s&4&&c===a[a.length-1])){s&2&&(c=a[a.length-1]),s&1&&t.push(a);for(let l of i)for(let u of l.Q)o(l,[...a,u],c)}}}function y2(e){return e.toString(16).toUpperCase().padStart(2,"0")}function fh(e){return`{${y2(e)}}`}function w2(e){let t=[];for(let n=0,r=e.length;n<r;){let o=e.codePointAt(n);n+=o<65536?1:2,t.push(o)}return t}function Vn(e){let n=e.length;if(n<4096)return String.fromCodePoint(...e);let r=[];for(let o=0;o<n;)r.push(String.fromCodePoint(...e.slice(o,o+=4096)));return r.join("")}function v2(e,t){let n=e.length,r=n-t.length;for(let o=0;r==0&&o<n;o++)r=e[o]-t[o];return r}var x2="AEUDWAHSCGYATwDVADIAdgAiADQAFAAtABQAIQAPACcADQASAAsAGQAJABIACQARAAUACwAFAAwABQAQAAMABwAEAAoABQAJAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACwANAA0AAwAKAAkABAAdAAYAZwDTAecDNACxCmIB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgPi89uj00MsvBXxEPAGPCDwBnQKoEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJEMAJpIBpob5AERSMAKNoAXqaQLRBMCzEiC+AZ4EWRJJFbEu7QDQLARtEbgECxDwAb/RyAk1AV4nD2cEQQKTAzsAGpobPgAahAGPCrysdy0OAKwAfFIcBAQFUmoA/PtZADkBIadVj2UMUgx5Il4ANQC9vLIBDAHUGVsQ8wCzfQIbGVcCHBZHAZ8CBAgXOhG7AqMZ4M7+1M0UAPDNAWsC+mcJDe8AAQA99zkEXLICyQozAo6lAobcP5JvjQLFzwKD9gU/OD8FEQCtEQL6bW+nAKUEvzjDHsuRyUvOFHcacUz5AqIFRSE2kzsBEQCuaQL5DQTlcgO6twSpTiUgCwIFCAUXBHQEqQV6swAVxUlmTmsCwjqsP/wKJQmXb793UgZBEBsnpRD3DDMBtQE7De1L2ATxBjsEyR99GRkPzZWcCKUt3QztJuMuoYBaI/UqgwXtS/Q83QtNUWgPWQtlCeM6Y4FOAyEBDSKLCt0NOQhtEPMKyWsN5RFFBzkD1UmaAKUHAQsRHTUVtSYQYqwLCTl3Bvsa9guPJq8TKXr8BdMaIQZNASka/wDPLueFsFoxXBxPXwYDCyUjxxSoUCANJUC3eEgaGwcVJakCkUNwSodRNh6TIfY8PQ1mLhNRfAf1PAUZTwuBPJ5Gq0UOEdI+jT1IIklMLAQ1fywvJ4sJzw+FDLl8cgFZCSEJsQxxEzERFzfFCDkHGS2XJCcVCCFGlWCaBPefA/MT0QMLBT8JQQcTA7UcLRMuFSkFDYEk1wLzNtUuswKPVoABFwXLDyUf3xBQR+AO6QibAmUDgyXrAC0VIQAXIpsIQ2MAX4/YUwUuywjHamwjdANnFOdhEXMHkQ5XB6ccMxW/HOFwyF4Lhggoo68JWwF1CZkBXwTjCAk1W4ygIEFnU4tYGJsgYUE/XfwCMQxlFZ9EvYd4AosPaxIbATUBcwc5DQECdxHtEWsQlQjrhgQ1tTP4OiUETyGDIBEKJwNPbM4LJyb5DPhpAaMSYgMMND137merYLYkF/0HGTLFQWAh8QuST80MnBrBGEJULhnkB78D8xrzJ+pBVwX/A6MDEzpNM+4EvQtpCIsJPwBJDqMXB9cYagpxjNABMYsBt5kDV5GDAm+PBjcHCwBnC4cFeeUAHQKnCKMABQDPA1cAOQKtB50AGQCFQQE9AycvASHlAo8DkwgxywGVLwHzKQQbwwwVAPc3bkoCw7ECgGpmogXdWAKOAkk1AU0lBAVOR1EDr3HhANsASwYT30cBFatKyxrjQwHfbysAxwD7AAU1BwVBAc0B820AtwFfCzEJorO1AU3pKQCDABVrAdcCiQDdADUAf/EBUwBNBVn5BdMCT0kBETEYK1dhAbsDHwEzAQ0AeQbLjaXJBx8EbQfTAhAbFeEC7y4HtQEDIt8TzULFAr3eVaFgAmSBAmJCW02vWzcgAqH3AmiYAmYJAp+EOBsLAmY7AmYmBG4EfwN/EwN+kjkGOXcXOYI6IyMCbB0CMjY4CgJtxwJtru+KM2dFKwFnAN4A4QBKBQeYDI0A/gvCAA21AncvAnaiPwJ5S0MCeLodXNtFrkbXAnw/AnrIAn0JAnzwBVkFIEgASH1jJAKBbQKAAAKABQJ/rklYSlsVF0rMAtEBAtDMSycDiE8Dh+ZExZEyAvKhXQMDA65LzkwtJQPPTUxNrwKLPwKK2MEbBx1DZwW3Ao43Ao5cQJeBAo7ZAo5ceFG0UzUKUtRUhQKT+wKTDADpABxVHlWvVdAGLBsplYYy4XhmRTs5ApefAu+yWCGoAFklApaPApZ8nACpWaxaCYFNADsClrUClk5cRFzRApnLAplkXMpdBxkCnJs5wjqdApwWAp+bAp64igAdDzEqDwKd8QKekgC1PWE0Ye8CntMCoG4BqQKenx8Cnk6lY8hkJyUrAievAiZ+AqD7AqBMAqLdAqHEAqYvAqXOAqf/AH0Cp/JofGixAANJahxq0QKs4wKsrgKtZwKtAgJXHQJV3AKx4dcDH05slwKyvQ0CsugXbOBtY21IXwMlzQK2XDs/bpADKUUCuF4CuUcVArkqd3A2cOECvRkCu9pwlgMyEQK+iHICAzNxAr4acyJzTwLDywLDBHOCdEs1RXTgAzynAzyaAz2/AsV8AsZHAsYQiQLIaVECyEQCyU8CyS4CZJ0C3dJ4eWF4rnklS9ADGKNnAgJh9BnzlSR7C16SXrsRAs9rAs9sL0tT0vMTnwDGrQLPcwEp6gNOEn5LBQLcJwLbigLSTwNSXANTXwEBA1WMgIk/AMsW7WBFghyC04LOg40C2scC2d6EEIRJpzwDhqUALwNkDoZxWfkAVQLfZQLeuHN3AuIv7RQB8zAnAfSbAfLShwLr8wLpcHkC6vkC6uQA+UcBuQLuiQLrnJaqlwMC7j8DheCYeXDgcaEC8wMAaQOOFpmTAvcTA5FuA5KHAveYAvnZAvhmmhyaq7s3mx4DnYMC/voBGwA5nxyfswMFjQOmagOm2QDRxQMGaqGIogUJAwxJAtQAPwMA4UEXUwER8wNrB5dnBQCTLSu3r73bAYmZFH8RBDkB+ykFIQ6dCZ8Akv0TtRQrxQL3LScApQC3BbmOkRc/xqdtQS4UJo0uAUMBgPwBtSYAdQMOBG0ALAIWDKEAAAoCPQJqA90DfgSRASBFBSF8CgAFAEQAEwA2EgJ3AQAF1QNr7wrFAgD3Cp8nv7G35QGRIUFCAekUfxE0wIkABAAbAFoCRQKEiwAGOlM6lI1tALg6jzrQAI04wTrcAKUA6ADLATqBOjs5/Dn5O3aJOls7nok6bzkYAVYBMwFsBS81XTWeNa01ZjV1NbY1xTWCNZE10jXhNZ41rTXuNf01sjXBNgI2ETXGNdU2FjYnNd417TYuNj02LjUtITY6Nj02PDbJNwgEkDxXNjg23TcgNw82yiA3iTcwCgSwPGc2JDcZN2w6jTchQtRDB0LgQwscDw8JmyhtKFFVBgDpfwDpsAD+mxQ91wLpNSMArQC9BbeOkRdLxptzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgELgEaJZkC7aMAoQCjBcGOmxdNxrsBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUHqSvAj5Gqwr7YrMUACT9AN3rpF27H7fsd/twPt4l+UW1yQYKBt2Cgy7qJpGiLcdE2P1cQSImUbqJ6ICH27H4knQMIRMrFkHu3sx6tC35Y+eLIh4e4CMKJ4DfyV+8mfta499RCAJ0xfeZR8PsoYOApva9pjGn4PhvyZS7/h5JLuhaucfjuU+Z584wwqNO4hWYmaBCcjgQPale1bjoHzMUbut/zTgxHxBnAyrdKpF4IRMASLBtD/jviyLeCgj8twWjAd3HchN/uqaeRYeHJgl7JEY9/cTrvtfybx/r3Y/NtxJ9dp+MTVmiS9bwBH73s8Di56/Ma+mTPMHq4T1yEG1fWcqr0u+hrGnJEvU1JJAm/maQSrKrazIyvSkDFkj8UUlfBq8baniTGPng6YZRL661rDNw4w/1g2figG0IhXnL7wosd/sVNo5dYSmMBTP5c7rYLjRdCwg8quwljOMPf63D8ICAL0r71XRiyFHdgwHbwfgnPOf4Lzjf2v+j+IiDHG2isp5yUnzSDyDRb4i/Vs0qHSHq8PiEQ/JnBP7PxnjN0j6gT4AVAeRx/1o9VnEUlUwvFrzJqHk9jxAw4sYxCnrxaeBdCFFKbnE7z+x54F5W7ZZsU6kx8Qocul6FoAHHy01FGL/nne61mn4+uYXfQ1Uccn+HMLKE+cZzT8BB1E3FRskOgJrRsq25rauLm8+uamXpkS/bTy6y1wDbCrW4eD532kTWrtNUmVVZOIn/C+/JR9KVR5iG9TY8iaT67ubm/whL1xbKZoqtY+a6fNxMJrg211bGYJDUkYMNWA0BMB++9zOm6Eik4roqs9CCEFW0lyAK0PbvlzvoxrZuY/OEhNW/l/63U15Od/RSvmDvXpGLiVmeGi5PDSH2bYz5o2g6wFDQ2FbZgYgTF8rPlvA1ifjZD3NLtFdXdpSIJvgKR7GpjJWG7GZGawPomIH8B5tUmtHH9LpM+/KQKunEPa1GiQkCXv4Cnm9DLORo2joicHdPDZ64obQrPZ5bgqckkj0G6/NEiPYBY4bCkL7W8G5YzsUb6GakFjykSPkT7JGeLeB6uJOGMm+x7N381BCDfbJFx0dtLgV9Q477BfL1fvitX5anV/oYfxeYl+eF5x5bB8+Ep/L2nsmd56aKF4aAD4GbJWsdKyBW22xEmAD3XdbtsMyAFoR5mOla0gEd9U/YVB7zvHGpHbQonay9Sv0bQ8iZ8piaXVrKc5AG1AmqqgaEvzHSP2Wux7aZTWh6quVDVU01JtMIVRdCFwlSbbqqhoFlyzsotQzRexFvZ/MqUSFu3OhRIuNBbufvBpdVgb8XdGJ48/lJPCZ7dsOujTTbKPSEvGXkOnG2Xdi8/nM3EMRqITd5QeU7iOjKqC7URJY6TnLsHij22xAHKnVRD5MDtBYnoGFqZGMDmXCW6Oj+BAWw14hESY/xLF6bLku06AHkiXTHPCFZ0f9YSqqo27eAhhS67OrA2Het4M9JM3jm/yRX6bYxnfmzYl5qQdHxN08FsNuWDrWd4vMUY2QD3hr8vS73SCTkFoXZR3xNzOQt8d/6HfjBmXqvrE6EGkLzK6YK2U2/ksU/iUH+LvVIsJI+ri2AL/klo+ShdDyfs5A83i2prkMs51IKR7ZcqjZJi5X3+bd8GlyWvtddxKEoEqSgEO7A8jIgf2nH0h8FjM7oB6yte3X5mpL0i/E4Rx0CotKnILJj/vJqo4VkPQ93jRtRVfaitQPqldl5xRYPq8387Z0DcnZvOeION0Ht1+P27kFLGQIcLBX4FG3sffccNHh5cPfzp9INoRtqVtdViJfg8RjnXiIz/MNqEN6zvzX3hMzyWC7oSoXIT14ubc0abPX8Rp9GVa5NI/8iv+6ela1oTncbdimRKnrbRffDR/X4nH+bgqAuHWl7hOaeXPWVzIeRl7ga+JzD4Sx3mlj/q6Ra/E2HhDf21eEzTLNGfCZsY+/yxZzQzIAuijG65ii4O/waAJCrEJaWd/DRAKMQ5678Dw5AT7RCKzdadIwd8LsD+DgPBASmWsUlf8R0k1w/2k4lO2Wpb4zMI6EJVJs0xk/wn8/fRUPqrDKhbjHR41SqgFMx5RGMPuduFwlu5lK89tW11sTqiX/5EfGs5nO+y9FKvgXKPOEmgE05EKNL6Sjb3xS40H3BVPhm0ESOZgAjZoymc8be0inDVo4JdJVf+NKd3tN/CaB7GShhH27qf95NoFZVX/6ZkR2lX+CgWrQ2INgkh+bbMz68+uJ3Clsh8HSMPEQtAt+BBE6fXDab7KIlsKxU1lIXW/KWVstpdPanJ0pdXpQinDyUQjtY7ZVcfiecRxRDMAUhHFU2cEaciQ+htiPMPx1kdvtWG9T44w3r037ljHBFJdYR0r55qvMRixtAEFJAqA4T1ES87FAx7UozXasytg8MftZYt0rjYgLe6EJ5aWvy2qscBSBQ7yehoJIA3wIIZ9ukfkyBb6qnue5ko8W50rpV4kXqWjI5nbGRXrNW0tBZHXlY48nSgcUXBHWT4GcgLZJoLlKJnV96kCYpq9eWHh7xJzkCAyrQuQ5AJ0qq/uZ3toJglNterev+Qm0KXxPg/+YbFRJdfhbp1wOnVOEYdVHTya6CtO0afhEaBhx3oHwCb5Kq6RwHDzFMl2vfjL8GwzcCoTj7wZe+UFnYDV2yKpPU9dba29gYBdNqJg/KXozO+CJTlKmlKhnqTf5doeS35DZFV+cYJQVjd+oVY/Gtc/6XPzUxb1gMqf6cEjNNoRC8AObrp+fx0cVtGu4ffC2TgXRC8zPl8moUHCB5HZ25d87mlsiiK0aNwBtcEQjRNBT/QrXbw/8aVXdKMHn9EqYEKEyxSGTpYQOaes1G1Qq8pDgqkZtlO2HRyCXpmeM7TSrRPkAh004BfisVpF6zP44n2Jvxz/gOVocNCyy9V6lkod28QM4pbaMvVJigD/w3BrsjSJrXlqc4ulBYOCceiBN4b/gHajYyupbhEt63a619Ay4wsL6a6w6B+A7TnoyE7BliWHJfzVxxIKM/W3M/J8Bx99Op863Q8eNuIMGRx++VbYfjm+VGYBA3Ap/KEu/wxBNBpJJncwHPG45V8Gh98ZIrGCc20MwijGowZbcS7d1nEgcOW5cddZpHL2XPAIRbColiheZzXTvBxZOY3iMSDSKDrICyJ/iQs1vdplVdH/JrLJsQ2jtTnfCrITIghq3KFX3qAgLWAIp8IffNSdTYptnbGfc8s+qcr3zyzyHp1aJg+jxTF4kD1ry5Wauv5V3xnOGwTFecNzXSLHBW20/pCQjk4uorD0plIhMSTc79+/r4RKPClRYTBYex1Ob5crtfvRQBBv6re/6FhtCqtduag67glqRA77/3ulblh9YRtMdDxkCyJDeNnAuCLPQFmdRRWJtH20Z8DstfJf+5oj5SSB64d0iF5/Ya4KfTWxfivj9Ap2/zbYaTo/1gO3tM6RYsCZharMBFr7Fm61mLSrQnEI4OF1gbVS4k/JE9UotOrnLJZuswoWodCSV8zbybkJSVIP7n8UaE9xCR39rJZmf27HOAPVOGc9pdkQUcRrI0qyVF9Z3j1RHDbxIfwbWzmPVjwIdPJvtmBYwEQIUsIW1S939hcVikK00ozPRI02cqhzVUNzpOxVdrwRPvlh1aIOf0xFEqD3YkGnCnFah/cFN3J2gB7N+bZSGawwkKFu1tpQMrp1W+27YNkyT0TpcFpTqgOqqLabrgcCUPxh97mREOGy4xItzQ9xSl6rq+8BZsHcrQFReS+QeMxJ3P6CnL9EP/eOLDjumLhvrcQrpPiknsofbzBv9gTP0lU+TIVwE6E7CcKfT36q+ZiEOHJ9ayf0dyUJLezAb2M8aNHwd0+OJmsVgTzRWA";const Gr=44032,Ko=4352,Jo=4449,Yo=4519,hh=19,ph=21,Gn=28,Zo=ph*Gn,C2=hh*Zo,A2=Gr+C2,E2=Ko+hh,I2=Jo+ph,k2=Yo+Gn;function hr(e){return e>>24&255}function mh(e){return e&16777215}let ya,hu,wa,Lo;function B2(){let e=ch(x2);ya=new Map(lh(e).flatMap((t,n)=>t.map(r=>[r,n+1<<24]))),hu=new Set(Hr(e)),wa=new Map,Lo=new Map;for(let[t,n]of uh(e)){if(!hu.has(t)&&n.length==2){let[r,o]=n,s=Lo.get(r);s||(s=new Map,Lo.set(r,s)),s.set(o,t)}wa.set(t,n.reverse())}}function bh(e){return e>=Gr&&e<A2}function j2(e,t){if(e>=Ko&&e<E2&&t>=Jo&&t<I2)return Gr+(e-Ko)*Zo+(t-Jo)*Gn;if(bh(e)&&t>Yo&&t<k2&&(e-Gr)%Gn==0)return e+(t-Yo);{let n=Lo.get(e);return n&&(n=n.get(t),n)?n:-1}}function gh(e){ya||B2();let t=[],n=[],r=!1;function o(s){let i=ya.get(s);i&&(r=!0,s|=i),t.push(s)}for(let s of e)for(;;){if(s<128)t.push(s);else if(bh(s)){let i=s-Gr,a=i/Zo|0,c=i%Zo/Gn|0,l=i%Gn;o(Ko+a),o(Jo+c),l>0&&o(Yo+l)}else{let i=wa.get(s);i?n.push(...i):o(s)}if(!n.length)break;s=n.pop()}if(r&&t.length>1){let s=hr(t[0]);for(let i=1;i<t.length;i++){let a=hr(t[i]);if(a==0||s<=a){s=a;continue}let c=i-1;for(;;){let l=t[c+1];if(t[c+1]=t[c],t[c]=l,!c||(s=hr(t[--c]),s<=a))break}s=hr(t[i])}}return t}function S2(e){let t=[],n=[],r=-1,o=0;for(let s of e){let i=hr(s),a=mh(s);if(r==-1)i==0?r=a:t.push(a);else if(o>0&&o>=i)i==0?(t.push(r,...n),n.length=0,r=a):n.push(a),o=i;else{let c=j2(r,a);c>=0?r=c:o==0&&i==0?(t.push(r),r=a):(n.push(a),o=i)}}return r>=0&&t.push(r,...n),t}function yh(e){return gh(e).map(mh)}function _2(e){return S2(gh(e))}const pu=45,wh=".",vh=65039,xh=1,Xo=e=>Array.from(e);function Qr(e,t){return e.P.has(t)||e.Q.has(t)}class P2 extends Array{get is_emoji(){return!0}}let va,Ch,cn,xa,Ah,Fn,bi,Pn,on,mu,Ca;function Ac(){if(va)return;let e=ch(l2);const t=()=>Hr(e),n=()=>new Set(t()),r=(u,d)=>d.forEach(f=>u.add(f));va=new Map(uh(e)),Ch=n(),cn=t(),xa=new Set(t().map(u=>cn[u])),cn=new Set(cn),Ah=n(),n();let o=lh(e),s=e();const i=()=>{let u=new Set;return t().forEach(d=>r(u,o[d])),r(u,t()),u};Fn=Vr(u=>{let d=Vr(e).map(f=>f+96);if(d.length){let f=u>=s;d[0]-=32,d=Vn(d),f&&(d=`Restricted[${d}]`);let h=i(),p=i(),m=!e();return{N:d,P:h,Q:p,M:m,R:f}}}),bi=n(),Pn=new Map;let a=t().concat(Xo(bi)).sort((u,d)=>u-d);a.forEach((u,d)=>{let f=e(),h=a[d]=f?a[d-f]:{V:[],M:new Map};h.V.push(u),bi.has(u)||Pn.set(u,h)});for(let{V:u,M:d}of new Set(Pn.values())){let f=[];for(let p of u){let m=Fn.filter(y=>Qr(y,p)),g=f.find(({G:y})=>m.some(C=>y.has(C)));g||(g={G:new Set,V:[]},f.push(g)),g.V.push(p),r(g.G,m)}let h=f.flatMap(p=>Xo(p.G));for(let{G:p,V:m}of f){let g=new Set(h.filter(y=>!p.has(y)));for(let y of m)d.set(y,g)}}on=new Set;let c=new Set;const l=u=>on.has(u)?c.add(u):on.add(u);for(let u of Fn){for(let d of u.P)l(d);for(let d of u.Q)l(d)}for(let u of on)!Pn.has(u)&&!c.has(u)&&Pn.set(u,xh);r(on,yh(on)),mu=g2(e).map(u=>P2.from(u)).sort(v2),Ca=new Map;for(let u of mu){let d=[Ca];for(let f of u){let h=d.map(p=>{let m=p.get(f);return m||(m=new Map,p.set(f,m)),m});f===vh?d.push(...h):d=h}for(let f of d)f.V=u}}function Ec(e){return(Eh(e)?"":`${Ic(Ts([e]))} `)+fh(e)}function Ic(e){return`"${e}"`}function T2(e){if(e.length>=4&&e[2]==pu&&e[3]==pu)throw new Error(`invalid label extension: "${Vn(e.slice(0,4))}"`)}function O2(e){for(let n=e.lastIndexOf(95);n>0;)if(e[--n]!==95)throw new Error("underscore allowed only at start")}function R2(e){let t=e[0],n=du.get(t);if(n)throw gr(`leading ${n}`);let r=e.length,o=-1;for(let s=1;s<r;s++){t=e[s];let i=du.get(t);if(i){if(o==s)throw gr(`${n} + ${i}`);o=s+1,n=i}}if(o==r)throw gr(`trailing ${n}`)}function Ts(e,t=1/0,n=fh){let r=[];M2(e[0])&&r.push("◌"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let o=0,s=e.length;for(let i=0;i<s;i++){let a=e[i];Eh(a)&&(r.push(Vn(e.slice(o,i))),r.push(n(a)),o=i+1)}return r.push(Vn(e.slice(o,s))),r.join("")}function M2(e,t){return Ac(),cn.has(e)}function Eh(e){return Ac(),Ah.has(e)}function N2(e){return U2(D2(e,_2,$2))}function D2(e,t,n){if(!e)return[];Ac();let r=0;return e.split(wh).map(o=>{let s=w2(o),i={input:s,offset:r};r+=s.length+1;try{let a=i.tokens=W2(s,t,n),c=a.length,l;if(!c)throw new Error("empty label");let u=i.output=a.flat();if(O2(u),!(i.emoji=c>1||a[0].is_emoji)&&u.every(f=>f<128))T2(u),l="ASCII";else{let f=a.flatMap(h=>h.is_emoji?[]:h);if(!f.length)l="Emoji";else{if(cn.has(u[0]))throw gr("leading combining mark");for(let m=1;m<c;m++){let g=a[m];if(!g.is_emoji&&cn.has(g[0]))throw gr(`emoji + combining mark: "${Vn(a[m-1])} + ${Ts([g[0]])}"`)}R2(u);let h=Xo(new Set(f)),[p]=L2(h);z2(p,f),F2(p,h),l=p.N}}i.type=l}catch(a){i.error=a}return i})}function F2(e,t){let n,r=[];for(let o of t){let s=Pn.get(o);if(s===xh)return;if(s){let i=s.M.get(o);if(n=n?n.filter(a=>i.has(a)):Xo(i),!n.length)return}else r.push(o)}if(n){for(let o of n)if(r.every(s=>Qr(o,s)))throw new Error(`whole-script confusable: ${e.N}/${o.N}`)}}function L2(e){let t=Fn;for(let n of e){let r=t.filter(o=>Qr(o,n));if(!r.length)throw Fn.some(o=>Qr(o,n))?kh(t[0],n):Ih(n);if(t=r,r.length==1)break}return t}function U2(e){return e.map(({input:t,error:n,output:r})=>{if(n){let o=n.message;throw new Error(e.length==1?o:`Invalid label ${Ic(Ts(t,63))}: ${o}`)}return Vn(r)}).join(wh)}function Ih(e){return new Error(`disallowed character: ${Ec(e)}`)}function kh(e,t){let n=Ec(t),r=Fn.find(o=>o.P.has(t));return r&&(n=`${r.N} ${n}`),new Error(`illegal mixture: ${e.N} + ${n}`)}function gr(e){return new Error(`illegal placement: ${e}`)}function z2(e,t){for(let n of t)if(!Qr(e,n))throw kh(e,n);if(e.M){let n=yh(t);for(let r=1,o=n.length;r<o;r++)if(xa.has(n[r])){let s=r+1;for(let i;s<o&&xa.has(i=n[s]);s++)for(let a=r;a<s;a++)if(n[a]==i)throw new Error(`duplicate non-spacing marks: ${Ec(i)}`);if(s-r>fu)throw new Error(`excessive non-spacing marks: ${Ic(Ts(n.slice(r-1,s)))} (${s-r}/${fu})`);r=s}}}function W2(e,t,n){let r=[],o=[];for(e=e.slice().reverse();e.length;){let s=q2(e);if(s)o.length&&(r.push(t(o)),o=[]),r.push(n(s));else{let i=e.pop();if(on.has(i))o.push(i);else{let a=va.get(i);if(a)o.push(...a);else if(!Ch.has(i))throw Ih(i)}}}return o.length&&r.push(t(o)),r}function $2(e){return e.filter(t=>t!=vh)}function q2(e,t){let n=Ca,r,o=e.length;for(;o&&(n=n.get(e[--o]),!!n);){let{V:s}=n;s&&(r=s,e.length=o)}return r}function H2(e){return N2(e)}function V2(e){return H2(e)}const G2={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},Q2={block:a6({format(e){var n;return{transactions:(n=e.transactions)==null?void 0:n.map(r=>{if(typeof r=="string")return r;const o=co(r);return o.typeHex==="0x7e"&&(o.isSystemTx=r.isSystemTx,o.mint=r.mint?ke(r.mint):void 0,o.sourceHash=r.sourceHash,o.type="deposit"),o}),stateRoot:e.stateRoot}}}),transaction:s6({format(e){const t={};return e.type==="0x7e"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?ke(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:iy({format(e){return{l1GasPrice:e.l1GasPrice?ke(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?ke(e.l1GasUsed):null,l1Fee:e.l1Fee?ke(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})};function K2(e,t){return Z2(e)?Y2(e):Q6(e,t)}const J2={transaction:K2};function Y2(e){X2(e);const{sourceHash:t,data:n,from:r,gas:o,isSystemTx:s,mint:i,to:a,value:c}=e,l=[t,r,a??"0x",i?Re(i):"0x",c?Re(c):"0x",o?Re(o):"0x",s?"0x1":"0x",n??"0x"];return at(["0x7e",Jt(l)])}function Z2(e){return e.type==="deposit"||typeof e.sourceHash<"u"}function X2(e){const{from:t,to:n}=e;if(t&&!fe(t))throw new Se({address:t});if(n&&!fe(n))throw new Se({address:n})}const es={blockTime:2e3,contracts:G2,formatters:Q2,serializers:J2},lr=1,ts=Xn({...es,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...es.contracts,disputeGameFactory:{[lr]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[lr]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[lr]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[lr]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:lr});({...ts});const ur=11155111,yr=Xn({...es,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...es.contracts,disputeGameFactory:{[ur]:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{[ur]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[ur]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[ur]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:ur});({...yr});const kc=Xn({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}});var Bh=$p(),gi=function(){},Os=B.forwardRef(function(e,t){var n=B.useRef(null),r=B.useState({onScrollCapture:gi,onWheelCapture:gi,onTouchMoveCapture:gi}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,h=e.noIsolation,p=e.inert,m=e.allowPinchZoom,g=e.as,y=g===void 0?"div":g,C=e.gapMode,w=qp(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),v=f,x=Hp([n,t]),E=Sn(Sn({},w),o);return B.createElement(B.Fragment,null,u&&B.createElement(v,{sideCar:Bh,removeScrollBar:l,shards:d,noIsolation:h,inert:p,setCallbacks:s,allowPinchZoom:!!m,lockRef:n,gapMode:C}),i?B.cloneElement(B.Children.only(a),Sn(Sn({},E),{ref:x})):B.createElement(y,Sn({},E,{className:c,ref:x}),a))});Os.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Os.classNames={fullWidth:Gp,zeroRight:Vp};var Aa=!1;if(typeof window<"u")try{var _o=Object.defineProperty({},"passive",{get:function(){return Aa=!0,!0}});window.addEventListener("test",_o,_o),window.removeEventListener("test",_o,_o)}catch{Aa=!1}var kn=Aa?{passive:!1}:!1,e3=function(e){return e.tagName==="TEXTAREA"},jh=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!e3(e)&&n[t]==="visible")},t3=function(e){return jh(e,"overflowY")},n3=function(e){return jh(e,"overflowX")},bu=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Sh(e,r);if(o){var s=_h(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},r3=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},o3=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Sh=function(e,t){return e==="v"?t3(t):n3(t)},_h=function(e,t){return e==="v"?r3(t):o3(t)},s3=function(e,t){return e==="h"&&t==="rtl"?-1:1},i3=function(e,t,n,r,o){var s=s3(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,c=t.contains(a),l=!1,u=i>0,d=0,f=0;do{var h=_h(e,a),p=h[0],m=h[1],g=h[2],y=m-g-s*p;(p||y)&&Sh(e,a)&&(d+=y,f+=p),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(l=!0),l},Po=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},gu=function(e){return[e.deltaX,e.deltaY]},yu=function(e){return e&&"current"in e?e.current:e},a3=function(e,t){return e[0]===t[0]&&e[1]===t[1]},c3=function(e){return`
|
|
1632
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
1633
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
1634
|
+
`)},l3=0,Bn=[];function u3(e){var t=B.useRef([]),n=B.useRef([0,0]),r=B.useRef(),o=B.useState(l3++)[0],s=B.useState(Qp)[0],i=B.useRef(e);B.useEffect(function(){i.current=e},[e]),B.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Kp([e.lockRef.current],(e.shards||[]).map(yu),!0).filter(Boolean);return m.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=B.useCallback(function(m,g){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var y=Po(m),C=n.current,w="deltaX"in m?m.deltaX:C[0]-y[0],v="deltaY"in m?m.deltaY:C[1]-y[1],x,E=m.target,A=Math.abs(w)>Math.abs(v)?"h":"v";if("touches"in m&&A==="h"&&E.type==="range")return!1;var k=bu(A,E);if(!k)return!0;if(k?x=A:(x=A==="v"?"h":"v",k=bu(A,E)),!k)return!1;if(!r.current&&"changedTouches"in m&&(w||v)&&(r.current=x),!x)return!0;var j=r.current||x;return i3(j,g,m,j==="h"?w:v)},[]),c=B.useCallback(function(m){var g=m;if(!(!Bn.length||Bn[Bn.length-1]!==s)){var y="deltaY"in g?gu(g):Po(g),C=t.current.filter(function(x){return x.name===g.type&&(x.target===g.target||g.target===x.shadowParent)&&a3(x.delta,y)})[0];if(C&&C.should){g.cancelable&&g.preventDefault();return}if(!C){var w=(i.current.shards||[]).map(yu).filter(Boolean).filter(function(x){return x.contains(g.target)}),v=w.length>0?a(g,w[0]):!i.current.noIsolation;v&&g.cancelable&&g.preventDefault()}}},[]),l=B.useCallback(function(m,g,y,C){var w={name:m,delta:g,target:y,should:C,shadowParent:d3(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(v){return v!==w})},1)},[]),u=B.useCallback(function(m){n.current=Po(m),r.current=void 0},[]),d=B.useCallback(function(m){l(m.type,gu(m),m.target,a(m,e.lockRef.current))},[]),f=B.useCallback(function(m){l(m.type,Po(m),m.target,a(m,e.lockRef.current))},[]);B.useEffect(function(){return Bn.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,kn),document.addEventListener("touchmove",c,kn),document.addEventListener("touchstart",u,kn),function(){Bn=Bn.filter(function(m){return m!==s}),document.removeEventListener("wheel",c,kn),document.removeEventListener("touchmove",c,kn),document.removeEventListener("touchstart",u,kn)}},[]);var h=e.removeScrollBar,p=e.inert;return B.createElement(B.Fragment,null,p?B.createElement(s,{styles:c3(o)}):null,h?B.createElement(Jp,{gapMode:e.gapMode}):null)}function d3(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const f3=Yp(Bh,u3);var Ph=B.forwardRef(function(e,t){return B.createElement(Os,Sn({},e,{ref:t,sideCar:f3}))});Ph.classNames=Os.classNames;function wu(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function h3(e,t){var n=e;for(var r of t){if(!(r in n))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));n=n[r]}return n}function Th(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r={};for(var o in e){var s=e[o],i=[...n,o];typeof s=="string"||typeof s=="number"||s==null?r[o]=t(s,i):typeof s=="object"&&!Array.isArray(s)?r[o]=Th(s,t,i):console.warn('Skipping invalid key "'.concat(i.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(s)?"Array":typeof s,'"'))}return r}function vu(e,t){var n={};if(typeof t=="object"){var r=e;Th(t,(a,c)=>{if(a!=null){var l=h3(r,c);n[wu(l)]=String(a)}})}else{var o=e;for(var s in o){var i=o[s];i!=null&&(n[wu(s)]=i)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(c=>"".concat(c,":").concat(this[c])).join(";")},writable:!1}),n}var pr={exports:{}},p3=pr.exports,xu;function m3(){return xu||(xu=1,(function(e,t){(function(n,r){var o="1.0.41",s="",i="?",a="function",c="undefined",l="object",u="string",d="major",f="model",h="name",p="type",m="vendor",g="version",y="architecture",C="console",w="mobile",v="tablet",x="smarttv",E="wearable",A="embedded",k=500,j="Amazon",O="Apple",_="ASUS",R="BlackBerry",P="Browser",$="Chrome",S="Edge",N="Firefox",F="Google",T="Honor",U="Huawei",z="Lenovo",Q="LG",se="Microsoft",le="Motorola",q="Nvidia",H="OnePlus",Z="Opera",te="OPPO",Ue="Samsung",ze="Sharp",Pe="Sony",en="Xiaomi",vt="Zebra",ct="Facebook",Dt="Chromium OS",Ft="Mac OS",xt=" Browser",Np=function(X,ne){var J={};for(var ie in X)ne[ie]&&ne[ie].length%2===0?J[ie]=ne[ie].concat(X[ie]):J[ie]=X[ie];return J},go=function(X){for(var ne={},J=0;J<X.length;J++)ne[X[J].toUpperCase()]=X[J];return ne},qc=function(X,ne){return typeof X===u?nr(ne).indexOf(nr(X))!==-1:!1},nr=function(X){return X.toLowerCase()},Dp=function(X){return typeof X===u?X.replace(/[^\d\.]/g,s).split(".")[0]:r},Ds=function(X,ne){if(typeof X===u)return X=X.replace(/^\s\s*/,s),typeof ne===c?X:X.substring(0,k)},rr=function(X,ne){for(var J=0,ie,Ct,lt,re,K,ut;J<ne.length&&!K;){var Fs=ne[J],Gc=ne[J+1];for(ie=Ct=0;ie<Fs.length&&!K&&Fs[ie];)if(K=Fs[ie++].exec(X),K)for(lt=0;lt<Gc.length;lt++)ut=K[++Ct],re=Gc[lt],typeof re===l&&re.length>0?re.length===2?typeof re[1]==a?this[re[0]]=re[1].call(this,ut):this[re[0]]=re[1]:re.length===3?typeof re[1]===a&&!(re[1].exec&&re[1].test)?this[re[0]]=ut?re[1].call(this,ut,re[2]):r:this[re[0]]=ut?ut.replace(re[1],re[2]):r:re.length===4&&(this[re[0]]=ut?re[3].call(this,ut.replace(re[1],re[2])):r):this[re]=ut||r;J+=2}},or=function(X,ne){for(var J in ne)if(typeof ne[J]===l&&ne[J].length>0){for(var ie=0;ie<ne[J].length;ie++)if(qc(ne[J][ie],X))return J===i?r:J}else if(qc(ne[J],X))return J===i?r:J;return ne.hasOwnProperty("*")?ne["*"]:X},Fp={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Hc={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Vc={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,g],[/opios[\/ ]+([\w\.]+)/i],[g,[h,Z+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[g,[h,Z+" GX"]],[/\bopr\/([\w\.]+)/i],[g,[h,Z]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[h,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[g,[h,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,g],[/quark(?:pc)?\/([-\w\.]+)/i],[g,[h,"Quark"]],[/\bddg\/([\w\.]+)/i],[g,[h,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[h,"UC"+P]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[h,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[g,[h,"Smart Lenovo "+P]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+P],g],[/\bfocus\/([\w\.]+)/i],[g,[h,N+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[h,Z+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[h,Z+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[h,"MIUI"+xt]],[/fxios\/([\w\.-]+)/i],[g,[h,N]],[/\bqihoobrowser\/?([\w\.]*)/i],[g,[h,"360"]],[/\b(qq)\/([\w\.]+)/i],[[h,/(.+)/,"$1Browser"],g],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1"+xt],g],[/samsungbrowser\/([\w\.]+)/i],[g,[h,Ue+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[g,[h,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[h,"Sogou Mobile"],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[h,g],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[h],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[g,h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,ct],g],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[h,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[h,$+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,$+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[h,"Android "+P]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[g,or,Fp]],[/(webkit|khtml)\/([\w\.]+)/i],[h,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],g],[/(wolvic|librewolf)\/([\w\.]+)/i],[h,g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[h,N+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[h,[g,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[h,[g,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[y,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[y,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[y,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[y,/ower/,s,nr]],[/ sun4\w[;\)]/i],[[y,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[y,nr]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[m,Ue],[p,v]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[f,[m,Ue],[p,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[m,O],[p,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[m,O],[p,v]],[/(macintosh);/i],[f,[m,O]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[m,ze],[p,w]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[f,[m,T],[p,v]],[/honor([-\w ]+)[;\)]/i],[f,[m,T],[p,w]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[f,[m,U],[p,v]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[m,U],[p,w]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[f,/_/g," "],[m,en],[p,v]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[f,/_/g," "],[m,en],[p,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[m,te],[p,w]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[f,[m,or,{OnePlus:["304","403","203"],"*":te}],[p,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[m,"Vivo"],[p,w]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[f,[m,"Realme"],[p,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[m,le],[p,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[m,le],[p,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[m,Q],[p,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[m,Q],[p,w]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[f,[m,z],[p,v]],[/(nokia) (t[12][01])/i],[m,f,[p,v]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[f,/_/g," "],[p,w],[m,"Nokia"]],[/(pixel (c|tablet))\b/i],[f,[m,F],[p,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[m,F],[p,w]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[m,Pe],[p,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[m,Pe],[p,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[m,H],[p,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[m,j],[p,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[m,j],[p,w]],[/(playbook);[-\w\),; ]+(rim)/i],[f,m,[p,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[m,R],[p,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[m,_],[p,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[m,_],[p,w]],[/(nexus 9)/i],[f,[m,"HTC"],[p,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[f,/_/g," "],[p,w]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[f,[m,"TCL"],[p,v]],[/(itel) ((\w+))/i],[[m,nr],f,[p,or,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[m,"Acer"],[p,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[m,"Meizu"],[p,w]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[f,[m,"Ulefone"],[p,w]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[f,[m,"Energizer"],[p,w]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[f,[m,"Cat"],[p,w]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[f,[m,"Smartfren"],[p,w]],[/droid.+; (a(?:015|06[35]|142p?))/i],[f,[m,"Nothing"],[p,w]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[f,[m,"Archos"],[p,v]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[f,[m,"Archos"],[p,w]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[m,f,[p,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[m,f,[p,w]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,f,[p,v]],[/(surface duo)/i],[f,[m,se],[p,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[m,"Fairphone"],[p,w]],[/(u304aa)/i],[f,[m,"AT&T"],[p,w]],[/\bsie-(\w*)/i],[f,[m,"Siemens"],[p,w]],[/\b(rct\w+) b/i],[f,[m,"RCA"],[p,v]],[/\b(venue[\d ]{2,7}) b/i],[f,[m,"Dell"],[p,v]],[/\b(q(?:mv|ta)\w+) b/i],[f,[m,"Verizon"],[p,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[m,"Barnes & Noble"],[p,v]],[/\b(tm\d{3}\w+) b/i],[f,[m,"NuVision"],[p,v]],[/\b(k88) b/i],[f,[m,"ZTE"],[p,v]],[/\b(nx\d{3}j) b/i],[f,[m,"ZTE"],[p,w]],[/\b(gen\d{3}) b.+49h/i],[f,[m,"Swiss"],[p,w]],[/\b(zur\d{3}) b/i],[f,[m,"Swiss"],[p,v]],[/\b((zeki)?tb.*\b) b/i],[f,[m,"Zeki"],[p,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],f,[p,v]],[/\b(ns-?\w{0,9}) b/i],[f,[m,"Insignia"],[p,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[m,"NextBook"],[p,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],f,[p,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],f,[p,w]],[/\b(ph-1) /i],[f,[m,"Essential"],[p,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[m,"Envizen"],[p,v]],[/\b(trio[-\w\. ]+) b/i],[f,[m,"MachSpeed"],[p,v]],[/\btu_(1491) b/i],[f,[m,"Rotor"],[p,v]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[f,[m,q],[p,v]],[/(sprint) (\w+)/i],[m,f,[p,w]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[m,se],[p,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[m,vt],[p,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[m,vt],[p,w]],[/smart-tv.+(samsung)/i],[m,[p,x]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[m,Ue],[p,x]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,Q],[p,x]],[/(apple) ?tv/i],[m,[f,O+" TV"],[p,x]],[/crkey/i],[[f,$+"cast"],[m,F],[p,x]],[/droid.+aft(\w+)( bui|\))/i],[f,[m,j],[p,x]],[/(shield \w+ tv)/i],[f,[m,q],[p,x]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[m,ze],[p,x]],[/(bravia[\w ]+)( bui|\))/i],[f,[m,Pe],[p,x]],[/(mi(tv|box)-?\w+) bui/i],[f,[m,en],[p,x]],[/Hbbtv.*(technisat) (.*);/i],[m,f,[p,x]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,Ds],[f,Ds],[p,x]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[f,[p,x]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,x]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,f,[p,C]],[/droid.+; (shield)( bui|\))/i],[f,[m,q],[p,C]],[/(playstation \w+)/i],[f,[m,Pe],[p,C]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[m,se],[p,C]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[f,[m,Ue],[p,E]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[m,f,[p,E]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[f,[m,te],[p,E]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[m,O],[p,E]],[/(opwwe\d{3})/i],[f,[m,H],[p,E]],[/(moto 360)/i],[f,[m,le],[p,E]],[/(smartwatch 3)/i],[f,[m,Pe],[p,E]],[/(g watch r)/i],[f,[m,Q],[p,E]],[/droid.+; (wt63?0{2,3})\)/i],[f,[m,vt],[p,E]],[/droid.+; (glass) \d/i],[f,[m,F],[p,E]],[/(pico) (4|neo3(?: link|pro)?)/i],[m,f,[p,E]],[/; (quest( \d| pro)?)/i],[f,[m,ct],[p,E]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[p,A]],[/(aeobc)\b/i],[f,[m,j],[p,A]],[/(homepod).+mac os/i],[f,[m,O],[p,A]],[/windows iot/i],[[p,A]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[f,[p,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[p,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,w]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[f,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[h,S+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[h,g],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,g],[/ladybird\//i],[[h,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,g],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[h,[g,or,Hc]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,or,Hc],[h,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,Ft],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,h],[/(ubuntu) ([\w\.]+) like android/i],[[h,/(.+)/,"$1 Touch"],g],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[h,g],[/\(bb(10);/i],[g,[h,R]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[g,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[h,N+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[h,$+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,Dt],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,g],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,g]]},Xe=function(X,ne){if(typeof X===l&&(ne=X,X=r),!(this instanceof Xe))return new Xe(X,ne).getResult();var J=typeof n!==c&&n.navigator?n.navigator:r,ie=X||(J&&J.userAgent?J.userAgent:s),Ct=J&&J.userAgentData?J.userAgentData:r,lt=ne?Np(Vc,ne):Vc,re=J&&J.userAgent==ie;return this.getBrowser=function(){var K={};return K[h]=r,K[g]=r,rr.call(K,ie,lt.browser),K[d]=Dp(K[g]),re&&J&&J.brave&&typeof J.brave.isBrave==a&&(K[h]="Brave"),K},this.getCPU=function(){var K={};return K[y]=r,rr.call(K,ie,lt.cpu),K},this.getDevice=function(){var K={};return K[m]=r,K[f]=r,K[p]=r,rr.call(K,ie,lt.device),re&&!K[p]&&Ct&&Ct.mobile&&(K[p]=w),re&&K[f]=="Macintosh"&&J&&typeof J.standalone!==c&&J.maxTouchPoints&&J.maxTouchPoints>2&&(K[f]="iPad",K[p]=v),K},this.getEngine=function(){var K={};return K[h]=r,K[g]=r,rr.call(K,ie,lt.engine),K},this.getOS=function(){var K={};return K[h]=r,K[g]=r,rr.call(K,ie,lt.os),re&&!K[h]&&Ct&&Ct.platform&&Ct.platform!="Unknown"&&(K[h]=Ct.platform.replace(/chrome os/i,Dt).replace(/macos/i,Ft)),K},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ie},this.setUA=function(K){return ie=typeof K===u&&K.length>k?Ds(K,k):K,this},this.setUA(ie),this};Xe.VERSION=o,Xe.BROWSER=go([h,g,d]),Xe.CPU=go([y]),Xe.DEVICE=go([f,m,p,C,w,x,v,E,A]),Xe.ENGINE=Xe.OS=go([h,g]),e.exports&&(t=e.exports=Xe),t.UAParser=Xe;var xn=typeof n!==c&&(n.jQuery||n.Zepto);if(xn&&!xn.ua){var yo=new Xe;xn.ua=yo.getResult(),xn.ua.get=function(){return yo.getUA()},xn.ua.set=function(X){yo.setUA(X);var ne=yo.getResult();for(var J in ne)xn.ua[J]=ne[J]}}})(typeof window=="object"?window:p3)})(pr,pr.exports)),pr.exports}var b3=m3();/*!
|
|
1635
|
+
Copyright (c) 2023 Paul Miller (paulmillr.com)
|
|
1636
|
+
The library paulmillr-qr is dual-licensed under the Apache 2.0 OR MIT license.
|
|
1637
|
+
You can select a license of your choice.
|
|
1638
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
1639
|
+
you may not use this file except in compliance with the License.
|
|
1640
|
+
You may obtain a copy of the License at
|
|
1641
|
+
|
|
1642
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
1643
|
+
|
|
1644
|
+
Unless required by applicable law or agreed to in writing, software
|
|
1645
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
1646
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1647
|
+
See the License for the specific language governing permissions and
|
|
1648
|
+
limitations under the License.
|
|
1649
|
+
*/const dr={newline:10,reset:27};function g3(e){if(!Number.isSafeInteger(e))throw new Error(`integer expected: ${e}`)}function y3(e){if(!Number.isSafeInteger(e)||e<1||e>40)throw new Error(`Invalid version=${e}. Expected number [1..40]`)}function tn(e,t){return e.toString(2).padStart(t,"0")}function Cu(e,t){const n=e%t;return n>=0?n:t+n}function ft(e,t){return new Array(e).fill(t)}function yi(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}function Au(e){let t=0,n=0;for(const s of e)t=Math.max(t,s.length),n+=s.length;const r=new Uint8Array(n);let o=0;for(let s=0;s<t;s++)for(const i of e)s<i.length&&(r[o++]=i[s]);return r}function w3(){let e,t=1/0;return{add(n,r){n>=t||(e=r,t=n)},get:()=>e,score:()=>t}}function Eu(e){return{has:t=>e.includes(t),decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="string")throw new Error("alphabet.decode input should be array of strings");return t.map(n=>{if(typeof n!="string")throw new Error(`alphabet.decode: not string element=${n}`);const r=e.indexOf(n);if(r===-1)throw new Error(`Unknown letter: "${n}". Allowed: ${e}`);return r})},encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return t.map(n=>{if(g3(n),n<0||n>=e.length)throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${e.length})`);return e[n]})}}}function Iu(e){if(e.length!==32)throw new Error("expects 32 element matrix");const t=[1431655765,858993459,252645135,16711935,65535];for(let n=0;n<5;n++){const r=t[n]>>>0,o=1<<n,s=o<<1;for(let i=0;i<32;i+=s)for(let a=0;a<o;a++){const c=i+a,l=c+o,u=e[c]>>>0,d=e[l]>>>0,f=(u>>>o^d)&r;e[c]=(u^f<<o)>>>0,e[l]=(d^f)>>>0}}}const fr=e=>1<<(e&31)>>>0,nn=(e,t)=>t===0?0:t===32?4294967295:(1<<t)-1<<e>>>0;class Ee{constructor(t,n){Lt(this,"defined");Lt(this,"value");Lt(this,"tailMask");Lt(this,"words");Lt(this,"fullWords");Lt(this,"height");Lt(this,"width");const{height:r,width:o}=Ee.size(t);if(this.height=r,this.width=o,this.tailMask=nn(0,o&31||32),this.words=Math.ceil(o/32)|0,this.fullWords=Math.floor(o/32)|0,this.value=new Uint32Array(this.words*r),this.defined=new Uint32Array(this.value.length),n){if(n.length!==r)throw new Error(`Bitmap: data height mismatch: exp=${r} got=${n.length}`);for(let s=0;s<r;s++){const i=n[s];if(!i||i.length!==o)throw new Error(`Bitmap: data width mismatch at y=${s}: exp=${o} got=${i==null?void 0:i.length}`);for(let a=0;a<o;a++)this.set(a,s,i[a])}}}static size(t,n){if(typeof t=="number"&&(t={height:t,width:t}),!Number.isSafeInteger(t.height)&&t.height!==1/0)throw new Error(`Bitmap: invalid height=${t.height} (${typeof t.height})`);if(!Number.isSafeInteger(t.width)&&t.width!==1/0)throw new Error(`Bitmap: invalid width=${t.width} (${typeof t.width})`);return n!==void 0&&(t={width:Math.min(t.width,n.width),height:Math.min(t.height,n.height)}),t}static fromString(t){t=t.replace(/^\n+/g,"").replace(/\n+$/g,"");const n=t.split(String.fromCharCode(dr.newline)),r=n.length;let o;const s=[];for(const i of n){const a=i.split("").map(c=>{if(c==="X")return!0;if(c===" ")return!1;if(c!=="?")throw new Error(`Bitmap.fromString: unknown symbol=${c}`)});if(o!==void 0&&a.length!==o)throw new Error(`Bitmap.fromString different row sizes: width=${o} cur=${a.length}`);o=a.length,s.push(a)}return o===void 0&&(o=0),new Ee({height:r,width:o},s)}point(t){return this.get(t.x,t.y)}isInside(t){return 0<=t.x&&t.x<this.width&&0<=t.y&&t.y<this.height}size(t){if(!t)return{height:this.height,width:this.width};const{x:n,y:r}=this.xy(t);return{height:this.height-r,width:this.width-n}}xy(t){if(typeof t=="number"&&(t={x:t,y:t}),!Number.isSafeInteger(t.x))throw new Error(`Bitmap: invalid x=${t.x}`);if(!Number.isSafeInteger(t.y))throw new Error(`Bitmap: invalid y=${t.y}`);return t.x=Cu(t.x,this.width),t.y=Cu(t.y,this.height),t}wordIndex(t,n){return n*this.words+(t>>>5)}bitIndex(t,n){return{word:this.wordIndex(t,n),bit:t&31}}isDefined(t,n){const r=this.wordIndex(t,n),o=fr(t);return(this.defined[r]&o)!==0}get(t,n){const r=this.wordIndex(t,n),o=fr(t);return(this.value[r]&o)!==0}maskWord(t,n,r){const{defined:o,value:s}=this;o[t]|=n,s[t]=s[t]&~n|-r&n}set(t,n,r){r!==void 0&&this.maskWord(this.wordIndex(t,n),fr(t),r)}fillRectConst(t,n,r,o,s){if(r<=0||o<=0||s===void 0)return;const{value:i,defined:a,words:c}=this,l=t>>>5,u=t+r-1>>>5,d=t&31,f=t+r-1&31;for(let h=0;h<o;h++){const p=(n+h)*c;if(l===u){const m=nn(d,f-d+1);this.maskWord(p+l,m,s);continue}this.maskWord(p+l,nn(d,32-d),s);for(let m=l+1;m<u;m++)a[p+m]=4294967295,i[p+m]=s?4294967295:0;this.maskWord(p+u,nn(0,f+1),s)}}rectWords(t,n,r,o,s){for(let i=0;i<o;i++){const a=n+i;for(let c=0;c<r;){const l=t+c,{bit:u,word:d}=this.bitIndex(l,a),f=Math.min(32-u,r-c);s(d,l,c,i,f),c+=f}}}rect(t,n,r){const{x:o,y:s}=this.xy(t),{height:i,width:a}=Ee.size(n,this.size({x:o,y:s}));if(typeof r!="function")return this.fillRectConst(o,s,a,i,r),this;const{defined:c,value:l}=this;return this.rectWords(o,s,a,i,(u,d,f,h,p)=>{let m=0,g=l[u];for(let y=0;y<p;y++){const C=fr(d+y),w=r({x:f+y,y:h},(g&C)!==0);w!==void 0&&(m|=C,g=g&~C|-w&C)}c[u]|=m,l[u]=g}),this}rectRead(t,n,r){const{x:o,y:s}=this.xy(t),{height:i,width:a}=Ee.size(n,this.size({x:o,y:s})),{value:c}=this;return this.rectWords(o,s,a,i,(l,u,d,f,h)=>{const p=c[l];for(let m=0;m<h;m++){const g=fr(u+m);r({x:d+m,y:f},(p&g)!==0)}}),this}hLine(t,n,r){return this.rect(t,{width:n,height:1},r)}vLine(t,n,r){return this.rect(t,{width:1,height:n},r)}border(t=2,n){const r=this.height+2*t,o=this.width+2*t,s=new Ee({height:r,width:o});return s.rect(0,1/0,n),s.embed({x:t,y:t},this),s}embed(t,n){const{x:r,y:o}=this.xy(t),{height:s,width:i}=Ee.size(n.size(),this.size({x:r,y:o}));if(i<=0||s<=0)return this;const{value:a,defined:c}=this,{words:l,value:u}=n;for(let d=0;d<s;d++){const f=d*l;for(let h=0;h<i;){const p=r+h,{word:m,bit:g}=this.bitIndex(p,o+d),{word:y,bit:C}=n.bitIndex(h,d),w=Math.min(32-g,i-h),v=u[y],x=C&&y+1<f+l?u[y+1]:0,E=C?(v>>>C|x<<32-C)>>>0:v,A=nn(g,w),k=(E&nn(0,w))<<g>>>0;c[m]|=A,a[m]=a[m]&~A|k,h+=w}}return this}rectSlice(t,n=this.size()){const{x:r,y:o}=this.xy(t),{height:s,width:i}=Ee.size(n,this.size({x:r,y:o})),a=new Ee({height:s,width:i});return this.rectRead({x:r,y:o},{height:s,width:i},(c,l)=>{this.isDefined(r+c.x,o+c.y)&&a.set(c.x,c.y,l)}),a}transpose(){const{height:t,width:n,value:r,defined:o,words:s}=this,i=new Ee({height:n,width:t}),{words:a,value:c,defined:l,tailMask:u}=i,d=new Uint32Array(32),f=new Uint32Array(32);for(let h=0;h<t;h+=32)for(let p=0;p<s;p++){const m=Math.min(32,t-h);for(let g=0;g<m;g++){const y=this.wordIndex(32*p,h+g);d[g]=r[y],f[g]=o[y]}d.fill(0,m),f.fill(0,m),Iu(d),Iu(f);for(let g=0;g<32;g++){const y=p*32+g;if(y>=n)break;const C=i.wordIndex(h,y),w=h>>>5===a-1?u:4294967295;c[C]=d[g]&w,l[C]=f[g]&w}}return i}negate(){const t=this.defined.length;for(let n=0;n<t;n++)this.value[n]=~this.value[n],this.defined[n]=4294967295;return this}scale(t){if(!Number.isSafeInteger(t)||t>1024)throw new Error(`invalid scale factor: ${t}`);const{height:n,width:r}=this;return new Ee({height:t*n,width:t*r}).rect({x:0,y:0},1/0,({x:s,y:i})=>this.get(s/t|0,i/t|0))}clone(){const t=new Ee(this.size());return t.defined.set(this.defined),t.value.set(this.value),t}assertDrawn(){const{height:t,width:n,defined:r,tailMask:o,fullWords:s,words:i}=this;if(!(!t||!n))for(let a=0;a<t;a++){const c=a*i;for(let l=0;l<s;l++)if(r[c+l]!==4294967295)throw new Error("Invalid color type=undefined");if(i!==s&&(r[c+s]&o)!==o)throw new Error("Invalid color type=undefined")}}countPatternInRow(t,n,...r){if(n<=0||n>=32)throw new Error("wrong patternLen");const o=(1<<n)-1,{width:s,value:i,words:a}=this;let c=0;const l=this.wordIndex(0,t);for(let u=0,d=0;u<a;u++){const f=i[l+u],h=u===a-1&&s&31||32;for(let p=0;p<h;p++)if(d=(d<<1|f>>>p&1)&o,!(u*32+p+1<n)){for(const m of r)if(d===m){c++;break}}}return c}getRuns(t,n){const{width:r,value:o,words:s}=this;if(r===0)return;let i=0,a;const c=this.wordIndex(0,t);for(let l=0;l<s;l++){const u=o[c+l],d=l===s-1&&r&31||32;for(let f=0;f<d;f++){const h=(u&1<<f)!==0;if(h===a){i++;continue}a!==void 0&&n(i,a),a=h,i=1}}a!==void 0&&n(i,a)}popcnt(){const{height:t,width:n,words:r,fullWords:o,tailMask:s}=this;if(!t||!n)return 0;let i=0;for(let a=0;a<t;a++){const c=a*r;for(let l=0;l<o;l++)i+=yi(this.value[c+l]);r!==o&&(i+=yi(this.value[c+o]&s))}return i}countBoxes2x2(t){const{width:n,words:r}=this;if(n<2||(t|0)<0||t+1>=this.height)return 0;const o=this.wordIndex(0,t)|0,s=this.wordIndex(0,t+1)|0,a=(n&31)===0?2147483647:nn(0,n-1&31);let c=0;for(let l=0;l<r;l++){const u=this.value[o+l],d=this.value[s+l],f=~(u^d)>>>0,h=l+1<r?this.value[o+l+1]>>>0:0,p=~(u^(u>>>1|(h&1)<<31)>>>0)>>>0,m=l+1<r?this.value[s+l+1]>>>0:0,g=~(d^(d>>>1|(m&1)<<31)>>>0)>>>0;let y=(f&p&g)>>>0;l===r-1&&(y&=a),c+=yi(y)}return c}toString(){const t=String.fromCharCode(dr.newline);let n="";for(let r=0;r<this.height;r++){let o="";for(let s=0;s<this.width;s++){const i=this.get(s,r);o+=this.isDefined(s,r)?i?"X":" ":"?"}n+=o+(r+1===this.height?"":t)}return n}toRaw(){const t=Array.from({length:this.height},()=>new Array(this.width));for(let n=0;n<this.height;n++){const r=t[n];for(let o=0;o<this.width;o++)r[o]=this.get(o,n)}return t}toASCII(){const{height:t,width:n}=this;let r="";for(let o=0;o<t;o+=2){for(let s=0;s<n;s++){const i=this.get(s,o),a=o+1>=t?!0:this.get(s,o+1);!i&&!a?r+="█":!i&&a?r+="▀":i&&!a?r+="▄":i&&a&&(r+=" ")}r+=String.fromCharCode(dr.newline)}return r}toTerm(){const t=String.fromCharCode(dr.reset),n=t+"[0m",r=t+"[1;47m "+n,o=t+"[40m "+n,s=String.fromCharCode(dr.newline);let i="";for(let a=0;a<this.height;a++){for(let c=0;c<this.width;c++){const l=this.get(c,a);i+=l?o:r}i+=s}return i}toSVG(t=!0){let n=`<svg viewBox="0 0 ${this.width} ${this.height}" xmlns="http://www.w3.org/2000/svg">`,r="",o;return this.rectRead(0,1/0,(s,i)=>{if(!i)return;const{x:a,y:c}=s;if(!t){n+=`<rect x="${a}" y="${c}" width="1" height="1" />`;return}let l=`M${a} ${c}`;if(o){const d=`m${a-o.x} ${c-o.y}`;d.length<=l.length&&(l=d)}const u=a<10?`H${a}`:"h-1";r+=`${l}h1v1${u}Z`,o=s}),t&&(n+=`<path d="${r}"/>`),n+="</svg>",n}toGIF(){const t=a=>[a&255,a>>>8&255],n=[...t(this.width),...t(this.height)],r=[];this.rectRead(0,1/0,(a,c)=>r.push(+(c===!0)));const o=126,s=[71,73,70,56,55,97,...n,246,0,0,255,255,255,...ft(381,0),44,0,0,0,0,...n,0,7],i=Math.floor(r.length/o);for(let a=0;a<i;a++)s.push(o+1,128,...r.slice(o*a,o*(a+1)).map(c=>+c));return s.push(r.length%o+1,128,...r.slice(i*o).map(a=>+a)),s.push(1,129,0,59),new Uint8Array(s)}toImage(t=!1){const{height:n,width:r}=this.size(),o=new Uint8Array(n*r*(t?3:4));let s=0;for(let i=0;i<n;i++)for(let a=0;a<r;a++){const c=this.get(a,i)?0:255;o[s++]=c,o[s++]=c,o[s++]=c,t||(o[s++]=255)}return{height:n,width:r,data:o}}}const ku=["low","medium","quartile","high"],Bu=["numeric","alphanumeric","byte","kanji","eci"],v3=[26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706],x3={low:[7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],medium:[10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],quartile:[13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],high:[17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]},C3={low:[1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],medium:[1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],quartile:[1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],high:[1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]},Ae={size:{encode:e=>21+4*(e-1),decode:e=>(e-17)/4},sizeType:e=>Math.floor((e+7)/17),alignmentPatterns(e){if(e===1)return[];const t=6,n=Ae.size.encode(e)-t-1,r=n-t,o=Math.ceil(r/28);let s=Math.floor(r/o);s%2?s+=1:r%o*2>=o&&(s+=2);const i=[t];for(let a=1;a<o;a++)i.push(n-(o-a)*s);return i.push(n),i},ECCode:{low:1,medium:0,quartile:3,high:2},formatMask:21522,formatBits(e,t){const n=Ae.ECCode[e]<<3|t;let r=n;for(let o=0;o<10;o++)r=r<<1^(r>>9)*1335;return(n<<10|r)^Ae.formatMask},versionBits(e){let t=e;for(let n=0;n<12;n++)t=t<<1^(t>>11)*7973;return e<<12|t},alphabet:{numeric:Eu("0123456789"),alphanumerc:Eu("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:")},lengthBits(e,t){return{numeric:[10,12,14],alphanumeric:[9,11,13],byte:[8,16,16],kanji:[8,10,12],eci:[0,0,0]}[t][Ae.sizeType(e)]},modeBits:{numeric:"0001",alphanumeric:"0010",byte:"0100",kanji:"1000",eci:"0111"},capacity(e,t){const n=v3[e-1],r=x3[t][e-1],o=C3[t][e-1],s=Math.floor(n/o)-r,i=o-n%o;return{words:r,numBlocks:o,shortBlocks:i,blockLen:s,capacity:(n-r*o)*8,total:(r+s)*o+o-i}}},Bc=[(e,t)=>(e+t)%2==0,(e,t)=>t%2==0,(e,t)=>e%3==0,(e,t)=>(e+t)%3==0,(e,t)=>(Math.floor(t/2)+Math.floor(e/3))%2==0,(e,t)=>e*t%2+e*t%3==0,(e,t)=>(e*t%2+e*t%3)%2==0,(e,t)=>((e+t)%2+e*t%3)%2==0],W={tables:(e=>{const t=ft(256,0),n=ft(256,0);for(let r=0,o=1;r<256;r++)t[r]=o,n[o]=r,o<<=1,o&256&&(o^=e);return{exp:t,log:n}})(285),exp:e=>W.tables.exp[e],log(e){if(e===0)throw new Error(`GF.log: invalid arg=${e}`);return W.tables.log[e]%255},mul(e,t){return e===0||t===0?0:W.tables.exp[(W.tables.log[e]+W.tables.log[t])%255]},add:(e,t)=>e^t,pow:(e,t)=>W.tables.exp[W.tables.log[e]*t%255],inv(e){if(e===0)throw new Error(`GF.inverse: invalid arg=${e}`);return W.tables.exp[255-W.tables.log[e]]},polynomial(e){if(e.length==0)throw new Error("GF.polymomial: invalid length");if(e[0]!==0)return e;let t=0;for(;t<e.length-1&&e[t]==0;t++);return e.slice(t)},monomial(e,t){if(e<0)throw new Error(`GF.monomial: invalid degree=${e}`);if(t==0)return[0];let n=ft(e+1,0);return n[0]=t,W.polynomial(n)},degree:e=>e.length-1,coefficient:(e,t)=>e[W.degree(e)-t],mulPoly(e,t){if(e[0]===0||t[0]===0)return[0];const n=ft(e.length+t.length-1,0);for(let r=0;r<e.length;r++)for(let o=0;o<t.length;o++)n[r+o]=W.add(n[r+o],W.mul(e[r],t[o]));return W.polynomial(n)},mulPolyScalar(e,t){if(t==0)return[0];if(t==1)return e;const n=ft(e.length,0);for(let r=0;r<e.length;r++)n[r]=W.mul(e[r],t);return W.polynomial(n)},mulPolyMonomial(e,t,n){if(t<0)throw new Error("GF.mulPolyMonomial: invalid degree");if(n==0)return[0];const r=ft(e.length+t,0);for(let o=0;o<e.length;o++)r[o]=W.mul(e[o],n);return W.polynomial(r)},addPoly(e,t){if(e[0]===0)return t;if(t[0]===0)return e;let n=e,r=t;n.length>r.length&&([n,r]=[r,n]);let o=ft(r.length,0),s=r.length-n.length,i=r.slice(0,s);for(let a=0;a<i.length;a++)o[a]=i[a];for(let a=s;a<r.length;a++)o[a]=W.add(n[a-s],r[a]);return W.polynomial(o)},remainderPoly(e,t){const n=Array.from(e);for(let r=0;r<e.length-t.length+1;r++){const o=n[r];if(o!==0)for(let s=1;s<t.length;s++)t[s]!==0&&(n[r+s]=W.add(n[r+s],W.mul(t[s],o)))}return n.slice(e.length-t.length+1,n.length)},divisorPoly(e){let t=[1];for(let n=0;n<e;n++)t=W.mulPoly(t,[1,W.pow(2,n)]);return t},evalPoly(e,t){if(t==0)return W.coefficient(e,0);let n=e[0];for(let r=1;r<e.length;r++)n=W.add(W.mul(t,n),e[r]);return n},euclidian(e,t,n){W.degree(e)<W.degree(t)&&([e,t]=[t,e]);let r=e,o=t,s=[0],i=[1];for(;2*W.degree(o)>=n;){let l=r,u=s;if(r=o,s=i,r[0]===0)throw new Error("rLast[0] === 0");o=l;let d=[0];const f=W.inv(r[0]);for(;W.degree(o)>=W.degree(r)&&o[0]!==0;){const h=W.degree(o)-W.degree(r),p=W.mul(o[0],f);d=W.addPoly(d,W.monomial(h,p)),o=W.addPoly(o,W.mulPolyMonomial(r,h,p))}if(d=W.mulPoly(d,s),i=W.addPoly(d,u),W.degree(o)>=W.degree(r))throw new Error(`Division failed r: ${o}, rLast: ${r}`)}const a=W.coefficient(i,0);if(a==0)throw new Error("sigmaTilde(0) was zero");const c=W.inv(a);return[W.mulPolyScalar(i,c),W.mulPolyScalar(o,c)]}};function A3(e){return{encode(t){const n=W.divisorPoly(e),r=Array.from(t);return r.push(...n.slice(0,-1).fill(0)),Uint8Array.from(W.remainderPoly(r,n))},decode(t){const n=t.slice(),r=W.polynomial(Array.from(t));let o=ft(e,0),s=!1;for(let d=0;d<e;d++){const f=W.evalPoly(r,W.exp(d));o[o.length-1-d]=f,f!==0&&(s=!0)}if(!s)return n;o=W.polynomial(o);const i=W.monomial(e,1),[a,c]=W.euclidian(i,o,e),l=ft(W.degree(a),0);let u=0;for(let d=1;d<256&&u<l.length;d++)W.evalPoly(a,d)===0&&(l[u++]=W.inv(d));if(u!==l.length)throw new Error("RS.decode: invalid errors number");for(let d=0;d<l.length;d++){const f=n.length-1-W.log(l[d]);if(f<0)throw new Error("RS.decode: invalid error location");const h=W.inv(l[d]);let p=1;for(let m=0;m<l.length;m++)d!==m&&(p=W.mul(p,W.add(1,W.mul(l[m],h))));n[f]=W.add(n[f],W.mul(W.evalPoly(c,h),W.inv(p)))}return n}}}function E3(e,t){const{words:n,shortBlocks:r,numBlocks:o,blockLen:s,total:i}=Ae.capacity(e,t),a=A3(n);return{encode(c){const l=[],u=[];for(let p=0;p<o;p++){const m=p<r,g=s+(m?0:1);l.push(c.subarray(0,g)),u.push(a.encode(c.subarray(0,g))),c=c.subarray(g)}const d=Au(l),f=Au(u),h=new Uint8Array(d.length+f.length);return h.set(d),h.set(f,d.length),h},decode(c){if(c.length!==i)throw new Error(`interleave.decode: len(data)=${c.length}, total=${i}`);const l=[];for(let f=0;f<o;f++){const h=f<r;l.push(new Uint8Array(n+s+(h?0:1)))}let u=0;for(let f=0;f<s;f++)for(let h=0;h<o;h++)l[h][f]=c[u++];for(let f=r;f<o;f++)l[f][s]=c[u++];for(let f=s;f<s+n;f++)for(let h=0;h<o;h++){const p=h<r;l[h][f+(p?0:1)]=c[u++]}const d=[];for(const f of l)d.push(...Array.from(a.decode(f)).slice(0,-n));return Uint8Array.from(d)}}}function I3(e,t,n,r=!1){const o=Ae.size.encode(e);let s=new Ee(o+2);const i=new Ee(3).rect(0,3,!0).border(1,!1).border(1,!0).border(1,!1);s=s.embed(0,i).embed({x:-i.width,y:0},i).embed({x:0,y:-i.height},i),s=s.rectSlice(1,o);const a=new Ee(1).rect(0,1,!0).border(1,!1).border(1,!0),c=Ae.alignmentPatterns(e);for(const l of c)for(const u of c)s.isDefined(u,l)||s.embed({x:u-2,y:l-2},a);s=s.hLine({x:0,y:6},1/0,({x:l})=>s.isDefined(l,6)?void 0:l%2==0).vLine({x:6,y:0},1/0,({y:l})=>s.isDefined(6,l)?void 0:l%2==0);{const l=Ae.formatBits(t,n),u=d=>!r&&(l>>d&1)==1;for(let d=0;d<6;d++)s.set(8,d,u(d));for(let d=6;d<8;d++)s.set(8,d+1,u(d));for(let d=8;d<15;d++)s.set(8,o-15+d,u(d));for(let d=0;d<8;d++)s.set(o-d-1,8,u(d));for(let d=8;d<9;d++)s.set(15-d-1+1,8,u(d));for(let d=9;d<15;d++)s.set(15-d-1,8,u(d));s.set(8,o-8,!r)}if(e>=7){const l=Ae.versionBits(e);for(let u=0;u<18;u+=1){const d=!r&&(l>>u&1)==1,f=Math.floor(u/3),h=u%3+o-8-3;s.set(h,f,d),s.set(f,h,d)}}return s}function k3(e,t,n){const r=e.height,o=Bc[t];let s=-1,i=r-1;for(let a=r-1;a>0;a-=2){for(a==6&&(a=5);;i+=s){for(let c=0;c<2;c+=1){const l=a-c;e.isDefined(l,i)||n(l,i,o(l,i))}if(i+s<0||i+s>=r)break}s=-s}}function B3(e){let t="numeric";for(let n of e)if(!Ae.alphabet.numeric.has(n)&&(t="alphanumeric",!Ae.alphabet.alphanumerc.has(n)))return"byte";return t}function j3(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function ju(e,t,n,r,o=j3){let s="",i=n.length;if(r==="numeric"){const f=Ae.alphabet.numeric.decode(n.split("")),h=f.length;for(let p=0;p<h-2;p+=3)s+=tn(f[p]*100+f[p+1]*10+f[p+2],10);h%3===1?s+=tn(f[h-1],4):h%3===2&&(s+=tn(f[h-2]*10+f[h-1],7))}else if(r==="alphanumeric"){const f=Ae.alphabet.alphanumerc.decode(n.split("")),h=f.length;for(let p=0;p<h-1;p+=2)s+=tn(f[p]*45+f[p+1],11);h%2==1&&(s+=tn(f[h-1],6))}else if(r==="byte"){const f=o(n);i=f.length,s=Array.from(f).map(h=>tn(h,8)).join("")}else throw new Error("encode: unsupported type");const{capacity:a}=Ae.capacity(e,t),c=tn(i,Ae.lengthBits(e,r));let l=Ae.modeBits[r]+c+s;if(l.length>a)throw new Error("Capacity overflow");l+="0".repeat(Math.min(4,Math.max(0,a-l.length))),l.length%8&&(l+="0".repeat(8-l.length%8));const u="1110110000010001";for(let f=0;l.length!==a;f++)l+=u[f%u.length];const d=Uint8Array.from(l.match(/(.{8})/g).map(f=>+`0b${f}`));return E3(e,t).encode(d)}function Su(e,t,n,r,o=!1){const s=I3(e,t,r,o);let i=0;const a=8*n.length;if(k3(s,r,(c,l,u)=>{let d=!1;i<a&&(d=(n[i>>>3]>>(7-i&7)&1)!==0,i++),s.set(c,l,d!==u)}),i!==a)throw new Error("QR: bytes left after draw");return s}const Oh=e=>{const t=e.map(n=>n?"1":"0").join("");return{len:t.length,n:+`0b${t}`}},Rh=[!0,!1,!0,!0,!0,!1,!0],Mh=[!1,!1,!1,!1],To=Oh([...Rh,...Mh]),_u=Oh([...Mh,...Rh]);function S3(e){const{width:t,height:n}=e,r=e.transpose();let o=0;for(let u=0;u<n;u++)e.getRuns(u,d=>{d>=5&&(o+=3+(d-5))});for(let u=0;u<t;u++)r.getRuns(u,d=>{d>=5&&(o+=3+(d-5))});let s=0;for(let u=0;u<n-1;u++)s+=3*e.countBoxes2x2(u);let i=0;for(let u=0;u<n;u++)i+=40*e.countPatternInRow(u,To.len,To.n,_u.n);for(let u=0;u<t;u++)i+=40*r.countPatternInRow(u,To.len,To.n,_u.n);let a=0;a=e.popcnt();const c=a/(n*t)*100,l=10*Math.floor(Math.abs(c-50)/5);return o+s+i+l}function _3(e,t,n,r){if(r===void 0){const o=w3();for(let s=0;s<Bc.length;s++)o.add(S3(Su(e,t,n,s,!0)),s);r=o.get()}if(r===void 0)throw new Error("Cannot find mask");return Su(e,t,n,r)}function P3(e){if(!ku.includes(e))throw new Error(`Invalid error correction mode=${e}. Expected: ${ku}`)}function T3(e){if(!Bu.includes(e))throw new Error(`Encoding: invalid mode=${e}. Expected: ${Bu}`);if(e==="kanji"||e==="eci")throw new Error(`Encoding: ${e} is not supported (yet?).`)}function O3(e){if(![0,1,2,3,4,5,6,7].includes(e)||!Bc[e])throw new Error(`Invalid mask=${e}. Expected number [0..7]`)}function R3(e,t="raw",n={}){const r=n.ecc!==void 0?n.ecc:"medium";P3(r);const o=n.encoding!==void 0?n.encoding:B3(e);T3(o),n.mask!==void 0&&O3(n.mask);let s=n.version,i,a=new Error("Unknown error");if(s!==void 0)y3(s),i=ju(s,r,e,o,n.textEncoder);else for(let u=1;u<=40;u++)try{i=ju(u,r,e,o,n.textEncoder),s=u;break}catch(d){a=d}if(!s||!i)throw a;let c=_3(s,r,i,n.mask);c.assertDrawn();const l=n.border===void 0?2:n.border;if(!Number.isSafeInteger(l))throw new Error(`invalid border type=${typeof l}`);if(c=c.border(l,!1),n.scale!==void 0&&(c=c.scale(n.scale)),t==="raw")return c.toRaw();if(t==="ascii")return c.toASCII();if(t==="svg")return c.toSVG(n.optimize);if(t==="gif")return c.toGIF();if(t==="term")return c.toTerm();throw new Error(`Unknown output: ${t}`)}function M3(e,t={}){const{errorCorrection:n,version:r}=t,o=R3(e,"raw",{border:0,ecc:n,scale:1,version:r});return{edgeLength:o.length,finderLength:7,grid:o,value:e}}function ht(e){const{arena:t,...n}=e;return ce.jsxs(ht.Root,{...n,children:[ce.jsx(ht.Finder,{}),ce.jsx(ht.Cells,{}),t&&ce.jsx(ht.Arena,{children:typeof t=="string"?ce.jsx("img",{alt:"Arena",src:t,style:{borderRadius:1,height:"100%",objectFit:"cover",width:"100%"}}):t})]})}(function(e){e.Context=B.createContext(null);function t(s){const{children:i,size:a="100%",value:c,version:l,errorCorrection:u,...d}=s,f=B.useMemo(()=>(B.Children.map(i,w=>!B.isValidElement(w)||typeof w.type=="string"?null:"displayName"in w.type&&w.type.displayName==="Arena"?!0:null)??[]).some(Boolean),[i]),h=B.useMemo(()=>{let w=u;return f&&u==="low"&&(w="medium"),M3(c,{errorCorrection:w,version:l})},[c,f,u,l]),p=1,m=h.edgeLength*p,g=h.finderLength*p/2,y=f?Math.floor(m/4):0,C=B.useMemo(()=>({arenaSize:y,cellSize:p,edgeSize:m,qrcode:h,finderSize:g}),[y,m,h,g]);return ce.jsx(e.Context.Provider,{value:C,children:ce.jsxs("svg",{...d,width:a,height:a,viewBox:`0 0 ${m} ${m}`,xmlns:"http://www.w3.org/2000/svg",children:[ce.jsx("title",{children:"QR Code"}),i]})})}e.Root=t,(function(s){s.displayName="Root"})(t=e.Root||(e.Root={}));function n(s){const{className:i,fill:a,innerClassName:c,radius:l=.25}=s,{cellSize:u,edgeSize:d,finderSize:f}=B.useContext(e.Context);function h({position:p}){let m=f-(f-u)-u/2;p==="top-right"&&(m=d-f-(f-u)-u/2);let g=f-(f-u)-u/2;p==="bottom-left"&&(g=d-f-(f-u)-u/2);let y=f-u*1.5;p==="top-right"&&(y=d-f-u*1.5);let C=f-u*1.5;return p==="bottom-left"&&(C=d-f-u*1.5),ce.jsxs(ce.Fragment,{children:[ce.jsx("rect",{className:i,stroke:a??"currentColor",fill:"transparent",x:m,y:g,width:u+(f-u)*2,height:u+(f-u)*2,rx:2*l*(f-u),ry:2*l*(f-u),strokeWidth:u}),ce.jsx("rect",{className:c,fill:a??"currentColor",x:y,y:C,width:u*3,height:u*3,rx:2*l*u,ry:2*l*u})]})}return ce.jsxs(ce.Fragment,{children:[ce.jsx(h,{position:"top-left"}),ce.jsx(h,{position:"top-right"}),ce.jsx(h,{position:"bottom-left"})]})}e.Finder=n,(function(s){s.displayName="Finder"})(n=e.Finder||(e.Finder={}));function r(s){const{className:i,fill:a="currentColor",inset:c=!0,radius:l=1}=s,{arenaSize:u,cellSize:d,qrcode:f}=B.useContext(e.Context),{edgeLength:h,finderLength:p}=f,m=B.useMemo(()=>{let g="";for(let y=0;y<f.grid.length;y++){const C=f.grid[y];if(C)for(let w=0;w<C.length;w++){if(!C[w])continue;const x=h/2-u/2,E=x+u;if(y>=x&&y<=E&&w>=x&&w<=E)continue;const A=y<p&&w<p,k=y<p&&w>=h-p,j=y>=h-p&&w<p;if(A||k||j)continue;const O=c?d*.1:0,_=(d-O*2)/2,R=w*d+d/2,P=y*d+d/2,$=R-_,S=R+_,N=P-_,F=P+_,T=l*_;g+=[`M ${$+T},${N}`,`L ${S-T},${N}`,`A ${T},${T} 0 0,1 ${S},${N+T}`,`L ${S},${F-T}`,`A ${T},${T} 0 0,1 ${S-T},${F}`,`L ${$+T},${F}`,`A ${T},${T} 0 0,1 ${$},${F-T}`,`L ${$},${N+T}`,`A ${T},${T} 0 0,1 ${$+T},${N}`,"z"].join(" ")}}return g},[u,d,h,p,f.grid,c,l]);return ce.jsx("path",{className:i,d:m,fill:a})}e.Cells=r,(function(s){s.displayName="Cells"})(r=e.Cells||(e.Cells={}));function o(s){const{children:i}=s,{arenaSize:a,cellSize:c,edgeSize:l}=B.useContext(e.Context),u=Math.ceil(l/2-a/2),d=a+a%2,f=c/2;return ce.jsx("foreignObject",{x:u,y:u,width:d,height:d,children:ce.jsx("div",{style:{alignItems:"center",display:"flex",fontSize:1,justifyContent:"center",height:"100%",overflow:"hidden",width:"100%",padding:f,boxSizing:"border-box"},children:i})})}e.Arena=o,(function(s){s.displayName="Arena"})(o=e.Arena||(e.Arena={}))})(ht||(ht={}));function N3(e={}){let t,n,r,o;return s=>({id:"baseAccount",name:"Base Account",rdns:"app.base.account",type:"baseAccount",async connect({chainId:i,withCapabilities:a,...c}={}){var l;try{const u=await this.getProvider(),d=i??((l=s.chains[0])==null?void 0:l.id);if(!d)throw new Zt;const f=await u.request({method:"wallet_connect",params:[{capabilities:"capabilities"in c&&c.capabilities?c.capabilities:{},chainIds:[D(d),...s.chains.filter(m=>m.id!==d).map(m=>D(m.id))]}]}),h=f.accounts.map(m=>({address:me(m.address),capabilities:m.capabilities??{}}));let p=Number(f.chainIds[0]);if(n||(n=this.onAccountsChanged.bind(this),u.on("accountsChanged",n)),r||(r=this.onChainChanged.bind(this),u.on("chainChanged",r)),o||(o=this.onDisconnect.bind(this),u.on("disconnect",o)),i&&p!==i){const m=await this.switchChain({chainId:i}).catch(g=>{if(g.code===oe.code)throw g;return{id:p}});p=(m==null?void 0:m.id)??p}return{accounts:a?h:h.map(m=>m.address),chainId:p}}catch(u){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(u.message)?new oe(u):u}},async disconnect(){const i=await this.getProvider();n&&(i.removeListener("accountsChanged",n),n=void 0),r&&(i.removeListener("chainChanged",r),r=void 0),o&&(i.removeListener("disconnect",o),o=void 0),i.disconnect()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(a=>me(a))},async getChainId(){const a=await(await this.getProvider()).request({method:"eth_chainId"});return Number(a)},async getProvider(){if(!t){const i=(()=>{var l;return typeof e.preference=="string"?{options:e.preference}:{...e.preference,options:((l=e.preference)==null?void 0:l.options)??"all"}})(),{createBaseAccountSDK:a}=await L(async()=>{const{createBaseAccountSDK:l}=await import("./index-DNA9wtqn.js");return{createBaseAccountSDK:l}},__vite__mapDeps([6,1,2,3,4,5]));t=a({...e,appChainIds:s.chains.map(l=>l.id),preference:i}).getProvider()}return t},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:i,chainId:a}){var u,d,f,h;const c=s.chains.find(p=>p.id===a);if(!c)throw new He(new Zt);const l=await this.getProvider();try{return await l.request({method:"wallet_switchEthereumChain",params:[{chainId:D(c.id)}]}),c}catch(p){if(p.code===4902)try{let m;i!=null&&i.blockExplorerUrls?m=i.blockExplorerUrls:m=(u=c.blockExplorers)!=null&&u.default.url?[(d=c.blockExplorers)==null?void 0:d.default.url]:[];let g;(f=i==null?void 0:i.rpcUrls)!=null&&f.length?g=i.rpcUrls:g=[((h=c.rpcUrls.default)==null?void 0:h.http[0])??""];const y={blockExplorerUrls:m,chainId:D(a),chainName:(i==null?void 0:i.chainName)??c.name,iconUrls:i==null?void 0:i.iconUrls,nativeCurrency:(i==null?void 0:i.nativeCurrency)??c.nativeCurrency,rpcUrls:g};return await l.request({method:"wallet_addEthereumChain",params:[y]}),c}catch(m){throw new oe(m)}throw new He(p)}},onAccountsChanged(i){i.length===0?this.onDisconnect():s.emitter.emit("change",{accounts:i.map(a=>me(a))})},onChainChanged(i){const a=Number(i);s.emitter.emit("change",{chainId:a})},async onDisconnect(i){s.emitter.emit("disconnect");const a=await this.getProvider();n&&(a.removeListener("accountsChanged",n),n=void 0),r&&(a.removeListener("chainChanged",r),r=void 0),o&&(a.removeListener("disconnect",o),o=void 0)}})}jc.type="metaMask";function jc(e={}){let t,n,r,o,s,i,a,c;return l=>({id:"metaMaskSDK",name:"MetaMask",rdns:["io.metamask","io.metamask.mobile"],type:jc.type,async setup(){const u=await this.getProvider();u!=null&&u.on&&(i||(i=this.onConnect.bind(this),u.on("connect",i)),o||(o=this.onAccountsChanged.bind(this),u.on("accountsChanged",o)))},async connect({chainId:u,isReconnecting:d,withCapabilities:f}={}){const h=await this.getProvider();a||(a=this.onDisplayUri,h.on("display_uri",a));let p=[];d&&(p=await this.getAccounts().catch(()=>[]));try{let m,g;p!=null&&p.length||(e.connectAndSign||e.connectWith?(e.connectAndSign?m=await t.connectAndSign({msg:e.connectAndSign}):e.connectWith&&(g=await t.connectWith({method:e.connectWith.method,params:e.connectWith.params})),p=await this.getAccounts()):p=(await t.connect()).map(w=>me(w)));let y=await this.getChainId();if(u&&y!==u){const C=await this.switchChain({chainId:u}).catch(w=>{if(w.code===oe.code)throw w;return{id:y}});y=(C==null?void 0:C.id)??y}return a&&(h.removeListener("display_uri",a),a=void 0),m?h.emit("connectAndSign",{accounts:p,chainId:y,signResponse:m}):g&&h.emit("connectWith",{accounts:p,chainId:y,connectWithResponse:g}),i&&(h.removeListener("connect",i),i=void 0),o||(o=this.onAccountsChanged.bind(this),h.on("accountsChanged",o)),s||(s=this.onChainChanged.bind(this),h.on("chainChanged",s)),c||(c=this.onDisconnect.bind(this),h.on("disconnect",c)),{accounts:f?p.map(C=>({address:C,capabilities:{}})):p,chainId:y}}catch(m){const g=m;throw g.code===oe.code?new oe(g):g.code===pt.code?new pt(g):g}},async disconnect(){const u=await this.getProvider();s&&(u.removeListener("chainChanged",s),s=void 0),c&&(u.removeListener("disconnect",c),c=void 0),i||(i=this.onConnect.bind(this),u.on("connect",i)),await t.terminate()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(f=>me(f))},async getChainId(){const u=await this.getProvider(),d=u.getChainId()||await(u==null?void 0:u.request({method:"eth_chainId"}));return Number(d)},async getProvider(){async function u(){var m,g,y,C,w;const d=await(async()=>{const{default:v}=await L(async()=>{const{default:x}=await import("./metamask-sdk-B0WxSi8v.js");return{default:x}},__vite__mapDeps([7,1,2]));return typeof v!="function"&&typeof v.default=="function"?v.default:v})(),f={};for(const v of l.chains)f[D(v.id)]=(m=Y0({chain:v,transports:l.transports}))==null?void 0:m[0];t=new d({_source:"wagmi",forceDeleteProvider:!1,forceInjectProvider:!1,injectProvider:!1,...e,readonlyRPCMap:f,dappMetadata:{...e.dappMetadata,name:(g=e.dappMetadata)!=null&&g.name?(y=e.dappMetadata)==null?void 0:y.name:"wagmi",url:(C=e.dappMetadata)!=null&&C.url?(w=e.dappMetadata)==null?void 0:w.url:typeof window<"u"?window.location.origin:"https://wagmi.sh"},useDeeplink:e.useDeeplink??!0});const h=await t.init(),p=h!=null&&h.activeProvider?h.activeProvider:t.getProvider();if(!p)throw new We;return p}return n||(r||(r=u()),n=await r),n},async isAuthorized(){try{return!!(await Hn(()=>ks(()=>this.getAccounts(),{timeout:200}),{delay:201,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:u,chainId:d}){var g,y;const f=await this.getProvider(),h=l.chains.find(C=>C.id===d);if(!h)throw new He(new Zt);try{return await f.request({method:"wallet_switchEthereumChain",params:[{chainId:D(d)}]}),await p(),await m(d),h}catch(C){const w=C;if(w.code===oe.code)throw new oe(w);if(w.code===4902||((y=(g=w==null?void 0:w.data)==null?void 0:g.originalError)==null?void 0:y.code)===4902)try{return await f.request({method:"wallet_addEthereumChain",params:[{blockExplorerUrls:(()=>{const{default:v,...x}=h.blockExplorers??{};if(u!=null&&u.blockExplorerUrls)return u.blockExplorerUrls;if(v)return[v.url,...Object.values(x).map(E=>E.url)]})(),chainId:D(d),chainName:(u==null?void 0:u.chainName)??h.name,iconUrls:u==null?void 0:u.iconUrls,nativeCurrency:(u==null?void 0:u.nativeCurrency)??h.nativeCurrency,rpcUrls:(()=>{var v,x;return(v=u==null?void 0:u.rpcUrls)!=null&&v.length?u.rpcUrls:[((x=h.rpcUrls.default)==null?void 0:x.http[0])??""]})()}]}),await p(),await m(d),h}catch(v){const x=v;throw x.code===oe.code?new oe(x):new He(x)}throw new He(w)}async function p(){await Hn(async()=>{const C=rt(await f.request({method:"eth_chainId"}));if(C!==d)throw new Error("User rejected switch after adding network.");return C},{delay:50,retryCount:20})}async function m(C){await new Promise(w=>{const v=(x=>{"chainId"in x&&x.chainId===C&&(l.emitter.off("change",v),w())});l.emitter.on("change",v),l.emitter.emit("change",{chainId:C})})}},async onAccountsChanged(u){if(u.length===0)if(t.isExtensionActive())this.onDisconnect();else return;else if(l.emitter.listenerCount("connect")){const d=(await this.getChainId()).toString();this.onConnect({chainId:d})}else l.emitter.emit("change",{accounts:u.map(d=>me(d))})},onChainChanged(u){const d=Number(u);l.emitter.emit("change",{chainId:d})},async onConnect(u){const d=await this.getAccounts();if(d.length===0)return;const f=Number(u.chainId);l.emitter.emit("connect",{accounts:d,chainId:f});const h=await this.getProvider();i&&(h.removeListener("connect",i),i=void 0),o||(o=this.onAccountsChanged.bind(this),h.on("accountsChanged",o)),s||(s=this.onChainChanged.bind(this),h.on("chainChanged",s)),c||(c=this.onDisconnect.bind(this),h.on("disconnect",c))},async onDisconnect(u){const d=await this.getProvider();u&&u.code===1013&&d&&(await this.getAccounts()).length||(l.emitter.emit("disconnect"),s&&(d.removeListener("chainChanged",s),s=void 0),c&&(d.removeListener("disconnect",c),c=void 0),i||(i=this.onConnect.bind(this),d.on("connect",i)))},onDisplayUri(u){l.emitter.emit("message",{type:"display_uri",data:u})}})}Sc.type="safe";function Sc(e={}){const{shimDisconnect:t=!1}=e;let n,r;return o=>({id:"safe",name:"Safe",type:Sc.type,async connect({withCapabilities:s}={}){var l;const i=await this.getProvider();if(!i)throw new We;const a=await this.getAccounts(),c=await this.getChainId();return r||(r=this.onDisconnect.bind(this),i.on("disconnect",r)),t&&await((l=o.storage)==null?void 0:l.removeItem("safe.disconnected")),{accounts:s?a.map(u=>({address:u,capabilities:{}})):a,chainId:c}},async disconnect(){var i;const s=await this.getProvider();if(!s)throw new We;r&&(s.removeListener("disconnect",r),r=void 0),t&&await((i=o.storage)==null?void 0:i.setItem("safe.disconnected",!0))},async getAccounts(){const s=await this.getProvider();if(!s)throw new We;return(await s.request({method:"eth_accounts"})).map(me)},async getProvider(){if(typeof window<"u"&&(window==null?void 0:window.parent)!==window){if(!n){const{default:i}=await L(async()=>{const{default:u}=await import("./index-CR02SnS1.js");return{default:u}},__vite__mapDeps([8,9,1,2,3,4,5])),a=new i(e),c=await ks(()=>a.safe.getInfo(),{timeout:e.unstable_getInfoTimeout??10});if(!c)throw new Error("Could not load Safe information");const l=await(async()=>{const u=await L(()=>import("./index-BrcuwiCz.js").then(d=>d.i),__vite__mapDeps([10,1,2,9,11]));return typeof u.SafeAppProvider!="function"&&typeof u.default.SafeAppProvider=="function"?u.default.SafeAppProvider:u.SafeAppProvider})();n=new l(c,a)}return n}},async getChainId(){const s=await this.getProvider();if(!s)throw new We;return Number(s.chainId)},async isAuthorized(){var s;try{return t&&await((s=o.storage)==null?void 0:s.getItem("safe.disconnected"))?!1:!!(await this.getAccounts()).length}catch{return!1}},onAccountsChanged(){},onChainChanged(){},onDisconnect(){o.emitter.emit("disconnect")}})}_c.type="walletConnect";function _c(e){const t=e.isNewChainsStale??!0;let n,r;const o="eip155";let s,i,a,c,l,u;return d=>({id:"walletConnect",name:"WalletConnect",type:_c.type,async setup(){const f=await this.getProvider().catch(()=>null);f&&(a||(a=this.onConnect.bind(this),f.on("connect",a)),l||(l=this.onSessionDelete.bind(this),f.on("session_delete",l)))},async connect({chainId:f,withCapabilities:h,...p}={}){var m,g;try{const y=await this.getProvider();if(!y)throw new We;c||(c=this.onDisplayUri,y.on("display_uri",c));let C=f;if(!C){const E=await((m=d.storage)==null?void 0:m.getItem("state"))??{};d.chains.some(k=>k.id===E.chainId)?C=E.chainId:C=(g=d.chains[0])==null?void 0:g.id}if(!C)throw new Error("No chains found on connector.");const w=await this.isChainsStale();if(y.session&&w&&await y.disconnect(),!y.session||w){const E=d.chains.filter(A=>A.id!==C).map(A=>A.id);await y.connect({optionalChains:[C,...E],..."pairingTopic"in p?{pairingTopic:p.pairingTopic}:{}}),this.setRequestedChainsIds(d.chains.map(A=>A.id))}const v=(await y.enable()).map(E=>me(E));let x=await this.getChainId();if(f&&x!==f){const E=await this.switchChain({chainId:f}).catch(A=>{var k;if(A.code===oe.code&&((k=A.cause)==null?void 0:k.message)!=="Missing or invalid. request() method: wallet_addEthereumChain")throw A;return{id:x}});x=(E==null?void 0:E.id)??x}return c&&(y.removeListener("display_uri",c),c=void 0),a&&(y.removeListener("connect",a),a=void 0),s||(s=this.onAccountsChanged.bind(this),y.on("accountsChanged",s)),i||(i=this.onChainChanged.bind(this),y.on("chainChanged",i)),u||(u=this.onDisconnect.bind(this),y.on("disconnect",u)),l||(l=this.onSessionDelete.bind(this),y.on("session_delete",l)),{accounts:h?v.map(E=>({address:E,capabilities:{}})):v,chainId:x}}catch(y){throw/(user rejected|connection request reset)/i.test(y==null?void 0:y.message)?new oe(y):y}},async disconnect(){const f=await this.getProvider();try{await(f==null?void 0:f.disconnect())}catch(h){if(!/No matching key/i.test(h.message))throw h}finally{i&&(f==null||f.removeListener("chainChanged",i),i=void 0),u&&(f==null||f.removeListener("disconnect",u),u=void 0),a||(a=this.onConnect.bind(this),f==null||f.on("connect",a)),s&&(f==null||f.removeListener("accountsChanged",s),s=void 0),l&&(f==null||f.removeListener("session_delete",l),l=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(h=>me(h))},async getProvider({chainId:f}={}){var p;async function h(){const m=d.chains.map(y=>y.id);if(!m.length)return;const{EthereumProvider:g}=await L(async()=>{const{EthereumProvider:y}=await import("./index.es-DX2eegnP.js").then(C=>C.X);return{EthereumProvider:y}},__vite__mapDeps([12,1,2,11]));return await g.init({...e,disableProviderPing:!0,optionalChains:m,projectId:e.projectId,rpcMap:Object.fromEntries(d.chains.map(y=>{const[C]=Y0({chain:y,transports:d.transports});return[y.id,C]})),showQrModal:e.showQrModal??!0})}return n||(r||(r=h()),n=await r,n==null||n.events.setMaxListeners(Number.POSITIVE_INFINITY)),f&&await((p=this.switchChain)==null?void 0:p.call(this,{chainId:f})),n},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{const[f,h]=await Promise.all([this.getAccounts(),this.getProvider()]);return f.length?await this.isChainsStale()&&h.session?(await h.disconnect().catch(()=>{}),!1):!0:!1}catch{return!1}},async switchChain({addEthereumChainParameter:f,chainId:h}){var g,y,C;const p=await this.getProvider();if(!p)throw new We;const m=d.chains.find(w=>w.id===h);if(!m)throw new He(new Zt);try{await Promise.all([new Promise(v=>{const x=({chainId:E})=>{E===h&&(d.emitter.off("change",x),v())};d.emitter.on("change",x)}),p.request({method:"wallet_switchEthereumChain",params:[{chainId:D(h)}]})]);const w=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...w,h]),m}catch(w){const v=w;if(/(user rejected)/i.test(v.message))throw new oe(v);try{let x;f!=null&&f.blockExplorerUrls?x=f.blockExplorerUrls:x=(g=m.blockExplorers)!=null&&g.default.url?[(y=m.blockExplorers)==null?void 0:y.default.url]:[];let E;(C=f==null?void 0:f.rpcUrls)!=null&&C.length?E=f.rpcUrls:E=[...m.rpcUrls.default.http];const A={blockExplorerUrls:x,chainId:D(h),chainName:(f==null?void 0:f.chainName)??m.name,iconUrls:f==null?void 0:f.iconUrls,nativeCurrency:(f==null?void 0:f.nativeCurrency)??m.nativeCurrency,rpcUrls:E};await p.request({method:"wallet_addEthereumChain",params:[A]});const k=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...k,h]),m}catch(x){throw new oe(x)}}},onAccountsChanged(f){f.length===0?this.onDisconnect():d.emitter.emit("change",{accounts:f.map(h=>me(h))})},onChainChanged(f){const h=Number(f);d.emitter.emit("change",{chainId:h})},async onConnect(f){const h=Number(f.chainId),p=await this.getAccounts();d.emitter.emit("connect",{accounts:p,chainId:h})},async onDisconnect(f){this.setRequestedChainsIds([]),d.emitter.emit("disconnect");const h=await this.getProvider();s&&(h.removeListener("accountsChanged",s),s=void 0),i&&(h.removeListener("chainChanged",i),i=void 0),u&&(h.removeListener("disconnect",u),u=void 0),l&&(h.removeListener("session_delete",l),l=void 0),a||(a=this.onConnect.bind(this),h.on("connect",a))},onDisplayUri(f){d.emitter.emit("message",{type:"display_uri",data:f})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds(){var h,p,m;return n?((m=(p=(h=n.session)==null?void 0:h.namespaces[o])==null?void 0:p.accounts)==null?void 0:m.map(g=>Number.parseInt(g.split(":")[1]||"",10)))??[]:[]},async getRequestedChainsIds(){var f;return await((f=d.storage)==null?void 0:f.getItem(this.requestedChainsStorageKey))??[]},async isChainsStale(){if(!t)return!1;const f=d.chains.map(m=>m.id),h=this.getNamespaceChainsIds();if(h.length&&!h.some(m=>f.includes(m)))return!1;const p=await this.getRequestedChainsIds();return!f.every(m=>p.includes(m))},async setRequestedChainsIds(f){var h;await((h=d.storage)==null?void 0:h.setItem(this.requestedChainsStorageKey,f))},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}})}var ns={},D3=768,jn=n2({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),Nh=ah({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),Ea=c2({conditions:{defaultCondition:"base",conditionNames:["base","hover","active"],responsiveArray:void 0},styles:{background:{values:{accentColor:{conditions:{base:"ju367v9i",hover:"ju367v9j",active:"ju367v9k"},defaultClass:"ju367v9i"},accentColorForeground:{conditions:{base:"ju367v9l",hover:"ju367v9m",active:"ju367v9n"},defaultClass:"ju367v9l"},actionButtonBorder:{conditions:{base:"ju367v9o",hover:"ju367v9p",active:"ju367v9q"},defaultClass:"ju367v9o"},actionButtonBorderMobile:{conditions:{base:"ju367v9r",hover:"ju367v9s",active:"ju367v9t"},defaultClass:"ju367v9r"},actionButtonSecondaryBackground:{conditions:{base:"ju367v9u",hover:"ju367v9v",active:"ju367v9w"},defaultClass:"ju367v9u"},closeButton:{conditions:{base:"ju367v9x",hover:"ju367v9y",active:"ju367v9z"},defaultClass:"ju367v9x"},closeButtonBackground:{conditions:{base:"ju367va0",hover:"ju367va1",active:"ju367va2"},defaultClass:"ju367va0"},connectButtonBackground:{conditions:{base:"ju367va3",hover:"ju367va4",active:"ju367va5"},defaultClass:"ju367va3"},connectButtonBackgroundError:{conditions:{base:"ju367va6",hover:"ju367va7",active:"ju367va8"},defaultClass:"ju367va6"},connectButtonInnerBackground:{conditions:{base:"ju367va9",hover:"ju367vaa",active:"ju367vab"},defaultClass:"ju367va9"},connectButtonText:{conditions:{base:"ju367vac",hover:"ju367vad",active:"ju367vae"},defaultClass:"ju367vac"},connectButtonTextError:{conditions:{base:"ju367vaf",hover:"ju367vag",active:"ju367vah"},defaultClass:"ju367vaf"},connectionIndicator:{conditions:{base:"ju367vai",hover:"ju367vaj",active:"ju367vak"},defaultClass:"ju367vai"},downloadBottomCardBackground:{conditions:{base:"ju367val",hover:"ju367vam",active:"ju367van"},defaultClass:"ju367val"},downloadTopCardBackground:{conditions:{base:"ju367vao",hover:"ju367vap",active:"ju367vaq"},defaultClass:"ju367vao"},error:{conditions:{base:"ju367var",hover:"ju367vas",active:"ju367vat"},defaultClass:"ju367var"},generalBorder:{conditions:{base:"ju367vau",hover:"ju367vav",active:"ju367vaw"},defaultClass:"ju367vau"},generalBorderDim:{conditions:{base:"ju367vax",hover:"ju367vay",active:"ju367vaz"},defaultClass:"ju367vax"},menuItemBackground:{conditions:{base:"ju367vb0",hover:"ju367vb1",active:"ju367vb2"},defaultClass:"ju367vb0"},modalBackdrop:{conditions:{base:"ju367vb3",hover:"ju367vb4",active:"ju367vb5"},defaultClass:"ju367vb3"},modalBackground:{conditions:{base:"ju367vb6",hover:"ju367vb7",active:"ju367vb8"},defaultClass:"ju367vb6"},modalBorder:{conditions:{base:"ju367vb9",hover:"ju367vba",active:"ju367vbb"},defaultClass:"ju367vb9"},modalText:{conditions:{base:"ju367vbc",hover:"ju367vbd",active:"ju367vbe"},defaultClass:"ju367vbc"},modalTextDim:{conditions:{base:"ju367vbf",hover:"ju367vbg",active:"ju367vbh"},defaultClass:"ju367vbf"},modalTextSecondary:{conditions:{base:"ju367vbi",hover:"ju367vbj",active:"ju367vbk"},defaultClass:"ju367vbi"},profileAction:{conditions:{base:"ju367vbl",hover:"ju367vbm",active:"ju367vbn"},defaultClass:"ju367vbl"},profileActionHover:{conditions:{base:"ju367vbo",hover:"ju367vbp",active:"ju367vbq"},defaultClass:"ju367vbo"},profileForeground:{conditions:{base:"ju367vbr",hover:"ju367vbs",active:"ju367vbt"},defaultClass:"ju367vbr"},selectedOptionBorder:{conditions:{base:"ju367vbu",hover:"ju367vbv",active:"ju367vbw"},defaultClass:"ju367vbu"},standby:{conditions:{base:"ju367vbx",hover:"ju367vby",active:"ju367vbz"},defaultClass:"ju367vbx"}}},borderColor:{values:{accentColor:{conditions:{base:"ju367vc0",hover:"ju367vc1",active:"ju367vc2"},defaultClass:"ju367vc0"},accentColorForeground:{conditions:{base:"ju367vc3",hover:"ju367vc4",active:"ju367vc5"},defaultClass:"ju367vc3"},actionButtonBorder:{conditions:{base:"ju367vc6",hover:"ju367vc7",active:"ju367vc8"},defaultClass:"ju367vc6"},actionButtonBorderMobile:{conditions:{base:"ju367vc9",hover:"ju367vca",active:"ju367vcb"},defaultClass:"ju367vc9"},actionButtonSecondaryBackground:{conditions:{base:"ju367vcc",hover:"ju367vcd",active:"ju367vce"},defaultClass:"ju367vcc"},closeButton:{conditions:{base:"ju367vcf",hover:"ju367vcg",active:"ju367vch"},defaultClass:"ju367vcf"},closeButtonBackground:{conditions:{base:"ju367vci",hover:"ju367vcj",active:"ju367vck"},defaultClass:"ju367vci"},connectButtonBackground:{conditions:{base:"ju367vcl",hover:"ju367vcm",active:"ju367vcn"},defaultClass:"ju367vcl"},connectButtonBackgroundError:{conditions:{base:"ju367vco",hover:"ju367vcp",active:"ju367vcq"},defaultClass:"ju367vco"},connectButtonInnerBackground:{conditions:{base:"ju367vcr",hover:"ju367vcs",active:"ju367vct"},defaultClass:"ju367vcr"},connectButtonText:{conditions:{base:"ju367vcu",hover:"ju367vcv",active:"ju367vcw"},defaultClass:"ju367vcu"},connectButtonTextError:{conditions:{base:"ju367vcx",hover:"ju367vcy",active:"ju367vcz"},defaultClass:"ju367vcx"},connectionIndicator:{conditions:{base:"ju367vd0",hover:"ju367vd1",active:"ju367vd2"},defaultClass:"ju367vd0"},downloadBottomCardBackground:{conditions:{base:"ju367vd3",hover:"ju367vd4",active:"ju367vd5"},defaultClass:"ju367vd3"},downloadTopCardBackground:{conditions:{base:"ju367vd6",hover:"ju367vd7",active:"ju367vd8"},defaultClass:"ju367vd6"},error:{conditions:{base:"ju367vd9",hover:"ju367vda",active:"ju367vdb"},defaultClass:"ju367vd9"},generalBorder:{conditions:{base:"ju367vdc",hover:"ju367vdd",active:"ju367vde"},defaultClass:"ju367vdc"},generalBorderDim:{conditions:{base:"ju367vdf",hover:"ju367vdg",active:"ju367vdh"},defaultClass:"ju367vdf"},menuItemBackground:{conditions:{base:"ju367vdi",hover:"ju367vdj",active:"ju367vdk"},defaultClass:"ju367vdi"},modalBackdrop:{conditions:{base:"ju367vdl",hover:"ju367vdm",active:"ju367vdn"},defaultClass:"ju367vdl"},modalBackground:{conditions:{base:"ju367vdo",hover:"ju367vdp",active:"ju367vdq"},defaultClass:"ju367vdo"},modalBorder:{conditions:{base:"ju367vdr",hover:"ju367vds",active:"ju367vdt"},defaultClass:"ju367vdr"},modalText:{conditions:{base:"ju367vdu",hover:"ju367vdv",active:"ju367vdw"},defaultClass:"ju367vdu"},modalTextDim:{conditions:{base:"ju367vdx",hover:"ju367vdy",active:"ju367vdz"},defaultClass:"ju367vdx"},modalTextSecondary:{conditions:{base:"ju367ve0",hover:"ju367ve1",active:"ju367ve2"},defaultClass:"ju367ve0"},profileAction:{conditions:{base:"ju367ve3",hover:"ju367ve4",active:"ju367ve5"},defaultClass:"ju367ve3"},profileActionHover:{conditions:{base:"ju367ve6",hover:"ju367ve7",active:"ju367ve8"},defaultClass:"ju367ve6"},profileForeground:{conditions:{base:"ju367ve9",hover:"ju367vea",active:"ju367veb"},defaultClass:"ju367ve9"},selectedOptionBorder:{conditions:{base:"ju367vec",hover:"ju367ved",active:"ju367vee"},defaultClass:"ju367vec"},standby:{conditions:{base:"ju367vef",hover:"ju367veg",active:"ju367veh"},defaultClass:"ju367vef"}}},boxShadow:{values:{connectButton:{conditions:{base:"ju367vei",hover:"ju367vej",active:"ju367vek"},defaultClass:"ju367vei"},dialog:{conditions:{base:"ju367vel",hover:"ju367vem",active:"ju367ven"},defaultClass:"ju367vel"},profileDetailsAction:{conditions:{base:"ju367veo",hover:"ju367vep",active:"ju367veq"},defaultClass:"ju367veo"},selectedOption:{conditions:{base:"ju367ver",hover:"ju367ves",active:"ju367vet"},defaultClass:"ju367ver"},selectedWallet:{conditions:{base:"ju367veu",hover:"ju367vev",active:"ju367vew"},defaultClass:"ju367veu"},walletLogo:{conditions:{base:"ju367vex",hover:"ju367vey",active:"ju367vez"},defaultClass:"ju367vex"}}},color:{values:{accentColor:{conditions:{base:"ju367vf0",hover:"ju367vf1",active:"ju367vf2"},defaultClass:"ju367vf0"},accentColorForeground:{conditions:{base:"ju367vf3",hover:"ju367vf4",active:"ju367vf5"},defaultClass:"ju367vf3"},actionButtonBorder:{conditions:{base:"ju367vf6",hover:"ju367vf7",active:"ju367vf8"},defaultClass:"ju367vf6"},actionButtonBorderMobile:{conditions:{base:"ju367vf9",hover:"ju367vfa",active:"ju367vfb"},defaultClass:"ju367vf9"},actionButtonSecondaryBackground:{conditions:{base:"ju367vfc",hover:"ju367vfd",active:"ju367vfe"},defaultClass:"ju367vfc"},closeButton:{conditions:{base:"ju367vff",hover:"ju367vfg",active:"ju367vfh"},defaultClass:"ju367vff"},closeButtonBackground:{conditions:{base:"ju367vfi",hover:"ju367vfj",active:"ju367vfk"},defaultClass:"ju367vfi"},connectButtonBackground:{conditions:{base:"ju367vfl",hover:"ju367vfm",active:"ju367vfn"},defaultClass:"ju367vfl"},connectButtonBackgroundError:{conditions:{base:"ju367vfo",hover:"ju367vfp",active:"ju367vfq"},defaultClass:"ju367vfo"},connectButtonInnerBackground:{conditions:{base:"ju367vfr",hover:"ju367vfs",active:"ju367vft"},defaultClass:"ju367vfr"},connectButtonText:{conditions:{base:"ju367vfu",hover:"ju367vfv",active:"ju367vfw"},defaultClass:"ju367vfu"},connectButtonTextError:{conditions:{base:"ju367vfx",hover:"ju367vfy",active:"ju367vfz"},defaultClass:"ju367vfx"},connectionIndicator:{conditions:{base:"ju367vg0",hover:"ju367vg1",active:"ju367vg2"},defaultClass:"ju367vg0"},downloadBottomCardBackground:{conditions:{base:"ju367vg3",hover:"ju367vg4",active:"ju367vg5"},defaultClass:"ju367vg3"},downloadTopCardBackground:{conditions:{base:"ju367vg6",hover:"ju367vg7",active:"ju367vg8"},defaultClass:"ju367vg6"},error:{conditions:{base:"ju367vg9",hover:"ju367vga",active:"ju367vgb"},defaultClass:"ju367vg9"},generalBorder:{conditions:{base:"ju367vgc",hover:"ju367vgd",active:"ju367vge"},defaultClass:"ju367vgc"},generalBorderDim:{conditions:{base:"ju367vgf",hover:"ju367vgg",active:"ju367vgh"},defaultClass:"ju367vgf"},menuItemBackground:{conditions:{base:"ju367vgi",hover:"ju367vgj",active:"ju367vgk"},defaultClass:"ju367vgi"},modalBackdrop:{conditions:{base:"ju367vgl",hover:"ju367vgm",active:"ju367vgn"},defaultClass:"ju367vgl"},modalBackground:{conditions:{base:"ju367vgo",hover:"ju367vgp",active:"ju367vgq"},defaultClass:"ju367vgo"},modalBorder:{conditions:{base:"ju367vgr",hover:"ju367vgs",active:"ju367vgt"},defaultClass:"ju367vgr"},modalText:{conditions:{base:"ju367vgu",hover:"ju367vgv",active:"ju367vgw"},defaultClass:"ju367vgu"},modalTextDim:{conditions:{base:"ju367vgx",hover:"ju367vgy",active:"ju367vgz"},defaultClass:"ju367vgx"},modalTextSecondary:{conditions:{base:"ju367vh0",hover:"ju367vh1",active:"ju367vh2"},defaultClass:"ju367vh0"},profileAction:{conditions:{base:"ju367vh3",hover:"ju367vh4",active:"ju367vh5"},defaultClass:"ju367vh3"},profileActionHover:{conditions:{base:"ju367vh6",hover:"ju367vh7",active:"ju367vh8"},defaultClass:"ju367vh6"},profileForeground:{conditions:{base:"ju367vh9",hover:"ju367vha",active:"ju367vhb"},defaultClass:"ju367vh9"},selectedOptionBorder:{conditions:{base:"ju367vhc",hover:"ju367vhd",active:"ju367vhe"},defaultClass:"ju367vhc"},standby:{conditions:{base:"ju367vhf",hover:"ju367vhg",active:"ju367vhh"},defaultClass:"ju367vhf"}}}}},{conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0},styles:{alignItems:{values:{"flex-start":{conditions:{smallScreen:"ju367v0",largeScreen:"ju367v1"},defaultClass:"ju367v0"},"flex-end":{conditions:{smallScreen:"ju367v2",largeScreen:"ju367v3"},defaultClass:"ju367v2"},center:{conditions:{smallScreen:"ju367v4",largeScreen:"ju367v5"},defaultClass:"ju367v4"}}},display:{values:{none:{conditions:{smallScreen:"ju367v6",largeScreen:"ju367v7"},defaultClass:"ju367v6"},block:{conditions:{smallScreen:"ju367v8",largeScreen:"ju367v9"},defaultClass:"ju367v8"},flex:{conditions:{smallScreen:"ju367va",largeScreen:"ju367vb"},defaultClass:"ju367va"},inline:{conditions:{smallScreen:"ju367vc",largeScreen:"ju367vd"},defaultClass:"ju367vc"}}}}},{conditions:void 0,styles:{margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},alignSelf:{values:{"flex-start":{defaultClass:"ju367ve"},"flex-end":{defaultClass:"ju367vf"},center:{defaultClass:"ju367vg"}}},backgroundSize:{values:{cover:{defaultClass:"ju367vh"}}},borderRadius:{values:{1:{defaultClass:"ju367vi"},6:{defaultClass:"ju367vj"},10:{defaultClass:"ju367vk"},13:{defaultClass:"ju367vl"},actionButton:{defaultClass:"ju367vm"},connectButton:{defaultClass:"ju367vn"},menuButton:{defaultClass:"ju367vo"},modal:{defaultClass:"ju367vp"},modalMobile:{defaultClass:"ju367vq"},"25%":{defaultClass:"ju367vr"},full:{defaultClass:"ju367vs"}}},borderStyle:{values:{solid:{defaultClass:"ju367vt"}}},borderWidth:{values:{0:{defaultClass:"ju367vu"},1:{defaultClass:"ju367vv"},2:{defaultClass:"ju367vw"},4:{defaultClass:"ju367vx"}}},cursor:{values:{pointer:{defaultClass:"ju367vy"},none:{defaultClass:"ju367vz"}}},pointerEvents:{values:{none:{defaultClass:"ju367v10"},all:{defaultClass:"ju367v11"}}},minHeight:{values:{8:{defaultClass:"ju367v12"},44:{defaultClass:"ju367v13"}}},flexDirection:{values:{row:{defaultClass:"ju367v14"},column:{defaultClass:"ju367v15"}}},fontFamily:{values:{body:{defaultClass:"ju367v16"}}},fontSize:{values:{12:{defaultClass:"ju367v17"},13:{defaultClass:"ju367v18"},14:{defaultClass:"ju367v19"},16:{defaultClass:"ju367v1a"},18:{defaultClass:"ju367v1b"},20:{defaultClass:"ju367v1c"},23:{defaultClass:"ju367v1d"}}},fontWeight:{values:{regular:{defaultClass:"ju367v1e"},medium:{defaultClass:"ju367v1f"},semibold:{defaultClass:"ju367v1g"},bold:{defaultClass:"ju367v1h"},heavy:{defaultClass:"ju367v1i"}}},gap:{values:{0:{defaultClass:"ju367v1j"},1:{defaultClass:"ju367v1k"},2:{defaultClass:"ju367v1l"},3:{defaultClass:"ju367v1m"},4:{defaultClass:"ju367v1n"},5:{defaultClass:"ju367v1o"},6:{defaultClass:"ju367v1p"},8:{defaultClass:"ju367v1q"},10:{defaultClass:"ju367v1r"},12:{defaultClass:"ju367v1s"},14:{defaultClass:"ju367v1t"},16:{defaultClass:"ju367v1u"},18:{defaultClass:"ju367v1v"},20:{defaultClass:"ju367v1w"},24:{defaultClass:"ju367v1x"},28:{defaultClass:"ju367v1y"},32:{defaultClass:"ju367v1z"},36:{defaultClass:"ju367v20"},44:{defaultClass:"ju367v21"},64:{defaultClass:"ju367v22"},"-1":{defaultClass:"ju367v23"}}},height:{values:{1:{defaultClass:"ju367v24"},2:{defaultClass:"ju367v25"},4:{defaultClass:"ju367v26"},8:{defaultClass:"ju367v27"},12:{defaultClass:"ju367v28"},20:{defaultClass:"ju367v29"},24:{defaultClass:"ju367v2a"},28:{defaultClass:"ju367v2b"},30:{defaultClass:"ju367v2c"},32:{defaultClass:"ju367v2d"},34:{defaultClass:"ju367v2e"},36:{defaultClass:"ju367v2f"},40:{defaultClass:"ju367v2g"},44:{defaultClass:"ju367v2h"},48:{defaultClass:"ju367v2i"},54:{defaultClass:"ju367v2j"},60:{defaultClass:"ju367v2k"},200:{defaultClass:"ju367v2l"},full:{defaultClass:"ju367v2m"},max:{defaultClass:"ju367v2n"}}},justifyContent:{values:{"flex-start":{defaultClass:"ju367v2o"},"flex-end":{defaultClass:"ju367v2p"},center:{defaultClass:"ju367v2q"},"space-between":{defaultClass:"ju367v2r"},"space-around":{defaultClass:"ju367v2s"}}},textAlign:{values:{left:{defaultClass:"ju367v2t"},center:{defaultClass:"ju367v2u"},inherit:{defaultClass:"ju367v2v"}}},marginBottom:{values:{0:{defaultClass:"ju367v2w"},1:{defaultClass:"ju367v2x"},2:{defaultClass:"ju367v2y"},3:{defaultClass:"ju367v2z"},4:{defaultClass:"ju367v30"},5:{defaultClass:"ju367v31"},6:{defaultClass:"ju367v32"},8:{defaultClass:"ju367v33"},10:{defaultClass:"ju367v34"},12:{defaultClass:"ju367v35"},14:{defaultClass:"ju367v36"},16:{defaultClass:"ju367v37"},18:{defaultClass:"ju367v38"},20:{defaultClass:"ju367v39"},24:{defaultClass:"ju367v3a"},28:{defaultClass:"ju367v3b"},32:{defaultClass:"ju367v3c"},36:{defaultClass:"ju367v3d"},44:{defaultClass:"ju367v3e"},64:{defaultClass:"ju367v3f"},"-1":{defaultClass:"ju367v3g"}}},marginLeft:{values:{0:{defaultClass:"ju367v3h"},1:{defaultClass:"ju367v3i"},2:{defaultClass:"ju367v3j"},3:{defaultClass:"ju367v3k"},4:{defaultClass:"ju367v3l"},5:{defaultClass:"ju367v3m"},6:{defaultClass:"ju367v3n"},8:{defaultClass:"ju367v3o"},10:{defaultClass:"ju367v3p"},12:{defaultClass:"ju367v3q"},14:{defaultClass:"ju367v3r"},16:{defaultClass:"ju367v3s"},18:{defaultClass:"ju367v3t"},20:{defaultClass:"ju367v3u"},24:{defaultClass:"ju367v3v"},28:{defaultClass:"ju367v3w"},32:{defaultClass:"ju367v3x"},36:{defaultClass:"ju367v3y"},44:{defaultClass:"ju367v3z"},64:{defaultClass:"ju367v40"},"-1":{defaultClass:"ju367v41"}}},marginRight:{values:{0:{defaultClass:"ju367v42"},1:{defaultClass:"ju367v43"},2:{defaultClass:"ju367v44"},3:{defaultClass:"ju367v45"},4:{defaultClass:"ju367v46"},5:{defaultClass:"ju367v47"},6:{defaultClass:"ju367v48"},8:{defaultClass:"ju367v49"},10:{defaultClass:"ju367v4a"},12:{defaultClass:"ju367v4b"},14:{defaultClass:"ju367v4c"},16:{defaultClass:"ju367v4d"},18:{defaultClass:"ju367v4e"},20:{defaultClass:"ju367v4f"},24:{defaultClass:"ju367v4g"},28:{defaultClass:"ju367v4h"},32:{defaultClass:"ju367v4i"},36:{defaultClass:"ju367v4j"},44:{defaultClass:"ju367v4k"},64:{defaultClass:"ju367v4l"},"-1":{defaultClass:"ju367v4m"}}},marginTop:{values:{0:{defaultClass:"ju367v4n"},1:{defaultClass:"ju367v4o"},2:{defaultClass:"ju367v4p"},3:{defaultClass:"ju367v4q"},4:{defaultClass:"ju367v4r"},5:{defaultClass:"ju367v4s"},6:{defaultClass:"ju367v4t"},8:{defaultClass:"ju367v4u"},10:{defaultClass:"ju367v4v"},12:{defaultClass:"ju367v4w"},14:{defaultClass:"ju367v4x"},16:{defaultClass:"ju367v4y"},18:{defaultClass:"ju367v4z"},20:{defaultClass:"ju367v50"},24:{defaultClass:"ju367v51"},28:{defaultClass:"ju367v52"},32:{defaultClass:"ju367v53"},36:{defaultClass:"ju367v54"},44:{defaultClass:"ju367v55"},64:{defaultClass:"ju367v56"},"-1":{defaultClass:"ju367v57"}}},maxWidth:{values:{1:{defaultClass:"ju367v58"},2:{defaultClass:"ju367v59"},4:{defaultClass:"ju367v5a"},8:{defaultClass:"ju367v5b"},12:{defaultClass:"ju367v5c"},20:{defaultClass:"ju367v5d"},24:{defaultClass:"ju367v5e"},28:{defaultClass:"ju367v5f"},30:{defaultClass:"ju367v5g"},32:{defaultClass:"ju367v5h"},34:{defaultClass:"ju367v5i"},36:{defaultClass:"ju367v5j"},40:{defaultClass:"ju367v5k"},44:{defaultClass:"ju367v5l"},48:{defaultClass:"ju367v5m"},54:{defaultClass:"ju367v5n"},60:{defaultClass:"ju367v5o"},200:{defaultClass:"ju367v5p"},full:{defaultClass:"ju367v5q"},max:{defaultClass:"ju367v5r"}}},minWidth:{values:{1:{defaultClass:"ju367v5s"},2:{defaultClass:"ju367v5t"},4:{defaultClass:"ju367v5u"},8:{defaultClass:"ju367v5v"},12:{defaultClass:"ju367v5w"},20:{defaultClass:"ju367v5x"},24:{defaultClass:"ju367v5y"},28:{defaultClass:"ju367v5z"},30:{defaultClass:"ju367v60"},32:{defaultClass:"ju367v61"},34:{defaultClass:"ju367v62"},36:{defaultClass:"ju367v63"},40:{defaultClass:"ju367v64"},44:{defaultClass:"ju367v65"},48:{defaultClass:"ju367v66"},54:{defaultClass:"ju367v67"},60:{defaultClass:"ju367v68"},200:{defaultClass:"ju367v69"},full:{defaultClass:"ju367v6a"},max:{defaultClass:"ju367v6b"}}},overflow:{values:{hidden:{defaultClass:"ju367v6c"}}},paddingBottom:{values:{0:{defaultClass:"ju367v6d"},1:{defaultClass:"ju367v6e"},2:{defaultClass:"ju367v6f"},3:{defaultClass:"ju367v6g"},4:{defaultClass:"ju367v6h"},5:{defaultClass:"ju367v6i"},6:{defaultClass:"ju367v6j"},8:{defaultClass:"ju367v6k"},10:{defaultClass:"ju367v6l"},12:{defaultClass:"ju367v6m"},14:{defaultClass:"ju367v6n"},16:{defaultClass:"ju367v6o"},18:{defaultClass:"ju367v6p"},20:{defaultClass:"ju367v6q"},24:{defaultClass:"ju367v6r"},28:{defaultClass:"ju367v6s"},32:{defaultClass:"ju367v6t"},36:{defaultClass:"ju367v6u"},44:{defaultClass:"ju367v6v"},64:{defaultClass:"ju367v6w"},"-1":{defaultClass:"ju367v6x"}}},paddingLeft:{values:{0:{defaultClass:"ju367v6y"},1:{defaultClass:"ju367v6z"},2:{defaultClass:"ju367v70"},3:{defaultClass:"ju367v71"},4:{defaultClass:"ju367v72"},5:{defaultClass:"ju367v73"},6:{defaultClass:"ju367v74"},8:{defaultClass:"ju367v75"},10:{defaultClass:"ju367v76"},12:{defaultClass:"ju367v77"},14:{defaultClass:"ju367v78"},16:{defaultClass:"ju367v79"},18:{defaultClass:"ju367v7a"},20:{defaultClass:"ju367v7b"},24:{defaultClass:"ju367v7c"},28:{defaultClass:"ju367v7d"},32:{defaultClass:"ju367v7e"},36:{defaultClass:"ju367v7f"},44:{defaultClass:"ju367v7g"},64:{defaultClass:"ju367v7h"},"-1":{defaultClass:"ju367v7i"}}},paddingRight:{values:{0:{defaultClass:"ju367v7j"},1:{defaultClass:"ju367v7k"},2:{defaultClass:"ju367v7l"},3:{defaultClass:"ju367v7m"},4:{defaultClass:"ju367v7n"},5:{defaultClass:"ju367v7o"},6:{defaultClass:"ju367v7p"},8:{defaultClass:"ju367v7q"},10:{defaultClass:"ju367v7r"},12:{defaultClass:"ju367v7s"},14:{defaultClass:"ju367v7t"},16:{defaultClass:"ju367v7u"},18:{defaultClass:"ju367v7v"},20:{defaultClass:"ju367v7w"},24:{defaultClass:"ju367v7x"},28:{defaultClass:"ju367v7y"},32:{defaultClass:"ju367v7z"},36:{defaultClass:"ju367v80"},44:{defaultClass:"ju367v81"},64:{defaultClass:"ju367v82"},"-1":{defaultClass:"ju367v83"}}},paddingTop:{values:{0:{defaultClass:"ju367v84"},1:{defaultClass:"ju367v85"},2:{defaultClass:"ju367v86"},3:{defaultClass:"ju367v87"},4:{defaultClass:"ju367v88"},5:{defaultClass:"ju367v89"},6:{defaultClass:"ju367v8a"},8:{defaultClass:"ju367v8b"},10:{defaultClass:"ju367v8c"},12:{defaultClass:"ju367v8d"},14:{defaultClass:"ju367v8e"},16:{defaultClass:"ju367v8f"},18:{defaultClass:"ju367v8g"},20:{defaultClass:"ju367v8h"},24:{defaultClass:"ju367v8i"},28:{defaultClass:"ju367v8j"},32:{defaultClass:"ju367v8k"},36:{defaultClass:"ju367v8l"},44:{defaultClass:"ju367v8m"},64:{defaultClass:"ju367v8n"},"-1":{defaultClass:"ju367v8o"}}},position:{values:{absolute:{defaultClass:"ju367v8p"},fixed:{defaultClass:"ju367v8q"},relative:{defaultClass:"ju367v8r"}}},WebkitUserSelect:{values:{none:{defaultClass:"ju367v8s"}}},right:{values:{0:{defaultClass:"ju367v8t"}}},transition:{values:{default:{defaultClass:"ju367v8u"},transform:{defaultClass:"ju367v8v"}}},userSelect:{values:{none:{defaultClass:"ju367v8w"}}},width:{values:{1:{defaultClass:"ju367v8x"},2:{defaultClass:"ju367v8y"},4:{defaultClass:"ju367v8z"},8:{defaultClass:"ju367v90"},12:{defaultClass:"ju367v91"},20:{defaultClass:"ju367v92"},24:{defaultClass:"ju367v93"},28:{defaultClass:"ju367v94"},30:{defaultClass:"ju367v95"},32:{defaultClass:"ju367v96"},34:{defaultClass:"ju367v97"},36:{defaultClass:"ju367v98"},40:{defaultClass:"ju367v99"},44:{defaultClass:"ju367v9a"},48:{defaultClass:"ju367v9b"},54:{defaultClass:"ju367v9c"},60:{defaultClass:"ju367v9d"},200:{defaultClass:"ju367v9e"},full:{defaultClass:"ju367v9f"},max:{defaultClass:"ju367v9g"}}},backdropFilter:{values:{modalOverlay:{defaultClass:"ju367v9h"}}}}}),Pu={colors:{accentColor:"var(--rk-colors-accentColor)",accentColorForeground:"var(--rk-colors-accentColorForeground)",actionButtonBorder:"var(--rk-colors-actionButtonBorder)",actionButtonBorderMobile:"var(--rk-colors-actionButtonBorderMobile)",actionButtonSecondaryBackground:"var(--rk-colors-actionButtonSecondaryBackground)",closeButton:"var(--rk-colors-closeButton)",closeButtonBackground:"var(--rk-colors-closeButtonBackground)",connectButtonBackground:"var(--rk-colors-connectButtonBackground)",connectButtonBackgroundError:"var(--rk-colors-connectButtonBackgroundError)",connectButtonInnerBackground:"var(--rk-colors-connectButtonInnerBackground)",connectButtonText:"var(--rk-colors-connectButtonText)",connectButtonTextError:"var(--rk-colors-connectButtonTextError)",connectionIndicator:"var(--rk-colors-connectionIndicator)",downloadBottomCardBackground:"var(--rk-colors-downloadBottomCardBackground)",downloadTopCardBackground:"var(--rk-colors-downloadTopCardBackground)",error:"var(--rk-colors-error)",generalBorder:"var(--rk-colors-generalBorder)",generalBorderDim:"var(--rk-colors-generalBorderDim)",menuItemBackground:"var(--rk-colors-menuItemBackground)",modalBackdrop:"var(--rk-colors-modalBackdrop)",modalBackground:"var(--rk-colors-modalBackground)",modalBorder:"var(--rk-colors-modalBorder)",modalText:"var(--rk-colors-modalText)",modalTextDim:"var(--rk-colors-modalTextDim)",modalTextSecondary:"var(--rk-colors-modalTextSecondary)",profileAction:"var(--rk-colors-profileAction)",profileActionHover:"var(--rk-colors-profileActionHover)",profileForeground:"var(--rk-colors-profileForeground)",selectedOptionBorder:"var(--rk-colors-selectedOptionBorder)",standby:"var(--rk-colors-standby)"},fonts:{body:"var(--rk-fonts-body)"},radii:{actionButton:"var(--rk-radii-actionButton)",connectButton:"var(--rk-radii-connectButton)",menuButton:"var(--rk-radii-menuButton)",modal:"var(--rk-radii-modal)",modalMobile:"var(--rk-radii-modalMobile)"},shadows:{connectButton:"var(--rk-shadows-connectButton)",dialog:"var(--rk-shadows-dialog)",profileDetailsAction:"var(--rk-shadows-profileDetailsAction)",selectedOption:"var(--rk-shadows-selectedOption)",selectedWallet:"var(--rk-shadows-selectedWallet)",walletLogo:"var(--rk-shadows-walletLogo)"},blurs:{modalOverlay:"var(--rk-blurs-modalOverlay)"}},F3={shrink:"_12cbo8i6",shrinkSm:"_12cbo8i7"},L3="_12cbo8i3 ju367v8r",U3={grow:"_12cbo8i4",growLg:"_12cbo8i5"};function ue({active:e,hover:t}){return[L3,t&&U3[t],F3[e]]}var Dh=B.createContext(null);function z3(){const{adapter:e}=B.useContext(Dh)??{};if(!e)throw new Error("No authentication adapter found");return e}function Rs(){const e=B.useContext(Dh);return(e==null?void 0:e.status)??null}function Pc(){const e=Rs(),{isConnected:t}=Ne();return t?e&&(e==="loading"||e==="unauthenticated")?e:"connected":"disconnected"}function Fh(){return typeof navigator<"u"&&/android/i.test(navigator.userAgent)}function W3(){return typeof navigator<"u"&&/iPhone|iPod/.test(navigator.userAgent)}function $3(){return typeof navigator<"u"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function ho(){return W3()||$3()}function he(){return Fh()||ho()}var q3="iekbcc0",H3={a:"iekbcca",blockquote:"iekbcc2",button:"iekbcc9",input:"iekbcc8 iekbcc5 iekbcc4",mark:"iekbcc6",ol:"iekbcc1",q:"iekbcc2",select:"iekbcc7 iekbcc5 iekbcc4",table:"iekbcc3",textarea:"iekbcc5 iekbcc4",ul:"iekbcc1"},V3=({reset:e,...t})=>{if(!e)return Ea(t);const n=H3[e],r=Ea(t);return hd(q3,n,r)},I=b.forwardRef(({as:e="div",className:t,testId:n,...r},o)=>{const s={},i={};for(const c in r)Ea.properties.has(c)?s[c]=r[c]:i[c]=r[c];const a=V3({reset:typeof e=="string"?e:"div",...s});return b.createElement(e,{className:hd(a,t),...i,"data-testid":n?`rk-${n.replace(/^rk-/,"")}`:void 0,ref:o})});I.displayName="Box";var Lh=new Map,wi=new Map;async function Uh(e){const t=wi.get(e);if(t)return t;const n=async()=>e().then(async o=>(Lh.set(e,o),o)),r=n().catch(o=>n().catch(s=>{wi.delete(e)}));return wi.set(e,r),r}async function wt(...e){return await Promise.all(e.map(t=>typeof t=="function"?Uh(t):t))}function G3(){const[,e]=B.useReducer(t=>t+1,0);return e}function Ms(e){const t=typeof e=="function"?Lh.get(e):void 0,n=G3();return B.useEffect(()=>{typeof e=="function"&&!t&&Uh(e).then(n)},[e,t,n]),typeof e=="function"?t:e}function ge({alt:e,background:t,borderColor:n,borderRadius:r,useAsImage:o,boxShadow:s,height:i,src:a,width:c,testId:l}){const u=ho(),d=Ms(a),f=d&&/^http/.test(d),[h,p]=B.useReducer(()=>!0,!1);return b.createElement(I,{"aria-label":e,borderRadius:r,boxShadow:s,height:typeof i=="string"?i:void 0,overflow:"hidden",position:"relative",role:"img",style:{background:t,height:typeof i=="number"?i:void 0,width:typeof c=="number"?c:void 0},width:typeof c=="string"?c:void 0,testId:l},b.createElement(I,{...f?{"aria-hidden":!0,as:"img",onLoad:p,src:d}:{"aria-hidden":!0,as:"img",src:d},height:"full",position:"absolute",...u?{WebkitUserSelect:"none"}:{},style:{WebkitTouchCallout:"none",transition:"opacity .15s linear",userSelect:"none",...!o&&f?{opacity:h?1:0}:{}},width:"full"}),n?b.createElement(I,{...typeof n=="object"&&"custom"in n?{style:{borderColor:n.custom}}:{borderColor:n},borderRadius:r,borderStyle:"solid",borderWidth:"1",height:"full",position:"relative",width:"full"}):null)}var Q3="_1luule42",K3="_1luule43",J3=e=>B.useMemo(()=>`${e}_${Math.round(Math.random()*1e9)}`,[e]),Kr=({height:e=21,width:t=21})=>{const n=J3("spinner");return b.createElement("svg",{className:Q3,fill:"none",height:e,viewBox:"0 0 21 21",width:t,xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,"Loading"),b.createElement("clipPath",{id:n},b.createElement("path",{d:"M10.5 3C6.35786 3 3 6.35786 3 10.5C3 14.6421 6.35786 18 10.5 18C11.3284 18 12 18.6716 12 19.5C12 20.3284 11.3284 21 10.5 21C4.70101 21 0 16.299 0 10.5C0 4.70101 4.70101 0 10.5 0C16.299 0 21 4.70101 21 10.5C21 11.3284 20.3284 12 19.5 12C18.6716 12 18 11.3284 18 10.5C18 6.35786 14.6421 3 10.5 3Z"})),b.createElement("foreignObject",{clipPath:`url(#${n})`,height:"21",width:"21",x:"0",y:"0"},b.createElement("div",{className:K3})))},ee=["#FC5C54","#FFD95A","#E95D72","#6A87C8","#5FD0F3","#75C06B","#FFDD86","#5FC6D4","#FF949A","#FF8024","#9BA1A4","#EC66FF","#FF8CBC","#FF9A23","#C5DADB","#A8CE63","#71ABFF","#FFE279","#B6B1B6","#FF6780","#A575FF","#4D82FF","#FFB35A"],Tu=[{color:ee[0],emoji:"🌶"},{color:ee[1],emoji:"🤑"},{color:ee[2],emoji:"🐙"},{color:ee[3],emoji:"🫐"},{color:ee[4],emoji:"🐳"},{color:ee[0],emoji:"🤶"},{color:ee[5],emoji:"🌲"},{color:ee[6],emoji:"🌞"},{color:ee[7],emoji:"🐒"},{color:ee[8],emoji:"🐵"},{color:ee[9],emoji:"🦊"},{color:ee[10],emoji:"🐼"},{color:ee[11],emoji:"🦄"},{color:ee[12],emoji:"🐷"},{color:ee[13],emoji:"🐧"},{color:ee[8],emoji:"🦩"},{color:ee[14],emoji:"👽"},{color:ee[0],emoji:"🎈"},{color:ee[8],emoji:"🍉"},{color:ee[1],emoji:"🎉"},{color:ee[15],emoji:"🐲"},{color:ee[16],emoji:"🌎"},{color:ee[17],emoji:"🍊"},{color:ee[18],emoji:"🐭"},{color:ee[19],emoji:"🍣"},{color:ee[1],emoji:"🐥"},{color:ee[20],emoji:"👾"},{color:ee[15],emoji:"🥦"},{color:ee[0],emoji:"👹"},{color:ee[17],emoji:"🙀"},{color:ee[4],emoji:"⛱"},{color:ee[21],emoji:"⛵️"},{color:ee[17],emoji:"🥳"},{color:ee[8],emoji:"🤯"},{color:ee[22],emoji:"🤠"}];function Y3(e){let t=0;if(e.length===0)return t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=(t<<5)-t+r,t|=0}return t}function Z3(e){const n=Math.abs(Y3((typeof e=="string"?e:"").toLowerCase())%Tu.length);return Tu[n??0]}var X3=({address:e,ensImage:t,size:n})=>{const[r,o]=B.useState(!1);B.useEffect(()=>{if(t){const a=new Image;a.src=t,a.onload=()=>o(!0)}},[t]);const{color:s,emoji:i}=B.useMemo(()=>Z3(e),[e]);return t?r?b.createElement(I,{backgroundSize:"cover",borderRadius:"full",position:"absolute",style:{backgroundImage:`url(${t})`,backgroundPosition:"center",height:n,width:n}}):b.createElement(I,{alignItems:"center",backgroundSize:"cover",borderRadius:"full",color:"modalText",display:"flex",justifyContent:"center",position:"absolute",style:{height:n,width:n}},b.createElement(Kr,null)):b.createElement(I,{alignItems:"center",display:"flex",justifyContent:"center",overflow:"hidden",style:{...!t&&{backgroundColor:s},height:n,width:n}},i)},zh=X3,Wh=B.createContext(zh);function $h({address:e,imageUrl:t,loading:n,size:r}){const o=B.useContext(Wh);return b.createElement(I,{"aria-hidden":!0,borderRadius:"full",overflow:"hidden",position:"relative",style:{height:`${r}px`,width:`${r}px`},userSelect:"none"},b.createElement(I,{alignItems:"center",borderRadius:"full",display:"flex",justifyContent:"center",overflow:"hidden",position:"absolute",style:{fontSize:`${Math.round(r*.55)}px`,height:`${r}px`,transform:n?"scale(0.72)":void 0,transition:".25s ease",transitionDelay:n?void 0:".1s",width:`${r}px`,willChange:"transform"},userSelect:"none"},b.createElement(o,{address:e,ensImage:t,size:r})),n&&b.createElement(I,{color:"accentColor",display:"flex",height:"full",position:"absolute",width:"full"},b.createElement(Kr,{height:"100%",width:"100%"})))}var Ou=()=>b.createElement("svg",{fill:"none",height:"7",width:"14",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,"Dropdown"),b.createElement("path",{d:"M12.75 1.54001L8.51647 5.0038C7.77974 5.60658 6.72026 5.60658 5.98352 5.0038L1.75 1.54001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",xmlns:"http://www.w3.org/2000/svg"})),Ru={defaultLocale:"en",locale:"en"},e8=class{constructor(e){this.listeners=new Set,this.defaultLocale=Ru.defaultLocale,this.enableFallback=!1,this.locale=Ru.locale,this.cachedLocales=[],this.translations={};for(const[t,n]of Object.entries(e))this.cachedLocales=[...this.cachedLocales,t],this.translations={...this.translations,...this.flattenTranslation(n,t)}}missingMessage(e){return`[missing: "${this.locale}.${e}" translation]`}flattenTranslation(e,t){const n={},r=(o,s)=>{for(const i of Object.keys(o)){const a=`${s}.${i}`,c=o[i];typeof c=="object"&&c!==null?r(c,a):n[a]=c}};return r(e,t),n}translateWithReplacements(e,t={}){let n=e;for(const r in t){const o=t[r];n=n.replace(`%{${r}}`,o)}return n}t(e,t,n){const r=`${this.locale}.${e}`,o=this.translations[r];if(!o){if(this.enableFallback){const s=`${this.defaultLocale}.${e}`,i=this.translations[s];if(i)return this.translateWithReplacements(i,t)}return n!=null&&n.rawKeyIfTranslationMissing?e:this.missingMessage(e)}return this.translateWithReplacements(o,t)}isLocaleCached(e){return this.cachedLocales.includes(e)}updateLocale(e){this.locale=e,this.notifyListeners()}setTranslations(e,t){this.isLocaleCached(e)||(this.cachedLocales=[...this.cachedLocales,e],this.translations={...this.translations,...this.flattenTranslation(t,e)}),this.locale=e,this.notifyListeners()}notifyListeners(){for(const e of this.listeners)e()}onChange(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}},Ke=new e8({en:JSON.parse(ga),"en-US":JSON.parse(ga)});Ke.defaultLocale="en-US";Ke.locale="en-US";Ke.enableFallback=!0;var t8=async e=>{switch(e){case"ar":case"ar-AR":return(await L(async()=>{const{default:t}=await import("./ar_AR-44JUQ6EW-BMX-am0v.js");return{default:t}},[])).default;case"de":case"de-DE":return(await L(async()=>{const{default:t}=await import("./de_DE-PYAO5YD6-BWlqPWgO.js");return{default:t}},[])).default;case"en":case"en-US":return(await L(async()=>{const{default:t}=await Promise.resolve().then(()=>ud);return{default:t}},void 0)).default;case"es":case"es-419":return(await L(async()=>{const{default:t}=await import("./es_419-HRGOJ6VT-D-qzxUM-.js");return{default:t}},[])).default;case"fr":case"fr-FR":return(await L(async()=>{const{default:t}=await import("./fr_FR-IGGVC6RM-D8LpUM75.js");return{default:t}},[])).default;case"hi":case"hi-IN":return(await L(async()=>{const{default:t}=await import("./hi_IN-XSKAA3MF-C3QUpWyP.js");return{default:t}},[])).default;case"id":case"id-ID":return(await L(async()=>{const{default:t}=await import("./id_ID-KUOB4UAL-K9y-nRWm.js");return{default:t}},[])).default;case"ja":case"ja-JP":return(await L(async()=>{const{default:t}=await import("./ja_JP-4WRQ63RX-Ct5pF4ug.js");return{default:t}},[])).default;case"ko":case"ko-KR":return(await L(async()=>{const{default:t}=await import("./ko_KR-I2K7AIEP-B5gw8Mwb.js");return{default:t}},[])).default;case"ms":case"ms-MY":return(await L(async()=>{const{default:t}=await import("./ms_MY-6VZW6Q3Z-BtFD07hR.js");return{default:t}},[])).default;case"pt":case"pt-BR":return(await L(async()=>{const{default:t}=await import("./pt_BR-N3XOZ4SV-CvVpfsHb.js");return{default:t}},[])).default;case"ru":case"ru-RU":return(await L(async()=>{const{default:t}=await import("./ru_RU-IITAPRET-DOj6Jzj7.js");return{default:t}},[])).default;case"th":case"th-TH":return(await L(async()=>{const{default:t}=await import("./th_TH-3ZQCKCQE-BcHUN2Q4.js");return{default:t}},[])).default;case"tr":case"tr-TR":return(await L(async()=>{const{default:t}=await import("./tr_TR-QUPUGMUF-CwpF6ZFn.js");return{default:t}},[])).default;case"ua":case"uk-UA":return(await L(async()=>{const{default:t}=await import("./uk_UA-SSN6SV5E-IlYYyRC6.js");return{default:t}},[])).default;case"vi":case"vi-VN":return(await L(async()=>{const{default:t}=await import("./vi_VN-7BUVRNYY-CZ9S75qZ.js");return{default:t}},[])).default;case"zh":case"zh-CN":case"zh-Hans":return(await L(async()=>{const{default:t}=await import("./zh_CN-HJBN674C-Baf0GEeT.js");return{default:t}},[])).default;case"zh-HK":return(await L(async()=>{const{default:t}=await import("./zh_HK-JW3WLRKE-VztJKXL5.js");return{default:t}},[])).default;case"zh-Hant":case"zh-TW":return(await L(async()=>{const{default:t}=await import("./zh_TW-VNNRNXY7-aWfg7Qp4.js");return{default:t}},[])).default;default:return(await L(async()=>{const{default:t}=await Promise.resolve().then(()=>ud);return{default:t}},void 0)).default}};async function Mu(e){if(Ke.isLocaleCached(e)){Ke.updateLocale(e);return}const n=await t8(e);Ke.setTranslations(e,JSON.parse(n))}var n8=()=>{var e;if(typeof window<"u"&&typeof navigator<"u"){if((e=navigator.languages)!=null&&e.length)return navigator.languages[0];if(navigator.language)return navigator.language}},pe=B.createContext({i18n:Ke}),r8=({children:e,locale:t})=>{const[n,r]=B.useState(0),o=B.useMemo(()=>n8(),[]);B.useEffect(()=>Ke.onChange(()=>{r(a=>a+1)}),[]),B.useEffect(()=>{t&&t!==Ke.locale?Mu(t):!t&&o&&o!==Ke.locale&&Mu(o)},[t,o]);const s=B.useMemo(()=>({t:(a,c)=>Ke.t(a,c),i18n:Ke}),[n]);return b.createElement(pe.Provider,{value:s},e)};function qh(e){return e!=null}var Nu={iconBackground:"#7290CC",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./apechain-SX5YFU6N-q5qBv-mp.js");return{default:e}},[])).default},vi={iconBackground:"#96bedc",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./arbitrum-WURIBY6W-CqVkHBr5.js");return{default:e}},[])).default},Du={iconBackground:"#e84141",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./avalanche-KOMJD3XY-Dsn_JPR4.js");return{default:e}},[])).default},xi={iconBackground:"#0052ff",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./base-OAXLRA4F-CoYTVIiL.js");return{default:e}},[])).default},Ci={iconBackground:"#814625",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./berachain-NJECWIVC-DumxnFvf.js");return{default:e}},[])).default},Fu={iconBackground:"#000000",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./blast-V555OVXZ-BbhJh1tj.js");return{default:e}},[])).default},Lu={iconBackground:"#ebac0e",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./bsc-N647EYR2-B2nLKXWV.js");return{default:e}},[])).default},Uu={iconBackground:"#FCFF52",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./celo-GEP4TUHG-CenIBYLU.js");return{default:e}},[])).default},zu={iconBackground:"#002D74",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./cronos-HJPAQTAE-BEOvlOC4.js");return{default:e}},[])).default},o8={iconBackground:"#A36EFD",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./degen-FQQ4XGHB-CeHTs88l.js");return{default:e}},[])).default},qt={iconBackground:"#484c50",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./ethereum-RGGVA4PY-SWGOlkuk.js");return{default:e}},[])).default},Wu={iconBackground:"transparent",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./flow-5FQJFCTK-CUie2reO.js");return{default:e}},[])).default},s8={iconBackground:"#04795c",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./gnosis-37ZC4RBL-B137OtHZ.js");return{default:e}},[])).default},$u={iconBackground:"#000000",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./gravity-J5YQHTYH-Bj6B0uod.js");return{default:e}},[])).default},i8={iconBackground:"#f9f7ec",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./hardhat-TX56IT5N-CV1FY-wE.js");return{default:e}},[])).default},a8={iconBackground:"#000000",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./hyperevm-VKPAA4SA-CHwraEsx.js");return{default:e}},[])).default},qu={iconBackground:"#7132F5",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./ink-FZMYZWHG-62p-5IK5.js");return{default:e}},[])).default},Hu={iconBackground:"transparent",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./kaia-65D2U3PU-JmuLQ4gC.js");return{default:e}},[])).default},Ai={iconBackground:"#ffffff",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./linea-QRMVQ5DY-DuI3vv0d.js");return{default:e}},[])).default},Ei={iconBackground:"#ffffff",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./manta-SI27YFEJ-CpVOKa06.js");return{default:e}},[])).default},Vu={iconBackground:"#000000",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./mantle-CKIUT334-DR2WgqzU.js");return{default:e}},[])).default},c8={iconBackground:"transparent",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./monad-4KWC6TSS-DVXSkpiz.js");return{default:e}},[])).default},Oo={iconBackground:"#ff5a57",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./optimism-HAF2GUT7-ec6Nqxs9.js");return{default:e}},[])).default},Ii={iconBackground:"#9f71ec",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./polygon-WW6ZI7PM-DXlmm4L1.js");return{default:e}},[])).default},l8={iconBackground:"#1273EA",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./ronin-EMCPYXZT-N-QBHZdV.js");return{default:e}},[])).default},u8={iconBackground:"#000000",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./sanko-RHQYXGM5-OX010CbN.js");return{default:e}},[])).default},d8={iconBackground:"#000000",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./superposition-HG6MMR2Y-bRkgatRO.js");return{default:e}},[])).default},Gu={iconBackground:"#FFEEDA",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./scroll-5OBGQVOV-DJFECiai.js");return{default:e}},[])).default},Qu={iconBackground:"#F50DB4",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./unichain-C5BWO2ZY-BfguYsnu.js");return{default:e}},[])).default},Ku={iconBackground:"#f9f7ec",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./xdc-KJ3TDBYO-DNV6zchh.js");return{default:e}},[])).default},Ju={iconBackground:"#000000",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./zetachain-TLDS5IPW-Udhyw16T.js");return{default:e}},[])).default},Yu={iconBackground:"#f9f7ec",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./zksync-DH7HK5U4-Dt4usFw6.js");return{default:e}},[])).default},ki={iconBackground:"#000000",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./zora-FYL5H3IO-iB4wygST.js");return{default:e}},[])).default},f8={apechain:{chainId:33139,name:"ApeChain",...Nu},apechainCurtis:{chainId:33111,name:"ApeChain Curtis",...Nu},arbitrum:{chainId:42161,name:"Arbitrum",...vi},arbitrumGoerli:{chainId:421613,...vi},arbitrumSepolia:{chainId:421614,...vi},avalanche:{chainId:43114,...Du},avalancheFuji:{chainId:43113,...Du},base:{chainId:8453,name:"Base",...xi},baseGoerli:{chainId:84531,...xi},baseSepolia:{chainId:84532,...xi},berachain:{chainId:80094,name:"Berachain",...Ci},berachainArtio:{chainId:80085,name:"Berachain Artio",...Ci},berachainBArtio:{chainId:80084,name:"Berachain bArtio",...Ci},blast:{chainId:81457,name:"Blast",...Fu},blastSepolia:{chainId:168587773,...Fu},bsc:{chainId:56,name:"BSC",...Lu},bscTestnet:{chainId:97,...Lu},celo:{chainId:42220,name:"Celo",...Uu},celoAlfajores:{chainId:44787,name:"Celo Alfajores",...Uu},cronos:{chainId:25,...zu},cronosTestnet:{chainId:338,...zu},degen:{chainId:666666666,name:"Degen",...o8},flow:{chainId:747,...Wu},flowTestnet:{chainId:545,...Wu},gnosis:{chainId:100,name:"Gnosis",...s8},goerli:{chainId:5,...qt},gravity:{chainId:1625,name:"Gravity",...$u},gravitySepolia:{chainId:13505,name:"Gravity Sepolia",...$u},hardhat:{chainId:31337,...i8},holesky:{chainId:17e3,...qt},hyperevm:{chainId:999,...a8},ink:{chainId:57073,...qu},inkSepolia:{chainId:763373,...qu},kaia:{chainId:8217,name:"Kaia",...Hu},kairos:{chainId:1001,name:"Kairos",...Hu},kovan:{chainId:42,...qt},linea:{chainId:59144,name:"Linea",...Ai},lineaGoerli:{chainId:59140,name:"Linea Goerli",...Ai},lineaSepolia:{chainId:59141,name:"Linea Sepolia",...Ai},localhost:{chainId:1337,...qt},mainnet:{chainId:1,name:"Ethereum",...qt},manta:{chainId:169,name:"Manta",...Ei},mantaSepolia:{chainId:3441006,...Ei},mantaTestnet:{chainId:3441005,...Ei},mantle:{chainId:5e3,...Vu},mantleTestnet:{chainId:5001,...Vu},monadTestnet:{chainId:10143,name:"Monad Testnet",...c8},optimism:{chainId:10,name:"Optimism",...Oo},optimismGoerli:{chainId:420,...Oo},optimismKovan:{chainId:69,...Oo},optimismSepolia:{chainId:11155420,...Oo},polygon:{chainId:137,name:"Polygon",...Ii},polygonAmoy:{chainId:80002,...Ii},polygonMumbai:{chainId:80001,...Ii},rinkeby:{chainId:4,...qt},ronin:{chainId:2020,...l8},ropsten:{chainId:3,...qt},sanko:{chainId:1996,name:"Sanko",...u8},scroll:{chainId:534352,...Gu},scrollSepolia:{chainId:534351,...Gu},sepolia:{chainId:11155111,...qt},superposition:{chainId:55244,name:"Superposition",...d8},unichain:{chainId:130,...Qu},unichainSepolia:{chainId:1301,...Qu},xdc:{chainId:50,name:"XDC",...Ku},xdcTestnet:{chainId:51,...Ku},zetachain:{chainId:7e3,name:"ZetaChain",...Ju},zetachainAthensTestnet:{chainId:7001,name:"Zeta Athens",...Ju},zkSync:{chainId:324,name:"zkSync",...Yu},zkSyncTestnet:{chainId:280,...Yu},zora:{chainId:7777777,name:"Zora",...ki},zoraSepolia:{chainId:999999999,...ki},zoraTestnet:{chainId:999,...ki}},h8=Object.fromEntries(Object.values(f8).filter(qh).map(({chainId:e,...t})=>[e,t])),p8=e=>e.map(t=>{const n=h8[t.id]??{};return{...t,name:n.name??t.name,iconUrl:t.iconUrl??n.iconUrl,iconBackground:t.iconBackground??n.iconBackground}}),Tc=B.createContext({chains:[]});function m8({children:e,initialChain:t}){const{chains:n}=ye();return b.createElement(Tc.Provider,{value:B.useMemo(()=>({chains:p8(n),initialChainId:typeof t=="number"?t:t==null?void 0:t.id}),[n,t])},e)}var vn=()=>B.useContext(Tc).chains,b8=()=>B.useContext(Tc).initialChainId,g8=()=>{const e=vn();return B.useMemo(()=>{const t={};for(const n of e)t[n.id]=n;return t},[e])},Hh=B.createContext({showBalance:void 0,setShowBalance:()=>{}});function y8({children:e}){const[t,n]=B.useState();return b.createElement(Hh.Provider,{value:{showBalance:t,setShowBalance:n}},e)}var Vh=()=>B.useContext(Hh);function w8(){const[e,t]=B.useState(!1);return B.useEffect(()=>(t(!0),()=>{t(!1)}),[]),B.useCallback(()=>e,[e])}function Gh(){const e=vn(),t=kc.id;return e.some(r=>r.id===t)}function v8(e){const t=Gh(),n=o=>{try{return V2(o)}catch{}},{data:r}=Q5({chainId:kc.id,name:e?n(e):void 0,query:{enabled:t}});return r}async function rn(e,t){if(t={headers:{},method:"get",...t,timeout:t.timeout??1e4},!e)throw new Error("rainbowFetch: Missing url argument");const n=new AbortController,r=setTimeout(()=>n.abort(),t.timeout),{body:o,params:s,headers:i,...a}=t,c=o&&typeof o=="object"?JSON.stringify(t.body):t.body,l=await fetch(`${e}${C8(s)}`,{...a,body:c,headers:{Accept:"application/json","Content-Type":"application/json",...i},signal:n.signal});clearTimeout(r);const u=await x8(l);if(l.ok){const{headers:h,status:p}=l;return{data:u,headers:h,status:p}}throw A8({requestBody:o,response:l,responseBody:typeof u=="string"?{error:u}:u})}function x8(e){const t=e.headers.get("Content-Type");return t!=null&&t.startsWith("application/json")?e.json():e.text()}function C8(e){return e&&Object.keys(e).length?`?${new URLSearchParams(e)}`:""}function A8({requestBody:e,response:t,responseBody:n}){const r=(n==null?void 0:n.error)||(t==null?void 0:t.statusText)||"There was an error with the request.",o=new Error(r);return o.response=t,o.responseBody=n,o.requestBody=e,o}var E8=class{constructor(e={}){const{baseUrl:t="",...n}=e;this.baseUrl=t,this.opts=n}get(e,t){return rn(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"get"})}delete(e,t){return rn(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"delete"})}head(e,t){return rn(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"head"})}options(e,t){return rn(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"options"})}post(e,t,n){return rn(`${this.baseUrl}${e}`,{...this.opts,...n||{},body:t,method:"post"})}put(e,t,n){return rn(`${this.baseUrl}${e}`,{...this.opts,...n||{},body:t,method:"put"})}patch(e,t,n){return rn(`${this.baseUrl}${e}`,{...this.opts,...n||{},body:t,method:"patch"})}};function I8({baseUrl:e,headers:t,params:n,timeout:r}){return new E8({baseUrl:e,headers:t,params:n,timeout:r})}var k8=!!(typeof process<"u"&&typeof ns<"u"&&ns.RAINBOW_PROVIDER_API_KEY),B8=I8({baseUrl:"https://enhanced-provider.rainbow.me",headers:{"x-api-key":typeof process<"u"&&typeof ns<"u"&&ns.RAINBOW_PROVIDER_API_KEY||"LzbasoBiLqltex3VkcQ7LRmL4PtfiiZ1EMJrizrgfonWN6byJReu/l6yrUoo3zLW"}});function j8(e,t,n={}){return[e,t,n]}function Uo(e){return`rk-ens-name-${e}`}function S8(e){try{const t=e?JSON.parse(e):null;return typeof t=="object"?t:null}catch{return null}}function _8(e,t){if(!fe(e))return;const n=new Date,r=new Date(n.getTime()+180*6e4);localStorage.setItem(Uo(e),JSON.stringify({ensName:t,expires:r.getTime()}))}function P8(e){const t=S8(localStorage.getItem(Uo(e)));if(!t)return null;const{ensName:n,expires:r}=t;return typeof n!="string"||Number.isNaN(Number(r))||new Date().getTime()>Number(r)?(localStorage.removeItem(Uo(e)),null):n}async function T8({address:e}){const t=P8(e);if(t)return t;const r=(await B8.get("/v1/resolve-ens",{params:{address:e}})).data.data;return r&&_8(e,r),r}function O8(e){const t=Gh(),{data:n}=K5({chainId:kc.id,address:e,query:{enabled:t}}),{data:r}=fd({queryKey:j8("address",e),queryFn:()=>T8({address:e}),enabled:!t&&!!e&&k8,staleTime:10*(60*1e3),retry:1});return n||r}function Qh({address:e,includeBalance:t}){const n=O8(e),r=v8(n),{data:o}=th({address:t?e:void 0});return{ensName:n,ensAvatar:r,balance:o}}function Oc(){const{chain:e}=Ne();return(e==null?void 0:e.id)??null}var Kh="rk-transactions";function R8(e){try{const t=e?JSON.parse(e):{};return typeof t=="object"?t:{}}catch{return{}}}function Zu(){return R8(typeof localStorage<"u"?localStorage.getItem(Kh):null)}var M8=/^0x([A-Fa-f0-9]{64})$/;function N8(e){const t=[];return M8.test(e.hash)||t.push("Invalid transaction hash"),typeof e.description!="string"&&t.push("Transaction must have a description"),typeof e.confirmations<"u"&&(!Number.isInteger(e.confirmations)||e.confirmations<1)&&t.push("Transaction confirmations must be a positiver integer"),t}function D8({provider:e}){let t=Zu(),n=e;const r=new Set,o=new Set,s=new Map;function i(C){n=C}function a(C,w){var v;return((v=t[C])==null?void 0:v[w])??[]}function c(C,w,v){const x=N8(v);if(x.length>0)throw new Error(["Unable to add transaction",...x].join(`
|
|
1650
|
+
`));f(C,w,E=>[{...v,status:"pending"},...E.filter(({hash:A})=>A!==v.hash)])}function l(C,w){f(C,w,()=>[])}function u(C,w,v,x){f(C,w,E=>E.map(A=>A.hash===v?{...A,status:x}:A))}async function d(C,w){await Promise.all(a(C,w).filter(v=>v.status==="pending").map(async v=>{const{confirmations:x,hash:E}=v,A=s.get(E);if(A)return await A;const k=n.waitForTransactionReceipt({confirmations:x,hash:E,timeout:3e5}).then(({status:j})=>{s.delete(E),j!==void 0&&(u(C,w,E,j===0||j==="reverted"?"failed":"confirmed"),m(j))}).catch(()=>{u(C,w,E,"failed")});return s.set(E,k),await k}))}function f(C,w,v){t=Zu(),t[C]=t[C]??{};let x=0;const E=10,A=v(t[C][w]??[]).filter(({status:k})=>k==="pending"?!0:x++<=E);t[C][w]=A.length>0?A:void 0,h(),p(),d(C,w)}function h(){localStorage.setItem(Kh,JSON.stringify(t))}function p(){for(const C of r)C()}function m(C){for(const w of o)w(C)}function g(C){return r.add(C),()=>{r.delete(C)}}function y(C){return o.add(C),()=>{o.delete(C)}}return{addTransaction:c,clearTransactions:l,getTransactions:a,onTransactionStatus:y,onChange:g,setProvider:i,waitForPendingTransactions:d}}var Xu,Jh=b.createContext(null);function F8({children:e}){const t=J5(),{address:n}=Ne(),r=Oc(),{refetch:o}=th({address:n,query:{enabled:!1}}),[s]=b.useState(()=>Xu??(Xu=D8({provider:t}))),i=b.useCallback(a=>{a==="success"&&o()},[o]);return b.useEffect(()=>{s.setProvider(t)},[s,t]),b.useEffect(()=>{n&&r&&s.waitForPendingTransactions(n,r)},[s,n,r]),b.useEffect(()=>{if(s&&n&&r)return s.onTransactionStatus(i)},[s,n,r,i]),b.createElement(Jh.Provider,{value:s},e)}function Yh(){const e=b.useContext(Jh);if(!e)throw new Error("Transaction hooks must be used within RainbowKitProvider");return e}function Zh(){const e=Yh(),{address:t}=Ne(),n=Oc(),[r,o]=B.useState(()=>e&&t&&n?e.getTransactions(t,n):[]);return B.useEffect(()=>{if(e&&t&&n)return o(e.getTransactions(t,n)),e.onChange(()=>{o(e.getTransactions(t,n))})},[e,t,n]),r}var ed=e=>typeof e=="function"?e():e;function L8(e,{extends:t}={}){const n={...vu(Pu,ed(e))};if(!t)return n;const r=vu(Pu,ed(t));return Object.fromEntries(Object.entries(n).filter(([s,i])=>i!==r[s]))}function td(e,t={}){return Object.entries(L8(e,t)).map(([n,r])=>`${n}:${r.replace(/[:;{}</>]/g,"")};`).join("")}var Xh={appName:void 0,disclaimer:void 0,learnMoreUrl:"https://learn.rainbow.me/understanding-web3?utm_source=rainbowkit&utm_campaign=learnmore"},po=B.createContext(Xh),ep=B.createContext(!1);function U8(e,t){let n;return()=>{n&&clearTimeout(n),n=setTimeout(()=>{n=null,e()},t)}}var tp=()=>{const[e,t]=B.useState({height:void 0,width:void 0});return B.useEffect(()=>{const n=U8(()=>{t({height:window.innerHeight,width:window.innerWidth})},500);return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},[]),e},mo=B.createContext({connector:null,setConnector:()=>{}});function z8({children:e}){const[t,n]=B.useState(null);return b.createElement(mo.Provider,{value:B.useMemo(()=>({connector:t,setConnector:n}),[t])},e)}var bo={COMPACT:"compact",WIDE:"wide"},Ns=B.createContext(bo.WIDE);function W8({children:e,modalSize:t}){const{width:n}=tp(),r=n&&n<D3,{connector:o}=B.useContext(mo);return b.createElement(Ns.Provider,{value:r||o?bo.COMPACT:t},e)}var Rc=B.createContext(!1),$8="rk-version";function q8({version:e}){localStorage.setItem($8,e)}function H8(){const e=B.useCallback(()=>{q8({version:"2.2.10"})},[]);B.useEffect(()=>{e()},[e])}function V8(e,t){const n={};for(const r of e){const o=t(r);o&&(n[o]=r)}return n}function Mc(){return typeof navigator<"u"&&typeof navigator.userAgent<"u"&&/Version\/([0-9._]+).*Safari/.test(navigator.userAgent)}function G8(){return typeof document<"u"&&getComputedStyle(document.body).getPropertyValue("--arc-palette-focus")!==""}function Nc(){var t,n;if(typeof navigator>"u")return"Browser";const e=(t=navigator.userAgent)==null?void 0:t.toLowerCase();return(n=navigator.brave)!=null&&n.isBrave?"Brave":(e==null?void 0:e.indexOf("edg/"))>-1?"Edge":(e==null?void 0:e.indexOf("op"))>-1?"Opera":G8()?"Arc":(e==null?void 0:e.indexOf("chrome"))>-1?"Chrome":(e==null?void 0:e.indexOf("firefox"))>-1?"Firefox":Mc()?"Safari":"Browser"}var Q8=b3.UAParser(),{os:Dc}=Q8;function K8(){return Dc.name==="Windows"}function J8(){return Dc.name==="Mac OS"}function Y8(){return["Ubuntu","Mint","Fedora","Debian","Arch","Linux"].includes(Dc.name)}function Fc(){return K8()?"Windows":J8()?"macOS":Y8()?"Linux":"Desktop"}var Z8=e=>{var n,r,o,s,i,a,c,l,u,d,f;const t=Nc();return{Arc:(n=e==null?void 0:e.downloadUrls)==null?void 0:n.chrome,Brave:(r=e==null?void 0:e.downloadUrls)==null?void 0:r.chrome,Chrome:(o=e==null?void 0:e.downloadUrls)==null?void 0:o.chrome,Edge:((s=e==null?void 0:e.downloadUrls)==null?void 0:s.edge)||((i=e==null?void 0:e.downloadUrls)==null?void 0:i.chrome),Firefox:(a=e==null?void 0:e.downloadUrls)==null?void 0:a.firefox,Opera:((c=e==null?void 0:e.downloadUrls)==null?void 0:c.opera)||((l=e==null?void 0:e.downloadUrls)==null?void 0:l.chrome),Safari:(u=e==null?void 0:e.downloadUrls)==null?void 0:u.safari,Browser:(d=e==null?void 0:e.downloadUrls)==null?void 0:d.browserExtension}[t]??((f=e==null?void 0:e.downloadUrls)==null?void 0:f.browserExtension)},X8=e=>{var n,r,o;return(ho()?(n=e==null?void 0:e.downloadUrls)==null?void 0:n.ios:(r=e==null?void 0:e.downloadUrls)==null?void 0:r.android)??((o=e==null?void 0:e.downloadUrls)==null?void 0:o.mobile)},ex=e=>{var n,r,o,s,i;const t=Fc();return{Windows:(n=e==null?void 0:e.downloadUrls)==null?void 0:n.windows,macOS:(r=e==null?void 0:e.downloadUrls)==null?void 0:r.macos,Linux:(o=e==null?void 0:e.downloadUrls)==null?void 0:o.linux,Desktop:(s=e==null?void 0:e.downloadUrls)==null?void 0:s.desktop}[t]??((i=e==null?void 0:e.downloadUrls)==null?void 0:i.desktop)},np=(e,t)=>e.some(n=>n.id===t),tx=e=>!!e.isRainbowKitConnector,nd=e=>{var t;return!!(!e.isRainbowKitConnector&&((t=e.icon)!=null&&t.replace(/\n/g,"").startsWith("data:image"))&&e.uid&&e.name)},nx=(e,t)=>e.id==="walletConnect"&&t?{...e,walletConnectModalConnector:t}:e,rx=({wallets:e,recentWallets:t})=>[...t,...e.filter(n=>!np(t,n.id))],rp="rk-recent";function ox(e){try{const t=e?JSON.parse(e):[];return Array.isArray(t)?t:[]}catch{return[]}}function op(){return typeof localStorage<"u"?ox(localStorage.getItem(rp)):[]}function sx(e){return[...new Set(e)]}function ix(e){const t=sx([e,...op()]);localStorage.setItem(rp,JSON.stringify(t))}function Jr(e=!1){var v,x,E;const t=vn(),n=b8(),{connectAsync:r,connectors:o}=V5(),s=o,{setIsWalletConnectModalOpen:i}=Sp(),a=s.map(A=>({...A,...A.rkDetails||{}}));async function c(A,k){var _,R;const j=await A.getChainId(),O=await r({...k,chainId:(k==null?void 0:k.chainId)??n??((_=t.find(({id:P})=>P===j))==null?void 0:_.id)??((R=t[0])==null?void 0:R.id),connector:A});return O&&ix(A.id),O}async function l(A){try{i(!0),await c(A),i(!1)}catch(k){const j=k.name==="UserRejectedRequestError"||k.message==="Connection request reset. Please try again.";if(i(!1),!j)throw k}}const u=async(A,k)=>{const j=await A.getProvider();return A.id==="coinbase"?j.qrUrl:new Promise(O=>j.once("display_uri",_=>{O(k(_))}))},d=a.find(A=>A.id==="walletConnect"&&A.isWalletConnectModalConnector),f=a.filter(nd).map(A=>({...A,groupIndex:0})),h=a.filter(tx).filter(A=>!A.isWalletConnectModalConnector).filter(A=>e?!f.some(j=>j.id===A.rdns):!0).map(A=>nx(A,d)),p=[...f,...h],m=V8(p,A=>A.id),y=op().map(A=>m[A]).filter(Boolean).slice(0,3),C=[],w=rx({wallets:p,recentWallets:y});for(const A of w){if(!A)continue;const k=nd(A),j=np(y,A.id);if(k){C.push({...A,iconUrl:A.icon,ready:!0,connect:c.bind(null,A),groupName:"Installed",recent:j});continue}C.push({...A,ready:A.installed??!0,connect:c.bind(null,A),desktopDownloadUrl:ex(A),extensionDownloadUrl:Z8(A),groupName:A.groupName,mobileDownloadUrl:X8(A),getQrCodeUri:(v=A.qrCode)!=null&&v.getUri?()=>u(A,A.qrCode.getUri):void 0,getDesktopUri:(x=A.desktop)!=null&&x.getUri?()=>u(A,A.desktop.getUri):void 0,getMobileUri:(E=A.mobile)!=null&&E.getUri?()=>{var O;return u(A,(O=A.mobile)==null?void 0:O.getUri)}:void 0,recent:j,showWalletConnectModal:A.walletConnectModalConnector?()=>l(A.walletConnectModalConnector):void 0})}return C}var sp=async()=>(await L(async()=>{const{default:e}=await import("./assets-Q6ZU7ZJ5-P8HioiAD.js");return{default:e}},[])).default,ax=()=>wt(sp),cx=()=>b.createElement(ge,{background:"#d0d5de",borderRadius:"10",height:"48",src:sp,width:"48"}),ip=async()=>(await L(async()=>{const{default:e}=await import("./login-UP3DZBGS-Db_wM5oQ.js");return{default:e}},[])).default,lx=()=>wt(ip),ux=()=>b.createElement(ge,{background:"#d0d5de",borderRadius:"10",height:"48",src:ip,width:"48"}),V=b.forwardRef(({as:e="div",children:t,className:n,color:r,display:o,font:s="body",id:i,size:a="16",style:c,tabIndex:l,textAlign:u="inherit",weight:d="regular",testId:f},h)=>b.createElement(I,{as:e,className:n,color:r,display:o,fontFamily:s,fontSize:a,fontWeight:d,id:i,ref:h,style:c,tabIndex:l,textAlign:u,testId:f},t));V.displayName="Text";var dx={large:{fontSize:"16",paddingX:"24",paddingY:"10"},medium:{fontSize:"14",height:"28",paddingX:"12",paddingY:"4"},small:{fontSize:"14",paddingX:"10",paddingY:"5"}};function je({disabled:e=!1,href:t,label:n,onClick:r,rel:o="noreferrer noopener",size:s="medium",target:i="_blank",testId:a,type:c="primary"}){const l=c==="primary",u=s!=="large",d=he(),f=e?"actionButtonSecondaryBackground":l?"accentColor":u?"actionButtonSecondaryBackground":null,{fontSize:h,height:p,paddingX:m,paddingY:g}=dx[s],y=!d||!u;return b.createElement(I,{...t?e?{}:{as:"a",href:t,rel:o,target:i}:{as:"button",type:"button"},onClick:e?void 0:r,...y?{borderColor:d&&!u&&!l?"actionButtonBorderMobile":"actionButtonBorder",borderStyle:"solid",borderWidth:"1"}:{},borderRadius:"actionButton",className:!e&&ue({active:"shrinkSm",hover:"grow"}),display:"block",paddingX:m,paddingY:g,style:{willChange:"transform"},testId:a,textAlign:"center",transition:"transform",...f?{background:f}:{},...p?{height:p}:{}},b.createElement(V,{color:e?"modalTextSecondary":l?"accentColorForeground":"accentColor",size:h,weight:"bold"},n))}var fx=()=>he()?b.createElement("svg",{"aria-hidden":!0,fill:"none",height:"11.5",viewBox:"0 0 11.5 11.5",width:"11.5",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,"Close"),b.createElement("path",{d:"M2.13388 0.366117C1.64573 -0.122039 0.854272 -0.122039 0.366117 0.366117C-0.122039 0.854272 -0.122039 1.64573 0.366117 2.13388L3.98223 5.75L0.366117 9.36612C-0.122039 9.85427 -0.122039 10.6457 0.366117 11.1339C0.854272 11.622 1.64573 11.622 2.13388 11.1339L5.75 7.51777L9.36612 11.1339C9.85427 11.622 10.6457 11.622 11.1339 11.1339C11.622 10.6457 11.622 9.85427 11.1339 9.36612L7.51777 5.75L11.1339 2.13388C11.622 1.64573 11.622 0.854272 11.1339 0.366117C10.6457 -0.122039 9.85427 -0.122039 9.36612 0.366117L5.75 3.98223L2.13388 0.366117Z",fill:"currentColor"})):b.createElement("svg",{"aria-hidden":!0,fill:"none",height:"10",viewBox:"0 0 10 10",width:"10",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,"Close"),b.createElement("path",{d:"M1.70711 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 -0.0976311 1.31658 0.292893 1.70711L3.58579 5L0.292893 8.29289C-0.0976311 8.68342 -0.0976311 9.31658 0.292893 9.70711C0.683417 10.0976 1.31658 10.0976 1.70711 9.70711L5 6.41421L8.29289 9.70711C8.68342 10.0976 9.31658 10.0976 9.70711 9.70711C10.0976 9.31658 10.0976 8.68342 9.70711 8.29289L6.41421 5L9.70711 1.70711C10.0976 1.31658 10.0976 0.683417 9.70711 0.292893C9.31658 -0.0976311 8.68342 -0.0976311 8.29289 0.292893L5 3.58579L1.70711 0.292893Z",fill:"currentColor"})),gn=({"aria-label":e="Close",onClose:t})=>{const n=he();return b.createElement(I,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:n?"0":"1",className:ue({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:n?"30":"28",justifyContent:"center",onClick:t,style:{willChange:"transform"},transition:"default",type:"button",width:n?"30":"28"},b.createElement(fx,null))},ap=async()=>(await L(async()=>{const{default:e}=await import("./sign-A7IJEUT5-CGsRnPrd.js");return{default:e}},[])).default;function hx({onClose:e,onCloseModal:t}){const{i18n:n}=B.useContext(pe),[{status:r,...o},s]=b.useState({status:"idle"}),i=z3(),a=B.useCallback(async()=>{try{const p=await i.getNonce();s(m=>({...m,nonce:p}))}catch{s(p=>({...p,errorMessage:n.t("sign_in.message.preparing_error"),status:"idle"}))}},[i,n.t]),c=B.useRef(!1);b.useEffect(()=>{c.current||(c.current=!0,a())},[a]);const l=he(),{address:u,chain:d}=Ne(),{signMessageAsync:f}=Y5(),h=async()=>{try{const p=d==null?void 0:d.id,{nonce:m}=o;if(!u||!p||!m)return;s(C=>({...C,errorMessage:void 0,status:"signing"}));const g=i.createMessage({address:u,chainId:p,nonce:m});let y;try{y=await f({message:g})}catch(C){return C instanceof oe?s(w=>({...w,status:"idle"})):s(w=>({...w,errorMessage:n.t("sign_in.signature.signing_error"),status:"idle"}))}s(C=>({...C,status:"verifying"}));try{if(await i.verify({message:g,signature:y})){t();return}throw new Error}catch{return s(C=>({...C,errorMessage:n.t("sign_in.signature.verifying_error"),status:"idle"}))}}catch{s({errorMessage:n.t("sign_in.signature.oops_error"),status:"idle"})}};return b.createElement(I,{position:"relative"},b.createElement(I,{display:"flex",paddingRight:"16",paddingTop:"16",position:"absolute",right:"0"},b.createElement(gn,{onClose:e})),b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"32":"24",padding:"24",paddingX:"18",style:{paddingTop:l?"60px":"36px"}},b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"6":"4",style:{maxWidth:l?320:280}},b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"32":"16"},b.createElement(ge,{height:40,src:ap,width:40}),b.createElement(V,{color:"modalText",size:l?"20":"18",textAlign:"center",weight:"heavy"},n.t("sign_in.label"))),b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"16":"12"},b.createElement(V,{color:"modalTextSecondary",size:l?"16":"14",textAlign:"center"},n.t("sign_in.description")),r==="idle"&&o.errorMessage?b.createElement(V,{color:"error",size:l?"16":"14",textAlign:"center",weight:"bold"},o.errorMessage):null)),b.createElement(I,{alignItems:l?void 0:"center",display:"flex",flexDirection:"column",gap:"8",width:"full"},b.createElement(je,{disabled:!o.nonce||r==="signing"||r==="verifying",label:o.nonce?r==="signing"?n.t("sign_in.signature.waiting"):r==="verifying"?n.t("sign_in.signature.verifying"):n.t("sign_in.message.send"):n.t("sign_in.message.preparing"),onClick:h,size:l?"large":"medium",testId:"auth-message-button"}),l?b.createElement(je,{label:"Cancel",onClick:e,size:"large",type:"secondary"}):b.createElement(I,{as:"button",borderRadius:"full",className:ue({active:"shrink",hover:"grow"}),display:"block",onClick:e,paddingX:"10",paddingY:"5",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},b.createElement(V,{color:"closeButton",size:l?"16":"14",weight:"bold"},n.t("sign_in.message.cancel"))))))}function px(){const e=vn(),t=Jr(),n=Rs()==="unauthenticated",r=B.useCallback(()=>{wt(...t.map(o=>o.iconUrl),...e.map(o=>o.iconUrl).filter(qh)),he()||(ax(),lx()),n&&wt(ap)},[t,e,n]);B.useEffect(()=>{r()},[r])}var cp="WALLETCONNECT_DEEPLINK_CHOICE";function mx({mobileUri:e,name:t}){localStorage.setItem(cp,JSON.stringify({href:e.split("?")[0],name:t}))}function bx(){localStorage.removeItem(cp)}var lp=B.createContext(void 0),Ia="data-rk",up=e=>({[Ia]:e||""}),gx=e=>{if(e&&!/^[a-zA-Z0-9_]+$/.test(e))throw new Error(`Invalid ID: ${e}`);return e?`[${Ia}="${e}"]`:`[${Ia}]`},yx=()=>{const e=B.useContext(lp);return up(e)},wx=Cc();function vx({appInfo:e,avatar:t,children:n,coolMode:r=!1,id:o,initialChain:s,locale:i,modalSize:a=bo.WIDE,showRecentTransactions:c=!1,theme:l=wx}){if(px(),H8(),eh({onDisconnect:bx}),typeof l=="function")throw new Error('A theme function was provided to the "theme" prop instead of a theme object. You must execute this function to get the resulting theme object.');const u=gx(o),d={...Xh,...e},f=t??zh;return b.createElement(m8,{initialChain:s},b.createElement(z8,null,b.createElement(r8,{locale:i},b.createElement(ep.Provider,{value:r},b.createElement(W8,{modalSize:a},b.createElement(Rc.Provider,{value:c},b.createElement(F8,null,b.createElement(Wh.Provider,{value:f},b.createElement(po.Provider,{value:d},b.createElement(lp.Provider,{value:o},b.createElement(y8,null,b.createElement(RC,null,l?b.createElement("div",{...up(o)},b.createElement("style",{dangerouslySetInnerHTML:{__html:[`${u}{${td("lightMode"in l?l.lightMode:l)}}`,"darkMode"in l?`@media(prefers-color-scheme:dark){${u}{${td(l.darkMode,{extends:l.lightMode})}}}`:null].join("")}}),n):n))))))))))))}var xx="_9pm4ki5 ju367va ju367v15 ju367v8r",Cx="_9pm4ki3 ju367v9h ju367vb3 ju367va ju367v2q ju367v8q",rd=(e,t)=>{const n=e.querySelectorAll("button:not(:disabled), a[href]");n.length!==0&&n[t==="end"?n.length-1:0].focus()};function Ax(e){const t=B.useRef(null);return B.useEffect(()=>{const n=document.activeElement;return()=>{var r;(r=n.focus)==null||r.call(n)}},[]),B.useEffect(()=>{if(t.current){const n=t.current.querySelector("[data-auto-focus]");n?n.focus():t.current.focus()}},[]),b.createElement(b.Fragment,null,b.createElement("div",{onFocus:B.useCallback(()=>t.current&&rd(t.current,"end"),[]),tabIndex:0}),b.createElement("div",{ref:t,style:{outline:"none"},tabIndex:-1,...e}),b.createElement("div",{onFocus:B.useCallback(()=>t.current&&rd(t.current,"start"),[]),tabIndex:0}))}var Ex=e=>e.stopPropagation();function rs({children:e,onClose:t,open:n,titleId:r}){B.useEffect(()=>{const l=u=>n&&u.key==="Escape"&&t();return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[n,t]);const[o,s]=B.useState(!0);B.useEffect(()=>{s(getComputedStyle(window.document.body).overflow!=="hidden")},[]);const i=B.useCallback(()=>t(),[t]),a=yx(),c=he();return b.createElement(b.Fragment,null,n?Xp.createPortal(b.createElement(Ph,{enabled:o},b.createElement(I,{...a},b.createElement(I,{...a,alignItems:c?"flex-end":"center","aria-labelledby":r,"aria-modal":!0,className:Cx,onClick:i,position:"fixed",role:"dialog"},b.createElement(Ax,{className:xx,onClick:Ex,role:"document"},e)))),document.body):null)}var Ix="_1ckjpok7",kx="_1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",Bx="_1ckjpok4 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",jx="_1ckjpok6 ju367vq",Sx="_1ckjpok3 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",_x="_1ckjpok2 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r";function os({bottomSheetOnMobile:e=!1,children:t,marginTop:n,padding:r="16",paddingBottom:o,wide:s=!1}){const i=he(),c=B.useContext(Ns)===bo.COMPACT;return b.createElement(I,{marginTop:n},b.createElement(I,{className:[s?i?_x:c?Bx:Sx:kx,i?jx:null,i&&e?Ix:null].join(" ")},b.createElement(I,{padding:r,paddingBottom:o??r},t)))}var od=["k","m","b","t"];function Ro(e,t=1){return e.toString().replace(new RegExp(`(.+\\.\\d{${t}})\\d+`),"$1").replace(/(\.[1-9]*)0+$/,"$1").replace(/\.$/,"")}function dp(e){if(e<1)return Ro(e,3);if(e<10**2)return Ro(e,2);if(e<10**4)return new Intl.NumberFormat().format(Number.parseFloat(Ro(e,1)));const t=10**1;let n=String(e);for(let r=od.length-1;r>=0;r--){const o=10**((r+1)*3);if(o<=e){e=e*t/o/t,n=Ro(e,1)+od[r];break}}return n}function fp(e){return e.length<8?e:`${e.substring(0,4)}…${e.substring(e.length-4)}`}function hp(e){if(!e)return"";const t=e.split("."),n=t.pop();return t.join(".").length>24?`${t.join(".").substring(0,24)}...`:`${t.join(".")}.${n}`}var Px=()=>b.createElement("svg",{fill:"none",height:"13",viewBox:"0 0 13 13",width:"13",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,"Copied"),b.createElement("path",{d:"M4.94568 12.2646C5.41052 12.2646 5.77283 12.0869 6.01892 11.7109L12.39 1.96973C12.5677 1.69629 12.6429 1.44336 12.6429 1.2041C12.6429 0.561523 12.1644 0.0966797 11.5082 0.0966797C11.057 0.0966797 10.7767 0.260742 10.5033 0.691406L4.9115 9.50977L2.07458 5.98926C1.82166 5.68848 1.54822 5.55176 1.16541 5.55176C0.502319 5.55176 0.0238037 6.02344 0.0238037 6.66602C0.0238037 6.95312 0.112671 7.20605 0.358765 7.48633L3.88611 11.7588C4.18005 12.1074 4.50818 12.2646 4.94568 12.2646Z",fill:"currentColor"})),Tx=()=>b.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 17 16",width:"17",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,"Copy"),b.createElement("path",{d:"M3.04236 12.3027H4.18396V13.3008C4.18396 14.8525 5.03845 15.7002 6.59705 15.7002H13.6244C15.183 15.7002 16.0375 14.8525 16.0375 13.3008V6.24609C16.0375 4.69434 15.183 3.84668 13.6244 3.84668H12.4828V2.8418C12.4828 1.29688 11.6283 0.442383 10.0697 0.442383H3.04236C1.48376 0.442383 0.629272 1.29004 0.629272 2.8418V9.90332C0.629272 11.4551 1.48376 12.3027 3.04236 12.3027ZM3.23376 10.5391C2.68689 10.5391 2.39294 10.2656 2.39294 9.68457V3.06055C2.39294 2.47949 2.68689 2.21289 3.23376 2.21289H9.8783C10.4252 2.21289 10.7191 2.47949 10.7191 3.06055V3.84668H6.59705C5.03845 3.84668 4.18396 4.69434 4.18396 6.24609V10.5391H3.23376ZM6.78845 13.9365C6.24158 13.9365 5.94763 13.6699 5.94763 13.0889V6.45801C5.94763 5.87695 6.24158 5.61035 6.78845 5.61035H13.433C13.9799 5.61035 14.2738 5.87695 14.2738 6.45801V13.0889C14.2738 13.6699 13.9799 13.9365 13.433 13.9365H6.78845Z",fill:"currentColor"})),Ox=()=>b.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 18 16",width:"18",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,"Disconnect"),b.createElement("path",{d:"M2.67834 15.5908H9.99963C11.5514 15.5908 12.399 14.7432 12.399 13.1777V10.2656H10.6354V12.9863C10.6354 13.5332 10.3688 13.8271 9.78772 13.8271H2.89026C2.3092 13.8271 2.0426 13.5332 2.0426 12.9863V3.15625C2.0426 2.60254 2.3092 2.30859 2.89026 2.30859H9.78772C10.3688 2.30859 10.6354 2.60254 10.6354 3.15625V5.89746H12.399V2.95801C12.399 1.39941 11.5514 0.544922 9.99963 0.544922H2.67834C1.12659 0.544922 0.278931 1.39941 0.278931 2.95801V13.1777C0.278931 14.7432 1.12659 15.5908 2.67834 15.5908ZM7.43616 8.85059H14.0875L15.0924 8.78906L14.566 9.14453L13.6842 9.96484C13.5406 10.1016 13.4586 10.2861 13.4586 10.4844C13.4586 10.8398 13.7321 11.168 14.1217 11.168C14.3199 11.168 14.4635 11.0928 14.6002 10.9561L16.7809 8.68652C16.986 8.48145 17.0543 8.27637 17.0543 8.06445C17.0543 7.85254 16.986 7.64746 16.7809 7.43555L14.6002 5.17285C14.4635 5.03613 14.3199 4.9541 14.1217 4.9541C13.7321 4.9541 13.4586 5.27539 13.4586 5.6377C13.4586 5.83594 13.5406 6.02734 13.6842 6.15723L14.566 6.98438L15.0924 7.33984L14.0875 7.27148H7.43616C7.01917 7.27148 6.65686 7.62012 6.65686 8.06445C6.65686 8.50195 7.01917 8.85059 7.43616 8.85059Z",fill:"currentColor"}));function Rx(){const e=Yh(),{address:t}=Ne(),n=Oc();return B.useCallback(()=>{if(!t||!n)throw new Error("No address or chain ID found");e.clearTransactions(t,n)},[e,t,n])}var pp=e=>{var t,n;return(n=(t=e==null?void 0:e.blockExplorers)==null?void 0:t.default)==null?void 0:n.url},mp=()=>b.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,"Link"),b.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM12.7158 12.1416C13.2432 12.1416 13.5684 11.7549 13.5684 11.1836V7.19336C13.5684 6.44629 13.1377 6.05957 12.417 6.05957H8.40918C7.8291 6.05957 7.45117 6.38477 7.45117 6.91211C7.45117 7.43945 7.8291 7.77344 8.40918 7.77344H9.69238L10.7207 7.63281L9.53418 8.67871L6.73047 11.4912C6.53711 11.6758 6.41406 11.9395 6.41406 12.2031C6.41406 12.7832 6.85352 13.1699 7.39844 13.1699C7.68848 13.1699 7.92578 13.0732 8.1543 12.8623L10.9316 10.0762L11.9775 8.89844L11.8545 9.98828V11.1836C11.8545 11.7725 12.1885 12.1416 12.7158 12.1416Z",fill:"currentColor"})),Mx=()=>b.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,"Cancel"),b.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM7.29297 13.3018C7.58301 13.3018 7.81152 13.2139 7.99609 13.0205L10 11.0166L12.0127 13.0205C12.1973 13.2051 12.4258 13.3018 12.707 13.3018C13.2432 13.3018 13.6562 12.8887 13.6562 12.3525C13.6562 12.0977 13.5508 11.8691 13.3662 11.6934L11.3535 9.67188L13.375 7.6416C13.5596 7.44824 13.6562 7.22852 13.6562 6.98242C13.6562 6.44629 13.2432 6.0332 12.7158 6.0332C12.4346 6.0332 12.2148 6.12109 12.0215 6.31445L10 8.32715L7.9873 6.32324C7.80273 6.12988 7.58301 6.04199 7.29297 6.04199C6.76562 6.04199 6.35254 6.45508 6.35254 6.99121C6.35254 7.2373 6.44922 7.46582 6.63379 7.6416L8.65527 9.67188L6.63379 11.6934C6.44922 11.8691 6.35254 12.1064 6.35254 12.3525C6.35254 12.8887 6.76562 13.3018 7.29297 13.3018Z",fill:"currentColor"})),Nx=()=>b.createElement("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,"Success"),b.createElement("path",{d:"M10 19.4443C15.0977 19.4443 19.2812 15.252 19.2812 10.1543C19.2812 5.06543 15.0889 0.873047 10 0.873047C4.90234 0.873047 0.71875 5.06543 0.71875 10.1543C0.71875 15.252 4.91113 19.4443 10 19.4443ZM10 17.1328C6.1416 17.1328 3.03906 14.0215 3.03906 10.1543C3.03906 6.2959 6.13281 3.18457 10 3.18457C13.8584 3.18457 16.9697 6.2959 16.9697 10.1543C16.9785 14.0215 13.8672 17.1328 10 17.1328ZM9.07715 14.3379C9.4375 14.3379 9.7627 14.1533 9.97363 13.8369L13.7441 8.00977C13.8848 7.79883 13.9814 7.5791 13.9814 7.36816C13.9814 6.84961 13.5244 6.48926 13.0322 6.48926C12.707 6.48926 12.4258 6.66504 12.2148 7.0166L9.05957 12.0967L7.5918 10.2949C7.37207 10.0225 7.13477 9.9082 6.84473 9.9082C6.33496 9.9082 5.92188 10.3125 5.92188 10.8223C5.92188 11.0684 6.00098 11.2793 6.18555 11.5078L8.1543 13.8545C8.40918 14.1709 8.70801 14.3379 9.07715 14.3379Z",fill:"currentColor"})),Dx=e=>{switch(e){case"pending":return Kr;case"confirmed":return Nx;case"failed":return Mx;default:return Kr}};function Fx({tx:e}){const t=he(),n=Dx(e.status),r=e.status==="failed"?"error":"accentColor",{chain:o}=Ne(),s=e.status==="confirmed"?"Confirmed":e.status==="failed"?"Failed":"Pending",i=pp(o);return b.createElement(b.Fragment,null,b.createElement(I,{...i?{as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:ue({active:"shrink"}),href:`${i}/tx/${e.hash}`,rel:"noreferrer noopener",target:"_blank",transition:"default"}:{},color:"modalText",display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"8",width:"full"},b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"row",gap:t?"16":"14"},b.createElement(I,{color:r},b.createElement(n,null)),b.createElement(I,{display:"flex",flexDirection:"column",gap:t?"3":"1"},b.createElement(I,null,b.createElement(V,{color:"modalText",font:"body",size:t?"16":"14",weight:"bold"},e==null?void 0:e.description)),b.createElement(I,null,b.createElement(V,{color:e.status==="pending"?"modalTextSecondary":r,font:"body",size:"14",weight:t?"medium":"regular"},s)))),i&&b.createElement(I,{alignItems:"center",color:"modalTextDim",display:"flex"},b.createElement(mp,null))))}var Lx=3;function Ux({address:e}){const t=Zh(),n=Rx(),{chain:r}=Ne(),o=pp(r),s=t.slice(0,Lx),i=s.length>0,a=he(),{appName:c}=B.useContext(po),{i18n:l}=B.useContext(pe);return b.createElement(b.Fragment,null,b.createElement(I,{display:"flex",flexDirection:"column",gap:"10",paddingBottom:"2",paddingTop:"16",paddingX:a?"8":"18"},i&&b.createElement(I,{paddingBottom:a?"4":"0",paddingTop:"8",paddingX:a?"12":"6"},b.createElement(I,{display:"flex",justifyContent:"space-between"},b.createElement(V,{color:"modalTextSecondary",size:a?"16":"14",weight:"semibold"},l.t("profile.transactions.recent.title")),b.createElement(I,{style:{marginBottom:-6,marginLeft:-10,marginRight:-10,marginTop:-6}},b.createElement(I,{as:"button",background:{hover:"profileForeground"},borderRadius:"actionButton",className:ue({active:"shrink"}),onClick:n,paddingX:a?"8":"12",paddingY:a?"4":"5",transition:"default",type:"button"},b.createElement(V,{color:"modalTextSecondary",size:a?"16":"14",weight:"semibold"},l.t("profile.transactions.clear.label")))))),b.createElement(I,{display:"flex",flexDirection:"column",gap:"4"},i?s.map(u=>b.createElement(Fx,{key:u.hash,tx:u})):b.createElement(b.Fragment,null,b.createElement(I,{padding:a?"12":"8"},b.createElement(V,{color:"modalTextDim",size:a?"16":"14",weight:a?"medium":"bold"},c?l.t("profile.transactions.description",{appName:c}):l.t("profile.transactions.description_fallback"))),a&&b.createElement(I,{background:"generalBorderDim",height:"1",marginX:"12",marginY:"8"})))),o&&b.createElement(I,{paddingBottom:"18",paddingX:a?"8":"18"},b.createElement(I,{alignItems:"center",as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:ue({active:"shrink"}),color:"modalTextDim",display:"flex",flexDirection:"row",href:`${o}/address/${e}`,justifyContent:"space-between",paddingX:"8",paddingY:"12",rel:"noreferrer noopener",style:{willChange:"transform"},target:"_blank",transition:"default",width:"full",...a?{paddingLeft:"12"}:{}},b.createElement(V,{color:"modalText",font:"body",size:a?"16":"14",weight:a?"semibold":"bold"},l.t("profile.explorer.label")),b.createElement(mp,null))))}function sd({action:e,icon:t,label:n,testId:r,url:o}){const s=he();return b.createElement(I,{...o?{as:"a",href:o,rel:"noreferrer noopener",target:"_blank"}:{as:"button",type:"button"},background:{base:"profileAction",...s?{}:{hover:"profileActionHover"}},borderRadius:"menuButton",boxShadow:"profileDetailsAction",className:ue({active:"shrinkSm",hover:s?void 0:"grow"}),display:"flex",onClick:e,padding:s?"6":"8",style:{willChange:"transform"},testId:r,transition:"default",width:"full"},b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",gap:"1",justifyContent:"center",paddingTop:"2",width:"full"},b.createElement(I,{color:"modalText",height:"max"},t),b.createElement(I,null,b.createElement(V,{color:"modalText",size:s?"12":"13",weight:"semibold"},n))))}function zx({address:e,ensAvatar:t,ensName:n,balance:r,onClose:o,onDisconnect:s}){const i=B.useContext(Rc),[a,c]=B.useState(!1),l=B.useCallback(()=>{e&&(navigator.clipboard.writeText(e),c(!0))},[e]);if(B.useEffect(()=>{if(a){const g=setTimeout(()=>{c(!1)},1500);return()=>clearTimeout(g)}},[a]),!e)return null;const u=n?hp(n):fp(e),d=r==null?void 0:r.formatted,f=d?dp(Number.parseFloat(d)):void 0,h="rk_profile_title",p=he(),{i18n:m}=B.useContext(pe);return b.createElement(b.Fragment,null,b.createElement(I,{display:"flex",flexDirection:"column"},b.createElement(I,{background:"profileForeground",padding:"16"},b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",gap:p?"16":"12",justifyContent:"center",margin:"8",style:{textAlign:"center"}},b.createElement(I,{style:{position:"absolute",right:16,top:16,willChange:"transform"}},b.createElement(gn,{onClose:o}))," ",b.createElement(I,{marginTop:p?"24":"0"},b.createElement($h,{address:e,imageUrl:t,size:p?82:74})),b.createElement(I,{display:"flex",flexDirection:"column",gap:p?"4":"0",textAlign:"center"},b.createElement(I,{textAlign:"center"},b.createElement(V,{as:"h1",color:"modalText",id:h,size:p?"20":"18",weight:"heavy"},u)),!!r&&b.createElement(I,{textAlign:"center"},b.createElement(V,{as:"h1",color:"modalTextSecondary",id:h,size:p?"16":"14",weight:"semibold"},f," ",r.symbol)))),b.createElement(I,{display:"flex",flexDirection:"row",gap:"8",margin:"2",marginTop:"16"},b.createElement(sd,{action:l,icon:a?b.createElement(Px,null):b.createElement(Tx,null),label:a?m.t("profile.copy_address.copied"):m.t("profile.copy_address.label")}),b.createElement(sd,{action:s,icon:b.createElement(Ox,null),label:m.t("profile.disconnect.label"),testId:"disconnect-button"}))),i&&b.createElement(b.Fragment,null,b.createElement(I,{background:"generalBorder",height:"1",marginTop:"-1"}),b.createElement(I,null,b.createElement(Ux,{address:e})))))}function Wx({onClose:e,open:t}){const{address:n}=Ne(),{balance:r,ensAvatar:o,ensName:s}=Qh({address:n,includeBalance:t}),{disconnect:i}=xc();return n?b.createElement(b.Fragment,null,n&&b.createElement(rs,{onClose:e,open:t,titleId:"rk_account_modal_title"},b.createElement(os,{bottomSheetOnMobile:!0,padding:"0"},b.createElement(zx,{address:n,ensAvatar:o,ensName:s,balance:r,onClose:e,onDisconnect:i})))):null}var $x=({size:e})=>b.createElement("svg",{fill:"none",height:e,viewBox:"0 0 28 28",width:e,xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,"Disconnect"),b.createElement("path",{d:"M6.742 22.195h8.367c1.774 0 2.743-.968 2.743-2.758V16.11h-2.016v3.11c0 .625-.305.96-.969.96H6.984c-.664 0-.968-.335-.968-.96V7.984c0-.632.304-.968.968-.968h7.883c.664 0 .969.336.969.968v3.133h2.016v-3.36c0-1.78-.97-2.757-2.743-2.757H6.742C4.97 5 4 5.977 4 7.758v11.68c0 1.789.969 2.757 2.742 2.757Zm5.438-7.703h7.601l1.149-.07-.602.406-1.008.938a.816.816 0 0 0-.258.593c0 .407.313.782.758.782.227 0 .39-.086.547-.243l2.492-2.593c.235-.235.313-.47.313-.711 0-.242-.078-.477-.313-.719l-2.492-2.586c-.156-.156-.32-.25-.547-.25-.445 0-.758.367-.758.781 0 .227.094.446.258.594l1.008.945.602.407-1.149-.079H12.18a.904.904 0 0 0 0 1.805Z",fill:"currentColor"})),qx="v9horb0",Lc=b.forwardRef(({children:e,currentlySelected:t=!1,onClick:n,testId:r,...o},s)=>{const i=he();return b.createElement(I,{as:"button",borderRadius:"menuButton",disabled:t,display:"flex",onClick:n,ref:s,testId:r,type:"button"},b.createElement(I,{borderRadius:"menuButton",className:[i?qx:void 0,!t&&ue({active:"shrink"})],padding:i?"8":"6",transition:"default",width:"full",...t?{background:"accentColor",borderColor:"selectedOptionBorder",borderStyle:"solid",borderWidth:"1",boxShadow:"selectedOption",color:"accentColorForeground"}:{background:{hover:"menuItemBackground"},color:"modalText",transition:"default"},...o},e))});Lc.displayName="MenuButton";var Hx=({chainId:e,currentChainId:t,switchChain:n,chainIconSize:r,isLoading:o,src:s,name:i,iconBackground:a,idx:c})=>{const l=he(),{i18n:u}=B.useContext(pe),d=vn(),f=t===e;return b.createElement(B.Fragment,null,b.createElement(Lc,{currentlySelected:f,onClick:f?void 0:()=>n({chainId:e}),testId:`chain-option-${e}`},b.createElement(I,{fontFamily:"body",fontSize:"16",fontWeight:"bold"},b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:r},s&&b.createElement(I,{height:"full",marginRight:"8"},b.createElement(ge,{alt:i,background:a,borderRadius:"full",height:r,src:s,width:r,testId:`chain-option-${e}-icon`})),b.createElement("div",null,i??i)),f&&b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},b.createElement(V,{color:"accentColorForeground",size:"14",weight:"medium"},u.t("chains.connected")),b.createElement(I,{background:"connectionIndicator",borderColor:"selectedOptionBorder",borderRadius:"full",borderStyle:"solid",borderWidth:"1",height:"8",marginLeft:"8",width:"8"})),o&&b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},b.createElement(V,{color:"modalText",size:"14",weight:"medium"},u.t("chains.confirm")),b.createElement(I,{background:"standby",borderRadius:"full",height:"8",marginLeft:"8",width:"8"}))))),l&&c<d.length-1&&b.createElement(I,{background:"generalBorderDim",height:"1",marginX:"8"}))},Vx=Hx,Gx="_18dqw9x0",Qx="_18dqw9x1";function Kx({onClose:e,open:t}){const{chainId:n}=Ne(),{chains:r}=ye(),[o,s]=B.useState(null),{switchChain:i}=Z5({mutation:{onMutate:({chainId:p})=>{s(p)},onSuccess:()=>{o&&s(null)},onError:()=>{o&&s(null)},onSettled:()=>{e()}}}),{i18n:a}=B.useContext(pe),{disconnect:c}=xc(),l="rk_chain_modal_title",u=he(),d=r.some(p=>p.id===n),f=u?"36":"28",h=vn();return n?b.createElement(rs,{onClose:e,open:t,titleId:l},b.createElement(os,{bottomSheetOnMobile:!0,paddingBottom:"0"},b.createElement(I,{display:"flex",flexDirection:"column",gap:"14"},b.createElement(I,{display:"flex",flexDirection:"row",justifyContent:"space-between"},u&&b.createElement(I,{width:"30"}),b.createElement(I,{paddingBottom:"0",paddingLeft:"8",paddingTop:"4"},b.createElement(V,{as:"h1",color:"modalText",id:l,size:u?"20":"18",weight:"heavy"},a.t("chains.title"))),b.createElement(gn,{onClose:e})),!d&&b.createElement(I,{marginX:"8",textAlign:u?"center":"left"},b.createElement(V,{color:"modalTextSecondary",size:"14",weight:"medium"},a.t("chains.wrong_network"))),b.createElement(I,{className:u?Qx:Gx,display:"flex",flexDirection:"column",gap:"4",padding:"2",paddingBottom:"16"},h.map(({iconBackground:p,iconUrl:m,id:g,name:y},C)=>b.createElement(Vx,{key:g,chainId:g,currentChainId:n,switchChain:i,chainIconSize:f,isLoading:o===g,src:m,name:y,iconBackground:p,idx:C})),!d&&b.createElement(b.Fragment,null,b.createElement(I,{background:"generalBorderDim",height:"1",marginX:"8"}),b.createElement(Lc,{onClick:()=>c(),testId:"chain-option-disconnect"},b.createElement(I,{color:"error",fontFamily:"body",fontSize:"16",fontWeight:"bold"},b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:f},b.createElement(I,{alignItems:"center",color:"error",height:f,justifyContent:"center",marginRight:"8"},b.createElement($x,{size:Number(f)})),b.createElement("div",null,a.t("chains.disconnect"))))))))))):null}function Jx(e,t){const n={};for(const r of e){const o=t(r);o&&(n[o]||(n[o]=[]),n[o].push(r))}return n}var Uc=({children:e,href:t})=>b.createElement(I,{as:"a",color:"accentColor",href:t,rel:"noreferrer",target:"_blank"},e),zc=({children:e})=>b.createElement(V,{color:"modalTextSecondary",size:"12",weight:"medium"},e);function id({compactModeEnabled:e=!1,getWallet:t}){const{disclaimer:n,learnMoreUrl:r}=B.useContext(po),{i18n:o}=B.useContext(pe);return b.createElement(b.Fragment,null,b.createElement(I,{alignItems:"center",color:"accentColor",display:"flex",flexDirection:"column",height:"full",justifyContent:"space-around"},b.createElement(I,{marginBottom:"10"},!e&&b.createElement(V,{color:"modalText",size:"18",weight:"heavy"},o.t("intro.title"))),b.createElement(I,{display:"flex",flexDirection:"column",gap:"32",justifyContent:"center",marginY:"20",style:{maxWidth:312}},b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},b.createElement(I,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},b.createElement(cx,null)),b.createElement(I,{display:"flex",flexDirection:"column",gap:"4"},b.createElement(V,{color:"modalText",size:"14",weight:"bold"},o.t("intro.digital_asset.title")),b.createElement(V,{color:"modalTextSecondary",size:"14",weight:"medium"},o.t("intro.digital_asset.description")))),b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},b.createElement(I,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},b.createElement(ux,null)),b.createElement(I,{display:"flex",flexDirection:"column",gap:"4"},b.createElement(V,{color:"modalText",size:"14",weight:"bold"},o.t("intro.login.title")),b.createElement(V,{color:"modalTextSecondary",size:"14",weight:"medium"},o.t("intro.login.description"))))),b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",margin:"10"},b.createElement(je,{label:o.t("intro.get.label"),onClick:t}),b.createElement(I,{as:"a",className:ue({active:"shrink",hover:"grow"}),display:"block",href:r,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},b.createElement(V,{color:"accentColor",size:"14",weight:"bold"},o.t("intro.learn_more.label")))),n&&!e&&b.createElement(I,{marginBottom:"8",marginTop:"12",textAlign:"center"},b.createElement(n,{Link:Uc,Text:zc}))))}var bp=()=>b.createElement("svg",{fill:"none",height:"17",viewBox:"0 0 11 17",width:"11",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,"Back"),b.createElement("path",{d:"M0.99707 8.6543C0.99707 9.08496 1.15527 9.44531 1.51562 9.79688L8.16016 16.3096C8.43262 16.5732 8.74902 16.7051 9.13574 16.7051C9.90918 16.7051 10.5508 16.0811 10.5508 15.3076C10.5508 14.9121 10.3838 14.5605 10.0938 14.2705L4.30176 8.64551L10.0938 3.0293C10.3838 2.74805 10.5508 2.3877 10.5508 2.00098C10.5508 1.23633 9.90918 0.603516 9.13574 0.603516C8.74902 0.603516 8.43262 0.735352 8.16016 0.999023L1.51562 7.51172C1.15527 7.85449 1.00586 8.21484 0.99707 8.6543Z",fill:"currentColor"})),Yx=()=>b.createElement("svg",{fill:"none",height:"12",viewBox:"0 0 8 12",width:"8",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,"Info"),b.createElement("path",{d:"M3.64258 7.99609C4.19336 7.99609 4.5625 7.73828 4.68555 7.24609C4.69141 7.21094 4.70312 7.16406 4.70898 7.13477C4.80859 6.60742 5.05469 6.35547 6.04492 5.76367C7.14648 5.10156 7.67969 4.3457 7.67969 3.24414C7.67969 1.39844 6.17383 0.255859 3.95898 0.255859C2.32422 0.255859 1.05859 0.894531 0.548828 1.86719C0.396484 2.14844 0.320312 2.44727 0.320312 2.74023C0.314453 3.37305 0.742188 3.79492 1.42188 3.79492C1.91406 3.79492 2.33594 3.54883 2.53516 3.11523C2.78711 2.47656 3.23242 2.21289 3.83594 2.21289C4.55664 2.21289 5.10742 2.65234 5.10742 3.29102C5.10742 3.9707 4.7793 4.29883 3.81836 4.87891C3.02148 5.36523 2.50586 5.92773 2.50586 6.76562V6.90039C2.50586 7.55664 2.96289 7.99609 3.64258 7.99609ZM3.67188 11.4473C4.42773 11.4473 5.04297 10.8672 5.04297 10.1406C5.04297 9.41406 4.42773 8.83984 3.67188 8.83984C2.91602 8.83984 2.30664 9.41406 2.30664 10.1406C2.30664 10.8672 2.91602 11.4473 3.67188 11.4473Z",fill:"currentColor"})),Zx=({"aria-label":e="Info",onClick:t})=>{const n=he();return b.createElement(I,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:n?"0":"1",className:ue({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:n?"30":"28",justifyContent:"center",onClick:t,style:{willChange:"transform"},transition:"default",type:"button",width:n?"30":"28"},b.createElement(Yx,null))},gp=e=>{const t=B.useRef(null),n=B.useContext(ep),r=Ms(e);return B.useEffect(()=>{if(n&&t.current&&r)return eC(t.current,r)},[n,r]),t},Xx=()=>{const e="_rk_coolMode",t=document.getElementById(e);if(t)return t;const n=document.createElement("div");return n.setAttribute("id",e),n.setAttribute("style",["overflow:hidden","position:fixed","height:100%","top:0","left:0","right:0","bottom:0","pointer-events:none","z-index:2147483647"].join(";")),document.body.appendChild(n),n},ad=0;function eC(e,t){ad++;const n=[15,20,25,35,45],r=35;let o=[],s=!1,i=0,a=0;const c=Xx();function l(){const v=n[Math.floor(Math.random()*n.length)],x=Math.random()*10,E=Math.random()*25,A=Math.random()*360,k=Math.random()*35*(Math.random()<=.5?-1:1),j=a-v/2,O=i-v/2,_=Math.random()<=.5?-1:1,R=document.createElement("div");R.innerHTML=`<img src="${t}" width="${v}" height="${v}" style="border-radius: 25%">`,R.setAttribute("style",["position:absolute","will-change:transform",`top:${j}px`,`left:${O}px`,`transform:rotate(${A}deg)`].join(";")),c.appendChild(R),o.push({direction:_,element:R,left:O,size:v,speedHorz:x,speedUp:E,spinSpeed:k,spinVal:A,top:j})}function u(){for(const v of o)v.left=v.left-v.speedHorz*v.direction,v.top=v.top-v.speedUp,v.speedUp=Math.min(v.size,v.speedUp-1),v.spinVal=v.spinVal+v.spinSpeed,v.top>=Math.max(window.innerHeight,document.body.clientHeight)+v.size&&(o=o.filter(x=>x!==v),v.element.remove()),v.element.setAttribute("style",["position:absolute","will-change:transform",`top:${v.top}px`,`left:${v.left}px`,`transform:rotate(${v.spinVal}deg)`].join(";"))}let d;function f(){s&&o.length<r&&l(),u(),d=requestAnimationFrame(f)}f();const h="ontouchstart"in window||navigator.msMaxTouchPoints,p=h?"touchstart":"mousedown",m=h?"touchend":"mouseup",g=h?"touchmove":"mousemove",y=v=>{var x,E;"touches"in v?(i=(x=v.touches)==null?void 0:x[0].clientX,a=(E=v.touches)==null?void 0:E[0].clientY):(i=v.clientX,a=v.clientY)},C=v=>{y(v),s=!0},w=()=>{s=!1};return e.addEventListener(g,y,{passive:!1}),e.addEventListener(p,C),e.addEventListener(m,w),e.addEventListener("mouseleave",w),()=>{e.removeEventListener(g,y),e.removeEventListener(p,C),e.removeEventListener(m,w),e.removeEventListener("mouseleave",w);const v=setInterval(()=>{d&&o.length===0&&(cancelAnimationFrame(d),clearInterval(v),--ad===0&&c.remove())},500)}}var tC="g5kl0l0",yp=({as:e="button",currentlySelected:t=!1,iconBackground:n,iconUrl:r,name:o,onClick:s,ready:i,recent:a,testId:c,isRainbowKitConnector:l,...u})=>{const d=gp(r),[f,h]=b.useState(!1),{i18n:p}=b.useContext(pe);return b.createElement(I,{display:"flex",flexDirection:"column",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),ref:d},b.createElement(I,{as:e,borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:t?void 0:[tC,ue({active:"shrink"})],disabled:t,onClick:s,padding:"5",style:{willChange:"transform"},testId:c,transition:"default",width:"full",...t?{background:"accentColor",borderColor:"selectedOptionBorder",boxShadow:"selectedWallet"}:{background:{hover:"menuItemBackground"}},...u},b.createElement(I,{color:t?"accentColorForeground":"modalText",disabled:!i,fontFamily:"body",fontSize:"16",fontWeight:"bold",transition:"default"},b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"row",gap:"12"},b.createElement(ge,{background:n,...!f&&l?{borderColor:"actionButtonBorder"}:{},useAsImage:!l,borderRadius:"6",height:"28",src:r,width:"28"}),b.createElement(I,null,b.createElement(I,{style:{marginTop:a?-2:void 0},maxWidth:"200"},o),a&&b.createElement(V,{color:t?"accentColorForeground":"accentColor",size:"12",style:{lineHeight:1,marginTop:-1},weight:"medium"},p.t("connect.recent")))))))};yp.displayName="ModalSelection";var nC="rk-latest-id";function rC(e){localStorage.setItem(nC,e)}var Bi=(e,t=1)=>{let n=e.replace("#","");n.length===3&&(n=`${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}`);const r=Number.parseInt(n.substring(0,2),16),o=Number.parseInt(n.substring(2,4),16),s=Number.parseInt(n.substring(4,6),16);return t>1&&t<=100&&(t=t/100),`rgba(${r},${o},${s},${t})`},oC=e=>e?[Bi(e,.2),Bi(e,.14),Bi(e,.1)]:null,sC=e=>/^#([0-9a-f]{3}){1,2}$/i.test(e),wp=async()=>(await L(async()=>{const{default:e}=await import("./connect-UA7M4XW6-IY3X6Bmr.js");return{default:e}},[])).default,iC=()=>wt(wp),aC=()=>b.createElement(ge,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:wp,width:"48"}),vp=async()=>(await L(async()=>{const{default:e}=await import("./create-FASO7PVG-D_rvSpre.js");return{default:e}},[])).default,xp=()=>wt(vp),cC=()=>b.createElement(ge,{background:"#e3a5e8",borderColor:"generalBorder",borderRadius:"10",height:"48",src:vp,width:"48"}),Cp=async()=>(await L(async()=>{const{default:e}=await import("./refresh-S4T5V5GX-CwqIaaxK.js");return{default:e}},[])).default,lC=()=>wt(Cp),uC=()=>b.createElement(ge,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:Cp,width:"48"}),Ap=async()=>(await L(async()=>{const{default:e}=await import("./scan-4UYSQ56Q-CjMz6-XC.js");return{default:e}},[])).default,Ep=()=>wt(Ap),dC=()=>b.createElement(ge,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:Ap,width:"48"}),fC="_1vwt0cg0",hC="_1vwt0cg2 ju367v7a ju367v7v",pC="_1vwt0cg3",mC="_1vwt0cg4";function Ip({ecc:e="medium",logoBackground:t,logoSize:n=50,logoUrl:r,size:o=200,uri:s}){const a=o-Number.parseInt("20",10)*2,c=Ms(r);return b.createElement(I,{borderColor:"generalBorder",borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:fC,padding:"20",width:"max"},b.createElement(I,{style:{height:a,userSelect:"none",width:a},userSelect:"none"},b.createElement(ht.Root,{errorCorrection:e,size:a,value:s},b.createElement(ht.Cells,{radius:1}),b.createElement(ht.Finder,{radius:.25}),c&&b.createElement(ht.Arena,null,b.createElement("img",{alt:"Wallet Logo",src:c,style:{objectFit:"cover",height:"88%",width:"88%",borderRadius:"22.5%",backgroundColor:t}})))))}var kp=async()=>{switch(Nc()){case"Arc":return(await L(async()=>{const{default:t}=await import("./Arc-VDBY7LNS-BChRXCXW.js");return{default:t}},[])).default;case"Brave":return(await L(async()=>{const{default:t}=await import("./Brave-BRAKJXDS-mq-Xo37j.js");return{default:t}},[])).default;case"Chrome":return(await L(async()=>{const{default:t}=await import("./Chrome-65Q5P54Y-DR9MQEVr.js");return{default:t}},[])).default;case"Edge":return(await L(async()=>{const{default:t}=await import("./Edge-XSPUTORV-DEoZslQE.js");return{default:t}},[])).default;case"Firefox":return(await L(async()=>{const{default:t}=await import("./Firefox-AAHGJQIP-Bp_Hm04m.js");return{default:t}},[])).default;case"Opera":return(await L(async()=>{const{default:t}=await import("./Opera-KQZLSACL-Cwv5MDFy.js");return{default:t}},[])).default;case"Safari":return(await L(async()=>{const{default:t}=await import("./Safari-ZPL37GXR-C4Ggg6rz.js");return{default:t}},[])).default;default:return(await L(async()=>{const{default:t}=await import("./Browser-76IHF3Y2-BMhRaC5Z.js");return{default:t}},[])).default}},bC=()=>wt(kp),Bp=async()=>{switch(Fc()){case"Windows":return(await L(async()=>{const{default:t}=await import("./Windows-PPTHQER6-BlyV2p7Y.js");return{default:t}},[])).default;case"macOS":return(await L(async()=>{const{default:t}=await import("./Macos-MW4AE7LN-Vvm8Drw3.js");return{default:t}},[])).default;case"Linux":return(await L(async()=>{const{default:t}=await import("./Linux-OO4TNCLJ-B0aw93n9.js");return{default:t}},[])).default;default:return(await L(async()=>{const{default:t}=await import("./Linux-OO4TNCLJ-B0aw93n9.js");return{default:t}},[])).default}},gC=()=>wt(Bp);function yC({getWalletDownload:e,compactModeEnabled:t}){const r=Jr().filter(s=>s.isRainbowKitConnector).splice(0,5),{i18n:o}=B.useContext(pe);return b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginTop:"18",width:"full"},b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",gap:"28",height:"full",width:"full"},r==null?void 0:r.filter(s=>{var i;return s.extensionDownloadUrl||s.desktopDownloadUrl||s.qrCode&&((i=s.downloadUrls)==null?void 0:i.qrCode)}).map(s=>{const{downloadUrls:i,iconBackground:a,iconUrl:c,id:l,name:u,qrCode:d}=s,f=(i==null?void 0:i.qrCode)&&d,h=!!s.extensionDownloadUrl,p=(i==null?void 0:i.qrCode)&&h,m=(i==null?void 0:i.qrCode)&&!!s.desktopDownloadUrl;return b.createElement(I,{alignItems:"center",display:"flex",gap:"16",justifyContent:"space-between",key:s.id,width:"full"},b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},b.createElement(ge,{background:a,borderColor:"actionButtonBorder",borderRadius:"10",height:"48",src:c,width:"48"}),b.createElement(I,{display:"flex",flexDirection:"column",gap:"2"},b.createElement(V,{color:"modalText",size:"14",weight:"bold"},u),b.createElement(V,{color:"modalTextSecondary",size:"14",weight:"medium"},p?o.t("get.mobile_and_extension.description"):m?o.t("get.mobile_and_desktop.description"):f?o.t("get.mobile.description"):h?o.t("get.extension.description"):null))),b.createElement(I,{display:"flex",flexDirection:"column",gap:"4"},b.createElement(je,{label:o.t("get.action.label"),onClick:()=>e(l),type:"secondary"})))})),b.createElement(I,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"column",gap:"8",justifyContent:"space-between",marginBottom:"4",paddingY:"8",style:{maxWidth:275,textAlign:"center"}},b.createElement(V,{color:"modalText",size:"14",weight:"bold"},o.t("get.looking_for.title")),b.createElement(V,{color:"modalTextSecondary",size:"14",weight:"medium"},t?o.t("get.looking_for.desktop.compact_description"):o.t("get.looking_for.desktop.wide_description"))))}var ji="44";function wC({changeWalletStep:e,compactModeEnabled:t,connectionError:n,onClose:r,qrCodeUri:o,reconnect:s,wallet:i}){const{downloadUrls:a,iconBackground:c,iconUrl:l,name:u,qrCode:d,ready:f,showWalletConnectModal:h,getDesktopUri:p}=i,m=!!p,g=Mc(),{i18n:y}=B.useContext(pe),C=!!i.extensionDownloadUrl,w=(a==null?void 0:a.qrCode)&&C,v=(a==null?void 0:a.qrCode)&&!!i.desktopDownloadUrl,x=d&&o,E=async()=>{const O=await(p==null?void 0:p());window.open(O,g?"_blank":"_self")},A=h?{description:t?y.t("connect.walletconnect.description.compact"):y.t("connect.walletconnect.description.full"),label:y.t("connect.walletconnect.open.label"),onClick:()=>{r(),h()}}:x?{description:y.t("connect.secondary_action.get.description",{wallet:u}),label:y.t("connect.secondary_action.get.label"),onClick:()=>e(w||v?"DOWNLOAD_OPTIONS":"DOWNLOAD")}:null,{width:k}=tp(),j=k&&k<768;return B.useEffect(()=>{bC(),gC()},[]),b.createElement(I,{display:"flex",flexDirection:"column",height:"full",width:"full"},x?b.createElement(I,{alignItems:"center",display:"flex",height:"full",justifyContent:"center"},b.createElement(Ip,{logoBackground:c,logoSize:t?60:72,logoUrl:l,size:t?318:j?Math.max(280,Math.min(k-308,382)):382,uri:o})):b.createElement(I,{alignItems:"center",display:"flex",justifyContent:"center",style:{flexGrow:1}},b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8"},b.createElement(I,{borderRadius:"10",height:ji,overflow:"hidden"},b.createElement(ge,{useAsImage:!i.isRainbowKitConnector,height:ji,src:l,width:ji})),b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",gap:"4",paddingX:"32",style:{textAlign:"center"}},b.createElement(V,{color:"modalText",size:"18",weight:"bold"},f?y.t("connect.status.opening",{wallet:u}):C?y.t("connect.status.not_installed",{wallet:u}):y.t("connect.status.not_available",{wallet:u})),!f&&C?b.createElement(I,{paddingTop:"20"},b.createElement(je,{href:i.extensionDownloadUrl,label:y.t("connect.secondary_action.install.label"),type:"secondary"})):null,f&&!x&&b.createElement(b.Fragment,null,b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},b.createElement(V,{color:"modalTextSecondary",size:"14",textAlign:"center",weight:"medium"},y.t("connect.status.confirm"))),b.createElement(I,{alignItems:"center",color:"modalText",display:"flex",flexDirection:"row",height:"32",marginTop:"8"},n?b.createElement(je,{label:y.t("connect.secondary_action.retry.label"),onClick:async()=>{m&&E(),s(i)}}):b.createElement(I,{color:"modalTextSecondary"},b.createElement(Kr,null))))))),b.createElement(I,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"28",justifyContent:"space-between",marginTop:"12"},f&&A&&b.createElement(b.Fragment,null,b.createElement(V,{color:"modalTextSecondary",size:"14",weight:"medium"},A.description),b.createElement(je,{label:A.label,onClick:A.onClick,type:"secondary"}))))}var Si=({actionLabel:e,description:t,iconAccent:n,iconBackground:r,iconUrl:o,isCompact:s,onAction:i,title:a,url:c,variant:l})=>{const u=l==="browser",d=!u&&n&&oC(n);return b.createElement(I,{alignItems:"center",borderRadius:"13",display:"flex",justifyContent:"center",overflow:"hidden",paddingX:s?"18":"44",position:"relative",style:{flex:1,isolation:"isolate"},width:"full"},b.createElement(I,{borderColor:"actionButtonBorder",borderRadius:"13",borderStyle:"solid",borderWidth:"1",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0",zIndex:1}}),u&&b.createElement(I,{background:"downloadTopCardBackground",height:"full",position:"absolute",style:{zIndex:0},width:"full"},b.createElement(I,{display:"flex",flexDirection:"row",justifyContent:"space-between",style:{bottom:"0",filter:"blur(20px)",left:"0",position:"absolute",right:"0",top:"0",transform:"translate3d(0, 0, 0)"}},b.createElement(I,{style:{filter:"blur(100px)",marginLeft:-27,marginTop:-20,opacity:.6,transform:"translate3d(0, 0, 0)"}},b.createElement(ge,{borderRadius:"full",height:"200",src:o,width:"200"})),b.createElement(I,{style:{filter:"blur(100px)",marginRight:0,marginTop:105,opacity:.6,overflow:"auto",transform:"translate3d(0, 0, 0)"}},b.createElement(ge,{borderRadius:"full",height:"200",src:o,width:"200"})))),!u&&d&&b.createElement(I,{background:"downloadBottomCardBackground",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0"}},b.createElement(I,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${d[0]} 0%, ${d[1]} 25%, rgba(0,0,0,0) 100%)`,height:564,left:-215,top:-197,transform:"translate3d(0, 0, 0)",width:564}}),b.createElement(I,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${d[2]} 0%, rgba(0, 0, 0, 0) 100%)`,height:564,left:-1,top:-76,transform:"translate3d(0, 0, 0)",width:564}})),b.createElement(I,{alignItems:"flex-start",display:"flex",flexDirection:"row",gap:"24",height:"max",justifyContent:"center",style:{zIndex:1}},b.createElement(I,null,b.createElement(ge,{height:"60",src:o,width:"60",...r?{background:r,borderColor:"generalBorder",borderRadius:"10"}:null})),b.createElement(I,{display:"flex",flexDirection:"column",gap:"4",style:{flex:1},width:"full"},b.createElement(V,{color:"modalText",size:"14",weight:"bold"},a),b.createElement(V,{color:"modalTextSecondary",size:"14",weight:"medium"},t),b.createElement(I,{marginTop:"14",width:"max"},b.createElement(je,{href:c,label:e,onClick:i,size:"medium"})))))};function vC({changeWalletStep:e,wallet:t}){const n=Nc(),r=Fc(),s=B.useContext(Ns)==="compact",{desktop:i,desktopDownloadUrl:a,extension:c,extensionDownloadUrl:l,mobileDownloadUrl:u}=t,{i18n:d}=B.useContext(pe);return B.useEffect(()=>{xp(),Ep(),lC(),iC()},[]),b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",marginBottom:"8",marginTop:"4",width:"full"},b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8",height:"full",justifyContent:"center",width:"full"},l&&b.createElement(Si,{actionLabel:d.t("get_options.extension.download.label",{browser:n}),description:d.t("get_options.extension.description"),iconUrl:kp,isCompact:s,onAction:()=>e(c!=null&&c.instructions?"INSTRUCTIONS_EXTENSION":"CONNECT"),title:d.t("get_options.extension.title",{wallet:t.name,browser:n}),url:l,variant:"browser"}),a&&b.createElement(Si,{actionLabel:d.t("get_options.desktop.download.label",{platform:r}),description:d.t("get_options.desktop.description"),iconUrl:Bp,isCompact:s,onAction:()=>e(i!=null&&i.instructions?"INSTRUCTIONS_DESKTOP":"CONNECT"),title:d.t("get_options.desktop.title",{wallet:t.name,platform:r}),url:a,variant:"desktop"}),u&&b.createElement(Si,{actionLabel:d.t("get_options.mobile.download.label",{wallet:t.name}),description:d.t("get_options.mobile.description"),iconAccent:t.iconAccent,iconBackground:t.iconBackground,iconUrl:t.iconUrl,isCompact:s,onAction:()=>{e("DOWNLOAD")},title:d.t("get_options.mobile.title",{wallet:t.name}),variant:"app"})))}function xC({changeWalletStep:e,wallet:t}){const{downloadUrls:n,qrCode:r}=t,{i18n:o}=B.useContext(pe);return B.useEffect(()=>{xp(),Ep()},[]),b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",width:"full"},b.createElement(I,{style:{maxWidth:220,textAlign:"center"}},b.createElement(V,{color:"modalTextSecondary",size:"14",weight:"semibold"},o.t("get_mobile.description"))),b.createElement(I,{height:"full"},n!=null&&n.qrCode?b.createElement(Ip,{logoSize:0,size:268,uri:n.qrCode}):null),b.createElement(I,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"34",justifyContent:"space-between",marginBottom:"12",paddingY:"8"},b.createElement(je,{label:o.t("get_mobile.continue.label"),onClick:()=>e(r!=null&&r.instructions?"INSTRUCTIONS_MOBILE":"CONNECT")})))}var Ot={connect:()=>b.createElement(aC,null),create:()=>b.createElement(cC,null),install:e=>b.createElement(ge,{background:e.iconBackground,borderColor:"generalBorder",borderRadius:"10",height:"48",src:e.iconUrl,width:"48"}),refresh:()=>b.createElement(uC,null),scan:()=>b.createElement(dC,null)};function CC({connectWallet:e,wallet:t}){var r,o,s,i;const{i18n:n}=B.useContext(pe);return b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},b.createElement(I,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(o=(r=t==null?void 0:t.qrCode)==null?void 0:r.instructions)==null?void 0:o.steps.map((a,c)=>{var l;return b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:c},b.createElement(I,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(l=Ot[a.step])==null?void 0:l.call(Ot,t)),b.createElement(I,{display:"flex",flexDirection:"column",gap:"4"},b.createElement(V,{color:"modalText",size:"14",weight:"bold"},n.t(a.title,void 0,{rawKeyIfTranslationMissing:!0})),b.createElement(V,{color:"modalTextSecondary",size:"14",weight:"medium"},n.t(a.description,void 0,{rawKeyIfTranslationMissing:!0}))))})),b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},b.createElement(je,{label:n.t("get_instructions.mobile.connect.label"),onClick:()=>e(t)}),b.createElement(I,{as:"a",className:ue({active:"shrink",hover:"grow"}),display:"block",href:(i=(s=t==null?void 0:t.qrCode)==null?void 0:s.instructions)==null?void 0:i.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},b.createElement(V,{color:"accentColor",size:"14",weight:"bold"},n.t("get_instructions.mobile.learn_more.label")))))}function AC({wallet:e}){var n,r,o,s;const{i18n:t}=B.useContext(pe);return b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},b.createElement(I,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(r=(n=e==null?void 0:e.extension)==null?void 0:n.instructions)==null?void 0:r.steps.map((i,a)=>{var c;return b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:a},b.createElement(I,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(c=Ot[i.step])==null?void 0:c.call(Ot,e)),b.createElement(I,{display:"flex",flexDirection:"column",gap:"4"},b.createElement(V,{color:"modalText",size:"14",weight:"bold"},t.t(i.title,void 0,{rawKeyIfTranslationMissing:!0})),b.createElement(V,{color:"modalTextSecondary",size:"14",weight:"medium"},t.t(i.description,void 0,{rawKeyIfTranslationMissing:!0}))))})),b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},b.createElement(je,{label:t.t("get_instructions.extension.refresh.label"),onClick:window.location.reload.bind(window.location)}),b.createElement(I,{as:"a",className:ue({active:"shrink",hover:"grow"}),display:"block",href:(s=(o=e==null?void 0:e.extension)==null?void 0:o.instructions)==null?void 0:s.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},b.createElement(V,{color:"accentColor",size:"14",weight:"bold"},t.t("get_instructions.extension.learn_more.label")))))}function EC({connectWallet:e,wallet:t}){var r,o,s,i;const{i18n:n}=B.useContext(pe);return b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},b.createElement(I,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(o=(r=t==null?void 0:t.desktop)==null?void 0:r.instructions)==null?void 0:o.steps.map((a,c)=>{var l;return b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:c},b.createElement(I,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(l=Ot[a.step])==null?void 0:l.call(Ot,t)),b.createElement(I,{display:"flex",flexDirection:"column",gap:"4"},b.createElement(V,{color:"modalText",size:"14",weight:"bold"},n.t(a.title,void 0,{rawKeyIfTranslationMissing:!0})),b.createElement(V,{color:"modalTextSecondary",size:"14",weight:"medium"},n.t(a.description,void 0,{rawKeyIfTranslationMissing:!0}))))})),b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},b.createElement(je,{label:n.t("get_instructions.desktop.connect.label"),onClick:()=>e(t)}),b.createElement(I,{as:"a",className:ue({active:"shrink",hover:"grow"}),display:"block",href:(i=(s=t==null?void 0:t.desktop)==null?void 0:s.instructions)==null?void 0:i.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},b.createElement(V,{color:"accentColor",size:"14",weight:"bold"},n.t("get_instructions.desktop.learn_more.label")))))}function IC({onClose:e}){const t="rk_connect_title",[n,r]=B.useState(),[o,s]=B.useState(),[i,a]=B.useState(),c=!!(o!=null&&o.qrCode)&&i,[l,u]=B.useState(!1),f=B.useContext(Ns)===bo.COMPACT,{disclaimer:h}=B.useContext(po),{i18n:p}=B.useContext(pe),m=Mc(),g=B.useRef(!1),{connector:y}=B.useContext(mo),w=Jr(!y).filter(q=>q.ready||!!q.extensionDownloadUrl).sort((q,H)=>q.groupIndex-H.groupIndex),v=Jr(),x=Jx(w,q=>q.groupName),E=["Recommended","Other","Popular","More","Others","Installed"];B.useEffect(()=>{y&&!g.current&&(P("CONNECT"),O(y),g.current=!0)},[y]);const A=q=>{var H,Z;u(!1),q.ready&&((Z=(H=q==null?void 0:q.connect)==null?void 0:H.call(q))==null||Z.catch(()=>{u(!0)}))},k=async q=>{const H=w.find(Z=>q.id===Z.id);H!=null&&H.getDesktopUri&&setTimeout(async()=>{var te;const Z=await((te=H==null?void 0:H.getDesktopUri)==null?void 0:te.call(H));Z&&window.open(Z,m?"_blank":"_self")},0)},j=async q=>{var te;const H=w.find(Ue=>q.id===Ue.id),Z=await((te=H==null?void 0:H.getQrCodeUri)==null?void 0:te.call(H));a(Z),setTimeout(()=>{s(H),P("CONNECT")},Z?0:50)},O=async q=>{rC(q.id),q.ready&&(j(q),k(q)),A(q),r(q.id),q.ready||(s(q),P(q!=null&&q.extensionDownloadUrl?"DOWNLOAD_OPTIONS":"CONNECT"))},_=q=>{var ze;const H=v.find(Pe=>q===Pe.id),Z=(ze=H==null?void 0:H.downloadUrls)==null?void 0:ze.qrCode,te=!!(H!=null&&H.desktopDownloadUrl),Ue=!!(H!=null&&H.extensionDownloadUrl);s(H),P(Z&&(Ue||te)?"DOWNLOAD_OPTIONS":Z?"DOWNLOAD":te?"INSTRUCTIONS_DESKTOP":"INSTRUCTIONS_EXTENSION")},R=()=>{r(void 0),s(void 0),a(void 0)},P=(q,H=!1)=>{H&&q==="GET"&&$==="GET"?R():!H&&q==="GET"?S("GET"):!H&&q==="CONNECT"&&S("CONNECT"),F(q)},[$,S]=B.useState("NONE"),[N,F]=B.useState("NONE");let T=null,U=null,z=null,Q;B.useEffect(()=>{u(!1)},[N,o]);const le=!!(!!(o!=null&&o.extensionDownloadUrl)&&(o!=null&&o.mobileDownloadUrl));switch(N){case"NONE":T=b.createElement(id,{getWallet:()=>P("GET")});break;case"LEARN_COMPACT":T=b.createElement(id,{compactModeEnabled:f,getWallet:()=>P("GET")}),U=p.t("intro.title"),z="NONE";break;case"GET":T=b.createElement(yC,{getWalletDownload:_,compactModeEnabled:f}),U=p.t("get.title"),z=f?"LEARN_COMPACT":"NONE";break;case"CONNECT":T=o&&b.createElement(wC,{changeWalletStep:P,compactModeEnabled:f,connectionError:l,onClose:e,qrCodeUri:i,reconnect:A,wallet:o}),U=c&&(o.name==="WalletConnect"?p.t("connect_scan.fallback_title"):p.t("connect_scan.title",{wallet:o.name})),z=f?y?null:"NONE":null,Q=f?y?()=>{}:R:()=>{};break;case"DOWNLOAD_OPTIONS":T=o&&b.createElement(vC,{changeWalletStep:P,wallet:o}),U=o&&p.t("get_options.short_title",{wallet:o.name}),z=y?"CONNECT":f?"NONE":$;break;case"DOWNLOAD":T=o&&b.createElement(xC,{changeWalletStep:P,wallet:o}),U=o&&p.t("get_mobile.title",{wallet:o.name}),z=le?"DOWNLOAD_OPTIONS":$;break;case"INSTRUCTIONS_MOBILE":T=o&&b.createElement(CC,{connectWallet:O,wallet:o}),U=o&&p.t("get_options.title",{wallet:f&&o.shortName||o.name}),z="DOWNLOAD";break;case"INSTRUCTIONS_EXTENSION":T=o&&b.createElement(AC,{wallet:o}),U=o&&p.t("get_options.title",{wallet:f&&o.shortName||o.name}),z="DOWNLOAD_OPTIONS";break;case"INSTRUCTIONS_DESKTOP":T=o&&b.createElement(EC,{connectWallet:O,wallet:o}),U=o&&p.t("get_options.title",{wallet:f&&o.shortName||o.name}),z="DOWNLOAD_OPTIONS";break}return b.createElement(I,{display:"flex",flexDirection:"row",style:{maxHeight:f?468:504}},(f?N==="NONE":!0)&&b.createElement(I,{className:f?mC:pC,display:"flex",flexDirection:"column",marginTop:"16"},b.createElement(I,{display:"flex",justifyContent:"space-between"},f&&h&&b.createElement(I,{marginLeft:"16",width:"28"},b.createElement(Zx,{onClick:()=>P("LEARN_COMPACT")})),f&&!h&&b.createElement(I,{marginLeft:"16",width:"28"}),b.createElement(I,{marginLeft:f?"0":"6",paddingBottom:"8",paddingTop:"2",paddingX:"18"},b.createElement(V,{as:"h1",color:"modalText",id:t,size:"18",weight:"heavy",testId:"connect-header-label"},p.t("connect.title"))),f&&b.createElement(I,{marginRight:"16"},b.createElement(gn,{onClose:e}))),b.createElement(I,{className:hC,paddingBottom:"18"},Object.entries(x).map(([q,H],Z)=>H.length>0&&b.createElement(B.Fragment,{key:Z},q?b.createElement(I,{marginBottom:"8",marginTop:"16",marginX:"6"},b.createElement(V,{color:q==="Installed"?"accentColor":"modalTextSecondary",size:"14",weight:"bold"},E.includes(q)?p.t(`connector_group.${q.toLowerCase()}`):q)):null,b.createElement(I,{display:"flex",flexDirection:"column",gap:"4"},H.map(te=>b.createElement(yp,{currentlySelected:te.id===n,iconBackground:te.iconBackground,iconUrl:te.iconUrl,key:te.id,name:te.name,onClick:()=>O(te),ready:te.ready,recent:te.recent,testId:`wallet-option-${te.id}`,isRainbowKitConnector:te.isRainbowKitConnector})))))),f&&b.createElement(b.Fragment,null,b.createElement(I,{background:"generalBorder",height:"1",marginTop:"-1"}),h?b.createElement(I,{paddingX:"24",paddingY:"16",textAlign:"center"},b.createElement(h,{Link:Uc,Text:zc})):b.createElement(I,{alignItems:"center",display:"flex",justifyContent:"space-between",paddingX:"24",paddingY:"16"},b.createElement(I,{paddingY:"4"},b.createElement(V,{color:"modalTextSecondary",size:"14",weight:"medium"},p.t("connect.new_to_ethereum.description"))),b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",justifyContent:"center"},b.createElement(I,{className:ue({active:"shrink",hover:"grow"}),cursor:"pointer",onClick:()=>P("LEARN_COMPACT"),paddingY:"4",style:{willChange:"transform"},transition:"default"},b.createElement(V,{color:"accentColor",size:"14",weight:"bold"},p.t("connect.new_to_ethereum.learn_more.label"))))))),(f?N!=="NONE":!0)&&b.createElement(b.Fragment,null,!f&&b.createElement(I,{background:"generalBorder",minWidth:"1",width:"1"}),b.createElement(I,{display:"flex",flexDirection:"column",margin:"16",style:{flexGrow:1}},b.createElement(I,{alignItems:"center",display:"flex",justifyContent:"space-between",marginBottom:"12"},b.createElement(I,{width:"28"},z&&b.createElement(I,{as:"button",className:ue({active:"shrinkSm",hover:"growLg"}),color:"accentColor",onClick:()=>{z&&P(z,!0),Q==null||Q()},paddingX:"8",paddingY:"4",style:{boxSizing:"content-box",height:17,willChange:"transform"},transition:"default",type:"button"},b.createElement(bp,null))),b.createElement(I,{display:"flex",justifyContent:"center",style:{flexGrow:1}},U&&b.createElement(V,{color:"modalText",size:"18",textAlign:"center",weight:"heavy"},U)),b.createElement(gn,{onClose:e})),b.createElement(I,{display:"flex",flexDirection:"column",style:{minHeight:f?396:432}},b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",gap:"6",height:"full",justifyContent:"center",marginX:"8"},T)))))}var kC="_1am14412",BC="_1am14410",jC="_1am14413",SC=({wallet:e})=>b.createElement("svg",{className:jC,viewBox:"0 0 86 86",width:"86",height:"86"},b.createElement("title",null,"Loading"),b.createElement("rect",{x:"3",y:"3",width:80,height:80,rx:20,ry:20,strokeDasharray:`${160/3} ${320/3}`,strokeDashoffset:160,className:kC,style:{stroke:(e==null?void 0:e.iconAccent)||"#0D3887"}}));function jp({onClose:e,wallet:t,connecting:n}){const{connect:r,iconBackground:o,iconUrl:s,id:i,name:a,getMobileUri:c,ready:l,shortName:u,showWalletConnectModal:d}=t,f=gp(s),h=B.useRef(!1),{i18n:p}=B.useContext(pe),m=B.useCallback(async()=>{if(i!=="walletConnect"&&(async()=>{const y=await(c==null?void 0:c());if(y)if(y&&mx({mobileUri:y,name:a}),y.startsWith("http")){const C=document.createElement("a");C.href=y,C.target="_blank",C.rel="noreferrer noopener",C.click()}else window.location.href=y})(),d){d(),e==null||e();return}try{await(r==null?void 0:r())}catch{}},[r,c,d,e,a,i]);return B.useEffect(()=>{n&&!h.current&&(m(),h.current=!0)},[n,m]),b.createElement(I,{as:"button",color:l?"modalText":"modalTextSecondary",disabled:!l,fontFamily:"body",key:i,onClick:m,ref:f,style:{overflow:"visible",textAlign:"center"},testId:`wallet-option-${i}`,type:"button",width:"full"},b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},b.createElement(I,{display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"8",paddingTop:"10",position:"relative"},n?b.createElement(SC,{wallet:t}):null,b.createElement(ge,{background:o,borderRadius:"13",boxShadow:"walletLogo",height:"60",src:s,width:"60"})),n?null:b.createElement(I,{display:"flex",flexDirection:"column",textAlign:"center"},b.createElement(V,{as:"h2",color:t.ready?"modalText":"modalTextSecondary",size:"13",weight:"medium"},b.createElement(I,{as:"span",position:"relative"},u??a,!t.ready&&" (unsupported)")),t.recent&&b.createElement(V,{color:"accentColor",size:"12",weight:"medium"},p.t("connect.recent")))))}function _C({onClose:e}){var h;const t="rk_connect_title",n=Jr().filter(p=>p.isRainbowKitConnector),{disclaimer:r,learnMoreUrl:o}=B.useContext(po);let s=null,i=null,a=!1,c=null;const[l,u]=B.useState("CONNECT"),{i18n:d}=B.useContext(pe),f=ho();switch(l){case"CONNECT":{s=d.t("connect.title"),a=!0,i=b.createElement(I,null,b.createElement(I,{background:"profileForeground",className:BC,display:"flex",paddingBottom:"20",paddingTop:"6",paddingX:"20",style:{gap:"calc((100% - 40px - 240px + 47px) / 4)"}},n.filter(p=>p.ready).map(p=>b.createElement(I,{key:p.id,width:"60"},b.createElement(jp,{onClose:e,wallet:p})))),b.createElement(I,{background:"generalBorder",height:"1",marginBottom:"32",marginTop:"-1"}),b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",gap:"32",paddingX:"32",style:{textAlign:"center"}},b.createElement(I,{display:"flex",flexDirection:"column",gap:"8",textAlign:"center"},b.createElement(V,{color:"modalText",size:"16",weight:"bold"},d.t("intro.title")),b.createElement(V,{color:"modalTextSecondary",size:"16"},d.t("intro.description")))),b.createElement(I,{paddingTop:"32",paddingX:"20"},b.createElement(I,{display:"flex",gap:"14",justifyContent:"center"},b.createElement(je,{label:d.t("intro.get.label"),onClick:()=>u("GET"),size:"large",type:"secondary"}),b.createElement(je,{href:o,label:d.t("intro.learn_more.label"),size:"large",type:"secondary"}))),r&&b.createElement(I,{marginTop:"28",marginX:"32",textAlign:"center"},b.createElement(r,{Link:Uc,Text:zc})));break}case"GET":{s=d.t("get.title"),c="CONNECT";const p=(h=n==null?void 0:n.filter(m=>{var g,y,C;return((g=m.downloadUrls)==null?void 0:g.ios)||((y=m.downloadUrls)==null?void 0:y.android)||((C=m.downloadUrls)==null?void 0:C.mobile)}))==null?void 0:h.splice(0,3);i=b.createElement(I,null,b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginBottom:"36",marginTop:"5",paddingTop:"12",width:"full"},p.map((m,g)=>{const{downloadUrls:y,iconBackground:C,iconUrl:w,name:v}=m;return!(y!=null&&y.ios)&&!(y!=null&&y.android)&&!(y!=null&&y.mobile)?null:b.createElement(I,{display:"flex",gap:"16",key:m.id,paddingX:"20",width:"full"},b.createElement(I,{style:{minHeight:48,minWidth:48}},b.createElement(ge,{background:C,borderColor:"generalBorder",borderRadius:"10",height:"48",src:w,width:"48"})),b.createElement(I,{display:"flex",flexDirection:"column",width:"full"},b.createElement(I,{alignItems:"center",display:"flex",height:"48"},b.createElement(I,{width:"full"},b.createElement(V,{color:"modalText",size:"18",weight:"bold"},v)),b.createElement(je,{href:(f?y==null?void 0:y.ios:y==null?void 0:y.android)||(y==null?void 0:y.mobile),label:d.t("get.action.label"),size:"small",type:"secondary"})),g<p.length-1&&b.createElement(I,{background:"generalBorderDim",height:"1",marginY:"10",width:"full"})))})),b.createElement(I,{style:{marginBottom:"42px"}}),b.createElement(I,{alignItems:"center",display:"flex",flexDirection:"column",gap:"36",paddingX:"36",style:{textAlign:"center"}},b.createElement(I,{display:"flex",flexDirection:"column",gap:"12",textAlign:"center"},b.createElement(V,{color:"modalText",size:"16",weight:"bold"},d.t("get.looking_for.title")),b.createElement(V,{color:"modalTextSecondary",size:"16"},d.t("get.looking_for.mobile.description")))));break}}return b.createElement(I,{display:"flex",flexDirection:"column",paddingBottom:"36"},b.createElement(I,{background:a?"profileForeground":"modalBackground",display:"flex",flexDirection:"column",paddingBottom:"4",paddingTop:"14"},b.createElement(I,{display:"flex",justifyContent:"center",paddingBottom:"6",paddingX:"20",position:"relative"},c&&b.createElement(I,{display:"flex",position:"absolute",style:{left:0,marginBottom:-20,marginTop:-20}},b.createElement(I,{alignItems:"center",as:"button",className:ue({active:"shrinkSm",hover:"growLg"}),color:"accentColor",display:"flex",marginLeft:"4",marginTop:"20",onClick:()=>u(c),padding:"16",style:{height:17,willChange:"transform"},transition:"default",type:"button"},b.createElement(bp,null))),b.createElement(I,{marginTop:"4",textAlign:"center",width:"full"},b.createElement(V,{as:"h1",color:"modalText",id:t,size:"20",weight:"bold"},s)),b.createElement(I,{alignItems:"center",display:"flex",height:"32",paddingRight:"14",position:"absolute",right:"0"},b.createElement(I,{style:{marginBottom:-20,marginTop:-20}},b.createElement(gn,{onClose:e}))))),b.createElement(I,{display:"flex",flexDirection:"column"},i))}var PC=({onClose:e})=>{const{connector:t}=B.useContext(mo),{i18n:n}=B.useContext(pe),r=(t==null?void 0:t.name)||"";return b.createElement(I,null,b.createElement(I,{display:"flex",paddingBottom:"32",justifyContent:"center",alignItems:"center",background:"profileForeground",flexDirection:"column"},b.createElement(I,{width:"full",display:"flex",justifyContent:"flex-end",marginTop:"18",marginRight:"24"},b.createElement(gn,{onClose:e})),b.createElement(I,{width:"60"},b.createElement(jp,{onClose:e,wallet:t,connecting:!0})),b.createElement(I,{marginTop:"20"},b.createElement(V,{textAlign:"center",color:"modalText",size:"18",weight:"semibold"},n.t("connect.status.connect_mobile",{wallet:r}))),b.createElement(I,{maxWidth:"full",marginTop:"8"},b.createElement(V,{textAlign:"center",color:"modalText",size:"16",weight:"medium"},n.t("connect.status.confirm_mobile",{wallet:r})))))};function TC({onClose:e}){const{connector:t}=B.useContext(mo);return he()?t?b.createElement(PC,{onClose:e}):b.createElement(_C,{onClose:e}):b.createElement(IC,{onClose:e})}function OC({onClose:e,open:t}){const n="rk_connect_title",r=Pc(),{disconnect:o}=xc(),{isConnecting:s}=Ne(),i=b.useCallback(()=>{e(),o()},[e,o]),a=b.useCallback(()=>{s&&o(),e()},[e,o,s]);return r==="disconnected"?b.createElement(rs,{onClose:a,open:t,titleId:n},b.createElement(os,{bottomSheetOnMobile:!0,padding:"0",wide:!0},b.createElement(TC,{onClose:a}))):r==="unauthenticated"?b.createElement(rs,{onClose:i,open:t,titleId:n},b.createElement(os,{bottomSheetOnMobile:!0,padding:"0"},b.createElement(hx,{onClose:i,onCloseModal:e}))):null}function _i(){const[e,t]=B.useState(!1);return{closeModal:B.useCallback(()=>t(!1),[]),isModalOpen:e,openModal:B.useCallback(()=>t(!0),[])}}var tr=B.createContext({accountModalOpen:!1,chainModalOpen:!1,connectModalOpen:!1,isWalletConnectModalOpen:!1,setIsWalletConnectModalOpen:()=>{}});function RC({children:e}){const{closeModal:t,isModalOpen:n,openModal:r}=_i(),{closeModal:o,isModalOpen:s,openModal:i}=_i(),{closeModal:a,isModalOpen:c,openModal:l}=_i(),[u,d]=B.useState(!1),f=Pc(),{chainId:h}=Ne(),{chains:p}=ye(),m=p.some(C=>C.id===h),g=B.useCallback(({keepConnectModalOpen:C=!1}={})=>{C||t(),o(),a()},[t,o,a]),y=Rs()==="unauthenticated";return eh({onConnect:()=>g({keepConnectModalOpen:y}),onDisconnect:()=>g()}),B.useEffect(()=>{y&&g()},[y,g]),b.createElement(tr.Provider,{value:B.useMemo(()=>({accountModalOpen:s,chainModalOpen:c,connectModalOpen:n,isWalletConnectModalOpen:u,openAccountModal:m&&f==="connected"?i:void 0,openChainModal:f==="connected"?l:void 0,openConnectModal:f==="disconnected"||f==="unauthenticated"?r:void 0,setIsWalletConnectModalOpen:d}),[f,s,c,n,i,l,r,m,u])},e,b.createElement(OC,{onClose:t,open:n}),b.createElement(Wx,{onClose:o,open:s}),b.createElement(Kx,{onClose:a,open:c}))}function MC(){const{accountModalOpen:e,chainModalOpen:t,connectModalOpen:n}=B.useContext(tr);return{accountModalOpen:e,chainModalOpen:t,connectModalOpen:n}}function NC(){const{accountModalOpen:e,openAccountModal:t}=B.useContext(tr);return{accountModalOpen:e,openAccountModal:t}}function DC(){const{chainModalOpen:e,openChainModal:t}=B.useContext(tr);return{chainModalOpen:e,openChainModal:t}}function Sp(){const{isWalletConnectModalOpen:e,setIsWalletConnectModalOpen:t}=B.useContext(tr);return{isWalletConnectModalOpen:e,setIsWalletConnectModalOpen:t}}function FC(){const{connectModalOpen:e,openConnectModal:t}=B.useContext(tr),{isWalletConnectModalOpen:n}=Sp();return{connectModalOpen:e||n,openConnectModal:t}}var Pi=()=>{};function Wc({children:e}){const t=w8(),{address:n}=Ne(),{chainId:r}=Ne(),{chains:o}=ye(),s=o.some(R=>R.id===r),i=g8(),a=Rs()??void 0,c=r?i[r]:void 0,l=(c==null?void 0:c.name)??void 0,u=(c==null?void 0:c.iconUrl)??void 0,d=(c==null?void 0:c.iconBackground)??void 0,f=Ms(u),h=B.useContext(Rc),p=Zh().some(({status:R})=>R==="pending")&&h,{showBalance:m}=Vh(),y=typeof m=="boolean"?m:m?Nh(m)[he()?"smallScreen":"largeScreen"]:!0,{balance:C,ensAvatar:w,ensName:v}=Qh({address:n,includeBalance:y}),x=C?`${dp(Number.parseFloat(C.formatted))} ${C.symbol}`:void 0,{openConnectModal:E}=FC(),{openChainModal:A}=DC(),{openAccountModal:k}=NC(),{accountModalOpen:j,chainModalOpen:O,connectModalOpen:_}=MC();return b.createElement(b.Fragment,null,e({account:n?{address:n,balanceDecimals:C==null?void 0:C.decimals,balanceFormatted:C==null?void 0:C.formatted,balanceSymbol:C==null?void 0:C.symbol,displayBalance:x,displayName:v?hp(v):fp(n),ensAvatar:w??void 0,ensName:v??void 0,hasPendingTransactions:p}:void 0,accountModalOpen:j,authenticationStatus:a,chain:r?{hasIcon:!!u,iconBackground:d,iconUrl:f,id:r,name:l,unsupported:!s}:void 0,chainModalOpen:O,connectModalOpen:_,mounted:t(),openAccountModal:k??Pi,openChainModal:A??Pi,openConnectModal:E??Pi}))}Wc.displayName="ConnectButton.Custom";var mr={accountStatus:"full",chainStatus:{largeScreen:"full",smallScreen:"icon"},label:"Connect Wallet",showBalance:{largeScreen:!0,smallScreen:!1}};function _p({accountStatus:e=mr.accountStatus,chainStatus:t=mr.chainStatus,label:n=mr.label,showBalance:r=mr.showBalance}){const o=vn(),s=Pc(),{setShowBalance:i}=Vh(),[a,c]=B.useState(!1),{i18n:l}=B.useContext(pe);return B.useEffect(()=>{i(r),a||c(!0)},[r,i]),a?b.createElement(Wc,null,({account:u,chain:d,mounted:f,openAccountModal:h,openChainModal:p,openConnectModal:m})=>{const g=f&&s!=="loading",y=(d==null?void 0:d.unsupported)??!1;return b.createElement(I,{display:"flex",gap:"12",...!g&&{"aria-hidden":!0,style:{opacity:0,pointerEvents:"none",userSelect:"none"}}},g&&u&&s==="connected"?b.createElement(b.Fragment,null,d&&(o.length>1||y)&&b.createElement(I,{alignItems:"center","aria-label":"Chain Selector",as:"button",background:y?"connectButtonBackgroundError":"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:ue({active:"shrink",hover:"grow"}),color:y?"connectButtonTextError":"connectButtonText",display:jn(t,C=>C==="none"?"none":"flex"),fontFamily:"body",fontWeight:"bold",gap:"6",key:y?"unsupported":"supported",onClick:p,paddingX:"10",paddingY:"8",testId:y?"wrong-network-button":"chain-button",transition:"default",type:"button"},y?b.createElement(I,{alignItems:"center",display:"flex",height:"24",paddingX:"4"},l.t("connect_wallet.wrong_network.label")):b.createElement(I,{alignItems:"center",display:"flex",gap:"6"},d.hasIcon?b.createElement(I,{display:jn(t,C=>C==="full"||C==="icon"?"block":"none"),height:"24",width:"24"},b.createElement(ge,{alt:d.name??"Chain icon",background:d.iconBackground,borderRadius:"full",height:"24",src:d.iconUrl,width:"24"})):null,b.createElement(I,{display:jn(t,C=>C==="icon"&&!d.iconUrl||C==="full"||C==="name"?"block":"none")},d.name??d.id)),b.createElement(Ou,null)),!y&&b.createElement(I,{alignItems:"center",as:"button",background:"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:ue({active:"shrink",hover:"grow"}),color:"connectButtonText",display:"flex",fontFamily:"body",fontWeight:"bold",onClick:h,testId:"account-button",transition:"default",type:"button"},u.displayBalance&&b.createElement(I,{display:jn(r,C=>C?"block":"none"),padding:"8",paddingLeft:"12"},u.displayBalance),b.createElement(I,{background:Nh(r)[he()?"smallScreen":"largeScreen"]?"connectButtonInnerBackground":"connectButtonBackground",borderColor:"connectButtonBackground",borderRadius:"connectButton",borderStyle:"solid",borderWidth:"2",color:"connectButtonText",fontFamily:"body",fontWeight:"bold",paddingX:"8",paddingY:"6",transition:"default"},b.createElement(I,{alignItems:"center",display:"flex",gap:"6",height:"24"},b.createElement(I,{display:jn(e,C=>C==="full"||C==="avatar"?"block":"none")},b.createElement($h,{address:u.address,imageUrl:u.ensAvatar,loading:u.hasPendingTransactions,size:24})),b.createElement(I,{alignItems:"center",display:"flex",gap:"6"},b.createElement(I,{display:jn(e,C=>C==="full"||C==="address"?"block":"none")},u.displayName),b.createElement(Ou,null)))))):b.createElement(I,{as:"button",background:"accentColor",borderRadius:"connectButton",boxShadow:"connectButton",className:ue({active:"shrink",hover:"grow"}),color:"accentColorForeground",fontFamily:"body",fontWeight:"bold",height:"40",key:"connect",onClick:m,paddingX:"14",testId:"connect-button",transition:"default",type:"button"},f&&n==="Connect Wallet"?l.t("connect_wallet.label"):n))}):b.createElement(b.Fragment,null)}_p.__defaultProps=mr;_p.Custom=Wc;var Pp=({appName:e,appDescription:t,appUrl:n,appIcon:r})=>({name:e,description:t??e,url:n??(typeof window<"u"?window.location.origin:""),icons:[...r?[r]:[]]});function LC(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0))}function UC(e,t){const n=[];for(const r of e)n.some(o=>o[t]===r[t])||n.push(r);return n}var zC=(e,{projectId:t,walletConnectParameters:n,appName:r,appDescription:o,appUrl:s,appIcon:i})=>{if(!e.length)throw new Error("No wallet list was provided");for(const{wallets:h,groupName:p}of e)if(!h.length)throw new Error(`No wallets provided for group: ${p}`);let a=-1;const c=[],l=[],u=[],d=Pp({appName:r,appDescription:o,appUrl:s,appIcon:i});for(const[h,{groupName:p,wallets:m}]of e.entries())for(const g of m){a++;const y=g({projectId:t,appName:r,appIcon:i,options:{metadata:d,...n},walletConnectParameters:{metadata:d,...n}});if(y!=null&&y.iconAccent&&!sC(y==null?void 0:y.iconAccent))throw new Error(`Property \`iconAccent\` is not a hex value for wallet: ${y.name}`);const C={...y,groupIndex:h+1,groupName:p,index:a};typeof y.hidden=="function"?u.push(C):l.push(C)}const f=UC([...l,...u],"id");for(const{createConnector:h,groupIndex:p,groupName:m,hidden:g,...y}of f){if(typeof g=="function"&&g())continue;const C=x=>({rkDetails:LC({...y,groupIndex:p,groupName:m,isRainbowKitConnector:!0,...x||{}})});y.id==="walletConnect"&&c.push(h(C({isWalletConnectModalConnector:!0,showQrModal:!0})));const v=h(C());c.push(v)}return c},cd=new Map,WC=({projectId:e,walletConnectParameters:t,rkDetailsShowQrModal:n,rkDetailsIsWalletConnectModalConnector:r})=>{let o={telemetryEnabled:!1,...t||{},projectId:e,showQrModal:!1};n&&(o={...o,showQrModal:!0}),"customStoragePrefix"in o||(o={...o,customStoragePrefix:r?"clientOne":"clientTwo"});const s=JSON.stringify(o),i=cd.get(s);if(i)return i;const a=_c(o);return cd.set(s,a),a};function $C({projectId:e,walletDetails:t,walletConnectParameters:n}){return r=>({...WC({projectId:e,walletConnectParameters:n,rkDetailsShowQrModal:t.rkDetails.showQrModal,rkDetailsIsWalletConnectModalConnector:t.rkDetails.isWalletConnectModalConnector})(r),...t})}function $c({projectId:e,walletConnectParameters:t}){const n="21fef48091f12692cad574a6f7753643";if(!e||e==="")throw new Error("No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2 https://www.rainbowkit.com/docs/installation#configure");return e==="YOUR_PROJECT_ID"&&(e=n),r=>$C({projectId:e,walletDetails:r,walletConnectParameters:t})}function Tp(e){const t=typeof window<"u"?window:void 0;if(typeof t>"u"||typeof t.ethereum>"u")return;const n=t.ethereum.providers;return n?n.find(r=>r[e]):t.ethereum[e]?t.ethereum:void 0}function Op(e){const t=(n,r)=>{const[o,...s]=r.split("."),i=n[o];if(i)return s.length===0?i:t(i,s.join("."))};if(typeof window<"u")return t(window,e)}function qC({flag:e,namespace:t}){return!!(t&&typeof Op(t)<"u"||typeof Tp(e)<"u")}function HC({flag:e,namespace:t}){var o;const n=typeof window<"u"?window:void 0;if(typeof n>"u")return;if(t){const s=Op(t);if(s)return s}const r=(o=n.ethereum)==null?void 0:o.providers;{const s=Tp(e);if(s)return s}return typeof r<"u"&&r.length>0?r[0]:n.ethereum}function VC(e){return t=>{const n=e?{target:()=>({id:t.rkDetails.id,name:t.rkDetails.name,provider:e})}:{};return r=>({...Ps(n)(r),...t})}}function GC({flag:e,namespace:t,target:n}){const r=n||HC({flag:e,namespace:t});return VC(r)}var Rp=({appName:e,appIcon:t})=>{const{preference:n,...r}=Rp;return{id:"baseAccount",name:"Base Account",shortName:"Base Account",rdns:"app.base.account",iconUrl:async()=>(await L(async()=>{const{default:o}=await import("./baseAccount-44UITRK7-CsjdbWCf.js");return{default:o}},[])).default,iconAccent:"#0000FF",iconBackground:"#0000FF",installed:!0,createConnector:o=>{const s=N3({appName:e,appLogoUrl:t,...r,preference:{telemetry:!1,...n||{}}});return i=>({...s(i),...o})}}};function QC(e){return!(!(e!=null&&e.isMetaMask)||e.isBraveWallet&&!e._events&&!e._state||e.isApexWallet||e.isAvalanche||e.isBackpack||e.isBifrost||e.isBitKeep||e.isBitski||e.isBinance||e.isBlockWallet||e.isCoinbaseWallet||e.isDawn||e.isEnkrypt||e.isExodus||e.isFrame||e.isFrontier||e.isGamestop||e.isHyperPay||e.isImToken||e.isKuCoinWallet||e.isMathWallet||e.isNestWallet||e.isOkxWallet||e.isOKExWallet||e.isOneInchIOSWallet||e.isOneInchAndroidWallet||e.isOpera||e.isPhantom||e.isZilPay||e.isPortal||e.isxPortal||e.isRabby||e.isRainbow||e.isStatus||e.isTalisman||e.isTally||e.isTokenPocket||e.isTokenary||e.isTrust||e.isTrustWallet||e.isCTRL||e.isZeal||e.isCoin98||e.isMEWwallet||e.isSafeheron||e.isSafePal||e.isWigwam||e.isZerion||e.__seif)}var Mp=({projectId:e,walletConnectParameters:t})=>{const{...n}=Mp,r=typeof window<"u"?QC(window.ethereum):!1,o=!r&&!he(),s=r||he();return{id:"metaMask",name:"MetaMask",rdns:"io.metamask",iconUrl:async()=>(await L(async()=>{const{default:i}=await import("./metaMaskWallet-SITXT2FV-BlemcphV.js");return{default:i}},[])).default,iconAccent:"#f6851a",iconBackground:"#fff",installed:r||void 0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=io.metamask",ios:"https://apps.apple.com/us/app/metamask/id1438144202",mobile:"https://metamask.io/download",qrCode:"https://metamask.io/download",chrome:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",edge:"https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",firefox:"https://addons.mozilla.org/firefox/addon/ether-metamask",opera:"https://addons.opera.com/extensions/details/metamask-10",browserExtension:"https://metamask.io/download"},mobile:{getUri:s?i=>i:void 0},qrCode:o?{getUri:i=>`https://metamask.app.link/wc?uri=${encodeURIComponent(i)}`,instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.qr_code.step1.description",step:"install",title:"wallet_connectors.metamask.qr_code.step1.title"},{description:"wallet_connectors.metamask.qr_code.step2.description",step:"create",title:"wallet_connectors.metamask.qr_code.step2.title"},{description:"wallet_connectors.metamask.qr_code.step3.description",step:"refresh",title:"wallet_connectors.metamask.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.extension.step1.description",step:"install",title:"wallet_connectors.metamask.extension.step1.title"},{description:"wallet_connectors.metamask.extension.step2.description",step:"create",title:"wallet_connectors.metamask.extension.step2.title"},{description:"wallet_connectors.metamask.extension.step3.description",step:"refresh",title:"wallet_connectors.metamask.extension.step3.title"}]}},createConnector:o?$c({projectId:e,walletConnectParameters:t}):(i=>a=>{var l,u,d;const c=jc({dappMetadata:{connector:"rainbowkit",name:(l=t==null?void 0:t.metadata)==null?void 0:l.name,iconUrl:(u=t==null?void 0:t.metadata)==null?void 0:u.icons[0],url:(d=t==null?void 0:t.metadata)==null?void 0:d.url},headless:!0,checkInstallationImmediately:!1,enableAnalytics:!1,...n})(a);return{...c,...i,getChainId:async()=>{var f;try{return await c.getChainId()}catch{return((f=a.chains[0])==null?void 0:f.id)??1}}}})}},KC=({projectId:e,walletConnectParameters:t})=>{const n=qC({flag:"isRainbow"}),r=!n,o=s=>Fh()?s:ho()?`rainbow://wc?uri=${encodeURIComponent(s)}&connector=rainbowkit`:`https://rnbwapp.com/wc?uri=${encodeURIComponent(s)}&connector=rainbowkit`;return{id:"rainbow",name:"Rainbow",rdns:"me.rainbow",iconUrl:async()=>(await L(async()=>{const{default:s}=await import("./rainbowWallet-O26YNBMX-DUhYus-9.js");return{default:s}},[])).default,iconBackground:"#0c2f78",installed:r?void 0:n,downloadUrls:{android:"https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",ios:"https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",mobile:"https://rainbow.download?utm_source=rainbowkit",qrCode:"https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",browserExtension:"https://rainbow.me/extension?utm_source=rainbowkit"},mobile:{getUri:r?o:void 0},qrCode:r?{getUri:o,instructions:{learnMoreUrl:"https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",steps:[{description:"wallet_connectors.rainbow.qr_code.step1.description",step:"install",title:"wallet_connectors.rainbow.qr_code.step1.title"},{description:"wallet_connectors.rainbow.qr_code.step2.description",step:"create",title:"wallet_connectors.rainbow.qr_code.step2.title"},{description:"wallet_connectors.rainbow.qr_code.step3.description",step:"scan",title:"wallet_connectors.rainbow.qr_code.step3.title"}]}}:void 0,createConnector:r?$c({projectId:e,walletConnectParameters:t}):GC({flag:"isRainbow"})}},JC=()=>({id:"safe",name:"Safe",iconAccent:"#12ff80",iconBackground:"#fff",iconUrl:async()=>(await L(async()=>{const{default:e}=await import("./safeWallet-5MNKTR5Z-D-5imDLD.js");return{default:e}},[])).default,installed:!(typeof window>"u")&&(window==null?void 0:window.parent)!==window,downloadUrls:{},createConnector:e=>t=>({...Sc()(t),...e})}),YC=({projectId:e,options:t})=>({id:"walletConnect",name:"WalletConnect",installed:void 0,iconUrl:async()=>(await L(async()=>{const{default:r}=await import("./walletConnectWallet-YHWKVTDY-D3lyiczV.js");return{default:r}},[])).default,iconBackground:"#3b99fc",qrCode:{getUri:r=>r},createConnector:$c({projectId:e,walletConnectParameters:t})}),ZC=e=>e.reduce((n,r)=>{const o=r.id;return n[o]=V0(),n},{}),XC=({appName:e,appDescription:t,appUrl:n,appIcon:r,wallets:o,projectId:s,walletConnectParameters:i,...a})=>{const{transports:c,chains:l,...u}=a,d=Pp({appName:e,appDescription:t,appUrl:n,appIcon:r}),f=zC(o||[{groupName:"Popular",wallets:[JC,KC,Rp,Mp,YC]}],{projectId:s,appName:e,appDescription:t,appUrl:n,appIcon:r,walletConnectParameters:{metadata:d,...i}});return y5({connectors:f,chains:l,transports:c||ZC(l),...u})};const eA={},tA=eA.VITE_WALLETCONNECT_PROJECT_ID||e1;function nA(e){return e.chainId===ts.id?{...ts,rpcUrls:{default:{http:e.rpcUrl?[e.rpcUrl]:[...t1]}}}:e.chainId===yr.id?e.rpcUrl?{...yr,rpcUrls:{default:{http:[e.rpcUrl]}}}:yr:e.rpcUrl?Xn({id:e.chainId,name:e.name,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:[e.rpcUrl]}},blockExplorers:e.explorerUrl?{default:{name:"Explorer",url:e.explorerUrl}}:void 0}):null}const ld=new Map;function rA(e){const t=e?`${e.chainId}:${e.rpcUrl}`:"signin";let n=ld.get(t);if(!n){const r=e?nA(e):null;if(e&&!r)return null;const o=r?[r]:[ts,yr];n=XC({appName:"Antseed Console",projectId:tA,chains:o,transports:Object.fromEntries(o.map(s=>[s.id,V0(void 0,{retryCount:2,retryDelay:1e3})])),batch:{multicall:{wait:16}},pollingInterval:4e3,ssr:!1}),ld.set(t,n)}return n}const oA=x5,sA=vx;function NA({chain:e,children:t}){const n=B.useMemo(()=>rA(e),[e]);if(!n)return ce.jsxs("p",{className:"gc-muted",children:["Wallet actions are not available on ",(e==null?void 0:e.name)??"this chain",": the gateway has no public RPC for it."]});const r=Zp()?oh(Qc):Cc(Qc);return ce.jsx(oA,{config:n,children:ce.jsx(sA,{theme:r,children:t})})}function DA(e,t="The wallet request failed."){return e&&typeof e=="object"&&"shortMessage"in e&&typeof e.shortMessage=="string"?e.shortMessage:e instanceof Error?e.message.split(`
|
|
1651
|
+
`)[0]??e.message:t}const ud=Object.freeze(Object.defineProperty({__proto__:null,default:ga},Symbol.toStringTag,{value:"Module"}));export{yy as $,gv as A,M as B,_p as C,Lf as D,G as E,rc as F,so as G,br as H,xs as I,r0 as J,k6 as K,ls as L,yv as M,RA as N,I6 as O,_e as P,Ze as Q,qn as R,Nv as S,er as T,ev as U,fv as V,NA as W,gc as X,C1 as Y,Z5 as Z,i0 as _,xc as a,Qf as a$,H0 as a0,kr as a1,oe as a2,Lr as a3,On as a4,ea as a5,V0 as a6,Re as a7,a1 as a8,at as a9,xA as aA,Vt as aB,G1 as aC,wr as aD,U1 as aE,Q1 as aF,f0 as aG,Xn as aH,es as aI,l5 as aJ,ae as aK,we as aL,Ho as aM,Je as aN,eo as aO,Me as aP,Nb as aQ,zi as aR,Da as aS,l6 as aT,Qa as aU,yt as aV,cc as aW,ts as aX,kc as aY,yr as aZ,y6 as a_,Se as aa,Qn as ab,zn as ac,Id as ad,Fd as ae,D as af,fm as ag,h1 as ah,kA as ai,hA as aj,ot as ak,sy as al,ke as am,rt as an,qe as ao,am as ap,qf as aq,If as ar,Yt as as,fo as at,Hn as au,q0 as av,Ov as aw,P0 as ax,vA as ay,L1 as az,Y5 as b,TA as b0,PA as b1,Qt as b2,ln as b3,Fb as b4,Zr as b5,ye as c,Cb as d,Ub as e,io as f,Na as g,gt as h,$r as i,yn as j,bt as k,bs as l,yc as m,vc as n,wc as o,MA as p,Jd as q,Lv as r,ve as s,fe as t,Ne as u,ps as v,DA as w,jA as x,BA as y,Zn as z};
|